diff --git a/.github/release-please.yml b/.github/release-please.yml new file mode 100644 index 00000000000..9f6e4acd79c --- /dev/null +++ b/.github/release-please.yml @@ -0,0 +1,3 @@ +releaseType: go-yoshi +handleGHRelease: true +changelogPath: CHANGES.md diff --git a/.github/workflows/autoapprove.yml b/.github/workflows/autoapprove.yml new file mode 100644 index 00000000000..447cfd355b2 --- /dev/null +++ b/.github/workflows/autoapprove.yml @@ -0,0 +1,49 @@ +name: AutoApprove + +on: + pull_request: + branches: + - master + types: + - opened + +jobs: + auto-approve: + runs-on: ubuntu-latest + if: contains(github.head_ref, 'autosynth') + env: + ENABLE_AUTO_APPROVE: ${{ secrets.ENABLE_AUTO_APPROVE }} + steps: + - name: AutoApprove + uses: actions/github-script@v2 + with: + github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} + script: | + if (context.payload.sender.login != "yoshi-automation") { + core.error("AutoApprove: Not running for this sender."); + return; + } + if (!context.payload.pull_request.title.startsWith("feat(all): auto-regenerate")) { + core.error("AutoApprove: Not running for this PR title."); + return; + } + if (!process.env.ENABLE_AUTO_APPROVE) { + core.error("AutoApprove: PR conditions passed but ENABLE_AUTO_APPROVE is not set."); + return; + } + core.info("AutoApprove: PR conditions passed!"); + await github.pulls.createReview({ + owner: context.repo.owner, + repo: context.repo.repo, + body: "AutoApprove: Rubber stamped client regeneration!", + pull_number: context.payload.pull_request.number, + event: "APPROVE" + }); + core.info("AutoApprove: Rubber stamped client regeneration!"); + await github.issues.addLabels({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.payload.pull_request.number, + labels: ["automerge"] + }); + core.info("AutoApprove: Applied automerge label!"); diff --git a/CHANGES.md b/CHANGES.md index 51f1f476286..35c84a6958b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,23 @@ # Changes +## [0.35.0](https://www.github.com/googleapis/google-api-go-client/compare/v0.34.0...v0.35.0) (2020-11-06) + + +### Features + +* **all:** auto-regenerate discovery clients , refs [#743](https://www.github.com/googleapis/google-api-go-client/issues/743) [#741](https://www.github.com/googleapis/google-api-go-client/issues/741) [#739](https://www.github.com/googleapis/google-api-go-client/issues/739) [#737](https://www.github.com/googleapis/google-api-go-client/issues/737) [#735](https://www.github.com/googleapis/google-api-go-client/issues/735) [#733](https://www.github.com/googleapis/google-api-go-client/issues/733) [#730](https://www.github.com/googleapis/google-api-go-client/issues/730) [#729](https://www.github.com/googleapis/google-api-go-client/issues/729) [#724](https://www.github.com/googleapis/google-api-go-client/issues/724) +* **internaloption:** add EnableDirectPath internaloption ([#732](https://www.github.com/googleapis/google-api-go-client/issues/732)) ([baf33b2](https://www.github.com/googleapis/google-api-go-client/commit/baf33b2baf0a1a5459e7b4ff193fa47117829169)) + +## v0.34.0 + +- transport: + - Fix mergeEndpoint logic to support default endpoints without scheme. +- Various updates to autogenerated clients. + +_Please note:_ the release version is not indicative of an individual client's +stability or version. + + ## v0.33.0 - idtoken: diff --git a/abusiveexperiencereport/v1/abusiveexperiencereport-gen.go b/abusiveexperiencereport/v1/abusiveexperiencereport-gen.go index 84ab6344fc1..96cc68e8d46 100644 --- a/abusiveexperiencereport/v1/abusiveexperiencereport-gen.go +++ b/abusiveexperiencereport/v1/abusiveexperiencereport-gen.go @@ -303,7 +303,7 @@ func (c *SitesGetCall) Header() http.Header { func (c *SitesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -442,7 +442,7 @@ func (c *ViolatingSitesListCall) Header() http.Header { func (c *ViolatingSitesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/acceleratedmobilepageurl/v1/acceleratedmobilepageurl-gen.go b/acceleratedmobilepageurl/v1/acceleratedmobilepageurl-gen.go index 1444738abd9..e54bd79c9ed 100644 --- a/acceleratedmobilepageurl/v1/acceleratedmobilepageurl-gen.go +++ b/acceleratedmobilepageurl/v1/acceleratedmobilepageurl-gen.go @@ -349,7 +349,7 @@ func (c *AmpUrlsBatchGetCall) Header() http.Header { func (c *AmpUrlsBatchGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/accessapproval/v1/accessapproval-api.json b/accessapproval/v1/accessapproval-api.json index fae74d40885..4e53873d4b3 100644 --- a/accessapproval/v1/accessapproval-api.json +++ b/accessapproval/v1/accessapproval-api.json @@ -286,7 +286,7 @@ ], "parameters": { "filter": { - "description": "A filter on the type of approval requests to retrieve. Must be one of the following values: * [not set]: Requests that are pending or have active approvals. * ALL: All requests. * PENDING: Only pending requests. * ACTIVE: Only active (i.e. currently approved) requests. * DISMISSED: Only dismissed (including expired) requests. * HISTORY: Active and dismissed (including expired) requests.", + "description": "A filter on the type of approval requests to retrieve. Must be one of the following values: * [not set]: Requests that are pending or have active approvals. * ALL: All requests. * PENDING: Only pending requests. * ACTIVE: Only active (i.e. currently approved) requests. * DISMISSED: Only requests that have been dismissed, or requests that . are not approved and past expiration. * EXPIRED: Only requests that have been approved, and the approval has expired. * HISTORY: Active, dismissed and expired requests.", "location": "query", "type": "string" }, @@ -502,7 +502,7 @@ ], "parameters": { "filter": { - "description": "A filter on the type of approval requests to retrieve. Must be one of the following values: * [not set]: Requests that are pending or have active approvals. * ALL: All requests. * PENDING: Only pending requests. * ACTIVE: Only active (i.e. currently approved) requests. * DISMISSED: Only dismissed (including expired) requests. * HISTORY: Active and dismissed (including expired) requests.", + "description": "A filter on the type of approval requests to retrieve. Must be one of the following values: * [not set]: Requests that are pending or have active approvals. * ALL: All requests. * PENDING: Only pending requests. * ACTIVE: Only active (i.e. currently approved) requests. * DISMISSED: Only requests that have been dismissed, or requests that . are not approved and past expiration. * EXPIRED: Only requests that have been approved, and the approval has expired. * HISTORY: Active, dismissed and expired requests.", "location": "query", "type": "string" }, @@ -718,7 +718,7 @@ ], "parameters": { "filter": { - "description": "A filter on the type of approval requests to retrieve. Must be one of the following values: * [not set]: Requests that are pending or have active approvals. * ALL: All requests. * PENDING: Only pending requests. * ACTIVE: Only active (i.e. currently approved) requests. * DISMISSED: Only dismissed (including expired) requests. * HISTORY: Active and dismissed (including expired) requests.", + "description": "A filter on the type of approval requests to retrieve. Must be one of the following values: * [not set]: Requests that are pending or have active approvals. * ALL: All requests. * PENDING: Only pending requests. * ACTIVE: Only active (i.e. currently approved) requests. * DISMISSED: Only requests that have been dismissed, or requests that . are not approved and past expiration. * EXPIRED: Only requests that have been approved, and the approval has expired. * HISTORY: Active, dismissed and expired requests.", "location": "query", "type": "string" }, @@ -754,7 +754,7 @@ } } }, - "revision": "20201014", + "revision": "20201030", "rootUrl": "https://accessapproval.googleapis.com/", "schemas": { "AccessApprovalSettings": { diff --git a/accessapproval/v1/accessapproval-gen.go b/accessapproval/v1/accessapproval-gen.go index ba02c29d358..575f4b13642 100644 --- a/accessapproval/v1/accessapproval-gen.go +++ b/accessapproval/v1/accessapproval-gen.go @@ -714,7 +714,7 @@ func (c *FoldersDeleteAccessApprovalSettingsCall) Header() http.Header { func (c *FoldersDeleteAccessApprovalSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -856,7 +856,7 @@ func (c *FoldersGetAccessApprovalSettingsCall) Header() http.Header { func (c *FoldersGetAccessApprovalSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1006,7 +1006,7 @@ func (c *FoldersUpdateAccessApprovalSettingsCall) Header() http.Header { func (c *FoldersUpdateAccessApprovalSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1155,7 +1155,7 @@ func (c *FoldersApprovalRequestsApproveCall) Header() http.Header { func (c *FoldersApprovalRequestsApproveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1300,7 +1300,7 @@ func (c *FoldersApprovalRequestsDismissCall) Header() http.Header { func (c *FoldersApprovalRequestsDismissCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1450,7 +1450,7 @@ func (c *FoldersApprovalRequestsGetCall) Header() http.Header { func (c *FoldersApprovalRequestsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1563,9 +1563,11 @@ func (r *FoldersApprovalRequestsService) List(parent string) *FoldersApprovalReq // approval requests to retrieve. Must be one of the following values: * // [not set]: Requests that are pending or have active approvals. * ALL: // All requests. * PENDING: Only pending requests. * ACTIVE: Only active -// (i.e. currently approved) requests. * DISMISSED: Only dismissed -// (including expired) requests. * HISTORY: Active and dismissed -// (including expired) requests. +// (i.e. currently approved) requests. * DISMISSED: Only requests that +// have been dismissed, or requests that . are not approved and past +// expiration. * EXPIRED: Only requests that have been approved, and the +// approval has expired. * HISTORY: Active, dismissed and expired +// requests. func (c *FoldersApprovalRequestsListCall) Filter(filter string) *FoldersApprovalRequestsListCall { c.urlParams_.Set("filter", filter) return c @@ -1621,7 +1623,7 @@ func (c *FoldersApprovalRequestsListCall) Header() http.Header { func (c *FoldersApprovalRequestsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1692,7 +1694,7 @@ func (c *FoldersApprovalRequestsListCall) Do(opts ...googleapi.CallOption) (*Lis // ], // "parameters": { // "filter": { - // "description": "A filter on the type of approval requests to retrieve. Must be one of the following values: * [not set]: Requests that are pending or have active approvals. * ALL: All requests. * PENDING: Only pending requests. * ACTIVE: Only active (i.e. currently approved) requests. * DISMISSED: Only dismissed (including expired) requests. * HISTORY: Active and dismissed (including expired) requests.", + // "description": "A filter on the type of approval requests to retrieve. Must be one of the following values: * [not set]: Requests that are pending or have active approvals. * ALL: All requests. * PENDING: Only pending requests. * ACTIVE: Only active (i.e. currently approved) requests. * DISMISSED: Only requests that have been dismissed, or requests that . are not approved and past expiration. * EXPIRED: Only requests that have been approved, and the approval has expired. * HISTORY: Active, dismissed and expired requests.", // "location": "query", // "type": "string" // }, @@ -1797,7 +1799,7 @@ func (c *OrganizationsDeleteAccessApprovalSettingsCall) Header() http.Header { func (c *OrganizationsDeleteAccessApprovalSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1939,7 +1941,7 @@ func (c *OrganizationsGetAccessApprovalSettingsCall) Header() http.Header { func (c *OrganizationsGetAccessApprovalSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2089,7 +2091,7 @@ func (c *OrganizationsUpdateAccessApprovalSettingsCall) Header() http.Header { func (c *OrganizationsUpdateAccessApprovalSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2238,7 +2240,7 @@ func (c *OrganizationsApprovalRequestsApproveCall) Header() http.Header { func (c *OrganizationsApprovalRequestsApproveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2383,7 +2385,7 @@ func (c *OrganizationsApprovalRequestsDismissCall) Header() http.Header { func (c *OrganizationsApprovalRequestsDismissCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2533,7 +2535,7 @@ func (c *OrganizationsApprovalRequestsGetCall) Header() http.Header { func (c *OrganizationsApprovalRequestsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2646,9 +2648,11 @@ func (r *OrganizationsApprovalRequestsService) List(parent string) *Organization // approval requests to retrieve. Must be one of the following values: * // [not set]: Requests that are pending or have active approvals. * ALL: // All requests. * PENDING: Only pending requests. * ACTIVE: Only active -// (i.e. currently approved) requests. * DISMISSED: Only dismissed -// (including expired) requests. * HISTORY: Active and dismissed -// (including expired) requests. +// (i.e. currently approved) requests. * DISMISSED: Only requests that +// have been dismissed, or requests that . are not approved and past +// expiration. * EXPIRED: Only requests that have been approved, and the +// approval has expired. * HISTORY: Active, dismissed and expired +// requests. func (c *OrganizationsApprovalRequestsListCall) Filter(filter string) *OrganizationsApprovalRequestsListCall { c.urlParams_.Set("filter", filter) return c @@ -2704,7 +2708,7 @@ func (c *OrganizationsApprovalRequestsListCall) Header() http.Header { func (c *OrganizationsApprovalRequestsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2775,7 +2779,7 @@ func (c *OrganizationsApprovalRequestsListCall) Do(opts ...googleapi.CallOption) // ], // "parameters": { // "filter": { - // "description": "A filter on the type of approval requests to retrieve. Must be one of the following values: * [not set]: Requests that are pending or have active approvals. * ALL: All requests. * PENDING: Only pending requests. * ACTIVE: Only active (i.e. currently approved) requests. * DISMISSED: Only dismissed (including expired) requests. * HISTORY: Active and dismissed (including expired) requests.", + // "description": "A filter on the type of approval requests to retrieve. Must be one of the following values: * [not set]: Requests that are pending or have active approvals. * ALL: All requests. * PENDING: Only pending requests. * ACTIVE: Only active (i.e. currently approved) requests. * DISMISSED: Only requests that have been dismissed, or requests that . are not approved and past expiration. * EXPIRED: Only requests that have been approved, and the approval has expired. * HISTORY: Active, dismissed and expired requests.", // "location": "query", // "type": "string" // }, @@ -2880,7 +2884,7 @@ func (c *ProjectsDeleteAccessApprovalSettingsCall) Header() http.Header { func (c *ProjectsDeleteAccessApprovalSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3022,7 +3026,7 @@ func (c *ProjectsGetAccessApprovalSettingsCall) Header() http.Header { func (c *ProjectsGetAccessApprovalSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3172,7 +3176,7 @@ func (c *ProjectsUpdateAccessApprovalSettingsCall) Header() http.Header { func (c *ProjectsUpdateAccessApprovalSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3321,7 +3325,7 @@ func (c *ProjectsApprovalRequestsApproveCall) Header() http.Header { func (c *ProjectsApprovalRequestsApproveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3466,7 +3470,7 @@ func (c *ProjectsApprovalRequestsDismissCall) Header() http.Header { func (c *ProjectsApprovalRequestsDismissCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3616,7 +3620,7 @@ func (c *ProjectsApprovalRequestsGetCall) Header() http.Header { func (c *ProjectsApprovalRequestsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3729,9 +3733,11 @@ func (r *ProjectsApprovalRequestsService) List(parent string) *ProjectsApprovalR // approval requests to retrieve. Must be one of the following values: * // [not set]: Requests that are pending or have active approvals. * ALL: // All requests. * PENDING: Only pending requests. * ACTIVE: Only active -// (i.e. currently approved) requests. * DISMISSED: Only dismissed -// (including expired) requests. * HISTORY: Active and dismissed -// (including expired) requests. +// (i.e. currently approved) requests. * DISMISSED: Only requests that +// have been dismissed, or requests that . are not approved and past +// expiration. * EXPIRED: Only requests that have been approved, and the +// approval has expired. * HISTORY: Active, dismissed and expired +// requests. func (c *ProjectsApprovalRequestsListCall) Filter(filter string) *ProjectsApprovalRequestsListCall { c.urlParams_.Set("filter", filter) return c @@ -3787,7 +3793,7 @@ func (c *ProjectsApprovalRequestsListCall) Header() http.Header { func (c *ProjectsApprovalRequestsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3858,7 +3864,7 @@ func (c *ProjectsApprovalRequestsListCall) Do(opts ...googleapi.CallOption) (*Li // ], // "parameters": { // "filter": { - // "description": "A filter on the type of approval requests to retrieve. Must be one of the following values: * [not set]: Requests that are pending or have active approvals. * ALL: All requests. * PENDING: Only pending requests. * ACTIVE: Only active (i.e. currently approved) requests. * DISMISSED: Only dismissed (including expired) requests. * HISTORY: Active and dismissed (including expired) requests.", + // "description": "A filter on the type of approval requests to retrieve. Must be one of the following values: * [not set]: Requests that are pending or have active approvals. * ALL: All requests. * PENDING: Only pending requests. * ACTIVE: Only active (i.e. currently approved) requests. * DISMISSED: Only requests that have been dismissed, or requests that . are not approved and past expiration. * EXPIRED: Only requests that have been approved, and the approval has expired. * HISTORY: Active, dismissed and expired requests.", // "location": "query", // "type": "string" // }, diff --git a/accesscontextmanager/v1/accesscontextmanager-gen.go b/accesscontextmanager/v1/accesscontextmanager-gen.go index e98f4b167f8..764934598ea 100644 --- a/accesscontextmanager/v1/accesscontextmanager-gen.go +++ b/accesscontextmanager/v1/accesscontextmanager-gen.go @@ -1439,7 +1439,7 @@ func (c *AccessPoliciesCreateCall) Header() http.Header { func (c *AccessPoliciesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1566,7 +1566,7 @@ func (c *AccessPoliciesDeleteCall) Header() http.Header { func (c *AccessPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1707,7 +1707,7 @@ func (c *AccessPoliciesGetCall) Header() http.Header { func (c *AccessPoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1872,7 +1872,7 @@ func (c *AccessPoliciesListCall) Header() http.Header { func (c *AccessPoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2043,7 +2043,7 @@ func (c *AccessPoliciesPatchCall) Header() http.Header { func (c *AccessPoliciesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2192,7 +2192,7 @@ func (c *AccessPoliciesAccessLevelsCreateCall) Header() http.Header { func (c *AccessPoliciesAccessLevelsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2332,7 +2332,7 @@ func (c *AccessPoliciesAccessLevelsDeleteCall) Header() http.Header { func (c *AccessPoliciesAccessLevelsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2494,7 +2494,7 @@ func (c *AccessPoliciesAccessLevelsGetCall) Header() http.Header { func (c *AccessPoliciesAccessLevelsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2686,7 +2686,7 @@ func (c *AccessPoliciesAccessLevelsListCall) Header() http.Header { func (c *AccessPoliciesAccessLevelsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2879,7 +2879,7 @@ func (c *AccessPoliciesAccessLevelsPatchCall) Header() http.Header { func (c *AccessPoliciesAccessLevelsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3033,7 +3033,7 @@ func (c *AccessPoliciesAccessLevelsReplaceAllCall) Header() http.Header { func (c *AccessPoliciesAccessLevelsReplaceAllCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3184,7 +3184,7 @@ func (c *AccessPoliciesServicePerimetersCommitCall) Header() http.Header { func (c *AccessPoliciesServicePerimetersCommitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3328,7 +3328,7 @@ func (c *AccessPoliciesServicePerimetersCreateCall) Header() http.Header { func (c *AccessPoliciesServicePerimetersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3468,7 +3468,7 @@ func (c *AccessPoliciesServicePerimetersDeleteCall) Header() http.Header { func (c *AccessPoliciesServicePerimetersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3609,7 +3609,7 @@ func (c *AccessPoliciesServicePerimetersGetCall) Header() http.Header { func (c *AccessPoliciesServicePerimetersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3768,7 +3768,7 @@ func (c *AccessPoliciesServicePerimetersListCall) Header() http.Header { func (c *AccessPoliciesServicePerimetersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3946,7 +3946,7 @@ func (c *AccessPoliciesServicePerimetersPatchCall) Header() http.Header { func (c *AccessPoliciesServicePerimetersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4099,7 +4099,7 @@ func (c *AccessPoliciesServicePerimetersReplaceAllCall) Header() http.Header { func (c *AccessPoliciesServicePerimetersReplaceAllCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4248,7 +4248,7 @@ func (c *OperationsCancelCall) Header() http.Header { func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4389,7 +4389,7 @@ func (c *OperationsDeleteCall) Header() http.Header { func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4532,7 +4532,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4706,7 +4706,7 @@ func (c *OperationsListCall) Header() http.Header { func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4882,7 +4882,7 @@ func (c *OrganizationsGcpUserAccessBindingsCreateCall) Header() http.Header { func (c *OrganizationsGcpUserAccessBindingsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5023,7 +5023,7 @@ func (c *OrganizationsGcpUserAccessBindingsDeleteCall) Header() http.Header { func (c *OrganizationsGcpUserAccessBindingsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5164,7 +5164,7 @@ func (c *OrganizationsGcpUserAccessBindingsGetCall) Header() http.Header { func (c *OrganizationsGcpUserAccessBindingsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5325,7 +5325,7 @@ func (c *OrganizationsGcpUserAccessBindingsListCall) Header() http.Header { func (c *OrganizationsGcpUserAccessBindingsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5505,7 +5505,7 @@ func (c *OrganizationsGcpUserAccessBindingsPatchCall) Header() http.Header { func (c *OrganizationsGcpUserAccessBindingsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/accesscontextmanager/v1beta/accesscontextmanager-gen.go b/accesscontextmanager/v1beta/accesscontextmanager-gen.go index d4fa162cfa2..7c257479226 100644 --- a/accesscontextmanager/v1beta/accesscontextmanager-gen.go +++ b/accesscontextmanager/v1beta/accesscontextmanager-gen.go @@ -1042,7 +1042,7 @@ func (c *AccessPoliciesCreateCall) Header() http.Header { func (c *AccessPoliciesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1169,7 +1169,7 @@ func (c *AccessPoliciesDeleteCall) Header() http.Header { func (c *AccessPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1310,7 +1310,7 @@ func (c *AccessPoliciesGetCall) Header() http.Header { func (c *AccessPoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1475,7 +1475,7 @@ func (c *AccessPoliciesListCall) Header() http.Header { func (c *AccessPoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1646,7 +1646,7 @@ func (c *AccessPoliciesPatchCall) Header() http.Header { func (c *AccessPoliciesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1795,7 +1795,7 @@ func (c *AccessPoliciesAccessLevelsCreateCall) Header() http.Header { func (c *AccessPoliciesAccessLevelsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1935,7 +1935,7 @@ func (c *AccessPoliciesAccessLevelsDeleteCall) Header() http.Header { func (c *AccessPoliciesAccessLevelsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2097,7 +2097,7 @@ func (c *AccessPoliciesAccessLevelsGetCall) Header() http.Header { func (c *AccessPoliciesAccessLevelsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2289,7 +2289,7 @@ func (c *AccessPoliciesAccessLevelsListCall) Header() http.Header { func (c *AccessPoliciesAccessLevelsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2482,7 +2482,7 @@ func (c *AccessPoliciesAccessLevelsPatchCall) Header() http.Header { func (c *AccessPoliciesAccessLevelsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2632,7 +2632,7 @@ func (c *AccessPoliciesServicePerimetersCreateCall) Header() http.Header { func (c *AccessPoliciesServicePerimetersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2772,7 +2772,7 @@ func (c *AccessPoliciesServicePerimetersDeleteCall) Header() http.Header { func (c *AccessPoliciesServicePerimetersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2913,7 +2913,7 @@ func (c *AccessPoliciesServicePerimetersGetCall) Header() http.Header { func (c *AccessPoliciesServicePerimetersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3072,7 +3072,7 @@ func (c *AccessPoliciesServicePerimetersListCall) Header() http.Header { func (c *AccessPoliciesServicePerimetersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3250,7 +3250,7 @@ func (c *AccessPoliciesServicePerimetersPatchCall) Header() http.Header { func (c *AccessPoliciesServicePerimetersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3407,7 +3407,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/adexchangebuyer/v1.2/adexchangebuyer-gen.go b/adexchangebuyer/v1.2/adexchangebuyer-gen.go index e54330a8065..5f4fa222efc 100644 --- a/adexchangebuyer/v1.2/adexchangebuyer-gen.go +++ b/adexchangebuyer/v1.2/adexchangebuyer-gen.go @@ -637,7 +637,7 @@ func (c *AccountsGetCall) Header() http.Header { func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -778,7 +778,7 @@ func (c *AccountsListCall) Header() http.Header { func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -898,7 +898,7 @@ func (c *AccountsPatchCall) Header() http.Header { func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1037,7 +1037,7 @@ func (c *AccountsUpdateCall) Header() http.Header { func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1188,7 +1188,7 @@ func (c *CreativesGetCall) Header() http.Header { func (c *CreativesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1328,7 +1328,7 @@ func (c *CreativesInsertCall) Header() http.Header { func (c *CreativesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1489,7 +1489,7 @@ func (c *CreativesListCall) Header() http.Header { func (c *CreativesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/adexchangebuyer/v1.3/adexchangebuyer-gen.go b/adexchangebuyer/v1.3/adexchangebuyer-gen.go index 849bc126114..8e0acec3041 100644 --- a/adexchangebuyer/v1.3/adexchangebuyer-gen.go +++ b/adexchangebuyer/v1.3/adexchangebuyer-gen.go @@ -1626,7 +1626,7 @@ func (c *AccountsGetCall) Header() http.Header { func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1767,7 +1767,7 @@ func (c *AccountsListCall) Header() http.Header { func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1887,7 +1887,7 @@ func (c *AccountsPatchCall) Header() http.Header { func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2026,7 +2026,7 @@ func (c *AccountsUpdateCall) Header() http.Header { func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2175,7 +2175,7 @@ func (c *BillingInfoGetCall) Header() http.Header { func (c *BillingInfoGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2317,7 +2317,7 @@ func (c *BillingInfoListCall) Header() http.Header { func (c *BillingInfoListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2448,7 +2448,7 @@ func (c *BudgetGetCall) Header() http.Header { func (c *BudgetGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2595,7 +2595,7 @@ func (c *BudgetPatchCall) Header() http.Header { func (c *BudgetPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2747,7 +2747,7 @@ func (c *BudgetUpdateCall) Header() http.Header { func (c *BudgetUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2907,7 +2907,7 @@ func (c *CreativesGetCall) Header() http.Header { func (c *CreativesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3047,7 +3047,7 @@ func (c *CreativesInsertCall) Header() http.Header { func (c *CreativesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3227,7 +3227,7 @@ func (c *CreativesListCall) Header() http.Header { func (c *CreativesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3419,7 +3419,7 @@ func (c *DirectDealsGetCall) Header() http.Header { func (c *DirectDealsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3560,7 +3560,7 @@ func (c *DirectDealsListCall) Header() http.Header { func (c *DirectDealsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3706,7 +3706,7 @@ func (c *PerformanceReportListCall) Header() http.Header { func (c *PerformanceReportListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3864,7 +3864,7 @@ func (c *PretargetingConfigDeleteCall) Header() http.Header { func (c *PretargetingConfigDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3987,7 +3987,7 @@ func (c *PretargetingConfigGetCall) Header() http.Header { func (c *PretargetingConfigGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4130,7 +4130,7 @@ func (c *PretargetingConfigInsertCall) Header() http.Header { func (c *PretargetingConfigInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4279,7 +4279,7 @@ func (c *PretargetingConfigListCall) Header() http.Header { func (c *PretargetingConfigListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4416,7 +4416,7 @@ func (c *PretargetingConfigPatchCall) Header() http.Header { func (c *PretargetingConfigPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4566,7 +4566,7 @@ func (c *PretargetingConfigUpdateCall) Header() http.Header { func (c *PretargetingConfigUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/adexchangebuyer/v1.4/adexchangebuyer-gen.go b/adexchangebuyer/v1.4/adexchangebuyer-gen.go index a727ab3b97e..77defc21419 100644 --- a/adexchangebuyer/v1.4/adexchangebuyer-gen.go +++ b/adexchangebuyer/v1.4/adexchangebuyer-gen.go @@ -4091,7 +4091,7 @@ func (c *AccountsGetCall) Header() http.Header { func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4232,7 +4232,7 @@ func (c *AccountsListCall) Header() http.Header { func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4360,7 +4360,7 @@ func (c *AccountsPatchCall) Header() http.Header { func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4512,7 +4512,7 @@ func (c *AccountsUpdateCall) Header() http.Header { func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4666,7 +4666,7 @@ func (c *BillingInfoGetCall) Header() http.Header { func (c *BillingInfoGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4808,7 +4808,7 @@ func (c *BillingInfoListCall) Header() http.Header { func (c *BillingInfoListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4939,7 +4939,7 @@ func (c *BudgetGetCall) Header() http.Header { func (c *BudgetGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5086,7 +5086,7 @@ func (c *BudgetPatchCall) Header() http.Header { func (c *BudgetPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5238,7 +5238,7 @@ func (c *BudgetUpdateCall) Header() http.Header { func (c *BudgetUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5388,7 +5388,7 @@ func (c *CreativesAddDealCall) Header() http.Header { func (c *CreativesAddDealCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5520,7 +5520,7 @@ func (c *CreativesGetCall) Header() http.Header { func (c *CreativesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5660,7 +5660,7 @@ func (c *CreativesInsertCall) Header() http.Header { func (c *CreativesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5863,7 +5863,7 @@ func (c *CreativesListCall) Header() http.Header { func (c *CreativesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6076,7 +6076,7 @@ func (c *CreativesListDealsCall) Header() http.Header { func (c *CreativesListDealsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6220,7 +6220,7 @@ func (c *CreativesRemoveDealCall) Header() http.Header { func (c *CreativesRemoveDealCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6340,7 +6340,7 @@ func (c *MarketplacedealsDeleteCall) Header() http.Header { func (c *MarketplacedealsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6478,7 +6478,7 @@ func (c *MarketplacedealsInsertCall) Header() http.Header { func (c *MarketplacedealsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6632,7 +6632,7 @@ func (c *MarketplacedealsListCall) Header() http.Header { func (c *MarketplacedealsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6771,7 +6771,7 @@ func (c *MarketplacedealsUpdateCall) Header() http.Header { func (c *MarketplacedealsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6909,7 +6909,7 @@ func (c *MarketplacenotesInsertCall) Header() http.Header { func (c *MarketplacenotesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7065,7 +7065,7 @@ func (c *MarketplacenotesListCall) Header() http.Header { func (c *MarketplacenotesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7203,7 +7203,7 @@ func (c *MarketplaceprivateauctionUpdateproposalCall) Header() http.Header { func (c *MarketplaceprivateauctionUpdateproposalCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7340,7 +7340,7 @@ func (c *PerformanceReportListCall) Header() http.Header { func (c *PerformanceReportListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7498,7 +7498,7 @@ func (c *PretargetingConfigDeleteCall) Header() http.Header { func (c *PretargetingConfigDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7621,7 +7621,7 @@ func (c *PretargetingConfigGetCall) Header() http.Header { func (c *PretargetingConfigGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7764,7 +7764,7 @@ func (c *PretargetingConfigInsertCall) Header() http.Header { func (c *PretargetingConfigInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7913,7 +7913,7 @@ func (c *PretargetingConfigListCall) Header() http.Header { func (c *PretargetingConfigListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8050,7 +8050,7 @@ func (c *PretargetingConfigPatchCall) Header() http.Header { func (c *PretargetingConfigPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8200,7 +8200,7 @@ func (c *PretargetingConfigUpdateCall) Header() http.Header { func (c *PretargetingConfigUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8357,7 +8357,7 @@ func (c *ProductsGetCall) Header() http.Header { func (c *ProductsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8504,7 +8504,7 @@ func (c *ProductsSearchCall) Header() http.Header { func (c *ProductsSearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8639,7 +8639,7 @@ func (c *ProposalsGetCall) Header() http.Header { func (c *ProposalsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8770,7 +8770,7 @@ func (c *ProposalsInsertCall) Header() http.Header { func (c *ProposalsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8899,7 +8899,7 @@ func (c *ProposalsPatchCall) Header() http.Header { func (c *ProposalsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9084,7 +9084,7 @@ func (c *ProposalsSearchCall) Header() http.Header { func (c *ProposalsSearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9209,7 +9209,7 @@ func (c *ProposalsSetupcompleteCall) Header() http.Header { func (c *ProposalsSetupcompleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9315,7 +9315,7 @@ func (c *ProposalsUpdateCall) Header() http.Header { func (c *ProposalsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9495,7 +9495,7 @@ func (c *PubprofilesListCall) Header() http.Header { func (c *PubprofilesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/adexchangebuyer2/v2beta1/adexchangebuyer2-api.json b/adexchangebuyer2/v2beta1/adexchangebuyer2-api.json index f11f74a4e48..31c7e4b49d4 100644 --- a/adexchangebuyer2/v2beta1/adexchangebuyer2-api.json +++ b/adexchangebuyer2/v2beta1/adexchangebuyer2-api.json @@ -2500,7 +2500,7 @@ } } }, - "revision": "20201013", + "revision": "20201118", "rootUrl": "https://adexchangebuyer.googleapis.com/", "schemas": { "AbsoluteDateRange": { @@ -5461,6 +5461,13 @@ "description": "URL to additional marketing and sales materials.", "type": "string" }, + "mobileApps": { + "description": "The list of apps represented in this publisher profile. Empty if this is a parent profile.", + "items": { + "$ref": "PublisherProfileMobileApplication" + }, + "type": "array" + }, "overview": { "description": "Overview of the publisher.", "type": "string" @@ -5495,6 +5502,55 @@ }, "type": "object" }, + "PublisherProfileMobileApplication": { + "description": "A mobile application that contains a external app ID, name, and app store.", + "id": "PublisherProfileMobileApplication", + "properties": { + "appStore": { + "description": "The app store the app belongs to.", + "enum": [ + "APP_STORE_TYPE_UNSPECIFIED", + "APPLE_ITUNES", + "GOOGLE_PLAY", + "ROKU", + "AMAZON_FIRETV", + "PLAYSTATION", + "XBOX", + "SAMSUNG_TV", + "AMAZON", + "OPPO", + "SAMSUNG", + "VIVO", + "XIAOMI" + ], + "enumDescriptions": [ + "A placeholder for an unknown app store.", + "Apple iTunes", + "Google Play", + "Roku", + "Amazon Fire TV", + "Playstation", + "Xbox", + "Samsung TV", + "Amazon Appstore", + "OPPO App Market", + "Samsung Galaxy Store", + "VIVO App Store", + "Xiaomi GetApps" + ], + "type": "string" + }, + "externalAppId": { + "description": "The external ID for the app from its app store.", + "type": "string" + }, + "name": { + "description": "The name of the app.", + "type": "string" + } + }, + "type": "object" + }, "RealtimeTimeRange": { "description": "An open-ended realtime time range specified by the start timestamp. For filter sets that specify a realtime time range RTB metrics continue to be aggregated throughout the lifetime of the filter set.", "id": "RealtimeTimeRange", diff --git a/adexchangebuyer2/v2beta1/adexchangebuyer2-gen.go b/adexchangebuyer2/v2beta1/adexchangebuyer2-gen.go index 1dde0cc0829..b0236387d63 100644 --- a/adexchangebuyer2/v2beta1/adexchangebuyer2-gen.go +++ b/adexchangebuyer2/v2beta1/adexchangebuyer2-gen.go @@ -4858,6 +4858,10 @@ type PublisherProfile struct { // MediaKitUrl: URL to additional marketing and sales materials. MediaKitUrl string `json:"mediaKitUrl,omitempty"` + // MobileApps: The list of apps represented in this publisher profile. + // Empty if this is a parent profile. + MobileApps []*PublisherProfileMobileApplication `json:"mobileApps,omitempty"` + // Overview: Overview of the publisher. Overview string `json:"overview,omitempty"` @@ -4911,6 +4915,57 @@ func (s *PublisherProfile) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// PublisherProfileMobileApplication: A mobile application that contains +// a external app ID, name, and app store. +type PublisherProfileMobileApplication struct { + // AppStore: The app store the app belongs to. + // + // Possible values: + // "APP_STORE_TYPE_UNSPECIFIED" - A placeholder for an unknown app + // store. + // "APPLE_ITUNES" - Apple iTunes + // "GOOGLE_PLAY" - Google Play + // "ROKU" - Roku + // "AMAZON_FIRETV" - Amazon Fire TV + // "PLAYSTATION" - Playstation + // "XBOX" - Xbox + // "SAMSUNG_TV" - Samsung TV + // "AMAZON" - Amazon Appstore + // "OPPO" - OPPO App Market + // "SAMSUNG" - Samsung Galaxy Store + // "VIVO" - VIVO App Store + // "XIAOMI" - Xiaomi GetApps + AppStore string `json:"appStore,omitempty"` + + // ExternalAppId: The external ID for the app from its app store. + ExternalAppId string `json:"externalAppId,omitempty"` + + // Name: The name of the app. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AppStore") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AppStore") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *PublisherProfileMobileApplication) MarshalJSON() ([]byte, error) { + type NoMethod PublisherProfileMobileApplication + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // RealtimeTimeRange: An open-ended realtime time range specified by the // start timestamp. For filter sets that specify a realtime time range // RTB metrics continue to be aggregated throughout the lifetime of the @@ -5654,7 +5709,7 @@ func (c *AccountsClientsCreateCall) Header() http.Header { func (c *AccountsClientsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5805,7 +5860,7 @@ func (c *AccountsClientsGetCall) Header() http.Header { func (c *AccountsClientsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5984,7 +6039,7 @@ func (c *AccountsClientsListCall) Header() http.Header { func (c *AccountsClientsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6158,7 +6213,7 @@ func (c *AccountsClientsUpdateCall) Header() http.Header { func (c *AccountsClientsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6310,7 +6365,7 @@ func (c *AccountsClientsInvitationsCreateCall) Header() http.Header { func (c *AccountsClientsInvitationsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6472,7 +6527,7 @@ func (c *AccountsClientsInvitationsGetCall) Header() http.Header { func (c *AccountsClientsInvitationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6655,7 +6710,7 @@ func (c *AccountsClientsInvitationsListCall) Header() http.Header { func (c *AccountsClientsInvitationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6844,7 +6899,7 @@ func (c *AccountsClientsUsersGetCall) Header() http.Header { func (c *AccountsClientsUsersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7026,7 +7081,7 @@ func (c *AccountsClientsUsersListCall) Header() http.Header { func (c *AccountsClientsUsersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7206,7 +7261,7 @@ func (c *AccountsClientsUsersUpdateCall) Header() http.Header { func (c *AccountsClientsUsersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7382,7 +7437,7 @@ func (c *AccountsCreativesCreateCall) Header() http.Header { func (c *AccountsCreativesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7545,7 +7600,7 @@ func (c *AccountsCreativesGetCall) Header() http.Header { func (c *AccountsCreativesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7731,7 +7786,7 @@ func (c *AccountsCreativesListCall) Header() http.Header { func (c *AccountsCreativesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7905,7 +7960,7 @@ func (c *AccountsCreativesStopWatchingCall) Header() http.Header { func (c *AccountsCreativesStopWatchingCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8054,7 +8109,7 @@ func (c *AccountsCreativesUpdateCall) Header() http.Header { func (c *AccountsCreativesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8204,7 +8259,7 @@ func (c *AccountsCreativesWatchCall) Header() http.Header { func (c *AccountsCreativesWatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8353,7 +8408,7 @@ func (c *AccountsCreativesDealAssociationsAddCall) Header() http.Header { func (c *AccountsCreativesDealAssociationsAddCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8541,7 +8596,7 @@ func (c *AccountsCreativesDealAssociationsListCall) Header() http.Header { func (c *AccountsCreativesDealAssociationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8722,7 +8777,7 @@ func (c *AccountsCreativesDealAssociationsRemoveCall) Header() http.Header { func (c *AccountsCreativesDealAssociationsRemoveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8921,7 +8976,7 @@ func (c *AccountsFinalizedProposalsListCall) Header() http.Header { func (c *AccountsFinalizedProposalsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9118,7 +9173,7 @@ func (c *AccountsProductsGetCall) Header() http.Header { func (c *AccountsProductsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9295,7 +9350,7 @@ func (c *AccountsProductsListCall) Header() http.Header { func (c *AccountsProductsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9472,7 +9527,7 @@ func (c *AccountsProposalsAcceptCall) Header() http.Header { func (c *AccountsProposalsAcceptCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9623,7 +9678,7 @@ func (c *AccountsProposalsAddNoteCall) Header() http.Header { func (c *AccountsProposalsAddNoteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9774,7 +9829,7 @@ func (c *AccountsProposalsCancelNegotiationCall) Header() http.Header { func (c *AccountsProposalsCancelNegotiationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9929,7 +9984,7 @@ func (c *AccountsProposalsCompleteSetupCall) Header() http.Header { func (c *AccountsProposalsCompleteSetupCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10077,7 +10132,7 @@ func (c *AccountsProposalsCreateCall) Header() http.Header { func (c *AccountsProposalsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10228,7 +10283,7 @@ func (c *AccountsProposalsGetCall) Header() http.Header { func (c *AccountsProposalsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10426,7 +10481,7 @@ func (c *AccountsProposalsListCall) Header() http.Header { func (c *AccountsProposalsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10618,7 +10673,7 @@ func (c *AccountsProposalsPauseCall) Header() http.Header { func (c *AccountsProposalsPauseCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10773,7 +10828,7 @@ func (c *AccountsProposalsResumeCall) Header() http.Header { func (c *AccountsProposalsResumeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10932,7 +10987,7 @@ func (c *AccountsProposalsUpdateCall) Header() http.Header { func (c *AccountsProposalsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11090,7 +11145,7 @@ func (c *AccountsPublisherProfilesGetCall) Header() http.Header { func (c *AccountsPublisherProfilesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11255,7 +11310,7 @@ func (c *AccountsPublisherProfilesListCall) Header() http.Header { func (c *AccountsPublisherProfilesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11431,7 +11486,7 @@ func (c *BiddersAccountsFilterSetsCreateCall) Header() http.Header { func (c *BiddersAccountsFilterSetsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11575,7 +11630,7 @@ func (c *BiddersAccountsFilterSetsDeleteCall) Header() http.Header { func (c *BiddersAccountsFilterSetsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11717,7 +11772,7 @@ func (c *BiddersAccountsFilterSetsGetCall) Header() http.Header { func (c *BiddersAccountsFilterSetsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11879,7 +11934,7 @@ func (c *BiddersAccountsFilterSetsListCall) Header() http.Header { func (c *BiddersAccountsFilterSetsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12072,7 +12127,7 @@ func (c *BiddersAccountsFilterSetsBidMetricsListCall) Header() http.Header { func (c *BiddersAccountsFilterSetsBidMetricsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12266,7 +12321,7 @@ func (c *BiddersAccountsFilterSetsBidResponseErrorsListCall) Header() http.Heade func (c *BiddersAccountsFilterSetsBidResponseErrorsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12462,7 +12517,7 @@ func (c *BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall) Header() http func (c *BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12659,7 +12714,7 @@ func (c *BiddersAccountsFilterSetsFilteredBidRequestsListCall) Header() http.Hea func (c *BiddersAccountsFilterSetsFilteredBidRequestsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12853,7 +12908,7 @@ func (c *BiddersAccountsFilterSetsFilteredBidsListCall) Header() http.Header { func (c *BiddersAccountsFilterSetsFilteredBidsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13051,7 +13106,7 @@ func (c *BiddersAccountsFilterSetsFilteredBidsCreativesListCall) Header() http.H func (c *BiddersAccountsFilterSetsFilteredBidsCreativesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13259,7 +13314,7 @@ func (c *BiddersAccountsFilterSetsFilteredBidsDetailsListCall) Header() http.Hea func (c *BiddersAccountsFilterSetsFilteredBidsDetailsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13464,7 +13519,7 @@ func (c *BiddersAccountsFilterSetsImpressionMetricsListCall) Header() http.Heade func (c *BiddersAccountsFilterSetsImpressionMetricsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13658,7 +13713,7 @@ func (c *BiddersAccountsFilterSetsLosingBidsListCall) Header() http.Header { func (c *BiddersAccountsFilterSetsLosingBidsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13853,7 +13908,7 @@ func (c *BiddersAccountsFilterSetsNonBillableWinningBidsListCall) Header() http. func (c *BiddersAccountsFilterSetsNonBillableWinningBidsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14031,7 +14086,7 @@ func (c *BiddersFilterSetsCreateCall) Header() http.Header { func (c *BiddersFilterSetsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14175,7 +14230,7 @@ func (c *BiddersFilterSetsDeleteCall) Header() http.Header { func (c *BiddersFilterSetsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14317,7 +14372,7 @@ func (c *BiddersFilterSetsGetCall) Header() http.Header { func (c *BiddersFilterSetsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14479,7 +14534,7 @@ func (c *BiddersFilterSetsListCall) Header() http.Header { func (c *BiddersFilterSetsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14672,7 +14727,7 @@ func (c *BiddersFilterSetsBidMetricsListCall) Header() http.Header { func (c *BiddersFilterSetsBidMetricsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14866,7 +14921,7 @@ func (c *BiddersFilterSetsBidResponseErrorsListCall) Header() http.Header { func (c *BiddersFilterSetsBidResponseErrorsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15062,7 +15117,7 @@ func (c *BiddersFilterSetsBidResponsesWithoutBidsListCall) Header() http.Header func (c *BiddersFilterSetsBidResponsesWithoutBidsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15259,7 +15314,7 @@ func (c *BiddersFilterSetsFilteredBidRequestsListCall) Header() http.Header { func (c *BiddersFilterSetsFilteredBidRequestsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15453,7 +15508,7 @@ func (c *BiddersFilterSetsFilteredBidsListCall) Header() http.Header { func (c *BiddersFilterSetsFilteredBidsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15651,7 +15706,7 @@ func (c *BiddersFilterSetsFilteredBidsCreativesListCall) Header() http.Header { func (c *BiddersFilterSetsFilteredBidsCreativesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15859,7 +15914,7 @@ func (c *BiddersFilterSetsFilteredBidsDetailsListCall) Header() http.Header { func (c *BiddersFilterSetsFilteredBidsDetailsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16064,7 +16119,7 @@ func (c *BiddersFilterSetsImpressionMetricsListCall) Header() http.Header { func (c *BiddersFilterSetsImpressionMetricsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16258,7 +16313,7 @@ func (c *BiddersFilterSetsLosingBidsListCall) Header() http.Header { func (c *BiddersFilterSetsLosingBidsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16453,7 +16508,7 @@ func (c *BiddersFilterSetsNonBillableWinningBidsListCall) Header() http.Header { func (c *BiddersFilterSetsNonBillableWinningBidsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/adexperiencereport/v1/adexperiencereport-gen.go b/adexperiencereport/v1/adexperiencereport-gen.go index 16bb5999586..79df415b3e2 100644 --- a/adexperiencereport/v1/adexperiencereport-gen.go +++ b/adexperiencereport/v1/adexperiencereport-gen.go @@ -353,7 +353,7 @@ func (c *SitesGetCall) Header() http.Header { func (c *SitesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -493,7 +493,7 @@ func (c *ViolatingSitesListCall) Header() http.Header { func (c *ViolatingSitesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/admin/datatransfer/v1/admin-api.json b/admin/datatransfer/v1/admin-api.json index 7530fda3a38..b19743c531f 100644 --- a/admin/datatransfer/v1/admin-api.json +++ b/admin/datatransfer/v1/admin-api.json @@ -12,8 +12,8 @@ } }, "basePath": "", - "baseUrl": "https://www.googleapis.com/", - "batchPath": "batch/admin/datatransfer_v1", + "baseUrl": "https://admin.googleapis.com/", + "batchPath": "batch", "canonicalName": "DataTransfer", "description": "Admin SDK lets administrators of enterprise domains to view and manage resources like user, groups etc. It also provides audit and usage reports of domain.", "discoveryVersion": "v1", @@ -25,7 +25,7 @@ }, "id": "admin:datatransfer_v1", "kind": "discovery#restDescription", - "mtlsRootUrl": "https://www.mtls.googleapis.com/", + "mtlsRootUrl": "https://admin.mtls.googleapis.com/", "name": "admin", "ownerDomain": "google.com", "ownerName": "Google", @@ -272,11 +272,11 @@ } } }, - "revision": "20200810", - "rootUrl": "https://www.googleapis.com/", + "revision": "20201117", + "rootUrl": "https://admin.googleapis.com/", "schemas": { "Application": { - "description": "The JSON template for an Application resource. STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)", + "description": "Applications resources represent applications installed on the domain that support transferring ownership of user data.", "id": "Application", "properties": { "etag": { @@ -349,7 +349,7 @@ "type": "object" }, "ApplicationsListResponse": { - "description": "Template for a collection of Applications. STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)", + "description": "Template for a collection of Applications.", "id": "ApplicationsListResponse", "properties": { "applications": { @@ -376,7 +376,7 @@ "type": "object" }, "DataTransfer": { - "description": "The JSON template for a DataTransfer resource. STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)", + "description": "A Transfer resource represents the transfer of the ownership of user data between users.", "id": "DataTransfer", "properties": { "applicationDataTransfers": { @@ -420,7 +420,7 @@ "type": "object" }, "DataTransfersListResponse": { - "description": "Template for a collection of DataTransfer resources. STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)", + "description": "Template for a collection of DataTransfer resources.", "id": "DataTransfersListResponse", "properties": { "dataTransfers": { diff --git a/admin/datatransfer/v1/admin-gen.go b/admin/datatransfer/v1/admin-gen.go index 43cbd99d74e..35a76c16fdb 100644 --- a/admin/datatransfer/v1/admin-gen.go +++ b/admin/datatransfer/v1/admin-gen.go @@ -78,8 +78,8 @@ var _ = internaloption.WithDefaultEndpoint const apiId = "admin:datatransfer_v1" const apiName = "admin" const apiVersion = "datatransfer_v1" -const basePath = "https://www.googleapis.com/" -const mtlsBasePath = "https://www.mtls.googleapis.com/" +const basePath = "https://admin.googleapis.com/" +const mtlsBasePath = "https://admin.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( @@ -164,11 +164,8 @@ type TransfersService struct { s *Service } -// Application: The JSON template for an Application resource. -// STEPLADDER: Generated unstable field number for field 'kind'. (See -// http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable -// field number for field 'etag'. (See -// http://go/stepladder-help#fieldNumber) +// Application: Applications resources represent applications installed +// on the domain that support transferring ownership of user data. type Application struct { // Etag: Etag of the resource. Etag string `json:"etag,omitempty"` @@ -286,10 +283,6 @@ func (s *ApplicationTransferParam) MarshalJSON() ([]byte, error) { } // ApplicationsListResponse: Template for a collection of Applications. -// STEPLADDER: Generated unstable field number for field 'kind'. (See -// http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable -// field number for field 'etag'. (See -// http://go/stepladder-help#fieldNumber) type ApplicationsListResponse struct { // Applications: List of applications that support data transfer and are // also installed for the customer. @@ -332,11 +325,8 @@ func (s *ApplicationsListResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// DataTransfer: The JSON template for a DataTransfer resource. -// STEPLADDER: Generated unstable field number for field 'kind'. (See -// http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable -// field number for field 'etag'. (See -// http://go/stepladder-help#fieldNumber) +// DataTransfer: A Transfer resource represents the transfer of the +// ownership of user data between users. type DataTransfer struct { // ApplicationDataTransfers: List of per application data transfer // resources. It contains data transfer details of the applications @@ -397,10 +387,7 @@ func (s *DataTransfer) MarshalJSON() ([]byte, error) { } // DataTransfersListResponse: Template for a collection of DataTransfer -// resources. STEPLADDER: Generated unstable field number for field -// 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: -// Generated unstable field number for field 'etag'. (See -// http://go/stepladder-help#fieldNumber) +// resources. type DataTransfersListResponse struct { // DataTransfers: List of data transfer requests. DataTransfers []*DataTransfer `json:"dataTransfers,omitempty"` @@ -499,7 +486,7 @@ func (c *ApplicationsGetCall) Header() http.Header { func (c *ApplicationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -664,7 +651,7 @@ func (c *ApplicationsListCall) Header() http.Header { func (c *ApplicationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -836,7 +823,7 @@ func (c *TransfersGetCall) Header() http.Header { func (c *TransfersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -969,7 +956,7 @@ func (c *TransfersInsertCall) Header() http.Header { func (c *TransfersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1145,7 +1132,7 @@ func (c *TransfersListCall) Header() http.Header { func (c *TransfersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/admin/directory/v1/admin-api.json b/admin/directory/v1/admin-api.json index fea92269295..2d2317c2acd 100644 --- a/admin/directory/v1/admin-api.json +++ b/admin/directory/v1/admin-api.json @@ -87,8 +87,8 @@ } }, "basePath": "", - "baseUrl": "https://www.googleapis.com/", - "batchPath": "batch/admin/directory_v1", + "baseUrl": "https://admin.googleapis.com/", + "batchPath": "batch", "canonicalName": "directory", "description": "Admin SDK lets administrators of enterprise domains to view and manage resources like user, groups etc. It also provides audit and usage reports of domain.", "discoveryVersion": "v1", @@ -100,7 +100,7 @@ }, "id": "admin:directory_v1", "kind": "discovery#restDescription", - "mtlsRootUrl": "https://www.mtls.googleapis.com/", + "mtlsRootUrl": "https://admin.mtls.googleapis.com/", "name": "admin", "ownerDomain": "google.com", "ownerName": "Google", @@ -4139,8 +4139,8 @@ } } }, - "revision": "20201020", - "rootUrl": "https://www.googleapis.com/", + "revision": "20201117", + "rootUrl": "https://admin.googleapis.com/", "schemas": { "Alias": { "description": "JSON template for Alias object in Directory API.", @@ -4186,7 +4186,7 @@ "type": "object" }, "Asp": { - "description": "The template that returns individual ASP (Access Code) data. STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)", + "description": "The template that returns individual ASP (Access Code) data.", "id": "Asp", "properties": { "codeId": { @@ -4225,7 +4225,6 @@ "type": "object" }, "Asps": { - "description": "STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)", "id": "Asps", "properties": { "etag": { @@ -4531,7 +4530,6 @@ "type": "object" }, "ChromeOsDevice": { - "description": "STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)", "id": "ChromeOsDevice", "properties": { "activeTimeRanges": { @@ -4876,7 +4874,6 @@ "type": "object" }, "ChromeOsDevices": { - "description": "STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)", "id": "ChromeOsDevices", "properties": { "chromeosdevices": { @@ -4921,7 +4918,6 @@ "type": "object" }, "Customer": { - "description": "STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)", "id": "Customer", "properties": { "alternateEmail": { @@ -4966,7 +4962,6 @@ "type": "object" }, "CustomerPostalAddress": { - "description": "STEPLADDER: Generated unstable field number for field 'address_line2' to avoid collision. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'address_line3' to avoid collision. (See http://go/stepladder-help#fieldNumber)", "id": "CustomerPostalAddress", "properties": { "addressLine1": { @@ -5359,7 +5354,6 @@ "type": "object" }, "Group": { - "description": "STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)", "id": "Group", "properties": { "adminCreated": { @@ -5419,7 +5413,6 @@ "type": "object" }, "Groups": { - "description": "STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)", "id": "Groups", "properties": { "etag": { @@ -5772,7 +5765,7 @@ "type": "object" }, "OrgUnit": { - "description": "JSON template for Org Unit resource in Directory API. STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)", + "description": "JSON template for Org Unit resource in Directory API.", "id": "OrgUnit", "properties": { "blockInheritance": { @@ -5821,7 +5814,7 @@ "type": "object" }, "OrgUnits": { - "description": "JSON response template for List Organization Units operation in Directory API. STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)", + "description": "JSON response template for List Organization Units operation in Directory API.", "id": "OrgUnits", "properties": { "etag": { @@ -6054,7 +6047,7 @@ "type": "object" }, "Schema": { - "description": "JSON template for Schema resource in Directory API. STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)", + "description": "JSON template for Schema resource in Directory API.", "id": "Schema", "properties": { "displayName": { @@ -6105,7 +6098,7 @@ "type": "object" }, "SchemaFieldSpec": { - "description": "JSON template for FieldSpec resource for Schemas in Directory API. STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)", + "description": "JSON template for FieldSpec resource for Schemas in Directory API.", "id": "SchemaFieldSpec", "properties": { "displayName": { @@ -6185,7 +6178,7 @@ "type": "object" }, "Schemas": { - "description": "JSON response template for List Schema operation in Directory API. STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)", + "description": "JSON response template for List Schema operation in Directory API.", "id": "Schemas", "properties": { "etag": { @@ -6208,7 +6201,7 @@ "type": "object" }, "Token": { - "description": "JSON template for token resource in Directory API. STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)", + "description": "JSON template for token resource in Directory API.", "id": "Token", "properties": { "anonymous": { @@ -6251,7 +6244,7 @@ "type": "object" }, "Tokens": { - "description": "JSON response template for List tokens operation in Directory API. STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)", + "description": "JSON response template for List tokens operation in Directory API.", "id": "Tokens", "properties": { "etag": { @@ -6274,7 +6267,6 @@ "type": "object" }, "User": { - "description": "STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'external_ids' to avoid collision. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'relations' to avoid collision. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'addresses' to avoid collision. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'organizations' to avoid collision. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'phones' to avoid collision. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'languages' to avoid collision. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'posix_accounts' to avoid collision. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'ssh_public_keys' to avoid collision. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'notes' to avoid collision. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'websites' to avoid collision. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'locations' to avoid collision. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'keywords' to avoid collision. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'gender' to avoid collision. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'thumbnail_photo_etag' to avoid collision. (See http://go/stepladder-help#fieldNumber)", "id": "User", "properties": { "addresses": { @@ -6873,7 +6865,6 @@ "type": "object" }, "UserPhoto": { - "description": "STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)", "id": "UserPhoto", "properties": { "etag": { @@ -6921,7 +6912,7 @@ "type": "object" }, "UserPosixAccount": { - "description": "JSON template for a POSIX account entry. Description of the field family: go/fbs-posix.", + "description": "JSON template for a POSIX account entry.", "id": "UserPosixAccount", "properties": { "accountId": { @@ -7043,7 +7034,6 @@ "type": "object" }, "Users": { - "description": "STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)", "id": "Users", "properties": { "etag": { @@ -7074,7 +7064,7 @@ "type": "object" }, "VerificationCode": { - "description": "JSON template for verification codes in Directory API. STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)", + "description": "JSON template for verification codes in Directory API.", "id": "VerificationCode", "properties": { "etag": { @@ -7098,7 +7088,7 @@ "type": "object" }, "VerificationCodes": { - "description": "JSON response template for List verification codes operation in Directory API. STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)", + "description": "JSON response template for List verification codes operation in Directory API.", "id": "VerificationCodes", "properties": { "etag": { diff --git a/admin/directory/v1/admin-gen.go b/admin/directory/v1/admin-gen.go index dde127c1019..e729c0d2299 100644 --- a/admin/directory/v1/admin-gen.go +++ b/admin/directory/v1/admin-gen.go @@ -78,8 +78,8 @@ var _ = internaloption.WithDefaultEndpoint const apiId = "admin:directory_v1" const apiName = "admin" const apiVersion = "directory_v1" -const basePath = "https://www.googleapis.com/" -const mtlsBasePath = "https://www.mtls.googleapis.com/" +const basePath = "https://admin.googleapis.com/" +const mtlsBasePath = "https://admin.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( @@ -663,10 +663,6 @@ func (s *Aliases) MarshalJSON() ([]byte, error) { } // Asp: The template that returns individual ASP (Access Code) data. -// STEPLADDER: Generated unstable field number for field 'kind'. (See -// http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable -// field number for field 'etag'. (See -// http://go/stepladder-help#fieldNumber) type Asp struct { // CodeId: The unique ID of the ASP. CodeId int64 `json:"codeId,omitempty"` @@ -720,10 +716,6 @@ func (s *Asp) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Asps: STEPLADDER: Generated unstable field number for field 'kind'. -// (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated -// unstable field number for field 'etag'. (See -// http://go/stepladder-help#fieldNumber) type Asps struct { // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` @@ -1163,10 +1155,6 @@ func (s *Channel) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ChromeOsDevice: STEPLADDER: Generated unstable field number for field -// 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: -// Generated unstable field number for field 'etag'. (See -// http://go/stepladder-help#fieldNumber) type ChromeOsDevice struct { // ActiveTimeRanges: List of active time ranges (Read-only) ActiveTimeRanges []*ChromeOsDeviceActiveTimeRanges `json:"activeTimeRanges,omitempty"` @@ -1682,10 +1670,6 @@ func (s *ChromeOsDeviceAction) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ChromeOsDevices: STEPLADDER: Generated unstable field number for -// field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: -// Generated unstable field number for field 'etag'. (See -// http://go/stepladder-help#fieldNumber) type ChromeOsDevices struct { // Chromeosdevices: List of Chrome OS Device objects. Chromeosdevices []*ChromeOsDevice `json:"chromeosdevices,omitempty"` @@ -1754,10 +1738,6 @@ func (s *ChromeOsMoveDevicesToOu) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Customer: STEPLADDER: Generated unstable field number for field -// 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: -// Generated unstable field number for field 'etag'. (See -// http://go/stepladder-help#fieldNumber) type Customer struct { // AlternateEmail: The customer's secondary contact email address. This // email address cannot be on the same domain as the customerDomain @@ -1818,11 +1798,6 @@ func (s *Customer) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CustomerPostalAddress: STEPLADDER: Generated unstable field number -// for field 'address_line2' to avoid collision. (See -// http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable -// field number for field 'address_line3' to avoid collision. (See -// http://go/stepladder-help#fieldNumber) type CustomerPostalAddress struct { // AddressLine1: A customer's physical address. The address can be // composed of one to three lines. @@ -2404,10 +2379,6 @@ func (s *Features) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Group: STEPLADDER: Generated unstable field number for field 'kind'. -// (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated -// unstable field number for field 'etag'. (See -// http://go/stepladder-help#fieldNumber) type Group struct { // AdminCreated: Is the group created by admin (Read-only) * AdminCreated bool `json:"adminCreated,omitempty"` @@ -2466,10 +2437,6 @@ func (s *Group) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Groups: STEPLADDER: Generated unstable field number for field 'kind'. -// (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated -// unstable field number for field 'etag'. (See -// http://go/stepladder-help#fieldNumber) type Groups struct { // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` @@ -2904,10 +2871,6 @@ func (s *MobileDevices) MarshalJSON() ([]byte, error) { } // OrgUnit: JSON template for Org Unit resource in Directory API. -// STEPLADDER: Generated unstable field number for field 'kind'. (See -// http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable -// field number for field 'etag'. (See -// http://go/stepladder-help#fieldNumber) type OrgUnit struct { // BlockInheritance: Should block inheritance BlockInheritance bool `json:"blockInheritance,omitempty"` @@ -2965,10 +2928,7 @@ func (s *OrgUnit) MarshalJSON() ([]byte, error) { } // OrgUnits: JSON response template for List Organization Units -// operation in Directory API. STEPLADDER: Generated unstable field -// number for field 'kind'. (See http://go/stepladder-help#fieldNumber) -// STEPLADDER: Generated unstable field number for field 'etag'. (See -// http://go/stepladder-help#fieldNumber) +// operation in Directory API. type OrgUnits struct { // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` @@ -3313,10 +3273,6 @@ func (s *Roles) MarshalJSON() ([]byte, error) { } // Schema: JSON template for Schema resource in Directory API. -// STEPLADDER: Generated unstable field number for field 'kind'. (See -// http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable -// field number for field 'etag'. (See -// http://go/stepladder-help#fieldNumber) type Schema struct { // DisplayName: Display name for the schema. DisplayName string `json:"displayName,omitempty"` @@ -3364,10 +3320,7 @@ func (s *Schema) MarshalJSON() ([]byte, error) { } // SchemaFieldSpec: JSON template for FieldSpec resource for Schemas in -// Directory API. STEPLADDER: Generated unstable field number for field -// 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: -// Generated unstable field number for field 'etag'. (See -// http://go/stepladder-help#fieldNumber) +// Directory API. type SchemaFieldSpec struct { // DisplayName: Display Name of the field. DisplayName string `json:"displayName,omitempty"` @@ -3484,10 +3437,7 @@ func (s *SchemaFieldSpecNumericIndexingSpec) UnmarshalJSON(data []byte) error { } // Schemas: JSON response template for List Schema operation in -// Directory API. STEPLADDER: Generated unstable field number for field -// 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: -// Generated unstable field number for field 'etag'. (See -// http://go/stepladder-help#fieldNumber) +// Directory API. type Schemas struct { // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` @@ -3525,11 +3475,7 @@ func (s *Schemas) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Token: JSON template for token resource in Directory API. STEPLADDER: -// Generated unstable field number for field 'kind'. (See -// http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable -// field number for field 'etag'. (See -// http://go/stepladder-help#fieldNumber) +// Token: JSON template for token resource in Directory API. type Token struct { // Anonymous: Whether the application is registered with Google. The // value is true if the application has an anonymous Client ID. @@ -3588,10 +3534,7 @@ func (s *Token) MarshalJSON() ([]byte, error) { } // Tokens: JSON response template for List tokens operation in Directory -// API. STEPLADDER: Generated unstable field number for field 'kind'. -// (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated -// unstable field number for field 'etag'. (See -// http://go/stepladder-help#fieldNumber) +// API. type Tokens struct { // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` @@ -3630,38 +3573,6 @@ func (s *Tokens) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// User: STEPLADDER: Generated unstable field number for field 'kind'. -// (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated -// unstable field number for field 'etag'. (See -// http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable -// field number for field 'external_ids' to avoid collision. (See -// http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable -// field number for field 'relations' to avoid collision. (See -// http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable -// field number for field 'addresses' to avoid collision. (See -// http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable -// field number for field 'organizations' to avoid collision. (See -// http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable -// field number for field 'phones' to avoid collision. (See -// http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable -// field number for field 'languages' to avoid collision. (See -// http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable -// field number for field 'posix_accounts' to avoid collision. (See -// http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable -// field number for field 'ssh_public_keys' to avoid collision. (See -// http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable -// field number for field 'notes' to avoid collision. (See -// http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable -// field number for field 'websites' to avoid collision. (See -// http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable -// field number for field 'locations' to avoid collision. (See -// http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable -// field number for field 'keywords' to avoid collision. (See -// http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable -// field number for field 'gender' to avoid collision. (See -// http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable -// field number for field 'thumbnail_photo_etag' to avoid collision. -// (See http://go/stepladder-help#fieldNumber) type User struct { // Addresses: Addresses of User Addresses interface{} `json:"addresses,omitempty"` @@ -4402,10 +4313,6 @@ func (s *UserPhone) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// UserPhoto: STEPLADDER: Generated unstable field number for field -// 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: -// Generated unstable field number for field 'etag'. (See -// http://go/stepladder-help#fieldNumber) type UserPhoto struct { // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` @@ -4459,7 +4366,6 @@ func (s *UserPhoto) MarshalJSON() ([]byte, error) { } // UserPosixAccount: JSON template for a POSIX account entry. -// Description of the field family: go/fbs-posix. type UserPosixAccount struct { // AccountId: A POSIX account field identifier. AccountId string `json:"accountId,omitempty"` @@ -4653,10 +4559,6 @@ func (s *UserWebsite) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Users: STEPLADDER: Generated unstable field number for field 'kind'. -// (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated -// unstable field number for field 'etag'. (See -// http://go/stepladder-help#fieldNumber) type Users struct { // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` @@ -4702,10 +4604,7 @@ func (s *Users) MarshalJSON() ([]byte, error) { } // VerificationCode: JSON template for verification codes in Directory -// API. STEPLADDER: Generated unstable field number for field 'kind'. -// (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated -// unstable field number for field 'etag'. (See -// http://go/stepladder-help#fieldNumber) +// API. type VerificationCode struct { // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` @@ -4746,10 +4645,7 @@ func (s *VerificationCode) MarshalJSON() ([]byte, error) { } // VerificationCodes: JSON response template for List verification codes -// operation in Directory API. STEPLADDER: Generated unstable field -// number for field 'kind'. (See http://go/stepladder-help#fieldNumber) -// STEPLADDER: Generated unstable field number for field 'etag'. (See -// http://go/stepladder-help#fieldNumber) +// operation in Directory API. type VerificationCodes struct { // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` @@ -4834,7 +4730,7 @@ func (c *AspsDeleteCall) Header() http.Header { func (c *AspsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4957,7 +4853,7 @@ func (c *AspsGetCall) Header() http.Header { func (c *AspsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5109,7 +5005,7 @@ func (c *AspsListCall) Header() http.Header { func (c *AspsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5241,7 +5137,7 @@ func (c *ChannelsStopCall) Header() http.Header { func (c *ChannelsStopCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5346,7 +5242,7 @@ func (c *ChromeosdevicesActionCall) Header() http.Header { func (c *ChromeosdevicesActionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5489,7 +5385,7 @@ func (c *ChromeosdevicesGetCall) Header() http.Header { func (c *ChromeosdevicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5729,7 +5625,7 @@ func (c *ChromeosdevicesListCall) Header() http.Header { func (c *ChromeosdevicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5965,7 +5861,7 @@ func (c *ChromeosdevicesMoveDevicesToOuCall) Header() http.Header { func (c *ChromeosdevicesMoveDevicesToOuCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6098,7 +5994,7 @@ func (c *ChromeosdevicesPatchCall) Header() http.Header { func (c *ChromeosdevicesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6275,7 +6171,7 @@ func (c *ChromeosdevicesUpdateCall) Header() http.Header { func (c *ChromeosdevicesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6439,7 +6335,7 @@ func (c *CustomerDevicesChromeosIssueCommandCall) Header() http.Header { func (c *CustomerDevicesChromeosIssueCommandCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6601,7 +6497,7 @@ func (c *CustomerDevicesChromeosCommandsGetCall) Header() http.Header { func (c *CustomerDevicesChromeosCommandsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6762,7 +6658,7 @@ func (c *CustomersGetCall) Header() http.Header { func (c *CustomersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6897,7 +6793,7 @@ func (c *CustomersPatchCall) Header() http.Header { func (c *CustomersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7036,7 +6932,7 @@ func (c *CustomersUpdateCall) Header() http.Header { func (c *CustomersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7175,7 +7071,7 @@ func (c *DomainAliasesDeleteCall) Header() http.Header { func (c *DomainAliasesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7297,7 +7193,7 @@ func (c *DomainAliasesGetCall) Header() http.Header { func (c *DomainAliasesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7440,7 +7336,7 @@ func (c *DomainAliasesInsertCall) Header() http.Header { func (c *DomainAliasesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7595,7 +7491,7 @@ func (c *DomainAliasesListCall) Header() http.Header { func (c *DomainAliasesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7735,7 +7631,7 @@ func (c *DomainsDeleteCall) Header() http.Header { func (c *DomainsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7857,7 +7753,7 @@ func (c *DomainsGetCall) Header() http.Header { func (c *DomainsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8000,7 +7896,7 @@ func (c *DomainsInsertCall) Header() http.Header { func (c *DomainsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8148,7 +8044,7 @@ func (c *DomainsListCall) Header() http.Header { func (c *DomainsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8281,7 +8177,7 @@ func (c *GroupsDeleteCall) Header() http.Header { func (c *GroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8393,7 +8289,7 @@ func (c *GroupsGetCall) Header() http.Header { func (c *GroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8526,7 +8422,7 @@ func (c *GroupsInsertCall) Header() http.Header { func (c *GroupsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8732,7 +8628,7 @@ func (c *GroupsListCall) Header() http.Header { func (c *GroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8938,7 +8834,7 @@ func (c *GroupsPatchCall) Header() http.Header { func (c *GroupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9077,7 +8973,7 @@ func (c *GroupsUpdateCall) Header() http.Header { func (c *GroupsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9216,7 +9112,7 @@ func (c *GroupsAliasesDeleteCall) Header() http.Header { func (c *GroupsAliasesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9327,7 +9223,7 @@ func (c *GroupsAliasesInsertCall) Header() http.Header { func (c *GroupsAliasesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9475,7 +9371,7 @@ func (c *GroupsAliasesListCall) Header() http.Header { func (c *GroupsAliasesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9610,7 +9506,7 @@ func (c *MembersDeleteCall) Header() http.Header { func (c *MembersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9733,7 +9629,7 @@ func (c *MembersGetCall) Header() http.Header { func (c *MembersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9890,7 +9786,7 @@ func (c *MembersHasMemberCall) Header() http.Header { func (c *MembersHasMemberCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10035,7 +9931,7 @@ func (c *MembersInsertCall) Header() http.Header { func (c *MembersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10213,7 +10109,7 @@ func (c *MembersListCall) Header() http.Header { func (c *MembersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10396,7 +10292,7 @@ func (c *MembersPatchCall) Header() http.Header { func (c *MembersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10546,7 +10442,7 @@ func (c *MembersUpdateCall) Header() http.Header { func (c *MembersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10696,7 +10592,7 @@ func (c *MobiledevicesActionCall) Header() http.Header { func (c *MobiledevicesActionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10816,7 +10712,7 @@ func (c *MobiledevicesDeleteCall) Header() http.Header { func (c *MobiledevicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10951,7 +10847,7 @@ func (c *MobiledevicesGetCall) Header() http.Header { func (c *MobiledevicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11185,7 +11081,7 @@ func (c *MobiledevicesListCall) Header() http.Header { func (c *MobiledevicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11418,7 +11314,7 @@ func (c *OrgunitsDeleteCall) Header() http.Header { func (c *OrgunitsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11541,7 +11437,7 @@ func (c *OrgunitsGetCall) Header() http.Header { func (c *OrgunitsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11685,7 +11581,7 @@ func (c *OrgunitsInsertCall) Header() http.Header { func (c *OrgunitsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11852,7 +11748,7 @@ func (c *OrgunitsListCall) Header() http.Header { func (c *OrgunitsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12010,7 +11906,7 @@ func (c *OrgunitsPatchCall) Header() http.Header { func (c *OrgunitsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12160,7 +12056,7 @@ func (c *OrgunitsUpdateCall) Header() http.Header { func (c *OrgunitsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12317,7 +12213,7 @@ func (c *PrivilegesListCall) Header() http.Header { func (c *PrivilegesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12452,7 +12348,7 @@ func (c *ResourcesBuildingsDeleteCall) Header() http.Header { func (c *ResourcesBuildingsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12574,7 +12470,7 @@ func (c *ResourcesBuildingsGetCall) Header() http.Header { func (c *ResourcesBuildingsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12734,7 +12630,7 @@ func (c *ResourcesBuildingsInsertCall) Header() http.Header { func (c *ResourcesBuildingsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12914,7 +12810,7 @@ func (c *ResourcesBuildingsListCall) Header() http.Header { func (c *ResourcesBuildingsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13102,7 +12998,7 @@ func (c *ResourcesBuildingsPatchCall) Header() http.Header { func (c *ResourcesBuildingsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13286,7 +13182,7 @@ func (c *ResourcesBuildingsUpdateCall) Header() http.Header { func (c *ResourcesBuildingsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13451,7 +13347,7 @@ func (c *ResourcesCalendarsDeleteCall) Header() http.Header { func (c *ResourcesCalendarsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13573,7 +13469,7 @@ func (c *ResourcesCalendarsGetCall) Header() http.Header { func (c *ResourcesCalendarsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13716,7 +13612,7 @@ func (c *ResourcesCalendarsInsertCall) Header() http.Header { func (c *ResourcesCalendarsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13905,7 +13801,7 @@ func (c *ResourcesCalendarsListCall) Header() http.Header { func (c *ResourcesCalendarsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14086,7 +13982,7 @@ func (c *ResourcesCalendarsPatchCall) Header() http.Header { func (c *ResourcesCalendarsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14237,7 +14133,7 @@ func (c *ResourcesCalendarsUpdateCall) Header() http.Header { func (c *ResourcesCalendarsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14384,7 +14280,7 @@ func (c *ResourcesFeaturesDeleteCall) Header() http.Header { func (c *ResourcesFeaturesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14506,7 +14402,7 @@ func (c *ResourcesFeaturesGetCall) Header() http.Header { func (c *ResourcesFeaturesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14649,7 +14545,7 @@ func (c *ResourcesFeaturesInsertCall) Header() http.Header { func (c *ResourcesFeaturesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14811,7 +14707,7 @@ func (c *ResourcesFeaturesListCall) Header() http.Header { func (c *ResourcesFeaturesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14982,7 +14878,7 @@ func (c *ResourcesFeaturesPatchCall) Header() http.Header { func (c *ResourcesFeaturesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15131,7 +15027,7 @@ func (c *ResourcesFeaturesRenameCall) Header() http.Header { func (c *ResourcesFeaturesRenameCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15252,7 +15148,7 @@ func (c *ResourcesFeaturesUpdateCall) Header() http.Header { func (c *ResourcesFeaturesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15399,7 +15295,7 @@ func (c *RoleAssignmentsDeleteCall) Header() http.Header { func (c *RoleAssignmentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15521,7 +15417,7 @@ func (c *RoleAssignmentsGetCall) Header() http.Header { func (c *RoleAssignmentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15664,7 +15560,7 @@ func (c *RoleAssignmentsInsertCall) Header() http.Header { func (c *RoleAssignmentsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15842,7 +15738,7 @@ func (c *RoleAssignmentsListCall) Header() http.Header { func (c *RoleAssignmentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16021,7 +15917,7 @@ func (c *RolesDeleteCall) Header() http.Header { func (c *RolesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16143,7 +16039,7 @@ func (c *RolesGetCall) Header() http.Header { func (c *RolesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16286,7 +16182,7 @@ func (c *RolesInsertCall) Header() http.Header { func (c *RolesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16448,7 +16344,7 @@ func (c *RolesListCall) Header() http.Header { func (c *RolesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16619,7 +16515,7 @@ func (c *RolesPatchCall) Header() http.Header { func (c *RolesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16768,7 +16664,7 @@ func (c *RolesUpdateCall) Header() http.Header { func (c *RolesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16915,7 +16811,7 @@ func (c *SchemasDeleteCall) Header() http.Header { func (c *SchemasDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17037,7 +16933,7 @@ func (c *SchemasGetCall) Header() http.Header { func (c *SchemasGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17180,7 +17076,7 @@ func (c *SchemasInsertCall) Header() http.Header { func (c *SchemasInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17328,7 +17224,7 @@ func (c *SchemasListCall) Header() http.Header { func (c *SchemasListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17465,7 +17361,7 @@ func (c *SchemasPatchCall) Header() http.Header { func (c *SchemasPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17614,7 +17510,7 @@ func (c *SchemasUpdateCall) Header() http.Header { func (c *SchemasUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17761,7 +17657,7 @@ func (c *TokensDeleteCall) Header() http.Header { func (c *TokensDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17883,7 +17779,7 @@ func (c *TokensGetCall) Header() http.Header { func (c *TokensGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18035,7 +17931,7 @@ func (c *TokensListCall) Header() http.Header { func (c *TokensListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18167,7 +18063,7 @@ func (c *TwoStepVerificationTurnOffCall) Header() http.Header { func (c *TwoStepVerificationTurnOffCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18268,7 +18164,7 @@ func (c *UsersDeleteCall) Header() http.Header { func (c *UsersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18414,7 +18310,7 @@ func (c *UsersGetCall) Header() http.Header { func (c *UsersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18586,7 +18482,7 @@ func (c *UsersInsertCall) Header() http.Header { func (c *UsersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18825,7 +18721,7 @@ func (c *UsersListCall) Header() http.Header { func (c *UsersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19076,7 +18972,7 @@ func (c *UsersMakeAdminCall) Header() http.Header { func (c *UsersMakeAdminCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19187,7 +19083,7 @@ func (c *UsersPatchCall) Header() http.Header { func (c *UsersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19326,7 +19222,7 @@ func (c *UsersSignOutCall) Header() http.Header { func (c *UsersSignOutCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19429,7 +19325,7 @@ func (c *UsersUndeleteCall) Header() http.Header { func (c *UsersUndeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19540,7 +19436,7 @@ func (c *UsersUpdateCall) Header() http.Header { func (c *UsersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19795,7 +19691,7 @@ func (c *UsersWatchCall) Header() http.Header { func (c *UsersWatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20049,7 +19945,7 @@ func (c *UsersAliasesDeleteCall) Header() http.Header { func (c *UsersAliasesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20161,7 +20057,7 @@ func (c *UsersAliasesInsertCall) Header() http.Header { func (c *UsersAliasesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20310,7 +20206,7 @@ func (c *UsersAliasesListCall) Header() http.Header { func (c *UsersAliasesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20459,7 +20355,7 @@ func (c *UsersAliasesWatchCall) Header() http.Header { func (c *UsersAliasesWatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20614,7 +20510,7 @@ func (c *UsersPhotosDeleteCall) Header() http.Header { func (c *UsersPhotosDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20726,7 +20622,7 @@ func (c *UsersPhotosGetCall) Header() http.Header { func (c *UsersPhotosGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20861,7 +20757,7 @@ func (c *UsersPhotosPatchCall) Header() http.Header { func (c *UsersPhotosPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21000,7 +20896,7 @@ func (c *UsersPhotosUpdateCall) Header() http.Header { func (c *UsersPhotosUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21137,7 +21033,7 @@ func (c *VerificationCodesGenerateCall) Header() http.Header { func (c *VerificationCodesGenerateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21239,7 +21135,7 @@ func (c *VerificationCodesInvalidateCall) Header() http.Header { func (c *VerificationCodesInvalidateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21352,7 +21248,7 @@ func (c *VerificationCodesListCall) Header() http.Header { func (c *VerificationCodesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/admin/reports/v1/admin-api.json b/admin/reports/v1/admin-api.json index dc91de06f02..faaca8242d2 100644 --- a/admin/reports/v1/admin-api.json +++ b/admin/reports/v1/admin-api.json @@ -12,8 +12,8 @@ } }, "basePath": "", - "baseUrl": "https://www.googleapis.com/", - "batchPath": "batch/admin/reports_v1", + "baseUrl": "https://admin.googleapis.com/", + "batchPath": "batch", "canonicalName": "reports", "description": "Admin SDK lets administrators of enterprise domains to view and manage resources like user, groups etc. It also provides audit and usage reports of domain.", "discoveryVersion": "v1", @@ -25,7 +25,7 @@ }, "id": "admin:reports_v1", "kind": "discovery#restDescription", - "mtlsRootUrl": "https://www.mtls.googleapis.com/", + "mtlsRootUrl": "https://admin.mtls.googleapis.com/", "name": "admin", "ownerDomain": "google.com", "ownerName": "Google", @@ -635,8 +635,8 @@ } } }, - "revision": "20201020", - "rootUrl": "https://www.googleapis.com/", + "revision": "20201031", + "rootUrl": "https://admin.googleapis.com/", "schemas": { "Activities": { "description": "JSON template for a collection of activities.", diff --git a/admin/reports/v1/admin-gen.go b/admin/reports/v1/admin-gen.go index 0ccbd806efd..de8355c4448 100644 --- a/admin/reports/v1/admin-gen.go +++ b/admin/reports/v1/admin-gen.go @@ -78,8 +78,8 @@ var _ = internaloption.WithDefaultEndpoint const apiId = "admin:reports_v1" const apiName = "admin" const apiVersion = "reports_v1" -const basePath = "https://www.googleapis.com/" -const mtlsBasePath = "https://www.mtls.googleapis.com/" +const basePath = "https://admin.googleapis.com/" +const mtlsBasePath = "https://admin.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( @@ -1110,7 +1110,7 @@ func (c *ActivitiesListCall) Header() http.Header { func (c *ActivitiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1530,7 +1530,7 @@ func (c *ActivitiesWatchCall) Header() http.Header { func (c *ActivitiesWatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1783,7 +1783,7 @@ func (c *ChannelsStopCall) Header() http.Header { func (c *ChannelsStopCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1933,7 +1933,7 @@ func (c *CustomerUsageReportsGetCall) Header() http.Header { func (c *CustomerUsageReportsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2185,7 +2185,7 @@ func (c *EntityUsageReportsGetCall) Header() http.Header { func (c *EntityUsageReportsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2506,7 +2506,7 @@ func (c *UserUsageReportGetCall) Header() http.Header { func (c *UserUsageReportGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/admob/v1/admob-api.json b/admob/v1/admob-api.json index 2de1b964aaa..0adb16cec48 100644 --- a/admob/v1/admob-api.json +++ b/admob/v1/admob-api.json @@ -2,6 +2,9 @@ "auth": { "oauth2": { "scopes": { + "https://www.googleapis.com/auth/admob.readonly": { + "description": "See your AdMob data" + }, "https://www.googleapis.com/auth/admob.report": { "description": "See your AdMob data" } @@ -129,8 +132,10 @@ "$ref": "PublisherAccount" }, "scopes": [ + "https://www.googleapis.com/auth/admob.readonly", "https://www.googleapis.com/auth/admob.report" - ] + ], + "streamingType": "NONE" }, "list": { "description": "Lists the AdMob publisher account accessible with the client credential. Currently, all credentials have access to at most one AdMob account.", @@ -156,15 +161,17 @@ "$ref": "ListPublisherAccountsResponse" }, "scopes": [ + "https://www.googleapis.com/auth/admob.readonly", "https://www.googleapis.com/auth/admob.report" - ] + ], + "streamingType": "NONE" } }, "resources": { "mediationReport": { "methods": { "generate": { - "description": "Generates an AdMob Mediation report based on the provided report specification.", + "description": "Generates an AdMob Mediation report based on the provided report specification. Returns result of a server-side streaming RPC. The result is returned in a sequence of responses.", "flatPath": "v1/accounts/{accountsId}/mediationReport:generate", "httpMethod": "POST", "id": "admob.accounts.mediationReport.generate", @@ -188,15 +195,17 @@ "$ref": "GenerateMediationReportResponse" }, "scopes": [ + "https://www.googleapis.com/auth/admob.readonly", "https://www.googleapis.com/auth/admob.report" - ] + ], + "streamingType": "SERVER_SIDE" } } }, "networkReport": { "methods": { "generate": { - "description": "Generates an AdMob Network report based on the provided report specification.", + "description": "Generates an AdMob Network report based on the provided report specification. Returns result of a server-side streaming RPC. The result is returned in a sequence of responses.", "flatPath": "v1/accounts/{accountsId}/networkReport:generate", "httpMethod": "POST", "id": "admob.accounts.networkReport.generate", @@ -220,15 +229,17 @@ "$ref": "GenerateNetworkReportResponse" }, "scopes": [ + "https://www.googleapis.com/auth/admob.readonly", "https://www.googleapis.com/auth/admob.report" - ] + ], + "streamingType": "SERVER_SIDE" } } } } } }, - "revision": "20201022", + "revision": "20201117", "rootUrl": "https://admob.googleapis.com/", "schemas": { "Date": { diff --git a/admob/v1/admob-gen.go b/admob/v1/admob-gen.go index 3abe68dfd46..b9ecc9d75f0 100644 --- a/admob/v1/admob-gen.go +++ b/admob/v1/admob-gen.go @@ -23,6 +23,10 @@ // // Other authentication options // +// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// +// admobService, err := admob.NewService(ctx, option.WithScopes(admob.AdmobReportScope)) +// // To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: // // admobService, err := admob.NewService(ctx, option.WithAPIKey("AIza...")) @@ -79,6 +83,9 @@ const mtlsBasePath = "https://admob.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( + // See your AdMob data + AdmobReadonlyScope = "https://www.googleapis.com/auth/admob.readonly" + // See your AdMob data AdmobReportScope = "https://www.googleapis.com/auth/admob.report" ) @@ -86,6 +93,7 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { scopesOption := option.WithScopes( + "https://www.googleapis.com/auth/admob.readonly", "https://www.googleapis.com/auth/admob.report", ) // NOTE: prepend, so we don't override user-specified scopes. @@ -1473,7 +1481,7 @@ func (c *AccountsGetCall) Header() http.Header { func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1556,8 +1564,10 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*PublisherAccount, e // "$ref": "PublisherAccount" // }, // "scopes": [ + // "https://www.googleapis.com/auth/admob.readonly", // "https://www.googleapis.com/auth/admob.report" - // ] + // ], + // "streamingType": "NONE" // } } @@ -1633,7 +1643,7 @@ func (c *AccountsListCall) Header() http.Header { func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1715,8 +1725,10 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*ListPublisherAccou // "$ref": "ListPublisherAccountsResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/admob.readonly", // "https://www.googleapis.com/auth/admob.report" - // ] + // ], + // "streamingType": "NONE" // } } @@ -1754,7 +1766,8 @@ type AccountsMediationReportGenerateCall struct { } // Generate: Generates an AdMob Mediation report based on the provided -// report specification. +// report specification. Returns result of a server-side streaming RPC. +// The result is returned in a sequence of responses. func (r *AccountsMediationReportService) Generate(parent string, generatemediationreportrequest *GenerateMediationReportRequest) *AccountsMediationReportGenerateCall { c := &AccountsMediationReportGenerateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -1789,7 +1802,7 @@ func (c *AccountsMediationReportGenerateCall) Header() http.Header { func (c *AccountsMediationReportGenerateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1853,7 +1866,7 @@ func (c *AccountsMediationReportGenerateCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Generates an AdMob Mediation report based on the provided report specification.", + // "description": "Generates an AdMob Mediation report based on the provided report specification. Returns result of a server-side streaming RPC. The result is returned in a sequence of responses.", // "flatPath": "v1/accounts/{accountsId}/mediationReport:generate", // "httpMethod": "POST", // "id": "admob.accounts.mediationReport.generate", @@ -1877,8 +1890,10 @@ func (c *AccountsMediationReportGenerateCall) Do(opts ...googleapi.CallOption) ( // "$ref": "GenerateMediationReportResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/admob.readonly", // "https://www.googleapis.com/auth/admob.report" - // ] + // ], + // "streamingType": "SERVER_SIDE" // } } @@ -1895,7 +1910,8 @@ type AccountsNetworkReportGenerateCall struct { } // Generate: Generates an AdMob Network report based on the provided -// report specification. +// report specification. Returns result of a server-side streaming RPC. +// The result is returned in a sequence of responses. func (r *AccountsNetworkReportService) Generate(parent string, generatenetworkreportrequest *GenerateNetworkReportRequest) *AccountsNetworkReportGenerateCall { c := &AccountsNetworkReportGenerateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -1930,7 +1946,7 @@ func (c *AccountsNetworkReportGenerateCall) Header() http.Header { func (c *AccountsNetworkReportGenerateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1994,7 +2010,7 @@ func (c *AccountsNetworkReportGenerateCall) Do(opts ...googleapi.CallOption) (*G } return ret, nil // { - // "description": "Generates an AdMob Network report based on the provided report specification.", + // "description": "Generates an AdMob Network report based on the provided report specification. Returns result of a server-side streaming RPC. The result is returned in a sequence of responses.", // "flatPath": "v1/accounts/{accountsId}/networkReport:generate", // "httpMethod": "POST", // "id": "admob.accounts.networkReport.generate", @@ -2018,8 +2034,10 @@ func (c *AccountsNetworkReportGenerateCall) Do(opts ...googleapi.CallOption) (*G // "$ref": "GenerateNetworkReportResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/admob.readonly", // "https://www.googleapis.com/auth/admob.report" - // ] + // ], + // "streamingType": "SERVER_SIDE" // } } diff --git a/admob/v1beta/admob-api.json b/admob/v1beta/admob-api.json new file mode 100644 index 00000000000..9fbd1a30ec8 --- /dev/null +++ b/admob/v1beta/admob-api.json @@ -0,0 +1,1188 @@ +{ + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/admob.readonly": { + "description": "See your AdMob data" + }, + "https://www.googleapis.com/auth/admob.report": { + "description": "See your AdMob data" + } + } + } + }, + "basePath": "", + "baseUrl": "https://admob.googleapis.com/", + "batchPath": "batch", + "canonicalName": "AdMob", + "description": "The AdMob API allows publishers to programmatically get information about their AdMob account. ", + "discoveryVersion": "v1", + "documentationLink": "https://developers.google.com/admob/api/", + "fullyEncodeReservedExpansion": true, + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "id": "admob:v1beta", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://admob.mtls.googleapis.com/", + "name": "admob", + "ownerDomain": "google.com", + "ownerName": "Google", + "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, + "alt": { + "default": "json", + "description": "Data format for response.", + "enum": [ + "json", + "media", + "proto" + ], + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query", + "type": "string" + }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, + "fields": { + "description": "Selector specifying which fields to include in a partial response.", + "location": "query", + "type": "string" + }, + "key": { + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "location": "query", + "type": "string" + }, + "oauth_token": { + "description": "OAuth 2.0 token for the current user.", + "location": "query", + "type": "string" + }, + "prettyPrint": { + "default": "true", + "description": "Returns response with indentations and line breaks.", + "location": "query", + "type": "boolean" + }, + "quotaUser": { + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query", + "type": "string" + }, + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query", + "type": "string" + } + }, + "protocol": "rest", + "resources": { + "accounts": { + "methods": { + "get": { + "description": "Gets information about the specified AdMob publisher account.", + "flatPath": "v1beta/accounts/{accountsId}", + "httpMethod": "GET", + "id": "admob.accounts.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Resource name of the publisher account to retrieve. Example: accounts/pub-9876543210987654", + "location": "path", + "pattern": "^accounts/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+name}", + "response": { + "$ref": "PublisherAccount" + }, + "scopes": [ + "https://www.googleapis.com/auth/admob.readonly", + "https://www.googleapis.com/auth/admob.report" + ], + "streamingType": "NONE" + }, + "list": { + "description": "Lists the AdMob publisher account accessible with the client credential. Currently, all credentials have access to at most one AdMob account.", + "flatPath": "v1beta/accounts", + "httpMethod": "GET", + "id": "admob.accounts.list", + "parameterOrder": [], + "parameters": { + "pageSize": { + "description": "Maximum number of accounts to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The value returned by the last `ListPublisherAccountsResponse`; indicates that this is a continuation of a prior `ListPublisherAccounts` call, and that the system should return the next page of data.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta/accounts", + "response": { + "$ref": "ListPublisherAccountsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/admob.readonly", + "https://www.googleapis.com/auth/admob.report" + ], + "streamingType": "NONE" + } + }, + "resources": { + "adUnits": { + "methods": { + "list": { + "description": "List the ad units under the specified AdMob account.", + "flatPath": "v1beta/accounts/{accountsId}/adUnits", + "httpMethod": "GET", + "id": "admob.accounts.adUnits.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of ad units to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The value returned by the last `ListAdUnitsResponse`; indicates that this is a continuation of a prior `ListAdUnits` call, and that the system should return the next page of data.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Resource name of the account to list ad units for. Example: accounts/pub-9876543210987654", + "location": "path", + "pattern": "^accounts/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+parent}/adUnits", + "response": { + "$ref": "ListAdUnitsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/admob.readonly" + ], + "streamingType": "NONE" + } + } + }, + "apps": { + "methods": { + "list": { + "description": "List the apps under the specified AdMob account.", + "flatPath": "v1beta/accounts/{accountsId}/apps", + "httpMethod": "GET", + "id": "admob.accounts.apps.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of apps to return. If unspecified or 0, at most 1000 apps will be returned. The maximum value is 10,000; values above 10,000 will be coerced to 10,000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The value returned by the last `ListAppsResponse`; indicates that this is a continuation of a prior `ListApps` call, and that the system should return the next page of data.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Resource name of the account to list apps for. Example: accounts/pub-9876543210987654", + "location": "path", + "pattern": "^accounts/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+parent}/apps", + "response": { + "$ref": "ListAppsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/admob.readonly" + ], + "streamingType": "NONE" + } + } + }, + "mediationReport": { + "methods": { + "generate": { + "description": "Generates an AdMob Mediation report based on the provided report specification. Returns result of a server-side streaming RPC. The result is returned in a sequence of responses.", + "flatPath": "v1beta/accounts/{accountsId}/mediationReport:generate", + "httpMethod": "POST", + "id": "admob.accounts.mediationReport.generate", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Resource name of the account to generate the report for. Example: accounts/pub-9876543210987654", + "location": "path", + "pattern": "^accounts/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+parent}/mediationReport:generate", + "request": { + "$ref": "GenerateMediationReportRequest" + }, + "response": { + "$ref": "GenerateMediationReportResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/admob.readonly", + "https://www.googleapis.com/auth/admob.report" + ], + "streamingType": "SERVER_SIDE" + } + } + }, + "networkReport": { + "methods": { + "generate": { + "description": "Generates an AdMob Network report based on the provided report specification. Returns result of a server-side streaming RPC. The result is returned in a sequence of responses.", + "flatPath": "v1beta/accounts/{accountsId}/networkReport:generate", + "httpMethod": "POST", + "id": "admob.accounts.networkReport.generate", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Resource name of the account to generate the report for. Example: accounts/pub-9876543210987654", + "location": "path", + "pattern": "^accounts/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+parent}/networkReport:generate", + "request": { + "$ref": "GenerateNetworkReportRequest" + }, + "response": { + "$ref": "GenerateNetworkReportResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/admob.readonly", + "https://www.googleapis.com/auth/admob.report" + ], + "streamingType": "SERVER_SIDE" + } + } + } + } + } + }, + "revision": "20201117", + "rootUrl": "https://admob.googleapis.com/", + "schemas": { + "AdUnit": { + "description": "Describes an AdMob ad unit.", + "id": "AdUnit", + "properties": { + "adFormat": { + "description": "AdFormat of the ad unit. Possible values are as follows: \"BANNER\" - Banner ad format. \"BANNER_INTERSTITIAL\" - Legacy format that can be used as either banner or interstitial. This format can no longer be created but can be targeted by mediation groups. \"INTERSTITIAL\" - A full screen ad. Supported ad types are \"RICH_MEDIA\" and \"VIDEO\". \"NATIVE\" - Native ad format. \"REWARDED\" - An ad that, once viewed, gets a callback verifying the view so that a reward can be given to the user. Supported ad types are \"RICH_MEDIA\" (interactive) and video where video can not be excluded.", + "type": "string" + }, + "adTypes": { + "description": "Ad media type supported by this ad unit. Possible values as follows: \"RICH_MEDIA\" - Text, image, and other non-video media. \"VIDEO\" - Video media.", + "items": { + "type": "string" + }, + "type": "array" + }, + "adUnitId": { + "description": "The externally visible ID of the ad unit which can be used to integrate with the AdMob SDK. This is a read only property. Example: ca-app-pub-9876543210987654/0123456789", + "type": "string" + }, + "appId": { + "description": "The externally visible ID of the app this ad unit is associated with. Example: ca-app-pub-9876543210987654~0123456789", + "type": "string" + }, + "displayName": { + "description": "The display name of the ad unit as shown in the AdMob UI, which is provided by the user. The maximum length allowed is 80 characters.", + "type": "string" + }, + "name": { + "description": "Resource name for this ad unit. Format is accounts/{publisher_id}/adUnits/{ad_unit_id_fragment} Example: accounts/pub-9876543210987654/adUnits/0123456789", + "type": "string" + } + }, + "type": "object" + }, + "App": { + "description": "Describes an AdMob app for a specific platform (For example: Android or iOS).", + "id": "App", + "properties": { + "appId": { + "description": "The externally visible ID of the app which can be used to integrate with the AdMob SDK. This is a read only property. Example: ca-app-pub-9876543210987654~0123456789", + "type": "string" + }, + "linkedAppInfo": { + "$ref": "AppLinkedAppInfo", + "description": "Immutable. The information for an app that is linked to an app store. This field is present if and only if the app is linked to an app store." + }, + "manualAppInfo": { + "$ref": "AppManualAppInfo", + "description": "The information for an app that is not linked to any app store. After an app is linked, this information is still retrivable. If no name is provided for the app upon creation, a placeholder name will be used." + }, + "name": { + "description": "Resource name for this app. Format is accounts/{publisher_id}/apps/{app_id_fragment} Example: accounts/pub-9876543210987654/apps/0123456789", + "type": "string" + }, + "platform": { + "description": "Describes the platform of the app. Limited to \"IOS\" and \"ANDROID\".", + "type": "string" + } + }, + "type": "object" + }, + "AppLinkedAppInfo": { + "description": "Information from the app store if the app is linked to an app store.", + "id": "AppLinkedAppInfo", + "properties": { + "appStoreId": { + "description": "The app store ID of the app; present if and only if the app is linked to an app store. If the app is added to the Google Play store, it will be the application ID of the app. For example: \"com.example.myapp\". See https://developer.android.com/studio/build/application-id. If the app is added to the Apple App Store, it will be app store ID. For example \"105169111\". Note that setting the app store id is considered an irreversible action. Once an app is linked, it cannot be unlinked.", + "type": "string" + }, + "displayName": { + "description": "Output only. Display name of the app as it appears in the app store. This is an output-only field, and may be empty if the app cannot be found in the store.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "AppManualAppInfo": { + "description": "Information provided for manual apps which are not linked to an application store (Example: Google Play, App Store).", + "id": "AppManualAppInfo", + "properties": { + "displayName": { + "description": "The display name of the app as shown in the AdMob UI, which is provided by the user. The maximum length allowed is 80 characters.", + "type": "string" + } + }, + "type": "object" + }, + "Date": { + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.", + "id": "Date", + "properties": { + "day": { + "description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.", + "format": "int32", + "type": "integer" + }, + "month": { + "description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.", + "format": "int32", + "type": "integer" + }, + "year": { + "description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "DateRange": { + "description": "Specification of a single date range. Both dates are inclusive.", + "id": "DateRange", + "properties": { + "endDate": { + "$ref": "Date", + "description": "End date of the date range, inclusive. Must be greater than or equal to the start date." + }, + "startDate": { + "$ref": "Date", + "description": "Start date of the date range, inclusive. Must be less than or equal to the end date." + } + }, + "type": "object" + }, + "GenerateMediationReportRequest": { + "description": "Request to generate an AdMob Mediation report.", + "id": "GenerateMediationReportRequest", + "properties": { + "reportSpec": { + "$ref": "MediationReportSpec", + "description": "Network report specification." + } + }, + "type": "object" + }, + "GenerateMediationReportResponse": { + "description": "The streaming response for the AdMob Mediation report where the first response contains the report header, then a stream of row responses, and finally a footer as the last response message. For example: [{ \"header\": { \"date_range\": { \"start_date\": {\"year\": 2018, \"month\": 9, \"day\": 1}, \"end_date\": {\"year\": 2018, \"month\": 9, \"day\": 1} }, \"localization_settings\": { \"currency_code\": \"USD\", \"language_code\": \"en-US\" } } }, { \"row\": { \"dimension_values\": { \"DATE\": {\"value\": \"20180918\"}, \"APP\": { \"value\": \"ca-app-pub-8123415297019784~1001342552\", \"display_label\": \"My app name!\" } }, \"metric_values\": { \"ESTIMATED_EARNINGS\": {\"decimal_value\": \"1324746\"} } } }, { \"footer\": {\"matching_row_count\": 1} }]", + "id": "GenerateMediationReportResponse", + "properties": { + "footer": { + "$ref": "ReportFooter", + "description": "Additional information about the generated report, such as warnings about the data." + }, + "header": { + "$ref": "ReportHeader", + "description": "Report generation settings that describes the report contents, such as the report date range and localization settings." + }, + "row": { + "$ref": "ReportRow", + "description": "Actual report data." + } + }, + "type": "object" + }, + "GenerateNetworkReportRequest": { + "description": "Request to generate an AdMob Network report.", + "id": "GenerateNetworkReportRequest", + "properties": { + "reportSpec": { + "$ref": "NetworkReportSpec", + "description": "Network report specification." + } + }, + "type": "object" + }, + "GenerateNetworkReportResponse": { + "description": "The streaming response for the AdMob Network report where the first response contains the report header, then a stream of row responses, and finally a footer as the last response message. For example: [{ \"header\": { \"dateRange\": { \"startDate\": {\"year\": 2018, \"month\": 9, \"day\": 1}, \"endDate\": {\"year\": 2018, \"month\": 9, \"day\": 1} }, \"localizationSettings\": { \"currencyCode\": \"USD\", \"languageCode\": \"en-US\" } } }, { \"row\": { \"dimensionValues\": { \"DATE\": {\"value\": \"20180918\"}, \"APP\": { \"value\": \"ca-app-pub-8123415297019784~1001342552\", displayLabel: \"My app name!\" } }, \"metricValues\": { \"ESTIMATED_EARNINGS\": {\"microsValue\": 6500000} } } }, { \"footer\": {\"matchingRowCount\": 1} }]", + "id": "GenerateNetworkReportResponse", + "properties": { + "footer": { + "$ref": "ReportFooter", + "description": "Additional information about the generated report, such as warnings about the data." + }, + "header": { + "$ref": "ReportHeader", + "description": "Report generation settings that describes the report contents, such as the report date range and localization settings." + }, + "row": { + "$ref": "ReportRow", + "description": "Actual report data." + } + }, + "type": "object" + }, + "ListAdUnitsResponse": { + "description": "Response for the ad units list request.", + "id": "ListAdUnitsResponse", + "properties": { + "adUnits": { + "description": "The resulting ad units for the requested account.", + "items": { + "$ref": "AdUnit" + }, + "type": "array" + }, + "nextPageToken": { + "description": "If not empty, indicates that there may be more ad units for the request; this value should be passed in a new `ListAdUnitsRequest`.", + "type": "string" + } + }, + "type": "object" + }, + "ListAppsResponse": { + "description": "Response for the apps list request.", + "id": "ListAppsResponse", + "properties": { + "apps": { + "description": "The resulting apps for the requested account.", + "items": { + "$ref": "App" + }, + "type": "array" + }, + "nextPageToken": { + "description": "If not empty, indicates that there may be more apps for the request; this value should be passed in a new `ListAppsRequest`.", + "type": "string" + } + }, + "type": "object" + }, + "ListPublisherAccountsResponse": { + "description": "Response for the publisher account list request.", + "id": "ListPublisherAccountsResponse", + "properties": { + "account": { + "description": "Publisher that the client credentials can access.", + "items": { + "$ref": "PublisherAccount" + }, + "type": "array" + }, + "nextPageToken": { + "description": "If not empty, indicates that there might be more accounts for the request; you must pass this value in a new `ListPublisherAccountsRequest`.", + "type": "string" + } + }, + "type": "object" + }, + "LocalizationSettings": { + "description": "Localization settings for reports, such as currency and language. It affects how metrics are calculated.", + "id": "LocalizationSettings", + "properties": { + "currencyCode": { + "description": "Currency code of the earning related metrics, which is the 3-letter code defined in ISO 4217. The daily average rate is used for the currency conversion. Defaults to the account currency code if unspecified.", + "type": "string" + }, + "languageCode": { + "description": "Language used for any localized text, such as some dimension value display labels. The language tag defined in the IETF BCP47. Defaults to 'en-US' if unspecified.", + "type": "string" + } + }, + "type": "object" + }, + "MediationReportSpec": { + "description": "The specification for generating an AdMob Mediation report. For example, the specification to get observed ECPM sliced by ad source and app for the 'US' and 'CN' countries can look like the following example: { \"date_range\": { \"start_date\": {\"year\": 2018, \"month\": 9, \"day\": 1}, \"end_date\": {\"year\": 2018, \"month\": 9, \"day\": 30} }, \"dimensions\": [\"AD_SOURCE\", \"APP\", \"COUNTRY\"], \"metrics\": [\"OBSERVED_ECPM\"], \"dimension_filters\": [ { \"dimension\": \"COUNTRY\", \"matches_any\": {\"values\": [{\"value\": \"US\", \"value\": \"CN\"}]} } ], \"sort_conditions\": [ {\"dimension\":\"APP\", order: \"ASCENDING\"} ], \"localization_settings\": { \"currency_code\": \"USD\", \"language_code\": \"en-US\" } } For a better understanding, you can treat the preceding specification like the following pseudo SQL: SELECT AD_SOURCE, APP, COUNTRY, OBSERVED_ECPM FROM MEDIATION_REPORT WHERE DATE \u003e= '2018-09-01' AND DATE \u003c= '2018-09-30' AND COUNTRY IN ('US', 'CN') GROUP BY AD_SOURCE, APP, COUNTRY ORDER BY APP ASC;", + "id": "MediationReportSpec", + "properties": { + "dateRange": { + "$ref": "DateRange", + "description": "The date range for which the report is generated." + }, + "dimensionFilters": { + "description": "Describes which report rows to match based on their dimension values.", + "items": { + "$ref": "MediationReportSpecDimensionFilter" + }, + "type": "array" + }, + "dimensions": { + "description": "List of dimensions of the report. The value combination of these dimensions determines the row of the report. If no dimensions are specified, the report returns a single row of requested metrics for the entire account.", + "items": { + "enum": [ + "DIMENSION_UNSPECIFIED", + "DATE", + "MONTH", + "WEEK", + "AD_SOURCE", + "AD_SOURCE_INSTANCE", + "AD_UNIT", + "APP", + "MEDIATION_GROUP", + "COUNTRY", + "FORMAT", + "PLATFORM" + ], + "enumDescriptions": [ + "Default value for an unset field. Do not use.", + "A date in the YYYY-MM-DD format (for example, \"2018-12-21\"). Requests can specify at most one time dimension.", + "A month in the YYYY-MM format (for example, \"2018-12\"). Requests can specify at most one time dimension.", + "The date of the first day of a week in the YYYY-MM-DD format (for example, \"2018-12-21\"). Requests can specify at most one time dimension.", + "The [unique ID of the ad source](/admob/api/v1/ad_sources) (for example, \"5450213213286189855\" and \"AdMob Network\" as label value).", + "The unique ID of the ad source instance (for example, \"ca-app-pub-1234#5678\" and \"AdMob (default)\" as label value).", + "The unique ID of the ad unit (for example, \"ca-app-pub-1234/8790\"). If AD_UNIT dimension is specified, then APP is included automatically.", + "The unique ID of the mobile application (for example, \"ca-app-pub-1234~1234\").", + "The unique ID of the mediation group (for example, \"ca-app-pub-1234:mg:1234\" and \"AdMob (default)\" as label value).", + "CLDR country code of the place where the ad views/clicks occur (for example, \"US\" or \"FR\"). This is a geography dimension.", + "Format of the ad unit (for example, \"banner\", \"native\"), an ad delivery dimension.", + "Mobile OS platform of the app (for example, \"Android\" or \"iOS\")." + ], + "type": "string" + }, + "type": "array" + }, + "localizationSettings": { + "$ref": "LocalizationSettings", + "description": "Localization settings of the report." + }, + "maxReportRows": { + "description": "Maximum number of report data rows to return. If the value is not set, the API returns as many rows as possible, up to 100000. Acceptable values are 1-100000, inclusive. Values larger than 100000 return an error.", + "format": "int32", + "type": "integer" + }, + "metrics": { + "description": "List of metrics of the report. A report must specify at least one metric.", + "items": { + "enum": [ + "METRIC_UNSPECIFIED", + "AD_REQUESTS", + "CLICKS", + "ESTIMATED_EARNINGS", + "IMPRESSIONS", + "IMPRESSION_CTR", + "MATCHED_REQUESTS", + "MATCH_RATE", + "OBSERVED_ECPM" + ], + "enumDescriptions": [ + "Default value for an unset field. Do not use.", + "The number of requests. The value is an integer.", + "The number of times a user clicks an ad. The value is an integer.", + "The estimated earnings of the AdMob publisher. The currency unit (USD, EUR, or other) of the earning metrics are determined by the localization setting for currency. The amount is in micros. For example, $6.50 would be represented as 6500000. Estimated earnings per mediation group and per ad source instance level is supported dating back to October 20, 2019. Third-party estimated earnings will show 0 for dates prior to October 20, 2019.", + "The total number of ads shown to users. The value is an integer.", + "The ratio of clicks over impressions. The value is a double precision (approximate) decimal value.", + "The number of times ads are returned in response to a request. The value is an integer.", + "The ratio of matched ad requests over the total ad requests. The value is a double precision (approximate) decimal value.", + "The third-party ad network's estimated average eCPM. The currency unit (USD, EUR, or other) of the earning metrics are determined by the localization setting for currency. The amount is in micros. For example, $2.30 would be represented as 2300000. The estimated average eCPM per mediation group and per ad source instance level is supported dating back to October 20, 2019. Third-party estimated average eCPM will show 0 for dates prior to October 20, 2019." + ], + "type": "string" + }, + "type": "array" + }, + "sortConditions": { + "description": "Describes the sorting of report rows. The order of the condition in the list defines its precedence; the earlier the condition, the higher its precedence. If no sort conditions are specified, the row ordering is undefined.", + "items": { + "$ref": "MediationReportSpecSortCondition" + }, + "type": "array" + }, + "timeZone": { + "description": "A report time zone. Accepts an IANA TZ name values, such as \"America/Los_Angeles.\" If no time zone is defined, the account default takes effect. Check default value by the get account action. **Warning:** The \"America/Los_Angeles\" is the only supported value at the moment.", + "type": "string" + } + }, + "type": "object" + }, + "MediationReportSpecDimensionFilter": { + "description": "Describes which report rows to match based on their dimension values.", + "id": "MediationReportSpecDimensionFilter", + "properties": { + "dimension": { + "description": "Applies the filter criterion to the specified dimension.", + "enum": [ + "DIMENSION_UNSPECIFIED", + "DATE", + "MONTH", + "WEEK", + "AD_SOURCE", + "AD_SOURCE_INSTANCE", + "AD_UNIT", + "APP", + "MEDIATION_GROUP", + "COUNTRY", + "FORMAT", + "PLATFORM" + ], + "enumDescriptions": [ + "Default value for an unset field. Do not use.", + "A date in the YYYY-MM-DD format (for example, \"2018-12-21\"). Requests can specify at most one time dimension.", + "A month in the YYYY-MM format (for example, \"2018-12\"). Requests can specify at most one time dimension.", + "The date of the first day of a week in the YYYY-MM-DD format (for example, \"2018-12-21\"). Requests can specify at most one time dimension.", + "The [unique ID of the ad source](/admob/api/v1/ad_sources) (for example, \"5450213213286189855\" and \"AdMob Network\" as label value).", + "The unique ID of the ad source instance (for example, \"ca-app-pub-1234#5678\" and \"AdMob (default)\" as label value).", + "The unique ID of the ad unit (for example, \"ca-app-pub-1234/8790\"). If AD_UNIT dimension is specified, then APP is included automatically.", + "The unique ID of the mobile application (for example, \"ca-app-pub-1234~1234\").", + "The unique ID of the mediation group (for example, \"ca-app-pub-1234:mg:1234\" and \"AdMob (default)\" as label value).", + "CLDR country code of the place where the ad views/clicks occur (for example, \"US\" or \"FR\"). This is a geography dimension.", + "Format of the ad unit (for example, \"banner\", \"native\"), an ad delivery dimension.", + "Mobile OS platform of the app (for example, \"Android\" or \"iOS\")." + ], + "type": "string" + }, + "matchesAny": { + "$ref": "StringList", + "description": "Matches a row if its value for the specified dimension is in one of the values specified in this condition." + } + }, + "type": "object" + }, + "MediationReportSpecSortCondition": { + "description": "Sorting direction to be applied on a dimension or a metric.", + "id": "MediationReportSpecSortCondition", + "properties": { + "dimension": { + "description": "Sort by the specified dimension.", + "enum": [ + "DIMENSION_UNSPECIFIED", + "DATE", + "MONTH", + "WEEK", + "AD_SOURCE", + "AD_SOURCE_INSTANCE", + "AD_UNIT", + "APP", + "MEDIATION_GROUP", + "COUNTRY", + "FORMAT", + "PLATFORM" + ], + "enumDescriptions": [ + "Default value for an unset field. Do not use.", + "A date in the YYYY-MM-DD format (for example, \"2018-12-21\"). Requests can specify at most one time dimension.", + "A month in the YYYY-MM format (for example, \"2018-12\"). Requests can specify at most one time dimension.", + "The date of the first day of a week in the YYYY-MM-DD format (for example, \"2018-12-21\"). Requests can specify at most one time dimension.", + "The [unique ID of the ad source](/admob/api/v1/ad_sources) (for example, \"5450213213286189855\" and \"AdMob Network\" as label value).", + "The unique ID of the ad source instance (for example, \"ca-app-pub-1234#5678\" and \"AdMob (default)\" as label value).", + "The unique ID of the ad unit (for example, \"ca-app-pub-1234/8790\"). If AD_UNIT dimension is specified, then APP is included automatically.", + "The unique ID of the mobile application (for example, \"ca-app-pub-1234~1234\").", + "The unique ID of the mediation group (for example, \"ca-app-pub-1234:mg:1234\" and \"AdMob (default)\" as label value).", + "CLDR country code of the place where the ad views/clicks occur (for example, \"US\" or \"FR\"). This is a geography dimension.", + "Format of the ad unit (for example, \"banner\", \"native\"), an ad delivery dimension.", + "Mobile OS platform of the app (for example, \"Android\" or \"iOS\")." + ], + "type": "string" + }, + "metric": { + "description": "Sort by the specified metric.", + "enum": [ + "METRIC_UNSPECIFIED", + "AD_REQUESTS", + "CLICKS", + "ESTIMATED_EARNINGS", + "IMPRESSIONS", + "IMPRESSION_CTR", + "MATCHED_REQUESTS", + "MATCH_RATE", + "OBSERVED_ECPM" + ], + "enumDescriptions": [ + "Default value for an unset field. Do not use.", + "The number of requests. The value is an integer.", + "The number of times a user clicks an ad. The value is an integer.", + "The estimated earnings of the AdMob publisher. The currency unit (USD, EUR, or other) of the earning metrics are determined by the localization setting for currency. The amount is in micros. For example, $6.50 would be represented as 6500000. Estimated earnings per mediation group and per ad source instance level is supported dating back to October 20, 2019. Third-party estimated earnings will show 0 for dates prior to October 20, 2019.", + "The total number of ads shown to users. The value is an integer.", + "The ratio of clicks over impressions. The value is a double precision (approximate) decimal value.", + "The number of times ads are returned in response to a request. The value is an integer.", + "The ratio of matched ad requests over the total ad requests. The value is a double precision (approximate) decimal value.", + "The third-party ad network's estimated average eCPM. The currency unit (USD, EUR, or other) of the earning metrics are determined by the localization setting for currency. The amount is in micros. For example, $2.30 would be represented as 2300000. The estimated average eCPM per mediation group and per ad source instance level is supported dating back to October 20, 2019. Third-party estimated average eCPM will show 0 for dates prior to October 20, 2019." + ], + "type": "string" + }, + "order": { + "description": "Sorting order of the dimension or metric.", + "enum": [ + "SORT_ORDER_UNSPECIFIED", + "ASCENDING", + "DESCENDING" + ], + "enumDescriptions": [ + "Default value for an unset field. Do not use.", + "Sort dimension value or metric value in ascending order.", + "Sort dimension value or metric value in descending order." + ], + "type": "string" + } + }, + "type": "object" + }, + "NetworkReportSpec": { + "description": "The specification for generating an AdMob Network report. For example, the specification to get clicks and estimated earnings for only the 'US' and 'CN' countries can look like the following example: { 'date_range': { 'start_date': {'year': 2018, 'month': 9, 'day': 1}, 'end_date': {'year': 2018, 'month': 9, 'day': 30} }, 'dimensions': ['DATE', 'APP', 'COUNTRY'], 'metrics': ['CLICKS', 'ESTIMATED_EARNINGS'], 'dimension_filters': [ { 'dimension': 'COUNTRY', 'matches_any': {'values': [{'value': 'US', 'value': 'CN'}]} } ], 'sort_conditions': [ {'dimension':'APP', order: 'ASCENDING'}, {'metric':'CLICKS', order: 'DESCENDING'} ], 'localization_settings': { 'currency_code': 'USD', 'language_code': 'en-US' } } For a better understanding, you can treat the preceding specification like the following pseudo SQL: SELECT DATE, APP, COUNTRY, CLICKS, ESTIMATED_EARNINGS FROM NETWORK_REPORT WHERE DATE \u003e= '2018-09-01' AND DATE \u003c= '2018-09-30' AND COUNTRY IN ('US', 'CN') GROUP BY DATE, APP, COUNTRY ORDER BY APP ASC, CLICKS DESC;", + "id": "NetworkReportSpec", + "properties": { + "dateRange": { + "$ref": "DateRange", + "description": "The date range for which the report is generated." + }, + "dimensionFilters": { + "description": "Describes which report rows to match based on their dimension values.", + "items": { + "$ref": "NetworkReportSpecDimensionFilter" + }, + "type": "array" + }, + "dimensions": { + "description": "List of dimensions of the report. The value combination of these dimensions determines the row of the report. If no dimensions are specified, the report returns a single row of requested metrics for the entire account.", + "items": { + "enum": [ + "DIMENSION_UNSPECIFIED", + "DATE", + "MONTH", + "WEEK", + "AD_UNIT", + "APP", + "AD_TYPE", + "COUNTRY", + "FORMAT", + "PLATFORM" + ], + "enumDescriptions": [ + "Default value for an unset field. Do not use.", + "A date in the YYYY-MM-DD format (for example, \"2018-12-21\"). Requests can specify at most one time dimension.", + "A month in the YYYY-MM format (for example, \"2018-12\"). Requests can specify at most one time dimension.", + "The date of the first day of a week in the YYYY-MM-DD format (for example, \"2018-12-21\"). Requests can specify at most one time dimension.", + "The unique ID of the ad unit (for example, \"ca-app-pub-1234/1234\"). If AD_UNIT dimension is specified, then APP is included automatically.", + "The unique ID of the mobile application (for example, \"ca-app-pub-1234~1234\").", + "Type of the ad (for example, \"text\" or \"image\"), an ad delivery dimension. **Warning:** The dimension is incompatible with [AD_REQUESTS](#Metric.ENUM_VALUES.AD_REQUESTS), [MATCH_RATE](#Metric.ENUM_VALUES.MATCH_RATE) and [IMPRESSION_RPM](#Metric.ENUM_VALUES.IMPRESSION_RPM) metrics.", + "CLDR country code of the place where the ad views/clicks occur (for example, \"US\" or \"FR\"). This is a geography dimension.", + "Format of the ad unit (for example, \"banner\", \"native\"), an ad delivery dimension.", + "Mobile OS platform of the app (for example, \"Android\" or \"iOS\")." + ], + "type": "string" + }, + "type": "array" + }, + "localizationSettings": { + "$ref": "LocalizationSettings", + "description": "Localization settings of the report." + }, + "maxReportRows": { + "description": "Maximum number of report data rows to return. If the value is not set, the API returns as many rows as possible, up to 100000. Acceptable values are 1-100000, inclusive. Values larger than 100000 return an error.", + "format": "int32", + "type": "integer" + }, + "metrics": { + "description": "List of metrics of the report. A report must specify at least one metric.", + "items": { + "enum": [ + "METRIC_UNSPECIFIED", + "AD_REQUESTS", + "CLICKS", + "ESTIMATED_EARNINGS", + "IMPRESSIONS", + "IMPRESSION_CTR", + "IMPRESSION_RPM", + "MATCHED_REQUESTS", + "MATCH_RATE", + "SHOW_RATE" + ], + "enumDescriptions": [ + "Default value for an unset field. Do not use.", + "The number of ad requests. The value is an integer. **Warning:** The metric is incompatible with [AD_TYPE](#Dimension.ENUM_VALUES.AD_TYPE) dimension.", + "The number of times a user clicks an ad. The value is an integer.", + "The estimated earnings of the AdMob publisher. The currency unit (USD, EUR, or other) of the earning metrics are determined by the localization setting for currency. The amount is in micros. For example, $6.50 would be represented as 6500000.", + "The total number of ads shown to users. The value is an integer.", + "The ratio of clicks over impressions. The value is a double precision (approximate) decimal value.", + "The estimated earnings per thousand ad impressions. The value is in micros. For example, $1.03 would be represented as 1030000. Equivalent to eCPM in the AdMob UI. **Warning:** The metric is incompatible with [AD_TYPE](#Dimension.ENUM_VALUES.AD_TYPE) dimension.", + "The number of times ads are returned in response to a request. The value is an integer.", + "The ratio of matched ad requests over the total ad requests. The value is a double precision (approximate) decimal value. **Warning:** The metric is incompatible with [AD_TYPE](#Dimension.ENUM_VALUES.AD_TYPE) dimension.", + "The ratio of ads that are displayed over ads that are returned, defined as impressions / matched requests. The value is a double precision (approximate) decimal value." + ], + "type": "string" + }, + "type": "array" + }, + "sortConditions": { + "description": "Describes the sorting of report rows. The order of the condition in the list defines its precedence; the earlier the condition, the higher its precedence. If no sort conditions are specified, the row ordering is undefined.", + "items": { + "$ref": "NetworkReportSpecSortCondition" + }, + "type": "array" + }, + "timeZone": { + "description": "A report time zone. Accepts an IANA TZ name values, such as \"America/Los_Angeles.\" If no time zone is defined, the account default takes effect. Check default value by the get account action. **Warning:** The \"America/Los_Angeles\" is the only supported value at the moment.", + "type": "string" + } + }, + "type": "object" + }, + "NetworkReportSpecDimensionFilter": { + "description": "Describes which report rows to match based on their dimension values.", + "id": "NetworkReportSpecDimensionFilter", + "properties": { + "dimension": { + "description": "Applies the filter criterion to the specified dimension.", + "enum": [ + "DIMENSION_UNSPECIFIED", + "DATE", + "MONTH", + "WEEK", + "AD_UNIT", + "APP", + "AD_TYPE", + "COUNTRY", + "FORMAT", + "PLATFORM" + ], + "enumDescriptions": [ + "Default value for an unset field. Do not use.", + "A date in the YYYY-MM-DD format (for example, \"2018-12-21\"). Requests can specify at most one time dimension.", + "A month in the YYYY-MM format (for example, \"2018-12\"). Requests can specify at most one time dimension.", + "The date of the first day of a week in the YYYY-MM-DD format (for example, \"2018-12-21\"). Requests can specify at most one time dimension.", + "The unique ID of the ad unit (for example, \"ca-app-pub-1234/1234\"). If AD_UNIT dimension is specified, then APP is included automatically.", + "The unique ID of the mobile application (for example, \"ca-app-pub-1234~1234\").", + "Type of the ad (for example, \"text\" or \"image\"), an ad delivery dimension. **Warning:** The dimension is incompatible with [AD_REQUESTS](#Metric.ENUM_VALUES.AD_REQUESTS), [MATCH_RATE](#Metric.ENUM_VALUES.MATCH_RATE) and [IMPRESSION_RPM](#Metric.ENUM_VALUES.IMPRESSION_RPM) metrics.", + "CLDR country code of the place where the ad views/clicks occur (for example, \"US\" or \"FR\"). This is a geography dimension.", + "Format of the ad unit (for example, \"banner\", \"native\"), an ad delivery dimension.", + "Mobile OS platform of the app (for example, \"Android\" or \"iOS\")." + ], + "type": "string" + }, + "matchesAny": { + "$ref": "StringList", + "description": "Matches a row if its value for the specified dimension is in one of the values specified in this condition." + } + }, + "type": "object" + }, + "NetworkReportSpecSortCondition": { + "description": "Sorting direction to be applied on a dimension or a metric.", + "id": "NetworkReportSpecSortCondition", + "properties": { + "dimension": { + "description": "Sort by the specified dimension.", + "enum": [ + "DIMENSION_UNSPECIFIED", + "DATE", + "MONTH", + "WEEK", + "AD_UNIT", + "APP", + "AD_TYPE", + "COUNTRY", + "FORMAT", + "PLATFORM" + ], + "enumDescriptions": [ + "Default value for an unset field. Do not use.", + "A date in the YYYY-MM-DD format (for example, \"2018-12-21\"). Requests can specify at most one time dimension.", + "A month in the YYYY-MM format (for example, \"2018-12\"). Requests can specify at most one time dimension.", + "The date of the first day of a week in the YYYY-MM-DD format (for example, \"2018-12-21\"). Requests can specify at most one time dimension.", + "The unique ID of the ad unit (for example, \"ca-app-pub-1234/1234\"). If AD_UNIT dimension is specified, then APP is included automatically.", + "The unique ID of the mobile application (for example, \"ca-app-pub-1234~1234\").", + "Type of the ad (for example, \"text\" or \"image\"), an ad delivery dimension. **Warning:** The dimension is incompatible with [AD_REQUESTS](#Metric.ENUM_VALUES.AD_REQUESTS), [MATCH_RATE](#Metric.ENUM_VALUES.MATCH_RATE) and [IMPRESSION_RPM](#Metric.ENUM_VALUES.IMPRESSION_RPM) metrics.", + "CLDR country code of the place where the ad views/clicks occur (for example, \"US\" or \"FR\"). This is a geography dimension.", + "Format of the ad unit (for example, \"banner\", \"native\"), an ad delivery dimension.", + "Mobile OS platform of the app (for example, \"Android\" or \"iOS\")." + ], + "type": "string" + }, + "metric": { + "description": "Sort by the specified metric.", + "enum": [ + "METRIC_UNSPECIFIED", + "AD_REQUESTS", + "CLICKS", + "ESTIMATED_EARNINGS", + "IMPRESSIONS", + "IMPRESSION_CTR", + "IMPRESSION_RPM", + "MATCHED_REQUESTS", + "MATCH_RATE", + "SHOW_RATE" + ], + "enumDescriptions": [ + "Default value for an unset field. Do not use.", + "The number of ad requests. The value is an integer. **Warning:** The metric is incompatible with [AD_TYPE](#Dimension.ENUM_VALUES.AD_TYPE) dimension.", + "The number of times a user clicks an ad. The value is an integer.", + "The estimated earnings of the AdMob publisher. The currency unit (USD, EUR, or other) of the earning metrics are determined by the localization setting for currency. The amount is in micros. For example, $6.50 would be represented as 6500000.", + "The total number of ads shown to users. The value is an integer.", + "The ratio of clicks over impressions. The value is a double precision (approximate) decimal value.", + "The estimated earnings per thousand ad impressions. The value is in micros. For example, $1.03 would be represented as 1030000. Equivalent to eCPM in the AdMob UI. **Warning:** The metric is incompatible with [AD_TYPE](#Dimension.ENUM_VALUES.AD_TYPE) dimension.", + "The number of times ads are returned in response to a request. The value is an integer.", + "The ratio of matched ad requests over the total ad requests. The value is a double precision (approximate) decimal value. **Warning:** The metric is incompatible with [AD_TYPE](#Dimension.ENUM_VALUES.AD_TYPE) dimension.", + "The ratio of ads that are displayed over ads that are returned, defined as impressions / matched requests. The value is a double precision (approximate) decimal value." + ], + "type": "string" + }, + "order": { + "description": "Sorting order of the dimension or metric.", + "enum": [ + "SORT_ORDER_UNSPECIFIED", + "ASCENDING", + "DESCENDING" + ], + "enumDescriptions": [ + "Default value for an unset field. Do not use.", + "Sort dimension value or metric value in ascending order.", + "Sort dimension value or metric value in descending order." + ], + "type": "string" + } + }, + "type": "object" + }, + "PublisherAccount": { + "description": "A publisher account contains information relevant to the use of this API, such as the time zone used for the reports.", + "id": "PublisherAccount", + "properties": { + "currencyCode": { + "description": "Currency code of the earning-related metrics, which is the 3-letter code defined in ISO 4217. The daily average rate is used for the currency conversion.", + "type": "string" + }, + "name": { + "description": "Resource name of this account. Format is accounts/{publisher_id}.", + "type": "string" + }, + "publisherId": { + "description": "The unique ID by which this publisher account can be identified in the API requests (for example, pub-1234567890).", + "type": "string" + }, + "reportingTimeZone": { + "description": "The time zone that is used in reports that are generated for this account. The value is a time-zone ID as specified by the CLDR project, for example, \"America/Los_Angeles\".", + "type": "string" + } + }, + "type": "object" + }, + "ReportFooter": { + "description": "Groups data available after report generation, for example, warnings and row counts. Always sent as the last message in the stream response.", + "id": "ReportFooter", + "properties": { + "matchingRowCount": { + "description": "Total number of rows that matched the request. Warning: This count does NOT always match the number of rows in the response. Do not make that assumption when processing the response.", + "format": "int64", + "type": "string" + }, + "warnings": { + "description": "Warnings associated with generation of the report.", + "items": { + "$ref": "ReportWarning" + }, + "type": "array" + } + }, + "type": "object" + }, + "ReportHeader": { + "description": "Groups data helps to treat the generated report. Always sent as a first message in the stream response.", + "id": "ReportHeader", + "properties": { + "dateRange": { + "$ref": "DateRange", + "description": "The date range for which the report is generated. This is identical to the range specified in the report request." + }, + "localizationSettings": { + "$ref": "LocalizationSettings", + "description": "Localization settings of the report. This is identical to the settings in the report request." + }, + "reportingTimeZone": { + "description": "The report time zone. The value is a time-zone ID as specified by the CLDR project, for example, \"America/Los_Angeles\".", + "type": "string" + } + }, + "type": "object" + }, + "ReportRow": { + "description": "A row of the returning report.", + "id": "ReportRow", + "properties": { + "dimensionValues": { + "additionalProperties": { + "$ref": "ReportRowDimensionValue" + }, + "description": "Map of dimension values in a row, with keys as enum name of the dimensions.", + "type": "object" + }, + "metricValues": { + "additionalProperties": { + "$ref": "ReportRowMetricValue" + }, + "description": "Map of metric values in a row, with keys as enum name of the metrics. If a metric being requested has no value returned, the map will not include it.", + "type": "object" + } + }, + "type": "object" + }, + "ReportRowDimensionValue": { + "description": "Representation of a dimension value.", + "id": "ReportRowDimensionValue", + "properties": { + "displayLabel": { + "description": "The localized string representation of the value. If unspecified, the display label should be derived from the value.", + "type": "string" + }, + "value": { + "description": "Dimension value in the format specified in the report's spec Dimension enum.", + "type": "string" + } + }, + "type": "object" + }, + "ReportRowMetricValue": { + "description": "Representation of a metric value.", + "id": "ReportRowMetricValue", + "properties": { + "doubleValue": { + "description": "Double precision (approximate) decimal values. Rates are from 0 to 1.", + "format": "double", + "type": "number" + }, + "integerValue": { + "description": "Metric integer value.", + "format": "int64", + "type": "string" + }, + "microsValue": { + "description": "Amount in micros. One million is equivalent to one unit. Currency value is in the unit (USD, EUR or other) specified by the request. For example, $6.50 whould be represented as 6500000 micros.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "ReportWarning": { + "description": "Warnings associated with generation of the report.", + "id": "ReportWarning", + "properties": { + "description": { + "description": "Describes the details of the warning message, in English.", + "type": "string" + }, + "type": { + "description": "Type of the warning.", + "enum": [ + "TYPE_UNSPECIFIED", + "DATA_BEFORE_ACCOUNT_TIMEZONE_CHANGE", + "DATA_DELAYED", + "OTHER", + "REPORT_CURRENCY_NOT_ACCOUNT_CURRENCY" + ], + "enumDescriptions": [ + "Default value for an unset field. Do not use.", + "Some data in this report is aggregated based on a time zone different from the requested time zone. This could happen if a local time-zone report has the start time before the last time this time zone changed. The description field will contain the date of the last time zone change.", + "There is an unusual delay in processing the source data for the requested date range. The report results might be less up to date than usual. AdMob is aware of the issue and is actively working to resolve it.", + "Warnings that are exposed without a specific type. Useful when new warning types are added but the API is not changed yet.", + "The currency being requested is not the account currency. The earning metrics will be based on the requested currency, and thus not a good estimation of the final payment anymore, due to the currency rate fluctuation." + ], + "type": "string" + } + }, + "type": "object" + }, + "StringList": { + "description": "List of string values.", + "id": "StringList", + "properties": { + "values": { + "description": "The string values.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + } + }, + "servicePath": "", + "title": "AdMob API", + "version": "v1beta", + "version_module": true +} \ No newline at end of file diff --git a/admob/v1beta/admob-gen.go b/admob/v1beta/admob-gen.go new file mode 100644 index 00000000000..9138aace3a5 --- /dev/null +++ b/admob/v1beta/admob-gen.go @@ -0,0 +1,2712 @@ +// Copyright 2020 Google LLC. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated file. DO NOT EDIT. + +// Package admob provides access to the AdMob API. +// +// For product documentation, see: https://developers.google.com/admob/api/ +// +// Creating a client +// +// Usage example: +// +// import "google.golang.org/api/admob/v1beta" +// ... +// ctx := context.Background() +// admobService, err := admob.NewService(ctx) +// +// In this example, Google Application Default Credentials are used for authentication. +// +// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// +// Other authentication options +// +// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// +// admobService, err := admob.NewService(ctx, option.WithScopes(admob.AdmobReportScope)) +// +// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// +// admobService, err := admob.NewService(ctx, option.WithAPIKey("AIza...")) +// +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// +// config := &oauth2.Config{...} +// // ... +// token, err := config.Exchange(ctx, ...) +// admobService, err := admob.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) +// +// See https://godoc.org/google.golang.org/api/option/ for details on options. +package admob // import "google.golang.org/api/admob/v1beta" + +import ( + "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + googleapi "google.golang.org/api/googleapi" + gensupport "google.golang.org/api/internal/gensupport" + option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" + htransport "google.golang.org/api/transport/http" +) + +// Always reference these packages, just in case the auto-generated code +// below doesn't. +var _ = bytes.NewBuffer +var _ = strconv.Itoa +var _ = fmt.Sprintf +var _ = json.NewDecoder +var _ = io.Copy +var _ = url.Parse +var _ = gensupport.MarshalJSON +var _ = googleapi.Version +var _ = errors.New +var _ = strings.Replace +var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint + +const apiId = "admob:v1beta" +const apiName = "admob" +const apiVersion = "v1beta" +const basePath = "https://admob.googleapis.com/" +const mtlsBasePath = "https://admob.mtls.googleapis.com/" + +// OAuth2 scopes used by this API. +const ( + // See your AdMob data + AdmobReadonlyScope = "https://www.googleapis.com/auth/admob.readonly" + + // See your AdMob data + AdmobReportScope = "https://www.googleapis.com/auth/admob.report" +) + +// NewService creates a new Service. +func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + scopesOption := option.WithScopes( + "https://www.googleapis.com/auth/admob.readonly", + "https://www.googleapis.com/auth/admob.report", + ) + // NOTE: prepend, so we don't override user-specified scopes. + opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + client, endpoint, err := htransport.NewClient(ctx, opts...) + if err != nil { + return nil, err + } + s, err := New(client) + if err != nil { + return nil, err + } + if endpoint != "" { + s.BasePath = endpoint + } + return s, nil +} + +// New creates a new Service. It uses the provided http.Client for requests. +// +// Deprecated: please use NewService instead. +// To provide a custom HTTP client, use option.WithHTTPClient. +// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. +func New(client *http.Client) (*Service, error) { + if client == nil { + return nil, errors.New("client is nil") + } + s := &Service{client: client, BasePath: basePath} + s.Accounts = NewAccountsService(s) + return s, nil +} + +type Service struct { + client *http.Client + BasePath string // API endpoint base URL + UserAgent string // optional additional User-Agent fragment + + Accounts *AccountsService +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewAccountsService(s *Service) *AccountsService { + rs := &AccountsService{s: s} + rs.AdUnits = NewAccountsAdUnitsService(s) + rs.Apps = NewAccountsAppsService(s) + rs.MediationReport = NewAccountsMediationReportService(s) + rs.NetworkReport = NewAccountsNetworkReportService(s) + return rs +} + +type AccountsService struct { + s *Service + + AdUnits *AccountsAdUnitsService + + Apps *AccountsAppsService + + MediationReport *AccountsMediationReportService + + NetworkReport *AccountsNetworkReportService +} + +func NewAccountsAdUnitsService(s *Service) *AccountsAdUnitsService { + rs := &AccountsAdUnitsService{s: s} + return rs +} + +type AccountsAdUnitsService struct { + s *Service +} + +func NewAccountsAppsService(s *Service) *AccountsAppsService { + rs := &AccountsAppsService{s: s} + return rs +} + +type AccountsAppsService struct { + s *Service +} + +func NewAccountsMediationReportService(s *Service) *AccountsMediationReportService { + rs := &AccountsMediationReportService{s: s} + return rs +} + +type AccountsMediationReportService struct { + s *Service +} + +func NewAccountsNetworkReportService(s *Service) *AccountsNetworkReportService { + rs := &AccountsNetworkReportService{s: s} + return rs +} + +type AccountsNetworkReportService struct { + s *Service +} + +// AdUnit: Describes an AdMob ad unit. +type AdUnit struct { + // AdFormat: AdFormat of the ad unit. Possible values are as follows: + // "BANNER" - Banner ad format. "BANNER_INTERSTITIAL" - Legacy format + // that can be used as either banner or interstitial. This format can no + // longer be created but can be targeted by mediation groups. + // "INTERSTITIAL" - A full screen ad. Supported ad types are + // "RICH_MEDIA" and "VIDEO". "NATIVE" - Native ad format. "REWARDED" - + // An ad that, once viewed, gets a callback verifying the view so that a + // reward can be given to the user. Supported ad types are "RICH_MEDIA" + // (interactive) and video where video can not be excluded. + AdFormat string `json:"adFormat,omitempty"` + + // AdTypes: Ad media type supported by this ad unit. Possible values as + // follows: "RICH_MEDIA" - Text, image, and other non-video media. + // "VIDEO" - Video media. + AdTypes []string `json:"adTypes,omitempty"` + + // AdUnitId: The externally visible ID of the ad unit which can be used + // to integrate with the AdMob SDK. This is a read only property. + // Example: ca-app-pub-9876543210987654/0123456789 + AdUnitId string `json:"adUnitId,omitempty"` + + // AppId: The externally visible ID of the app this ad unit is + // associated with. Example: ca-app-pub-9876543210987654~0123456789 + AppId string `json:"appId,omitempty"` + + // DisplayName: The display name of the ad unit as shown in the AdMob + // UI, which is provided by the user. The maximum length allowed is 80 + // characters. + DisplayName string `json:"displayName,omitempty"` + + // Name: Resource name for this ad unit. Format is + // accounts/{publisher_id}/adUnits/{ad_unit_id_fragment} Example: + // accounts/pub-9876543210987654/adUnits/0123456789 + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AdFormat") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AdFormat") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AdUnit) MarshalJSON() ([]byte, error) { + type NoMethod AdUnit + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// App: Describes an AdMob app for a specific platform (For example: +// Android or iOS). +type App struct { + // AppId: The externally visible ID of the app which can be used to + // integrate with the AdMob SDK. This is a read only property. Example: + // ca-app-pub-9876543210987654~0123456789 + AppId string `json:"appId,omitempty"` + + // LinkedAppInfo: Immutable. The information for an app that is linked + // to an app store. This field is present if and only if the app is + // linked to an app store. + LinkedAppInfo *AppLinkedAppInfo `json:"linkedAppInfo,omitempty"` + + // ManualAppInfo: The information for an app that is not linked to any + // app store. After an app is linked, this information is still + // retrivable. If no name is provided for the app upon creation, a + // placeholder name will be used. + ManualAppInfo *AppManualAppInfo `json:"manualAppInfo,omitempty"` + + // Name: Resource name for this app. Format is + // accounts/{publisher_id}/apps/{app_id_fragment} Example: + // accounts/pub-9876543210987654/apps/0123456789 + Name string `json:"name,omitempty"` + + // Platform: Describes the platform of the app. Limited to "IOS" and + // "ANDROID". + Platform string `json:"platform,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AppId") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AppId") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *App) MarshalJSON() ([]byte, error) { + type NoMethod App + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppLinkedAppInfo: Information from the app store if the app is linked +// to an app store. +type AppLinkedAppInfo struct { + // AppStoreId: The app store ID of the app; present if and only if the + // app is linked to an app store. If the app is added to the Google Play + // store, it will be the application ID of the app. For example: + // "com.example.myapp". See + // https://developer.android.com/studio/build/application-id. If the app + // is added to the Apple App Store, it will be app store ID. For example + // "105169111". Note that setting the app store id is considered an + // irreversible action. Once an app is linked, it cannot be unlinked. + AppStoreId string `json:"appStoreId,omitempty"` + + // DisplayName: Output only. Display name of the app as it appears in + // the app store. This is an output-only field, and may be empty if the + // app cannot be found in the store. + DisplayName string `json:"displayName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AppStoreId") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AppStoreId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppLinkedAppInfo) MarshalJSON() ([]byte, error) { + type NoMethod AppLinkedAppInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppManualAppInfo: Information provided for manual apps which are not +// linked to an application store (Example: Google Play, App Store). +type AppManualAppInfo struct { + // DisplayName: The display name of the app as shown in the AdMob UI, + // which is provided by the user. The maximum length allowed is 80 + // characters. + DisplayName string `json:"displayName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisplayName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppManualAppInfo) MarshalJSON() ([]byte, error) { + type NoMethod AppManualAppInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Date: Represents a whole or partial calendar date, such as a +// birthday. The time of day and time zone are either specified +// elsewhere or are insignificant. The date is relative to the Gregorian +// Calendar. This can represent one of the following: * A full date, +// with non-zero year, month, and day values * A month and day value, +// with a zero year, such as an anniversary * A year on its own, with +// zero month and day values * A year and month value, with a zero day, +// such as a credit card expiration date Related types are +// google.type.TimeOfDay and `google.protobuf.Timestamp`. +type Date struct { + // Day: Day of a month. Must be from 1 to 31 and valid for the year and + // month, or 0 to specify a year by itself or a year and month where the + // day isn't significant. + Day int64 `json:"day,omitempty"` + + // Month: Month of a year. Must be from 1 to 12, or 0 to specify a year + // without a month and day. + Month int64 `json:"month,omitempty"` + + // Year: Year of the date. Must be from 1 to 9999, or 0 to specify a + // date without a year. + Year int64 `json:"year,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Day") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Day") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Date) MarshalJSON() ([]byte, error) { + type NoMethod Date + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DateRange: Specification of a single date range. Both dates are +// inclusive. +type DateRange struct { + // EndDate: End date of the date range, inclusive. Must be greater than + // or equal to the start date. + EndDate *Date `json:"endDate,omitempty"` + + // StartDate: Start date of the date range, inclusive. Must be less than + // or equal to the end date. + StartDate *Date `json:"startDate,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndDate") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EndDate") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DateRange) MarshalJSON() ([]byte, error) { + type NoMethod DateRange + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GenerateMediationReportRequest: Request to generate an AdMob +// Mediation report. +type GenerateMediationReportRequest struct { + // ReportSpec: Network report specification. + ReportSpec *MediationReportSpec `json:"reportSpec,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ReportSpec") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ReportSpec") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GenerateMediationReportRequest) MarshalJSON() ([]byte, error) { + type NoMethod GenerateMediationReportRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GenerateMediationReportResponse: The streaming response for the AdMob +// Mediation report where the first response contains the report header, +// then a stream of row responses, and finally a footer as the last +// response message. For example: [{ "header": { "date_range": { +// "start_date": {"year": 2018, "month": 9, "day": 1}, "end_date": +// {"year": 2018, "month": 9, "day": 1} }, "localization_settings": { +// "currency_code": "USD", "language_code": "en-US" } } }, { "row": { +// "dimension_values": { "DATE": {"value": "20180918"}, "APP": { +// "value": "ca-app-pub-8123415297019784~1001342552", "display_label": +// "My app name!" } }, "metric_values": { "ESTIMATED_EARNINGS": +// {"decimal_value": "1324746"} } } }, { "footer": +// {"matching_row_count": 1} }] +type GenerateMediationReportResponse struct { + // Footer: Additional information about the generated report, such as + // warnings about the data. + Footer *ReportFooter `json:"footer,omitempty"` + + // Header: Report generation settings that describes the report + // contents, such as the report date range and localization settings. + Header *ReportHeader `json:"header,omitempty"` + + // Row: Actual report data. + Row *ReportRow `json:"row,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Footer") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Footer") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GenerateMediationReportResponse) MarshalJSON() ([]byte, error) { + type NoMethod GenerateMediationReportResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GenerateNetworkReportRequest: Request to generate an AdMob Network +// report. +type GenerateNetworkReportRequest struct { + // ReportSpec: Network report specification. + ReportSpec *NetworkReportSpec `json:"reportSpec,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ReportSpec") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ReportSpec") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GenerateNetworkReportRequest) MarshalJSON() ([]byte, error) { + type NoMethod GenerateNetworkReportRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GenerateNetworkReportResponse: The streaming response for the AdMob +// Network report where the first response contains the report header, +// then a stream of row responses, and finally a footer as the last +// response message. For example: [{ "header": { "dateRange": { +// "startDate": {"year": 2018, "month": 9, "day": 1}, "endDate": +// {"year": 2018, "month": 9, "day": 1} }, "localizationSettings": { +// "currencyCode": "USD", "languageCode": "en-US" } } }, { "row": { +// "dimensionValues": { "DATE": {"value": "20180918"}, "APP": { "value": +// "ca-app-pub-8123415297019784~1001342552", displayLabel: "My app +// name!" } }, "metricValues": { "ESTIMATED_EARNINGS": {"microsValue": +// 6500000} } } }, { "footer": {"matchingRowCount": 1} }] +type GenerateNetworkReportResponse struct { + // Footer: Additional information about the generated report, such as + // warnings about the data. + Footer *ReportFooter `json:"footer,omitempty"` + + // Header: Report generation settings that describes the report + // contents, such as the report date range and localization settings. + Header *ReportHeader `json:"header,omitempty"` + + // Row: Actual report data. + Row *ReportRow `json:"row,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Footer") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Footer") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GenerateNetworkReportResponse) MarshalJSON() ([]byte, error) { + type NoMethod GenerateNetworkReportResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListAdUnitsResponse: Response for the ad units list request. +type ListAdUnitsResponse struct { + // AdUnits: The resulting ad units for the requested account. + AdUnits []*AdUnit `json:"adUnits,omitempty"` + + // NextPageToken: If not empty, indicates that there may be more ad + // units for the request; this value should be passed in a new + // `ListAdUnitsRequest`. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AdUnits") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AdUnits") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListAdUnitsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListAdUnitsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListAppsResponse: Response for the apps list request. +type ListAppsResponse struct { + // Apps: The resulting apps for the requested account. + Apps []*App `json:"apps,omitempty"` + + // NextPageToken: If not empty, indicates that there may be more apps + // for the request; this value should be passed in a new + // `ListAppsRequest`. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Apps") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Apps") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListAppsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListAppsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListPublisherAccountsResponse: Response for the publisher account +// list request. +type ListPublisherAccountsResponse struct { + // Account: Publisher that the client credentials can access. + Account []*PublisherAccount `json:"account,omitempty"` + + // NextPageToken: If not empty, indicates that there might be more + // accounts for the request; you must pass this value in a new + // `ListPublisherAccountsRequest`. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Account") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Account") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListPublisherAccountsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListPublisherAccountsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LocalizationSettings: Localization settings for reports, such as +// currency and language. It affects how metrics are calculated. +type LocalizationSettings struct { + // CurrencyCode: Currency code of the earning related metrics, which is + // the 3-letter code defined in ISO 4217. The daily average rate is used + // for the currency conversion. Defaults to the account currency code if + // unspecified. + CurrencyCode string `json:"currencyCode,omitempty"` + + // LanguageCode: Language used for any localized text, such as some + // dimension value display labels. The language tag defined in the IETF + // BCP47. Defaults to 'en-US' if unspecified. + LanguageCode string `json:"languageCode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CurrencyCode") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CurrencyCode") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *LocalizationSettings) MarshalJSON() ([]byte, error) { + type NoMethod LocalizationSettings + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MediationReportSpec: The specification for generating an AdMob +// Mediation report. For example, the specification to get observed ECPM +// sliced by ad source and app for the 'US' and 'CN' countries can look +// like the following example: { "date_range": { "start_date": {"year": +// 2018, "month": 9, "day": 1}, "end_date": {"year": 2018, "month": 9, +// "day": 30} }, "dimensions": ["AD_SOURCE", "APP", "COUNTRY"], +// "metrics": ["OBSERVED_ECPM"], "dimension_filters": [ { "dimension": +// "COUNTRY", "matches_any": {"values": [{"value": "US", "value": +// "CN"}]} } ], "sort_conditions": [ {"dimension":"APP", order: +// "ASCENDING"} ], "localization_settings": { "currency_code": "USD", +// "language_code": "en-US" } } For a better understanding, you can +// treat the preceding specification like the following pseudo SQL: +// SELECT AD_SOURCE, APP, COUNTRY, OBSERVED_ECPM FROM MEDIATION_REPORT +// WHERE DATE >= '2018-09-01' AND DATE <= '2018-09-30' AND COUNTRY IN +// ('US', 'CN') GROUP BY AD_SOURCE, APP, COUNTRY ORDER BY APP ASC; +type MediationReportSpec struct { + // DateRange: The date range for which the report is generated. + DateRange *DateRange `json:"dateRange,omitempty"` + + // DimensionFilters: Describes which report rows to match based on their + // dimension values. + DimensionFilters []*MediationReportSpecDimensionFilter `json:"dimensionFilters,omitempty"` + + // Dimensions: List of dimensions of the report. The value combination + // of these dimensions determines the row of the report. If no + // dimensions are specified, the report returns a single row of + // requested metrics for the entire account. + // + // Possible values: + // "DIMENSION_UNSPECIFIED" - Default value for an unset field. Do not + // use. + // "DATE" - A date in the YYYY-MM-DD format (for example, + // "2018-12-21"). Requests can specify at most one time dimension. + // "MONTH" - A month in the YYYY-MM format (for example, "2018-12"). + // Requests can specify at most one time dimension. + // "WEEK" - The date of the first day of a week in the YYYY-MM-DD + // format (for example, "2018-12-21"). Requests can specify at most one + // time dimension. + // "AD_SOURCE" - The [unique ID of the ad + // source](/admob/api/v1/ad_sources) (for example, "5450213213286189855" + // and "AdMob Network" as label value). + // "AD_SOURCE_INSTANCE" - The unique ID of the ad source instance (for + // example, "ca-app-pub-1234#5678" and "AdMob (default)" as label + // value). + // "AD_UNIT" - The unique ID of the ad unit (for example, + // "ca-app-pub-1234/8790"). If AD_UNIT dimension is specified, then APP + // is included automatically. + // "APP" - The unique ID of the mobile application (for example, + // "ca-app-pub-1234~1234"). + // "MEDIATION_GROUP" - The unique ID of the mediation group (for + // example, "ca-app-pub-1234:mg:1234" and "AdMob (default)" as label + // value). + // "COUNTRY" - CLDR country code of the place where the ad + // views/clicks occur (for example, "US" or "FR"). This is a geography + // dimension. + // "FORMAT" - Format of the ad unit (for example, "banner", "native"), + // an ad delivery dimension. + // "PLATFORM" - Mobile OS platform of the app (for example, "Android" + // or "iOS"). + Dimensions []string `json:"dimensions,omitempty"` + + // LocalizationSettings: Localization settings of the report. + LocalizationSettings *LocalizationSettings `json:"localizationSettings,omitempty"` + + // MaxReportRows: Maximum number of report data rows to return. If the + // value is not set, the API returns as many rows as possible, up to + // 100000. Acceptable values are 1-100000, inclusive. Values larger than + // 100000 return an error. + MaxReportRows int64 `json:"maxReportRows,omitempty"` + + // Metrics: List of metrics of the report. A report must specify at + // least one metric. + // + // Possible values: + // "METRIC_UNSPECIFIED" - Default value for an unset field. Do not + // use. + // "AD_REQUESTS" - The number of requests. The value is an integer. + // "CLICKS" - The number of times a user clicks an ad. The value is an + // integer. + // "ESTIMATED_EARNINGS" - The estimated earnings of the AdMob + // publisher. The currency unit (USD, EUR, or other) of the earning + // metrics are determined by the localization setting for currency. The + // amount is in micros. For example, $6.50 would be represented as + // 6500000. Estimated earnings per mediation group and per ad source + // instance level is supported dating back to October 20, 2019. + // Third-party estimated earnings will show 0 for dates prior to October + // 20, 2019. + // "IMPRESSIONS" - The total number of ads shown to users. The value + // is an integer. + // "IMPRESSION_CTR" - The ratio of clicks over impressions. The value + // is a double precision (approximate) decimal value. + // "MATCHED_REQUESTS" - The number of times ads are returned in + // response to a request. The value is an integer. + // "MATCH_RATE" - The ratio of matched ad requests over the total ad + // requests. The value is a double precision (approximate) decimal + // value. + // "OBSERVED_ECPM" - The third-party ad network's estimated average + // eCPM. The currency unit (USD, EUR, or other) of the earning metrics + // are determined by the localization setting for currency. The amount + // is in micros. For example, $2.30 would be represented as 2300000. The + // estimated average eCPM per mediation group and per ad source instance + // level is supported dating back to October 20, 2019. Third-party + // estimated average eCPM will show 0 for dates prior to October 20, + // 2019. + Metrics []string `json:"metrics,omitempty"` + + // SortConditions: Describes the sorting of report rows. The order of + // the condition in the list defines its precedence; the earlier the + // condition, the higher its precedence. If no sort conditions are + // specified, the row ordering is undefined. + SortConditions []*MediationReportSpecSortCondition `json:"sortConditions,omitempty"` + + // TimeZone: A report time zone. Accepts an IANA TZ name values, such as + // "America/Los_Angeles." If no time zone is defined, the account + // default takes effect. Check default value by the get account action. + // **Warning:** The "America/Los_Angeles" is the only supported value at + // the moment. + TimeZone string `json:"timeZone,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DateRange") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DateRange") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MediationReportSpec) MarshalJSON() ([]byte, error) { + type NoMethod MediationReportSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MediationReportSpecDimensionFilter: Describes which report rows to +// match based on their dimension values. +type MediationReportSpecDimensionFilter struct { + // Dimension: Applies the filter criterion to the specified dimension. + // + // Possible values: + // "DIMENSION_UNSPECIFIED" - Default value for an unset field. Do not + // use. + // "DATE" - A date in the YYYY-MM-DD format (for example, + // "2018-12-21"). Requests can specify at most one time dimension. + // "MONTH" - A month in the YYYY-MM format (for example, "2018-12"). + // Requests can specify at most one time dimension. + // "WEEK" - The date of the first day of a week in the YYYY-MM-DD + // format (for example, "2018-12-21"). Requests can specify at most one + // time dimension. + // "AD_SOURCE" - The [unique ID of the ad + // source](/admob/api/v1/ad_sources) (for example, "5450213213286189855" + // and "AdMob Network" as label value). + // "AD_SOURCE_INSTANCE" - The unique ID of the ad source instance (for + // example, "ca-app-pub-1234#5678" and "AdMob (default)" as label + // value). + // "AD_UNIT" - The unique ID of the ad unit (for example, + // "ca-app-pub-1234/8790"). If AD_UNIT dimension is specified, then APP + // is included automatically. + // "APP" - The unique ID of the mobile application (for example, + // "ca-app-pub-1234~1234"). + // "MEDIATION_GROUP" - The unique ID of the mediation group (for + // example, "ca-app-pub-1234:mg:1234" and "AdMob (default)" as label + // value). + // "COUNTRY" - CLDR country code of the place where the ad + // views/clicks occur (for example, "US" or "FR"). This is a geography + // dimension. + // "FORMAT" - Format of the ad unit (for example, "banner", "native"), + // an ad delivery dimension. + // "PLATFORM" - Mobile OS platform of the app (for example, "Android" + // or "iOS"). + Dimension string `json:"dimension,omitempty"` + + // MatchesAny: Matches a row if its value for the specified dimension is + // in one of the values specified in this condition. + MatchesAny *StringList `json:"matchesAny,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Dimension") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Dimension") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MediationReportSpecDimensionFilter) MarshalJSON() ([]byte, error) { + type NoMethod MediationReportSpecDimensionFilter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MediationReportSpecSortCondition: Sorting direction to be applied on +// a dimension or a metric. +type MediationReportSpecSortCondition struct { + // Dimension: Sort by the specified dimension. + // + // Possible values: + // "DIMENSION_UNSPECIFIED" - Default value for an unset field. Do not + // use. + // "DATE" - A date in the YYYY-MM-DD format (for example, + // "2018-12-21"). Requests can specify at most one time dimension. + // "MONTH" - A month in the YYYY-MM format (for example, "2018-12"). + // Requests can specify at most one time dimension. + // "WEEK" - The date of the first day of a week in the YYYY-MM-DD + // format (for example, "2018-12-21"). Requests can specify at most one + // time dimension. + // "AD_SOURCE" - The [unique ID of the ad + // source](/admob/api/v1/ad_sources) (for example, "5450213213286189855" + // and "AdMob Network" as label value). + // "AD_SOURCE_INSTANCE" - The unique ID of the ad source instance (for + // example, "ca-app-pub-1234#5678" and "AdMob (default)" as label + // value). + // "AD_UNIT" - The unique ID of the ad unit (for example, + // "ca-app-pub-1234/8790"). If AD_UNIT dimension is specified, then APP + // is included automatically. + // "APP" - The unique ID of the mobile application (for example, + // "ca-app-pub-1234~1234"). + // "MEDIATION_GROUP" - The unique ID of the mediation group (for + // example, "ca-app-pub-1234:mg:1234" and "AdMob (default)" as label + // value). + // "COUNTRY" - CLDR country code of the place where the ad + // views/clicks occur (for example, "US" or "FR"). This is a geography + // dimension. + // "FORMAT" - Format of the ad unit (for example, "banner", "native"), + // an ad delivery dimension. + // "PLATFORM" - Mobile OS platform of the app (for example, "Android" + // or "iOS"). + Dimension string `json:"dimension,omitempty"` + + // Metric: Sort by the specified metric. + // + // Possible values: + // "METRIC_UNSPECIFIED" - Default value for an unset field. Do not + // use. + // "AD_REQUESTS" - The number of requests. The value is an integer. + // "CLICKS" - The number of times a user clicks an ad. The value is an + // integer. + // "ESTIMATED_EARNINGS" - The estimated earnings of the AdMob + // publisher. The currency unit (USD, EUR, or other) of the earning + // metrics are determined by the localization setting for currency. The + // amount is in micros. For example, $6.50 would be represented as + // 6500000. Estimated earnings per mediation group and per ad source + // instance level is supported dating back to October 20, 2019. + // Third-party estimated earnings will show 0 for dates prior to October + // 20, 2019. + // "IMPRESSIONS" - The total number of ads shown to users. The value + // is an integer. + // "IMPRESSION_CTR" - The ratio of clicks over impressions. The value + // is a double precision (approximate) decimal value. + // "MATCHED_REQUESTS" - The number of times ads are returned in + // response to a request. The value is an integer. + // "MATCH_RATE" - The ratio of matched ad requests over the total ad + // requests. The value is a double precision (approximate) decimal + // value. + // "OBSERVED_ECPM" - The third-party ad network's estimated average + // eCPM. The currency unit (USD, EUR, or other) of the earning metrics + // are determined by the localization setting for currency. The amount + // is in micros. For example, $2.30 would be represented as 2300000. The + // estimated average eCPM per mediation group and per ad source instance + // level is supported dating back to October 20, 2019. Third-party + // estimated average eCPM will show 0 for dates prior to October 20, + // 2019. + Metric string `json:"metric,omitempty"` + + // Order: Sorting order of the dimension or metric. + // + // Possible values: + // "SORT_ORDER_UNSPECIFIED" - Default value for an unset field. Do not + // use. + // "ASCENDING" - Sort dimension value or metric value in ascending + // order. + // "DESCENDING" - Sort dimension value or metric value in descending + // order. + Order string `json:"order,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Dimension") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Dimension") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MediationReportSpecSortCondition) MarshalJSON() ([]byte, error) { + type NoMethod MediationReportSpecSortCondition + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// NetworkReportSpec: The specification for generating an AdMob Network +// report. For example, the specification to get clicks and estimated +// earnings for only the 'US' and 'CN' countries can look like the +// following example: { 'date_range': { 'start_date': {'year': 2018, +// 'month': 9, 'day': 1}, 'end_date': {'year': 2018, 'month': 9, 'day': +// 30} }, 'dimensions': ['DATE', 'APP', 'COUNTRY'], 'metrics': +// ['CLICKS', 'ESTIMATED_EARNINGS'], 'dimension_filters': [ { +// 'dimension': 'COUNTRY', 'matches_any': {'values': [{'value': 'US', +// 'value': 'CN'}]} } ], 'sort_conditions': [ {'dimension':'APP', order: +// 'ASCENDING'}, {'metric':'CLICKS', order: 'DESCENDING'} ], +// 'localization_settings': { 'currency_code': 'USD', 'language_code': +// 'en-US' } } For a better understanding, you can treat the preceding +// specification like the following pseudo SQL: SELECT DATE, APP, +// COUNTRY, CLICKS, ESTIMATED_EARNINGS FROM NETWORK_REPORT WHERE DATE >= +// '2018-09-01' AND DATE <= '2018-09-30' AND COUNTRY IN ('US', 'CN') +// GROUP BY DATE, APP, COUNTRY ORDER BY APP ASC, CLICKS DESC; +type NetworkReportSpec struct { + // DateRange: The date range for which the report is generated. + DateRange *DateRange `json:"dateRange,omitempty"` + + // DimensionFilters: Describes which report rows to match based on their + // dimension values. + DimensionFilters []*NetworkReportSpecDimensionFilter `json:"dimensionFilters,omitempty"` + + // Dimensions: List of dimensions of the report. The value combination + // of these dimensions determines the row of the report. If no + // dimensions are specified, the report returns a single row of + // requested metrics for the entire account. + // + // Possible values: + // "DIMENSION_UNSPECIFIED" - Default value for an unset field. Do not + // use. + // "DATE" - A date in the YYYY-MM-DD format (for example, + // "2018-12-21"). Requests can specify at most one time dimension. + // "MONTH" - A month in the YYYY-MM format (for example, "2018-12"). + // Requests can specify at most one time dimension. + // "WEEK" - The date of the first day of a week in the YYYY-MM-DD + // format (for example, "2018-12-21"). Requests can specify at most one + // time dimension. + // "AD_UNIT" - The unique ID of the ad unit (for example, + // "ca-app-pub-1234/1234"). If AD_UNIT dimension is specified, then APP + // is included automatically. + // "APP" - The unique ID of the mobile application (for example, + // "ca-app-pub-1234~1234"). + // "AD_TYPE" - Type of the ad (for example, "text" or "image"), an ad + // delivery dimension. **Warning:** The dimension is incompatible with + // [AD_REQUESTS](#Metric.ENUM_VALUES.AD_REQUESTS), + // [MATCH_RATE](#Metric.ENUM_VALUES.MATCH_RATE) and + // [IMPRESSION_RPM](#Metric.ENUM_VALUES.IMPRESSION_RPM) metrics. + // "COUNTRY" - CLDR country code of the place where the ad + // views/clicks occur (for example, "US" or "FR"). This is a geography + // dimension. + // "FORMAT" - Format of the ad unit (for example, "banner", "native"), + // an ad delivery dimension. + // "PLATFORM" - Mobile OS platform of the app (for example, "Android" + // or "iOS"). + Dimensions []string `json:"dimensions,omitempty"` + + // LocalizationSettings: Localization settings of the report. + LocalizationSettings *LocalizationSettings `json:"localizationSettings,omitempty"` + + // MaxReportRows: Maximum number of report data rows to return. If the + // value is not set, the API returns as many rows as possible, up to + // 100000. Acceptable values are 1-100000, inclusive. Values larger than + // 100000 return an error. + MaxReportRows int64 `json:"maxReportRows,omitempty"` + + // Metrics: List of metrics of the report. A report must specify at + // least one metric. + // + // Possible values: + // "METRIC_UNSPECIFIED" - Default value for an unset field. Do not + // use. + // "AD_REQUESTS" - The number of ad requests. The value is an integer. + // **Warning:** The metric is incompatible with + // [AD_TYPE](#Dimension.ENUM_VALUES.AD_TYPE) dimension. + // "CLICKS" - The number of times a user clicks an ad. The value is an + // integer. + // "ESTIMATED_EARNINGS" - The estimated earnings of the AdMob + // publisher. The currency unit (USD, EUR, or other) of the earning + // metrics are determined by the localization setting for currency. The + // amount is in micros. For example, $6.50 would be represented as + // 6500000. + // "IMPRESSIONS" - The total number of ads shown to users. The value + // is an integer. + // "IMPRESSION_CTR" - The ratio of clicks over impressions. The value + // is a double precision (approximate) decimal value. + // "IMPRESSION_RPM" - The estimated earnings per thousand ad + // impressions. The value is in micros. For example, $1.03 would be + // represented as 1030000. Equivalent to eCPM in the AdMob UI. + // **Warning:** The metric is incompatible with + // [AD_TYPE](#Dimension.ENUM_VALUES.AD_TYPE) dimension. + // "MATCHED_REQUESTS" - The number of times ads are returned in + // response to a request. The value is an integer. + // "MATCH_RATE" - The ratio of matched ad requests over the total ad + // requests. The value is a double precision (approximate) decimal + // value. **Warning:** The metric is incompatible with + // [AD_TYPE](#Dimension.ENUM_VALUES.AD_TYPE) dimension. + // "SHOW_RATE" - The ratio of ads that are displayed over ads that are + // returned, defined as impressions / matched requests. The value is a + // double precision (approximate) decimal value. + Metrics []string `json:"metrics,omitempty"` + + // SortConditions: Describes the sorting of report rows. The order of + // the condition in the list defines its precedence; the earlier the + // condition, the higher its precedence. If no sort conditions are + // specified, the row ordering is undefined. + SortConditions []*NetworkReportSpecSortCondition `json:"sortConditions,omitempty"` + + // TimeZone: A report time zone. Accepts an IANA TZ name values, such as + // "America/Los_Angeles." If no time zone is defined, the account + // default takes effect. Check default value by the get account action. + // **Warning:** The "America/Los_Angeles" is the only supported value at + // the moment. + TimeZone string `json:"timeZone,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DateRange") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DateRange") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *NetworkReportSpec) MarshalJSON() ([]byte, error) { + type NoMethod NetworkReportSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// NetworkReportSpecDimensionFilter: Describes which report rows to +// match based on their dimension values. +type NetworkReportSpecDimensionFilter struct { + // Dimension: Applies the filter criterion to the specified dimension. + // + // Possible values: + // "DIMENSION_UNSPECIFIED" - Default value for an unset field. Do not + // use. + // "DATE" - A date in the YYYY-MM-DD format (for example, + // "2018-12-21"). Requests can specify at most one time dimension. + // "MONTH" - A month in the YYYY-MM format (for example, "2018-12"). + // Requests can specify at most one time dimension. + // "WEEK" - The date of the first day of a week in the YYYY-MM-DD + // format (for example, "2018-12-21"). Requests can specify at most one + // time dimension. + // "AD_UNIT" - The unique ID of the ad unit (for example, + // "ca-app-pub-1234/1234"). If AD_UNIT dimension is specified, then APP + // is included automatically. + // "APP" - The unique ID of the mobile application (for example, + // "ca-app-pub-1234~1234"). + // "AD_TYPE" - Type of the ad (for example, "text" or "image"), an ad + // delivery dimension. **Warning:** The dimension is incompatible with + // [AD_REQUESTS](#Metric.ENUM_VALUES.AD_REQUESTS), + // [MATCH_RATE](#Metric.ENUM_VALUES.MATCH_RATE) and + // [IMPRESSION_RPM](#Metric.ENUM_VALUES.IMPRESSION_RPM) metrics. + // "COUNTRY" - CLDR country code of the place where the ad + // views/clicks occur (for example, "US" or "FR"). This is a geography + // dimension. + // "FORMAT" - Format of the ad unit (for example, "banner", "native"), + // an ad delivery dimension. + // "PLATFORM" - Mobile OS platform of the app (for example, "Android" + // or "iOS"). + Dimension string `json:"dimension,omitempty"` + + // MatchesAny: Matches a row if its value for the specified dimension is + // in one of the values specified in this condition. + MatchesAny *StringList `json:"matchesAny,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Dimension") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Dimension") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *NetworkReportSpecDimensionFilter) MarshalJSON() ([]byte, error) { + type NoMethod NetworkReportSpecDimensionFilter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// NetworkReportSpecSortCondition: Sorting direction to be applied on a +// dimension or a metric. +type NetworkReportSpecSortCondition struct { + // Dimension: Sort by the specified dimension. + // + // Possible values: + // "DIMENSION_UNSPECIFIED" - Default value for an unset field. Do not + // use. + // "DATE" - A date in the YYYY-MM-DD format (for example, + // "2018-12-21"). Requests can specify at most one time dimension. + // "MONTH" - A month in the YYYY-MM format (for example, "2018-12"). + // Requests can specify at most one time dimension. + // "WEEK" - The date of the first day of a week in the YYYY-MM-DD + // format (for example, "2018-12-21"). Requests can specify at most one + // time dimension. + // "AD_UNIT" - The unique ID of the ad unit (for example, + // "ca-app-pub-1234/1234"). If AD_UNIT dimension is specified, then APP + // is included automatically. + // "APP" - The unique ID of the mobile application (for example, + // "ca-app-pub-1234~1234"). + // "AD_TYPE" - Type of the ad (for example, "text" or "image"), an ad + // delivery dimension. **Warning:** The dimension is incompatible with + // [AD_REQUESTS](#Metric.ENUM_VALUES.AD_REQUESTS), + // [MATCH_RATE](#Metric.ENUM_VALUES.MATCH_RATE) and + // [IMPRESSION_RPM](#Metric.ENUM_VALUES.IMPRESSION_RPM) metrics. + // "COUNTRY" - CLDR country code of the place where the ad + // views/clicks occur (for example, "US" or "FR"). This is a geography + // dimension. + // "FORMAT" - Format of the ad unit (for example, "banner", "native"), + // an ad delivery dimension. + // "PLATFORM" - Mobile OS platform of the app (for example, "Android" + // or "iOS"). + Dimension string `json:"dimension,omitempty"` + + // Metric: Sort by the specified metric. + // + // Possible values: + // "METRIC_UNSPECIFIED" - Default value for an unset field. Do not + // use. + // "AD_REQUESTS" - The number of ad requests. The value is an integer. + // **Warning:** The metric is incompatible with + // [AD_TYPE](#Dimension.ENUM_VALUES.AD_TYPE) dimension. + // "CLICKS" - The number of times a user clicks an ad. The value is an + // integer. + // "ESTIMATED_EARNINGS" - The estimated earnings of the AdMob + // publisher. The currency unit (USD, EUR, or other) of the earning + // metrics are determined by the localization setting for currency. The + // amount is in micros. For example, $6.50 would be represented as + // 6500000. + // "IMPRESSIONS" - The total number of ads shown to users. The value + // is an integer. + // "IMPRESSION_CTR" - The ratio of clicks over impressions. The value + // is a double precision (approximate) decimal value. + // "IMPRESSION_RPM" - The estimated earnings per thousand ad + // impressions. The value is in micros. For example, $1.03 would be + // represented as 1030000. Equivalent to eCPM in the AdMob UI. + // **Warning:** The metric is incompatible with + // [AD_TYPE](#Dimension.ENUM_VALUES.AD_TYPE) dimension. + // "MATCHED_REQUESTS" - The number of times ads are returned in + // response to a request. The value is an integer. + // "MATCH_RATE" - The ratio of matched ad requests over the total ad + // requests. The value is a double precision (approximate) decimal + // value. **Warning:** The metric is incompatible with + // [AD_TYPE](#Dimension.ENUM_VALUES.AD_TYPE) dimension. + // "SHOW_RATE" - The ratio of ads that are displayed over ads that are + // returned, defined as impressions / matched requests. The value is a + // double precision (approximate) decimal value. + Metric string `json:"metric,omitempty"` + + // Order: Sorting order of the dimension or metric. + // + // Possible values: + // "SORT_ORDER_UNSPECIFIED" - Default value for an unset field. Do not + // use. + // "ASCENDING" - Sort dimension value or metric value in ascending + // order. + // "DESCENDING" - Sort dimension value or metric value in descending + // order. + Order string `json:"order,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Dimension") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Dimension") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *NetworkReportSpecSortCondition) MarshalJSON() ([]byte, error) { + type NoMethod NetworkReportSpecSortCondition + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PublisherAccount: A publisher account contains information relevant +// to the use of this API, such as the time zone used for the reports. +type PublisherAccount struct { + // CurrencyCode: Currency code of the earning-related metrics, which is + // the 3-letter code defined in ISO 4217. The daily average rate is used + // for the currency conversion. + CurrencyCode string `json:"currencyCode,omitempty"` + + // Name: Resource name of this account. Format is + // accounts/{publisher_id}. + Name string `json:"name,omitempty"` + + // PublisherId: The unique ID by which this publisher account can be + // identified in the API requests (for example, pub-1234567890). + PublisherId string `json:"publisherId,omitempty"` + + // ReportingTimeZone: The time zone that is used in reports that are + // generated for this account. The value is a time-zone ID as specified + // by the CLDR project, for example, "America/Los_Angeles". + ReportingTimeZone string `json:"reportingTimeZone,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CurrencyCode") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CurrencyCode") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *PublisherAccount) MarshalJSON() ([]byte, error) { + type NoMethod PublisherAccount + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ReportFooter: Groups data available after report generation, for +// example, warnings and row counts. Always sent as the last message in +// the stream response. +type ReportFooter struct { + // MatchingRowCount: Total number of rows that matched the request. + // Warning: This count does NOT always match the number of rows in the + // response. Do not make that assumption when processing the response. + MatchingRowCount int64 `json:"matchingRowCount,omitempty,string"` + + // Warnings: Warnings associated with generation of the report. + Warnings []*ReportWarning `json:"warnings,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MatchingRowCount") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MatchingRowCount") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ReportFooter) MarshalJSON() ([]byte, error) { + type NoMethod ReportFooter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ReportHeader: Groups data helps to treat the generated report. Always +// sent as a first message in the stream response. +type ReportHeader struct { + // DateRange: The date range for which the report is generated. This is + // identical to the range specified in the report request. + DateRange *DateRange `json:"dateRange,omitempty"` + + // LocalizationSettings: Localization settings of the report. This is + // identical to the settings in the report request. + LocalizationSettings *LocalizationSettings `json:"localizationSettings,omitempty"` + + // ReportingTimeZone: The report time zone. The value is a time-zone ID + // as specified by the CLDR project, for example, "America/Los_Angeles". + ReportingTimeZone string `json:"reportingTimeZone,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DateRange") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DateRange") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ReportHeader) MarshalJSON() ([]byte, error) { + type NoMethod ReportHeader + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ReportRow: A row of the returning report. +type ReportRow struct { + // DimensionValues: Map of dimension values in a row, with keys as enum + // name of the dimensions. + DimensionValues map[string]ReportRowDimensionValue `json:"dimensionValues,omitempty"` + + // MetricValues: Map of metric values in a row, with keys as enum name + // of the metrics. If a metric being requested has no value returned, + // the map will not include it. + MetricValues map[string]ReportRowMetricValue `json:"metricValues,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DimensionValues") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DimensionValues") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ReportRow) MarshalJSON() ([]byte, error) { + type NoMethod ReportRow + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ReportRowDimensionValue: Representation of a dimension value. +type ReportRowDimensionValue struct { + // DisplayLabel: The localized string representation of the value. If + // unspecified, the display label should be derived from the value. + DisplayLabel string `json:"displayLabel,omitempty"` + + // Value: Dimension value in the format specified in the report's spec + // Dimension enum. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisplayLabel") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisplayLabel") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ReportRowDimensionValue) MarshalJSON() ([]byte, error) { + type NoMethod ReportRowDimensionValue + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ReportRowMetricValue: Representation of a metric value. +type ReportRowMetricValue struct { + // DoubleValue: Double precision (approximate) decimal values. Rates are + // from 0 to 1. + DoubleValue float64 `json:"doubleValue,omitempty"` + + // IntegerValue: Metric integer value. + IntegerValue int64 `json:"integerValue,omitempty,string"` + + // MicrosValue: Amount in micros. One million is equivalent to one unit. + // Currency value is in the unit (USD, EUR or other) specified by the + // request. For example, $6.50 whould be represented as 6500000 micros. + MicrosValue int64 `json:"microsValue,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "DoubleValue") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DoubleValue") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ReportRowMetricValue) MarshalJSON() ([]byte, error) { + type NoMethod ReportRowMetricValue + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *ReportRowMetricValue) UnmarshalJSON(data []byte) error { + type NoMethod ReportRowMetricValue + var s1 struct { + DoubleValue gensupport.JSONFloat64 `json:"doubleValue"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.DoubleValue = float64(s1.DoubleValue) + return nil +} + +// ReportWarning: Warnings associated with generation of the report. +type ReportWarning struct { + // Description: Describes the details of the warning message, in + // English. + Description string `json:"description,omitempty"` + + // Type: Type of the warning. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Default value for an unset field. Do not use. + // "DATA_BEFORE_ACCOUNT_TIMEZONE_CHANGE" - Some data in this report is + // aggregated based on a time zone different from the requested time + // zone. This could happen if a local time-zone report has the start + // time before the last time this time zone changed. The description + // field will contain the date of the last time zone change. + // "DATA_DELAYED" - There is an unusual delay in processing the source + // data for the requested date range. The report results might be less + // up to date than usual. AdMob is aware of the issue and is actively + // working to resolve it. + // "OTHER" - Warnings that are exposed without a specific type. Useful + // when new warning types are added but the API is not changed yet. + // "REPORT_CURRENCY_NOT_ACCOUNT_CURRENCY" - The currency being + // requested is not the account currency. The earning metrics will be + // based on the requested currency, and thus not a good estimation of + // the final payment anymore, due to the currency rate fluctuation. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Description") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ReportWarning) MarshalJSON() ([]byte, error) { + type NoMethod ReportWarning + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// StringList: List of string values. +type StringList struct { + // Values: The string values. + Values []string `json:"values,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Values") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Values") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *StringList) MarshalJSON() ([]byte, error) { + type NoMethod StringList + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "admob.accounts.get": + +type AccountsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information about the specified AdMob publisher account. +func (r *AccountsService) Get(name string) *AccountsGetCall { + c := &AccountsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *AccountsGetCall) Fields(s ...googleapi.Field) *AccountsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *AccountsGetCall) Context(ctx context.Context) *AccountsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *AccountsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "admob.accounts.get" call. +// Exactly one of *PublisherAccount or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *PublisherAccount.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*PublisherAccount, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &PublisherAccount{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets information about the specified AdMob publisher account.", + // "flatPath": "v1beta/accounts/{accountsId}", + // "httpMethod": "GET", + // "id": "admob.accounts.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Resource name of the publisher account to retrieve. Example: accounts/pub-9876543210987654", + // "location": "path", + // "pattern": "^accounts/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+name}", + // "response": { + // "$ref": "PublisherAccount" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/admob.readonly", + // "https://www.googleapis.com/auth/admob.report" + // ], + // "streamingType": "NONE" + // } + +} + +// method id "admob.accounts.list": + +type AccountsListCall struct { + s *Service + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the AdMob publisher account accessible with the client +// credential. Currently, all credentials have access to at most one +// AdMob account. +func (r *AccountsService) List() *AccountsListCall { + c := &AccountsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// accounts to return. +func (c *AccountsListCall) PageSize(pageSize int64) *AccountsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value returned +// by the last `ListPublisherAccountsResponse`; indicates that this is a +// continuation of a prior `ListPublisherAccounts` call, and that the +// system should return the next page of data. +func (c *AccountsListCall) PageToken(pageToken string) *AccountsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *AccountsListCall) Fields(s ...googleapi.Field) *AccountsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *AccountsListCall) Context(ctx context.Context) *AccountsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *AccountsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/accounts") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "admob.accounts.list" call. +// Exactly one of *ListPublisherAccountsResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListPublisherAccountsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*ListPublisherAccountsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListPublisherAccountsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists the AdMob publisher account accessible with the client credential. Currently, all credentials have access to at most one AdMob account.", + // "flatPath": "v1beta/accounts", + // "httpMethod": "GET", + // "id": "admob.accounts.list", + // "parameterOrder": [], + // "parameters": { + // "pageSize": { + // "description": "Maximum number of accounts to return.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The value returned by the last `ListPublisherAccountsResponse`; indicates that this is a continuation of a prior `ListPublisherAccounts` call, and that the system should return the next page of data.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta/accounts", + // "response": { + // "$ref": "ListPublisherAccountsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/admob.readonly", + // "https://www.googleapis.com/auth/admob.report" + // ], + // "streamingType": "NONE" + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *AccountsListCall) Pages(ctx context.Context, f func(*ListPublisherAccountsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "admob.accounts.adUnits.list": + +type AccountsAdUnitsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List the ad units under the specified AdMob account. +func (r *AccountsAdUnitsService) List(parent string) *AccountsAdUnitsListCall { + c := &AccountsAdUnitsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of ad units to return. +func (c *AccountsAdUnitsListCall) PageSize(pageSize int64) *AccountsAdUnitsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value returned +// by the last `ListAdUnitsResponse`; indicates that this is a +// continuation of a prior `ListAdUnits` call, and that the system +// should return the next page of data. +func (c *AccountsAdUnitsListCall) PageToken(pageToken string) *AccountsAdUnitsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *AccountsAdUnitsListCall) Fields(s ...googleapi.Field) *AccountsAdUnitsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *AccountsAdUnitsListCall) IfNoneMatch(entityTag string) *AccountsAdUnitsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *AccountsAdUnitsListCall) Context(ctx context.Context) *AccountsAdUnitsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *AccountsAdUnitsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsAdUnitsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/adUnits") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "admob.accounts.adUnits.list" call. +// Exactly one of *ListAdUnitsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListAdUnitsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *AccountsAdUnitsListCall) Do(opts ...googleapi.CallOption) (*ListAdUnitsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListAdUnitsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "List the ad units under the specified AdMob account.", + // "flatPath": "v1beta/accounts/{accountsId}/adUnits", + // "httpMethod": "GET", + // "id": "admob.accounts.adUnits.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of ad units to return.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The value returned by the last `ListAdUnitsResponse`; indicates that this is a continuation of a prior `ListAdUnits` call, and that the system should return the next page of data.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Resource name of the account to list ad units for. Example: accounts/pub-9876543210987654", + // "location": "path", + // "pattern": "^accounts/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+parent}/adUnits", + // "response": { + // "$ref": "ListAdUnitsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/admob.readonly" + // ], + // "streamingType": "NONE" + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *AccountsAdUnitsListCall) Pages(ctx context.Context, f func(*ListAdUnitsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "admob.accounts.apps.list": + +type AccountsAppsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List the apps under the specified AdMob account. +func (r *AccountsAppsService) List(parent string) *AccountsAppsListCall { + c := &AccountsAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of apps to return. If unspecified or 0, at most 1000 apps will be +// returned. The maximum value is 10,000; values above 10,000 will be +// coerced to 10,000. +func (c *AccountsAppsListCall) PageSize(pageSize int64) *AccountsAppsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value returned +// by the last `ListAppsResponse`; indicates that this is a continuation +// of a prior `ListApps` call, and that the system should return the +// next page of data. +func (c *AccountsAppsListCall) PageToken(pageToken string) *AccountsAppsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *AccountsAppsListCall) Fields(s ...googleapi.Field) *AccountsAppsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *AccountsAppsListCall) IfNoneMatch(entityTag string) *AccountsAppsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *AccountsAppsListCall) Context(ctx context.Context) *AccountsAppsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *AccountsAppsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsAppsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/apps") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "admob.accounts.apps.list" call. +// Exactly one of *ListAppsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListAppsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *AccountsAppsListCall) Do(opts ...googleapi.CallOption) (*ListAppsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListAppsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "List the apps under the specified AdMob account.", + // "flatPath": "v1beta/accounts/{accountsId}/apps", + // "httpMethod": "GET", + // "id": "admob.accounts.apps.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of apps to return. If unspecified or 0, at most 1000 apps will be returned. The maximum value is 10,000; values above 10,000 will be coerced to 10,000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The value returned by the last `ListAppsResponse`; indicates that this is a continuation of a prior `ListApps` call, and that the system should return the next page of data.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Resource name of the account to list apps for. Example: accounts/pub-9876543210987654", + // "location": "path", + // "pattern": "^accounts/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+parent}/apps", + // "response": { + // "$ref": "ListAppsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/admob.readonly" + // ], + // "streamingType": "NONE" + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *AccountsAppsListCall) Pages(ctx context.Context, f func(*ListAppsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "admob.accounts.mediationReport.generate": + +type AccountsMediationReportGenerateCall struct { + s *Service + parent string + generatemediationreportrequest *GenerateMediationReportRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Generate: Generates an AdMob Mediation report based on the provided +// report specification. Returns result of a server-side streaming RPC. +// The result is returned in a sequence of responses. +func (r *AccountsMediationReportService) Generate(parent string, generatemediationreportrequest *GenerateMediationReportRequest) *AccountsMediationReportGenerateCall { + c := &AccountsMediationReportGenerateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.generatemediationreportrequest = generatemediationreportrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *AccountsMediationReportGenerateCall) Fields(s ...googleapi.Field) *AccountsMediationReportGenerateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *AccountsMediationReportGenerateCall) Context(ctx context.Context) *AccountsMediationReportGenerateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *AccountsMediationReportGenerateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsMediationReportGenerateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.generatemediationreportrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/mediationReport:generate") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "admob.accounts.mediationReport.generate" call. +// Exactly one of *GenerateMediationReportResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GenerateMediationReportResponse.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *AccountsMediationReportGenerateCall) Do(opts ...googleapi.CallOption) (*GenerateMediationReportResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GenerateMediationReportResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Generates an AdMob Mediation report based on the provided report specification. Returns result of a server-side streaming RPC. The result is returned in a sequence of responses.", + // "flatPath": "v1beta/accounts/{accountsId}/mediationReport:generate", + // "httpMethod": "POST", + // "id": "admob.accounts.mediationReport.generate", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Resource name of the account to generate the report for. Example: accounts/pub-9876543210987654", + // "location": "path", + // "pattern": "^accounts/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+parent}/mediationReport:generate", + // "request": { + // "$ref": "GenerateMediationReportRequest" + // }, + // "response": { + // "$ref": "GenerateMediationReportResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/admob.readonly", + // "https://www.googleapis.com/auth/admob.report" + // ], + // "streamingType": "SERVER_SIDE" + // } + +} + +// method id "admob.accounts.networkReport.generate": + +type AccountsNetworkReportGenerateCall struct { + s *Service + parent string + generatenetworkreportrequest *GenerateNetworkReportRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Generate: Generates an AdMob Network report based on the provided +// report specification. Returns result of a server-side streaming RPC. +// The result is returned in a sequence of responses. +func (r *AccountsNetworkReportService) Generate(parent string, generatenetworkreportrequest *GenerateNetworkReportRequest) *AccountsNetworkReportGenerateCall { + c := &AccountsNetworkReportGenerateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.generatenetworkreportrequest = generatenetworkreportrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *AccountsNetworkReportGenerateCall) Fields(s ...googleapi.Field) *AccountsNetworkReportGenerateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *AccountsNetworkReportGenerateCall) Context(ctx context.Context) *AccountsNetworkReportGenerateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *AccountsNetworkReportGenerateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsNetworkReportGenerateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.generatenetworkreportrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/networkReport:generate") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "admob.accounts.networkReport.generate" call. +// Exactly one of *GenerateNetworkReportResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GenerateNetworkReportResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *AccountsNetworkReportGenerateCall) Do(opts ...googleapi.CallOption) (*GenerateNetworkReportResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GenerateNetworkReportResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Generates an AdMob Network report based on the provided report specification. Returns result of a server-side streaming RPC. The result is returned in a sequence of responses.", + // "flatPath": "v1beta/accounts/{accountsId}/networkReport:generate", + // "httpMethod": "POST", + // "id": "admob.accounts.networkReport.generate", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Resource name of the account to generate the report for. Example: accounts/pub-9876543210987654", + // "location": "path", + // "pattern": "^accounts/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+parent}/networkReport:generate", + // "request": { + // "$ref": "GenerateNetworkReportRequest" + // }, + // "response": { + // "$ref": "GenerateNetworkReportResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/admob.readonly", + // "https://www.googleapis.com/auth/admob.report" + // ], + // "streamingType": "SERVER_SIDE" + // } + +} diff --git a/adsense/v1.4/adsense-gen.go b/adsense/v1.4/adsense-gen.go index 76342110b0d..22a1ee2e98f 100644 --- a/adsense/v1.4/adsense-gen.go +++ b/adsense/v1.4/adsense-gen.go @@ -1825,7 +1825,7 @@ func (c *AccountsGetCall) Header() http.Header { func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1987,7 +1987,7 @@ func (c *AccountsListCall) Header() http.Header { func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2161,7 +2161,7 @@ func (c *AccountsAdclientsGetAdCodeCall) Header() http.Header { func (c *AccountsAdclientsGetAdCodeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2333,7 +2333,7 @@ func (c *AccountsAdclientsListCall) Header() http.Header { func (c *AccountsAdclientsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2515,7 +2515,7 @@ func (c *AccountsAdunitsGetCall) Header() http.Header { func (c *AccountsAdunitsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2678,7 +2678,7 @@ func (c *AccountsAdunitsGetAdCodeCall) Header() http.Header { func (c *AccountsAdunitsGetAdCodeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2863,7 +2863,7 @@ func (c *AccountsAdunitsListCall) Header() http.Header { func (c *AccountsAdunitsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3075,7 +3075,7 @@ func (c *AccountsAdunitsCustomchannelsListCall) Header() http.Header { func (c *AccountsAdunitsCustomchannelsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3260,7 +3260,7 @@ func (c *AccountsAlertsDeleteCall) Header() http.Header { func (c *AccountsAlertsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3388,7 +3388,7 @@ func (c *AccountsAlertsListCall) Header() http.Header { func (c *AccountsAlertsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3541,7 +3541,7 @@ func (c *AccountsCustomchannelsGetCall) Header() http.Header { func (c *AccountsCustomchannelsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3720,7 +3720,7 @@ func (c *AccountsCustomchannelsListCall) Header() http.Header { func (c *AccountsCustomchannelsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3932,7 +3932,7 @@ func (c *AccountsCustomchannelsAdunitsListCall) Header() http.Header { func (c *AccountsCustomchannelsAdunitsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4130,7 +4130,7 @@ func (c *AccountsPaymentsListCall) Header() http.Header { func (c *AccountsPaymentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4346,7 +4346,7 @@ func (c *AccountsReportsGenerateCall) Header() http.Header { func (c *AccountsReportsGenerateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4608,7 +4608,7 @@ func (c *AccountsReportsSavedGenerateCall) Header() http.Header { func (c *AccountsReportsSavedGenerateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4797,7 +4797,7 @@ func (c *AccountsReportsSavedListCall) Header() http.Header { func (c *AccountsReportsSavedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4976,7 +4976,7 @@ func (c *AccountsSavedadstylesGetCall) Header() http.Header { func (c *AccountsSavedadstylesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5144,7 +5144,7 @@ func (c *AccountsSavedadstylesListCall) Header() http.Header { func (c *AccountsSavedadstylesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5340,7 +5340,7 @@ func (c *AccountsUrlchannelsListCall) Header() http.Header { func (c *AccountsUrlchannelsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5539,7 +5539,7 @@ func (c *AdclientsListCall) Header() http.Header { func (c *AdclientsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5706,7 +5706,7 @@ func (c *AdunitsGetCall) Header() http.Header { func (c *AdunitsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5859,7 +5859,7 @@ func (c *AdunitsGetAdCodeCall) Header() http.Header { func (c *AdunitsGetAdCodeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6034,7 +6034,7 @@ func (c *AdunitsListCall) Header() http.Header { func (c *AdunitsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6236,7 +6236,7 @@ func (c *AdunitsCustomchannelsListCall) Header() http.Header { func (c *AdunitsCustomchannelsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6411,7 +6411,7 @@ func (c *AlertsDeleteCall) Header() http.Header { func (c *AlertsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6529,7 +6529,7 @@ func (c *AlertsListCall) Header() http.Header { func (c *AlertsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6667,7 +6667,7 @@ func (c *CustomchannelsGetCall) Header() http.Header { func (c *CustomchannelsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6836,7 +6836,7 @@ func (c *CustomchannelsListCall) Header() http.Header { func (c *CustomchannelsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7038,7 +7038,7 @@ func (c *CustomchannelsAdunitsListCall) Header() http.Header { func (c *CustomchannelsAdunitsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7227,7 +7227,7 @@ func (c *MetadataDimensionsListCall) Header() http.Header { func (c *MetadataDimensionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7355,7 +7355,7 @@ func (c *MetadataMetricsListCall) Header() http.Header { func (c *MetadataMetricsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7482,7 +7482,7 @@ func (c *PaymentsListCall) Header() http.Header { func (c *PaymentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7689,7 +7689,7 @@ func (c *ReportsGenerateCall) Header() http.Header { func (c *ReportsGenerateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7945,7 +7945,7 @@ func (c *ReportsSavedGenerateCall) Header() http.Header { func (c *ReportsSavedGenerateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8124,7 +8124,7 @@ func (c *ReportsSavedListCall) Header() http.Header { func (c *ReportsSavedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8289,7 +8289,7 @@ func (c *SavedadstylesGetCall) Header() http.Header { func (c *SavedadstylesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8447,7 +8447,7 @@ func (c *SavedadstylesListCall) Header() http.Header { func (c *SavedadstylesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8629,7 +8629,7 @@ func (c *UrlchannelsListCall) Header() http.Header { func (c *UrlchannelsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/adsensehost/v4.1/adsensehost-gen.go b/adsensehost/v4.1/adsensehost-gen.go index eb2ba8958e7..7d4af8e723c 100644 --- a/adsensehost/v4.1/adsensehost-gen.go +++ b/adsensehost/v4.1/adsensehost-gen.go @@ -1153,7 +1153,7 @@ func (c *AccountsGetCall) Header() http.Header { func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1295,7 +1295,7 @@ func (c *AccountsListCall) Header() http.Header { func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1438,7 +1438,7 @@ func (c *AccountsAdclientsGetCall) Header() http.Header { func (c *AccountsAdclientsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1604,7 +1604,7 @@ func (c *AccountsAdclientsListCall) Header() http.Header { func (c *AccountsAdclientsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1774,7 +1774,7 @@ func (c *AccountsAdunitsDeleteCall) Header() http.Header { func (c *AccountsAdunitsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1933,7 +1933,7 @@ func (c *AccountsAdunitsGetCall) Header() http.Header { func (c *AccountsAdunitsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2103,7 +2103,7 @@ func (c *AccountsAdunitsGetAdCodeCall) Header() http.Header { func (c *AccountsAdunitsGetAdCodeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2261,7 +2261,7 @@ func (c *AccountsAdunitsInsertCall) Header() http.Header { func (c *AccountsAdunitsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2441,7 +2441,7 @@ func (c *AccountsAdunitsListCall) Header() http.Header { func (c *AccountsAdunitsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2625,7 +2625,7 @@ func (c *AccountsAdunitsPatchCall) Header() http.Header { func (c *AccountsAdunitsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2781,7 +2781,7 @@ func (c *AccountsAdunitsUpdateCall) Header() http.Header { func (c *AccountsAdunitsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2992,7 +2992,7 @@ func (c *AccountsReportsGenerateCall) Header() http.Header { func (c *AccountsReportsGenerateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3201,7 +3201,7 @@ func (c *AdclientsGetCall) Header() http.Header { func (c *AdclientsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3357,7 +3357,7 @@ func (c *AdclientsListCall) Header() http.Header { func (c *AdclientsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3545,7 +3545,7 @@ func (c *AssociationsessionsStartCall) Header() http.Header { func (c *AssociationsessionsStartCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3721,7 +3721,7 @@ func (c *AssociationsessionsVerifyCall) Header() http.Header { func (c *AssociationsessionsVerifyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3852,7 +3852,7 @@ func (c *CustomchannelsDeleteCall) Header() http.Header { func (c *CustomchannelsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4001,7 +4001,7 @@ func (c *CustomchannelsGetCall) Header() http.Header { func (c *CustomchannelsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4142,7 +4142,7 @@ func (c *CustomchannelsInsertCall) Header() http.Header { func (c *CustomchannelsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4306,7 +4306,7 @@ func (c *CustomchannelsListCall) Header() http.Header { func (c *CustomchannelsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4475,7 +4475,7 @@ func (c *CustomchannelsPatchCall) Header() http.Header { func (c *CustomchannelsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4620,7 +4620,7 @@ func (c *CustomchannelsUpdateCall) Header() http.Header { func (c *CustomchannelsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4821,7 +4821,7 @@ func (c *ReportsGenerateCall) Header() http.Header { func (c *ReportsGenerateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5010,7 +5010,7 @@ func (c *UrlchannelsDeleteCall) Header() http.Header { func (c *UrlchannelsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5148,7 +5148,7 @@ func (c *UrlchannelsInsertCall) Header() http.Header { func (c *UrlchannelsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5311,7 +5311,7 @@ func (c *UrlchannelsListCall) Header() http.Header { func (c *UrlchannelsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/alertcenter/v1beta1/alertcenter-gen.go b/alertcenter/v1beta1/alertcenter-gen.go index bdcbead91c2..e695e2ba497 100644 --- a/alertcenter/v1beta1/alertcenter-gen.go +++ b/alertcenter/v1beta1/alertcenter-gen.go @@ -1947,7 +1947,7 @@ func (c *AlertsBatchDeleteCall) Header() http.Header { func (c *AlertsBatchDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2072,7 +2072,7 @@ func (c *AlertsBatchUndeleteCall) Header() http.Header { func (c *AlertsBatchUndeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2210,7 +2210,7 @@ func (c *AlertsDeleteCall) Header() http.Header { func (c *AlertsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2365,7 +2365,7 @@ func (c *AlertsGetCall) Header() http.Header { func (c *AlertsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2523,7 +2523,7 @@ func (c *AlertsGetMetadataCall) Header() http.Header { func (c *AlertsGetMetadataCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2716,7 +2716,7 @@ func (c *AlertsListCall) Header() http.Header { func (c *AlertsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2891,7 +2891,7 @@ func (c *AlertsUndeleteCall) Header() http.Header { func (c *AlertsUndeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3042,7 +3042,7 @@ func (c *AlertsFeedbackCreateCall) Header() http.Header { func (c *AlertsFeedbackCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3216,7 +3216,7 @@ func (c *AlertsFeedbackListCall) Header() http.Header { func (c *AlertsFeedbackListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3376,7 +3376,7 @@ func (c *V1beta1GetSettingsCall) Header() http.Header { func (c *V1beta1GetSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3511,7 +3511,7 @@ func (c *V1beta1UpdateSettingsCall) Header() http.Header { func (c *V1beta1UpdateSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/analytics/v3/analytics-api.json b/analytics/v3/analytics-api.json index 25dfacefaff..9a47e9f18ee 100644 --- a/analytics/v3/analytics-api.json +++ b/analytics/v3/analytics-api.json @@ -3806,7 +3806,7 @@ } }, "revision": "20190807", - "rootUrl": "https://analytics.googleapis.com/", + "rootUrl": "https://www.googleapis.com/", "schemas": { "Account": { "description": "JSON template for Analytics account entry.", diff --git a/analytics/v3/analytics-gen.go b/analytics/v3/analytics-gen.go index f6aa092be8c..3ecb5c22b19 100644 --- a/analytics/v3/analytics-gen.go +++ b/analytics/v3/analytics-gen.go @@ -78,7 +78,7 @@ var _ = internaloption.WithDefaultEndpoint const apiId = "analytics:v3" const apiName = "analytics" const apiVersion = "v3" -const basePath = "https://analytics.googleapis.com/analytics/v3/" +const basePath = "https://www.googleapis.com/analytics/v3/" // OAuth2 scopes used by this API. const ( @@ -6030,7 +6030,7 @@ func (c *DataGaGetCall) Header() http.Header { func (c *DataGaGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6319,7 +6319,7 @@ func (c *DataMcfGetCall) Header() http.Header { func (c *DataMcfGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6560,7 +6560,7 @@ func (c *DataRealtimeGetCall) Header() http.Header { func (c *DataRealtimeGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6748,7 +6748,7 @@ func (c *ManagementAccountSummariesListCall) Header() http.Header { func (c *ManagementAccountSummariesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6883,7 +6883,7 @@ func (c *ManagementAccountUserLinksDeleteCall) Header() http.Header { func (c *ManagementAccountUserLinksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6993,7 +6993,7 @@ func (c *ManagementAccountUserLinksInsertCall) Header() http.Header { func (c *ManagementAccountUserLinksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7155,7 +7155,7 @@ func (c *ManagementAccountUserLinksListCall) Header() http.Header { func (c *ManagementAccountUserLinksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7305,7 +7305,7 @@ func (c *ManagementAccountUserLinksUpdateCall) Header() http.Header { func (c *ManagementAccountUserLinksUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7473,7 +7473,7 @@ func (c *ManagementAccountsListCall) Header() http.Header { func (c *ManagementAccountsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7607,7 +7607,7 @@ func (c *ManagementClientIdHashClientIdCall) Header() http.Header { func (c *ManagementClientIdHashClientIdCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7758,7 +7758,7 @@ func (c *ManagementCustomDataSourcesListCall) Header() http.Header { func (c *ManagementCustomDataSourcesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7930,7 +7930,7 @@ func (c *ManagementCustomDimensionsGetCall) Header() http.Header { func (c *ManagementCustomDimensionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8082,7 +8082,7 @@ func (c *ManagementCustomDimensionsInsertCall) Header() http.Header { func (c *ManagementCustomDimensionsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8254,7 +8254,7 @@ func (c *ManagementCustomDimensionsListCall) Header() http.Header { func (c *ManagementCustomDimensionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8423,7 +8423,7 @@ func (c *ManagementCustomDimensionsPatchCall) Header() http.Header { func (c *ManagementCustomDimensionsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8596,7 +8596,7 @@ func (c *ManagementCustomDimensionsUpdateCall) Header() http.Header { func (c *ManagementCustomDimensionsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8769,7 +8769,7 @@ func (c *ManagementCustomMetricsGetCall) Header() http.Header { func (c *ManagementCustomMetricsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8921,7 +8921,7 @@ func (c *ManagementCustomMetricsInsertCall) Header() http.Header { func (c *ManagementCustomMetricsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9093,7 +9093,7 @@ func (c *ManagementCustomMetricsListCall) Header() http.Header { func (c *ManagementCustomMetricsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9262,7 +9262,7 @@ func (c *ManagementCustomMetricsPatchCall) Header() http.Header { func (c *ManagementCustomMetricsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9435,7 +9435,7 @@ func (c *ManagementCustomMetricsUpdateCall) Header() http.Header { func (c *ManagementCustomMetricsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9599,7 +9599,7 @@ func (c *ManagementExperimentsDeleteCall) Header() http.Header { func (c *ManagementExperimentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9741,7 +9741,7 @@ func (c *ManagementExperimentsGetCall) Header() http.Header { func (c *ManagementExperimentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9904,7 +9904,7 @@ func (c *ManagementExperimentsInsertCall) Header() http.Header { func (c *ManagementExperimentsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10087,7 +10087,7 @@ func (c *ManagementExperimentsListCall) Header() http.Header { func (c *ManagementExperimentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10261,7 +10261,7 @@ func (c *ManagementExperimentsPatchCall) Header() http.Header { func (c *ManagementExperimentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10430,7 +10430,7 @@ func (c *ManagementExperimentsUpdateCall) Header() http.Header { func (c *ManagementExperimentsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10593,7 +10593,7 @@ func (c *ManagementFiltersDeleteCall) Header() http.Header { func (c *ManagementFiltersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10742,7 +10742,7 @@ func (c *ManagementFiltersGetCall) Header() http.Header { func (c *ManagementFiltersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10884,7 +10884,7 @@ func (c *ManagementFiltersInsertCall) Header() http.Header { func (c *ManagementFiltersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11046,7 +11046,7 @@ func (c *ManagementFiltersListCall) Header() http.Header { func (c *ManagementFiltersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11197,7 +11197,7 @@ func (c *ManagementFiltersPatchCall) Header() http.Header { func (c *ManagementFiltersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11345,7 +11345,7 @@ func (c *ManagementFiltersUpdateCall) Header() http.Header { func (c *ManagementFiltersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11506,7 +11506,7 @@ func (c *ManagementGoalsGetCall) Header() http.Header { func (c *ManagementGoalsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11668,7 +11668,7 @@ func (c *ManagementGoalsInsertCall) Header() http.Header { func (c *ManagementGoalsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11850,7 +11850,7 @@ func (c *ManagementGoalsListCall) Header() http.Header { func (c *ManagementGoalsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12021,7 +12021,7 @@ func (c *ManagementGoalsPatchCall) Header() http.Header { func (c *ManagementGoalsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12189,7 +12189,7 @@ func (c *ManagementGoalsUpdateCall) Header() http.Header { func (c *ManagementGoalsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12355,7 +12355,7 @@ func (c *ManagementProfileFilterLinksDeleteCall) Header() http.Header { func (c *ManagementProfileFilterLinksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12500,7 +12500,7 @@ func (c *ManagementProfileFilterLinksGetCall) Header() http.Header { func (c *ManagementProfileFilterLinksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12666,7 +12666,7 @@ func (c *ManagementProfileFilterLinksInsertCall) Header() http.Header { func (c *ManagementProfileFilterLinksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12851,7 +12851,7 @@ func (c *ManagementProfileFilterLinksListCall) Header() http.Header { func (c *ManagementProfileFilterLinksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13022,7 +13022,7 @@ func (c *ManagementProfileFilterLinksPatchCall) Header() http.Header { func (c *ManagementProfileFilterLinksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13194,7 +13194,7 @@ func (c *ManagementProfileFilterLinksUpdateCall) Header() http.Header { func (c *ManagementProfileFilterLinksUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13364,7 +13364,7 @@ func (c *ManagementProfileUserLinksDeleteCall) Header() http.Header { func (c *ManagementProfileUserLinksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13494,7 +13494,7 @@ func (c *ManagementProfileUserLinksInsertCall) Header() http.Header { func (c *ManagementProfileUserLinksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13676,7 +13676,7 @@ func (c *ManagementProfileUserLinksListCall) Header() http.Header { func (c *ManagementProfileUserLinksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13846,7 +13846,7 @@ func (c *ManagementProfileUserLinksUpdateCall) Header() http.Header { func (c *ManagementProfileUserLinksUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14010,7 +14010,7 @@ func (c *ManagementProfilesDeleteCall) Header() http.Header { func (c *ManagementProfilesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14141,7 +14141,7 @@ func (c *ManagementProfilesGetCall) Header() http.Header { func (c *ManagementProfilesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14296,7 +14296,7 @@ func (c *ManagementProfilesInsertCall) Header() http.Header { func (c *ManagementProfilesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14468,7 +14468,7 @@ func (c *ManagementProfilesListCall) Header() http.Header { func (c *ManagementProfilesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14629,7 +14629,7 @@ func (c *ManagementProfilesPatchCall) Header() http.Header { func (c *ManagementProfilesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14787,7 +14787,7 @@ func (c *ManagementProfilesUpdateCall) Header() http.Header { func (c *ManagementProfilesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14943,7 +14943,7 @@ func (c *ManagementRemarketingAudienceDeleteCall) Header() http.Header { func (c *ManagementRemarketingAudienceDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15074,7 +15074,7 @@ func (c *ManagementRemarketingAudienceGetCall) Header() http.Header { func (c *ManagementRemarketingAudienceGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15226,7 +15226,7 @@ func (c *ManagementRemarketingAudienceInsertCall) Header() http.Header { func (c *ManagementRemarketingAudienceInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15404,7 +15404,7 @@ func (c *ManagementRemarketingAudienceListCall) Header() http.Header { func (c *ManagementRemarketingAudienceListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15569,7 +15569,7 @@ func (c *ManagementRemarketingAudiencePatchCall) Header() http.Header { func (c *ManagementRemarketingAudiencePatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15727,7 +15727,7 @@ func (c *ManagementRemarketingAudienceUpdateCall) Header() http.Header { func (c *ManagementRemarketingAudienceUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15903,7 +15903,7 @@ func (c *ManagementSegmentsListCall) Header() http.Header { func (c *ManagementSegmentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16043,7 +16043,7 @@ func (c *ManagementUnsampledReportsDeleteCall) Header() http.Header { func (c *ManagementUnsampledReportsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16184,7 +16184,7 @@ func (c *ManagementUnsampledReportsGetCall) Header() http.Header { func (c *ManagementUnsampledReportsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16347,7 +16347,7 @@ func (c *ManagementUnsampledReportsInsertCall) Header() http.Header { func (c *ManagementUnsampledReportsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16530,7 +16530,7 @@ func (c *ManagementUnsampledReportsListCall) Header() http.Header { func (c *ManagementUnsampledReportsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16698,7 +16698,7 @@ func (c *ManagementUploadsDeleteUploadDataCall) Header() http.Header { func (c *ManagementUploadsDeleteUploadDataCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16843,7 +16843,7 @@ func (c *ManagementUploadsGetCall) Header() http.Header { func (c *ManagementUploadsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17034,7 +17034,7 @@ func (c *ManagementUploadsListCall) Header() http.Header { func (c *ManagementUploadsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17244,7 +17244,7 @@ func (c *ManagementUploadsUploadDataCall) Header() http.Header { func (c *ManagementUploadsUploadDataCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17440,7 +17440,7 @@ func (c *ManagementWebPropertyAdWordsLinksDeleteCall) Header() http.Header { func (c *ManagementWebPropertyAdWordsLinksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17572,7 +17572,7 @@ func (c *ManagementWebPropertyAdWordsLinksGetCall) Header() http.Header { func (c *ManagementWebPropertyAdWordsLinksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17724,7 +17724,7 @@ func (c *ManagementWebPropertyAdWordsLinksInsertCall) Header() http.Header { func (c *ManagementWebPropertyAdWordsLinksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17896,7 +17896,7 @@ func (c *ManagementWebPropertyAdWordsLinksListCall) Header() http.Header { func (c *ManagementWebPropertyAdWordsLinksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18057,7 +18057,7 @@ func (c *ManagementWebPropertyAdWordsLinksPatchCall) Header() http.Header { func (c *ManagementWebPropertyAdWordsLinksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18215,7 +18215,7 @@ func (c *ManagementWebPropertyAdWordsLinksUpdateCall) Header() http.Header { func (c *ManagementWebPropertyAdWordsLinksUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18380,7 +18380,7 @@ func (c *ManagementWebpropertiesGetCall) Header() http.Header { func (c *ManagementWebpropertiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18526,7 +18526,7 @@ func (c *ManagementWebpropertiesInsertCall) Header() http.Header { func (c *ManagementWebpropertiesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18688,7 +18688,7 @@ func (c *ManagementWebpropertiesListCall) Header() http.Header { func (c *ManagementWebpropertiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18839,7 +18839,7 @@ func (c *ManagementWebpropertiesPatchCall) Header() http.Header { func (c *ManagementWebpropertiesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18987,7 +18987,7 @@ func (c *ManagementWebpropertiesUpdateCall) Header() http.Header { func (c *ManagementWebpropertiesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19135,7 +19135,7 @@ func (c *ManagementWebpropertyUserLinksDeleteCall) Header() http.Header { func (c *ManagementWebpropertyUserLinksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19255,7 +19255,7 @@ func (c *ManagementWebpropertyUserLinksInsertCall) Header() http.Header { func (c *ManagementWebpropertyUserLinksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19427,7 +19427,7 @@ func (c *ManagementWebpropertyUserLinksListCall) Header() http.Header { func (c *ManagementWebpropertyUserLinksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19587,7 +19587,7 @@ func (c *ManagementWebpropertyUserLinksUpdateCall) Header() http.Header { func (c *ManagementWebpropertyUserLinksUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19750,7 +19750,7 @@ func (c *MetadataColumnsListCall) Header() http.Header { func (c *MetadataColumnsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19884,7 +19884,7 @@ func (c *ProvisioningCreateAccountTicketCall) Header() http.Header { func (c *ProvisioningCreateAccountTicketCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20006,7 +20006,7 @@ func (c *ProvisioningCreateAccountTreeCall) Header() http.Header { func (c *ProvisioningCreateAccountTreeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20128,7 +20128,7 @@ func (c *UserDeletionUserDeletionRequestUpsertCall) Header() http.Header { func (c *UserDeletionUserDeletionRequestUpsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/analyticsadmin/v1alpha/analyticsadmin-api.json b/analyticsadmin/v1alpha/analyticsadmin-api.json index 5be101a6b8e..ec06f447962 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-api.json +++ b/analyticsadmin/v1alpha/analyticsadmin-api.json @@ -463,7 +463,7 @@ ], "parameters": { "notifyNewUser": { - "description": "Optional. If notify_new_user is set, then email new user that they've been given permissions on the resource.", + "description": "Optional. If set, then email the new user notifying them that they've been granted permissions to the resource.", "location": "query", "type": "boolean" }, @@ -1449,7 +1449,7 @@ ], "parameters": { "notifyNewUser": { - "description": "Optional. If notify_new_user is set, then email new user that they've been given permissions on the resource.", + "description": "Optional. If set, then email the new user notifying them that they've been granted permissions to the resource.", "location": "query", "type": "boolean" }, @@ -1827,7 +1827,7 @@ } } }, - "revision": "20201015", + "revision": "20201031", "rootUrl": "https://analyticsadmin.googleapis.com/", "schemas": { "GoogleAnalyticsAdminV1alphaAccount": { @@ -1835,7 +1835,7 @@ "id": "GoogleAnalyticsAdminV1alphaAccount", "properties": { "countryCode": { - "description": "Country of business. Must be a non-deprecated code for a UN M.49 region. https://unicode.org/cldr/charts/latest/supplemental/territory_containment_un_m_49.html", + "description": "Country of business. Must be a non-deprecated code for a UN M.49 region. https: //unicode.org/cldr/charts/latest/supplem // ental/territory_containment_un_m_49.html", "type": "string" }, "createTime": { @@ -1998,11 +1998,11 @@ "id": "GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest", "properties": { "notifyNewUsers": { - "description": "Optional. If notify_new_users is set, then email new users that they've been given permissions on the resource.", + "description": "Optional. If set, then email the new users notifying them that they've been granted permissions to the resource. Regardless of whether this is set or not, notify_new_user field inside each individual request is ignored.", "type": "boolean" }, "requests": { - "description": "The requests specifying the user links to create. A maximum of 1000 user links can be created in a batch.", + "description": "Required. The requests specifying the user links to create. A maximum of 1000 user links can be created in a batch.", "items": { "$ref": "GoogleAnalyticsAdminV1alphaCreateUserLinkRequest" }, @@ -2030,7 +2030,7 @@ "id": "GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest", "properties": { "requests": { - "description": "The requests specifying the user links to update. A maximum of 1000 user links can be updated in a batch.", + "description": "Required. The requests specifying the user links to update. A maximum of 1000 user links can be updated in a batch.", "items": { "$ref": "GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest" }, @@ -2058,7 +2058,7 @@ "id": "GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest", "properties": { "requests": { - "description": "The requests specifying the user links to update. A maximum of 1000 user links can be updated in a batch.", + "description": "Required. The requests specifying the user links to update. A maximum of 1000 user links can be updated in a batch.", "items": { "$ref": "GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest" }, @@ -2086,7 +2086,7 @@ "id": "GoogleAnalyticsAdminV1alphaCreateUserLinkRequest", "properties": { "notifyNewUser": { - "description": "Optional. If notify_new_user is set, then email new user that they've been given permissions on the resource.", + "description": "Optional. If set, then email the new user notifying them that they've been granted permissions to the resource.", "type": "boolean" }, "parent": { diff --git a/analyticsadmin/v1alpha/analyticsadmin-gen.go b/analyticsadmin/v1alpha/analyticsadmin-gen.go index bfd5c41f28d..c31e3b5e4b3 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-gen.go +++ b/analyticsadmin/v1alpha/analyticsadmin-gen.go @@ -272,8 +272,8 @@ type PropertiesWebDataStreamsService struct { // Google Analytics account. type GoogleAnalyticsAdminV1alphaAccount struct { // CountryCode: Country of business. Must be a non-deprecated code for a - // UN M.49 region. - // https://unicode.org/cldr/charts/latest/supplemental/territory_containment_un_m_49.html + // UN M.49 region. https: //unicode.org/cldr/charts/latest/supplem // + // ental/territory_containment_un_m_49.html CountryCode string `json:"countryCode,omitempty"` // CreateTime: Output only. Time when this account was originally @@ -545,12 +545,14 @@ func (s *GoogleAnalyticsAdminV1alphaAuditUserLinksResponse) MarshalJSON() ([]byt // GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest: Request // message for BatchCreateUserLinks RPC. type GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest struct { - // NotifyNewUsers: Optional. If notify_new_users is set, then email new - // users that they've been given permissions on the resource. + // NotifyNewUsers: Optional. If set, then email the new users notifying + // them that they've been granted permissions to the resource. + // Regardless of whether this is set or not, notify_new_user field + // inside each individual request is ignored. NotifyNewUsers bool `json:"notifyNewUsers,omitempty"` - // Requests: The requests specifying the user links to create. A maximum - // of 1000 user links can be created in a batch. + // Requests: Required. The requests specifying the user links to create. + // A maximum of 1000 user links can be created in a batch. Requests []*GoogleAnalyticsAdminV1alphaCreateUserLinkRequest `json:"requests,omitempty"` // ForceSendFields is a list of field names (e.g. "NotifyNewUsers") to @@ -613,8 +615,8 @@ func (s *GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse) MarshalJSON() // GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest: Request // message for BatchDeleteUserLinks RPC. type GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest struct { - // Requests: The requests specifying the user links to update. A maximum - // of 1000 user links can be updated in a batch. + // Requests: Required. The requests specifying the user links to update. + // A maximum of 1000 user links can be updated in a batch. Requests []*GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest `json:"requests,omitempty"` // ForceSendFields is a list of field names (e.g. "Requests") to @@ -676,8 +678,8 @@ func (s *GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse) MarshalJSON() ([] // GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest: Request // message for BatchUpdateUserLinks RPC. type GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest struct { - // Requests: The requests specifying the user links to update. A maximum - // of 1000 user links can be updated in a batch. + // Requests: Required. The requests specifying the user links to update. + // A maximum of 1000 user links can be updated in a batch. Requests []*GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest `json:"requests,omitempty"` // ForceSendFields is a list of field names (e.g. "Requests") to @@ -745,8 +747,8 @@ func (s *GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse) MarshalJSON() // address. As a result, the input and output email address for this // request may differ. type GoogleAnalyticsAdminV1alphaCreateUserLinkRequest struct { - // NotifyNewUser: Optional. If notify_new_user is set, then email new - // user that they've been given permissions on the resource. + // NotifyNewUser: Optional. If set, then email the new user notifying + // them that they've been granted permissions to the resource. NotifyNewUser bool `json:"notifyNewUser,omitempty"` // Parent: Required. Example format: accounts/1234 @@ -1968,7 +1970,7 @@ func (c *AccountSummariesListCall) Header() http.Header { func (c *AccountSummariesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2131,7 +2133,7 @@ func (c *AccountsDeleteCall) Header() http.Header { func (c *AccountsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2274,7 +2276,7 @@ func (c *AccountsGetCall) Header() http.Header { func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2420,7 +2422,7 @@ func (c *AccountsGetDataSharingSettingsCall) Header() http.Header { func (c *AccountsGetDataSharingSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2596,7 +2598,7 @@ func (c *AccountsListCall) Header() http.Header { func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2765,7 +2767,7 @@ func (c *AccountsPatchCall) Header() http.Header { func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2910,7 +2912,7 @@ func (c *AccountsProvisionAccountTicketCall) Header() http.Header { func (c *AccountsProvisionAccountTicketCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3046,7 +3048,7 @@ func (c *AccountsUserLinksAuditCall) Header() http.Header { func (c *AccountsUserLinksAuditCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3211,7 +3213,7 @@ func (c *AccountsUserLinksBatchCreateCall) Header() http.Header { func (c *AccountsUserLinksBatchCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3355,7 +3357,7 @@ func (c *AccountsUserLinksBatchDeleteCall) Header() http.Header { func (c *AccountsUserLinksBatchDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3513,7 +3515,7 @@ func (c *AccountsUserLinksBatchGetCall) Header() http.Header { func (c *AccountsUserLinksBatchGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3657,7 +3659,7 @@ func (c *AccountsUserLinksBatchUpdateCall) Header() http.Header { func (c *AccountsUserLinksBatchUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3776,9 +3778,9 @@ func (r *AccountsUserLinksService) Create(parent string, googleanalyticsadminv1a return c } -// NotifyNewUser sets the optional parameter "notifyNewUser": If -// notify_new_user is set, then email new user that they've been given -// permissions on the resource. +// NotifyNewUser sets the optional parameter "notifyNewUser": If set, +// then email the new user notifying them that they've been granted +// permissions to the resource. func (c *AccountsUserLinksCreateCall) NotifyNewUser(notifyNewUser bool) *AccountsUserLinksCreateCall { c.urlParams_.Set("notifyNewUser", fmt.Sprint(notifyNewUser)) return c @@ -3811,7 +3813,7 @@ func (c *AccountsUserLinksCreateCall) Header() http.Header { func (c *AccountsUserLinksCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3885,7 +3887,7 @@ func (c *AccountsUserLinksCreateCall) Do(opts ...googleapi.CallOption) (*GoogleA // ], // "parameters": { // "notifyNewUser": { - // "description": "Optional. If notify_new_user is set, then email new user that they've been given permissions on the resource.", + // "description": "Optional. If set, then email the new user notifying them that they've been granted permissions to the resource.", // "location": "query", // "type": "boolean" // }, @@ -3955,7 +3957,7 @@ func (c *AccountsUserLinksDeleteCall) Header() http.Header { func (c *AccountsUserLinksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4096,7 +4098,7 @@ func (c *AccountsUserLinksGetCall) Header() http.Header { func (c *AccountsUserLinksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4260,7 +4262,7 @@ func (c *AccountsUserLinksListCall) Header() http.Header { func (c *AccountsUserLinksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4429,7 +4431,7 @@ func (c *AccountsUserLinksPatchCall) Header() http.Header { func (c *AccountsUserLinksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4569,7 +4571,7 @@ func (c *PropertiesCreateCall) Header() http.Header { func (c *PropertiesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4702,7 +4704,7 @@ func (c *PropertiesDeleteCall) Header() http.Header { func (c *PropertiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4845,7 +4847,7 @@ func (c *PropertiesGetCall) Header() http.Header { func (c *PropertiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5036,7 +5038,7 @@ func (c *PropertiesListCall) Header() http.Header { func (c *PropertiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5210,7 +5212,7 @@ func (c *PropertiesPatchCall) Header() http.Header { func (c *PropertiesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5358,7 +5360,7 @@ func (c *PropertiesAndroidAppDataStreamsCreateCall) Header() http.Header { func (c *PropertiesAndroidAppDataStreamsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5498,7 +5500,7 @@ func (c *PropertiesAndroidAppDataStreamsDeleteCall) Header() http.Header { func (c *PropertiesAndroidAppDataStreamsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5641,7 +5643,7 @@ func (c *PropertiesAndroidAppDataStreamsGetCall) Header() http.Header { func (c *PropertiesAndroidAppDataStreamsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5809,7 +5811,7 @@ func (c *PropertiesAndroidAppDataStreamsListCall) Header() http.Header { func (c *PropertiesAndroidAppDataStreamsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5986,7 +5988,7 @@ func (c *PropertiesAndroidAppDataStreamsPatchCall) Header() http.Header { func (c *PropertiesAndroidAppDataStreamsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6135,7 +6137,7 @@ func (c *PropertiesFirebaseLinksCreateCall) Header() http.Header { func (c *PropertiesFirebaseLinksCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6274,7 +6276,7 @@ func (c *PropertiesFirebaseLinksDeleteCall) Header() http.Header { func (c *PropertiesFirebaseLinksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6416,7 +6418,7 @@ func (c *PropertiesFirebaseLinksListCall) Header() http.Header { func (c *PropertiesFirebaseLinksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6560,7 +6562,7 @@ func (c *PropertiesFirebaseLinksPatchCall) Header() http.Header { func (c *PropertiesFirebaseLinksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6707,7 +6709,7 @@ func (c *PropertiesGoogleAdsLinksCreateCall) Header() http.Header { func (c *PropertiesGoogleAdsLinksCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6847,7 +6849,7 @@ func (c *PropertiesGoogleAdsLinksDeleteCall) Header() http.Header { func (c *PropertiesGoogleAdsLinksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7007,7 +7009,7 @@ func (c *PropertiesGoogleAdsLinksListCall) Header() http.Header { func (c *PropertiesGoogleAdsLinksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7183,7 +7185,7 @@ func (c *PropertiesGoogleAdsLinksPatchCall) Header() http.Header { func (c *PropertiesGoogleAdsLinksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7332,7 +7334,7 @@ func (c *PropertiesIosAppDataStreamsCreateCall) Header() http.Header { func (c *PropertiesIosAppDataStreamsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7472,7 +7474,7 @@ func (c *PropertiesIosAppDataStreamsDeleteCall) Header() http.Header { func (c *PropertiesIosAppDataStreamsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7615,7 +7617,7 @@ func (c *PropertiesIosAppDataStreamsGetCall) Header() http.Header { func (c *PropertiesIosAppDataStreamsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7783,7 +7785,7 @@ func (c *PropertiesIosAppDataStreamsListCall) Header() http.Header { func (c *PropertiesIosAppDataStreamsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7960,7 +7962,7 @@ func (c *PropertiesIosAppDataStreamsPatchCall) Header() http.Header { func (c *PropertiesIosAppDataStreamsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8114,7 +8116,7 @@ func (c *PropertiesUserLinksAuditCall) Header() http.Header { func (c *PropertiesUserLinksAuditCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8279,7 +8281,7 @@ func (c *PropertiesUserLinksBatchCreateCall) Header() http.Header { func (c *PropertiesUserLinksBatchCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8423,7 +8425,7 @@ func (c *PropertiesUserLinksBatchDeleteCall) Header() http.Header { func (c *PropertiesUserLinksBatchDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8581,7 +8583,7 @@ func (c *PropertiesUserLinksBatchGetCall) Header() http.Header { func (c *PropertiesUserLinksBatchGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8725,7 +8727,7 @@ func (c *PropertiesUserLinksBatchUpdateCall) Header() http.Header { func (c *PropertiesUserLinksBatchUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8844,9 +8846,9 @@ func (r *PropertiesUserLinksService) Create(parent string, googleanalyticsadminv return c } -// NotifyNewUser sets the optional parameter "notifyNewUser": If -// notify_new_user is set, then email new user that they've been given -// permissions on the resource. +// NotifyNewUser sets the optional parameter "notifyNewUser": If set, +// then email the new user notifying them that they've been granted +// permissions to the resource. func (c *PropertiesUserLinksCreateCall) NotifyNewUser(notifyNewUser bool) *PropertiesUserLinksCreateCall { c.urlParams_.Set("notifyNewUser", fmt.Sprint(notifyNewUser)) return c @@ -8879,7 +8881,7 @@ func (c *PropertiesUserLinksCreateCall) Header() http.Header { func (c *PropertiesUserLinksCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8953,7 +8955,7 @@ func (c *PropertiesUserLinksCreateCall) Do(opts ...googleapi.CallOption) (*Googl // ], // "parameters": { // "notifyNewUser": { - // "description": "Optional. If notify_new_user is set, then email new user that they've been given permissions on the resource.", + // "description": "Optional. If set, then email the new user notifying them that they've been granted permissions to the resource.", // "location": "query", // "type": "boolean" // }, @@ -9023,7 +9025,7 @@ func (c *PropertiesUserLinksDeleteCall) Header() http.Header { func (c *PropertiesUserLinksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9164,7 +9166,7 @@ func (c *PropertiesUserLinksGetCall) Header() http.Header { func (c *PropertiesUserLinksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9328,7 +9330,7 @@ func (c *PropertiesUserLinksListCall) Header() http.Header { func (c *PropertiesUserLinksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9497,7 +9499,7 @@ func (c *PropertiesUserLinksPatchCall) Header() http.Header { func (c *PropertiesUserLinksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9639,7 +9641,7 @@ func (c *PropertiesWebDataStreamsCreateCall) Header() http.Header { func (c *PropertiesWebDataStreamsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9779,7 +9781,7 @@ func (c *PropertiesWebDataStreamsDeleteCall) Header() http.Header { func (c *PropertiesWebDataStreamsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9922,7 +9924,7 @@ func (c *PropertiesWebDataStreamsGetCall) Header() http.Header { func (c *PropertiesWebDataStreamsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10070,7 +10072,7 @@ func (c *PropertiesWebDataStreamsGetEnhancedMeasurementSettingsCall) Header() ht func (c *PropertiesWebDataStreamsGetEnhancedMeasurementSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10218,7 +10220,7 @@ func (c *PropertiesWebDataStreamsGetGlobalSiteTagCall) Header() http.Header { func (c *PropertiesWebDataStreamsGetGlobalSiteTagCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10386,7 +10388,7 @@ func (c *PropertiesWebDataStreamsListCall) Header() http.Header { func (c *PropertiesWebDataStreamsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10562,7 +10564,7 @@ func (c *PropertiesWebDataStreamsPatchCall) Header() http.Header { func (c *PropertiesWebDataStreamsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10719,7 +10721,7 @@ func (c *PropertiesWebDataStreamsUpdateEnhancedMeasurementSettingsCall) Header() func (c *PropertiesWebDataStreamsUpdateEnhancedMeasurementSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/analyticsdata/v1alpha/analyticsdata-api.json b/analyticsdata/v1alpha/analyticsdata-api.json index 7b982e7df43..2fa5a0b9e0d 100644 --- a/analyticsdata/v1alpha/analyticsdata-api.json +++ b/analyticsdata/v1alpha/analyticsdata-api.json @@ -17,7 +17,7 @@ "canonicalName": "AnalyticsData", "description": "Accesses report data in Google Analytics.", "discoveryVersion": "v1", - "documentationLink": "https://developers.google.com/analytics/trusted-testing/analytics-data/", + "documentationLink": "https://developers.google.com/analytics/devguides/reporting/data/v1/", "fullyEncodeReservedExpansion": true, "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", @@ -120,7 +120,7 @@ ], "parameters": { "name": { - "description": "Required. The resource name of the metadata to retrieve. This name field is specified in the URL path and not URL parameters. Property is a numeric Google Analytics GA4 Property identifier. Example: properties/1234/metadata", + "description": "Required. The resource name of the metadata to retrieve. This name field is specified in the URL path and not URL parameters. Property is a numeric Google Analytics GA4 Property identifier. To learn more, see [where to find your Property ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). Example: properties/1234/metadata Set the Property ID to 0 for dimensions and metrics common to all properties. In this special mode, this method will not return custom dimensions and metrics.", "location": "path", "pattern": "^properties/[^/]+/metadata$", "required": true, @@ -135,6 +135,35 @@ "https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly" ] + }, + "runRealtimeReport": { + "description": "The Google Analytics Realtime API returns a customized report of realtime event data for your property. These reports show events and usage from the last 30 minutes.", + "flatPath": "v1alpha/properties/{propertiesId}:runRealtimeReport", + "httpMethod": "POST", + "id": "analyticsdata.properties.runRealtimeReport", + "parameterOrder": [ + "property" + ], + "parameters": { + "property": { + "description": "A Google Analytics GA4 property identifier whose events are tracked. Specified in the URL path and not the body. To learn more, see [where to find your Property ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). Example: properties/1234", + "location": "path", + "pattern": "^properties/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+property}:runRealtimeReport", + "request": { + "$ref": "RunRealtimeReportRequest" + }, + "response": { + "$ref": "RunRealtimeReportResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics", + "https://www.googleapis.com/auth/analytics.readonly" + ] } } }, @@ -178,22 +207,6 @@ "https://www.googleapis.com/auth/analytics.readonly" ] }, - "getUniversalMetadata": { - "description": "Returns metadata for dimensions and metrics available in reporting methods. Used to explore the dimensions and metrics. Dimensions and metrics will be mostly added over time, but renames and deletions may occur. This method returns Universal Metadata. Universal Metadata are dimensions and metrics applicable to any property such as `country` and `totalUsers`.", - "flatPath": "v1alpha/universalMetadata", - "httpMethod": "GET", - "id": "analyticsdata.getUniversalMetadata", - "parameterOrder": [], - "parameters": {}, - "path": "v1alpha/universalMetadata", - "response": { - "$ref": "UniversalMetadata" - }, - "scopes": [ - "https://www.googleapis.com/auth/analytics", - "https://www.googleapis.com/auth/analytics.readonly" - ] - }, "runPivotReport": { "description": "Returns a customized pivot report of your Google Analytics event data. Pivot reports are more advanced and expressive formats than regular reports. In a pivot report, dimensions are only visible if they are included in a pivot. Multiple pivots can be specified to further dissect your data.", "flatPath": "v1alpha:runPivotReport", @@ -235,7 +248,7 @@ } } }, - "revision": "20201016", + "revision": "20201118", "rootUrl": "https://analyticsdata.googleapis.com/", "schemas": { "BatchRunPivotReportsRequest": { @@ -432,7 +445,7 @@ "type": "object" }, "DateRange": { - "description": "A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests are allowed up to 4 date ranges, and the union of the ranges can cover up to 1 year.", + "description": "A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests are allowed up to 4 date ranges.", "id": "DateRange", "properties": { "endDate": { @@ -451,7 +464,7 @@ "type": "object" }, "Dimension": { - "description": "Dimensions are attributes of your data. For example, the dimension City indicates the city, for example, \"Paris\" or \"New York\", from which an event originates. Requests are allowed up to 8 dimensions.", + "description": "Dimensions are attributes of your data. For example, the dimension city indicates the city from which an event originates. Dimension values in report responses are strings; for example, city could be \"Paris\" or \"New York\". Requests are allowed up to 8 dimensions.", "id": "Dimension", "properties": { "dimensionExpression": { @@ -459,7 +472,7 @@ "description": "One dimension can be the result of an expression of multiple dimensions. For example, dimension \"country, city\": concatenate(country, \", \", city)." }, "name": { - "description": "The name of the dimension.", + "description": "The name of the dimension. See the [API Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) for the list of dimension names. If `dimensionExpression` is specified, `name` can be any string that you would like. For example if a `dimensionExpression` concatenates `country` and `city`, you could call that dimension `countryAndCity`. Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, `dimensionExpression`, and `pivots`.", "type": "string" } }, @@ -503,6 +516,10 @@ "description": "This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For example, `eventName`.", "type": "string" }, + "customDefinition": { + "description": "True if the dimension is a custom dimension for this property.", + "type": "boolean" + }, "deprecatedApiNames": { "description": "Still usable but deprecated names for this dimension. If populated, this dimension is available by either `apiName` or one of `deprecatedApiNames` for a period of time. After the deprecation period, the dimension will be available only by `apiName`.", "items": { @@ -564,7 +581,7 @@ "id": "Entity", "properties": { "propertyId": { - "description": "A Google Analytics GA4 property id.", + "description": "A Google Analytics GA4 property id. To learn more, see [where to find your Property ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).", "type": "string" } }, @@ -587,7 +604,7 @@ "description": "A filter for in list values." }, "nullFilter": { - "description": "A filter for null values.", + "description": "A filter for null values. If True, a null dimension value is matched by this filter. Null filter is commonly used inside a NOT filter expression. For example, a NOT expression of a null filter removes rows when a dimension is null.", "type": "boolean" }, "numericFilter": { @@ -682,19 +699,19 @@ "type": "object" }, "Metric": { - "description": "The quantitative measurements of a report. For example, the metric eventCount is the total number of events. Requests are allowed up to 10 metrics.", + "description": "The quantitative measurements of a report. For example, the metric `eventCount` is the total number of events. Requests are allowed up to 10 metrics.", "id": "Metric", "properties": { "expression": { - "description": "A mathematical expression for derived metrics. For example, the metric Event count per user is eventCount/totalUsers.", + "description": "A mathematical expression for derived metrics. For example, the metric Event count per user is `eventCount/totalUsers`.", "type": "string" }, "invisible": { - "description": "Indicates if a metric is invisible. If a metric is invisible, the metric is not in the response, but can be used in filters, order_bys or being referred to in a metric expression.", + "description": "Indicates if a metric is invisible in the report response. If a metric is invisible, the metric will not produce a column in the response, but can be used in `metricFilter`, `orderBys`, or a metric `expression`.", "type": "boolean" }, "name": { - "description": "The name of the metric.", + "description": "The name of the metric. See the [API Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) for the list of metric names. If `expression` is specified, `name` can be any string that you would like. For example if `expression` is `screenPageViews/sessions`, you could call that metric's name = `viewsPerSession`. Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric `expression`.", "type": "string" } }, @@ -753,6 +770,10 @@ "description": "A metric name. Useable in [Metric](#Metric)'s `name`. For example, `eventCount`.", "type": "string" }, + "customDefinition": { + "description": "True if the metric is a custom metric for this property.", + "type": "boolean" + }, "deprecatedApiNames": { "description": "Still usable but deprecated names for this metric. If populated, this metric is available by either `apiName` or one of `deprecatedApiNames` for a period of time. After the deprecation period, the metric will be available only by `apiName`.", "items": { @@ -1026,19 +1047,19 @@ "properties": { "concurrentRequests": { "$ref": "QuotaStatus", - "description": "Analytics Properties can send up to 10 concurrent requests." + "description": "Standard Analytics Properties can send up to 10 concurrent requests; Analytics 360 Properties can use up to 50 concurrent requests." }, "serverErrorsPerProjectPerHour": { "$ref": "QuotaStatus", - "description": "Analytics Properties and cloud project pairs can have up to 10 server errors per hour." + "description": "Standard Analytics Properties and cloud project pairs can have up to 10 server errors per hour; Analytics 360 Properties and cloud project pairs can have up to 50 server errors per hour." }, "tokensPerDay": { "$ref": "QuotaStatus", - "description": "Analytics Properties can use up to 25,000 tokens per day. Most requests consume fewer than 10 tokens." + "description": "Standard Analytics Properties can use up to 25,000 tokens per day; Analytics 360 Properties can use 250,000 tokens per day. Most requests consume fewer than 10 tokens." }, "tokensPerHour": { "$ref": "QuotaStatus", - "description": "Analytics Properties can use up to 5,000 tokens per day. An API request consumes a single number of tokens, and that number is deducted from both the hourly and daily quotas." + "description": "Standard Analytics Properties can use up to 5,000 tokens per day; Analytics 360 Properties can use 50,000 tokens per day. An API request consumes a single number of tokens, and that number is deducted from both the hourly and daily quotas." } }, "type": "object" @@ -1072,7 +1093,7 @@ "type": "object" }, "Row": { - "description": "Report data for each row. For example if RunReportRequest contains: ```none dimensions { name: \"eventName\" } dimensions { name: \"countryId\" } metrics { name: \"eventCount\" } ``` One row with 'in_app_purchase' as the eventName, 'us' as the countryId, and 15 as the eventCount, would be: ```none dimension_values { name: 'in_app_purchase' name: 'us' } metric_values { int64_value: 15 } ```", + "description": "Report data for each row. For example if RunReportRequest contains: ```none \"dimensions\": [ { \"name\": \"eventName\" }, { \"name\": \"countryId\" } ], \"metrics\": [ { \"name\": \"eventCount\" } ] ``` One row with 'in_app_purchase' as the eventName, 'JP' as the countryId, and 15 as the eventCount, would be: ```none \"dimensionValues\": [ { \"value\": \"in_app_purchase\" }, { \"value\": \"JP\" } ], \"metricValues\": [ { \"value\": \"15\" } ] ```", "id": "Row", "properties": { "dimensionValues": { @@ -1205,6 +1226,130 @@ }, "type": "object" }, + "RunRealtimeReportRequest": { + "description": "The request to generate a realtime report.", + "id": "RunRealtimeReportRequest", + "properties": { + "dimensionFilter": { + "$ref": "FilterExpression", + "description": "The filter clause of dimensions. Dimensions must be requested to be used in this filter. Metrics cannot be used in this filter." + }, + "dimensions": { + "description": "The dimensions requested and displayed.", + "items": { + "$ref": "Dimension" + }, + "type": "array" + }, + "limit": { + "description": "The number of rows to return. If unspecified, 10 rows are returned. If -1, all rows are returned.", + "format": "int64", + "type": "string" + }, + "metricAggregations": { + "description": "Aggregation of metrics. Aggregated metric values will be shown in rows where the dimension_values are set to \"RESERVED_(MetricAggregation)\".", + "items": { + "enum": [ + "METRIC_AGGREGATION_UNSPECIFIED", + "TOTAL", + "MINIMUM", + "MAXIMUM", + "COUNT" + ], + "enumDescriptions": [ + "Unspecified operator.", + "SUM operator.", + "Minimum operator.", + "Maximum operator.", + "Count operator." + ], + "type": "string" + }, + "type": "array" + }, + "metricFilter": { + "$ref": "FilterExpression", + "description": "The filter clause of metrics. Applied at post aggregation phase, similar to SQL having-clause. Metrics must be requested to be used in this filter. Dimensions cannot be used in this filter." + }, + "metrics": { + "description": "The metrics requested and displayed.", + "items": { + "$ref": "Metric" + }, + "type": "array" + }, + "orderBys": { + "description": "Specifies how rows are ordered in the response.", + "items": { + "$ref": "OrderBy" + }, + "type": "array" + }, + "returnPropertyQuota": { + "description": "Toggles whether to return the current state of this Analytics Property's Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota).", + "type": "boolean" + } + }, + "type": "object" + }, + "RunRealtimeReportResponse": { + "description": "The response realtime report table corresponding to a request.", + "id": "RunRealtimeReportResponse", + "properties": { + "dimensionHeaders": { + "description": "Describes dimension columns. The number of DimensionHeaders and ordering of DimensionHeaders matches the dimensions present in rows.", + "items": { + "$ref": "DimensionHeader" + }, + "type": "array" + }, + "maximums": { + "description": "If requested, the maximum values of metrics.", + "items": { + "$ref": "Row" + }, + "type": "array" + }, + "metricHeaders": { + "description": "Describes metric columns. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows.", + "items": { + "$ref": "MetricHeader" + }, + "type": "array" + }, + "minimums": { + "description": "If requested, the minimum values of metrics.", + "items": { + "$ref": "Row" + }, + "type": "array" + }, + "propertyQuota": { + "$ref": "PropertyQuota", + "description": "This Analytics Property's Realtime quota state including this request." + }, + "rowCount": { + "description": "The total number of rows in the query result, regardless of the number of rows returned in the response. For example if a query returns 175 rows and includes limit = 50 in the API request, the response will contain row_count = 175 but only 50 rows.", + "format": "int32", + "type": "integer" + }, + "rows": { + "description": "Rows of dimension value combinations and metric values in the report.", + "items": { + "$ref": "Row" + }, + "type": "array" + }, + "totals": { + "description": "If requested, the totaled values of metrics.", + "items": { + "$ref": "Row" + }, + "type": "array" + } + }, + "type": "object" + }, "RunReportRequest": { "description": "The request to generate a report.", "id": "RunReportRequest", @@ -1244,7 +1389,7 @@ "type": "boolean" }, "limit": { - "description": "The number of rows to return. If unspecified, 10 rows are returned. If -1, all rows are returned.", + "description": "The number of rows to return. If unspecified, 10 rows are returned. If -1, all rows are returned. To learn more about this pagination parameter, see [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).", "format": "int64", "type": "string" }, @@ -1281,7 +1426,7 @@ "type": "array" }, "offset": { - "description": "The row count of the start row. The first row is counted as row 0.", + "description": "The row count of the start row. The first row is counted as row 0. To learn more about this pagination parameter, see [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).", "format": "int64", "type": "string" }, @@ -1340,7 +1485,7 @@ "description": "This Analytics Property's quota state including this request." }, "rowCount": { - "description": "The total number of rows in the query result, regardless of the number of rows returned in the response. For example if a query returns 175 rows and includes limit = 50 in the API request, the response will contain row_count = 175 but only 50 rows.", + "description": "The total number of rows in the query result, regardless of the number of rows returned in the response. For example if a query returns 175 rows and includes limit = 50 in the API request, the response will contain row_count = 175 but only 50 rows. To learn more about this pagination parameter, see [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).", "format": "int32", "type": "integer" }, @@ -1397,27 +1542,6 @@ } }, "type": "object" - }, - "UniversalMetadata": { - "description": "The dimensions and metrics currently accepted in reporting methods.", - "id": "UniversalMetadata", - "properties": { - "dimensions": { - "description": "The dimensions descriptions.", - "items": { - "$ref": "DimensionMetadata" - }, - "type": "array" - }, - "metrics": { - "description": "The metric descriptions.", - "items": { - "$ref": "MetricMetadata" - }, - "type": "array" - } - }, - "type": "object" } }, "servicePath": "", diff --git a/analyticsdata/v1alpha/analyticsdata-gen.go b/analyticsdata/v1alpha/analyticsdata-gen.go index 268d7a89916..b57a08cfc16 100644 --- a/analyticsdata/v1alpha/analyticsdata-gen.go +++ b/analyticsdata/v1alpha/analyticsdata-gen.go @@ -6,7 +6,7 @@ // Package analyticsdata provides access to the Google Analytics Data API. // -// For product documentation, see: https://developers.google.com/analytics/trusted-testing/analytics-data/ +// For product documentation, see: https://developers.google.com/analytics/devguides/reporting/data/v1/ // // Creating a client // @@ -560,8 +560,7 @@ func (s *ConcatenateExpression) MarshalJSON() ([]byte, error) { } // DateRange: A contiguous set of days: startDate, startDate + 1, ..., -// endDate. Requests are allowed up to 4 date ranges, and the union of -// the ranges can cover up to 1 year. +// endDate. Requests are allowed up to 4 date ranges. type DateRange struct { // EndDate: The inclusive end date for the query in the format // `YYYY-MM-DD`. Cannot be before `start_date`. The format `NdaysAgo`, @@ -606,8 +605,9 @@ func (s *DateRange) MarshalJSON() ([]byte, error) { } // Dimension: Dimensions are attributes of your data. For example, the -// dimension City indicates the city, for example, "Paris" or "New -// York", from which an event originates. Requests are allowed up to 8 +// dimension city indicates the city from which an event originates. +// Dimension values in report responses are strings; for example, city +// could be "Paris" or "New York". Requests are allowed up to 8 // dimensions. type Dimension struct { // DimensionExpression: One dimension can be the result of an expression @@ -615,7 +615,14 @@ type Dimension struct { // concatenate(country, ", ", city). DimensionExpression *DimensionExpression `json:"dimensionExpression,omitempty"` - // Name: The name of the dimension. + // Name: The name of the dimension. See the [API + // Dimensions](https://developers.google.com/analytics/devguides/reportin + // g/data/v1/api-schema#dimensions) for the list of dimension names. If + // `dimensionExpression` is specified, `name` can be any string that you + // would like. For example if a `dimensionExpression` concatenates + // `country` and `city`, you could call that dimension `countryAndCity`. + // Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, + // `dimensionExpression`, and `pivots`. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "DimensionExpression") @@ -718,6 +725,10 @@ type DimensionMetadata struct { // `name`. For example, `eventName`. ApiName string `json:"apiName,omitempty"` + // CustomDefinition: True if the dimension is a custom dimension for + // this property. + CustomDefinition bool `json:"customDefinition,omitempty"` + // DeprecatedApiNames: Still usable but deprecated names for this // dimension. If populated, this dimension is available by either // `apiName` or one of `deprecatedApiNames` for a period of time. After @@ -830,7 +841,10 @@ func (s *DimensionValue) MarshalJSON() ([]byte, error) { // Entity: The unique identifier of the property whose events are // tracked. type Entity struct { - // PropertyId: A Google Analytics GA4 property id. + // PropertyId: A Google Analytics GA4 property id. To learn more, see + // [where to find your Property + // ID](https://developers.google.com/analytics/devguides/reporting/data/v + // 1/property-id). PropertyId string `json:"propertyId,omitempty"` // ForceSendFields is a list of field names (e.g. "PropertyId") to @@ -868,7 +882,10 @@ type Filter struct { // InListFilter: A filter for in list values. InListFilter *InListFilter `json:"inListFilter,omitempty"` - // NullFilter: A filter for null values. + // NullFilter: A filter for null values. If True, a null dimension value + // is matched by this filter. Null filter is commonly used inside a NOT + // filter expression. For example, a NOT expression of a null filter + // removes rows when a dimension is null. NullFilter bool `json:"nullFilter,omitempty"` // NumericFilter: A filter for numeric or date values. @@ -1040,19 +1057,27 @@ func (s *Metadata) MarshalJSON() ([]byte, error) { } // Metric: The quantitative measurements of a report. For example, the -// metric eventCount is the total number of events. Requests are allowed -// up to 10 metrics. +// metric `eventCount` is the total number of events. Requests are +// allowed up to 10 metrics. type Metric struct { // Expression: A mathematical expression for derived metrics. For - // example, the metric Event count per user is eventCount/totalUsers. + // example, the metric Event count per user is `eventCount/totalUsers`. Expression string `json:"expression,omitempty"` - // Invisible: Indicates if a metric is invisible. If a metric is - // invisible, the metric is not in the response, but can be used in - // filters, order_bys or being referred to in a metric expression. + // Invisible: Indicates if a metric is invisible in the report response. + // If a metric is invisible, the metric will not produce a column in the + // response, but can be used in `metricFilter`, `orderBys`, or a metric + // `expression`. Invisible bool `json:"invisible,omitempty"` - // Name: The name of the metric. + // Name: The name of the metric. See the [API + // Metrics](https://developers.google.com/analytics/devguides/reporting/d + // ata/v1/api-schema#metrics) for the list of metric names. If + // `expression` is specified, `name` can be any string that you would + // like. For example if `expression` is `screenPageViews/sessions`, you + // could call that metric's name = `viewsPerSession`. Metrics are + // referenced by `name` in `metricFilter`, `orderBys`, and metric + // `expression`. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "Expression") to @@ -1140,6 +1165,10 @@ type MetricMetadata struct { // example, `eventCount`. ApiName string `json:"apiName,omitempty"` + // CustomDefinition: True if the metric is a custom metric for this + // property. + CustomDefinition bool `json:"customDefinition,omitempty"` + // DeprecatedApiNames: Still usable but deprecated names for this // metric. If populated, this metric is available by either `apiName` or // one of `deprecatedApiNames` for a period of time. After the @@ -1590,19 +1619,24 @@ func (s *PivotSelection) MarshalJSON() ([]byte, error) { // Property. If any quota for a property is exhausted, all requests to // that property will return Resource Exhausted errors. type PropertyQuota struct { - // ConcurrentRequests: Analytics Properties can send up to 10 concurrent - // requests. + // ConcurrentRequests: Standard Analytics Properties can send up to 10 + // concurrent requests; Analytics 360 Properties can use up to 50 + // concurrent requests. ConcurrentRequests *QuotaStatus `json:"concurrentRequests,omitempty"` - // ServerErrorsPerProjectPerHour: Analytics Properties and cloud project - // pairs can have up to 10 server errors per hour. + // ServerErrorsPerProjectPerHour: Standard Analytics Properties and + // cloud project pairs can have up to 10 server errors per hour; + // Analytics 360 Properties and cloud project pairs can have up to 50 + // server errors per hour. ServerErrorsPerProjectPerHour *QuotaStatus `json:"serverErrorsPerProjectPerHour,omitempty"` - // TokensPerDay: Analytics Properties can use up to 25,000 tokens per + // TokensPerDay: Standard Analytics Properties can use up to 25,000 + // tokens per day; Analytics 360 Properties can use 250,000 tokens per // day. Most requests consume fewer than 10 tokens. TokensPerDay *QuotaStatus `json:"tokensPerDay,omitempty"` - // TokensPerHour: Analytics Properties can use up to 5,000 tokens per + // TokensPerHour: Standard Analytics Properties can use up to 5,000 + // tokens per day; Analytics 360 Properties can use 50,000 tokens per // day. An API request consumes a single number of tokens, and that // number is deducted from both the hourly and daily quotas. TokensPerHour *QuotaStatus `json:"tokensPerHour,omitempty"` @@ -1696,11 +1730,12 @@ func (s *ResponseMetaData) MarshalJSON() ([]byte, error) { } // Row: Report data for each row. For example if RunReportRequest -// contains: ```none dimensions { name: "eventName" } dimensions { name: -// "countryId" } metrics { name: "eventCount" } ``` One row with -// 'in_app_purchase' as the eventName, 'us' as the countryId, and 15 as -// the eventCount, would be: ```none dimension_values { name: -// 'in_app_purchase' name: 'us' } metric_values { int64_value: 15 } ``` +// contains: ```none "dimensions": [ { "name": "eventName" }, { "name": +// "countryId" } ], "metrics": [ { "name": "eventCount" } ] ``` One row +// with 'in_app_purchase' as the eventName, 'JP' as the countryId, and +// 15 as the eventCount, would be: ```none "dimensionValues": [ { +// "value": "in_app_purchase" }, { "value": "JP" } ], "metricValues": [ +// { "value": "15" } ] ``` type Row struct { // DimensionValues: List of requested dimension values. In a // PivotReport, dimension_values are only listed for dimensions included @@ -1888,6 +1923,136 @@ func (s *RunPivotReportResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// RunRealtimeReportRequest: The request to generate a realtime report. +type RunRealtimeReportRequest struct { + // DimensionFilter: The filter clause of dimensions. Dimensions must be + // requested to be used in this filter. Metrics cannot be used in this + // filter. + DimensionFilter *FilterExpression `json:"dimensionFilter,omitempty"` + + // Dimensions: The dimensions requested and displayed. + Dimensions []*Dimension `json:"dimensions,omitempty"` + + // Limit: The number of rows to return. If unspecified, 10 rows are + // returned. If -1, all rows are returned. + Limit int64 `json:"limit,omitempty,string"` + + // MetricAggregations: Aggregation of metrics. Aggregated metric values + // will be shown in rows where the dimension_values are set to + // "RESERVED_(MetricAggregation)". + // + // Possible values: + // "METRIC_AGGREGATION_UNSPECIFIED" - Unspecified operator. + // "TOTAL" - SUM operator. + // "MINIMUM" - Minimum operator. + // "MAXIMUM" - Maximum operator. + // "COUNT" - Count operator. + MetricAggregations []string `json:"metricAggregations,omitempty"` + + // MetricFilter: The filter clause of metrics. Applied at post + // aggregation phase, similar to SQL having-clause. Metrics must be + // requested to be used in this filter. Dimensions cannot be used in + // this filter. + MetricFilter *FilterExpression `json:"metricFilter,omitempty"` + + // Metrics: The metrics requested and displayed. + Metrics []*Metric `json:"metrics,omitempty"` + + // OrderBys: Specifies how rows are ordered in the response. + OrderBys []*OrderBy `json:"orderBys,omitempty"` + + // ReturnPropertyQuota: Toggles whether to return the current state of + // this Analytics Property's Realtime quota. Quota is returned in + // [PropertyQuota](#PropertyQuota). + ReturnPropertyQuota bool `json:"returnPropertyQuota,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DimensionFilter") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DimensionFilter") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *RunRealtimeReportRequest) MarshalJSON() ([]byte, error) { + type NoMethod RunRealtimeReportRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RunRealtimeReportResponse: The response realtime report table +// corresponding to a request. +type RunRealtimeReportResponse struct { + // DimensionHeaders: Describes dimension columns. The number of + // DimensionHeaders and ordering of DimensionHeaders matches the + // dimensions present in rows. + DimensionHeaders []*DimensionHeader `json:"dimensionHeaders,omitempty"` + + // Maximums: If requested, the maximum values of metrics. + Maximums []*Row `json:"maximums,omitempty"` + + // MetricHeaders: Describes metric columns. The number of MetricHeaders + // and ordering of MetricHeaders matches the metrics present in rows. + MetricHeaders []*MetricHeader `json:"metricHeaders,omitempty"` + + // Minimums: If requested, the minimum values of metrics. + Minimums []*Row `json:"minimums,omitempty"` + + // PropertyQuota: This Analytics Property's Realtime quota state + // including this request. + PropertyQuota *PropertyQuota `json:"propertyQuota,omitempty"` + + // RowCount: The total number of rows in the query result, regardless of + // the number of rows returned in the response. For example if a query + // returns 175 rows and includes limit = 50 in the API request, the + // response will contain row_count = 175 but only 50 rows. + RowCount int64 `json:"rowCount,omitempty"` + + // Rows: Rows of dimension value combinations and metric values in the + // report. + Rows []*Row `json:"rows,omitempty"` + + // Totals: If requested, the totaled values of metrics. + Totals []*Row `json:"totals,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DimensionHeaders") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DimensionHeaders") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *RunRealtimeReportResponse) MarshalJSON() ([]byte, error) { + type NoMethod RunRealtimeReportResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // RunReportRequest: The request to generate a report. type RunReportRequest struct { // CohortSpec: Cohort group associated with this request. If there is a @@ -1925,7 +2090,10 @@ type RunReportRequest struct { KeepEmptyRows bool `json:"keepEmptyRows,omitempty"` // Limit: The number of rows to return. If unspecified, 10 rows are - // returned. If -1, all rows are returned. + // returned. If -1, all rows are returned. To learn more about this + // pagination parameter, see + // [Pagination](https://developers.google.com/analytics/devguides/reporti + // ng/data/v1/basics#pagination). Limit int64 `json:"limit,omitempty,string"` // MetricAggregations: Aggregation of metrics. Aggregated metric values @@ -1950,7 +2118,9 @@ type RunReportRequest struct { Metrics []*Metric `json:"metrics,omitempty"` // Offset: The row count of the start row. The first row is counted as - // row 0. + // row 0. To learn more about this pagination parameter, see + // [Pagination](https://developers.google.com/analytics/devguides/reporti + // ng/data/v1/basics#pagination). Offset int64 `json:"offset,omitempty,string"` // OrderBys: Specifies how rows are ordered in the response. @@ -2012,7 +2182,10 @@ type RunReportResponse struct { // RowCount: The total number of rows in the query result, regardless of // the number of rows returned in the response. For example if a query // returns 175 rows and includes limit = 50 in the API request, the - // response will contain row_count = 175 but only 50 rows. + // response will contain row_count = 175 but only 50 rows. To learn more + // about this pagination parameter, see + // [Pagination](https://developers.google.com/analytics/devguides/reporti + // ng/data/v1/basics#pagination). RowCount int64 `json:"rowCount,omitempty"` // Rows: Rows of dimension value combinations and metric values in the @@ -2095,42 +2268,6 @@ func (s *StringFilter) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// UniversalMetadata: The dimensions and metrics currently accepted in -// reporting methods. -type UniversalMetadata struct { - // Dimensions: The dimensions descriptions. - Dimensions []*DimensionMetadata `json:"dimensions,omitempty"` - - // Metrics: The metric descriptions. - Metrics []*MetricMetadata `json:"metrics,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Dimensions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Dimensions") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *UniversalMetadata) MarshalJSON() ([]byte, error) { - type NoMethod UniversalMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // method id "analyticsdata.properties.getMetadata": type PropertiesGetMetadataCall struct { @@ -2195,7 +2332,7 @@ func (c *PropertiesGetMetadataCall) Header() http.Header { func (c *PropertiesGetMetadataCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2266,7 +2403,7 @@ func (c *PropertiesGetMetadataCall) Do(opts ...googleapi.CallOption) (*Metadata, // ], // "parameters": { // "name": { - // "description": "Required. The resource name of the metadata to retrieve. This name field is specified in the URL path and not URL parameters. Property is a numeric Google Analytics GA4 Property identifier. Example: properties/1234/metadata", + // "description": "Required. The resource name of the metadata to retrieve. This name field is specified in the URL path and not URL parameters. Property is a numeric Google Analytics GA4 Property identifier. To learn more, see [where to find your Property ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). Example: properties/1234/metadata Set the Property ID to 0 for dimensions and metrics common to all properties. In this special mode, this method will not return custom dimensions and metrics.", // "location": "path", // "pattern": "^properties/[^/]+/metadata$", // "required": true, @@ -2285,28 +2422,31 @@ func (c *PropertiesGetMetadataCall) Do(opts ...googleapi.CallOption) (*Metadata, } -// method id "analyticsdata.batchRunPivotReports": +// method id "analyticsdata.properties.runRealtimeReport": -type V1alphaBatchRunPivotReportsCall struct { - s *Service - batchrunpivotreportsrequest *BatchRunPivotReportsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type PropertiesRunRealtimeReportCall struct { + s *Service + propertyid string + runrealtimereportrequest *RunRealtimeReportRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// BatchRunPivotReports: Returns multiple pivot reports in a batch. All -// reports must be for the same Entity. -func (r *V1alphaService) BatchRunPivotReports(batchrunpivotreportsrequest *BatchRunPivotReportsRequest) *V1alphaBatchRunPivotReportsCall { - c := &V1alphaBatchRunPivotReportsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.batchrunpivotreportsrequest = batchrunpivotreportsrequest +// RunRealtimeReport: The Google Analytics Realtime API returns a +// customized report of realtime event data for your property. These +// reports show events and usage from the last 30 minutes. +func (r *PropertiesService) RunRealtimeReport(propertyid string, runrealtimereportrequest *RunRealtimeReportRequest) *PropertiesRunRealtimeReportCall { + c := &PropertiesRunRealtimeReportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.propertyid = propertyid + c.runrealtimereportrequest = runrealtimereportrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *V1alphaBatchRunPivotReportsCall) Fields(s ...googleapi.Field) *V1alphaBatchRunPivotReportsCall { +func (c *PropertiesRunRealtimeReportCall) Fields(s ...googleapi.Field) *PropertiesRunRealtimeReportCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -2314,53 +2454,56 @@ func (c *V1alphaBatchRunPivotReportsCall) Fields(s ...googleapi.Field) *V1alphaB // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *V1alphaBatchRunPivotReportsCall) Context(ctx context.Context) *V1alphaBatchRunPivotReportsCall { +func (c *PropertiesRunRealtimeReportCall) Context(ctx context.Context) *PropertiesRunRealtimeReportCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *V1alphaBatchRunPivotReportsCall) Header() http.Header { +func (c *PropertiesRunRealtimeReportCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *V1alphaBatchRunPivotReportsCall) doRequest(alt string) (*http.Response, error) { +func (c *PropertiesRunRealtimeReportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.batchrunpivotreportsrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.runrealtimereportrequest) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha:batchRunPivotReports") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+property}:runRealtimeReport") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "property": c.propertyid, + }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsdata.batchRunPivotReports" call. -// Exactly one of *BatchRunPivotReportsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *BatchRunPivotReportsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "analyticsdata.properties.runRealtimeReport" call. +// Exactly one of *RunRealtimeReportResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *RunRealtimeReportResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *V1alphaBatchRunPivotReportsCall) Do(opts ...googleapi.CallOption) (*BatchRunPivotReportsResponse, error) { +func (c *PropertiesRunRealtimeReportCall) Do(opts ...googleapi.CallOption) (*RunRealtimeReportResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2379,7 +2522,7 @@ func (c *V1alphaBatchRunPivotReportsCall) Do(opts ...googleapi.CallOption) (*Bat if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &BatchRunPivotReportsResponse{ + ret := &RunRealtimeReportResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2391,18 +2534,28 @@ func (c *V1alphaBatchRunPivotReportsCall) Do(opts ...googleapi.CallOption) (*Bat } return ret, nil // { - // "description": "Returns multiple pivot reports in a batch. All reports must be for the same Entity.", - // "flatPath": "v1alpha:batchRunPivotReports", + // "description": "The Google Analytics Realtime API returns a customized report of realtime event data for your property. These reports show events and usage from the last 30 minutes.", + // "flatPath": "v1alpha/properties/{propertiesId}:runRealtimeReport", // "httpMethod": "POST", - // "id": "analyticsdata.batchRunPivotReports", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1alpha:batchRunPivotReports", + // "id": "analyticsdata.properties.runRealtimeReport", + // "parameterOrder": [ + // "property" + // ], + // "parameters": { + // "property": { + // "description": "A Google Analytics GA4 property identifier whose events are tracked. Specified in the URL path and not the body. To learn more, see [where to find your Property ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). Example: properties/1234", + // "location": "path", + // "pattern": "^properties/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+property}:runRealtimeReport", // "request": { - // "$ref": "BatchRunPivotReportsRequest" + // "$ref": "RunRealtimeReportRequest" // }, // "response": { - // "$ref": "BatchRunPivotReportsResponse" + // "$ref": "RunRealtimeReportResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/analytics", @@ -2412,28 +2565,28 @@ func (c *V1alphaBatchRunPivotReportsCall) Do(opts ...googleapi.CallOption) (*Bat } -// method id "analyticsdata.batchRunReports": +// method id "analyticsdata.batchRunPivotReports": -type V1alphaBatchRunReportsCall struct { - s *Service - batchrunreportsrequest *BatchRunReportsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type V1alphaBatchRunPivotReportsCall struct { + s *Service + batchrunpivotreportsrequest *BatchRunPivotReportsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// BatchRunReports: Returns multiple reports in a batch. All reports -// must be for the same Entity. -func (r *V1alphaService) BatchRunReports(batchrunreportsrequest *BatchRunReportsRequest) *V1alphaBatchRunReportsCall { - c := &V1alphaBatchRunReportsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.batchrunreportsrequest = batchrunreportsrequest +// BatchRunPivotReports: Returns multiple pivot reports in a batch. All +// reports must be for the same Entity. +func (r *V1alphaService) BatchRunPivotReports(batchrunpivotreportsrequest *BatchRunPivotReportsRequest) *V1alphaBatchRunPivotReportsCall { + c := &V1alphaBatchRunPivotReportsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.batchrunpivotreportsrequest = batchrunpivotreportsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *V1alphaBatchRunReportsCall) Fields(s ...googleapi.Field) *V1alphaBatchRunReportsCall { +func (c *V1alphaBatchRunPivotReportsCall) Fields(s ...googleapi.Field) *V1alphaBatchRunPivotReportsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -2441,36 +2594,36 @@ func (c *V1alphaBatchRunReportsCall) Fields(s ...googleapi.Field) *V1alphaBatchR // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *V1alphaBatchRunReportsCall) Context(ctx context.Context) *V1alphaBatchRunReportsCall { +func (c *V1alphaBatchRunPivotReportsCall) Context(ctx context.Context) *V1alphaBatchRunPivotReportsCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *V1alphaBatchRunReportsCall) Header() http.Header { +func (c *V1alphaBatchRunPivotReportsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *V1alphaBatchRunReportsCall) doRequest(alt string) (*http.Response, error) { +func (c *V1alphaBatchRunPivotReportsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.batchrunreportsrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.batchrunpivotreportsrequest) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha:batchRunReports") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha:batchRunPivotReports") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -2480,14 +2633,14 @@ func (c *V1alphaBatchRunReportsCall) doRequest(alt string) (*http.Response, erro return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsdata.batchRunReports" call. -// Exactly one of *BatchRunReportsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *BatchRunReportsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "analyticsdata.batchRunPivotReports" call. +// Exactly one of *BatchRunPivotReportsResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *BatchRunPivotReportsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *V1alphaBatchRunReportsCall) Do(opts ...googleapi.CallOption) (*BatchRunReportsResponse, error) { +func (c *V1alphaBatchRunPivotReportsCall) Do(opts ...googleapi.CallOption) (*BatchRunPivotReportsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2506,7 +2659,7 @@ func (c *V1alphaBatchRunReportsCall) Do(opts ...googleapi.CallOption) (*BatchRun if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &BatchRunReportsResponse{ + ret := &BatchRunPivotReportsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2518,18 +2671,18 @@ func (c *V1alphaBatchRunReportsCall) Do(opts ...googleapi.CallOption) (*BatchRun } return ret, nil // { - // "description": "Returns multiple reports in a batch. All reports must be for the same Entity.", - // "flatPath": "v1alpha:batchRunReports", + // "description": "Returns multiple pivot reports in a batch. All reports must be for the same Entity.", + // "flatPath": "v1alpha:batchRunPivotReports", // "httpMethod": "POST", - // "id": "analyticsdata.batchRunReports", + // "id": "analyticsdata.batchRunPivotReports", // "parameterOrder": [], // "parameters": {}, - // "path": "v1alpha:batchRunReports", + // "path": "v1alpha:batchRunPivotReports", // "request": { - // "$ref": "BatchRunReportsRequest" + // "$ref": "BatchRunPivotReportsRequest" // }, // "response": { - // "$ref": "BatchRunReportsResponse" + // "$ref": "BatchRunPivotReportsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/analytics", @@ -2539,78 +2692,67 @@ func (c *V1alphaBatchRunReportsCall) Do(opts ...googleapi.CallOption) (*BatchRun } -// method id "analyticsdata.getUniversalMetadata": +// method id "analyticsdata.batchRunReports": -type V1alphaGetUniversalMetadataCall struct { - s *Service - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type V1alphaBatchRunReportsCall struct { + s *Service + batchrunreportsrequest *BatchRunReportsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetUniversalMetadata: Returns metadata for dimensions and metrics -// available in reporting methods. Used to explore the dimensions and -// metrics. Dimensions and metrics will be mostly added over time, but -// renames and deletions may occur. This method returns Universal -// Metadata. Universal Metadata are dimensions and metrics applicable to -// any property such as `country` and `totalUsers`. -func (r *V1alphaService) GetUniversalMetadata() *V1alphaGetUniversalMetadataCall { - c := &V1alphaGetUniversalMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// BatchRunReports: Returns multiple reports in a batch. All reports +// must be for the same Entity. +func (r *V1alphaService) BatchRunReports(batchrunreportsrequest *BatchRunReportsRequest) *V1alphaBatchRunReportsCall { + c := &V1alphaBatchRunReportsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.batchrunreportsrequest = batchrunreportsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *V1alphaGetUniversalMetadataCall) Fields(s ...googleapi.Field) *V1alphaGetUniversalMetadataCall { +func (c *V1alphaBatchRunReportsCall) Fields(s ...googleapi.Field) *V1alphaBatchRunReportsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *V1alphaGetUniversalMetadataCall) IfNoneMatch(entityTag string) *V1alphaGetUniversalMetadataCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *V1alphaGetUniversalMetadataCall) Context(ctx context.Context) *V1alphaGetUniversalMetadataCall { +func (c *V1alphaBatchRunReportsCall) Context(ctx context.Context) *V1alphaBatchRunReportsCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *V1alphaGetUniversalMetadataCall) Header() http.Header { +func (c *V1alphaBatchRunReportsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *V1alphaGetUniversalMetadataCall) doRequest(alt string) (*http.Response, error) { +func (c *V1alphaBatchRunReportsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.batchrunreportsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/universalMetadata") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha:batchRunReports") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -2618,14 +2760,14 @@ func (c *V1alphaGetUniversalMetadataCall) doRequest(alt string) (*http.Response, return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsdata.getUniversalMetadata" call. -// Exactly one of *UniversalMetadata or error will be non-nil. Any +// Do executes the "analyticsdata.batchRunReports" call. +// Exactly one of *BatchRunReportsResponse or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either -// *UniversalMetadata.ServerResponse.Header or (if a response was +// *BatchRunReportsResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *V1alphaGetUniversalMetadataCall) Do(opts ...googleapi.CallOption) (*UniversalMetadata, error) { +func (c *V1alphaBatchRunReportsCall) Do(opts ...googleapi.CallOption) (*BatchRunReportsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2644,7 +2786,7 @@ func (c *V1alphaGetUniversalMetadataCall) Do(opts ...googleapi.CallOption) (*Uni if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &UniversalMetadata{ + ret := &BatchRunReportsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2656,15 +2798,18 @@ func (c *V1alphaGetUniversalMetadataCall) Do(opts ...googleapi.CallOption) (*Uni } return ret, nil // { - // "description": "Returns metadata for dimensions and metrics available in reporting methods. Used to explore the dimensions and metrics. Dimensions and metrics will be mostly added over time, but renames and deletions may occur. This method returns Universal Metadata. Universal Metadata are dimensions and metrics applicable to any property such as `country` and `totalUsers`.", - // "flatPath": "v1alpha/universalMetadata", - // "httpMethod": "GET", - // "id": "analyticsdata.getUniversalMetadata", + // "description": "Returns multiple reports in a batch. All reports must be for the same Entity.", + // "flatPath": "v1alpha:batchRunReports", + // "httpMethod": "POST", + // "id": "analyticsdata.batchRunReports", // "parameterOrder": [], // "parameters": {}, - // "path": "v1alpha/universalMetadata", + // "path": "v1alpha:batchRunReports", + // "request": { + // "$ref": "BatchRunReportsRequest" + // }, // "response": { - // "$ref": "UniversalMetadata" + // "$ref": "BatchRunReportsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/analytics", @@ -2722,7 +2867,7 @@ func (c *V1alphaRunPivotReportCall) Header() http.Header { func (c *V1alphaRunPivotReportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2854,7 +2999,7 @@ func (c *V1alphaRunReportCall) Header() http.Header { func (c *V1alphaRunReportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/analyticsreporting/v4/analyticsreporting-gen.go b/analyticsreporting/v4/analyticsreporting-gen.go index 55a9f83046d..a92a4b4448d 100644 --- a/analyticsreporting/v4/analyticsreporting-gen.go +++ b/analyticsreporting/v4/analyticsreporting-gen.go @@ -2692,7 +2692,7 @@ func (c *ReportsBatchGetCall) Header() http.Header { func (c *ReportsBatchGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2818,7 +2818,7 @@ func (c *UserActivitySearchCall) Header() http.Header { func (c *UserActivitySearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/androiddeviceprovisioning/v1/androiddeviceprovisioning-gen.go b/androiddeviceprovisioning/v1/androiddeviceprovisioning-gen.go index 41e5fb70df3..c1bb4c9c27c 100644 --- a/androiddeviceprovisioning/v1/androiddeviceprovisioning-gen.go +++ b/androiddeviceprovisioning/v1/androiddeviceprovisioning-gen.go @@ -1975,7 +1975,7 @@ func (c *CustomersListCall) Header() http.Header { func (c *CustomersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2128,7 +2128,7 @@ func (c *CustomersConfigurationsCreateCall) Header() http.Header { func (c *CustomersConfigurationsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2264,7 +2264,7 @@ func (c *CustomersConfigurationsDeleteCall) Header() http.Header { func (c *CustomersConfigurationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2402,7 +2402,7 @@ func (c *CustomersConfigurationsGetCall) Header() http.Header { func (c *CustomersConfigurationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2543,7 +2543,7 @@ func (c *CustomersConfigurationsListCall) Header() http.Header { func (c *CustomersConfigurationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2686,7 +2686,7 @@ func (c *CustomersConfigurationsPatchCall) Header() http.Header { func (c *CustomersConfigurationsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2832,7 +2832,7 @@ func (c *CustomersDevicesApplyConfigurationCall) Header() http.Header { func (c *CustomersDevicesApplyConfigurationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2978,7 +2978,7 @@ func (c *CustomersDevicesGetCall) Header() http.Header { func (c *CustomersDevicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3134,7 +3134,7 @@ func (c *CustomersDevicesListCall) Header() http.Header { func (c *CustomersDevicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3298,7 +3298,7 @@ func (c *CustomersDevicesRemoveConfigurationCall) Header() http.Header { func (c *CustomersDevicesRemoveConfigurationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3438,7 +3438,7 @@ func (c *CustomersDevicesUnclaimCall) Header() http.Header { func (c *CustomersDevicesUnclaimCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3585,7 +3585,7 @@ func (c *CustomersDpcsListCall) Header() http.Header { func (c *CustomersDpcsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3728,7 +3728,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3864,7 +3864,7 @@ func (c *PartnersCustomersCreateCall) Header() http.Header { func (c *PartnersCustomersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4028,7 +4028,7 @@ func (c *PartnersCustomersListCall) Header() http.Header { func (c *PartnersCustomersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4195,7 +4195,7 @@ func (c *PartnersDevicesClaimCall) Header() http.Header { func (c *PartnersDevicesClaimCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4336,7 +4336,7 @@ func (c *PartnersDevicesClaimAsyncCall) Header() http.Header { func (c *PartnersDevicesClaimAsyncCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4475,7 +4475,7 @@ func (c *PartnersDevicesFindByIdentifierCall) Header() http.Header { func (c *PartnersDevicesFindByIdentifierCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4638,7 +4638,7 @@ func (c *PartnersDevicesFindByOwnerCall) Header() http.Header { func (c *PartnersDevicesFindByOwnerCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4806,7 +4806,7 @@ func (c *PartnersDevicesGetCall) Header() http.Header { func (c *PartnersDevicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4940,7 +4940,7 @@ func (c *PartnersDevicesMetadataCall) Header() http.Header { func (c *PartnersDevicesMetadataCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5089,7 +5089,7 @@ func (c *PartnersDevicesUnclaimCall) Header() http.Header { func (c *PartnersDevicesUnclaimCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5230,7 +5230,7 @@ func (c *PartnersDevicesUnclaimAsyncCall) Header() http.Header { func (c *PartnersDevicesUnclaimAsyncCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5372,7 +5372,7 @@ func (c *PartnersDevicesUpdateMetadataAsyncCall) Header() http.Header { func (c *PartnersDevicesUpdateMetadataAsyncCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5533,7 +5533,7 @@ func (c *PartnersVendorsListCall) Header() http.Header { func (c *PartnersVendorsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5720,7 +5720,7 @@ func (c *PartnersVendorsCustomersListCall) Header() http.Header { func (c *PartnersVendorsCustomersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/androidenterprise/v1/androidenterprise-api.json b/androidenterprise/v1/androidenterprise-api.json index 1506ba21864..3f2f99d488b 100644 --- a/androidenterprise/v1/androidenterprise-api.json +++ b/androidenterprise/v1/androidenterprise-api.json @@ -2610,7 +2610,7 @@ } } }, - "revision": "20200915", + "revision": "20201104", "rootUrl": "https://androidenterprise.googleapis.com/", "schemas": { "Administrator": { @@ -4202,6 +4202,22 @@ "$ref": "AutoInstallPolicy", "description": "The auto-install policy for the product." }, + "autoUpdateMode": { + "description": "The auto-update mode for the product.", + "enum": [ + "autoUpdateModeUnspecified", + "autoUpdateDefault", + "autoUpdatePostponed", + "autoUpdateHighPriority" + ], + "enumDescriptions": [ + "Unspecified. Defaults to AUTO_UPDATE_DEFAULT.", + "The app is automatically updated with low priority to minimize the impact on the user. The app is updated when the following constraints are met: * The device is not actively used * The device is connected to a Wi-Fi network. * The device is charging * If the system update policy is set to `WINDOWED`: the local time of the device is within the daily maintenance window The device is notified about a new update within 24 hours after it is published by the developer, after which the app is updated the next time the constraints above are met.", + "The app is not automatically updated for a maximum of 90 days after the app becomes out of date. 90 days after the app becomes out of date, the latest available version is installed automatically with low priority (see AUTO_UPDATE_DEFAULT). After the app is updated it is not automatically updated again until 90 days after it becomes out of date again. The user can still manually update the app from the Play Store at any time.", + "The app is updated as soon as possible. No constraints are applied. The device is notified immediately about a new app update after it is published by the developer." + ], + "type": "string" + }, "managedConfiguration": { "$ref": "ManagedConfiguration", "description": "The managed configuration for the product." diff --git a/androidenterprise/v1/androidenterprise-gen.go b/androidenterprise/v1/androidenterprise-gen.go index 925aee09215..3539adc447d 100644 --- a/androidenterprise/v1/androidenterprise-gen.go +++ b/androidenterprise/v1/androidenterprise-gen.go @@ -2969,6 +2969,32 @@ type ProductPolicy struct { // AutoInstallPolicy: The auto-install policy for the product. AutoInstallPolicy *AutoInstallPolicy `json:"autoInstallPolicy,omitempty"` + // AutoUpdateMode: The auto-update mode for the product. + // + // Possible values: + // "autoUpdateModeUnspecified" - Unspecified. Defaults to + // AUTO_UPDATE_DEFAULT. + // "autoUpdateDefault" - The app is automatically updated with low + // priority to minimize the impact on the user. The app is updated when + // the following constraints are met: * The device is not actively used + // * The device is connected to a Wi-Fi network. * The device is + // charging * If the system update policy is set to `WINDOWED`: the + // local time of the device is within the daily maintenance window The + // device is notified about a new update within 24 hours after it is + // published by the developer, after which the app is updated the next + // time the constraints above are met. + // "autoUpdatePostponed" - The app is not automatically updated for a + // maximum of 90 days after the app becomes out of date. 90 days after + // the app becomes out of date, the latest available version is + // installed automatically with low priority (see AUTO_UPDATE_DEFAULT). + // After the app is updated it is not automatically updated again until + // 90 days after it becomes out of date again. The user can still + // manually update the app from the Play Store at any time. + // "autoUpdateHighPriority" - The app is updated as soon as possible. + // No constraints are applied. The device is notified immediately about + // a new app update after it is published by the developer. + AutoUpdateMode string `json:"autoUpdateMode,omitempty"` + // ManagedConfiguration: The managed configuration for the product. ManagedConfiguration *ManagedConfiguration `json:"managedConfiguration,omitempty"` @@ -4080,7 +4106,7 @@ func (c *DevicesForceReportUploadCall) Header() http.Header { func (c *DevicesForceReportUploadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4212,7 +4238,7 @@ func (c *DevicesGetCall) Header() http.Header { func (c *DevicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4380,7 +4406,7 @@ func (c *DevicesGetStateCall) Header() http.Header { func (c *DevicesGetStateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4541,7 +4567,7 @@ func (c *DevicesListCall) Header() http.Header { func (c *DevicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4692,7 +4718,7 @@ func (c *DevicesSetStateCall) Header() http.Header { func (c *DevicesSetStateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4860,7 +4886,7 @@ func (c *DevicesUpdateCall) Header() http.Header { func (c *DevicesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5026,7 +5052,7 @@ func (c *EnterprisesAcknowledgeNotificationSetCall) Header() http.Header { func (c *EnterprisesAcknowledgeNotificationSetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5135,7 +5161,7 @@ func (c *EnterprisesCompleteSignupCall) Header() http.Header { func (c *EnterprisesCompleteSignupCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5269,7 +5295,7 @@ func (c *EnterprisesCreateWebTokenCall) Header() http.Header { func (c *EnterprisesCreateWebTokenCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5407,7 +5433,7 @@ func (c *EnterprisesEnrollCall) Header() http.Header { func (c *EnterprisesEnrollCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5553,7 +5579,7 @@ func (c *EnterprisesGenerateSignupUrlCall) Header() http.Header { func (c *EnterprisesGenerateSignupUrlCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5687,7 +5713,7 @@ func (c *EnterprisesGetCall) Header() http.Header { func (c *EnterprisesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5856,7 +5882,7 @@ func (c *EnterprisesGetServiceAccountCall) Header() http.Header { func (c *EnterprisesGetServiceAccountCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6014,7 +6040,7 @@ func (c *EnterprisesGetStoreLayoutCall) Header() http.Header { func (c *EnterprisesGetStoreLayoutCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6160,7 +6186,7 @@ func (c *EnterprisesListCall) Header() http.Header { func (c *EnterprisesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6320,7 +6346,7 @@ func (c *EnterprisesPullNotificationSetCall) Header() http.Header { func (c *EnterprisesPullNotificationSetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6453,7 +6479,7 @@ func (c *EnterprisesSendTestPushNotificationCall) Header() http.Header { func (c *EnterprisesSendTestPushNotificationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6587,7 +6613,7 @@ func (c *EnterprisesSetAccountCall) Header() http.Header { func (c *EnterprisesSetAccountCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6733,7 +6759,7 @@ func (c *EnterprisesSetStoreLayoutCall) Header() http.Header { func (c *EnterprisesSetStoreLayoutCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6870,7 +6896,7 @@ func (c *EnterprisesUnenrollCall) Header() http.Header { func (c *EnterprisesUnenrollCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6975,7 +7001,7 @@ func (c *EntitlementsDeleteCall) Header() http.Header { func (c *EntitlementsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7107,7 +7133,7 @@ func (c *EntitlementsGetCall) Header() http.Header { func (c *EntitlementsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7269,7 +7295,7 @@ func (c *EntitlementsListCall) Header() http.Header { func (c *EntitlementsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7425,7 +7451,7 @@ func (c *EntitlementsUpdateCall) Header() http.Header { func (c *EntitlementsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7597,7 +7623,7 @@ func (c *GrouplicensesGetCall) Header() http.Header { func (c *GrouplicensesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7749,7 +7775,7 @@ func (c *GrouplicensesListCall) Header() http.Header { func (c *GrouplicensesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7895,7 +7921,7 @@ func (c *GrouplicenseusersListCall) Header() http.Header { func (c *GrouplicenseusersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8043,7 +8069,7 @@ func (c *InstallsDeleteCall) Header() http.Header { func (c *InstallsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8185,7 +8211,7 @@ func (c *InstallsGetCall) Header() http.Header { func (c *InstallsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8357,7 +8383,7 @@ func (c *InstallsListCall) Header() http.Header { func (c *InstallsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8515,7 +8541,7 @@ func (c *InstallsUpdateCall) Header() http.Header { func (c *InstallsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8683,7 +8709,7 @@ func (c *ManagedconfigurationsfordeviceDeleteCall) Header() http.Header { func (c *ManagedconfigurationsfordeviceDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8825,7 +8851,7 @@ func (c *ManagedconfigurationsfordeviceGetCall) Header() http.Header { func (c *ManagedconfigurationsfordeviceGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8997,7 +9023,7 @@ func (c *ManagedconfigurationsfordeviceListCall) Header() http.Header { func (c *ManagedconfigurationsfordeviceListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9156,7 +9182,7 @@ func (c *ManagedconfigurationsfordeviceUpdateCall) Header() http.Header { func (c *ManagedconfigurationsfordeviceUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9322,7 +9348,7 @@ func (c *ManagedconfigurationsforuserDeleteCall) Header() http.Header { func (c *ManagedconfigurationsforuserDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9455,7 +9481,7 @@ func (c *ManagedconfigurationsforuserGetCall) Header() http.Header { func (c *ManagedconfigurationsforuserGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9617,7 +9643,7 @@ func (c *ManagedconfigurationsforuserListCall) Header() http.Header { func (c *ManagedconfigurationsforuserListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9770,7 +9796,7 @@ func (c *ManagedconfigurationsforuserUpdateCall) Header() http.Header { func (c *ManagedconfigurationsforuserUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9937,7 +9963,7 @@ func (c *ManagedconfigurationssettingsListCall) Header() http.Header { func (c *ManagedconfigurationssettingsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10098,7 +10124,7 @@ func (c *PermissionsGetCall) Header() http.Header { func (c *PermissionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10243,7 +10269,7 @@ func (c *ProductsApproveCall) Header() http.Header { func (c *ProductsApproveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10378,7 +10404,7 @@ func (c *ProductsGenerateApprovalUrlCall) Header() http.Header { func (c *ProductsGenerateApprovalUrlCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10542,7 +10568,7 @@ func (c *ProductsGetCall) Header() http.Header { func (c *ProductsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10713,7 +10739,7 @@ func (c *ProductsGetAppRestrictionsSchemaCall) Header() http.Header { func (c *ProductsGetAppRestrictionsSchemaCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10872,7 +10898,7 @@ func (c *ProductsGetPermissionsCall) Header() http.Header { func (c *ProductsGetPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11066,7 +11092,7 @@ func (c *ProductsListCall) Header() http.Header { func (c *ProductsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11227,7 +11253,7 @@ func (c *ProductsUnapproveCall) Header() http.Header { func (c *ProductsUnapproveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11342,7 +11368,7 @@ func (c *ServiceaccountkeysDeleteCall) Header() http.Header { func (c *ServiceaccountkeysDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11458,7 +11484,7 @@ func (c *ServiceaccountkeysInsertCall) Header() http.Header { func (c *ServiceaccountkeysInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11610,7 +11636,7 @@ func (c *ServiceaccountkeysListCall) Header() http.Header { func (c *ServiceaccountkeysListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11746,7 +11772,7 @@ func (c *StorelayoutclustersDeleteCall) Header() http.Header { func (c *StorelayoutclustersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11878,7 +11904,7 @@ func (c *StorelayoutclustersGetCall) Header() http.Header { func (c *StorelayoutclustersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12030,7 +12056,7 @@ func (c *StorelayoutclustersInsertCall) Header() http.Header { func (c *StorelayoutclustersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12188,7 +12214,7 @@ func (c *StorelayoutclustersListCall) Header() http.Header { func (c *StorelayoutclustersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12334,7 +12360,7 @@ func (c *StorelayoutclustersUpdateCall) Header() http.Header { func (c *StorelayoutclustersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12489,7 +12515,7 @@ func (c *StorelayoutpagesDeleteCall) Header() http.Header { func (c *StorelayoutpagesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12611,7 +12637,7 @@ func (c *StorelayoutpagesGetCall) Header() http.Header { func (c *StorelayoutpagesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12753,7 +12779,7 @@ func (c *StorelayoutpagesInsertCall) Header() http.Header { func (c *StorelayoutpagesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12901,7 +12927,7 @@ func (c *StorelayoutpagesListCall) Header() http.Header { func (c *StorelayoutpagesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13037,7 +13063,7 @@ func (c *StorelayoutpagesUpdateCall) Header() http.Header { func (c *StorelayoutpagesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13184,7 +13210,7 @@ func (c *UsersDeleteCall) Header() http.Header { func (c *UsersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13299,7 +13325,7 @@ func (c *UsersGenerateAuthenticationTokenCall) Header() http.Header { func (c *UsersGenerateAuthenticationTokenCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13449,7 +13475,7 @@ func (c *UsersGetCall) Header() http.Header { func (c *UsersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13603,7 +13629,7 @@ func (c *UsersGetAvailableProductSetCall) Header() http.Header { func (c *UsersGetAvailableProductSetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13749,7 +13775,7 @@ func (c *UsersInsertCall) Header() http.Header { func (c *UsersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13901,7 +13927,7 @@ func (c *UsersListCall) Header() http.Header { func (c *UsersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14045,7 +14071,7 @@ func (c *UsersRevokeDeviceAccessCall) Header() http.Header { func (c *UsersRevokeDeviceAccessCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14161,7 +14187,7 @@ func (c *UsersSetAvailableProductSetCall) Header() http.Header { func (c *UsersSetAvailableProductSetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14314,7 +14340,7 @@ func (c *UsersUpdateCall) Header() http.Header { func (c *UsersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14461,7 +14487,7 @@ func (c *WebappsDeleteCall) Header() http.Header { func (c *WebappsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14583,7 +14609,7 @@ func (c *WebappsGetCall) Header() http.Header { func (c *WebappsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14725,7 +14751,7 @@ func (c *WebappsInsertCall) Header() http.Header { func (c *WebappsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14873,7 +14899,7 @@ func (c *WebappsListCall) Header() http.Header { func (c *WebappsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15009,7 +15035,7 @@ func (c *WebappsUpdateCall) Header() http.Header { func (c *WebappsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/androidmanagement/v1/androidmanagement-api.json b/androidmanagement/v1/androidmanagement-api.json index 57db14dd9b0..0c011fada77 100644 --- a/androidmanagement/v1/androidmanagement-api.json +++ b/androidmanagement/v1/androidmanagement-api.json @@ -929,13 +929,27 @@ } } }, - "revision": "20201012", + "revision": "20201112", "rootUrl": "https://androidmanagement.googleapis.com/", "schemas": { "AdvancedSecurityOverrides": { "description": "Security policies set to the most secure values by default. To maintain the security posture of a device, we don't recommend overriding any of the default values.", "id": "AdvancedSecurityOverrides", "properties": { + "commonCriteriaMode": { + "description": "Controls Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https://www.commoncriteriaportal.org/) (CC). Enabling Common Criteria Mode increases certain security components on a device, including AES-GCM encryption of Bluetooth Long Term Keys, and Wi-Fi configuration stores.Warning: Common Criteria Mode enforces a strict security model typically only required for IT products used in national security systems and other highly sensitive organizations. Standard device use may be affected. Only enabled if required.", + "enum": [ + "COMMON_CRITERIA_MODE_UNSPECIFIED", + "COMMON_CRITERIA_MODE_DISABLED", + "COMMON_CRITERIA_MODE_ENABLED" + ], + "enumDescriptions": [ + "Unspecified. Defaults to COMMON_CRITERIA_MODE_DISABLED.", + "Default. Disables Common Criteria Mode.", + "Enables Common Criteria Mode." + ], + "type": "string" + }, "untrustedAppsPolicy": { "description": "The policy for untrusted apps (apps from unknown sources) enforced on the device. Replaces install_unknown_sources_allowed (deprecated).", "enum": [ @@ -1441,6 +1455,27 @@ }, "type": "object" }, + "CommonCriteriaModeInfo": { + "description": "Information about Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https://www.commoncriteriaportal.org/) (CC).This information is only available if statusReportingSettings.commonCriteriaModeEnabled is true in the device's policy.", + "id": "CommonCriteriaModeInfo", + "properties": { + "commonCriteriaModeStatus": { + "description": "Whether Common Criteria Mode is enabled.", + "enum": [ + "COMMON_CRITERIA_MODE_STATUS_UNKNOWN", + "COMMON_CRITERIA_MODE_DISABLED", + "COMMON_CRITERIA_MODE_ENABLED" + ], + "enumDescriptions": [ + "Unknown status.", + "Common Criteria Mode is currently disabled.", + "Common Criteria Mode is currently enabled." + ], + "type": "string" + } + }, + "type": "object" + }, "ComplianceRule": { "description": "A rule declaring which mitigating actions to take when a device is not compliant with its policy. For every rule, there is always an implicit mitigating action to set policy_compliant to false for the Device resource, and display a message on the device indicating that the device is not compliant with its policy. Other mitigating actions may optionally be taken as well, depending on the field values in the rule.", "id": "ComplianceRule", @@ -1532,6 +1567,10 @@ ], "type": "string" }, + "commonCriteriaModeInfo": { + "$ref": "CommonCriteriaModeInfo", + "description": "Information about Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https://www.commoncriteriaportal.org/) (CC).This information is only available if statusReportingSettings.commonCriteriaModeEnabled is true in the device's policy." + }, "deviceSettings": { "$ref": "DeviceSettings", "description": "Device settings information. This information is only available if deviceSettingsEnabled is true in the device's policy." @@ -2856,11 +2895,13 @@ "description": "The type of installation to perform.", "enum": [ "INSTALL_TYPE_UNSPECIFIED", - "BLOCKED" + "BLOCKED", + "AVAILABLE" ], "enumDescriptions": [ - "Unspecified. The default behavior is that all installs are allowed.", - "The app is blocked and can't be installed in the personal profile." + "Unspecified. Defaults to AVAILABLE.", + "The app is blocked and can't be installed in the personal profile.", + "The app is available to install in the personal profile." ], "type": "string" }, @@ -2899,14 +2940,18 @@ "type": "array" }, "personalPlayStoreMode": { - "description": "Used together with personal_applications to control how apps in the personal profile are allowed or blocked.", + "description": "Used together with personalApplications to control how apps in the personal profile are allowed or blocked.", "enum": [ "PLAY_STORE_MODE_UNSPECIFIED", - "BLACKLIST" + "BLACKLIST", + "BLOCKLIST", + "ALLOWLIST" ], "enumDescriptions": [ - "Unspecified. Default behavior is to allow all installs.", - "All Play Store apps are available, except those whose install_type is BLOCKED in personal_applications." + "Unspecified. Defaults to BLOCKLIST.", + "All Play Store apps are available for installation in the personal profile, except those whose installType is BLOCKED in personalApplications.", + "All Play Store apps are available for installation in the personal profile, except those whose installType is BLOCKED in personalApplications.", + "Only apps explicitly specified in personalApplications with installType set to AVAILABLE are allowed to be installed in the personal profile." ], "type": "string" }, @@ -3706,6 +3751,10 @@ "description": "Whether app reports are enabled.", "type": "boolean" }, + "commonCriteriaModeEnabled": { + "description": "Whether Common Criteria Mode reporting is enabled.", + "type": "boolean" + }, "deviceSettingsEnabled": { "description": "Whether device settings reporting is enabled.", "type": "boolean" diff --git a/androidmanagement/v1/androidmanagement-gen.go b/androidmanagement/v1/androidmanagement-gen.go index 66b22035886..4afcbf5afae 100644 --- a/androidmanagement/v1/androidmanagement-gen.go +++ b/androidmanagement/v1/androidmanagement-gen.go @@ -244,6 +244,25 @@ type SignupUrlsService struct { // values by default. To maintain the security posture of a device, we // don't recommend overriding any of the default values. type AdvancedSecurityOverrides struct { + // CommonCriteriaMode: Controls Common Criteria Mode—security + // standards defined in the Common Criteria for Information Technology + // Security Evaluation (https://www.commoncriteriaportal.org/) (CC). + // Enabling Common Criteria Mode increases certain security components + // on a device, including AES-GCM encryption of Bluetooth Long Term + // Keys, and Wi-Fi configuration stores.Warning: Common Criteria Mode + // enforces a strict security model typically only required for IT + // products used in national security systems and other highly sensitive + // organizations. Standard device use may be affected. Only enabled if + // required. + // + // Possible values: + // "COMMON_CRITERIA_MODE_UNSPECIFIED" - Unspecified. Defaults to + // COMMON_CRITERIA_MODE_DISABLED. + // "COMMON_CRITERIA_MODE_DISABLED" - Default. Disables Common Criteria + // Mode. + // "COMMON_CRITERIA_MODE_ENABLED" - Enables Common Criteria Mode. + CommonCriteriaMode string `json:"commonCriteriaMode,omitempty"` + // UntrustedAppsPolicy: The policy for untrusted apps (apps from unknown // sources) enforced on the device. Replaces // install_unknown_sources_allowed (deprecated). @@ -260,7 +279,7 @@ type AdvancedSecurityOverrides struct { // entire device. UntrustedAppsPolicy string `json:"untrustedAppsPolicy,omitempty"` - // ForceSendFields is a list of field names (e.g. "UntrustedAppsPolicy") + // ForceSendFields is a list of field names (e.g. "CommonCriteriaMode") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -268,7 +287,7 @@ type AdvancedSecurityOverrides struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "UntrustedAppsPolicy") to + // NullFields is a list of field names (e.g. "CommonCriteriaMode") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -939,6 +958,48 @@ func (s *Command) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CommonCriteriaModeInfo: Information about Common Criteria +// Mode—security standards defined in the Common Criteria for +// Information Technology Security Evaluation +// (https://www.commoncriteriaportal.org/) (CC).This information is only +// available if statusReportingSettings.commonCriteriaModeEnabled is +// true in the device's policy. +type CommonCriteriaModeInfo struct { + // CommonCriteriaModeStatus: Whether Common Criteria Mode is enabled. + // + // Possible values: + // "COMMON_CRITERIA_MODE_STATUS_UNKNOWN" - Unknown status. + // "COMMON_CRITERIA_MODE_DISABLED" - Common Criteria Mode is currently + // disabled. + // "COMMON_CRITERIA_MODE_ENABLED" - Common Criteria Mode is currently + // enabled. + CommonCriteriaModeStatus string `json:"commonCriteriaModeStatus,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "CommonCriteriaModeStatus") to unconditionally include in API + // requests. By default, fields with empty values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CommonCriteriaModeStatus") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CommonCriteriaModeInfo) MarshalJSON() ([]byte, error) { + type NoMethod CommonCriteriaModeInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ComplianceRule: A rule declaring which mitigating actions to take // when a device is not compliant with its policy. For every rule, there // is always an implicit mitigating action to set policy_compliant to @@ -1070,6 +1131,14 @@ type Device struct { // devices are in this state until they have a policy applied. AppliedState string `json:"appliedState,omitempty"` + // CommonCriteriaModeInfo: Information about Common Criteria + // Mode—security standards defined in the Common Criteria for + // Information Technology Security Evaluation + // (https://www.commoncriteriaportal.org/) (CC).This information is only + // available if statusReportingSettings.commonCriteriaModeEnabled is + // true in the device's policy. + CommonCriteriaModeInfo *CommonCriteriaModeInfo `json:"commonCriteriaModeInfo,omitempty"` + // DeviceSettings: Device settings information. This information is only // available if deviceSettingsEnabled is true in the device's policy. DeviceSettings *DeviceSettings `json:"deviceSettings,omitempty"` @@ -2837,10 +2906,11 @@ type PersonalApplicationPolicy struct { // InstallType: The type of installation to perform. // // Possible values: - // "INSTALL_TYPE_UNSPECIFIED" - Unspecified. The default behavior is - // that all installs are allowed. + // "INSTALL_TYPE_UNSPECIFIED" - Unspecified. Defaults to AVAILABLE. // "BLOCKED" - The app is blocked and can't be installed in the // personal profile. + // "AVAILABLE" - The app is available to install in the personal + // profile. InstallType string `json:"installType,omitempty"` // PackageName: The package name of the application. @@ -2886,14 +2956,20 @@ type PersonalUsagePolicies struct { // profile. PersonalApplications []*PersonalApplicationPolicy `json:"personalApplications,omitempty"` - // PersonalPlayStoreMode: Used together with personal_applications to + // PersonalPlayStoreMode: Used together with personalApplications to // control how apps in the personal profile are allowed or blocked. // // Possible values: - // "PLAY_STORE_MODE_UNSPECIFIED" - Unspecified. Default behavior is to - // allow all installs. - // "BLACKLIST" - All Play Store apps are available, except those whose - // install_type is BLOCKED in personal_applications. + // "PLAY_STORE_MODE_UNSPECIFIED" - Unspecified. Defaults to BLOCKLIST. + // "BLACKLIST" - All Play Store apps are available for installation in + // the personal profile, except those whose installType is BLOCKED in + // personalApplications. + // "BLOCKLIST" - All Play Store apps are available for installation in + // the personal profile, except those whose installType is BLOCKED in + // personalApplications. + // "ALLOWLIST" - Only apps explicitly specified in + // personalApplications with installType set to AVAILABLE are allowed to + // be installed in the personal profile. PersonalPlayStoreMode string `json:"personalPlayStoreMode,omitempty"` // ScreenCaptureDisabled: Whether screen capture is disabled. @@ -3865,6 +3941,10 @@ type StatusReportingSettings struct { // ApplicationReportsEnabled: Whether app reports are enabled. ApplicationReportsEnabled bool `json:"applicationReportsEnabled,omitempty"` + // CommonCriteriaModeEnabled: Whether Common Criteria Mode reporting is + // enabled. + CommonCriteriaModeEnabled bool `json:"commonCriteriaModeEnabled,omitempty"` + // DeviceSettingsEnabled: Whether device settings reporting is enabled. DeviceSettingsEnabled bool `json:"deviceSettingsEnabled,omitempty"` @@ -4416,7 +4496,7 @@ func (c *EnterprisesCreateCall) Header() http.Header { func (c *EnterprisesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4568,7 +4648,7 @@ func (c *EnterprisesGetCall) Header() http.Header { func (c *EnterprisesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4711,7 +4791,7 @@ func (c *EnterprisesPatchCall) Header() http.Header { func (c *EnterprisesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4875,7 +4955,7 @@ func (c *EnterprisesApplicationsGetCall) Header() http.Header { func (c *EnterprisesApplicationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5036,7 +5116,7 @@ func (c *EnterprisesDevicesDeleteCall) Header() http.Header { func (c *EnterprisesDevicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5198,7 +5278,7 @@ func (c *EnterprisesDevicesGetCall) Header() http.Header { func (c *EnterprisesDevicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5335,7 +5415,7 @@ func (c *EnterprisesDevicesIssueCommandCall) Header() http.Header { func (c *EnterprisesDevicesIssueCommandCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5498,7 +5578,7 @@ func (c *EnterprisesDevicesListCall) Header() http.Header { func (c *EnterprisesDevicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5673,7 +5753,7 @@ func (c *EnterprisesDevicesPatchCall) Header() http.Header { func (c *EnterprisesDevicesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5826,7 +5906,7 @@ func (c *EnterprisesDevicesOperationsCancelCall) Header() http.Header { func (c *EnterprisesDevicesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5959,7 +6039,7 @@ func (c *EnterprisesDevicesOperationsDeleteCall) Header() http.Header { func (c *EnterprisesDevicesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6102,7 +6182,7 @@ func (c *EnterprisesDevicesOperationsGetCall) Header() http.Header { func (c *EnterprisesDevicesOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6276,7 +6356,7 @@ func (c *EnterprisesDevicesOperationsListCall) Header() http.Header { func (c *EnterprisesDevicesOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6448,7 +6528,7 @@ func (c *EnterprisesEnrollmentTokensCreateCall) Header() http.Header { func (c *EnterprisesEnrollmentTokensCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6587,7 +6667,7 @@ func (c *EnterprisesEnrollmentTokensDeleteCall) Header() http.Header { func (c *EnterprisesEnrollmentTokensDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6718,7 +6798,7 @@ func (c *EnterprisesPoliciesDeleteCall) Header() http.Header { func (c *EnterprisesPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6859,7 +6939,7 @@ func (c *EnterprisesPoliciesGetCall) Header() http.Header { func (c *EnterprisesPoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7017,7 +7097,7 @@ func (c *EnterprisesPoliciesListCall) Header() http.Header { func (c *EnterprisesPoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7192,7 +7272,7 @@ func (c *EnterprisesPoliciesPatchCall) Header() http.Header { func (c *EnterprisesPoliciesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7338,7 +7418,7 @@ func (c *EnterprisesWebAppsCreateCall) Header() http.Header { func (c *EnterprisesWebAppsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7476,7 +7556,7 @@ func (c *EnterprisesWebAppsDeleteCall) Header() http.Header { func (c *EnterprisesWebAppsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7617,7 +7697,7 @@ func (c *EnterprisesWebAppsGetCall) Header() http.Header { func (c *EnterprisesWebAppsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7775,7 +7855,7 @@ func (c *EnterprisesWebAppsListCall) Header() http.Header { func (c *EnterprisesWebAppsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7950,7 +8030,7 @@ func (c *EnterprisesWebAppsPatchCall) Header() http.Header { func (c *EnterprisesWebAppsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8097,7 +8177,7 @@ func (c *EnterprisesWebTokensCreateCall) Header() http.Header { func (c *EnterprisesWebTokensCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8252,7 +8332,7 @@ func (c *SignupUrlsCreateCall) Header() http.Header { func (c *SignupUrlsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/androidpublisher/v3/androidpublisher-gen.go b/androidpublisher/v3/androidpublisher-gen.go index 6e321148a41..951d8dd0a71 100644 --- a/androidpublisher/v3/androidpublisher-gen.go +++ b/androidpublisher/v3/androidpublisher-gen.go @@ -2979,7 +2979,7 @@ func (c *EditsCommitCall) Header() http.Header { func (c *EditsCommitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3118,7 +3118,7 @@ func (c *EditsDeleteCall) Header() http.Header { func (c *EditsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3240,7 +3240,7 @@ func (c *EditsGetCall) Header() http.Header { func (c *EditsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3382,7 +3382,7 @@ func (c *EditsInsertCall) Header() http.Header { func (c *EditsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3521,7 +3521,7 @@ func (c *EditsValidateCall) Header() http.Header { func (c *EditsValidateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3666,7 +3666,7 @@ func (c *EditsApksAddexternallyhostedCall) Header() http.Header { func (c *EditsApksAddexternallyhostedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3824,7 +3824,7 @@ func (c *EditsApksListCall) Header() http.Header { func (c *EditsApksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4006,7 +4006,7 @@ func (c *EditsApksUploadCall) Header() http.Header { func (c *EditsApksUploadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4202,7 +4202,7 @@ func (c *EditsBundlesListCall) Header() http.Header { func (c *EditsBundlesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4398,7 +4398,7 @@ func (c *EditsBundlesUploadCall) Header() http.Header { func (c *EditsBundlesUploadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4632,7 +4632,7 @@ func (c *EditsDeobfuscationfilesUploadCall) Header() http.Header { func (c *EditsDeobfuscationfilesUploadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4854,7 +4854,7 @@ func (c *EditsDetailsGetCall) Header() http.Header { func (c *EditsDetailsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4998,7 +4998,7 @@ func (c *EditsDetailsPatchCall) Header() http.Header { func (c *EditsDetailsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5147,7 +5147,7 @@ func (c *EditsDetailsUpdateCall) Header() http.Header { func (c *EditsDetailsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5309,7 +5309,7 @@ func (c *EditsExpansionfilesGetCall) Header() http.Header { func (c *EditsExpansionfilesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5486,7 +5486,7 @@ func (c *EditsExpansionfilesPatchCall) Header() http.Header { func (c *EditsExpansionfilesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5668,7 +5668,7 @@ func (c *EditsExpansionfilesUpdateCall) Header() http.Header { func (c *EditsExpansionfilesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5887,7 +5887,7 @@ func (c *EditsExpansionfilesUploadCall) Header() http.Header { func (c *EditsExpansionfilesUploadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6104,7 +6104,7 @@ func (c *EditsImagesDeleteCall) Header() http.Header { func (c *EditsImagesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6266,7 +6266,7 @@ func (c *EditsImagesDeleteallCall) Header() http.Header { func (c *EditsImagesDeleteallCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6458,7 +6458,7 @@ func (c *EditsImagesListCall) Header() http.Header { func (c *EditsImagesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6683,7 +6683,7 @@ func (c *EditsImagesUploadCall) Header() http.Header { func (c *EditsImagesUploadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6907,7 +6907,7 @@ func (c *EditsListingsDeleteCall) Header() http.Header { func (c *EditsListingsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7026,7 +7026,7 @@ func (c *EditsListingsDeleteallCall) Header() http.Header { func (c *EditsListingsDeleteallCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7150,7 +7150,7 @@ func (c *EditsListingsGetCall) Header() http.Header { func (c *EditsListingsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7311,7 +7311,7 @@ func (c *EditsListingsListCall) Header() http.Header { func (c *EditsListingsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7457,7 +7457,7 @@ func (c *EditsListingsPatchCall) Header() http.Header { func (c *EditsListingsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7616,7 +7616,7 @@ func (c *EditsListingsUpdateCall) Header() http.Header { func (c *EditsListingsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7784,7 +7784,7 @@ func (c *EditsTestersGetCall) Header() http.Header { func (c *EditsTestersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7938,7 +7938,7 @@ func (c *EditsTestersPatchCall) Header() http.Header { func (c *EditsTestersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8097,7 +8097,7 @@ func (c *EditsTestersUpdateCall) Header() http.Header { func (c *EditsTestersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8265,7 +8265,7 @@ func (c *EditsTracksGetCall) Header() http.Header { func (c *EditsTracksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8426,7 +8426,7 @@ func (c *EditsTracksListCall) Header() http.Header { func (c *EditsTracksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8572,7 +8572,7 @@ func (c *EditsTracksPatchCall) Header() http.Header { func (c *EditsTracksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8731,7 +8731,7 @@ func (c *EditsTracksUpdateCall) Header() http.Header { func (c *EditsTracksUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8887,7 +8887,7 @@ func (c *InappproductsDeleteCall) Header() http.Header { func (c *InappproductsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9010,7 +9010,7 @@ func (c *InappproductsGetCall) Header() http.Header { func (c *InappproductsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9163,7 +9163,7 @@ func (c *InappproductsInsertCall) Header() http.Header { func (c *InappproductsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9338,7 +9338,7 @@ func (c *InappproductsListCall) Header() http.Header { func (c *InappproductsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9502,7 +9502,7 @@ func (c *InappproductsPatchCall) Header() http.Header { func (c *InappproductsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9667,7 +9667,7 @@ func (c *InappproductsUpdateCall) Header() http.Header { func (c *InappproductsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9862,7 +9862,7 @@ func (c *InternalappsharingartifactsUploadapkCall) Header() http.Header { func (c *InternalappsharingartifactsUploadapkCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10082,7 +10082,7 @@ func (c *InternalappsharingartifactsUploadbundleCall) Header() http.Header { func (c *InternalappsharingartifactsUploadbundleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10268,7 +10268,7 @@ func (c *OrdersRefundCall) Header() http.Header { func (c *OrdersRefundCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10388,7 +10388,7 @@ func (c *PurchasesProductsAcknowledgeCall) Header() http.Header { func (c *PurchasesProductsAcknowledgeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10528,7 +10528,7 @@ func (c *PurchasesProductsGetCall) Header() http.Header { func (c *PurchasesProductsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10682,7 +10682,7 @@ func (c *PurchasesSubscriptionsAcknowledgeCall) Header() http.Header { func (c *PurchasesSubscriptionsAcknowledgeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10812,7 +10812,7 @@ func (c *PurchasesSubscriptionsCancelCall) Header() http.Header { func (c *PurchasesSubscriptionsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10936,7 +10936,7 @@ func (c *PurchasesSubscriptionsDeferCall) Header() http.Header { func (c *PurchasesSubscriptionsDeferCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11106,7 +11106,7 @@ func (c *PurchasesSubscriptionsGetCall) Header() http.Header { func (c *PurchasesSubscriptionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11260,7 +11260,7 @@ func (c *PurchasesSubscriptionsRefundCall) Header() http.Header { func (c *PurchasesSubscriptionsRefundCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11383,7 +11383,7 @@ func (c *PurchasesSubscriptionsRevokeCall) Header() http.Header { func (c *PurchasesSubscriptionsRevokeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11575,7 +11575,7 @@ func (c *PurchasesVoidedpurchasesListCall) Header() http.Header { func (c *PurchasesVoidedpurchasesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11762,7 +11762,7 @@ func (c *ReviewsGetCall) Header() http.Header { func (c *ReviewsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11946,7 +11946,7 @@ func (c *ReviewsListCall) Header() http.Header { func (c *ReviewsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12104,7 +12104,7 @@ func (c *ReviewsReplyCall) Header() http.Header { func (c *ReviewsReplyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12254,7 +12254,7 @@ func (c *SystemapksVariantsCreateCall) Header() http.Header { func (c *SystemapksVariantsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12416,7 +12416,7 @@ func (c *SystemapksVariantsDownloadCall) Header() http.Header { func (c *SystemapksVariantsDownloadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12571,7 +12571,7 @@ func (c *SystemapksVariantsGetCall) Header() http.Header { func (c *SystemapksVariantsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12734,7 +12734,7 @@ func (c *SystemapksVariantsListCall) Header() http.Header { func (c *SystemapksVariantsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/api-list.json b/api-list.json index 1c497b37f11..ac1507294b6 100644 --- a/api-list.json +++ b/api-list.json @@ -160,15 +160,14 @@ "id": "admin:datatransfer_v1", "name": "admin", "version": "datatransfer_v1", - "title": "Admin Data Transfer API", - "description": "Transfers user data from one user to another.", - "discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/admin/datatransfer_v1/rest", - "discoveryLink": "./apis/admin/datatransfer_v1/rest", + "title": "Admin SDK", + "description": "Admin SDK lets administrators of enterprise domains to view and manage resources like user, groups etc. It also provides audit and usage reports of domain.", + "discoveryRestUrl": "https://admin.googleapis.com/$discovery/rest?version=datatransfer_v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, - "documentationLink": "https://developers.google.com/admin-sdk/data-transfer/", + "documentationLink": "http://developers.google.com/admin-sdk/", "preferred": false }, { @@ -176,15 +175,14 @@ "id": "admin:directory_v1", "name": "admin", "version": "directory_v1", - "title": "Admin Directory API", - "description": "Manages enterprise resources such as users and groups, administrative notifications, security features, and more.", - "discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/admin/directory_v1/rest", - "discoveryLink": "./apis/admin/directory_v1/rest", + "title": "Admin SDK", + "description": "Admin SDK lets administrators of enterprise domains to view and manage resources like user, groups etc. It also provides audit and usage reports of domain.", + "discoveryRestUrl": "https://admin.googleapis.com/$discovery/rest?version=directory_v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, - "documentationLink": "https://developers.google.com/admin-sdk/directory/", + "documentationLink": "http://developers.google.com/admin-sdk/", "preferred": false }, { @@ -192,17 +190,31 @@ "id": "admin:reports_v1", "name": "admin", "version": "reports_v1", - "title": "Admin Reports API", - "description": "Fetches reports for the administrators of G Suite customers about the usage, collaboration, security, and risk for their users.", - "discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/admin/reports_v1/rest", - "discoveryLink": "./apis/admin/reports_v1/rest", + "title": "Admin SDK", + "description": "Admin SDK lets administrators of enterprise domains to view and manage resources like user, groups etc. It also provides audit and usage reports of domain.", + "discoveryRestUrl": "https://admin.googleapis.com/$discovery/rest?version=reports_v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, - "documentationLink": "/admin-sdk/reports/", + "documentationLink": "http://developers.google.com/admin-sdk/", "preferred": true }, + { + "kind": "discovery#directoryItem", + "id": "admob:v1beta", + "name": "admob", + "version": "v1beta", + "title": "AdMob API", + "description": "The AdMob API allows publishers to programmatically get information about their AdMob account.", + "discoveryRestUrl": "https://admob.googleapis.com/$discovery/rest?version=v1beta", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://developers.google.com/admob/api/", + "preferred": false + }, { "kind": "discovery#directoryItem", "id": "admob:v1", @@ -444,27 +456,27 @@ }, { "kind": "discovery#directoryItem", - "id": "appengine:v1", + "id": "appengine:v1beta4", "name": "appengine", - "version": "v1", + "version": "v1beta4", "title": "App Engine Admin API", "description": "Provisions and manages developers' App Engine applications.", - "discoveryRestUrl": "https://appengine.googleapis.com/$discovery/rest?version=v1", + "discoveryRestUrl": "https://appengine.googleapis.com/$discovery/rest?version=v1beta4", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/appengine/docs/admin-api/", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "appengine:v1beta4", + "id": "appengine:v1beta5", "name": "appengine", - "version": "v1beta4", + "version": "v1beta5", "title": "App Engine Admin API", "description": "Provisions and manages developers' App Engine applications.", - "discoveryRestUrl": "https://appengine.googleapis.com/$discovery/rest?version=v1beta4", + "discoveryRestUrl": "https://appengine.googleapis.com/$discovery/rest?version=v1beta5", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" @@ -474,18 +486,33 @@ }, { "kind": "discovery#directoryItem", - "id": "appengine:v1beta5", + "id": "appengine:v1", "name": "appengine", - "version": "v1beta5", + "version": "v1", "title": "App Engine Admin API", "description": "Provisions and manages developers' App Engine applications.", - "discoveryRestUrl": "https://appengine.googleapis.com/$discovery/rest?version=v1beta5", + "discoveryRestUrl": "https://appengine.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/appengine/docs/admin-api/", - "preferred": false + "preferred": true + }, + { + "kind": "discovery#directoryItem", + "id": "area120tables:v1alpha1", + "name": "area120tables", + "version": "v1alpha1", + "title": "Area120 Tables API", + "description": "", + "discoveryRestUrl": "https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://tables.area120.google.com", + "preferred": true }, { "kind": "discovery#directoryItem", @@ -500,16 +527,31 @@ "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/artifacts/docs/", + "preferred": false + }, + { + "kind": "discovery#directoryItem", + "id": "artifactregistry:v1beta2", + "name": "artifactregistry", + "version": "v1beta2", + "title": "Artifact Registry API", + "description": "Store and manage build artifacts in a scalable and integrated service built on Google infrastructure.", + "discoveryRestUrl": "https://artifactregistry.googleapis.com/$discovery/rest?version=v1beta2", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://cloud.google.com/artifacts/docs/", "preferred": true }, { "kind": "discovery#directoryItem", - "id": "assuredworkloads:v1beta1", + "id": "assuredworkloads:v1", "name": "assuredworkloads", - "version": "v1beta1", + "version": "v1", "title": "Assured Workloads API", "description": "", - "discoveryRestUrl": "https://assuredworkloads.googleapis.com/$discovery/rest?version=v1beta1", + "discoveryRestUrl": "https://assuredworkloads.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" @@ -579,33 +621,33 @@ }, { "kind": "discovery#directoryItem", - "id": "bigqueryreservation:v1", + "id": "bigqueryreservation:v1beta1", "name": "bigqueryreservation", - "version": "v1", + "version": "v1beta1", "title": "BigQuery Reservation API", "description": "A service to modify your BigQuery flat-rate reservations.", - "discoveryRestUrl": "https://bigqueryreservation.googleapis.com/$discovery/rest?version=v1", + "discoveryRestUrl": "https://bigqueryreservation.googleapis.com/$discovery/rest?version=v1beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/bigquery/", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "bigqueryreservation:v1beta1", + "id": "bigqueryreservation:v1", "name": "bigqueryreservation", - "version": "v1beta1", + "version": "v1", "title": "BigQuery Reservation API", "description": "A service to modify your BigQuery flat-rate reservations.", - "discoveryRestUrl": "https://bigqueryreservation.googleapis.com/$discovery/rest?version=v1beta1", + "discoveryRestUrl": "https://bigqueryreservation.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/bigquery/", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", @@ -639,63 +681,63 @@ }, { "kind": "discovery#directoryItem", - "id": "billingbudgets:v1", + "id": "billingbudgets:v1beta1", "name": "billingbudgets", - "version": "v1", + "version": "v1beta1", "title": "Cloud Billing Budget API", "description": "The Cloud Billing Budget API stores Cloud Billing budgets, which define a budget plan and the rules to execute as spend is tracked against that plan.", - "discoveryRestUrl": "https://billingbudgets.googleapis.com/$discovery/rest?version=v1", + "discoveryRestUrl": "https://billingbudgets.googleapis.com/$discovery/rest?version=v1beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/billing/docs/how-to/budget-api-overview", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "billingbudgets:v1beta1", + "id": "billingbudgets:v1", "name": "billingbudgets", - "version": "v1beta1", + "version": "v1", "title": "Cloud Billing Budget API", "description": "The Cloud Billing Budget API stores Cloud Billing budgets, which define a budget plan and the rules to execute as spend is tracked against that plan.", - "discoveryRestUrl": "https://billingbudgets.googleapis.com/$discovery/rest?version=v1beta1", + "discoveryRestUrl": "https://billingbudgets.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/billing/docs/how-to/budget-api-overview", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", - "id": "binaryauthorization:v1", + "id": "binaryauthorization:v1beta1", "name": "binaryauthorization", - "version": "v1", + "version": "v1beta1", "title": "Binary Authorization API", "description": "The management interface for Binary Authorization, a system providing policy control for images deployed to Kubernetes Engine clusters.", - "discoveryRestUrl": "https://binaryauthorization.googleapis.com/$discovery/rest?version=v1", + "discoveryRestUrl": "https://binaryauthorization.googleapis.com/$discovery/rest?version=v1beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/binary-authorization/", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "binaryauthorization:v1beta1", + "id": "binaryauthorization:v1", "name": "binaryauthorization", - "version": "v1beta1", + "version": "v1", "title": "Binary Authorization API", "description": "The management interface for Binary Authorization, a system providing policy control for images deployed to Kubernetes Engine clusters.", - "discoveryRestUrl": "https://binaryauthorization.googleapis.com/$discovery/rest?version=v1beta1", + "discoveryRestUrl": "https://binaryauthorization.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/binary-authorization/", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", @@ -864,33 +906,33 @@ }, { "kind": "discovery#directoryItem", - "id": "cloudasset:v1", + "id": "cloudasset:v1beta1", "name": "cloudasset", - "version": "v1", + "version": "v1beta1", "title": "Cloud Asset API", "description": "The cloud asset API manages the history and inventory of cloud resources.", - "discoveryRestUrl": "https://cloudasset.googleapis.com/$discovery/rest?version=v1", + "discoveryRestUrl": "https://cloudasset.googleapis.com/$discovery/rest?version=v1beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/asset-inventory/docs/quickstart", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "cloudasset:v1beta1", + "id": "cloudasset:v1", "name": "cloudasset", - "version": "v1beta1", + "version": "v1", "title": "Cloud Asset API", "description": "The cloud asset API manages the history and inventory of cloud resources.", - "discoveryRestUrl": "https://cloudasset.googleapis.com/$discovery/rest?version=v1beta1", + "discoveryRestUrl": "https://cloudasset.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/asset-inventory/docs/quickstart", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", @@ -997,21 +1039,6 @@ "documentationLink": "https://cloud.google.com/functions", "preferred": true }, - { - "kind": "discovery#directoryItem", - "id": "cloudidentity:v1", - "name": "cloudidentity", - "version": "v1", - "title": "Cloud Identity API", - "description": "API for provisioning and managing identity resources.", - "discoveryRestUrl": "https://cloudidentity.googleapis.com/$discovery/rest?version=v1", - "icons": { - "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", - "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" - }, - "documentationLink": "https://cloud.google.com/identity/", - "preferred": true - }, { "kind": "discovery#directoryItem", "id": "cloudidentity:v1beta1", @@ -1029,18 +1056,18 @@ }, { "kind": "discovery#directoryItem", - "id": "cloudiot:v1alpha1", - "name": "cloudiot", - "version": "v1alpha1", - "title": "Cloud IoT API", - "description": "Registers and manages IoT (Internet of Things) devices that connect to the Google Cloud Platform.", - "discoveryRestUrl": "https://cloudiot.googleapis.com/$discovery/rest?version=v1alpha1", + "id": "cloudidentity:v1", + "name": "cloudidentity", + "version": "v1", + "title": "Cloud Identity API", + "description": "API for provisioning and managing identity resources.", + "discoveryRestUrl": "https://cloudidentity.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, - "documentationLink": "https://cloud.google.com/iot", - "preferred": false + "documentationLink": "https://cloud.google.com/identity/", + "preferred": true }, { "kind": "discovery#directoryItem", @@ -1089,12 +1116,12 @@ }, { "kind": "discovery#directoryItem", - "id": "cloudresourcemanager:v1", + "id": "cloudresourcemanager:v1beta1", "name": "cloudresourcemanager", - "version": "v1", + "version": "v1beta1", "title": "Cloud Resource Manager API", "description": "Creates, reads, and updates metadata for Google Cloud Platform resource containers.", - "discoveryRestUrl": "https://cloudresourcemanager.googleapis.com/$discovery/rest?version=v1", + "discoveryRestUrl": "https://cloudresourcemanager.googleapis.com/$discovery/rest?version=v1beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" @@ -1104,12 +1131,12 @@ }, { "kind": "discovery#directoryItem", - "id": "cloudresourcemanager:v1beta1", + "id": "cloudresourcemanager:v2beta1", "name": "cloudresourcemanager", - "version": "v1beta1", + "version": "v2beta1", "title": "Cloud Resource Manager API", "description": "Creates, reads, and updates metadata for Google Cloud Platform resource containers.", - "discoveryRestUrl": "https://cloudresourcemanager.googleapis.com/$discovery/rest?version=v1beta1", + "discoveryRestUrl": "https://cloudresourcemanager.googleapis.com/$discovery/rest?version=v2beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" @@ -1119,63 +1146,63 @@ }, { "kind": "discovery#directoryItem", - "id": "cloudresourcemanager:v2", + "id": "cloudresourcemanager:v1", "name": "cloudresourcemanager", - "version": "v2", + "version": "v1", "title": "Cloud Resource Manager API", "description": "Creates, reads, and updates metadata for Google Cloud Platform resource containers.", - "discoveryRestUrl": "https://cloudresourcemanager.googleapis.com/$discovery/rest?version=v2", + "discoveryRestUrl": "https://cloudresourcemanager.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/resource-manager", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "cloudresourcemanager:v2beta1", + "id": "cloudresourcemanager:v2", "name": "cloudresourcemanager", - "version": "v2beta1", + "version": "v2", "title": "Cloud Resource Manager API", "description": "Creates, reads, and updates metadata for Google Cloud Platform resource containers.", - "discoveryRestUrl": "https://cloudresourcemanager.googleapis.com/$discovery/rest?version=v2beta1", + "discoveryRestUrl": "https://cloudresourcemanager.googleapis.com/$discovery/rest?version=v2", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/resource-manager", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", - "id": "cloudscheduler:v1", + "id": "cloudscheduler:v1beta1", "name": "cloudscheduler", - "version": "v1", + "version": "v1beta1", "title": "Cloud Scheduler API", "description": "Creates and manages jobs run on a regular recurring schedule.", - "discoveryRestUrl": "https://cloudscheduler.googleapis.com/$discovery/rest?version=v1", + "discoveryRestUrl": "https://cloudscheduler.googleapis.com/$discovery/rest?version=v1beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/scheduler/", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "cloudscheduler:v1beta1", + "id": "cloudscheduler:v1", "name": "cloudscheduler", - "version": "v1beta1", + "version": "v1", "title": "Cloud Scheduler API", "description": "Creates and manages jobs run on a regular recurring schedule.", - "discoveryRestUrl": "https://cloudscheduler.googleapis.com/$discovery/rest?version=v1beta1", + "discoveryRestUrl": "https://cloudscheduler.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/scheduler/", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", @@ -1224,27 +1251,27 @@ }, { "kind": "discovery#directoryItem", - "id": "cloudtasks:v2", + "id": "cloudtasks:v2beta2", "name": "cloudtasks", - "version": "v2", + "version": "v2beta2", "title": "Cloud Tasks API", "description": "Manages the execution of large numbers of distributed requests.", - "discoveryRestUrl": "https://cloudtasks.googleapis.com/$discovery/rest?version=v2", + "discoveryRestUrl": "https://cloudtasks.googleapis.com/$discovery/rest?version=v2beta2", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/tasks/", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "cloudtasks:v2beta2", + "id": "cloudtasks:v2beta3", "name": "cloudtasks", - "version": "v2beta2", + "version": "v2beta3", "title": "Cloud Tasks API", "description": "Manages the execution of large numbers of distributed requests.", - "discoveryRestUrl": "https://cloudtasks.googleapis.com/$discovery/rest?version=v2beta2", + "discoveryRestUrl": "https://cloudtasks.googleapis.com/$discovery/rest?version=v2beta3", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" @@ -1254,27 +1281,27 @@ }, { "kind": "discovery#directoryItem", - "id": "cloudtasks:v2beta3", + "id": "cloudtasks:v2", "name": "cloudtasks", - "version": "v2beta3", + "version": "v2", "title": "Cloud Tasks API", "description": "Manages the execution of large numbers of distributed requests.", - "discoveryRestUrl": "https://cloudtasks.googleapis.com/$discovery/rest?version=v2beta3", + "discoveryRestUrl": "https://cloudtasks.googleapis.com/$discovery/rest?version=v2", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/tasks/", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", - "id": "cloudtrace:v1", + "id": "cloudtrace:v2beta1", "name": "cloudtrace", - "version": "v1", + "version": "v2beta1", "title": "Cloud Trace API", "description": "Sends application trace data to Cloud Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API. This library is used to interact with the Cloud Trace API directly. If you are looking to instrument your application for Cloud Trace, we recommend using OpenCensus.", - "discoveryRestUrl": "https://cloudtrace.googleapis.com/$discovery/rest?version=v1", + "discoveryRestUrl": "https://cloudtrace.googleapis.com/$discovery/rest?version=v2beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" @@ -1284,63 +1311,63 @@ }, { "kind": "discovery#directoryItem", - "id": "cloudtrace:v2", + "id": "cloudtrace:v1", "name": "cloudtrace", - "version": "v2", + "version": "v1", "title": "Cloud Trace API", "description": "Sends application trace data to Cloud Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API. This library is used to interact with the Cloud Trace API directly. If you are looking to instrument your application for Cloud Trace, we recommend using OpenCensus.", - "discoveryRestUrl": "https://cloudtrace.googleapis.com/$discovery/rest?version=v2", + "discoveryRestUrl": "https://cloudtrace.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/trace", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "cloudtrace:v2beta1", + "id": "cloudtrace:v2", "name": "cloudtrace", - "version": "v2beta1", + "version": "v2", "title": "Cloud Trace API", "description": "Sends application trace data to Cloud Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API. This library is used to interact with the Cloud Trace API directly. If you are looking to instrument your application for Cloud Trace, we recommend using OpenCensus.", - "discoveryRestUrl": "https://cloudtrace.googleapis.com/$discovery/rest?version=v2beta1", + "discoveryRestUrl": "https://cloudtrace.googleapis.com/$discovery/rest?version=v2", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/trace", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", - "id": "composer:v1", + "id": "composer:v1beta1", "name": "composer", - "version": "v1", + "version": "v1beta1", "title": "Cloud Composer API", "description": "Manages Apache Airflow environments on Google Cloud Platform.", - "discoveryRestUrl": "https://composer.googleapis.com/$discovery/rest?version=v1", + "discoveryRestUrl": "https://composer.googleapis.com/$discovery/rest?version=v1beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/composer/", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "composer:v1beta1", + "id": "composer:v1", "name": "composer", - "version": "v1beta1", + "version": "v1", "title": "Cloud Composer API", "description": "Manages Apache Airflow environments on Google Cloud Platform.", - "discoveryRestUrl": "https://composer.googleapis.com/$discovery/rest?version=v1beta1", + "discoveryRestUrl": "https://composer.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/composer/", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", @@ -1392,33 +1419,33 @@ }, { "kind": "discovery#directoryItem", - "id": "container:v1", + "id": "container:v1beta1", "name": "container", - "version": "v1", + "version": "v1beta1", "title": "Kubernetes Engine API", "description": "Builds and manages container-based applications, powered by the open source Kubernetes technology.", - "discoveryRestUrl": "https://container.googleapis.com/$discovery/rest?version=v1", + "discoveryRestUrl": "https://container.googleapis.com/$discovery/rest?version=v1beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/container-engine/", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "container:v1beta1", + "id": "container:v1", "name": "container", - "version": "v1beta1", + "version": "v1", "title": "Kubernetes Engine API", "description": "Builds and manages container-based applications, powered by the open source Kubernetes technology.", - "discoveryRestUrl": "https://container.googleapis.com/$discovery/rest?version=v1beta1", + "discoveryRestUrl": "https://container.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/container-engine/", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", @@ -1433,7 +1460,7 @@ "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/container-analysis/api/reference/rest/", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", @@ -1448,7 +1475,7 @@ "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/container-analysis/api/reference/rest/", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", @@ -1456,14 +1483,13 @@ "name": "content", "version": "v2", "title": "Content API for Shopping", - "description": "Manages product items, inventory, and Merchant Center accounts for Google Shopping.", - "discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/content/v2/rest", - "discoveryLink": "./apis/content/v2/rest", + "description": "Manage your product listings and accounts for Google Shopping", + "discoveryRestUrl": "https://shoppingcontent.googleapis.com/$discovery/rest?version=v2", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, - "documentationLink": "https://developers.google.com/shopping-content", + "documentationLink": "https://developers.google.com/shopping-content/v2/", "preferred": false }, { @@ -1472,14 +1498,13 @@ "name": "content", "version": "v2.1", "title": "Content API for Shopping", - "description": "Manages product items, inventory, and Merchant Center accounts for Google Shopping.", - "discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/content/v2.1/rest", - "discoveryLink": "./apis/content/v2.1/rest", + "description": "Manage your product listings and accounts for Google Shopping", + "discoveryRestUrl": "https://shoppingcontent.googleapis.com/$discovery/rest?version=v2.1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, - "documentationLink": "https://developers.google.com/shopping-content", + "documentationLink": "https://developers.google.com/shopping-content/v2/", "preferred": true }, { @@ -1527,6 +1552,21 @@ "documentationLink": "https://cloud.google.com/dataflow", "preferred": true }, + { + "kind": "discovery#directoryItem", + "id": "datafusion:v1beta1", + "name": "datafusion", + "version": "v1beta1", + "title": "Cloud Data Fusion API", + "description": "Cloud Data Fusion is a fully-managed, cloud native, enterprise data integration service for quickly building and managing data pipelines. It provides a graphical interface to increase time efficiency and reduce complexity, and allows business users, developers, and data scientists to easily and reliably build scalable data integration solutions to cleanse, prepare, blend, transfer and transform data without having to wrestle with infrastructure.", + "discoveryRestUrl": "https://datafusion.googleapis.com/$discovery/rest?version=v1beta1", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://cloud.google.com/data-fusion/docs", + "preferred": false + }, { "kind": "discovery#directoryItem", "id": "datafusion:v1", @@ -1544,32 +1584,32 @@ }, { "kind": "discovery#directoryItem", - "id": "datafusion:v1beta1", - "name": "datafusion", + "id": "datalabeling:v1beta1", + "name": "datalabeling", "version": "v1beta1", - "title": "Cloud Data Fusion API", - "description": "Cloud Data Fusion is a fully-managed, cloud native, enterprise data integration service for quickly building and managing data pipelines. It provides a graphical interface to increase time efficiency and reduce complexity, and allows business users, developers, and data scientists to easily and reliably build scalable data integration solutions to cleanse, prepare, blend, transfer and transform data without having to wrestle with infrastructure.", - "discoveryRestUrl": "https://datafusion.googleapis.com/$discovery/rest?version=v1beta1", + "title": "Data Labeling API", + "description": "Public API for Google Cloud AI Data Labeling Service.", + "discoveryRestUrl": "https://datalabeling.googleapis.com/$discovery/rest?version=v1beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, - "documentationLink": "https://cloud.google.com/data-fusion/docs", - "preferred": false + "documentationLink": "https://cloud.google.com/data-labeling/docs/", + "preferred": true }, { "kind": "discovery#directoryItem", - "id": "dataproc:v1", - "name": "dataproc", - "version": "v1", - "title": "Cloud Dataproc API", - "description": "Manages Hadoop-based clusters and jobs on Google Cloud Platform.", - "discoveryRestUrl": "https://dataproc.googleapis.com/$discovery/rest?version=v1", + "id": "datamigration:v1beta1", + "name": "datamigration", + "version": "v1beta1", + "title": "Database Migration API", + "description": "Manage Cloud Database Migration Service resources on Google Cloud Platform.", + "discoveryRestUrl": "https://datamigration.googleapis.com/$discovery/rest?version=v1beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, - "documentationLink": "https://cloud.google.com/dataproc/", + "documentationLink": "https://cloud.google.com/datamigration/", "preferred": true }, { @@ -1589,17 +1629,17 @@ }, { "kind": "discovery#directoryItem", - "id": "datastore:v1", - "name": "datastore", + "id": "dataproc:v1", + "name": "dataproc", "version": "v1", - "title": "Cloud Datastore API", - "description": "Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application.", - "discoveryRestUrl": "https://datastore.googleapis.com/$discovery/rest?version=v1", + "title": "Cloud Dataproc API", + "description": "Manages Hadoop-based clusters and jobs on Google Cloud Platform.", + "discoveryRestUrl": "https://dataproc.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, - "documentationLink": "https://cloud.google.com/datastore/", + "documentationLink": "https://cloud.google.com/dataproc/", "preferred": true }, { @@ -1632,6 +1672,21 @@ "documentationLink": "https://cloud.google.com/datastore/", "preferred": false }, + { + "kind": "discovery#directoryItem", + "id": "datastore:v1", + "name": "datastore", + "version": "v1", + "title": "Cloud Datastore API", + "description": "Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application.", + "discoveryRestUrl": "https://datastore.googleapis.com/$discovery/rest?version=v1", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://cloud.google.com/datastore/", + "preferred": true + }, { "kind": "discovery#directoryItem", "id": "deploymentmanager:alpha", @@ -1644,7 +1699,7 @@ "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, - "documentationLink": "http://cloud.google.com/deployment-manager", + "documentationLink": "https://cloud.google.com/deployment-manager", "preferred": false }, { @@ -1659,7 +1714,7 @@ "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, - "documentationLink": "http://cloud.google.com/deployment-manager", + "documentationLink": "https://cloud.google.com/deployment-manager", "preferred": false }, { @@ -1674,7 +1729,7 @@ "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, - "documentationLink": "http://cloud.google.com/deployment-manager", + "documentationLink": "https://cloud.google.com/deployment-manager", "preferred": true }, { @@ -1682,7 +1737,7 @@ "id": "dfareporting:v3.3", "name": "dfareporting", "version": "v3.3", - "title": "DCM/DFA Reporting And Trafficking API", + "title": "Campaign Manager 360 API", "description": "Manage your DoubleClick Campaign Manager ad campaigns and reports.", "discoveryRestUrl": "https://dfareporting.googleapis.com/$discovery/rest?version=v3.3", "icons": { @@ -1697,7 +1752,7 @@ "id": "dfareporting:v3.4", "name": "dfareporting", "version": "v3.4", - "title": "DCM/DFA Reporting And Trafficking API", + "title": "Campaign Manager 360 API", "description": "Manage your DoubleClick Campaign Manager ad campaigns and reports.", "discoveryRestUrl": "https://dfareporting.googleapis.com/$discovery/rest?version=v3.4", "icons": { @@ -1709,27 +1764,27 @@ }, { "kind": "discovery#directoryItem", - "id": "dialogflow:v2", + "id": "dialogflow:v2beta1", "name": "dialogflow", - "version": "v2", + "version": "v2beta1", "title": "Dialogflow API", "description": "Builds conversational interfaces (for example, chatbots, and voice-powered apps and devices).", - "discoveryRestUrl": "https://dialogflow.googleapis.com/$discovery/rest?version=v2", + "discoveryRestUrl": "https://dialogflow.googleapis.com/$discovery/rest?version=v2beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/dialogflow/", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "dialogflow:v2beta1", + "id": "dialogflow:v3beta1", "name": "dialogflow", - "version": "v2beta1", + "version": "v3beta1", "title": "Dialogflow API", "description": "Builds conversational interfaces (for example, chatbots, and voice-powered apps and devices).", - "discoveryRestUrl": "https://dialogflow.googleapis.com/$discovery/rest?version=v2beta1", + "discoveryRestUrl": "https://dialogflow.googleapis.com/$discovery/rest?version=v3beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" @@ -1739,18 +1794,18 @@ }, { "kind": "discovery#directoryItem", - "id": "dialogflow:v3beta1", + "id": "dialogflow:v2", "name": "dialogflow", - "version": "v3beta1", + "version": "v2", "title": "Dialogflow API", "description": "Builds conversational interfaces (for example, chatbots, and voice-powered apps and devices).", - "discoveryRestUrl": "https://dialogflow.googleapis.com/$discovery/rest?version=v3beta1", + "discoveryRestUrl": "https://dialogflow.googleapis.com/$discovery/rest?version=v2", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/dialogflow/", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", @@ -1782,36 +1837,6 @@ "documentationLink": "https://developers.google.com/discovery", "preferred": true }, - { - "kind": "discovery#directoryItem", - "id": "displayvideo:v1beta", - "name": "displayvideo", - "version": "v1beta", - "title": "Display & Video 360 API", - "description": "Display & Video 360 API allows users to manage and create campaigns and reports.", - "discoveryRestUrl": "https://displayvideo.googleapis.com/$discovery/rest?version=v1beta", - "icons": { - "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", - "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" - }, - "documentationLink": "https://developers.google.com/display-video/", - "preferred": false - }, - { - "kind": "discovery#directoryItem", - "id": "displayvideo:v1dev", - "name": "displayvideo", - "version": "v1dev", - "title": "Display & Video 360 API", - "description": "Display & Video 360 API allows users to manage and create campaigns and reports.", - "discoveryRestUrl": "https://displayvideo.googleapis.com/$discovery/rest?version=v1dev", - "icons": { - "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", - "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" - }, - "documentationLink": "https://developers.google.com/display-video/", - "preferred": false - }, { "kind": "discovery#directoryItem", "id": "displayvideo:v1", @@ -1827,21 +1852,6 @@ "documentationLink": "https://developers.google.com/display-video/", "preferred": true }, - { - "kind": "discovery#directoryItem", - "id": "displayvideo:v1beta2", - "name": "displayvideo", - "version": "v1beta2", - "title": "Display & Video 360 API", - "description": "Display & Video 360 API allows users to manage and create campaigns and reports.", - "discoveryRestUrl": "https://displayvideo.googleapis.com/$discovery/rest?version=v1beta2", - "icons": { - "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", - "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" - }, - "documentationLink": "https://developers.google.com/display-video/", - "preferred": false - }, { "kind": "discovery#directoryItem", "id": "dlp:v2", @@ -1859,33 +1869,33 @@ }, { "kind": "discovery#directoryItem", - "id": "dns:v1", + "id": "dns:v1beta2", "name": "dns", - "version": "v1", + "version": "v1beta2", "title": "Cloud DNS API", "description": "", - "discoveryRestUrl": "https://dns.googleapis.com/$discovery/rest?version=v1", + "discoveryRestUrl": "https://dns.googleapis.com/$discovery/rest?version=v1beta2", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/dns/docs", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "dns:v1beta2", + "id": "dns:v1", "name": "dns", - "version": "v1beta2", + "version": "v1", "title": "Cloud DNS API", "description": "", - "discoveryRestUrl": "https://dns.googleapis.com/$discovery/rest?version=v1beta2", + "discoveryRestUrl": "https://dns.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/dns/docs", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", @@ -1945,7 +1955,7 @@ "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/domains/", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", @@ -1960,7 +1970,7 @@ "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/domains/", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", @@ -2069,6 +2079,21 @@ "documentationLink": "https://developers.google.com/drive/activity/", "preferred": true }, + { + "kind": "discovery#directoryItem", + "id": "eventarc:v1beta1", + "name": "eventarc", + "version": "v1beta1", + "title": "Eventarc API", + "description": "", + "discoveryRestUrl": "https://eventarc.googleapis.com/$discovery/rest?version=v1beta1", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://cloud.google.com/eventarc", + "preferred": true + }, { "kind": "discovery#directoryItem", "id": "factchecktools:v1alpha1", @@ -2101,33 +2126,33 @@ }, { "kind": "discovery#directoryItem", - "id": "file:v1", + "id": "file:v1beta1", "name": "file", - "version": "v1", + "version": "v1beta1", "title": "Cloud Filestore API", "description": "The Cloud Filestore API is used for creating and managing cloud file servers.", - "discoveryRestUrl": "https://file.googleapis.com/$discovery/rest?version=v1", + "discoveryRestUrl": "https://file.googleapis.com/$discovery/rest?version=v1beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/filestore/", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "file:v1beta1", + "id": "file:v1", "name": "file", - "version": "v1beta1", + "version": "v1", "title": "Cloud Filestore API", "description": "The Cloud Filestore API is used for creating and managing cloud file servers.", - "discoveryRestUrl": "https://file.googleapis.com/$discovery/rest?version=v1beta1", + "discoveryRestUrl": "https://file.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/filestore/", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", @@ -2144,6 +2169,21 @@ "documentationLink": "https://firebase.google.com", "preferred": true }, + { + "kind": "discovery#directoryItem", + "id": "firebasedatabase:v1beta", + "name": "firebasedatabase", + "version": "v1beta", + "title": "Firebase Realtime Database Management API", + "description": "The Firebase Realtime Database Management API enables programmatic provisioning and management of Realtime Database instances.", + "discoveryRestUrl": "https://firebasedatabase.googleapis.com/$discovery/rest?version=v1beta", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://firebase.google.com/docs/reference/rest/database/database-management/rest/", + "preferred": true + }, { "kind": "discovery#directoryItem", "id": "firebasedynamiclinks:v1", @@ -2161,63 +2201,63 @@ }, { "kind": "discovery#directoryItem", - "id": "firebasehosting:v1", + "id": "firebasehosting:v1beta1", "name": "firebasehosting", - "version": "v1", + "version": "v1beta1", "title": "Firebase Hosting API", "description": "The Firebase Hosting REST API enables programmatic and customizable deployments to your Firebase-hosted sites. Use this REST API to deploy new or updated hosting configurations and content files.", - "discoveryRestUrl": "https://firebasehosting.googleapis.com/$discovery/rest?version=v1", + "discoveryRestUrl": "https://firebasehosting.googleapis.com/$discovery/rest?version=v1beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://firebase.google.com/docs/hosting/", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "firebasehosting:v1beta1", + "id": "firebasehosting:v1", "name": "firebasehosting", - "version": "v1beta1", + "version": "v1", "title": "Firebase Hosting API", "description": "The Firebase Hosting REST API enables programmatic and customizable deployments to your Firebase-hosted sites. Use this REST API to deploy new or updated hosting configurations and content files.", - "discoveryRestUrl": "https://firebasehosting.googleapis.com/$discovery/rest?version=v1beta1", + "discoveryRestUrl": "https://firebasehosting.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://firebase.google.com/docs/hosting/", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", - "id": "firebaseml:v1", + "id": "firebaseml:v1beta2", "name": "firebaseml", - "version": "v1", + "version": "v1beta2", "title": "Firebase ML API", "description": "Access custom machine learning models hosted via Firebase ML.", - "discoveryRestUrl": "https://firebaseml.googleapis.com/$discovery/rest?version=v1", + "discoveryRestUrl": "https://firebaseml.googleapis.com/$discovery/rest?version=v1beta2", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://firebase.google.com", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "firebaseml:v1beta2", + "id": "firebaseml:v1", "name": "firebaseml", - "version": "v1beta2", + "version": "v1", "title": "Firebase ML API", "description": "Access custom machine learning models hosted via Firebase ML.", - "discoveryRestUrl": "https://firebaseml.googleapis.com/$discovery/rest?version=v1beta2", + "discoveryRestUrl": "https://firebaseml.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://firebase.google.com", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", @@ -2236,27 +2276,27 @@ }, { "kind": "discovery#directoryItem", - "id": "firestore:v1", + "id": "firestore:v1beta1", "name": "firestore", - "version": "v1", + "version": "v1beta1", "title": "Cloud Firestore API", "description": "Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development.", - "discoveryRestUrl": "https://firestore.googleapis.com/$discovery/rest?version=v1", + "discoveryRestUrl": "https://firestore.googleapis.com/$discovery/rest?version=v1beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/firestore", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "firestore:v1beta1", + "id": "firestore:v1beta2", "name": "firestore", - "version": "v1beta1", + "version": "v1beta2", "title": "Cloud Firestore API", "description": "Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development.", - "discoveryRestUrl": "https://firestore.googleapis.com/$discovery/rest?version=v1beta1", + "discoveryRestUrl": "https://firestore.googleapis.com/$discovery/rest?version=v1beta2", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" @@ -2266,18 +2306,18 @@ }, { "kind": "discovery#directoryItem", - "id": "firestore:v1beta2", + "id": "firestore:v1", "name": "firestore", - "version": "v1beta2", + "version": "v1", "title": "Cloud Firestore API", "description": "Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development.", - "discoveryRestUrl": "https://firestore.googleapis.com/$discovery/rest?version=v1beta2", + "discoveryRestUrl": "https://firestore.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/firestore", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", @@ -2476,33 +2516,33 @@ }, { "kind": "discovery#directoryItem", - "id": "healthcare:v1", + "id": "healthcare:v1beta1", "name": "healthcare", - "version": "v1", + "version": "v1beta1", "title": "Cloud Healthcare API", "description": "Manage, store, and access healthcare data in Google Cloud Platform.", - "discoveryRestUrl": "https://healthcare.googleapis.com/$discovery/rest?version=v1", + "discoveryRestUrl": "https://healthcare.googleapis.com/$discovery/rest?version=v1beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/healthcare", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "healthcare:v1beta1", + "id": "healthcare:v1", "name": "healthcare", - "version": "v1beta1", + "version": "v1", "title": "Cloud Healthcare API", "description": "Manage, store, and access healthcare data in Google Cloud Platform.", - "discoveryRestUrl": "https://healthcare.googleapis.com/$discovery/rest?version=v1beta1", + "discoveryRestUrl": "https://healthcare.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/healthcare", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", @@ -2525,7 +2565,7 @@ "name": "iam", "version": "v1", "title": "Identity and Access Management (IAM) API", - "description": "Manages identity and access control for Google Cloud Platform resources, including the creation of service accounts, which you can use to authenticate to Google and make API calls. *Note:* This API is tied to the IAM service account credentials API \u003c/iam/docs/reference/credentials/rest\u003e (iamcredentials.googleapis.com). Enabling or disabling this API will also enable or disable the IAM service account credentials API.", + "description": "Manages identity and access control for Google Cloud Platform resources, including the creation of service accounts, which you can use to authenticate to Google and make API calls.", "discoveryRestUrl": "https://iam.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", @@ -2540,7 +2580,7 @@ "name": "iamcredentials", "version": "v1", "title": "IAM Service Account Credentials API", - "description": "Creates short-lived credentials for impersonating IAM service accounts. *Note:* This API is tied to the IAM API \u003c/iam/docs/reference/rest\u003e ( iam.googleapis.com). Enabling or disabling this API will also enable or disable the IAM API.", + "description": "Creates short-lived credentials for impersonating IAM service accounts. To enable this API, you must enable the IAM API (iam.googleapis.com).", "discoveryRestUrl": "https://iamcredentials.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", @@ -2551,33 +2591,33 @@ }, { "kind": "discovery#directoryItem", - "id": "iap:v1", + "id": "iap:v1beta1", "name": "iap", - "version": "v1", + "version": "v1beta1", "title": "Cloud Identity-Aware Proxy API", "description": "Controls access to cloud applications running on Google Cloud Platform.", - "discoveryRestUrl": "https://iap.googleapis.com/$discovery/rest?version=v1", + "discoveryRestUrl": "https://iap.googleapis.com/$discovery/rest?version=v1beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/iap", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "iap:v1beta1", + "id": "iap:v1", "name": "iap", - "version": "v1beta1", + "version": "v1", "title": "Cloud Identity-Aware Proxy API", "description": "Controls access to cloud applications running on Google Cloud Platform.", - "discoveryRestUrl": "https://iap.googleapis.com/$discovery/rest?version=v1beta1", + "discoveryRestUrl": "https://iap.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/iap", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", @@ -2671,27 +2711,27 @@ }, { "kind": "discovery#directoryItem", - "id": "language:v1", + "id": "language:v1beta1", "name": "language", - "version": "v1", + "version": "v1beta1", "title": "Cloud Natural Language API", "description": "Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations, to developers.", - "discoveryRestUrl": "https://language.googleapis.com/$discovery/rest?version=v1", + "discoveryRestUrl": "https://language.googleapis.com/$discovery/rest?version=v1beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/natural-language/", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "language:v1beta1", + "id": "language:v1beta2", "name": "language", - "version": "v1beta1", + "version": "v1beta2", "title": "Cloud Natural Language API", "description": "Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations, to developers.", - "discoveryRestUrl": "https://language.googleapis.com/$discovery/rest?version=v1beta1", + "discoveryRestUrl": "https://language.googleapis.com/$discovery/rest?version=v1beta2", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" @@ -2701,18 +2741,18 @@ }, { "kind": "discovery#directoryItem", - "id": "language:v1beta2", + "id": "language:v1", "name": "language", - "version": "v1beta2", + "version": "v1", "title": "Cloud Natural Language API", "description": "Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations, to developers.", - "discoveryRestUrl": "https://language.googleapis.com/$discovery/rest?version=v1beta2", + "discoveryRestUrl": "https://language.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/natural-language/", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", @@ -2734,10 +2774,9 @@ "id": "licensing:v1", "name": "licensing", "version": "v1", - "title": "Licensing API", - "description": "Licensing API to view and manage licenses for your domain", - "discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/licensing/v1/rest", - "discoveryLink": "./apis/licensing/v1/rest", + "title": "Enterprise License Manager API", + "description": "The Google Enterprise License Manager API's allows you to license apps for all the users of a domain managed by you.", + "discoveryRestUrl": "https://licensing.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" @@ -2807,33 +2846,33 @@ }, { "kind": "discovery#directoryItem", - "id": "managedidentities:v1", + "id": "managedidentities:v1beta1", "name": "managedidentities", - "version": "v1", + "version": "v1beta1", "title": "Managed Service for Microsoft Active Directory API", "description": "The Managed Service for Microsoft Active Directory API is used for managing a highly available, hardened service running Microsoft Active Directory (AD).", - "discoveryRestUrl": "https://managedidentities.googleapis.com/$discovery/rest?version=v1", + "discoveryRestUrl": "https://managedidentities.googleapis.com/$discovery/rest?version=v1beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/managed-microsoft-ad/", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "managedidentities:v1beta1", + "id": "managedidentities:v1", "name": "managedidentities", - "version": "v1beta1", + "version": "v1", "title": "Managed Service for Microsoft Active Directory API", "description": "The Managed Service for Microsoft Active Directory API is used for managing a highly available, hardened service running Microsoft Active Directory (AD).", - "discoveryRestUrl": "https://managedidentities.googleapis.com/$discovery/rest?version=v1beta1", + "discoveryRestUrl": "https://managedidentities.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/managed-microsoft-ad/", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", @@ -2880,21 +2919,6 @@ "documentationLink": "https://cloud.google.com/ml/", "preferred": true }, - { - "kind": "discovery#directoryItem", - "id": "monitoring:v3p1alpha1", - "name": "monitoring", - "version": "v3p1alpha1", - "title": "Cloud Monitoring API", - "description": "Manages your Cloud Monitoring data and configurations. Most projects must be associated with a Workspace, with a few exceptions as noted on the individual method pages. The table entries below are presented in alphabetical order, not in order of common use. For explanations of the concepts found in the table entries, read the [Cloud Monitoring documentation](/monitoring/docs).", - "discoveryRestUrl": "https://monitoring.googleapis.com/$discovery/rest?version=v3p1alpha1", - "icons": { - "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", - "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" - }, - "documentationLink": "https://cloud.google.com/monitoring/api/", - "preferred": false - }, { "kind": "discovery#directoryItem", "id": "monitoring:v1", @@ -2927,33 +2951,48 @@ }, { "kind": "discovery#directoryItem", - "id": "networkmanagement:v1", + "id": "networkmanagement:v1beta1", "name": "networkmanagement", - "version": "v1", + "version": "v1beta1", "title": "Network Management API", "description": "The Network Management API provides a collection of network performance monitoring and diagnostic capabilities.", - "discoveryRestUrl": "https://networkmanagement.googleapis.com/$discovery/rest?version=v1", + "discoveryRestUrl": "https://networkmanagement.googleapis.com/$discovery/rest?version=v1beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "networkmanagement:v1beta1", + "id": "networkmanagement:v1", "name": "networkmanagement", - "version": "v1beta1", + "version": "v1", "title": "Network Management API", "description": "The Network Management API provides a collection of network performance monitoring and diagnostic capabilities.", - "discoveryRestUrl": "https://networkmanagement.googleapis.com/$discovery/rest?version=v1beta1", + "discoveryRestUrl": "https://networkmanagement.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/", - "preferred": false + "preferred": true + }, + { + "kind": "discovery#directoryItem", + "id": "notebooks:v1", + "name": "notebooks", + "version": "v1", + "title": "Notebooks API", + "description": "AI Platform Notebooks API is used to manage notebook resources in Google Cloud.", + "discoveryRestUrl": "https://notebooks.googleapis.com/$discovery/rest?version=v1", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://cloud.google.com/ai-platform/notebooks/docs/", + "preferred": true }, { "kind": "discovery#directoryItem", @@ -3168,32 +3207,32 @@ }, { "kind": "discovery#directoryItem", - "id": "prod_tt_sasportal:v1alpha1", - "name": "prod_tt_sasportal", - "version": "v1alpha1", - "title": "SAS Portal API (Testing)", - "description": "", - "discoveryRestUrl": "https://prod-tt-sasportal.googleapis.com/$discovery/rest?version=v1alpha1", + "id": "privateca:v1beta1", + "name": "privateca", + "version": "v1beta1", + "title": "Certificate Authority API", + "description": "The Certificate Authority Service API is a highly-available, scalable service that enables you to simplify and automate the management of private certificate authorities (CAs) while staying in control of your private keys.\"", + "discoveryRestUrl": "https://privateca.googleapis.com/$discovery/rest?version=v1beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, - "documentationLink": "https://developers.google.com/spectrum-access-system/", + "documentationLink": "https://cloud.google.com/", "preferred": true }, { "kind": "discovery#directoryItem", - "id": "programmablesearchelement:v1", - "name": "programmablesearchelement", - "version": "v1", - "title": "Programmable Search Element Paid API", - "description": "Used for quota management and billing of Programmable Search Element queries", - "discoveryRestUrl": "https://programmablesearchelement.googleapis.com/$discovery/rest?version=v1", + "id": "prod_tt_sasportal:v1alpha1", + "name": "prod_tt_sasportal", + "version": "v1alpha1", + "title": "SAS Portal API (Testing)", + "description": "", + "discoveryRestUrl": "https://prod-tt-sasportal.googleapis.com/$discovery/rest?version=v1alpha1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, - "documentationLink": "https://developers.google.com/custom-search/v1/introduction", + "documentationLink": "https://developers.google.com/spectrum-access-system/", "preferred": true }, { @@ -3213,33 +3252,33 @@ }, { "kind": "discovery#directoryItem", - "id": "pubsub:v1", + "id": "pubsub:v1beta2", "name": "pubsub", - "version": "v1", + "version": "v1beta2", "title": "Cloud Pub/Sub API", "description": "Provides reliable, many-to-many, asynchronous messaging between applications.", - "discoveryRestUrl": "https://pubsub.googleapis.com/$discovery/rest?version=v1", + "discoveryRestUrl": "https://pubsub.googleapis.com/$discovery/rest?version=v1beta2", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/pubsub/docs", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "pubsub:v1beta2", + "id": "pubsub:v1", "name": "pubsub", - "version": "v1beta2", + "version": "v1", "title": "Cloud Pub/Sub API", "description": "Provides reliable, many-to-many, asynchronous messaging between applications.", - "discoveryRestUrl": "https://pubsub.googleapis.com/$discovery/rest?version=v1beta2", + "discoveryRestUrl": "https://pubsub.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/pubsub/docs", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", @@ -3288,63 +3327,63 @@ }, { "kind": "discovery#directoryItem", - "id": "recommender:v1", + "id": "recommender:v1beta1", "name": "recommender", - "version": "v1", + "version": "v1beta1", "title": "Recommender API", "description": "", - "discoveryRestUrl": "https://recommender.googleapis.com/$discovery/rest?version=v1", + "discoveryRestUrl": "https://recommender.googleapis.com/$discovery/rest?version=v1beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/recommender/docs/", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "recommender:v1beta1", + "id": "recommender:v1", "name": "recommender", - "version": "v1beta1", + "version": "v1", "title": "Recommender API", "description": "", - "discoveryRestUrl": "https://recommender.googleapis.com/$discovery/rest?version=v1beta1", + "discoveryRestUrl": "https://recommender.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/recommender/docs/", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", - "id": "redis:v1", + "id": "redis:v1beta1", "name": "redis", - "version": "v1", + "version": "v1beta1", "title": "Google Cloud Memorystore for Redis API", "description": "Creates and manages Redis instances on the Google Cloud Platform.", - "discoveryRestUrl": "https://redis.googleapis.com/$discovery/rest?version=v1", + "discoveryRestUrl": "https://redis.googleapis.com/$discovery/rest?version=v1beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/memorystore/docs/redis/", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "redis:v1beta1", + "id": "redis:v1", "name": "redis", - "version": "v1beta1", + "version": "v1", "title": "Google Cloud Memorystore for Redis API", "description": "Creates and manages Redis instances on the Google Cloud Platform.", - "discoveryRestUrl": "https://redis.googleapis.com/$discovery/rest?version=v1beta1", + "discoveryRestUrl": "https://redis.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/memorystore/docs/redis/", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", @@ -3396,18 +3435,14 @@ "id": "reseller:v1", "name": "reseller", "version": "v1", - "title": "Enterprise Apps Reseller API", - "description": "Creates and manages your customers and their subscriptions.", - "discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/reseller/v1/rest", - "discoveryLink": "./apis/reseller/v1/rest", + "title": "Google Workspace Reseller API", + "description": "Perform common functions that are available on the Google Apps Reseller Console at scale like placing orders and viewing customer information", + "discoveryRestUrl": "https://reseller.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://developers.google.com/google-apps/reseller/", - "labels": [ - "limited_availability" - ], "preferred": true }, { @@ -3425,6 +3460,21 @@ "documentationLink": "https://cloud.google.com/run/", "preferred": false }, + { + "kind": "discovery#directoryItem", + "id": "run:v1beta1", + "name": "run", + "version": "v1beta1", + "title": "Cloud Run Admin API", + "description": "Deploy and manage user provided container images that scale automatically based on HTTP traffic.", + "discoveryRestUrl": "https://run.googleapis.com/$discovery/rest?version=v1beta1", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://cloud.google.com/run/", + "preferred": false + }, { "kind": "discovery#directoryItem", "id": "run:v1", @@ -3442,17 +3492,17 @@ }, { "kind": "discovery#directoryItem", - "id": "run:v1beta1", - "name": "run", + "id": "runtimeconfig:v1beta1", + "name": "runtimeconfig", "version": "v1beta1", - "title": "Cloud Run Admin API", - "description": "Deploy and manage user provided container images that scale automatically based on HTTP traffic.", - "discoveryRestUrl": "https://run.googleapis.com/$discovery/rest?version=v1beta1", + "title": "Cloud Runtime Configuration API", + "description": "The Runtime Configurator allows you to dynamically configure and expose variables through Google Cloud Platform. In addition, you can also set Watchers and Waiters that will watch for changes to your data and return based on certain conditions.", + "discoveryRestUrl": "https://runtimeconfig.googleapis.com/$discovery/rest?version=v1beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, - "documentationLink": "https://cloud.google.com/run/", + "documentationLink": "https://cloud.google.com/deployment-manager/runtime-configurator/", "preferred": false }, { @@ -3472,18 +3522,18 @@ }, { "kind": "discovery#directoryItem", - "id": "runtimeconfig:v1beta1", - "name": "runtimeconfig", - "version": "v1beta1", - "title": "Cloud Runtime Configuration API", - "description": "The Runtime Configurator allows you to dynamically configure and expose variables through Google Cloud Platform. In addition, you can also set Watchers and Waiters that will watch for changes to your data and return based on certain conditions.", - "discoveryRestUrl": "https://runtimeconfig.googleapis.com/$discovery/rest?version=v1beta1", + "id": "safebrowsing:v4", + "name": "safebrowsing", + "version": "v4", + "title": "Safe Browsing API", + "description": "Enables client applications to check web resources (most commonly URLs) against Google-generated lists of unsafe web resources. The Safe Browsing APIs are for non-commercial use only. If you need to use APIs to detect malicious URLs for commercial purposes – meaning “for sale or revenue-generating purposes” – please refer to the Web Risk API.", + "discoveryRestUrl": "https://safebrowsing.googleapis.com/$discovery/rest?version=v4", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, - "documentationLink": "https://cloud.google.com/deployment-manager/runtime-configurator/", - "preferred": false + "documentationLink": "https://developers.google.com/safe-browsing/", + "preferred": true }, { "kind": "discovery#directoryItem", @@ -3530,21 +3580,6 @@ "documentationLink": "https://developers.google.com/webmaster-tools/search-console-api/", "preferred": true }, - { - "kind": "discovery#directoryItem", - "id": "secretmanager:v1", - "name": "secretmanager", - "version": "v1", - "title": "Secret Manager API", - "description": "Stores sensitive data such as API keys, passwords, and certificates. Provides convenience while improving security.", - "discoveryRestUrl": "https://secretmanager.googleapis.com/$discovery/rest?version=v1", - "icons": { - "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", - "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" - }, - "documentationLink": "https://cloud.google.com/secret-manager/", - "preferred": true - }, { "kind": "discovery#directoryItem", "id": "secretmanager:v1beta1", @@ -3562,17 +3597,17 @@ }, { "kind": "discovery#directoryItem", - "id": "securitycenter:v1", - "name": "securitycenter", + "id": "secretmanager:v1", + "name": "secretmanager", "version": "v1", - "title": "Security Command Center API", - "description": "Security Command Center API provides access to temporal views of assets and findings within an organization.", - "discoveryRestUrl": "https://securitycenter.googleapis.com/$discovery/rest?version=v1", + "title": "Secret Manager API", + "description": "Stores sensitive data such as API keys, passwords, and certificates. Provides convenience while improving security.", + "discoveryRestUrl": "https://secretmanager.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, - "documentationLink": "https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview", + "documentationLink": "https://cloud.google.com/secret-manager/", "preferred": true }, { @@ -3607,17 +3642,17 @@ }, { "kind": "discovery#directoryItem", - "id": "serviceconsumermanagement:v1", - "name": "serviceconsumermanagement", + "id": "securitycenter:v1", + "name": "securitycenter", "version": "v1", - "title": "Service Consumer Management API", - "description": "Manages the service consumers of a Service Infrastructure service.", - "discoveryRestUrl": "https://serviceconsumermanagement.googleapis.com/$discovery/rest?version=v1", + "title": "Security Command Center API", + "description": "Security Command Center API provides access to temporal views of assets and findings within an organization.", + "discoveryRestUrl": "https://securitycenter.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, - "documentationLink": "https://cloud.google.com/service-consumer-management/docs/overview", + "documentationLink": "https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview", "preferred": true }, { @@ -3635,6 +3670,21 @@ "documentationLink": "https://cloud.google.com/service-consumer-management/docs/overview", "preferred": false }, + { + "kind": "discovery#directoryItem", + "id": "serviceconsumermanagement:v1", + "name": "serviceconsumermanagement", + "version": "v1", + "title": "Service Consumer Management API", + "description": "Manages the service consumers of a Service Infrastructure service.", + "discoveryRestUrl": "https://serviceconsumermanagement.googleapis.com/$discovery/rest?version=v1", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://cloud.google.com/service-consumer-management/docs/overview", + "preferred": true + }, { "kind": "discovery#directoryItem", "id": "servicecontrol:v1", @@ -3727,33 +3777,33 @@ }, { "kind": "discovery#directoryItem", - "id": "serviceusage:v1", + "id": "serviceusage:v1beta1", "name": "serviceusage", - "version": "v1", + "version": "v1beta1", "title": "Service Usage API", "description": "Enables services that service consumers want to use on Google Cloud Platform, lists the available or enabled services, or disables services that service consumers no longer use.", - "discoveryRestUrl": "https://serviceusage.googleapis.com/$discovery/rest?version=v1", + "discoveryRestUrl": "https://serviceusage.googleapis.com/$discovery/rest?version=v1beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/service-usage/", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "serviceusage:v1beta1", + "id": "serviceusage:v1", "name": "serviceusage", - "version": "v1beta1", + "version": "v1", "title": "Service Usage API", "description": "Enables services that service consumers want to use on Google Cloud Platform, lists the available or enabled services, or disables services that service consumers no longer use.", - "discoveryRestUrl": "https://serviceusage.googleapis.com/$discovery/rest?version=v1beta1", + "discoveryRestUrl": "https://serviceusage.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/service-usage/", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", @@ -3862,33 +3912,33 @@ }, { "kind": "discovery#directoryItem", - "id": "speech:v1", + "id": "speech:v2beta1", "name": "speech", - "version": "v1", + "version": "v2beta1", "title": "Cloud Speech-to-Text API", "description": "Converts audio to text by applying powerful neural network models.", - "discoveryRestUrl": "https://speech.googleapis.com/$discovery/rest?version=v1", + "discoveryRestUrl": "https://speech.googleapis.com/$discovery/rest?version=v2beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/speech-to-text/docs/quickstart-protocol", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "speech:v2beta1", + "id": "speech:v1", "name": "speech", - "version": "v2beta1", + "version": "v1", "title": "Cloud Speech-to-Text API", "description": "Converts audio to text by applying powerful neural network models.", - "discoveryRestUrl": "https://speech.googleapis.com/$discovery/rest?version=v2beta1", + "discoveryRestUrl": "https://speech.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/speech-to-text/docs/quickstart-protocol", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", @@ -3910,18 +3960,14 @@ "id": "storage:v1", "name": "storage", "version": "v1", - "title": "Cloud Storage JSON API", - "description": "Stores and retrieves potentially large, immutable data objects.", - "discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/storage/v1/rest", - "discoveryLink": "./apis/storage/v1/rest", + "title": "Cloud Storage API", + "description": "Lets you store and retrieve potentially-large, immutable data objects.", + "discoveryRestUrl": "https://storage.googleapis.com/$discovery/rest?version=v1", "icons": { - "x16": "https://www.google.com/images/icons/product/cloud_storage-16.png", - "x32": "https://www.google.com/images/icons/product/cloud_storage-32.png" + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, - "documentationLink": "https://developers.google.com/storage/docs/json_api/", - "labels": [ - "labs" - ], + "documentationLink": "https://developers.google.com/storage/docs/json_api/v1/", "preferred": true }, { @@ -4045,33 +4091,33 @@ }, { "kind": "discovery#directoryItem", - "id": "texttospeech:v1", + "id": "texttospeech:v1beta1", "name": "texttospeech", - "version": "v1", + "version": "v1beta1", "title": "Cloud Text-to-Speech API", "description": "Synthesizes natural-sounding speech by applying powerful neural network models.", - "discoveryRestUrl": "https://texttospeech.googleapis.com/$discovery/rest?version=v1", + "discoveryRestUrl": "https://texttospeech.googleapis.com/$discovery/rest?version=v1beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/text-to-speech/", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "texttospeech:v1beta1", + "id": "texttospeech:v1", "name": "texttospeech", - "version": "v1beta1", + "version": "v1", "title": "Cloud Text-to-Speech API", "description": "Synthesizes natural-sounding speech by applying powerful neural network models.", - "discoveryRestUrl": "https://texttospeech.googleapis.com/$discovery/rest?version=v1beta1", + "discoveryRestUrl": "https://texttospeech.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/text-to-speech/", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", @@ -4130,17 +4176,32 @@ "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, - "documentationLink": "https://www.envoyproxy.io/docs/envoy/latest/configuration/overview/v2_overview#management-server", + "documentationLink": "https://cloud.google.com/traffic-director", "preferred": true }, { "kind": "discovery#directoryItem", - "id": "translate:v2", + "id": "transcoder:v1beta1", + "name": "transcoder", + "version": "v1beta1", + "title": "Transcoder API", + "description": "This API converts video files into formats suitable for consumer distribution.", + "discoveryRestUrl": "https://transcoder.googleapis.com/$discovery/rest?version=v1beta1", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://cloud.google.com/transcoder/docs/", + "preferred": true + }, + { + "kind": "discovery#directoryItem", + "id": "translate:v3beta1", "name": "translate", - "version": "v2", + "version": "v3beta1", "title": "Cloud Translation API", "description": "Integrates text translation into your website or application.", - "discoveryRestUrl": "https://translation.googleapis.com/$discovery/rest?version=v2", + "discoveryRestUrl": "https://translation.googleapis.com/$discovery/rest?version=v3beta1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" @@ -4150,33 +4211,33 @@ }, { "kind": "discovery#directoryItem", - "id": "translate:v3", + "id": "translate:v2", "name": "translate", - "version": "v3", + "version": "v2", "title": "Cloud Translation API", "description": "Integrates text translation into your website or application.", - "discoveryRestUrl": "https://translation.googleapis.com/$discovery/rest?version=v3", + "discoveryRestUrl": "https://translation.googleapis.com/$discovery/rest?version=v2", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/translate/docs/quickstarts", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "translate:v3beta1", + "id": "translate:v3", "name": "translate", - "version": "v3beta1", + "version": "v3", "title": "Cloud Translation API", "description": "Integrates text translation into your website or application.", - "discoveryRestUrl": "https://translation.googleapis.com/$discovery/rest?version=v3beta1", + "discoveryRestUrl": "https://translation.googleapis.com/$discovery/rest?version=v3", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/translate/docs/quickstarts", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", @@ -4270,33 +4331,33 @@ }, { "kind": "discovery#directoryItem", - "id": "videointelligence:v1", + "id": "videointelligence:v1beta2", "name": "videointelligence", - "version": "v1", + "version": "v1beta2", "title": "Cloud Video Intelligence API", "description": "Detects objects, explicit content, and scene changes in videos. It also specifies the region for annotation and transcribes speech to text. Supports both asynchronous API and streaming API.", - "discoveryRestUrl": "https://videointelligence.googleapis.com/$discovery/rest?version=v1", + "discoveryRestUrl": "https://videointelligence.googleapis.com/$discovery/rest?version=v1beta2", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/video-intelligence/docs/", - "preferred": true + "preferred": false }, { "kind": "discovery#directoryItem", - "id": "videointelligence:v1beta2", + "id": "videointelligence:v1", "name": "videointelligence", - "version": "v1beta2", + "version": "v1", "title": "Cloud Video Intelligence API", "description": "Detects objects, explicit content, and scene changes in videos. It also specifies the region for annotation and transcribes speech to text. Supports both asynchronous API and streaming API.", - "discoveryRestUrl": "https://videointelligence.googleapis.com/$discovery/rest?version=v1beta2", + "discoveryRestUrl": "https://videointelligence.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/video-intelligence/docs/", - "preferred": false + "preferred": true }, { "kind": "discovery#directoryItem", @@ -4454,15 +4515,14 @@ "id": "youtube:v3", "name": "youtube", "version": "v3", - "title": "YouTube Data API", - "description": "Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more.", - "discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/youtube/v3/rest", - "discoveryLink": "./apis/youtube/v3/rest", + "title": "YouTube Data API v3", + "description": "The YouTube Data API v3 is an API that provides access to YouTube data, such as videos, playlists, and channels.", + "discoveryRestUrl": "https://youtube.googleapis.com/$discovery/rest?version=v3", "icons": { - "x16": "https://www.google.com/images/icons/product/youtube-16.png", - "x32": "https://www.google.com/images/icons/product/youtube-32.png" + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, - "documentationLink": "https://developers.google.com/youtube/v3", + "documentationLink": "https://developers.google.com/youtube/", "preferred": true }, { diff --git a/apigateway/v1beta/apigateway-api.json b/apigateway/v1beta/apigateway-api.json index 76700226baf..a498f58941d 100644 --- a/apigateway/v1beta/apigateway-api.json +++ b/apigateway/v1beta/apigateway-api.json @@ -1083,7 +1083,7 @@ } } }, - "revision": "20200901", + "revision": "20201029", "rootUrl": "https://apigateway.googleapis.com/", "schemas": { "ApigatewayApi": { @@ -1147,7 +1147,7 @@ "type": "object" }, "ApigatewayApiConfig": { - "description": "An API Configuration is an association of an API Controller Config and a Gateway Config. For APIs with a Managed Service API Controller, this resource is associated with one or more Service Configs and a Service Rollout. Initially, this resource will extract the Gateway Config from the API Controller Config.", + "description": "An API Configuration is a combination of settings for both the Managed Service and Gateways serving this API Config.", "id": "ApigatewayApiConfig", "properties": { "createTime": { @@ -1342,6 +1342,9 @@ "description": "Associates `members` with a `role`.", "id": "ApigatewayBinding", "properties": { + "bindingId": { + "type": "string" + }, "condition": { "$ref": "ApigatewayExpr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." diff --git a/apigateway/v1beta/apigateway-gen.go b/apigateway/v1beta/apigateway-gen.go index ac0c4d0ea7f..d32e0761e0d 100644 --- a/apigateway/v1beta/apigateway-gen.go +++ b/apigateway/v1beta/apigateway-gen.go @@ -269,11 +269,9 @@ func (s *ApigatewayApi) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ApigatewayApiConfig: An API Configuration is an association of an API -// Controller Config and a Gateway Config. For APIs with a Managed -// Service API Controller, this resource is associated with one or more -// Service Configs and a Service Rollout. Initially, this resource will -// extract the Gateway Config from the API Controller Config. +// ApigatewayApiConfig: An API Configuration is a combination of +// settings for both the Managed Service and Gateways serving this API +// Config. type ApigatewayApiConfig struct { // CreateTime: Output only. Created time. CreateTime string `json:"createTime,omitempty"` @@ -606,6 +604,8 @@ func (s *ApigatewayBackendConfig) MarshalJSON() ([]byte, error) { // ApigatewayBinding: Associates `members` with a `role`. type ApigatewayBinding struct { + BindingId string `json:"bindingId,omitempty"` + // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -655,7 +655,7 @@ type ApigatewayBinding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to + // ForceSendFields is a list of field names (e.g. "BindingId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -663,7 +663,7 @@ type ApigatewayBinding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Condition") to include in + // NullFields is a list of field names (e.g. "BindingId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -1552,7 +1552,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1718,7 +1718,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1898,7 +1898,7 @@ func (c *ProjectsLocationsApisCreateCall) Header() http.Header { func (c *ProjectsLocationsApisCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2041,7 +2041,7 @@ func (c *ProjectsLocationsApisDeleteCall) Header() http.Header { func (c *ProjectsLocationsApisDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2182,7 +2182,7 @@ func (c *ProjectsLocationsApisGetCall) Header() http.Header { func (c *ProjectsLocationsApisGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2343,7 +2343,7 @@ func (c *ProjectsLocationsApisGetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsApisGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2517,7 +2517,7 @@ func (c *ProjectsLocationsApisListCall) Header() http.Header { func (c *ProjectsLocationsApisListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2705,7 +2705,7 @@ func (c *ProjectsLocationsApisPatchCall) Header() http.Header { func (c *ProjectsLocationsApisPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2853,7 +2853,7 @@ func (c *ProjectsLocationsApisSetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsApisSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2998,7 +2998,7 @@ func (c *ProjectsLocationsApisTestIamPermissionsCall) Header() http.Header { func (c *ProjectsLocationsApisTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3147,7 +3147,7 @@ func (c *ProjectsLocationsApisConfigsCreateCall) Header() http.Header { func (c *ProjectsLocationsApisConfigsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3290,7 +3290,7 @@ func (c *ProjectsLocationsApisConfigsDeleteCall) Header() http.Header { func (c *ProjectsLocationsApisConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3444,7 +3444,7 @@ func (c *ProjectsLocationsApisConfigsGetCall) Header() http.Header { func (c *ProjectsLocationsApisConfigsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3620,7 +3620,7 @@ func (c *ProjectsLocationsApisConfigsGetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsApisConfigsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3794,7 +3794,7 @@ func (c *ProjectsLocationsApisConfigsListCall) Header() http.Header { func (c *ProjectsLocationsApisConfigsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3982,7 +3982,7 @@ func (c *ProjectsLocationsApisConfigsPatchCall) Header() http.Header { func (c *ProjectsLocationsApisConfigsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4130,7 +4130,7 @@ func (c *ProjectsLocationsApisConfigsSetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsApisConfigsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4275,7 +4275,7 @@ func (c *ProjectsLocationsApisConfigsTestIamPermissionsCall) Header() http.Heade func (c *ProjectsLocationsApisConfigsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4424,7 +4424,7 @@ func (c *ProjectsLocationsGatewaysCreateCall) Header() http.Header { func (c *ProjectsLocationsGatewaysCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4567,7 +4567,7 @@ func (c *ProjectsLocationsGatewaysDeleteCall) Header() http.Header { func (c *ProjectsLocationsGatewaysDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4708,7 +4708,7 @@ func (c *ProjectsLocationsGatewaysGetCall) Header() http.Header { func (c *ProjectsLocationsGatewaysGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4869,7 +4869,7 @@ func (c *ProjectsLocationsGatewaysGetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsGatewaysGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5043,7 +5043,7 @@ func (c *ProjectsLocationsGatewaysListCall) Header() http.Header { func (c *ProjectsLocationsGatewaysListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5231,7 +5231,7 @@ func (c *ProjectsLocationsGatewaysPatchCall) Header() http.Header { func (c *ProjectsLocationsGatewaysPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5379,7 +5379,7 @@ func (c *ProjectsLocationsGatewaysSetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsGatewaysSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5524,7 +5524,7 @@ func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) Header() http.Header { func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5674,7 +5674,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5815,7 +5815,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5958,7 +5958,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6132,7 +6132,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/apigee/v1/apigee-api.json b/apigee/v1/apigee-api.json index 8a5d82c6227..bd14b72a925 100644 --- a/apigee/v1/apigee-api.json +++ b/apigee/v1/apigee-api.json @@ -515,7 +515,7 @@ "apiproducts": { "methods": { "attributes": { - "description": "Updates or creates API product attributes. This API **replaces** the current list of attributes with the attributes specified in the request body. In this way, you can update existing attributes, add new attributes, or delete existing attributes by omitting them from the request body. OAuth access tokens and Key Management Service (KMS) entities (apps, developers, and API products) are cached for 180 seconds (current default). Any custom attributes associated with entities also get cached for at least 180 seconds after entity is accessed during runtime. In this case, the `ExpiresIn` element on the OAuthV2 policy won't be able to expire an access token in less than 180 seconds.", + "description": "Updates or creates API product attributes. This API **replaces** the current list of attributes with the attributes specified in the request body. In this way, you can update existing attributes, add new attributes, or delete existing attributes by omitting them from the request body. **Note**: OAuth access tokens and Key Management Service (KMS) entities (apps, developers, and API products) are cached for 180 seconds (current default). Any custom attributes associated with entities also get cached for at least 180 seconds after entity is accessed during runtime. In this case, the `ExpiresIn` element on the OAuthV2 policy won't be able to expire an access token in less than 180 seconds.", "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes", "httpMethod": "POST", "id": "apigee.organizations.apiproducts.attributes", @@ -524,7 +524,7 @@ ], "parameters": { "name": { - "description": "**Required.** API product name in the following form: organizations/organization_ID/apiproducts/api_product_name ", + "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`", "location": "path", "pattern": "^organizations/[^/]+/apiproducts/[^/]+$", "required": true, @@ -543,7 +543,7 @@ ] }, "create": { - "description": "Creates an API product in an organization. You create API products after you have proxied backend services using API proxies. An API product is a collection of API resources combined with quota settings and metadata that you can use to deliver customized and productized API bundles to your developer community. This metadata can include: - Scope - Environments - API proxies - Extensible profile API products enable you repackage APIs on-the-fly, without having to do any additional coding or configuration. Apigee recommends that you start with a simple API product including only required elements. You then provision credentials to apps to enable them to start testing your APIs. After you have authentication and authorization working against a simple API product, you can iterate to create finer grained API products, defining different sets of API resources for each API product. *WARNING:* - If you don't specify an API proxy in the request body, *any* app associated with the product can make calls to *any* API in your entire organization. - If you don't specify an environment in the request body, the product allows access to all environments. For more information, see {{what_api_product}}", + "description": "Creates an API product in an organization. You create API products after you have proxied backend services using API proxies. An API product is a collection of API resources combined with quota settings and metadata that you can use to deliver customized and productized API bundles to your developer community. This metadata can include: - Scope - Environments - API proxies - Extensible profile API products enable you repackage APIs on-the-fly, without having to do any additional coding or configuration. Apigee recommends that you start with a simple API product including only required elements. You then provision credentials to apps to enable them to start testing your APIs. After you have authentication and authorization working against a simple API product, you can iterate to create finer grained API products, defining different sets of API resources for each API product. **WARNING:** - If you don't specify an API proxy in the request body, *any* app associated with the product can make calls to *any* API in your entire organization. - If you don't specify an environment in the request body, the product allows access to all environments. For more information, see What is an API product?", "flatPath": "v1/organizations/{organizationsId}/apiproducts", "httpMethod": "POST", "id": "apigee.organizations.apiproducts.create", @@ -552,7 +552,7 @@ ], "parameters": { "parent": { - "description": "Required. The parent organization name under which the API product will be created. Must be in the following form: organizations/organization_ID ", + "description": "Required. Name of the organization in which the API product will be created. Use the following structure in your request: `organizations/{org}`", "location": "path", "pattern": "^organizations/[^/]+$", "required": true, @@ -580,7 +580,7 @@ ], "parameters": { "name": { - "description": "Required. API product name in the following form: organizations/organization_ID/apiproducts/api_product_name ", + "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`", "location": "path", "pattern": "^organizations/[^/]+/apiproducts/[^/]+$", "required": true, @@ -605,7 +605,7 @@ ], "parameters": { "name": { - "description": "**Required.** API product name in the following form: organizations/organization_ID/apiproducts/api_product_name ", + "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`", "location": "path", "pattern": "^organizations/[^/]+/apiproducts/[^/]+$", "required": true, @@ -630,12 +630,12 @@ ], "parameters": { "attributename": { - "description": "The name of the attribute to search.", + "description": "Name of the attribute used to filter the search.", "location": "query", "type": "string" }, "attributevalue": { - "description": "The value of the attribute.", + "description": "Value of the attribute used to filter the search.", "location": "query", "type": "string" }, @@ -646,12 +646,12 @@ "type": "string" }, "expand": { - "description": "Set to `true` to get expanded details about each API.", + "description": "Flag that specifies whether to expand the results. Set to `true` to get expanded details about each API.", "location": "query", "type": "boolean" }, "parent": { - "description": "**Required.** The parent organization name in the following form: organizations/organization_ID ", + "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}`", "location": "path", "pattern": "^organizations/[^/]+$", "required": true, @@ -681,7 +681,7 @@ ], "parameters": { "name": { - "description": "**Required.** API product name in the following form: organizations/organization_ID/apiproducts/api_product_name ", + "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`", "location": "path", "pattern": "^organizations/[^/]+/apiproducts/[^/]+$", "required": true, @@ -713,7 +713,7 @@ ], "parameters": { "name": { - "description": "**Required.** API product name in the following form: organizations/organization_ID/apiproducts/api_product_name/attributes/attribute_name ", + "description": "Required. Name of the API product attribute. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}/attributes/{attribute}`", "location": "path", "pattern": "^organizations/[^/]+/apiproducts/[^/]+/attributes/[^/]+$", "required": true, @@ -729,7 +729,7 @@ ] }, "get": { - "description": "Returns the value of an API product attribute.", + "description": "Gets the value of an API product attribute.", "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes/{attributesId}", "httpMethod": "GET", "id": "apigee.organizations.apiproducts.attributes.get", @@ -738,7 +738,7 @@ ], "parameters": { "name": { - "description": "**Required.** API product name in the following form: organizations/organization_ID/apiproducts/api_product_name/attributes/attribute_name ", + "description": "Required. Name of the API product attribute. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}/attributes/{attribute}`", "location": "path", "pattern": "^organizations/[^/]+/apiproducts/[^/]+/attributes/[^/]+$", "required": true, @@ -754,7 +754,7 @@ ] }, "list": { - "description": "Returns a list of all API product attributes.", + "description": "Lists all API product attributes.", "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes", "httpMethod": "GET", "id": "apigee.organizations.apiproducts.attributes.list", @@ -763,7 +763,7 @@ ], "parameters": { "parent": { - "description": "Required. The parent organization name. Must be in the following form: organizations/organization_ID/apiproducts/api_product_name ", + "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`", "location": "path", "pattern": "^organizations/[^/]+/apiproducts/[^/]+$", "required": true, @@ -779,7 +779,7 @@ ] }, "updateApiProductAttribute": { - "description": "Updates the value of an API product attribute. Limitations are: OAuth access tokens and Key Management Service (KMS) entities (apps, developers, and API products) are cached for 180 seconds (current default). Any custom attributes associated with entities also get cached for at least 180 seconds after entity is accessed during runtime. In this case, the `ExpiresIn` element on the OAuthV2 policy won't be able to expire an access token in less than 180 seconds.", + "description": "Updates the value of an API product attribute. **Note**: OAuth access tokens and Key Management Service (KMS) entities (apps, developers, and API products) are cached for 180 seconds (current default). Any custom attributes associated with entities also get cached for at least 180 seconds after entity is accessed during runtime. In this case, the `ExpiresIn` element on the OAuthV2 policy won't be able to expire an access token in less than 180 seconds.", "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes/{attributesId}", "httpMethod": "POST", "id": "apigee.organizations.apiproducts.attributes.updateApiProductAttribute", @@ -788,7 +788,7 @@ ], "parameters": { "name": { - "description": "**Required.** API product name in the following form: organizations/organization_ID/apiproducts/api_product_name ", + "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`", "location": "path", "pattern": "^organizations/[^/]+/apiproducts/[^/]+/attributes/[^/]+$", "required": true, @@ -1253,6 +1253,163 @@ } } }, + "datacollectors": { + "methods": { + "create": { + "description": "Creates a new data collector.", + "flatPath": "v1/organizations/{organizationsId}/datacollectors", + "httpMethod": "POST", + "id": "apigee.organizations.datacollectors.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "dataCollectorId": { + "description": "ID of the data collector. Overrides any ID in the data collector resource. Must begin with `dc_`.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Name of the organization in which to create the data collector in the following format: `organizations/{org}`.", + "location": "path", + "pattern": "^organizations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/datacollectors", + "request": { + "$ref": "GoogleCloudApigeeV1DataCollector" + }, + "response": { + "$ref": "GoogleCloudApigeeV1DataCollector" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a data collector.", + "flatPath": "v1/organizations/{organizationsId}/datacollectors/{datacollectorsId}", + "httpMethod": "DELETE", + "id": "apigee.organizations.datacollectors.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the data collector in the following format: `organizations/{org}/datacollectors/{data_collector_id}`.", + "location": "path", + "pattern": "^organizations/[^/]+/datacollectors/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a data collector.", + "flatPath": "v1/organizations/{organizationsId}/datacollectors/{datacollectorsId}", + "httpMethod": "GET", + "id": "apigee.organizations.datacollectors.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the data collector in the following format: `organizations/{org}/datacollectors/{data_collector_id}`.", + "location": "path", + "pattern": "^organizations/[^/]+/datacollectors/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudApigeeV1DataCollector" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all data collectors.", + "flatPath": "v1/organizations/{organizationsId}/datacollectors", + "httpMethod": "GET", + "id": "apigee.organizations.datacollectors.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Maximum number of data collectors to return. The page size defaults to 25.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Page token, returned from a previous ListDataCollectors call, that you can use to retrieve the next page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Name of the organization for which to list data collectors in the following format: `organizations/{org}`.", + "location": "path", + "pattern": "^organizations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/datacollectors", + "response": { + "$ref": "GoogleCloudApigeeV1ListDataCollectorsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a data collector.", + "flatPath": "v1/organizations/{organizationsId}/datacollectors/{datacollectorsId}", + "httpMethod": "PATCH", + "id": "apigee.organizations.datacollectors.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the data collector in the following format: `organizations/{org}/datacollectors/{data_collector_id}`.", + "location": "path", + "pattern": "^organizations/[^/]+/datacollectors/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "List of fields to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudApigeeV1DataCollector" + }, + "response": { + "$ref": "GoogleCloudApigeeV1DataCollector" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "deployments": { "methods": { "list": { @@ -1409,6 +1566,11 @@ "parent" ], "parameters": { + "app": { + "description": "Optional. List only Developers that are associated with the app. Note that start_key, count are not applicable for this filter criteria.", + "location": "query", + "type": "string" + }, "count": { "description": "Optional. Number of developers to return in the API call. Use with the `startKey` parameter to provide more targeted filtering. The limit is 1000.", "format": "int64", @@ -3548,7 +3710,7 @@ ], "parameters": { "_password": { - "description": "The password for the private key file, if it exists.", + "description": "DEPRECATED: For improved security, send the password in the body instead of using this query param. To send it in the body, use a multipart/form-data part with name \"password\". The password for the private key file, if it exists.", "location": "query", "type": "string" }, @@ -4703,6 +4865,272 @@ } } }, + "hostQueries": { + "methods": { + "create": { + "description": "Submit a query at host level to be processed in the background. If the submission of the query succeeds, the API returns a 201 status and an ID that refer to the query. In addition to the HTTP status 201, the `state` of \"enqueued\" means that the request succeeded.", + "flatPath": "v1/organizations/{organizationsId}/hostQueries", + "httpMethod": "POST", + "id": "apigee.organizations.hostQueries.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource name. Must be of the form `organizations/{org}`.", + "location": "path", + "pattern": "^organizations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/hostQueries", + "request": { + "$ref": "GoogleCloudApigeeV1Query" + }, + "response": { + "$ref": "GoogleCloudApigeeV1AsyncQuery" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Get status of a query submitted at host level. If the query is still in progress, the `state` is set to \"running\" After the query has completed successfully, `state` is set to \"completed\"", + "flatPath": "v1/organizations/{organizationsId}/hostQueries/{hostQueriesId}", + "httpMethod": "GET", + "id": "apigee.organizations.hostQueries.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the asynchronous query to get. Must be of the form `organizations/{org}/queries/{queryId}`.", + "location": "path", + "pattern": "^organizations/[^/]+/hostQueries/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudApigeeV1AsyncQuery" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getResult": { + "description": "After the query is completed, use this API to retrieve the results. If the request succeeds, and there is a non-zero result set, the result is downloaded to the client as a zipped JSON file. The name of the downloaded file will be: OfflineQueryResult-.zip Example: `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip`", + "flatPath": "v1/organizations/{organizationsId}/hostQueries/{hostQueriesId}/result", + "httpMethod": "GET", + "id": "apigee.organizations.hostQueries.getResult", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the asynchronous query result to get. Must be of the form `organizations/{org}/queries/{queryId}/result`.", + "location": "path", + "pattern": "^organizations/[^/]+/hostQueries/[^/]+/result$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleApiHttpBody" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getResultView": { + "description": "", + "flatPath": "v1/organizations/{organizationsId}/hostQueries/{hostQueriesId}/resultView", + "httpMethod": "GET", + "id": "apigee.organizations.hostQueries.getResultView", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the asynchronous query result view to get. Must be of the form `organizations/{org}/queries/{queryId}/resultView`.", + "location": "path", + "pattern": "^organizations/[^/]+/hostQueries/[^/]+/resultView$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudApigeeV1AsyncQueryResultView" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Return a list of Asynchronous Queries at host level.", + "flatPath": "v1/organizations/{organizationsId}/hostQueries", + "httpMethod": "GET", + "id": "apigee.organizations.hostQueries.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "dataset": { + "description": "Filter response list by dataset. Example: `api`, `mint`", + "location": "query", + "type": "string" + }, + "envgroupHostname": { + "description": "Required. Filter response list by hostname.", + "location": "query", + "type": "string" + }, + "from": { + "description": "Filter response list by returning asynchronous queries that created after this date time. Time must be in ISO date-time format like '2011-12-03T10:15:30Z'.", + "location": "query", + "type": "string" + }, + "inclQueriesWithoutReport": { + "description": "Flag to include asynchronous queries that don't have a report denifition.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource name. Must be of the form `organizations/{org}`.", + "location": "path", + "pattern": "^organizations/[^/]+$", + "required": true, + "type": "string" + }, + "status": { + "description": "Filter response list by asynchronous query status.", + "location": "query", + "type": "string" + }, + "submittedBy": { + "description": "Filter response list by user who submitted queries.", + "location": "query", + "type": "string" + }, + "to": { + "description": "Filter response list by returning asynchronous queries that created before this date time. Time must be in ISO date-time format like '2011-12-03T10:16:30Z'.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/hostQueries", + "response": { + "$ref": "GoogleCloudApigeeV1ListAsyncQueriesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "hostStats": { + "methods": { + "get": { + "description": "Retrieve metrics grouped by dimensions in host level. The types of metrics you can retrieve include traffic, message counts, API call latency, response size, and cache hits and counts. Dimensions let you view metrics in meaningful groups. The stats api does accept dimensions as path params. The dimensions are optional in which case the metrics are computed on the entire data for the given timerange.", + "flatPath": "v1/organizations/{organizationsId}/hostStats/{hostStatsId}", + "httpMethod": "GET", + "id": "apigee.organizations.hostStats.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "accuracy": { + "description": "Legacy field: not used anymore.", + "location": "query", + "type": "string" + }, + "envgroupHostname": { + "description": "Required. The hostname for which the interactive query will be executed.", + "location": "query", + "type": "string" + }, + "filter": { + "description": "Enables drill-down on specific dimension values.", + "location": "query", + "type": "string" + }, + "limit": { + "description": "This parameter is used to limit the number of result items. Default and the max value is 14400.", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The resource name for which the interactive query will be executed. Must be of the form `organizations/{organization_id}/stats/{dimensions}`. Dimensions let you view metrics in meaningful groupings. E.g. apiproxy, target_host. The value of dimensions should be comma separated list as shown below `organizations/{org}/stats/apiproxy,request_verb`", + "location": "path", + "pattern": "^organizations/[^/]+/hostStats/.*$", + "required": true, + "type": "string" + }, + "offset": { + "description": "Use offset with limit to enable pagination of results. For example, to display results 11-20, set limit to '10' and offset to '10'.", + "location": "query", + "type": "string" + }, + "realtime": { + "description": "Legacy field: not used anymore.", + "location": "query", + "type": "boolean" + }, + "select": { + "description": "The select parameter contains a comma separated list of metrics. E.g. sum(message_count),sum(error_count)", + "location": "query", + "type": "string" + }, + "sort": { + "description": "This parameter specifies if the sort order should be ascending or descending Supported values are DESC and ASC.", + "location": "query", + "type": "string" + }, + "sortby": { + "description": "Comma separated list of columns to sort the final result.", + "location": "query", + "type": "string" + }, + "timeRange": { + "description": "Time interval for the interactive query. Time range is specified as start~end E.g. 04/15/2017 00:00~05/15/2017 23:59", + "location": "query", + "type": "string" + }, + "timeUnit": { + "description": "A value of second, minute, hour, day, week, month. Time Unit specifies the granularity of metrics returned.", + "location": "query", + "type": "string" + }, + "topk": { + "description": "Take 'top k' results from results, for example, to return the top 5 results 'topk=5'.", + "location": "query", + "type": "string" + }, + "tsAscending": { + "description": "Lists timestamps in ascending order if set to true. Recommend setting this value to true if you are using sortby with sort=DESC.", + "location": "query", + "type": "boolean" + }, + "tzo": { + "description": "This parameters contains the timezone offset value.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudApigeeV1Stats" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "instances": { "methods": { "create": { @@ -4743,7 +5171,7 @@ ], "parameters": { "name": { - "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instance/{instance}`.", + "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`.", "location": "path", "pattern": "^organizations/[^/]+/instances/[^/]+$", "required": true, @@ -4910,56 +5338,113 @@ "httpMethod": "GET", "id": "apigee.organizations.instances.attachments.get", "parameterOrder": [ - "name" + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the attachment. Use the following structure in your request: `organizations/{org}/instances/{instance}/attachments/{attachment}`", + "location": "path", + "pattern": "^organizations/[^/]+/instances/[^/]+/attachments/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudApigeeV1InstanceAttachment" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all attachments to an instance. **Note:** Not supported for Apigee hybrid.", + "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/attachments", + "httpMethod": "GET", + "id": "apigee.organizations.instances.attachments.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Maximum number of instance attachments to return. Defaults to 25.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Page token, returned by a previous ListInstanceAttachments call, that you can use to retrieve the next page of content.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}/instances/{instance}`", + "location": "path", + "pattern": "^organizations/[^/]+/instances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/attachments", + "response": { + "$ref": "GoogleCloudApigeeV1ListInstanceAttachmentsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "canaryevaluations": { + "methods": { + "create": { + "description": "Creates a new canary evaluation for an organization.", + "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/canaryevaluations", + "httpMethod": "POST", + "id": "apigee.organizations.instances.canaryevaluations.create", + "parameterOrder": [ + "parent" ], "parameters": { - "name": { - "description": "Required. Name of the attachment. Use the following structure in your request: `organizations/{org}/instances/{instance}/attachments/{attachment}`", + "parent": { + "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}/instances/{instance}`.", "location": "path", - "pattern": "^organizations/[^/]+/instances/[^/]+/attachments/[^/]+$", + "pattern": "^organizations/[^/]+/instances/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+name}", + "path": "v1/{+parent}/canaryevaluations", + "request": { + "$ref": "GoogleCloudApigeeV1CanaryEvaluation" + }, "response": { - "$ref": "GoogleCloudApigeeV1InstanceAttachment" + "$ref": "GoogleLongrunningOperation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "list": { - "description": "Lists all attachments to an instance. **Note:** Not supported for Apigee hybrid.", - "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/attachments", + "get": { + "description": "Gets a CanaryEvaluation for an organization.", + "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/canaryevaluations/{canaryevaluationsId}", "httpMethod": "GET", - "id": "apigee.organizations.instances.attachments.list", + "id": "apigee.organizations.instances.canaryevaluations.get", "parameterOrder": [ - "parent" + "name" ], "parameters": { - "pageSize": { - "description": "Maximum number of instance attachments to return. Defaults to 25.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Page token, returned by a previous ListInstanceAttachments call, that you can use to retrieve the next page of content.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}/instances/{instance}`", + "name": { + "description": "Required. Name of the CanaryEvaluation. Use the following structure in your request: `organizations/{org}/instances/*/canaryevaluations/{evaluation}`", "location": "path", - "pattern": "^organizations/[^/]+/instances/[^/]+$", + "pattern": "^organizations/[^/]+/instances/[^/]+/canaryevaluations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/attachments", + "path": "v1/{+name}", "response": { - "$ref": "GoogleCloudApigeeV1ListInstanceAttachmentsResponse" + "$ref": "GoogleCloudApigeeV1CanaryEvaluation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -5096,6 +5581,105 @@ } } }, + "optimizedHostStats": { + "methods": { + "get": { + "description": "This api is similar to GetHostStats except that the response is less verbose.", + "flatPath": "v1/organizations/{organizationsId}/optimizedHostStats/{optimizedHostStatsId}", + "httpMethod": "GET", + "id": "apigee.organizations.optimizedHostStats.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "accuracy": { + "description": "Legacy field: not used anymore.", + "location": "query", + "type": "string" + }, + "envgroupHostname": { + "description": "Required. The hostname for which the interactive query will be executed.", + "location": "query", + "type": "string" + }, + "filter": { + "description": "Enables drill-down on specific dimension values.", + "location": "query", + "type": "string" + }, + "limit": { + "description": "This parameter is used to limit the number of result items. Default and the max value is 14400.", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The resource name for which the interactive query will be executed. Must be of the form `organizations/{organization_id}/stats/{dimensions}`. Dimensions let you view metrics in meaningful groupings. E.g. apiproxy, target_host. The value of dimensions should be comma separated list as shown below `organizations/{org}/stats/apiproxy,request_verb`", + "location": "path", + "pattern": "^organizations/[^/]+/optimizedHostStats/.*$", + "required": true, + "type": "string" + }, + "offset": { + "description": "Use offset with limit to enable pagination of results. For example, to display results 11-20, set limit to '10' and offset to '10'.", + "location": "query", + "type": "string" + }, + "realtime": { + "description": "Legacy field: not used anymore.", + "location": "query", + "type": "boolean" + }, + "select": { + "description": "Required. The select parameter contains a comma separated list of metrics. E.g. sum(message_count),sum(error_count)", + "location": "query", + "type": "string" + }, + "sort": { + "description": "This parameter specifies if the sort order should be ascending or descending Supported values are DESC and ASC.", + "location": "query", + "type": "string" + }, + "sortby": { + "description": "Comma separated list of columns to sort the final result.", + "location": "query", + "type": "string" + }, + "timeRange": { + "description": "Required. Time interval for the interactive query. Time range is specified as start~end. E.g 04/15/2017 00:00~05/15/2017 23:59.", + "location": "query", + "type": "string" + }, + "timeUnit": { + "description": "A value of second, minute, hour, day, week, month. Time Unit specifies the granularity of metrics returned.", + "location": "query", + "type": "string" + }, + "topk": { + "description": "Take 'top k' results from results, for example, to return the top 5 results 'topk=5'.", + "location": "query", + "type": "string" + }, + "tsAscending": { + "description": "Lists timestamps in ascending order if set to true. Recommend setting this value to true if you are using sortby with sort=DESC.", + "location": "query", + "type": "boolean" + }, + "tzo": { + "description": "This parameters contains the timezone offset value.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudApigeeV1OptimizedStats" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "reports": { "methods": { "create": { @@ -5691,7 +6275,7 @@ } } }, - "revision": "20201015", + "revision": "20201117", "rootUrl": "https://apigee.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -5889,18 +6473,17 @@ "id": "GoogleCloudApigeeV1ApiProduct", "properties": { "apiResources": { - "description": "Comma-separated list of API resources to be bundled in the API Product. By default, the resource paths are mapped from the `proxy.pathsuffix` variable. The proxy path suffix is defined as the URI fragment following the ProxyEndpoint base path. For example, if the `apiResources` element is defined to be `/forecastrss` and the base path defined for the API proxy is `/weather`, then only requests to `/weather/forecastrss` are permitted by the API product. You can select a specific path, or you can select all subpaths with the following wildcard: - /**: Indicates that all sub-URIs are included. - /* : Indicates that only URIs one level down are included. By default, / supports the same resources as /** as well as the base path defined by the API proxy. For example, if the base path of the API proxy is `/v1/weatherapikey`, then the API product supports requests to `/v1/weatherapikey` and to any sub-URIs, such as `/v1/weatherapikey/forecastrss`, `/v1/weatherapikey/region/CA`, and so on. For more information, see: - Manage API products - Managing a transaction recording policy using the API", "items": { "type": "string" }, "type": "array" }, "approvalType": { - "description": "Specifies how API keys are approved to access the APIs defined by the API product. If set to `manual`, the consumer key is generated and returned in \"pending\" state. In this case, the API keys won't work until they have been explicitly approved. If set to `auto`, the consumer key is generated and returned in \"approved\" state and can be used immediately. *NOTE:* Typically, `auto` is used to provide access to free or trial API products that provide limited quota or capabilities.", + "description": "Flag that specifies how API keys are approved to access the APIs defined by the API product. If set to `manual`, the consumer key is generated and returned in \"pending\" state. In this case, the API keys won't work until they have been explicitly approved. If set to `auto`, the consumer key is generated and returned in \"approved\" state and can be used immediately. **Note:** Typically, `auto` is used to provide access to free or trial API products that provide limited quota or capabilities.", "type": "string" }, "attributes": { - "description": "Array of attributes that may be used to extend the default API product profile with customer-specific metadata. You can specify a maximum of 18 attributes. Use this property to specify the access level of the API product as either `public`, `private`, or `internal`. Only products marked `public` are available to developers in the Apigee developer portal. For example, you can set a product to `internal` while it is in development and then change access to `public` when it is ready to release on the portal. API products marked as `private` do not appear on the portal but can be accessed by external developers. For monetization, you can use the attributes field to: - Specify transaction success criteria - Specify custom attributes on which you base rate plan charges.", + "description": "Array of attributes that may be used to extend the default API product profile with customer-specific metadata. You can specify a maximum of 18 attributes. Use this property to specify the access level of the API product as either `public`, `private`, or `internal`. Only products marked `public` are available to developers in the Apigee developer portal. For example, you can set a product to `internal` while it is in development and then change access to `public` when it is ready to release on the portal. API products marked as `private` do not appear on the portal, but can be accessed by external developers.", "items": { "$ref": "GoogleCloudApigeeV1Attribute" }, @@ -5912,15 +6495,15 @@ "type": "string" }, "description": { - "description": "An overview of the API product. Include key information about the API product that is not captured by other fields.", + "description": "Description of the API product. Include key information about the API product that is not captured by other fields. Comma-separated list of API resources to be bundled in the API product. By default, the resource paths are mapped from the `proxy.pathsuffix` variable. The proxy path suffix is defined as the URI fragment following the ProxyEndpoint base path. For example, if the `apiResources` element is defined to be `/forecastrss` and the base path defined for the API proxy is `/weather`, then only requests to `/weather/forecastrss` are permitted by the API product. You can select a specific path, or you can select all subpaths with the following wildcard: - `/**`: Indicates that all sub-URIs are included. - `/*` : Indicates that only URIs one level down are included. By default, / supports the same resources as /** as well as the base path defined by the API proxy. For example, if the base path of the API proxy is `/v1/weatherapikey`, then the API product supports requests to `/v1/weatherapikey` and to any sub-URIs, such as `/v1/weatherapikey/forecastrss`, `/v1/weatherapikey/region/CA`, and so on. For more information, see Managing API products.", "type": "string" }, "displayName": { - "description": "The name to be displayed in the UI or developer portal to developers registering for API access.", + "description": "Name displayed in the UI or developer portal to developers registering for API access.", "type": "string" }, "environments": { - "description": "A comma-separated list of environment names to which the API product is bound. Requests to environments that are not listed are rejected. By specifying one or more environments, you can bind the resources listed in the API product to a specific environment, preventing developers from accessing those resources through API proxies deployed in another environment. This setting is used, for example, to prevent resources associated with API proxies in 'prod' from being accessed by API proxies deployed in 'test'.", + "description": "Comma-separated list of environment names to which the API product is bound. Requests to environments that are not listed are rejected. By specifying one or more environments, you can bind the resources listed in the API product to a specific environment, preventing developers from accessing those resources through API proxies deployed in another environment. This setting is used, for example, to prevent resources associated with API proxies in `prod` from being accessed by API proxies deployed in `test`.", "items": { "type": "string" }, @@ -5932,34 +6515,34 @@ "type": "string" }, "name": { - "description": "The internal name of the API Product. Characters you can use in the name are restricted to: A-Z0-9._\\-$ %. *NOTE:* The internal name cannot be edited when updating the API product.", + "description": "Internal name of the API product. Characters you can use in the name are restricted to: `A-Z0-9._\\-$ %`. **Note:** The internal name cannot be edited when updating the API product.", "type": "string" }, "operationGroup": { "$ref": "GoogleCloudApigeeV1OperationGroup", - "description": "The operation_group enables api product creators to group Apigee proxies or remote services with resources, method types and quotas. The resource refers to the resource URI(excluding the base path). With this grouping, API product creator is able to finetune and give precise control over which REST methods have access to which resources, and how many such calls can be made (via Quota). Note that api_resources cannot be specified at both the API product level as well as within the operation_group. If configured that way, the call will fail. Please refer go/api-product-with-methods for additional details." + "description": "Configuration used to group Apigee proxies or remote services with resources, method types, and quotas. The resource refers to the resource URI (excluding the base path). With this grouping, the API product creator is able to fine-tune and give precise control over which REST methods have access to specific resources and how many calls can be made (using the `quota` setting). **Note:** The `api_resources` setting cannot be specified for both the API product and operation group; otherwise the call will fail." }, "proxies": { - "description": "A comma-separated list of API proxy names to which this API product is bound. By specifying API proxies, you can associate resources in the API product with specific API proxies, preventing developers from accessing those resources through other API proxies. Edge rejects requests to API proxies that are not listed. *NOTE:* The API proxy names must already exist in the specified environment as they will be validated upon creation.", + "description": "Comma-separated list of API proxy names to which this API product is bound. By specifying API proxies, you can associate resources in the API product with specific API proxies, preventing developers from accessing those resources through other API proxies. Apigee rejects requests to API proxies that are not listed. **Note:** The API proxy names must already exist in the specified environment as they will be validated upon creation.", "items": { "type": "string" }, "type": "array" }, "quota": { - "description": "The number of request messages permitted per app by this API product for the specified `quotaInterval` and `quotaTimeUnit`. For example, a `quota` of 50, for a `quotaInterval` of 12 and a `quotaTimeUnit` of hours means 50 requests are allowed every 12 hours.", + "description": "Number of request messages permitted per app by this API product for the specified `quotaInterval` and `quotaTimeUnit`. For example, a `quota` of 50, for a `quotaInterval` of 12 and a `quotaTimeUnit` of hours means 50 requests are allowed every 12 hours.", "type": "string" }, "quotaInterval": { - "description": "The time interval over which the number of request messages is calculated.", + "description": "Time interval over which the number of request messages is calculated.", "type": "string" }, "quotaTimeUnit": { - "description": "The time unit defined for the `quotaInterval`. Valid values include minute, hour, day, or month.", + "description": "Time unit defined for the `quotaInterval`. Valid values include `minute`, `hour`, `day`, or `month`.", "type": "string" }, "scopes": { - "description": "A comma-separated list of OAuth scopes that are validated at runtime. Edge validates that the scopes in any access token presented match the scopes defined in the OAuth policy assoicated with the API product.", + "description": "Comma-separated list of OAuth scopes that are validated at runtime. Apigee validates that the scopes in any access token presented match the scopes defined in the OAuth policy associated with the API product.", "items": { "type": "string" }, @@ -6243,6 +6826,10 @@ "description": "Creation time of the query.", "type": "string" }, + "envgroupHostname": { + "description": "Hostname is available only when query is executed at host level.", + "type": "string" + }, "error": { "description": "Error is set when query fails.", "type": "string" @@ -6277,7 +6864,7 @@ "type": "string" }, "self": { - "description": "Self link of the query. Example: `/organizations/myorg/environments/myenv/queries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd`", + "description": "Self link of the query. Example: `/organizations/myorg/environments/myenv/queries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd` or following format if query is running at host level: `/organizations/myorg/hostQueries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd`", "type": "string" }, "state": { @@ -6299,7 +6886,37 @@ "type": "string" }, "self": { - "description": "Self link of the query results. Example: `/organizations/myorg/environments/myenv/queries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd/result`", + "description": "Self link of the query results. Example: `/organizations/myorg/environments/myenv/queries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd/result` or following format if query is running at host level: `/organizations/myorg/hostQueries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd/result`", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudApigeeV1AsyncQueryResultView": { + "id": "GoogleCloudApigeeV1AsyncQueryResultView", + "properties": { + "code": { + "description": "Error code when there is a failure.", + "format": "int32", + "type": "integer" + }, + "error": { + "description": "Error message when there is a failure.", + "type": "string" + }, + "metadata": { + "$ref": "GoogleCloudApigeeV1QueryMetadata", + "description": "Metadata contains information like metrics, dimenstions etc of the AsyncQuery." + }, + "rows": { + "description": "Rows of query result. Each row is a JSON object. Example: {sum(message_count): 1, developer_app: \"(not set)\",…}", + "items": { + "type": "any" + }, + "type": "array" + }, + "state": { + "description": "State of retrieving ResultView.", "type": "string" } }, @@ -6333,6 +6950,97 @@ }, "type": "object" }, + "GoogleCloudApigeeV1CanaryEvaluation": { + "description": "CanaryEvaluation represents the canary analysis between two versions of the runtime that is serving requests.", + "id": "GoogleCloudApigeeV1CanaryEvaluation", + "properties": { + "control": { + "description": "Required. The stable version that is serving requests.", + "type": "string" + }, + "createTime": { + "description": "Output only. Create time of the canary evaluation.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "endTime": { + "description": "Required. End time for the evaluation's analysis.", + "format": "google-datetime", + "type": "string" + }, + "metricLabels": { + "$ref": "GoogleCloudApigeeV1CanaryEvaluationMetricLabels", + "description": "Required. Labels used to filter the metrics used for a canary evaluation." + }, + "name": { + "description": "Output only. Name of the canary evalution.", + "readOnly": true, + "type": "string" + }, + "startTime": { + "description": "Required. Start time for the canary evaluation's analysis.", + "format": "google-datetime", + "type": "string" + }, + "state": { + "description": "Output only. The current state of the canary evaluation.", + "enum": [ + "STATE_UNSPECIFIED", + "RUNNING", + "SUCCEEDED" + ], + "enumDescriptions": [ + "No state has been specified.", + "The canary evaluation is still in progress.", + "The canary evaluation has finished." + ], + "readOnly": true, + "type": "string" + }, + "treatment": { + "description": "Required. The newer version that is serving requests.", + "type": "string" + }, + "verdict": { + "description": "Output only. The resulting verdict of the canary evaluations: NONE, PASS, or FAIL.", + "enum": [ + "VERDICT_UNSPECIFIED", + "NONE", + "FAIL", + "PASS" + ], + "enumDescriptions": [ + "Verdict is not available yet.", + "No verdict reached.", + "Evaluation is not good.", + "Evaluation is good." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudApigeeV1CanaryEvaluationMetricLabels": { + "description": "Labels that can be used to filter Apigee metrics.", + "id": "GoogleCloudApigeeV1CanaryEvaluationMetricLabels", + "properties": { + "env": { + "description": "The environment ID associated with the metrics.", + "type": "string" + }, + "instance_id": { + "description": "Required. The instance ID associated with the metrics. In Apigee Hybrid, the value is configured during installation.", + "type": "string" + }, + "location": { + "description": "Required. The location associated with the metrics.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudApigeeV1CertInfo": { "description": "An X.509 certificate as defined in RFC 5280.", "id": "GoogleCloudApigeeV1CertInfo", @@ -6616,6 +7324,53 @@ }, "type": "object" }, + "GoogleCloudApigeeV1DataCollector": { + "description": "Data collector configuration.", + "id": "GoogleCloudApigeeV1DataCollector", + "properties": { + "createdAt": { + "description": "Output only. The time at which the data collector was created in milliseconds since the epoch.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "A description of the data collector.", + "type": "string" + }, + "lastModifiedAt": { + "description": "Output only. The time at which the Data Collector was last updated in milliseconds since the epoch.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "ID of the data collector. Must begin with `dc_`.", + "type": "string" + }, + "type": { + "description": "Immutable. The type of data this data collector will collect.", + "enum": [ + "TYPE_UNSPECIFIED", + "INTEGER", + "FLOAT", + "STRING", + "BOOLEAN", + "DATETIME" + ], + "enumDescriptions": [ + "For future compatibility.", + "For integer values.", + "For float values.", + "For string values.", + "For boolean values.", + "For datetime values." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudApigeeV1DataCollectorConfig": { "description": "Data collector and its configuration.", "id": "GoogleCloudApigeeV1DataCollectorConfig", @@ -7771,7 +8526,7 @@ "type": "array" }, "deployedRoutes": { - "description": "The current routes deployed in the ingress routing table. A route which is missing will be shown with no destination environment.", + "description": "The current routes deployed in the ingress routing table. A route which is missing will appear in missing_routes.", "items": { "$ref": "GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute" }, @@ -7983,6 +8738,24 @@ }, "type": "object" }, + "GoogleCloudApigeeV1ListDataCollectorsResponse": { + "description": "Response for ListDataCollectors.", + "id": "GoogleCloudApigeeV1ListDataCollectorsResponse", + "properties": { + "dataCollectors": { + "description": "Data collectors in the specified organization.", + "items": { + "$ref": "GoogleCloudApigeeV1DataCollector" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Page token that you can include in a ListDataCollectors request to retrieve the next page. If omitted, no subsequent pages exist.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudApigeeV1ListDatastoresResponse": { "description": "The response for ListDatastores", "id": "GoogleCloudApigeeV1ListDatastoresResponse", @@ -8253,18 +9026,18 @@ "id": "GoogleCloudApigeeV1OperationConfig", "properties": { "apiSource": { - "description": "Required. api_source represents either a proxy or remote service name for which the resources, methods and quota are associated with.", + "description": "Required. API proxy or remote service name with which the resources, methods, and quota are associated.", "type": "string" }, "attributes": { - "description": "custom attribute associated with the operation.", + "description": "Custom attributes associated with the operation.", "items": { "$ref": "GoogleCloudApigeeV1Attribute" }, "type": "array" }, "operations": { - "description": "operations is the list of resource/methods pair, belonging to proxy/remote service, upon which quota will applied on. Note that currently we allow only a single operation. The call will fail if more than one is provided.", + "description": "List of resource/method pairs for the proxy/remote service, upon which quota will applied. **Note**: Currently, you can specify only a single resource/method pair. The call will fail if more than one resource/method pair is provided.", "items": { "$ref": "GoogleCloudApigeeV1Operation" }, @@ -8272,21 +9045,21 @@ }, "quota": { "$ref": "GoogleCloudApigeeV1Quota", - "description": "Quota parameters to be enforced for the resources, methods, api_source combination. If none specified, quota enforcement will not be done." + "description": "Quota parameters to be enforced for the resources, methods, api_source combination. If none are specified, quota enforcement will not be done." } }, "type": "object" }, "GoogleCloudApigeeV1OperationGroup": { - "description": "The OperationGroup contains a list of configuration details associated with Apigee proxies or Remote services. Remote services are non-Apigee Edge proxies. eg, Istio-Envoy.", + "description": "List of operation configuration details associated with Apigee API proxies or remote services. Remote services are non-Apigee proxies, such as Istio-Envoy.", "id": "GoogleCloudApigeeV1OperationGroup", "properties": { "operationConfigType": { - "description": "Identfies whether the configuration is for Apigee proxy or a remote service. Possible values are \"proxy\" and \"remoteservice\". If none specified, the default is \"proxy\". \"proxy\" is used when Apigee proxies are associated with the API product. \"remoteservice\" is used when non-Apigee proxy like Envoy is used, and is associated with the API product.", + "description": "Flag that specifes whether the configuration is for Apigee API proxy or a remote service. Valid values are `proxy` or `remoteservice`. Defaults to `proxy`. Set to `proxy` when Apigee API proxies are associated with the API product. Set to `remoteservice` when non-Apigee proxies like Istio-Envoy are associated with the API product.", "type": "string" }, "operationConfigs": { - "description": "Required. A list of OperationConfig for either Apigee proxies or other other remote services, that are associated with this API product.", + "description": "Required. List of operation configurations for either Apigee API proxies or other remote services that are associated with this API product.", "items": { "$ref": "GoogleCloudApigeeV1OperationConfig" }, @@ -8454,6 +9227,10 @@ "$ref": "GoogleCloudApigeeV1Properties", "description": "Properties defined in the Apigee organization profile." }, + "runtimeDatabaseEncryptionKeyName": { + "description": "Cloud KMS key name used for encrypting the data that is stored and replicated across runtime instances. Update is not allowed after the organization is created. If not specified, a Google-Managed encryption key will be used. Valid only when [RuntimeType] is CLOUD. For example: \"projects/foo/locations/us/keyRings/bar/cryptoKeys/baz\". **Note:** Not supported for Apigee hybrid.", + "type": "string" + }, "runtimeType": { "description": "Required. Runtime type of the Apigee organization based on the Apigee subscription purchased.", "enum": [ @@ -8644,6 +9421,10 @@ }, "type": "array" }, + "envgroupHostname": { + "description": "Hostname needs to be specified if query intends to run at host level. This field is only allowed when query is submitted by CreateHostAsyncQuery where analytics data will be grouped by organization and hostname.", + "type": "string" + }, "filter": { "description": "Boolean expression that can be used to filter data. Filter expressions can be combined using AND/OR terms and should be fully parenthesized to avoid ambiguity. See Analytics metrics, dimensions, and filters reference https://docs.apigee.com/api-platform/analytics/analytics-reference for more information on the fields available to filter on. For more information on the tokens that you use to build filter expressions, see Filter expression syntax. https://docs.apigee.com/api-platform/analytics/asynch-reports-api#filter-expression-syntax", "type": "string" @@ -8751,15 +9532,15 @@ "id": "GoogleCloudApigeeV1Quota", "properties": { "interval": { - "description": "Required. The time interval over which the number of request messages is calculated.", + "description": "Required. Time interval over which the number of request messages is calculated.", "type": "string" }, "limit": { - "description": "Required. Limit represents the upper bound count allowed for the time interval and time unit specified. Requests exceeding this limit will get rejected.", + "description": "Required. Upper limit allowed for the time interval and time unit specified. Requests exceeding this limit will be rejected.", "type": "string" }, "timeUnit": { - "description": "The time unit defined for the `interval`. Valid values include minute, hour, day, or month. The default value is empty. If limit and interval are valid, the default value is \"hour\".", + "description": "Time unit defined for the `interval`. Valid values include `minute`, `hour`, `day`, or `month`. If `limit` and `interval` are valid, the default value is `hour`; otherwise, the default is null.", "type": "string" } }, @@ -9006,7 +9787,7 @@ "type": "string" }, "envGroupRevision": { - "description": "The env group config revision_id when this rule was added or last updated. This value is set when the rule is created and will only update if the the environment_id changes. It is used to determine if the runtime is up to date with respect to this rule. This field is omitted from the IngressConfig unless the GetDeployedIngressConfig API is called with debug=true.", + "description": "The env group config revision_id when this rule was added or last updated. This value is set when the rule is created and will only update if the the environment_id changes. It is used to determine if the runtime is up to date with respect to this rule. This field is omitted from the IngressConfig unless the GetDeployedIngressConfig API is called with view=FULL.", "format": "int64", "type": "string" }, @@ -9015,11 +9796,11 @@ "type": "string" }, "receiver": { - "description": "The resource name of the proxy revision that is receiving this basepath in the following format: `organizations/{org}/apis/{api}/revisions/{rev}`. This field is omitted from the IngressConfig unless the GetDeployedIngressConfig API is called with debug=true.", + "description": "The resource name of the proxy revision that is receiving this basepath in the following format: `organizations/{org}/apis/{api}/revisions/{rev}`. This field is omitted from the IngressConfig unless the GetDeployedIngressConfig API is called with view=FULL.", "type": "string" }, "updateTime": { - "description": "The unix timestamp when this rule was updated. This is updated whenever env_group_revision is updated. This field is omitted from the IngressConfig unless the GetDeployedIngressConfig API is called with debug=true.", + "description": "The unix timestamp when this rule was updated. This is updated whenever env_group_revision is updated. This field is omitted from the IngressConfig unless the GetDeployedIngressConfig API is called with view=FULL.", "format": "google-datetime", "type": "string" } @@ -9342,6 +10123,13 @@ }, "type": "array" }, + "hosts": { + "description": "This field contains a list of query results grouped by host.", + "items": { + "$ref": "GoogleCloudApigeeV1StatsHostStats" + }, + "type": "array" + }, "metaData": { "$ref": "GoogleCloudApigeeV1Metadata", "description": "This field contains the metadata information." @@ -9373,6 +10161,31 @@ }, "type": "object" }, + "GoogleCloudApigeeV1StatsHostStats": { + "description": "This message type encapsulates the hostname wrapper: \"hosts\": [ { \"metrics\": [ { \"name\": \"sum(message_count)\", \"values\": [ \"2.52056245E8\" ] } ], \"name\": \"example.com\" } ]", + "id": "GoogleCloudApigeeV1StatsHostStats", + "properties": { + "dimensions": { + "description": "This field contains the list of metrics grouped under dimensions.", + "items": { + "$ref": "GoogleCloudApigeeV1DimensionMetric" + }, + "type": "array" + }, + "metrics": { + "description": "In the final response, only one of the following fields will be present based on the dimensions provided. If no dimensions are provided, then only a top level metrics is provided. If dimensions are included, then there will be a top level dimensions field under hostnames which will contain metrics values and the dimension name. Example: \"hosts\": [ { \"dimensions\": [ { \"metrics\": [ { \"name\": \"sum(message_count)\", \"values\": [ \"2.14049521E8\" ] } ], \"name\": \"nit_proxy\" } ], \"name\": \"example.com\" } ] OR \"hosts\": [ { \"metrics\": [ { \"name\": \"sum(message_count)\", \"values\": [ \"2.19026331E8\" ] } ], \"name\": \"example.com\" } ] This field contains the list of metric values.", + "items": { + "$ref": "GoogleCloudApigeeV1Metric" + }, + "type": "array" + }, + "name": { + "description": "This field contains the hostname used in query.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudApigeeV1Subscription": { "description": "Pub/Sub subscription of an environment.", "id": "GoogleCloudApigeeV1Subscription", @@ -9388,7 +10201,7 @@ "id": "GoogleCloudApigeeV1SyncAuthorization", "properties": { "etag": { - "description": "Entity tag (ETag) used for optimistic concurrency control as a way to help prevent simultaneous updates from overwriting each other. For example, when you call [getSyncAuthorization](getSyncAuthorization) an ETag is returned in the response. Pass that ETag when calling the [setSyncAuthorization](setSyncAuthorization) to ensure that you are updating the correct version. If you don't pass the ETag in the call to `setSyncAuthorization`, then the existing authorization is overwritten indiscriminately. **Note**: We strongly recommend that you use the ETag in the read-modify-write cycle to avoid race conditions.", + "description": "Entity tag (ETag) used for optimistic concurrency control as a way to help prevent simultaneous updates from overwriting each other. For example, when you call [getSyncAuthorization](organizations/getSyncAuthorization) an ETag is returned in the response. Pass that ETag when calling the [setSyncAuthorization](organizations/setSyncAuthorization) to ensure that you are updating the correct version. If you don't pass the ETag in the call to `setSyncAuthorization`, then the existing authorization is overwritten indiscriminately. **Note**: We strongly recommend that you use the ETag in the read-modify-write cycle to avoid race conditions.", "format": "byte", "type": "string" }, diff --git a/apigee/v1/apigee-gen.go b/apigee/v1/apigee-gen.go index f4edde917c9..be04040f1df 100644 --- a/apigee/v1/apigee-gen.go +++ b/apigee/v1/apigee-gen.go @@ -168,13 +168,17 @@ func NewOrganizationsService(s *Service) *OrganizationsService { rs.Apiproducts = NewOrganizationsApiproductsService(s) rs.Apis = NewOrganizationsApisService(s) rs.Apps = NewOrganizationsAppsService(s) + rs.Datacollectors = NewOrganizationsDatacollectorsService(s) rs.Deployments = NewOrganizationsDeploymentsService(s) rs.Developers = NewOrganizationsDevelopersService(s) rs.Envgroups = NewOrganizationsEnvgroupsService(s) rs.Environments = NewOrganizationsEnvironmentsService(s) + rs.HostQueries = NewOrganizationsHostQueriesService(s) + rs.HostStats = NewOrganizationsHostStatsService(s) rs.Instances = NewOrganizationsInstancesService(s) rs.Keyvaluemaps = NewOrganizationsKeyvaluemapsService(s) rs.Operations = NewOrganizationsOperationsService(s) + rs.OptimizedHostStats = NewOrganizationsOptimizedHostStatsService(s) rs.Reports = NewOrganizationsReportsService(s) rs.Sharedflows = NewOrganizationsSharedflowsService(s) rs.Sites = NewOrganizationsSitesService(s) @@ -192,6 +196,8 @@ type OrganizationsService struct { Apps *OrganizationsAppsService + Datacollectors *OrganizationsDatacollectorsService + Deployments *OrganizationsDeploymentsService Developers *OrganizationsDevelopersService @@ -200,12 +206,18 @@ type OrganizationsService struct { Environments *OrganizationsEnvironmentsService + HostQueries *OrganizationsHostQueriesService + + HostStats *OrganizationsHostStatsService + Instances *OrganizationsInstancesService Keyvaluemaps *OrganizationsKeyvaluemapsService Operations *OrganizationsOperationsService + OptimizedHostStats *OrganizationsOptimizedHostStatsService + Reports *OrganizationsReportsService Sharedflows *OrganizationsSharedflowsService @@ -321,6 +333,15 @@ type OrganizationsAppsService struct { s *Service } +func NewOrganizationsDatacollectorsService(s *Service) *OrganizationsDatacollectorsService { + rs := &OrganizationsDatacollectorsService{s: s} + return rs +} + +type OrganizationsDatacollectorsService struct { + s *Service +} + func NewOrganizationsDeploymentsService(s *Service) *OrganizationsDeploymentsService { rs := &OrganizationsDeploymentsService{s: s} return rs @@ -729,9 +750,28 @@ type OrganizationsEnvironmentsTargetserversService struct { s *Service } +func NewOrganizationsHostQueriesService(s *Service) *OrganizationsHostQueriesService { + rs := &OrganizationsHostQueriesService{s: s} + return rs +} + +type OrganizationsHostQueriesService struct { + s *Service +} + +func NewOrganizationsHostStatsService(s *Service) *OrganizationsHostStatsService { + rs := &OrganizationsHostStatsService{s: s} + return rs +} + +type OrganizationsHostStatsService struct { + s *Service +} + func NewOrganizationsInstancesService(s *Service) *OrganizationsInstancesService { rs := &OrganizationsInstancesService{s: s} rs.Attachments = NewOrganizationsInstancesAttachmentsService(s) + rs.Canaryevaluations = NewOrganizationsInstancesCanaryevaluationsService(s) return rs } @@ -739,6 +779,8 @@ type OrganizationsInstancesService struct { s *Service Attachments *OrganizationsInstancesAttachmentsService + + Canaryevaluations *OrganizationsInstancesCanaryevaluationsService } func NewOrganizationsInstancesAttachmentsService(s *Service) *OrganizationsInstancesAttachmentsService { @@ -750,6 +792,15 @@ type OrganizationsInstancesAttachmentsService struct { s *Service } +func NewOrganizationsInstancesCanaryevaluationsService(s *Service) *OrganizationsInstancesCanaryevaluationsService { + rs := &OrganizationsInstancesCanaryevaluationsService{s: s} + return rs +} + +type OrganizationsInstancesCanaryevaluationsService struct { + s *Service +} + func NewOrganizationsKeyvaluemapsService(s *Service) *OrganizationsKeyvaluemapsService { rs := &OrganizationsKeyvaluemapsService{s: s} return rs @@ -768,6 +819,15 @@ type OrganizationsOperationsService struct { s *Service } +func NewOrganizationsOptimizedHostStatsService(s *Service) *OrganizationsOptimizedHostStatsService { + rs := &OrganizationsOptimizedHostStatsService{s: s} + return rs +} + +type OrganizationsOptimizedHostStatsService struct { + s *Service +} + func NewOrganizationsReportsService(s *Service) *OrganizationsReportsService { rs := &OrganizationsReportsService{s: s} return rs @@ -1201,33 +1261,16 @@ func (s *GoogleCloudApigeeV1ApiCategoryData) MarshalJSON() ([]byte, error) { } type GoogleCloudApigeeV1ApiProduct struct { - // ApiResources: Comma-separated list of API resources to be bundled in - // the API Product. By default, the resource paths are mapped from the - // `proxy.pathsuffix` variable. The proxy path suffix is defined as the - // URI fragment following the ProxyEndpoint base path. For example, if - // the `apiResources` element is defined to be `/forecastrss` and the - // base path defined for the API proxy is `/weather`, then only requests - // to `/weather/forecastrss` are permitted by the API product. You can - // select a specific path, or you can select all subpaths with the - // following wildcard: - /**: Indicates that all sub-URIs are included. - // - /* : Indicates that only URIs one level down are included. By - // default, / supports the same resources as /** as well as the base - // path defined by the API proxy. For example, if the base path of the - // API proxy is `/v1/weatherapikey`, then the API product supports - // requests to `/v1/weatherapikey` and to any sub-URIs, such as - // `/v1/weatherapikey/forecastrss`, `/v1/weatherapikey/region/CA`, and - // so on. For more information, see: - Manage API products - Managing a - // transaction recording policy using the API ApiResources []string `json:"apiResources,omitempty"` - // ApprovalType: Specifies how API keys are approved to access the APIs - // defined by the API product. If set to `manual`, the consumer key is - // generated and returned in "pending" state. In this case, the API keys - // won't work until they have been explicitly approved. If set to - // `auto`, the consumer key is generated and returned in "approved" - // state and can be used immediately. *NOTE:* Typically, `auto` is used - // to provide access to free or trial API products that provide limited - // quota or capabilities. + // ApprovalType: Flag that specifies how API keys are approved to access + // the APIs defined by the API product. If set to `manual`, the consumer + // key is generated and returned in "pending" state. In this case, the + // API keys won't work until they have been explicitly approved. If set + // to `auto`, the consumer key is generated and returned in "approved" + // state and can be used immediately. **Note:** Typically, `auto` is + // used to provide access to free or trial API products that provide + // limited quota or capabilities. ApprovalType string `json:"approvalType,omitempty"` // Attributes: Array of attributes that may be used to extend the @@ -1238,83 +1281,95 @@ type GoogleCloudApigeeV1ApiProduct struct { // in the Apigee developer portal. For example, you can set a product to // `internal` while it is in development and then change access to // `public` when it is ready to release on the portal. API products - // marked as `private` do not appear on the portal but can be accessed - // by external developers. For monetization, you can use the attributes - // field to: - Specify transaction success criteria - Specify custom - // attributes on which you base rate plan charges. + // marked as `private` do not appear on the portal, but can be accessed + // by external developers. Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"` // CreatedAt: Response only. Creation time of this environment as // milliseconds since epoch. CreatedAt int64 `json:"createdAt,omitempty,string"` - // Description: An overview of the API product. Include key information + // Description: Description of the API product. Include key information // about the API product that is not captured by other fields. + // Comma-separated list of API resources to be bundled in the API + // product. By default, the resource paths are mapped from the + // `proxy.pathsuffix` variable. The proxy path suffix is defined as the + // URI fragment following the ProxyEndpoint base path. For example, if + // the `apiResources` element is defined to be `/forecastrss` and the + // base path defined for the API proxy is `/weather`, then only requests + // to `/weather/forecastrss` are permitted by the API product. You can + // select a specific path, or you can select all subpaths with the + // following wildcard: - `/**`: Indicates that all sub-URIs are + // included. - `/*` : Indicates that only URIs one level down are + // included. By default, / supports the same resources as /** as well as + // the base path defined by the API proxy. For example, if the base path + // of the API proxy is `/v1/weatherapikey`, then the API product + // supports requests to `/v1/weatherapikey` and to any sub-URIs, such as + // `/v1/weatherapikey/forecastrss`, `/v1/weatherapikey/region/CA`, and + // so on. For more information, see Managing API products. Description string `json:"description,omitempty"` - // DisplayName: The name to be displayed in the UI or developer portal - // to developers registering for API access. + // DisplayName: Name displayed in the UI or developer portal to + // developers registering for API access. DisplayName string `json:"displayName,omitempty"` - // Environments: A comma-separated list of environment names to which - // the API product is bound. Requests to environments that are not - // listed are rejected. By specifying one or more environments, you can - // bind the resources listed in the API product to a specific - // environment, preventing developers from accessing those resources - // through API proxies deployed in another environment. This setting is - // used, for example, to prevent resources associated with API proxies - // in 'prod' from being accessed by API proxies deployed in 'test'. + // Environments: Comma-separated list of environment names to which the + // API product is bound. Requests to environments that are not listed + // are rejected. By specifying one or more environments, you can bind + // the resources listed in the API product to a specific environment, + // preventing developers from accessing those resources through API + // proxies deployed in another environment. This setting is used, for + // example, to prevent resources associated with API proxies in `prod` + // from being accessed by API proxies deployed in `test`. Environments []string `json:"environments,omitempty"` // LastModifiedAt: Response only. Modified time of this environment as // milliseconds since epoch. LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"` - // Name: The internal name of the API Product. Characters you can use in - // the name are restricted to: A-Z0-9._\-$ %. *NOTE:* The internal name + // Name: Internal name of the API product. Characters you can use in the + // name are restricted to: `A-Z0-9._\-$ %`. **Note:** The internal name // cannot be edited when updating the API product. Name string `json:"name,omitempty"` - // OperationGroup: The operation_group enables api product creators to - // group Apigee proxies or remote services with resources, method types - // and quotas. The resource refers to the resource URI(excluding the - // base path). With this grouping, API product creator is able to - // finetune and give precise control over which REST methods have access - // to which resources, and how many such calls can be made (via Quota). - // Note that api_resources cannot be specified at both the API product - // level as well as within the operation_group. If configured that way, - // the call will fail. Please refer go/api-product-with-methods for - // additional details. + // OperationGroup: Configuration used to group Apigee proxies or remote + // services with resources, method types, and quotas. The resource + // refers to the resource URI (excluding the base path). With this + // grouping, the API product creator is able to fine-tune and give + // precise control over which REST methods have access to specific + // resources and how many calls can be made (using the `quota` setting). + // **Note:** The `api_resources` setting cannot be specified for both + // the API product and operation group; otherwise the call will fail. OperationGroup *GoogleCloudApigeeV1OperationGroup `json:"operationGroup,omitempty"` - // Proxies: A comma-separated list of API proxy names to which this API + // Proxies: Comma-separated list of API proxy names to which this API // product is bound. By specifying API proxies, you can associate // resources in the API product with specific API proxies, preventing // developers from accessing those resources through other API proxies. - // Edge rejects requests to API proxies that are not listed. *NOTE:* The - // API proxy names must already exist in the specified environment as - // they will be validated upon creation. + // Apigee rejects requests to API proxies that are not listed. **Note:** + // The API proxy names must already exist in the specified environment + // as they will be validated upon creation. Proxies []string `json:"proxies,omitempty"` - // Quota: The number of request messages permitted per app by this API + // Quota: Number of request messages permitted per app by this API // product for the specified `quotaInterval` and `quotaTimeUnit`. For // example, a `quota` of 50, for a `quotaInterval` of 12 and a // `quotaTimeUnit` of hours means 50 requests are allowed every 12 // hours. Quota string `json:"quota,omitempty"` - // QuotaInterval: The time interval over which the number of request + // QuotaInterval: Time interval over which the number of request // messages is calculated. QuotaInterval string `json:"quotaInterval,omitempty"` - // QuotaTimeUnit: The time unit defined for the `quotaInterval`. Valid - // values include minute, hour, day, or month. + // QuotaTimeUnit: Time unit defined for the `quotaInterval`. Valid + // values include `minute`, `hour`, `day`, or `month`. QuotaTimeUnit string `json:"quotaTimeUnit,omitempty"` - // Scopes: A comma-separated list of OAuth scopes that are validated at - // runtime. Edge validates that the scopes in any access token presented - // match the scopes defined in the OAuth policy assoicated with the API - // product. + // Scopes: Comma-separated list of OAuth scopes that are validated at + // runtime. Apigee validates that the scopes in any access token + // presented match the scopes defined in the OAuth policy associated + // with the API product. Scopes []string `json:"scopes,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -1652,6 +1707,10 @@ type GoogleCloudApigeeV1AsyncQuery struct { // Created: Creation time of the query. Created string `json:"created,omitempty"` + // EnvgroupHostname: Hostname is available only when query is executed + // at host level. + EnvgroupHostname string `json:"envgroupHostname,omitempty"` + // Error: Error is set when query fails. Error string `json:"error,omitempty"` @@ -1682,7 +1741,10 @@ type GoogleCloudApigeeV1AsyncQuery struct { // Self: Self link of the query. Example: // `/organizations/myorg/environments/myenv/queries/9cfc0d85-0f30-46d6-ae - // 6f-318d0cb961bd` + // 6f-318d0cb961bd` or following format if query is running at host + // level: + // `/organizations/myorg/hostQueries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd + // ` Self string `json:"self,omitempty"` // State: Query state could be "enqueued", "running", "completed", @@ -1725,7 +1787,10 @@ type GoogleCloudApigeeV1AsyncQueryResult struct { // Self: Self link of the query results. Example: // `/organizations/myorg/environments/myenv/queries/9cfc0d85-0f30-46d6-ae - // 6f-318d0cb961bd/result` + // 6f-318d0cb961bd/result` or following format if query is running at + // host level: + // `/organizations/myorg/hostQueries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd + // /result` Self string `json:"self,omitempty"` // ForceSendFields is a list of field names (e.g. "Expires") to @@ -1751,6 +1816,51 @@ func (s *GoogleCloudApigeeV1AsyncQueryResult) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type GoogleCloudApigeeV1AsyncQueryResultView struct { + // Code: Error code when there is a failure. + Code int64 `json:"code,omitempty"` + + // Error: Error message when there is a failure. + Error string `json:"error,omitempty"` + + // Metadata: Metadata contains information like metrics, dimenstions etc + // of the AsyncQuery. + Metadata *GoogleCloudApigeeV1QueryMetadata `json:"metadata,omitempty"` + + // Rows: Rows of query result. Each row is a JSON object. Example: + // {sum(message_count): 1, developer_app: "(not set)",…} + Rows []interface{} `json:"rows,omitempty"` + + // State: State of retrieving ResultView. + State string `json:"state,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudApigeeV1AsyncQueryResultView) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudApigeeV1AsyncQueryResultView + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudApigeeV1Attribute: Key-value pair to store extra metadata. type GoogleCloudApigeeV1Attribute struct { // Name: API key of the attribute. @@ -1817,6 +1927,113 @@ func (s *GoogleCloudApigeeV1Attributes) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudApigeeV1CanaryEvaluation: CanaryEvaluation represents the +// canary analysis between two versions of the runtime that is serving +// requests. +type GoogleCloudApigeeV1CanaryEvaluation struct { + // Control: Required. The stable version that is serving requests. + Control string `json:"control,omitempty"` + + // CreateTime: Output only. Create time of the canary evaluation. + CreateTime string `json:"createTime,omitempty"` + + // EndTime: Required. End time for the evaluation's analysis. + EndTime string `json:"endTime,omitempty"` + + // MetricLabels: Required. Labels used to filter the metrics used for a + // canary evaluation. + MetricLabels *GoogleCloudApigeeV1CanaryEvaluationMetricLabels `json:"metricLabels,omitempty"` + + // Name: Output only. Name of the canary evalution. + Name string `json:"name,omitempty"` + + // StartTime: Required. Start time for the canary evaluation's analysis. + StartTime string `json:"startTime,omitempty"` + + // State: Output only. The current state of the canary evaluation. + // + // Possible values: + // "STATE_UNSPECIFIED" - No state has been specified. + // "RUNNING" - The canary evaluation is still in progress. + // "SUCCEEDED" - The canary evaluation has finished. + State string `json:"state,omitempty"` + + // Treatment: Required. The newer version that is serving requests. + Treatment string `json:"treatment,omitempty"` + + // Verdict: Output only. The resulting verdict of the canary + // evaluations: NONE, PASS, or FAIL. + // + // Possible values: + // "VERDICT_UNSPECIFIED" - Verdict is not available yet. + // "NONE" - No verdict reached. + // "FAIL" - Evaluation is not good. + // "PASS" - Evaluation is good. + Verdict string `json:"verdict,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Control") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Control") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudApigeeV1CanaryEvaluation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudApigeeV1CanaryEvaluation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudApigeeV1CanaryEvaluationMetricLabels: Labels that can be +// used to filter Apigee metrics. +type GoogleCloudApigeeV1CanaryEvaluationMetricLabels struct { + // Env: The environment ID associated with the metrics. + Env string `json:"env,omitempty"` + + // InstanceId: Required. The instance ID associated with the metrics. In + // Apigee Hybrid, the value is configured during installation. + InstanceId string `json:"instance_id,omitempty"` + + // Location: Required. The location associated with the metrics. + Location string `json:"location,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Env") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Env") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudApigeeV1CanaryEvaluationMetricLabels) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudApigeeV1CanaryEvaluationMetricLabels + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudApigeeV1CertInfo: An X.509 certificate as defined in RFC // 5280. type GoogleCloudApigeeV1CertInfo struct { @@ -2161,6 +2378,60 @@ func (s *GoogleCloudApigeeV1CustomReportMetric) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudApigeeV1DataCollector: Data collector configuration. +type GoogleCloudApigeeV1DataCollector struct { + // CreatedAt: Output only. The time at which the data collector was + // created in milliseconds since the epoch. + CreatedAt int64 `json:"createdAt,omitempty,string"` + + // Description: A description of the data collector. + Description string `json:"description,omitempty"` + + // LastModifiedAt: Output only. The time at which the Data Collector was + // last updated in milliseconds since the epoch. + LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"` + + // Name: ID of the data collector. Must begin with `dc_`. + Name string `json:"name,omitempty"` + + // Type: Immutable. The type of data this data collector will collect. + // + // Possible values: + // "TYPE_UNSPECIFIED" - For future compatibility. + // "INTEGER" - For integer values. + // "FLOAT" - For float values. + // "STRING" - For string values. + // "BOOLEAN" - For boolean values. + // "DATETIME" - For datetime values. + Type string `json:"type,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CreatedAt") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreatedAt") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudApigeeV1DataCollector) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudApigeeV1DataCollector + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudApigeeV1DataCollectorConfig: Data collector and its // configuration. type GoogleCloudApigeeV1DataCollectorConfig struct { @@ -3759,8 +4030,7 @@ type GoogleCloudApigeeV1InstanceDeploymentStatus struct { DeployedRevisions []*GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision `json:"deployedRevisions,omitempty"` // DeployedRoutes: The current routes deployed in the ingress routing - // table. A route which is missing will be shown with no destination - // environment. + // table. A route which is missing will appear in missing_routes. DeployedRoutes []*GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute `json:"deployedRoutes,omitempty"` // Instance: ID of the instance reporting the status. @@ -4198,6 +4468,45 @@ func (s *GoogleCloudApigeeV1ListCustomReportsResponse) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudApigeeV1ListDataCollectorsResponse: Response for +// ListDataCollectors. +type GoogleCloudApigeeV1ListDataCollectorsResponse struct { + // DataCollectors: Data collectors in the specified organization. + DataCollectors []*GoogleCloudApigeeV1DataCollector `json:"dataCollectors,omitempty"` + + // NextPageToken: Page token that you can include in a + // ListDataCollectors request to retrieve the next page. If omitted, no + // subsequent pages exist. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DataCollectors") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DataCollectors") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudApigeeV1ListDataCollectorsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudApigeeV1ListDataCollectorsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudApigeeV1ListDatastoresResponse: The response for // ListDatastores type GoogleCloudApigeeV1ListDatastoresResponse struct { @@ -4787,23 +5096,22 @@ func (s *GoogleCloudApigeeV1Operation) MarshalJSON() ([]byte, error) { // resources in a proxy or remote service with the allowed REST methods // and its associated quota enforcement. type GoogleCloudApigeeV1OperationConfig struct { - // ApiSource: Required. api_source represents either a proxy or remote - // service name for which the resources, methods and quota are - // associated with. + // ApiSource: Required. API proxy or remote service name with which the + // resources, methods, and quota are associated. ApiSource string `json:"apiSource,omitempty"` - // Attributes: custom attribute associated with the operation. + // Attributes: Custom attributes associated with the operation. Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"` - // Operations: operations is the list of resource/methods pair, - // belonging to proxy/remote service, upon which quota will applied on. - // Note that currently we allow only a single operation. The call will - // fail if more than one is provided. + // Operations: List of resource/method pairs for the proxy/remote + // service, upon which quota will applied. **Note**: Currently, you can + // specify only a single resource/method pair. The call will fail if + // more than one resource/method pair is provided. Operations []*GoogleCloudApigeeV1Operation `json:"operations,omitempty"` // Quota: Quota parameters to be enforced for the resources, methods, - // api_source combination. If none specified, quota enforcement will not - // be done. + // api_source combination. If none are specified, quota enforcement will + // not be done. Quota *GoogleCloudApigeeV1Quota `json:"quota,omitempty"` // ForceSendFields is a list of field names (e.g. "ApiSource") to @@ -4829,22 +5137,21 @@ func (s *GoogleCloudApigeeV1OperationConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudApigeeV1OperationGroup: The OperationGroup contains a list -// of configuration details associated with Apigee proxies or Remote -// services. Remote services are non-Apigee Edge proxies. eg, -// Istio-Envoy. +// GoogleCloudApigeeV1OperationGroup: List of operation configuration +// details associated with Apigee API proxies or remote services. Remote +// services are non-Apigee proxies, such as Istio-Envoy. type GoogleCloudApigeeV1OperationGroup struct { - // OperationConfigType: Identfies whether the configuration is for - // Apigee proxy or a remote service. Possible values are "proxy" and - // "remoteservice". If none specified, the default is "proxy". "proxy" - // is used when Apigee proxies are associated with the API product. - // "remoteservice" is used when non-Apigee proxy like Envoy is used, and - // is associated with the API product. + // OperationConfigType: Flag that specifes whether the configuration is + // for Apigee API proxy or a remote service. Valid values are `proxy` or + // `remoteservice`. Defaults to `proxy`. Set to `proxy` when Apigee API + // proxies are associated with the API product. Set to `remoteservice` + // when non-Apigee proxies like Istio-Envoy are associated with the API + // product. OperationConfigType string `json:"operationConfigType,omitempty"` - // OperationConfigs: Required. A list of OperationConfig for either - // Apigee proxies or other other remote services, that are associated - // with this API product. + // OperationConfigs: Required. List of operation configurations for + // either Apigee API proxies or other remote services that are + // associated with this API product. OperationConfigs []*GoogleCloudApigeeV1OperationConfig `json:"operationConfigs,omitempty"` // ForceSendFields is a list of field names (e.g. "OperationConfigType") @@ -5084,6 +5391,15 @@ type GoogleCloudApigeeV1Organization struct { // Properties: Properties defined in the Apigee organization profile. Properties *GoogleCloudApigeeV1Properties `json:"properties,omitempty"` + // RuntimeDatabaseEncryptionKeyName: Cloud KMS key name used for + // encrypting the data that is stored and replicated across runtime + // instances. Update is not allowed after the organization is created. + // If not specified, a Google-Managed encryption key will be used. Valid + // only when [RuntimeType] is CLOUD. For example: + // "projects/foo/locations/us/keyRings/bar/cryptoKeys/baz". **Note:** + // Not supported for Apigee hybrid. + RuntimeDatabaseEncryptionKeyName string `json:"runtimeDatabaseEncryptionKeyName,omitempty"` + // RuntimeType: Required. Runtime type of the Apigee organization based // on the Apigee subscription purchased. // @@ -5391,6 +5707,12 @@ type GoogleCloudApigeeV1Query struct { // https://docs.apigee.com/api-platform/analytics/analytics-reference#dimensions Dimensions []string `json:"dimensions,omitempty"` + // EnvgroupHostname: Hostname needs to be specified if query intends to + // run at host level. This field is only allowed when query is submitted + // by CreateHostAsyncQuery where analytics data will be grouped by + // organization and hostname. + EnvgroupHostname string `json:"envgroupHostname,omitempty"` + // Filter: Boolean expression that can be used to filter data. Filter // expressions can be combined using AND/OR terms and should be fully // parenthesized to avoid ambiguity. See Analytics metrics, dimensions, @@ -5549,18 +5871,17 @@ func (s *GoogleCloudApigeeV1QueryMetric) MarshalJSON() ([]byte, error) { // of Quota is optional, setting it prevents requests from exceeding the // provisioned parameters. type GoogleCloudApigeeV1Quota struct { - // Interval: Required. The time interval over which the number of - // request messages is calculated. + // Interval: Required. Time interval over which the number of request + // messages is calculated. Interval string `json:"interval,omitempty"` - // Limit: Required. Limit represents the upper bound count allowed for - // the time interval and time unit specified. Requests exceeding this - // limit will get rejected. + // Limit: Required. Upper limit allowed for the time interval and time + // unit specified. Requests exceeding this limit will be rejected. Limit string `json:"limit,omitempty"` - // TimeUnit: The time unit defined for the `interval`. Valid values - // include minute, hour, day, or month. The default value is empty. If - // limit and interval are valid, the default value is "hour". + // TimeUnit: Time unit defined for the `interval`. Valid values include + // `minute`, `hour`, `day`, or `month`. If `limit` and `interval` are + // valid, the default value is `hour`; otherwise, the default is null. TimeUnit string `json:"timeUnit,omitempty"` // ForceSendFields is a list of field names (e.g. "Interval") to @@ -6013,7 +6334,7 @@ type GoogleCloudApigeeV1RoutingRule struct { // will only update if the the environment_id changes. It is used to // determine if the runtime is up to date with respect to this rule. // This field is omitted from the IngressConfig unless the - // GetDeployedIngressConfig API is called with debug=true. + // GetDeployedIngressConfig API is called with view=FULL. EnvGroupRevision int64 `json:"envGroupRevision,omitempty,string"` // Environment: Name of an environment bound to the environment group in @@ -6024,13 +6345,13 @@ type GoogleCloudApigeeV1RoutingRule struct { // this basepath in the following format: // `organizations/{org}/apis/{api}/revisions/{rev}`. This field is // omitted from the IngressConfig unless the GetDeployedIngressConfig - // API is called with debug=true. + // API is called with view=FULL. Receiver string `json:"receiver,omitempty"` // UpdateTime: The unix timestamp when this rule was updated. This is // updated whenever env_group_revision is updated. This field is omitted // from the IngressConfig unless the GetDeployedIngressConfig API is - // called with debug=true. + // called with view=FULL. UpdateTime string `json:"updateTime,omitempty"` // ForceSendFields is a list of field names (e.g. "Basepath") to @@ -6535,6 +6856,9 @@ type GoogleCloudApigeeV1Stats struct { // environment level. Environments []*GoogleCloudApigeeV1StatsEnvironmentStats `json:"environments,omitempty"` + // Hosts: This field contains a list of query results grouped by host. + Hosts []*GoogleCloudApigeeV1StatsHostStats `json:"hosts,omitempty"` + // MetaData: This field contains the metadata information. MetaData *GoogleCloudApigeeV1Metadata `json:"metaData,omitempty"` @@ -6612,6 +6936,54 @@ func (s *GoogleCloudApigeeV1StatsEnvironmentStats) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudApigeeV1StatsHostStats: This message type encapsulates the +// hostname wrapper: "hosts": [ { "metrics": [ { "name": +// "sum(message_count)", "values": [ "2.52056245E8" ] } ], "name": +// "example.com" } ] +type GoogleCloudApigeeV1StatsHostStats struct { + // Dimensions: This field contains the list of metrics grouped under + // dimensions. + Dimensions []*GoogleCloudApigeeV1DimensionMetric `json:"dimensions,omitempty"` + + // Metrics: In the final response, only one of the following fields will + // be present based on the dimensions provided. If no dimensions are + // provided, then only a top level metrics is provided. If dimensions + // are included, then there will be a top level dimensions field under + // hostnames which will contain metrics values and the dimension name. + // Example: "hosts": [ { "dimensions": [ { "metrics": [ { "name": + // "sum(message_count)", "values": [ "2.14049521E8" ] } ], "name": + // "nit_proxy" } ], "name": "example.com" } ] OR "hosts": [ { "metrics": + // [ { "name": "sum(message_count)", "values": [ "2.19026331E8" ] } ], + // "name": "example.com" } ] This field contains the list of metric + // values. + Metrics []*GoogleCloudApigeeV1Metric `json:"metrics,omitempty"` + + // Name: This field contains the hostname used in query. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Dimensions") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Dimensions") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudApigeeV1StatsHostStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudApigeeV1StatsHostStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudApigeeV1Subscription: Pub/Sub subscription of an // environment. type GoogleCloudApigeeV1Subscription struct { @@ -6651,14 +7023,14 @@ type GoogleCloudApigeeV1SyncAuthorization struct { // Etag: Entity tag (ETag) used for optimistic concurrency control as a // way to help prevent simultaneous updates from overwriting each other. // For example, when you call - // [getSyncAuthorization](getSyncAuthorization) an ETag is returned in - // the response. Pass that ETag when calling the - // [setSyncAuthorization](setSyncAuthorization) to ensure that you are - // updating the correct version. If you don't pass the ETag in the call - // to `setSyncAuthorization`, then the existing authorization is - // overwritten indiscriminately. **Note**: We strongly recommend that - // you use the ETag in the read-modify-write cycle to avoid race - // conditions. + // [getSyncAuthorization](organizations/getSyncAuthorization) an ETag is + // returned in the response. Pass that ETag when calling the + // [setSyncAuthorization](organizations/setSyncAuthorization) to ensure + // that you are updating the correct version. If you don't pass the ETag + // in the call to `setSyncAuthorization`, then the existing + // authorization is overwritten indiscriminately. **Note**: We strongly + // recommend that you use the ETag in the read-modify-write cycle to + // avoid race conditions. Etag string `json:"etag,omitempty"` // Identities: Required. Array of service accounts to grant access to @@ -7846,7 +8218,7 @@ func (c *HybridIssuersListCall) Header() http.Header { func (c *HybridIssuersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7992,7 +8364,7 @@ func (c *OrganizationsCreateCall) Header() http.Header { func (c *OrganizationsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8136,7 +8508,7 @@ func (c *OrganizationsGetCall) Header() http.Header { func (c *OrganizationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8299,7 +8671,7 @@ func (c *OrganizationsGetDeployedIngressConfigCall) Header() http.Header { func (c *OrganizationsGetDeployedIngressConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8459,7 +8831,7 @@ func (c *OrganizationsGetSyncAuthorizationCall) Header() http.Header { func (c *OrganizationsGetSyncAuthorizationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8612,7 +8984,7 @@ func (c *OrganizationsListCall) Header() http.Header { func (c *OrganizationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8759,7 +9131,7 @@ func (c *OrganizationsSetSyncAuthorizationCall) Header() http.Header { func (c *OrganizationsSetSyncAuthorizationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8901,7 +9273,7 @@ func (c *OrganizationsUpdateCall) Header() http.Header { func (c *OrganizationsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9041,7 +9413,7 @@ func (c *OrganizationsAnalyticsDatastoresCreateCall) Header() http.Header { func (c *OrganizationsAnalyticsDatastoresCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9179,7 +9551,7 @@ func (c *OrganizationsAnalyticsDatastoresDeleteCall) Header() http.Header { func (c *OrganizationsAnalyticsDatastoresDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9320,7 +9692,7 @@ func (c *OrganizationsAnalyticsDatastoresGetCall) Header() http.Header { func (c *OrganizationsAnalyticsDatastoresGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9471,7 +9843,7 @@ func (c *OrganizationsAnalyticsDatastoresListCall) Header() http.Header { func (c *OrganizationsAnalyticsDatastoresListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9615,7 +9987,7 @@ func (c *OrganizationsAnalyticsDatastoresTestCall) Header() http.Header { func (c *OrganizationsAnalyticsDatastoresTestCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9757,7 +10129,7 @@ func (c *OrganizationsAnalyticsDatastoresUpdateCall) Header() http.Header { func (c *OrganizationsAnalyticsDatastoresUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9866,8 +10238,8 @@ type OrganizationsApiproductsAttributesCall struct { // **replaces** the current list of attributes with the attributes // specified in the request body. In this way, you can update existing // attributes, add new attributes, or delete existing attributes by -// omitting them from the request body. OAuth access tokens and Key -// Management Service (KMS) entities (apps, developers, and API +// omitting them from the request body. **Note**: OAuth access tokens +// and Key Management Service (KMS) entities (apps, developers, and API // products) are cached for 180 seconds (current default). Any custom // attributes associated with entities also get cached for at least 180 // seconds after entity is accessed during runtime. In this case, the @@ -9907,7 +10279,7 @@ func (c *OrganizationsApiproductsAttributesCall) Header() http.Header { func (c *OrganizationsApiproductsAttributesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9971,7 +10343,7 @@ func (c *OrganizationsApiproductsAttributesCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "Updates or creates API product attributes. This API **replaces** the current list of attributes with the attributes specified in the request body. In this way, you can update existing attributes, add new attributes, or delete existing attributes by omitting them from the request body. OAuth access tokens and Key Management Service (KMS) entities (apps, developers, and API products) are cached for 180 seconds (current default). Any custom attributes associated with entities also get cached for at least 180 seconds after entity is accessed during runtime. In this case, the `ExpiresIn` element on the OAuthV2 policy won't be able to expire an access token in less than 180 seconds.", + // "description": "Updates or creates API product attributes. This API **replaces** the current list of attributes with the attributes specified in the request body. In this way, you can update existing attributes, add new attributes, or delete existing attributes by omitting them from the request body. **Note**: OAuth access tokens and Key Management Service (KMS) entities (apps, developers, and API products) are cached for 180 seconds (current default). Any custom attributes associated with entities also get cached for at least 180 seconds after entity is accessed during runtime. In this case, the `ExpiresIn` element on the OAuthV2 policy won't be able to expire an access token in less than 180 seconds.", // "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes", // "httpMethod": "POST", // "id": "apigee.organizations.apiproducts.attributes", @@ -9980,7 +10352,7 @@ func (c *OrganizationsApiproductsAttributesCall) Do(opts ...googleapi.CallOption // ], // "parameters": { // "name": { - // "description": "**Required.** API product name in the following form: organizations/organization_ID/apiproducts/api_product_name ", + // "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`", // "location": "path", // "pattern": "^organizations/[^/]+/apiproducts/[^/]+$", // "required": true, @@ -10025,12 +10397,12 @@ type OrganizationsApiproductsCreateCall struct { // them to start testing your APIs. After you have authentication and // authorization working against a simple API product, you can iterate // to create finer grained API products, defining different sets of API -// resources for each API product. *WARNING:* - If you don't specify an -// API proxy in the request body, *any* app associated with the product -// can make calls to *any* API in your entire organization. - If you -// don't specify an environment in the request body, the product allows -// access to all environments. For more information, see -// {{what_api_product}} +// resources for each API product. **WARNING:** - If you don't specify +// an API proxy in the request body, *any* app associated with the +// product can make calls to *any* API in your entire organization. - If +// you don't specify an environment in the request body, the product +// allows access to all environments. For more information, see What is +// an API product? func (r *OrganizationsApiproductsService) Create(parent string, googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct) *OrganizationsApiproductsCreateCall { c := &OrganizationsApiproductsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -10065,7 +10437,7 @@ func (c *OrganizationsApiproductsCreateCall) Header() http.Header { func (c *OrganizationsApiproductsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10129,7 +10501,7 @@ func (c *OrganizationsApiproductsCreateCall) Do(opts ...googleapi.CallOption) (* } return ret, nil // { - // "description": "Creates an API product in an organization. You create API products after you have proxied backend services using API proxies. An API product is a collection of API resources combined with quota settings and metadata that you can use to deliver customized and productized API bundles to your developer community. This metadata can include: - Scope - Environments - API proxies - Extensible profile API products enable you repackage APIs on-the-fly, without having to do any additional coding or configuration. Apigee recommends that you start with a simple API product including only required elements. You then provision credentials to apps to enable them to start testing your APIs. After you have authentication and authorization working against a simple API product, you can iterate to create finer grained API products, defining different sets of API resources for each API product. *WARNING:* - If you don't specify an API proxy in the request body, *any* app associated with the product can make calls to *any* API in your entire organization. - If you don't specify an environment in the request body, the product allows access to all environments. For more information, see {{what_api_product}}", + // "description": "Creates an API product in an organization. You create API products after you have proxied backend services using API proxies. An API product is a collection of API resources combined with quota settings and metadata that you can use to deliver customized and productized API bundles to your developer community. This metadata can include: - Scope - Environments - API proxies - Extensible profile API products enable you repackage APIs on-the-fly, without having to do any additional coding or configuration. Apigee recommends that you start with a simple API product including only required elements. You then provision credentials to apps to enable them to start testing your APIs. After you have authentication and authorization working against a simple API product, you can iterate to create finer grained API products, defining different sets of API resources for each API product. **WARNING:** - If you don't specify an API proxy in the request body, *any* app associated with the product can make calls to *any* API in your entire organization. - If you don't specify an environment in the request body, the product allows access to all environments. For more information, see What is an API product?", // "flatPath": "v1/organizations/{organizationsId}/apiproducts", // "httpMethod": "POST", // "id": "apigee.organizations.apiproducts.create", @@ -10138,7 +10510,7 @@ func (c *OrganizationsApiproductsCreateCall) Do(opts ...googleapi.CallOption) (* // ], // "parameters": { // "parent": { - // "description": "Required. The parent organization name under which the API product will be created. Must be in the following form: organizations/organization_ID ", + // "description": "Required. Name of the organization in which the API product will be created. Use the following structure in your request: `organizations/{org}`", // "location": "path", // "pattern": "^organizations/[^/]+$", // "required": true, @@ -10211,7 +10583,7 @@ func (c *OrganizationsApiproductsDeleteCall) Header() http.Header { func (c *OrganizationsApiproductsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10279,7 +10651,7 @@ func (c *OrganizationsApiproductsDeleteCall) Do(opts ...googleapi.CallOption) (* // ], // "parameters": { // "name": { - // "description": "Required. API product name in the following form: organizations/organization_ID/apiproducts/api_product_name ", + // "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`", // "location": "path", // "pattern": "^organizations/[^/]+/apiproducts/[^/]+$", // "required": true, @@ -10356,7 +10728,7 @@ func (c *OrganizationsApiproductsGetCall) Header() http.Header { func (c *OrganizationsApiproductsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10427,7 +10799,7 @@ func (c *OrganizationsApiproductsGetCall) Do(opts ...googleapi.CallOption) (*Goo // ], // "parameters": { // "name": { - // "description": "**Required.** API product name in the following form: organizations/organization_ID/apiproducts/api_product_name ", + // "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`", // "location": "path", // "pattern": "^organizations/[^/]+/apiproducts/[^/]+$", // "required": true, @@ -10467,15 +10839,15 @@ func (r *OrganizationsApiproductsService) List(parent string) *OrganizationsApip return c } -// Attributename sets the optional parameter "attributename": The name -// of the attribute to search. +// Attributename sets the optional parameter "attributename": Name of +// the attribute used to filter the search. func (c *OrganizationsApiproductsListCall) Attributename(attributename string) *OrganizationsApiproductsListCall { c.urlParams_.Set("attributename", attributename) return c } -// Attributevalue sets the optional parameter "attributevalue": The -// value of the attribute. +// Attributevalue sets the optional parameter "attributevalue": Value of +// the attribute used to filter the search. func (c *OrganizationsApiproductsListCall) Attributevalue(attributevalue string) *OrganizationsApiproductsListCall { c.urlParams_.Set("attributevalue", attributevalue) return c @@ -10488,8 +10860,9 @@ func (c *OrganizationsApiproductsListCall) Count(count int64) *OrganizationsApip return c } -// Expand sets the optional parameter "expand": Set to `true` to get -// expanded details about each API. +// Expand sets the optional parameter "expand": Flag that specifies +// whether to expand the results. Set to `true` to get expanded details +// about each API. func (c *OrganizationsApiproductsListCall) Expand(expand bool) *OrganizationsApiproductsListCall { c.urlParams_.Set("expand", fmt.Sprint(expand)) return c @@ -10543,7 +10916,7 @@ func (c *OrganizationsApiproductsListCall) Header() http.Header { func (c *OrganizationsApiproductsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10616,12 +10989,12 @@ func (c *OrganizationsApiproductsListCall) Do(opts ...googleapi.CallOption) (*Go // ], // "parameters": { // "attributename": { - // "description": "The name of the attribute to search.", + // "description": "Name of the attribute used to filter the search.", // "location": "query", // "type": "string" // }, // "attributevalue": { - // "description": "The value of the attribute.", + // "description": "Value of the attribute used to filter the search.", // "location": "query", // "type": "string" // }, @@ -10632,12 +11005,12 @@ func (c *OrganizationsApiproductsListCall) Do(opts ...googleapi.CallOption) (*Go // "type": "string" // }, // "expand": { - // "description": "Set to `true` to get expanded details about each API.", + // "description": "Flag that specifies whether to expand the results. Set to `true` to get expanded details about each API.", // "location": "query", // "type": "boolean" // }, // "parent": { - // "description": "**Required.** The parent organization name in the following form: organizations/organization_ID ", + // "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}`", // "location": "path", // "pattern": "^organizations/[^/]+$", // "required": true, @@ -10712,7 +11085,7 @@ func (c *OrganizationsApiproductsUpdateCall) Header() http.Header { func (c *OrganizationsApiproductsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10785,7 +11158,7 @@ func (c *OrganizationsApiproductsUpdateCall) Do(opts ...googleapi.CallOption) (* // ], // "parameters": { // "name": { - // "description": "**Required.** API product name in the following form: organizations/organization_ID/apiproducts/api_product_name ", + // "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`", // "location": "path", // "pattern": "^organizations/[^/]+/apiproducts/[^/]+$", // "required": true, @@ -10850,7 +11223,7 @@ func (c *OrganizationsApiproductsAttributesDeleteCall) Header() http.Header { func (c *OrganizationsApiproductsAttributesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10918,7 +11291,7 @@ func (c *OrganizationsApiproductsAttributesDeleteCall) Do(opts ...googleapi.Call // ], // "parameters": { // "name": { - // "description": "**Required.** API product name in the following form: organizations/organization_ID/apiproducts/api_product_name/attributes/attribute_name ", + // "description": "Required. Name of the API product attribute. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}/attributes/{attribute}`", // "location": "path", // "pattern": "^organizations/[^/]+/apiproducts/[^/]+/attributes/[^/]+$", // "required": true, @@ -10947,7 +11320,7 @@ type OrganizationsApiproductsAttributesGetCall struct { header_ http.Header } -// Get: Returns the value of an API product attribute. +// Get: Gets the value of an API product attribute. func (r *OrganizationsApiproductsAttributesService) Get(name string) *OrganizationsApiproductsAttributesGetCall { c := &OrganizationsApiproductsAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -10991,7 +11364,7 @@ func (c *OrganizationsApiproductsAttributesGetCall) Header() http.Header { func (c *OrganizationsApiproductsAttributesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11053,7 +11426,7 @@ func (c *OrganizationsApiproductsAttributesGetCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Returns the value of an API product attribute.", + // "description": "Gets the value of an API product attribute.", // "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes/{attributesId}", // "httpMethod": "GET", // "id": "apigee.organizations.apiproducts.attributes.get", @@ -11062,7 +11435,7 @@ func (c *OrganizationsApiproductsAttributesGetCall) Do(opts ...googleapi.CallOpt // ], // "parameters": { // "name": { - // "description": "**Required.** API product name in the following form: organizations/organization_ID/apiproducts/api_product_name/attributes/attribute_name ", + // "description": "Required. Name of the API product attribute. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}/attributes/{attribute}`", // "location": "path", // "pattern": "^organizations/[^/]+/apiproducts/[^/]+/attributes/[^/]+$", // "required": true, @@ -11091,7 +11464,7 @@ type OrganizationsApiproductsAttributesListCall struct { header_ http.Header } -// List: Returns a list of all API product attributes. +// List: Lists all API product attributes. func (r *OrganizationsApiproductsAttributesService) List(parent string) *OrganizationsApiproductsAttributesListCall { c := &OrganizationsApiproductsAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -11135,7 +11508,7 @@ func (c *OrganizationsApiproductsAttributesListCall) Header() http.Header { func (c *OrganizationsApiproductsAttributesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11197,7 +11570,7 @@ func (c *OrganizationsApiproductsAttributesListCall) Do(opts ...googleapi.CallOp } return ret, nil // { - // "description": "Returns a list of all API product attributes.", + // "description": "Lists all API product attributes.", // "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes", // "httpMethod": "GET", // "id": "apigee.organizations.apiproducts.attributes.list", @@ -11206,7 +11579,7 @@ func (c *OrganizationsApiproductsAttributesListCall) Do(opts ...googleapi.CallOp // ], // "parameters": { // "parent": { - // "description": "Required. The parent organization name. Must be in the following form: organizations/organization_ID/apiproducts/api_product_name ", + // "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`", // "location": "path", // "pattern": "^organizations/[^/]+/apiproducts/[^/]+$", // "required": true, @@ -11236,13 +11609,13 @@ type OrganizationsApiproductsAttributesUpdateApiProductAttributeCall struct { } // UpdateApiProductAttribute: Updates the value of an API product -// attribute. Limitations are: OAuth access tokens and Key Management -// Service (KMS) entities (apps, developers, and API products) are -// cached for 180 seconds (current default). Any custom attributes -// associated with entities also get cached for at least 180 seconds -// after entity is accessed during runtime. In this case, the -// `ExpiresIn` element on the OAuthV2 policy won't be able to expire an -// access token in less than 180 seconds. +// attribute. **Note**: OAuth access tokens and Key Management Service +// (KMS) entities (apps, developers, and API products) are cached for +// 180 seconds (current default). Any custom attributes associated with +// entities also get cached for at least 180 seconds after entity is +// accessed during runtime. In this case, the `ExpiresIn` element on the +// OAuthV2 policy won't be able to expire an access token in less than +// 180 seconds. func (r *OrganizationsApiproductsAttributesService) UpdateApiProductAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall { c := &OrganizationsApiproductsAttributesUpdateApiProductAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -11277,7 +11650,7 @@ func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Header func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11341,7 +11714,7 @@ func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Do(opt } return ret, nil // { - // "description": "Updates the value of an API product attribute. Limitations are: OAuth access tokens and Key Management Service (KMS) entities (apps, developers, and API products) are cached for 180 seconds (current default). Any custom attributes associated with entities also get cached for at least 180 seconds after entity is accessed during runtime. In this case, the `ExpiresIn` element on the OAuthV2 policy won't be able to expire an access token in less than 180 seconds.", + // "description": "Updates the value of an API product attribute. **Note**: OAuth access tokens and Key Management Service (KMS) entities (apps, developers, and API products) are cached for 180 seconds (current default). Any custom attributes associated with entities also get cached for at least 180 seconds after entity is accessed during runtime. In this case, the `ExpiresIn` element on the OAuthV2 policy won't be able to expire an access token in less than 180 seconds.", // "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes/{attributesId}", // "httpMethod": "POST", // "id": "apigee.organizations.apiproducts.attributes.updateApiProductAttribute", @@ -11350,7 +11723,7 @@ func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Do(opt // ], // "parameters": { // "name": { - // "description": "**Required.** API product name in the following form: organizations/organization_ID/apiproducts/api_product_name ", + // "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`", // "location": "path", // "pattern": "^organizations/[^/]+/apiproducts/[^/]+/attributes/[^/]+$", // "required": true, @@ -11457,7 +11830,7 @@ func (c *OrganizationsApisCreateCall) Header() http.Header { func (c *OrganizationsApisCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11613,7 +11986,7 @@ func (c *OrganizationsApisDeleteCall) Header() http.Header { func (c *OrganizationsApisDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11754,7 +12127,7 @@ func (c *OrganizationsApisGetCall) Header() http.Header { func (c *OrganizationsApisGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11915,7 +12288,7 @@ func (c *OrganizationsApisListCall) Header() http.Header { func (c *OrganizationsApisListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12071,7 +12444,7 @@ func (c *OrganizationsApisDeploymentsListCall) Header() http.Header { func (c *OrganizationsApisDeploymentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12208,7 +12581,7 @@ func (c *OrganizationsApisKeyvaluemapsCreateCall) Header() http.Header { func (c *OrganizationsApisKeyvaluemapsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12346,7 +12719,7 @@ func (c *OrganizationsApisKeyvaluemapsDeleteCall) Header() http.Header { func (c *OrganizationsApisKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12478,7 +12851,7 @@ func (c *OrganizationsApisRevisionsDeleteCall) Header() http.Header { func (c *OrganizationsApisRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12635,7 +13008,7 @@ func (c *OrganizationsApisRevisionsGetCall) Header() http.Header { func (c *OrganizationsApisRevisionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12788,7 +13161,7 @@ func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Header() http.Hea func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12943,7 +13316,7 @@ func (c *OrganizationsApisRevisionsDeploymentsListCall) Header() http.Header { func (c *OrganizationsApisRevisionsDeploymentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13089,7 +13462,7 @@ func (c *OrganizationsAppsGetCall) Header() http.Header { func (c *OrganizationsAppsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13301,7 +13674,7 @@ func (c *OrganizationsAppsListCall) Header() http.Header { func (c *OrganizationsAppsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13437,236 +13810,74 @@ func (c *OrganizationsAppsListCall) Do(opts ...googleapi.CallOption) (*GoogleClo } -// method id "apigee.organizations.deployments.list": +// method id "apigee.organizations.datacollectors.create": -type OrganizationsDeploymentsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsDatacollectorsCreateCall struct { + s *Service + parent string + googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists all deployments of API proxies or shared flows. -func (r *OrganizationsDeploymentsService) List(parent string) *OrganizationsDeploymentsListCall { - c := &OrganizationsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Create: Creates a new data collector. +func (r *OrganizationsDatacollectorsService) Create(parent string, googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector) *OrganizationsDatacollectorsCreateCall { + c := &OrganizationsDatacollectorsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent + c.googlecloudapigeev1datacollector = googlecloudapigeev1datacollector return c } -// SharedFlows sets the optional parameter "sharedFlows": Flag that -// specifies whether to return shared flow or API proxy deployments. Set -// to `true` to return shared flow deployments; set to `false` to return -// API proxy deployments. Defaults to `false`. -func (c *OrganizationsDeploymentsListCall) SharedFlows(sharedFlows bool) *OrganizationsDeploymentsListCall { - c.urlParams_.Set("sharedFlows", fmt.Sprint(sharedFlows)) +// DataCollectorId sets the optional parameter "dataCollectorId": ID of +// the data collector. Overrides any ID in the data collector resource. +// Must begin with `dc_`. +func (c *OrganizationsDatacollectorsCreateCall) DataCollectorId(dataCollectorId string) *OrganizationsDatacollectorsCreateCall { + c.urlParams_.Set("dataCollectorId", dataCollectorId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsDeploymentsListCall { +func (c *OrganizationsDatacollectorsCreateCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsDeploymentsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsDeploymentsListCall) Context(ctx context.Context) *OrganizationsDeploymentsListCall { +func (c *OrganizationsDatacollectorsCreateCall) Context(ctx context.Context) *OrganizationsDatacollectorsCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsDeploymentsListCall) Header() http.Header { +func (c *OrganizationsDatacollectorsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsDeploymentsListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDatacollectorsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "apigee.organizations.deployments.list" call. -// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *OrganizationsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, &googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - } - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - ret := &GoogleCloudApigeeV1ListDeploymentsResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Lists all deployments of API proxies or shared flows.", - // "flatPath": "v1/organizations/{organizationsId}/deployments", - // "httpMethod": "GET", - // "id": "apigee.organizations.deployments.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. Name of the organization for which to return deployment information in the following format: `organizations/{org}`", - // "location": "path", - // "pattern": "^organizations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "sharedFlows": { - // "description": "Optional. Flag that specifies whether to return shared flow or API proxy deployments. Set to `true` to return shared flow deployments; set to `false` to return API proxy deployments. Defaults to `false`.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "v1/{+parent}/deployments", - // "response": { - // "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigee.organizations.developers.attributes": - -type OrganizationsDevelopersAttributesCall struct { - s *Service - parent string - googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Attributes: Updates developer attributes. This API replaces the -// existing attributes with those specified in the request. Add new -// attributes, and include or exclude any existing attributes that you -// want to retain or remove, respectively. The custom attribute limit is -// 18. **Note**: OAuth access tokens and Key Management Service (KMS) -// entities (apps, developers, and API products) are cached for 180 -// seconds (default). Any custom attributes associated with these -// entities are cached for at least 180 seconds after the entity is -// accessed at runtime. Therefore, an `ExpiresIn` element on the OAuthV2 -// policy won't be able to expire an access token in less than 180 -// seconds. -func (r *OrganizationsDevelopersService) Attributes(parent string, googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes) *OrganizationsDevelopersAttributesCall { - c := &OrganizationsDevelopersAttributesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudapigeev1attributes = googlecloudapigeev1attributes - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *OrganizationsDevelopersAttributesCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *OrganizationsDevelopersAttributesCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *OrganizationsDevelopersAttributesCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *OrganizationsDevelopersAttributesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attributes) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datacollector) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/datacollectors") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -13679,14 +13890,14 @@ func (c *OrganizationsDevelopersAttributesCall) doRequest(alt string) (*http.Res return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.developers.attributes" call. -// Exactly one of *GoogleCloudApigeeV1Attributes or error will be +// Do executes the "apigee.organizations.datacollectors.create" call. +// Exactly one of *GoogleCloudApigeeV1DataCollector or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was +// either *GoogleCloudApigeeV1DataCollector.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsDevelopersAttributesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) { +func (c *OrganizationsDatacollectorsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DataCollector, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -13705,7 +13916,7 @@ func (c *OrganizationsDevelopersAttributesCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Attributes{ + ret := &GoogleCloudApigeeV1DataCollector{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -13717,171 +13928,33 @@ func (c *OrganizationsDevelopersAttributesCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Updates developer attributes. This API replaces the existing attributes with those specified in the request. Add new attributes, and include or exclude any existing attributes that you want to retain or remove, respectively. The custom attribute limit is 18. **Note**: OAuth access tokens and Key Management Service (KMS) entities (apps, developers, and API products) are cached for 180 seconds (default). Any custom attributes associated with these entities are cached for at least 180 seconds after the entity is accessed at runtime. Therefore, an `ExpiresIn` element on the OAuthV2 policy won't be able to expire an access token in less than 180 seconds.", - // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes", + // "description": "Creates a new data collector.", + // "flatPath": "v1/organizations/{organizationsId}/datacollectors", // "httpMethod": "POST", - // "id": "apigee.organizations.developers.attributes", + // "id": "apigee.organizations.datacollectors.create", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "parent": { - // "description": "Required. Email address of the developer for which attributes are being updated in the following format: `organizations/{org}/developers/{developer_email}`", - // "location": "path", - // "pattern": "^organizations/[^/]+/developers/[^/]+$", - // "required": true, + // "dataCollectorId": { + // "description": "ID of the data collector. Overrides any ID in the data collector resource. Must begin with `dc_`.", + // "location": "query", // "type": "string" - // } - // }, - // "path": "v1/{+parent}/attributes", - // "request": { - // "$ref": "GoogleCloudApigeeV1Attributes" - // }, - // "response": { - // "$ref": "GoogleCloudApigeeV1Attributes" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigee.organizations.developers.create": - -type OrganizationsDevelopersCreateCall struct { - s *Service - parent string - googlecloudapigeev1developer *GoogleCloudApigeeV1Developer - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Creates a developer. Once created, the developer can register -// an app and obtain an API key. At creation time, a developer is set as -// `active`. To change the developer status, use the SetDeveloperStatus -// API. -func (r *OrganizationsDevelopersService) Create(parent string, googlecloudapigeev1developer *GoogleCloudApigeeV1Developer) *OrganizationsDevelopersCreateCall { - c := &OrganizationsDevelopersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudapigeev1developer = googlecloudapigeev1developer - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *OrganizationsDevelopersCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersCreateCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *OrganizationsDevelopersCreateCall) Context(ctx context.Context) *OrganizationsDevelopersCreateCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *OrganizationsDevelopersCreateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *OrganizationsDevelopersCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developer) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/developers") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "apigee.organizations.developers.create" call. -// Exactly one of *GoogleCloudApigeeV1Developer or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *OrganizationsDevelopersCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, &googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - } - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - ret := &GoogleCloudApigeeV1Developer{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Creates a developer. Once created, the developer can register an app and obtain an API key. At creation time, a developer is set as `active`. To change the developer status, use the SetDeveloperStatus API.", - // "flatPath": "v1/organizations/{organizationsId}/developers", - // "httpMethod": "POST", - // "id": "apigee.organizations.developers.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { + // }, // "parent": { - // "description": "Required. Name of the Apigee organization in which the developer is created. Use the following structure in your request: `organizations/{org}`.", + // "description": "Required. Name of the organization in which to create the data collector in the following format: `organizations/{org}`.", // "location": "path", // "pattern": "^organizations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/developers", + // "path": "v1/{+parent}/datacollectors", // "request": { - // "$ref": "GoogleCloudApigeeV1Developer" + // "$ref": "GoogleCloudApigeeV1DataCollector" // }, // "response": { - // "$ref": "GoogleCloudApigeeV1Developer" + // "$ref": "GoogleCloudApigeeV1DataCollector" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -13890,9 +13963,9 @@ func (c *OrganizationsDevelopersCreateCall) Do(opts ...googleapi.CallOption) (*G } -// method id "apigee.organizations.developers.delete": +// method id "apigee.organizations.datacollectors.delete": -type OrganizationsDevelopersDeleteCall struct { +type OrganizationsDatacollectorsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -13900,17 +13973,9 @@ type OrganizationsDevelopersDeleteCall struct { header_ http.Header } -// Delete: Deletes a developer. All apps and API keys associated with -// the developer are also removed. **Warning**: This API will -// permanently delete the developer and related artifacts. To avoid -// permanently deleting developers and their artifacts, set the -// developer status to `inactive` using the SetDeveloperStatus API. -// **Note**: The delete operation is asynchronous. The developer app is -// deleted immediately, but its associated resources, such as apps and -// API keys, may take anywhere from a few seconds to a few minutes to be -// deleted. -func (r *OrganizationsDevelopersService) Delete(name string) *OrganizationsDevelopersDeleteCall { - c := &OrganizationsDevelopersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Delete: Deletes a data collector. +func (r *OrganizationsDatacollectorsService) Delete(name string) *OrganizationsDatacollectorsDeleteCall { + c := &OrganizationsDatacollectorsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -13918,7 +13983,7 @@ func (r *OrganizationsDevelopersService) Delete(name string) *OrganizationsDevel // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsDevelopersDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersDeleteCall { +func (c *OrganizationsDatacollectorsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -13926,23 +13991,23 @@ func (c *OrganizationsDevelopersDeleteCall) Fields(s ...googleapi.Field) *Organi // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsDevelopersDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersDeleteCall { +func (c *OrganizationsDatacollectorsDeleteCall) Context(ctx context.Context) *OrganizationsDatacollectorsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsDevelopersDeleteCall) Header() http.Header { +func (c *OrganizationsDatacollectorsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsDevelopersDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDatacollectorsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13963,14 +14028,14 @@ func (c *OrganizationsDevelopersDeleteCall) doRequest(alt string) (*http.Respons return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.developers.delete" call. -// Exactly one of *GoogleCloudApigeeV1Developer or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "apigee.organizations.datacollectors.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsDevelopersDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) { +func (c *OrganizationsDatacollectorsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -13989,7 +14054,7 @@ func (c *OrganizationsDevelopersDeleteCall) Do(opts ...googleapi.CallOption) (*G if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Developer{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -14001,25 +14066,25 @@ func (c *OrganizationsDevelopersDeleteCall) Do(opts ...googleapi.CallOption) (*G } return ret, nil // { - // "description": "Deletes a developer. All apps and API keys associated with the developer are also removed. **Warning**: This API will permanently delete the developer and related artifacts. To avoid permanently deleting developers and their artifacts, set the developer status to `inactive` using the SetDeveloperStatus API. **Note**: The delete operation is asynchronous. The developer app is deleted immediately, but its associated resources, such as apps and API keys, may take anywhere from a few seconds to a few minutes to be deleted.", - // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}", + // "description": "Deletes a data collector.", + // "flatPath": "v1/organizations/{organizationsId}/datacollectors/{datacollectorsId}", // "httpMethod": "DELETE", - // "id": "apigee.organizations.developers.delete", + // "id": "apigee.organizations.datacollectors.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`", + // "description": "Required. Name of the data collector in the following format: `organizations/{org}/datacollectors/{data_collector_id}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/developers/[^/]+$", + // "pattern": "^organizations/[^/]+/datacollectors/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudApigeeV1Developer" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -14028,9 +14093,9 @@ func (c *OrganizationsDevelopersDeleteCall) Do(opts ...googleapi.CallOption) (*G } -// method id "apigee.organizations.developers.get": +// method id "apigee.organizations.datacollectors.get": -type OrganizationsDevelopersGetCall struct { +type OrganizationsDatacollectorsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -14039,26 +14104,17 @@ type OrganizationsDevelopersGetCall struct { header_ http.Header } -// Get: Returns the developer details, including the developer's name, -// email address, apps, and other information. **Note**: The response -// includes only the first 100 developer apps. -func (r *OrganizationsDevelopersService) Get(name string) *OrganizationsDevelopersGetCall { - c := &OrganizationsDevelopersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Get: Gets a data collector. +func (r *OrganizationsDatacollectorsService) Get(name string) *OrganizationsDatacollectorsGetCall { + c := &OrganizationsDatacollectorsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Action sets the optional parameter "action": Status of the developer. -// Valid values are `active` or `inactive`. -func (c *OrganizationsDevelopersGetCall) Action(action string) *OrganizationsDevelopersGetCall { - c.urlParams_.Set("action", action) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsDevelopersGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersGetCall { +func (c *OrganizationsDatacollectorsGetCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -14068,7 +14124,7 @@ func (c *OrganizationsDevelopersGetCall) Fields(s ...googleapi.Field) *Organizat // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OrganizationsDevelopersGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersGetCall { +func (c *OrganizationsDatacollectorsGetCall) IfNoneMatch(entityTag string) *OrganizationsDatacollectorsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -14076,23 +14132,23 @@ func (c *OrganizationsDevelopersGetCall) IfNoneMatch(entityTag string) *Organiza // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsDevelopersGetCall) Context(ctx context.Context) *OrganizationsDevelopersGetCall { +func (c *OrganizationsDatacollectorsGetCall) Context(ctx context.Context) *OrganizationsDatacollectorsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsDevelopersGetCall) Header() http.Header { +func (c *OrganizationsDatacollectorsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsDevelopersGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDatacollectorsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14116,14 +14172,14 @@ func (c *OrganizationsDevelopersGetCall) doRequest(alt string) (*http.Response, return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.developers.get" call. -// Exactly one of *GoogleCloudApigeeV1Developer or error will be +// Do executes the "apigee.organizations.datacollectors.get" call. +// Exactly one of *GoogleCloudApigeeV1DataCollector or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was +// either *GoogleCloudApigeeV1DataCollector.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsDevelopersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) { +func (c *OrganizationsDatacollectorsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DataCollector, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -14142,7 +14198,7 @@ func (c *OrganizationsDevelopersGetCall) Do(opts ...googleapi.CallOption) (*Goog if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Developer{ + ret := &GoogleCloudApigeeV1DataCollector{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -14154,30 +14210,25 @@ func (c *OrganizationsDevelopersGetCall) Do(opts ...googleapi.CallOption) (*Goog } return ret, nil // { - // "description": "Returns the developer details, including the developer's name, email address, apps, and other information. **Note**: The response includes only the first 100 developer apps.", - // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}", + // "description": "Gets a data collector.", + // "flatPath": "v1/organizations/{organizationsId}/datacollectors/{datacollectorsId}", // "httpMethod": "GET", - // "id": "apigee.organizations.developers.get", + // "id": "apigee.organizations.datacollectors.get", // "parameterOrder": [ // "name" // ], // "parameters": { - // "action": { - // "description": "Status of the developer. Valid values are `active` or `inactive`.", - // "location": "query", - // "type": "string" - // }, // "name": { - // "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`", + // "description": "Required. Name of the data collector in the following format: `organizations/{org}/datacollectors/{data_collector_id}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/developers/[^/]+$", + // "pattern": "^organizations/[^/]+/datacollectors/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudApigeeV1Developer" + // "$ref": "GoogleCloudApigeeV1DataCollector" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -14186,9 +14237,9 @@ func (c *OrganizationsDevelopersGetCall) Do(opts ...googleapi.CallOption) (*Goog } -// method id "apigee.organizations.developers.list": +// method id "apigee.organizations.datacollectors.list": -type OrganizationsDevelopersListCall struct { +type OrganizationsDatacollectorsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -14197,65 +14248,32 @@ type OrganizationsDevelopersListCall struct { header_ http.Header } -// List: Lists all developers in an organization by email address. By -// default, the response does not include company developers. Set the -// `includeCompany` query parameter to `true` to include company -// developers. **Note**: A maximum of 1000 developers are returned in -// the response. You paginate the list of developers returned using the -// `startKey` and `count` query parameters. -func (r *OrganizationsDevelopersService) List(parent string) *OrganizationsDevelopersListCall { - c := &OrganizationsDevelopersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// List: Lists all data collectors. +func (r *OrganizationsDatacollectorsService) List(parent string) *OrganizationsDatacollectorsListCall { + c := &OrganizationsDatacollectorsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Count sets the optional parameter "count": Number of developers to -// return in the API call. Use with the `startKey` parameter to provide -// more targeted filtering. The limit is 1000. -func (c *OrganizationsDevelopersListCall) Count(count int64) *OrganizationsDevelopersListCall { - c.urlParams_.Set("count", fmt.Sprint(count)) - return c -} - -// Expand sets the optional parameter "expand": Specifies whether to -// expand the results. Set to `true` to expand the results. This query -// parameter is not valid if you use the `count` or `startKey` query -// parameters. -func (c *OrganizationsDevelopersListCall) Expand(expand bool) *OrganizationsDevelopersListCall { - c.urlParams_.Set("expand", fmt.Sprint(expand)) - return c -} - -// Ids sets the optional parameter "ids": List of IDs to include, -// separated by commas. -func (c *OrganizationsDevelopersListCall) Ids(ids string) *OrganizationsDevelopersListCall { - c.urlParams_.Set("ids", ids) - return c -} - -// IncludeCompany sets the optional parameter "includeCompany": Flag -// that specifies whether to include company details in the response. -func (c *OrganizationsDevelopersListCall) IncludeCompany(includeCompany bool) *OrganizationsDevelopersListCall { - c.urlParams_.Set("includeCompany", fmt.Sprint(includeCompany)) +// PageSize sets the optional parameter "pageSize": Maximum number of +// data collectors to return. The page size defaults to 25. +func (c *OrganizationsDatacollectorsListCall) PageSize(pageSize int64) *OrganizationsDatacollectorsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// StartKey sets the optional parameter "startKey": **Note**: Must be -// used in conjunction with the `count` parameter. Email address of the -// developer from which to start displaying the list of developers. For -// example, if the an unfiltered list returns: ``` westley@example.com -// fezzik@example.com buttercup@example.com ``` and your `startKey` is -// `fezzik@example.com`, the list returned will be ``` -// fezzik@example.com buttercup@example.com ``` -func (c *OrganizationsDevelopersListCall) StartKey(startKey string) *OrganizationsDevelopersListCall { - c.urlParams_.Set("startKey", startKey) +// PageToken sets the optional parameter "pageToken": Page token, +// returned from a previous ListDataCollectors call, that you can use to +// retrieve the next page. +func (c *OrganizationsDatacollectorsListCall) PageToken(pageToken string) *OrganizationsDatacollectorsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsDevelopersListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersListCall { +func (c *OrganizationsDatacollectorsListCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -14265,7 +14283,7 @@ func (c *OrganizationsDevelopersListCall) Fields(s ...googleapi.Field) *Organiza // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OrganizationsDevelopersListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersListCall { +func (c *OrganizationsDatacollectorsListCall) IfNoneMatch(entityTag string) *OrganizationsDatacollectorsListCall { c.ifNoneMatch_ = entityTag return c } @@ -14273,23 +14291,23 @@ func (c *OrganizationsDevelopersListCall) IfNoneMatch(entityTag string) *Organiz // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsDevelopersListCall) Context(ctx context.Context) *OrganizationsDevelopersListCall { +func (c *OrganizationsDatacollectorsListCall) Context(ctx context.Context) *OrganizationsDatacollectorsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsDevelopersListCall) Header() http.Header { +func (c *OrganizationsDatacollectorsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsDevelopersListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDatacollectorsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14300,7 +14318,7 @@ func (c *OrganizationsDevelopersListCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/developers") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/datacollectors") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -14313,16 +14331,16 @@ func (c *OrganizationsDevelopersListCall) doRequest(alt string) (*http.Response, return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.developers.list" call. -// Exactly one of *GoogleCloudApigeeV1ListOfDevelopersResponse or error -// will be non-nil. Any non-2xx status code is an error. Response +// Do executes the "apigee.organizations.datacollectors.list" call. +// Exactly one of *GoogleCloudApigeeV1ListDataCollectorsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudApigeeV1ListOfDevelopersResponse.ServerResponse.Header or -// (if a response was returned at all) in +// *GoogleCloudApigeeV1ListDataCollectorsResponse.ServerResponse.Header +// or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *OrganizationsDevelopersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListOfDevelopersResponse, error) { +func (c *OrganizationsDatacollectorsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDataCollectorsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -14341,7 +14359,7 @@ func (c *OrganizationsDevelopersListCall) Do(opts ...googleapi.CallOption) (*Goo if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1ListOfDevelopersResponse{ + ret := &GoogleCloudApigeeV1ListDataCollectorsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -14353,51 +14371,36 @@ func (c *OrganizationsDevelopersListCall) Do(opts ...googleapi.CallOption) (*Goo } return ret, nil // { - // "description": "Lists all developers in an organization by email address. By default, the response does not include company developers. Set the `includeCompany` query parameter to `true` to include company developers. **Note**: A maximum of 1000 developers are returned in the response. You paginate the list of developers returned using the `startKey` and `count` query parameters.", - // "flatPath": "v1/organizations/{organizationsId}/developers", + // "description": "Lists all data collectors.", + // "flatPath": "v1/organizations/{organizationsId}/datacollectors", // "httpMethod": "GET", - // "id": "apigee.organizations.developers.list", + // "id": "apigee.organizations.datacollectors.list", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "count": { - // "description": "Optional. Number of developers to return in the API call. Use with the `startKey` parameter to provide more targeted filtering. The limit is 1000.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "expand": { - // "description": "Specifies whether to expand the results. Set to `true` to expand the results. This query parameter is not valid if you use the `count` or `startKey` query parameters.", + // "pageSize": { + // "description": "Maximum number of data collectors to return. The page size defaults to 25.", + // "format": "int32", // "location": "query", - // "type": "boolean" + // "type": "integer" // }, - // "ids": { - // "description": "Optional. List of IDs to include, separated by commas.", + // "pageToken": { + // "description": "Page token, returned from a previous ListDataCollectors call, that you can use to retrieve the next page.", // "location": "query", // "type": "string" // }, - // "includeCompany": { - // "description": "Flag that specifies whether to include company details in the response.", - // "location": "query", - // "type": "boolean" - // }, // "parent": { - // "description": "Required. Name of the Apigee organization. Use the following structure in your request: `organizations/{org}`.", + // "description": "Required. Name of the organization for which to list data collectors in the following format: `organizations/{org}`.", // "location": "path", // "pattern": "^organizations/[^/]+$", // "required": true, // "type": "string" - // }, - // "startKey": { - // "description": "**Note**: Must be used in conjunction with the `count` parameter. Email address of the developer from which to start displaying the list of developers. For example, if the an unfiltered list returns: ``` westley@example.com fezzik@example.com buttercup@example.com ``` and your `startKey` is `fezzik@example.com`, the list returned will be ``` fezzik@example.com buttercup@example.com ```", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+parent}/developers", + // "path": "v1/{+parent}/datacollectors", // "response": { - // "$ref": "GoogleCloudApigeeV1ListOfDevelopersResponse" + // "$ref": "GoogleCloudApigeeV1ListDataCollectorsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -14406,41 +14409,57 @@ func (c *OrganizationsDevelopersListCall) Do(opts ...googleapi.CallOption) (*Goo } -// method id "apigee.organizations.developers.setDeveloperStatus": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *OrganizationsDatacollectorsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListDataCollectorsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type OrganizationsDevelopersSetDeveloperStatusCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "apigee.organizations.datacollectors.patch": + +type OrganizationsDatacollectorsPatchCall struct { + s *Service + name string + googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// SetDeveloperStatus: Sets the status of a developer. Valid values are -// `active` or `inactive`. A developer is `active` by default. If you -// set a developer's status to `inactive`, the API keys assigned to the -// developer apps are no longer valid even though the API keys are set -// to `approved`. Inactive developers can still sign in to the developer -// portal and create apps; however, any new API keys generated during -// app creation won't work. If successful, the API call returns the -// following HTTP status code: `204 No Content` -func (r *OrganizationsDevelopersService) SetDeveloperStatus(name string) *OrganizationsDevelopersSetDeveloperStatusCall { - c := &OrganizationsDevelopersSetDeveloperStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Patch: Updates a data collector. +func (r *OrganizationsDatacollectorsService) Patch(name string, googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector) *OrganizationsDatacollectorsPatchCall { + c := &OrganizationsDatacollectorsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudapigeev1datacollector = googlecloudapigeev1datacollector return c } -// Action sets the optional parameter "action": Status of the developer. -// Valid values are `active` and `inactive`. -func (c *OrganizationsDevelopersSetDeveloperStatusCall) Action(action string) *OrganizationsDevelopersSetDeveloperStatusCall { - c.urlParams_.Set("action", action) +// UpdateMask sets the optional parameter "updateMask": List of fields +// to be updated. +func (c *OrganizationsDatacollectorsPatchCall) UpdateMask(updateMask string) *OrganizationsDatacollectorsPatchCall { + c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsDevelopersSetDeveloperStatusCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSetDeveloperStatusCall { +func (c *OrganizationsDatacollectorsPatchCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -14448,33 +14467,38 @@ func (c *OrganizationsDevelopersSetDeveloperStatusCall) Fields(s ...googleapi.Fi // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsDevelopersSetDeveloperStatusCall) Context(ctx context.Context) *OrganizationsDevelopersSetDeveloperStatusCall { +func (c *OrganizationsDatacollectorsPatchCall) Context(ctx context.Context) *OrganizationsDatacollectorsPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsDevelopersSetDeveloperStatusCall) Header() http.Header { +func (c *OrganizationsDatacollectorsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsDevelopersSetDeveloperStatusCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDatacollectorsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datacollector) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -14485,14 +14509,14 @@ func (c *OrganizationsDevelopersSetDeveloperStatusCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.developers.setDeveloperStatus" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was +// Do executes the "apigee.organizations.datacollectors.patch" call. +// Exactly one of *GoogleCloudApigeeV1DataCollector or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1DataCollector.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsDevelopersSetDeveloperStatusCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *OrganizationsDatacollectorsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DataCollector, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -14511,7 +14535,7 @@ func (c *OrganizationsDevelopersSetDeveloperStatusCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudApigeeV1DataCollector{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -14523,30 +14547,34 @@ func (c *OrganizationsDevelopersSetDeveloperStatusCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Sets the status of a developer. Valid values are `active` or `inactive`. A developer is `active` by default. If you set a developer's status to `inactive`, the API keys assigned to the developer apps are no longer valid even though the API keys are set to `approved`. Inactive developers can still sign in to the developer portal and create apps; however, any new API keys generated during app creation won't work. If successful, the API call returns the following HTTP status code: `204 No Content`", - // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}", - // "httpMethod": "POST", - // "id": "apigee.organizations.developers.setDeveloperStatus", + // "description": "Updates a data collector.", + // "flatPath": "v1/organizations/{organizationsId}/datacollectors/{datacollectorsId}", + // "httpMethod": "PATCH", + // "id": "apigee.organizations.datacollectors.patch", // "parameterOrder": [ // "name" // ], // "parameters": { - // "action": { - // "description": "Status of the developer. Valid values are `active` and `inactive`.", - // "location": "query", - // "type": "string" - // }, // "name": { - // "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`", + // "description": "Required. Name of the data collector in the following format: `organizations/{org}/datacollectors/{data_collector_id}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/developers/[^/]+$", + // "pattern": "^organizations/[^/]+/datacollectors/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "List of fields to be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudApigeeV1DataCollector" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudApigeeV1DataCollector" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -14555,95 +14583,104 @@ func (c *OrganizationsDevelopersSetDeveloperStatusCall) Do(opts ...googleapi.Cal } -// method id "apigee.organizations.developers.update": +// method id "apigee.organizations.deployments.list": -type OrganizationsDevelopersUpdateCall struct { - s *Service - name string - googlecloudapigeev1developer *GoogleCloudApigeeV1Developer - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsDeploymentsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Update: Updates a developer. This API replaces the existing developer -// details with those specified in the request. Include or exclude any -// existing details that you want to retain or delete, respectively. The -// custom attribute limit is 18. **Note**: OAuth access tokens and Key -// Management Service (KMS) entities (apps, developers, and API -// products) are cached for 180 seconds (current default). Any custom -// attributes associated with these entities are cached for at least 180 -// seconds after the entity is accessed at runtime. Therefore, an -// `ExpiresIn` element on the OAuthV2 policy won't be able to expire an -// access token in less than 180 seconds. -func (r *OrganizationsDevelopersService) Update(name string, googlecloudapigeev1developer *GoogleCloudApigeeV1Developer) *OrganizationsDevelopersUpdateCall { - c := &OrganizationsDevelopersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudapigeev1developer = googlecloudapigeev1developer +// List: Lists all deployments of API proxies or shared flows. +func (r *OrganizationsDeploymentsService) List(parent string) *OrganizationsDeploymentsListCall { + c := &OrganizationsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// SharedFlows sets the optional parameter "sharedFlows": Flag that +// specifies whether to return shared flow or API proxy deployments. Set +// to `true` to return shared flow deployments; set to `false` to return +// API proxy deployments. Defaults to `false`. +func (c *OrganizationsDeploymentsListCall) SharedFlows(sharedFlows bool) *OrganizationsDeploymentsListCall { + c.urlParams_.Set("sharedFlows", fmt.Sprint(sharedFlows)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsDevelopersUpdateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersUpdateCall { +func (c *OrganizationsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsDeploymentsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsDeploymentsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsDevelopersUpdateCall) Context(ctx context.Context) *OrganizationsDevelopersUpdateCall { +func (c *OrganizationsDeploymentsListCall) Context(ctx context.Context) *OrganizationsDeploymentsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsDevelopersUpdateCall) Header() http.Header { +func (c *OrganizationsDeploymentsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsDevelopersUpdateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDeploymentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developer) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.developers.update" call. -// Exactly one of *GoogleCloudApigeeV1Developer or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *OrganizationsDevelopersUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) { +// Do executes the "apigee.organizations.deployments.list" call. +// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -14662,7 +14699,7 @@ func (c *OrganizationsDevelopersUpdateCall) Do(opts ...googleapi.CallOption) (*G if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Developer{ + ret := &GoogleCloudApigeeV1ListDeploymentsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -14674,28 +14711,30 @@ func (c *OrganizationsDevelopersUpdateCall) Do(opts ...googleapi.CallOption) (*G } return ret, nil // { - // "description": "Updates a developer. This API replaces the existing developer details with those specified in the request. Include or exclude any existing details that you want to retain or delete, respectively. The custom attribute limit is 18. **Note**: OAuth access tokens and Key Management Service (KMS) entities (apps, developers, and API products) are cached for 180 seconds (current default). Any custom attributes associated with these entities are cached for at least 180 seconds after the entity is accessed at runtime. Therefore, an `ExpiresIn` element on the OAuthV2 policy won't be able to expire an access token in less than 180 seconds.", - // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}", - // "httpMethod": "PUT", - // "id": "apigee.organizations.developers.update", + // "description": "Lists all deployments of API proxies or shared flows.", + // "flatPath": "v1/organizations/{organizationsId}/deployments", + // "httpMethod": "GET", + // "id": "apigee.organizations.deployments.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`", + // "parent": { + // "description": "Required. Name of the organization for which to return deployment information in the following format: `organizations/{org}`", // "location": "path", - // "pattern": "^organizations/[^/]+/developers/[^/]+$", + // "pattern": "^organizations/[^/]+$", // "required": true, // "type": "string" + // }, + // "sharedFlows": { + // "description": "Optional. Flag that specifies whether to return shared flow or API proxy deployments. Set to `true` to return shared flow deployments; set to `false` to return API proxy deployments. Defaults to `false`.", + // "location": "query", + // "type": "boolean" // } // }, - // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudApigeeV1Developer" - // }, + // "path": "v1/{+parent}/deployments", // "response": { - // "$ref": "GoogleCloudApigeeV1Developer" + // "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -14704,22 +14743,31 @@ func (c *OrganizationsDevelopersUpdateCall) Do(opts ...googleapi.CallOption) (*G } -// method id "apigee.organizations.developers.apps.attributes": +// method id "apigee.organizations.developers.attributes": -type OrganizationsDevelopersAppsAttributesCall struct { +type OrganizationsDevelopersAttributesCall struct { s *Service - name string + parent string googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Attributes: Updates attributes for a developer app. This API replaces -// the current attributes with those specified in the request. -func (r *OrganizationsDevelopersAppsService) Attributes(name string, googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes) *OrganizationsDevelopersAppsAttributesCall { - c := &OrganizationsDevelopersAppsAttributesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// Attributes: Updates developer attributes. This API replaces the +// existing attributes with those specified in the request. Add new +// attributes, and include or exclude any existing attributes that you +// want to retain or remove, respectively. The custom attribute limit is +// 18. **Note**: OAuth access tokens and Key Management Service (KMS) +// entities (apps, developers, and API products) are cached for 180 +// seconds (default). Any custom attributes associated with these +// entities are cached for at least 180 seconds after the entity is +// accessed at runtime. Therefore, an `ExpiresIn` element on the OAuthV2 +// policy won't be able to expire an access token in less than 180 +// seconds. +func (r *OrganizationsDevelopersService) Attributes(parent string, googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes) *OrganizationsDevelopersAttributesCall { + c := &OrganizationsDevelopersAttributesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent c.googlecloudapigeev1attributes = googlecloudapigeev1attributes return c } @@ -14727,7 +14775,7 @@ func (r *OrganizationsDevelopersAppsService) Attributes(name string, googlecloud // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsDevelopersAppsAttributesCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesCall { +func (c *OrganizationsDevelopersAttributesCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -14735,23 +14783,23 @@ func (c *OrganizationsDevelopersAppsAttributesCall) Fields(s ...googleapi.Field) // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsDevelopersAppsAttributesCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesCall { +func (c *OrganizationsDevelopersAttributesCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsDevelopersAppsAttributesCall) Header() http.Header { +func (c *OrganizationsDevelopersAttributesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsDevelopersAppsAttributesCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDevelopersAttributesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14764,7 +14812,7 @@ func (c *OrganizationsDevelopersAppsAttributesCall) doRequest(alt string) (*http reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/attributes") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -14772,19 +14820,19 @@ func (c *OrganizationsDevelopersAppsAttributesCall) doRequest(alt string) (*http } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.developers.apps.attributes" call. +// Do executes the "apigee.organizations.developers.attributes" call. // Exactly one of *GoogleCloudApigeeV1Attributes or error will be // non-nil. Any non-2xx status code is an error. Response headers are in // either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a // response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsDevelopersAppsAttributesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) { +func (c *OrganizationsDevelopersAttributesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -14815,23 +14863,23 @@ func (c *OrganizationsDevelopersAppsAttributesCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Updates attributes for a developer app. This API replaces the current attributes with those specified in the request.", - // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes", + // "description": "Updates developer attributes. This API replaces the existing attributes with those specified in the request. Add new attributes, and include or exclude any existing attributes that you want to retain or remove, respectively. The custom attribute limit is 18. **Note**: OAuth access tokens and Key Management Service (KMS) entities (apps, developers, and API products) are cached for 180 seconds (default). Any custom attributes associated with these entities are cached for at least 180 seconds after the entity is accessed at runtime. Therefore, an `ExpiresIn` element on the OAuthV2 policy won't be able to expire an access token in less than 180 seconds.", + // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes", // "httpMethod": "POST", - // "id": "apigee.organizations.developers.apps.attributes", + // "id": "apigee.organizations.developers.attributes", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`", + // "parent": { + // "description": "Required. Email address of the developer for which attributes are being updated in the following format: `organizations/{org}/developers/{developer_email}`", // "location": "path", - // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$", + // "pattern": "^organizations/[^/]+/developers/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}/attributes", + // "path": "v1/{+parent}/attributes", // "request": { // "$ref": "GoogleCloudApigeeV1Attributes" // }, @@ -14845,35 +14893,32 @@ func (c *OrganizationsDevelopersAppsAttributesCall) Do(opts ...googleapi.CallOpt } -// method id "apigee.organizations.developers.apps.create": +// method id "apigee.organizations.developers.create": -type OrganizationsDevelopersAppsCreateCall struct { - s *Service - parent string - googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsDevelopersCreateCall struct { + s *Service + parent string + googlecloudapigeev1developer *GoogleCloudApigeeV1Developer + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates an app associated with a developer. This API -// associates the developer app with the specified API product and -// auto-generates an API key for the app to use in calls to API proxies -// inside that API product. The `name` is the unique ID of the app that -// you can use in API calls. The `DisplayName` (set as an attribute) -// appears in the UI. If you don't set the `DisplayName` attribute, the -// `name` appears in the UI. -func (r *OrganizationsDevelopersAppsService) Create(parent string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsCreateCall { - c := &OrganizationsDevelopersAppsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Create: Creates a developer. Once created, the developer can register +// an app and obtain an API key. At creation time, a developer is set as +// `active`. To change the developer status, use the SetDeveloperStatus +// API. +func (r *OrganizationsDevelopersService) Create(parent string, googlecloudapigeev1developer *GoogleCloudApigeeV1Developer) *OrganizationsDevelopersCreateCall { + c := &OrganizationsDevelopersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp + c.googlecloudapigeev1developer = googlecloudapigeev1developer return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsDevelopersAppsCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsCreateCall { +func (c *OrganizationsDevelopersCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -14881,36 +14926,36 @@ func (c *OrganizationsDevelopersAppsCreateCall) Fields(s ...googleapi.Field) *Or // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsDevelopersAppsCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsCreateCall { +func (c *OrganizationsDevelopersCreateCall) Context(ctx context.Context) *OrganizationsDevelopersCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsDevelopersAppsCreateCall) Header() http.Header { +func (c *OrganizationsDevelopersCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsDevelopersAppsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDevelopersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developer) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/developers") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -14923,14 +14968,14 @@ func (c *OrganizationsDevelopersAppsCreateCall) doRequest(alt string) (*http.Res return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.developers.apps.create" call. -// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be +// Do executes the "apigee.organizations.developers.create" call. +// Exactly one of *GoogleCloudApigeeV1Developer or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was +// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsDevelopersAppsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) { +func (c *OrganizationsDevelopersCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -14949,7 +14994,7 @@ func (c *OrganizationsDevelopersAppsCreateCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1DeveloperApp{ + ret := &GoogleCloudApigeeV1Developer{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -14961,28 +15006,28 @@ func (c *OrganizationsDevelopersAppsCreateCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Creates an app associated with a developer. This API associates the developer app with the specified API product and auto-generates an API key for the app to use in calls to API proxies inside that API product. The `name` is the unique ID of the app that you can use in API calls. The `DisplayName` (set as an attribute) appears in the UI. If you don't set the `DisplayName` attribute, the `name` appears in the UI.", - // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps", + // "description": "Creates a developer. Once created, the developer can register an app and obtain an API key. At creation time, a developer is set as `active`. To change the developer status, use the SetDeveloperStatus API.", + // "flatPath": "v1/organizations/{organizationsId}/developers", // "httpMethod": "POST", - // "id": "apigee.organizations.developers.apps.create", + // "id": "apigee.organizations.developers.create", // "parameterOrder": [ // "parent" // ], // "parameters": { // "parent": { - // "description": "Required. Name of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`", + // "description": "Required. Name of the Apigee organization in which the developer is created. Use the following structure in your request: `organizations/{org}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/developers/[^/]+$", + // "pattern": "^organizations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/apps", + // "path": "v1/{+parent}/developers", // "request": { - // "$ref": "GoogleCloudApigeeV1DeveloperApp" + // "$ref": "GoogleCloudApigeeV1Developer" // }, // "response": { - // "$ref": "GoogleCloudApigeeV1DeveloperApp" + // "$ref": "GoogleCloudApigeeV1Developer" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -14991,9 +15036,9 @@ func (c *OrganizationsDevelopersAppsCreateCall) Do(opts ...googleapi.CallOption) } -// method id "apigee.organizations.developers.apps.delete": +// method id "apigee.organizations.developers.delete": -type OrganizationsDevelopersAppsDeleteCall struct { +type OrganizationsDevelopersDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -15001,20 +15046,25 @@ type OrganizationsDevelopersAppsDeleteCall struct { header_ http.Header } -// Delete: Deletes a developer app. **Note**: The delete operation is -// asynchronous. The developer app is deleted immediately, but its -// associated resources, such as app keys or access tokens, may take -// anywhere from a few seconds to a few minutes to be deleted. -func (r *OrganizationsDevelopersAppsService) Delete(name string) *OrganizationsDevelopersAppsDeleteCall { - c := &OrganizationsDevelopersAppsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// Delete: Deletes a developer. All apps and API keys associated with +// the developer are also removed. **Warning**: This API will +// permanently delete the developer and related artifacts. To avoid +// permanently deleting developers and their artifacts, set the +// developer status to `inactive` using the SetDeveloperStatus API. +// **Note**: The delete operation is asynchronous. The developer app is +// deleted immediately, but its associated resources, such as apps and +// API keys, may take anywhere from a few seconds to a few minutes to be +// deleted. +func (r *OrganizationsDevelopersService) Delete(name string) *OrganizationsDevelopersDeleteCall { + c := &OrganizationsDevelopersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsDevelopersAppsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsDeleteCall { +func (c *OrganizationsDevelopersDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -15022,23 +15072,23 @@ func (c *OrganizationsDevelopersAppsDeleteCall) Fields(s ...googleapi.Field) *Or // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsDevelopersAppsDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsDeleteCall { +func (c *OrganizationsDevelopersDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsDevelopersAppsDeleteCall) Header() http.Header { +func (c *OrganizationsDevelopersDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsDevelopersAppsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDevelopersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15059,14 +15109,14 @@ func (c *OrganizationsDevelopersAppsDeleteCall) doRequest(alt string) (*http.Res return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.developers.apps.delete" call. -// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be +// Do executes the "apigee.organizations.developers.delete" call. +// Exactly one of *GoogleCloudApigeeV1Developer or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was +// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsDevelopersAppsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) { +func (c *OrganizationsDevelopersDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -15085,7 +15135,7 @@ func (c *OrganizationsDevelopersAppsDeleteCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1DeveloperApp{ + ret := &GoogleCloudApigeeV1Developer{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -15097,202 +15147,25 @@ func (c *OrganizationsDevelopersAppsDeleteCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Deletes a developer app. **Note**: The delete operation is asynchronous. The developer app is deleted immediately, but its associated resources, such as app keys or access tokens, may take anywhere from a few seconds to a few minutes to be deleted.", - // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}", + // "description": "Deletes a developer. All apps and API keys associated with the developer are also removed. **Warning**: This API will permanently delete the developer and related artifacts. To avoid permanently deleting developers and their artifacts, set the developer status to `inactive` using the SetDeveloperStatus API. **Note**: The delete operation is asynchronous. The developer app is deleted immediately, but its associated resources, such as apps and API keys, may take anywhere from a few seconds to a few minutes to be deleted.", + // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}", // "httpMethod": "DELETE", - // "id": "apigee.organizations.developers.apps.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`", - // "location": "path", - // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleCloudApigeeV1DeveloperApp" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigee.organizations.developers.apps.generateKeyPairOrUpdateDeveloperAppStatus": - -type OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall struct { - s *Service - name string - googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// GenerateKeyPairOrUpdateDeveloperAppStatus: Manages access to a -// developer app by enabling you to: * Approve or revoke a developer app -// * Generate a new consumer key and secret for a developer app To -// approve or revoke a developer app, set the `action` query parameter -// to `approved` or `revoked`, respectively, and the `Content-Type` -// header to `application/octet-stream`. If a developer app is revoked, -// none of its API keys are valid for API calls even though the keys are -// still `approved`. If successful, the API call returns the following -// HTTP status code: `204 No Content` To generate a new consumer key and -// secret for a developer app, pass the new key/secret details. Rather -// than replace an existing key, this API generates a new key. In this -// case, multiple key pairs may be associated with a single developer -// app. Each key pair has an independent status (`approved` or -// `revoked`) and expiration time. Any approved, non-expired key can be -// used in an API call. For example, if you're using API key rotation, -// you can generate new keys with expiration times that overlap keys -// that are going to expire. You might also generate a new consumer -// key/secret if the security of the original key/secret is compromised. -// The `keyExpiresIn` property defines the expiration time for the API -// key in milliseconds. If you don't set this property or set it to -// `-1`, the API key never expires. **Notes**: * When generating a new -// key/secret, this API replaces the existing attributes, notes, and -// callback URLs with those specified in the request. Include or exclude -// any existing information that you want to retain or delete, -// respectively. * To migrate existing consumer keys and secrets to -// hybrid from another system, see the CreateDeveloperAppKey API. -func (r *OrganizationsDevelopersAppsService) GenerateKeyPairOrUpdateDeveloperAppStatus(name string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall { - c := &OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp - return c -} - -// Action sets the optional parameter "action": Action. Valid values are -// `approve` or `revoke`. -func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Action(action string) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall { - c.urlParams_.Set("action", action) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Context(ctx context.Context) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "apigee.organizations.developers.apps.generateKeyPairOrUpdateDeveloperAppStatus" call. -// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, &googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - } - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - ret := &GoogleCloudApigeeV1DeveloperApp{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Manages access to a developer app by enabling you to: * Approve or revoke a developer app * Generate a new consumer key and secret for a developer app To approve or revoke a developer app, set the `action` query parameter to `approved` or `revoked`, respectively, and the `Content-Type` header to `application/octet-stream`. If a developer app is revoked, none of its API keys are valid for API calls even though the keys are still `approved`. If successful, the API call returns the following HTTP status code: `204 No Content` To generate a new consumer key and secret for a developer app, pass the new key/secret details. Rather than replace an existing key, this API generates a new key. In this case, multiple key pairs may be associated with a single developer app. Each key pair has an independent status (`approved` or `revoked`) and expiration time. Any approved, non-expired key can be used in an API call. For example, if you're using API key rotation, you can generate new keys with expiration times that overlap keys that are going to expire. You might also generate a new consumer key/secret if the security of the original key/secret is compromised. The `keyExpiresIn` property defines the expiration time for the API key in milliseconds. If you don't set this property or set it to `-1`, the API key never expires. **Notes**: * When generating a new key/secret, this API replaces the existing attributes, notes, and callback URLs with those specified in the request. Include or exclude any existing information that you want to retain or delete, respectively. * To migrate existing consumer keys and secrets to hybrid from another system, see the CreateDeveloperAppKey API.", - // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}", - // "httpMethod": "POST", - // "id": "apigee.organizations.developers.apps.generateKeyPairOrUpdateDeveloperAppStatus", + // "id": "apigee.organizations.developers.delete", // "parameterOrder": [ // "name" // ], // "parameters": { - // "action": { - // "description": "Action. Valid values are `approve` or `revoke`.", - // "location": "query", - // "type": "string" - // }, // "name": { - // "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`", + // "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`", // "location": "path", - // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$", + // "pattern": "^organizations/[^/]+/developers/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudApigeeV1DeveloperApp" - // }, // "response": { - // "$ref": "GoogleCloudApigeeV1DeveloperApp" + // "$ref": "GoogleCloudApigeeV1Developer" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -15301,9 +15174,9 @@ func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCal } -// method id "apigee.organizations.developers.apps.get": +// method id "apigee.organizations.developers.get": -type OrganizationsDevelopersAppsGetCall struct { +type OrganizationsDevelopersGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -15312,35 +15185,26 @@ type OrganizationsDevelopersAppsGetCall struct { header_ http.Header } -// Get: Returns the details for a developer app. -func (r *OrganizationsDevelopersAppsService) Get(name string) *OrganizationsDevelopersAppsGetCall { - c := &OrganizationsDevelopersAppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Get: Returns the developer details, including the developer's name, +// email address, apps, and other information. **Note**: The response +// includes only the first 100 developer apps. +func (r *OrganizationsDevelopersService) Get(name string) *OrganizationsDevelopersGetCall { + c := &OrganizationsDevelopersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Entity sets the optional parameter "entity": **Note**: Must be used -// in conjunction with the `query` parameter. Set to `apiresources` to -// return the number of API resources that have been approved for access -// by a developer app in the specified Apigee organization. -func (c *OrganizationsDevelopersAppsGetCall) Entity(entity string) *OrganizationsDevelopersAppsGetCall { - c.urlParams_.Set("entity", entity) - return c -} - -// Query sets the optional parameter "query": **Note**: Must be used in -// conjunction with the `entity` parameter. Set to `count` to return the -// number of API resources that have been approved for access by a -// developer app in the specified Apigee organization. -func (c *OrganizationsDevelopersAppsGetCall) Query(query string) *OrganizationsDevelopersAppsGetCall { - c.urlParams_.Set("query", query) +// Action sets the optional parameter "action": Status of the developer. +// Valid values are `active` or `inactive`. +func (c *OrganizationsDevelopersGetCall) Action(action string) *OrganizationsDevelopersGetCall { + c.urlParams_.Set("action", action) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsDevelopersAppsGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsGetCall { +func (c *OrganizationsDevelopersGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -15350,7 +15214,7 @@ func (c *OrganizationsDevelopersAppsGetCall) Fields(s ...googleapi.Field) *Organ // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OrganizationsDevelopersAppsGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsGetCall { +func (c *OrganizationsDevelopersGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersGetCall { c.ifNoneMatch_ = entityTag return c } @@ -15358,23 +15222,23 @@ func (c *OrganizationsDevelopersAppsGetCall) IfNoneMatch(entityTag string) *Orga // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsDevelopersAppsGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsGetCall { +func (c *OrganizationsDevelopersGetCall) Context(ctx context.Context) *OrganizationsDevelopersGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsDevelopersAppsGetCall) Header() http.Header { +func (c *OrganizationsDevelopersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsDevelopersAppsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDevelopersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15398,14 +15262,14 @@ func (c *OrganizationsDevelopersAppsGetCall) doRequest(alt string) (*http.Respon return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.developers.apps.get" call. -// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be +// Do executes the "apigee.organizations.developers.get" call. +// Exactly one of *GoogleCloudApigeeV1Developer or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was +// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsDevelopersAppsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) { +func (c *OrganizationsDevelopersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -15424,7 +15288,7 @@ func (c *OrganizationsDevelopersAppsGetCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1DeveloperApp{ + ret := &GoogleCloudApigeeV1Developer{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -15436,35 +15300,30 @@ func (c *OrganizationsDevelopersAppsGetCall) Do(opts ...googleapi.CallOption) (* } return ret, nil // { - // "description": "Returns the details for a developer app.", - // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}", + // "description": "Returns the developer details, including the developer's name, email address, apps, and other information. **Note**: The response includes only the first 100 developer apps.", + // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}", // "httpMethod": "GET", - // "id": "apigee.organizations.developers.apps.get", + // "id": "apigee.organizations.developers.get", // "parameterOrder": [ // "name" // ], // "parameters": { - // "entity": { - // "description": "**Note**: Must be used in conjunction with the `query` parameter. Set to `apiresources` to return the number of API resources that have been approved for access by a developer app in the specified Apigee organization.", + // "action": { + // "description": "Status of the developer. Valid values are `active` or `inactive`.", // "location": "query", // "type": "string" // }, // "name": { - // "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`", + // "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`", // "location": "path", - // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$", + // "pattern": "^organizations/[^/]+/developers/[^/]+$", // "required": true, // "type": "string" - // }, - // "query": { - // "description": "**Note**: Must be used in conjunction with the `entity` parameter. Set to `count` to return the number of API resources that have been approved for access by a developer app in the specified Apigee organization.", - // "location": "query", - // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudApigeeV1DeveloperApp" + // "$ref": "GoogleCloudApigeeV1Developer" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -15473,9 +15332,9 @@ func (c *OrganizationsDevelopersAppsGetCall) Do(opts ...googleapi.CallOption) (* } -// method id "apigee.organizations.developers.apps.list": +// method id "apigee.organizations.developers.list": -type OrganizationsDevelopersAppsListCall struct { +type OrganizationsDevelopersListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -15484,21 +15343,30 @@ type OrganizationsDevelopersAppsListCall struct { header_ http.Header } -// List: Lists all apps created by a developer in an Apigee -// organization. Optionally, you can request an expanded view of the -// developer apps. A maximum of 100 developer apps are returned per API -// call. You can paginate the list of deveoper apps returned using the +// List: Lists all developers in an organization by email address. By +// default, the response does not include company developers. Set the +// `includeCompany` query parameter to `true` to include company +// developers. **Note**: A maximum of 1000 developers are returned in +// the response. You paginate the list of developers returned using the // `startKey` and `count` query parameters. -func (r *OrganizationsDevelopersAppsService) List(parent string) *OrganizationsDevelopersAppsListCall { - c := &OrganizationsDevelopersAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *OrganizationsDevelopersService) List(parent string) *OrganizationsDevelopersListCall { + c := &OrganizationsDevelopersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Count sets the optional parameter "count": Number of developer apps -// to return in the API call. Use with the `startKey` parameter to -// provide more targeted filtering. The limit is 1000. -func (c *OrganizationsDevelopersAppsListCall) Count(count int64) *OrganizationsDevelopersAppsListCall { +// App sets the optional parameter "app": List only Developers that are +// associated with the app. Note that start_key, count are not +// applicable for this filter criteria. +func (c *OrganizationsDevelopersListCall) App(app string) *OrganizationsDevelopersListCall { + c.urlParams_.Set("app", app) + return c +} + +// Count sets the optional parameter "count": Number of developers to +// return in the API call. Use with the `startKey` parameter to provide +// more targeted filtering. The limit is 1000. +func (c *OrganizationsDevelopersListCall) Count(count int64) *OrganizationsDevelopersListCall { c.urlParams_.Set("count", fmt.Sprint(count)) return c } @@ -15507,27 +15375,33 @@ func (c *OrganizationsDevelopersAppsListCall) Count(count int64) *OrganizationsD // expand the results. Set to `true` to expand the results. This query // parameter is not valid if you use the `count` or `startKey` query // parameters. -func (c *OrganizationsDevelopersAppsListCall) Expand(expand bool) *OrganizationsDevelopersAppsListCall { +func (c *OrganizationsDevelopersListCall) Expand(expand bool) *OrganizationsDevelopersListCall { c.urlParams_.Set("expand", fmt.Sprint(expand)) return c } -// ShallowExpand sets the optional parameter "shallowExpand": Specifies -// whether to expand the results in shallow mode. Set to `true` to -// expand the results in shallow mode. -func (c *OrganizationsDevelopersAppsListCall) ShallowExpand(shallowExpand bool) *OrganizationsDevelopersAppsListCall { - c.urlParams_.Set("shallowExpand", fmt.Sprint(shallowExpand)) +// Ids sets the optional parameter "ids": List of IDs to include, +// separated by commas. +func (c *OrganizationsDevelopersListCall) Ids(ids string) *OrganizationsDevelopersListCall { + c.urlParams_.Set("ids", ids) + return c +} + +// IncludeCompany sets the optional parameter "includeCompany": Flag +// that specifies whether to include company details in the response. +func (c *OrganizationsDevelopersListCall) IncludeCompany(includeCompany bool) *OrganizationsDevelopersListCall { + c.urlParams_.Set("includeCompany", fmt.Sprint(includeCompany)) return c } // StartKey sets the optional parameter "startKey": **Note**: Must be -// used in conjunction with the `count` parameter. Name of the developer -// app from which to start displaying the list of developer apps. For -// example, if you're returning 50 developer apps at a time (using the -// `count` query parameter), you can view developer apps 50-99 by -// entering the name of the 50th developer app. The developer app name -// is case sensitive. -func (c *OrganizationsDevelopersAppsListCall) StartKey(startKey string) *OrganizationsDevelopersAppsListCall { +// used in conjunction with the `count` parameter. Email address of the +// developer from which to start displaying the list of developers. For +// example, if the an unfiltered list returns: ``` westley@example.com +// fezzik@example.com buttercup@example.com ``` and your `startKey` is +// `fezzik@example.com`, the list returned will be ``` +// fezzik@example.com buttercup@example.com ``` +func (c *OrganizationsDevelopersListCall) StartKey(startKey string) *OrganizationsDevelopersListCall { c.urlParams_.Set("startKey", startKey) return c } @@ -15535,7 +15409,7 @@ func (c *OrganizationsDevelopersAppsListCall) StartKey(startKey string) *Organiz // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsDevelopersAppsListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsListCall { +func (c *OrganizationsDevelopersListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -15545,7 +15419,7 @@ func (c *OrganizationsDevelopersAppsListCall) Fields(s ...googleapi.Field) *Orga // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OrganizationsDevelopersAppsListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsListCall { +func (c *OrganizationsDevelopersListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersListCall { c.ifNoneMatch_ = entityTag return c } @@ -15553,23 +15427,23 @@ func (c *OrganizationsDevelopersAppsListCall) IfNoneMatch(entityTag string) *Org // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsDevelopersAppsListCall) Context(ctx context.Context) *OrganizationsDevelopersAppsListCall { +func (c *OrganizationsDevelopersListCall) Context(ctx context.Context) *OrganizationsDevelopersListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsDevelopersAppsListCall) Header() http.Header { +func (c *OrganizationsDevelopersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsDevelopersAppsListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDevelopersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15580,7 +15454,7 @@ func (c *OrganizationsDevelopersAppsListCall) doRequest(alt string) (*http.Respo var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/developers") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -15593,16 +15467,16 @@ func (c *OrganizationsDevelopersAppsListCall) doRequest(alt string) (*http.Respo return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.developers.apps.list" call. -// Exactly one of *GoogleCloudApigeeV1ListDeveloperAppsResponse or error +// Do executes the "apigee.organizations.developers.list" call. +// Exactly one of *GoogleCloudApigeeV1ListOfDevelopersResponse or error // will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudApigeeV1ListDeveloperAppsResponse.ServerResponse.Header -// or (if a response was returned at all) in +// *GoogleCloudApigeeV1ListOfDevelopersResponse.ServerResponse.Header or +// (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *OrganizationsDevelopersAppsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeveloperAppsResponse, error) { +func (c *OrganizationsDevelopersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListOfDevelopersResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -15621,7 +15495,7 @@ func (c *OrganizationsDevelopersAppsListCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1ListDeveloperAppsResponse{ + ret := &GoogleCloudApigeeV1ListOfDevelopersResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -15633,46 +15507,56 @@ func (c *OrganizationsDevelopersAppsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists all apps created by a developer in an Apigee organization. Optionally, you can request an expanded view of the developer apps. A maximum of 100 developer apps are returned per API call. You can paginate the list of deveoper apps returned using the `startKey` and `count` query parameters.", - // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps", + // "description": "Lists all developers in an organization by email address. By default, the response does not include company developers. Set the `includeCompany` query parameter to `true` to include company developers. **Note**: A maximum of 1000 developers are returned in the response. You paginate the list of developers returned using the `startKey` and `count` query parameters.", + // "flatPath": "v1/organizations/{organizationsId}/developers", // "httpMethod": "GET", - // "id": "apigee.organizations.developers.apps.list", + // "id": "apigee.organizations.developers.list", // "parameterOrder": [ // "parent" // ], // "parameters": { + // "app": { + // "description": "Optional. List only Developers that are associated with the app. Note that start_key, count are not applicable for this filter criteria.", + // "location": "query", + // "type": "string" + // }, // "count": { - // "description": "Number of developer apps to return in the API call. Use with the `startKey` parameter to provide more targeted filtering. The limit is 1000.", + // "description": "Optional. Number of developers to return in the API call. Use with the `startKey` parameter to provide more targeted filtering. The limit is 1000.", // "format": "int64", // "location": "query", // "type": "string" // }, // "expand": { - // "description": "Optional. Specifies whether to expand the results. Set to `true` to expand the results. This query parameter is not valid if you use the `count` or `startKey` query parameters.", + // "description": "Specifies whether to expand the results. Set to `true` to expand the results. This query parameter is not valid if you use the `count` or `startKey` query parameters.", // "location": "query", // "type": "boolean" // }, - // "parent": { - // "description": "Required. Name of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`", - // "location": "path", - // "pattern": "^organizations/[^/]+/developers/[^/]+$", - // "required": true, + // "ids": { + // "description": "Optional. List of IDs to include, separated by commas.", + // "location": "query", // "type": "string" // }, - // "shallowExpand": { - // "description": "Optional. Specifies whether to expand the results in shallow mode. Set to `true` to expand the results in shallow mode.", + // "includeCompany": { + // "description": "Flag that specifies whether to include company details in the response.", // "location": "query", // "type": "boolean" // }, + // "parent": { + // "description": "Required. Name of the Apigee organization. Use the following structure in your request: `organizations/{org}`.", + // "location": "path", + // "pattern": "^organizations/[^/]+$", + // "required": true, + // "type": "string" + // }, // "startKey": { - // "description": "**Note**: Must be used in conjunction with the `count` parameter. Name of the developer app from which to start displaying the list of developer apps. For example, if you're returning 50 developer apps at a time (using the `count` query parameter), you can view developer apps 50-99 by entering the name of the 50th developer app. The developer app name is case sensitive.", + // "description": "**Note**: Must be used in conjunction with the `count` parameter. Email address of the developer from which to start displaying the list of developers. For example, if the an unfiltered list returns: ``` westley@example.com fezzik@example.com buttercup@example.com ``` and your `startKey` is `fezzik@example.com`, the list returned will be ``` fezzik@example.com buttercup@example.com ```", // "location": "query", // "type": "string" // } // }, - // "path": "v1/{+parent}/apps", + // "path": "v1/{+parent}/developers", // "response": { - // "$ref": "GoogleCloudApigeeV1ListDeveloperAppsResponse" + // "$ref": "GoogleCloudApigeeV1ListOfDevelopersResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -15681,39 +15565,41 @@ func (c *OrganizationsDevelopersAppsListCall) Do(opts ...googleapi.CallOption) ( } -// method id "apigee.organizations.developers.apps.update": +// method id "apigee.organizations.developers.setDeveloperStatus": -type OrganizationsDevelopersAppsUpdateCall struct { - s *Service - name string - googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsDevelopersSetDeveloperStatusCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Update: Updates the details for a developer app. In addition, you can -// add an API product to a developer app and automatically generate an -// API key for the app to use when calling APIs in the API product. If -// you want to use an existing API key for the API product, add the API -// product to the API key using the UpdateDeveloperAppKey API. Using -// this API, you cannot update the following: * App name as it is the -// primary key used to identify the app and cannot be changed. * Scopes -// associated with the app. Instead, use the ReplaceDeveloperAppKey API. -// This API replaces the existing attributes with those specified in the -// request. Include or exclude any existing attributes that you want to -// retain or delete, respectively. -func (r *OrganizationsDevelopersAppsService) Update(name string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsUpdateCall { - c := &OrganizationsDevelopersAppsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// SetDeveloperStatus: Sets the status of a developer. Valid values are +// `active` or `inactive`. A developer is `active` by default. If you +// set a developer's status to `inactive`, the API keys assigned to the +// developer apps are no longer valid even though the API keys are set +// to `approved`. Inactive developers can still sign in to the developer +// portal and create apps; however, any new API keys generated during +// app creation won't work. If successful, the API call returns the +// following HTTP status code: `204 No Content` +func (r *OrganizationsDevelopersService) SetDeveloperStatus(name string) *OrganizationsDevelopersSetDeveloperStatusCall { + c := &OrganizationsDevelopersSetDeveloperStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp + return c +} + +// Action sets the optional parameter "action": Status of the developer. +// Valid values are `active` and `inactive`. +func (c *OrganizationsDevelopersSetDeveloperStatusCall) Action(action string) *OrganizationsDevelopersSetDeveloperStatusCall { + c.urlParams_.Set("action", action) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsDevelopersAppsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsUpdateCall { +func (c *OrganizationsDevelopersSetDeveloperStatusCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSetDeveloperStatusCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -15721,38 +15607,33 @@ func (c *OrganizationsDevelopersAppsUpdateCall) Fields(s ...googleapi.Field) *Or // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsDevelopersAppsUpdateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsUpdateCall { +func (c *OrganizationsDevelopersSetDeveloperStatusCall) Context(ctx context.Context) *OrganizationsDevelopersSetDeveloperStatusCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsDevelopersAppsUpdateCall) Header() http.Header { +func (c *OrganizationsDevelopersSetDeveloperStatusCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsDevelopersAppsUpdateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDevelopersSetDeveloperStatusCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -15763,14 +15644,14 @@ func (c *OrganizationsDevelopersAppsUpdateCall) doRequest(alt string) (*http.Res return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.developers.apps.update" call. -// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was +// Do executes the "apigee.organizations.developers.setDeveloperStatus" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsDevelopersAppsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) { +func (c *OrganizationsDevelopersSetDeveloperStatusCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -15789,7 +15670,7 @@ func (c *OrganizationsDevelopersAppsUpdateCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1DeveloperApp{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -15801,28 +15682,30 @@ func (c *OrganizationsDevelopersAppsUpdateCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Updates the details for a developer app. In addition, you can add an API product to a developer app and automatically generate an API key for the app to use when calling APIs in the API product. If you want to use an existing API key for the API product, add the API product to the API key using the UpdateDeveloperAppKey API. Using this API, you cannot update the following: * App name as it is the primary key used to identify the app and cannot be changed. * Scopes associated with the app. Instead, use the ReplaceDeveloperAppKey API. This API replaces the existing attributes with those specified in the request. Include or exclude any existing attributes that you want to retain or delete, respectively.", - // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}", - // "httpMethod": "PUT", - // "id": "apigee.organizations.developers.apps.update", + // "description": "Sets the status of a developer. Valid values are `active` or `inactive`. A developer is `active` by default. If you set a developer's status to `inactive`, the API keys assigned to the developer apps are no longer valid even though the API keys are set to `approved`. Inactive developers can still sign in to the developer portal and create apps; however, any new API keys generated during app creation won't work. If successful, the API call returns the following HTTP status code: `204 No Content`", + // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}", + // "httpMethod": "POST", + // "id": "apigee.organizations.developers.setDeveloperStatus", // "parameterOrder": [ // "name" // ], // "parameters": { + // "action": { + // "description": "Status of the developer. Valid values are `active` and `inactive`.", + // "location": "query", + // "type": "string" + // }, // "name": { - // "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`", + // "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`", // "location": "path", - // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$", + // "pattern": "^organizations/[^/]+/developers/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudApigeeV1DeveloperApp" - // }, // "response": { - // "$ref": "GoogleCloudApigeeV1DeveloperApp" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -15831,27 +15714,38 @@ func (c *OrganizationsDevelopersAppsUpdateCall) Do(opts ...googleapi.CallOption) } -// method id "apigee.organizations.developers.apps.attributes.delete": +// method id "apigee.organizations.developers.update": -type OrganizationsDevelopersAppsAttributesDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsDevelopersUpdateCall struct { + s *Service + name string + googlecloudapigeev1developer *GoogleCloudApigeeV1Developer + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a developer app attribute. -func (r *OrganizationsDevelopersAppsAttributesService) Delete(name string) *OrganizationsDevelopersAppsAttributesDeleteCall { - c := &OrganizationsDevelopersAppsAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Update: Updates a developer. This API replaces the existing developer +// details with those specified in the request. Include or exclude any +// existing details that you want to retain or delete, respectively. The +// custom attribute limit is 18. **Note**: OAuth access tokens and Key +// Management Service (KMS) entities (apps, developers, and API +// products) are cached for 180 seconds (current default). Any custom +// attributes associated with these entities are cached for at least 180 +// seconds after the entity is accessed at runtime. Therefore, an +// `ExpiresIn` element on the OAuthV2 policy won't be able to expire an +// access token in less than 180 seconds. +func (r *OrganizationsDevelopersService) Update(name string, googlecloudapigeev1developer *GoogleCloudApigeeV1Developer) *OrganizationsDevelopersUpdateCall { + c := &OrganizationsDevelopersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudapigeev1developer = googlecloudapigeev1developer return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesDeleteCall { +func (c *OrganizationsDevelopersUpdateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -15859,33 +15753,38 @@ func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Fields(s ...googleapi. // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesDeleteCall { +func (c *OrganizationsDevelopersUpdateCall) Context(ctx context.Context) *OrganizationsDevelopersUpdateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Header() http.Header { +func (c *OrganizationsDevelopersUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsDevelopersAppsAttributesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDevelopersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developer) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("PUT", urls, body) if err != nil { return nil, err } @@ -15896,14 +15795,14 @@ func (c *OrganizationsDevelopersAppsAttributesDeleteCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.developers.apps.attributes.delete" call. -// Exactly one of *GoogleCloudApigeeV1Attribute or error will be +// Do executes the "apigee.organizations.developers.update" call. +// Exactly one of *GoogleCloudApigeeV1Developer or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a +// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a // response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) { +func (c *OrganizationsDevelopersUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -15922,7 +15821,7 @@ func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Attribute{ + ret := &GoogleCloudApigeeV1Developer{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -15934,25 +15833,28 @@ func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Deletes a developer app attribute.", - // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes/{attributesId}", - // "httpMethod": "DELETE", - // "id": "apigee.organizations.developers.apps.attributes.delete", + // "description": "Updates a developer. This API replaces the existing developer details with those specified in the request. Include or exclude any existing details that you want to retain or delete, respectively. The custom attribute limit is 18. **Note**: OAuth access tokens and Key Management Service (KMS) entities (apps, developers, and API products) are cached for 180 seconds (current default). Any custom attributes associated with these entities are cached for at least 180 seconds after the entity is accessed at runtime. Therefore, an `ExpiresIn` element on the OAuthV2 policy won't be able to expire an access token in less than 180 seconds.", + // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}", + // "httpMethod": "PUT", + // "id": "apigee.organizations.developers.update", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Name of the developer app attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/attributes/{attribute}`", + // "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`", // "location": "path", - // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/attributes/[^/]+$", + // "pattern": "^organizations/[^/]+/developers/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudApigeeV1Developer" + // }, // "response": { - // "$ref": "GoogleCloudApigeeV1Attribute" + // "$ref": "GoogleCloudApigeeV1Developer" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -15961,75 +15863,69 @@ func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Do(opts ...googleapi.C } -// method id "apigee.organizations.developers.apps.attributes.get": +// method id "apigee.organizations.developers.apps.attributes": -type OrganizationsDevelopersAppsAttributesGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsDevelopersAppsAttributesCall struct { + s *Service + name string + googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Returns a developer app attribute. -func (r *OrganizationsDevelopersAppsAttributesService) Get(name string) *OrganizationsDevelopersAppsAttributesGetCall { - c := &OrganizationsDevelopersAppsAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Attributes: Updates attributes for a developer app. This API replaces +// the current attributes with those specified in the request. +func (r *OrganizationsDevelopersAppsService) Attributes(name string, googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes) *OrganizationsDevelopersAppsAttributesCall { + c := &OrganizationsDevelopersAppsAttributesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudapigeev1attributes = googlecloudapigeev1attributes return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsDevelopersAppsAttributesGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesGetCall { +func (c *OrganizationsDevelopersAppsAttributesCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsDevelopersAppsAttributesGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsAttributesGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsDevelopersAppsAttributesGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesGetCall { +func (c *OrganizationsDevelopersAppsAttributesCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsDevelopersAppsAttributesGetCall) Header() http.Header { +func (c *OrganizationsDevelopersAppsAttributesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsDevelopersAppsAttributesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDevelopersAppsAttributesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attributes) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/attributes") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -16040,14 +15936,14 @@ func (c *OrganizationsDevelopersAppsAttributesGetCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.developers.apps.attributes.get" call. -// Exactly one of *GoogleCloudApigeeV1Attribute or error will be +// Do executes the "apigee.organizations.developers.apps.attributes" call. +// Exactly one of *GoogleCloudApigeeV1Attributes or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a +// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a // response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsDevelopersAppsAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) { +func (c *OrganizationsDevelopersAppsAttributesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -16066,7 +15962,7 @@ func (c *OrganizationsDevelopersAppsAttributesGetCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Attribute{ + ret := &GoogleCloudApigeeV1Attributes{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -16078,25 +15974,28 @@ func (c *OrganizationsDevelopersAppsAttributesGetCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Returns a developer app attribute.", - // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes/{attributesId}", - // "httpMethod": "GET", - // "id": "apigee.organizations.developers.apps.attributes.get", + // "description": "Updates attributes for a developer app. This API replaces the current attributes with those specified in the request.", + // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes", + // "httpMethod": "POST", + // "id": "apigee.organizations.developers.apps.attributes", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Name of the developer app attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/attributes/{attribute}`", + // "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`", // "location": "path", - // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/attributes/[^/]+$", + // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+name}/attributes", + // "request": { + // "$ref": "GoogleCloudApigeeV1Attributes" + // }, // "response": { - // "$ref": "GoogleCloudApigeeV1Attribute" + // "$ref": "GoogleCloudApigeeV1Attributes" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -16105,75 +16004,74 @@ func (c *OrganizationsDevelopersAppsAttributesGetCall) Do(opts ...googleapi.Call } -// method id "apigee.organizations.developers.apps.attributes.list": +// method id "apigee.organizations.developers.apps.create": -type OrganizationsDevelopersAppsAttributesListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsDevelopersAppsCreateCall struct { + s *Service + parent string + googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Returns a list of all developer app attributes. -func (r *OrganizationsDevelopersAppsAttributesService) List(parent string) *OrganizationsDevelopersAppsAttributesListCall { - c := &OrganizationsDevelopersAppsAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Create: Creates an app associated with a developer. This API +// associates the developer app with the specified API product and +// auto-generates an API key for the app to use in calls to API proxies +// inside that API product. The `name` is the unique ID of the app that +// you can use in API calls. The `DisplayName` (set as an attribute) +// appears in the UI. If you don't set the `DisplayName` attribute, the +// `name` appears in the UI. +func (r *OrganizationsDevelopersAppsService) Create(parent string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsCreateCall { + c := &OrganizationsDevelopersAppsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent + c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsDevelopersAppsAttributesListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesListCall { +func (c *OrganizationsDevelopersAppsCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsDevelopersAppsAttributesListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsAttributesListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsDevelopersAppsAttributesListCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesListCall { +func (c *OrganizationsDevelopersAppsCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsDevelopersAppsAttributesListCall) Header() http.Header { +func (c *OrganizationsDevelopersAppsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsDevelopersAppsAttributesListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDevelopersAppsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -16184,14 +16082,14 @@ func (c *OrganizationsDevelopersAppsAttributesListCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.developers.apps.attributes.list" call. -// Exactly one of *GoogleCloudApigeeV1Attributes or error will be +// Do executes the "apigee.organizations.developers.apps.create" call. +// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was +// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsDevelopersAppsAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) { +func (c *OrganizationsDevelopersAppsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -16210,7 +16108,7 @@ func (c *OrganizationsDevelopersAppsAttributesListCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Attributes{ + ret := &GoogleCloudApigeeV1DeveloperApp{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -16222,25 +16120,28 @@ func (c *OrganizationsDevelopersAppsAttributesListCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Returns a list of all developer app attributes.", - // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes", - // "httpMethod": "GET", - // "id": "apigee.organizations.developers.apps.attributes.list", + // "description": "Creates an app associated with a developer. This API associates the developer app with the specified API product and auto-generates an API key for the app to use in calls to API proxies inside that API product. The `name` is the unique ID of the app that you can use in API calls. The `DisplayName` (set as an attribute) appears in the UI. If you don't set the `DisplayName` attribute, the `name` appears in the UI.", + // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps", + // "httpMethod": "POST", + // "id": "apigee.organizations.developers.apps.create", // "parameterOrder": [ // "parent" // ], // "parameters": { // "parent": { - // "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`", + // "description": "Required. Name of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`", // "location": "path", - // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$", + // "pattern": "^organizations/[^/]+/developers/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/attributes", + // "path": "v1/{+parent}/apps", + // "request": { + // "$ref": "GoogleCloudApigeeV1DeveloperApp" + // }, // "response": { - // "$ref": "GoogleCloudApigeeV1Attributes" + // "$ref": "GoogleCloudApigeeV1DeveloperApp" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -16249,36 +16150,30 @@ func (c *OrganizationsDevelopersAppsAttributesListCall) Do(opts ...googleapi.Cal } -// method id "apigee.organizations.developers.apps.attributes.updateDeveloperAppAttribute": +// method id "apigee.organizations.developers.apps.delete": -type OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall struct { - s *Service - name string - googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsDevelopersAppsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// UpdateDeveloperAppAttribute: Updates a developer app attribute. -// **Note**: OAuth access tokens and Key Management Service (KMS) -// entities (apps, developers, and API products) are cached for 180 -// seconds (current default). Any custom attributes associated with -// these entities are cached for at least 180 seconds after the entity -// is accessed at runtime. Therefore, an `ExpiresIn` element on the -// OAuthV2 policy won't be able to expire an access token in less than -// 180 seconds. -func (r *OrganizationsDevelopersAppsAttributesService) UpdateDeveloperAppAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall { - c := &OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Delete: Deletes a developer app. **Note**: The delete operation is +// asynchronous. The developer app is deleted immediately, but its +// associated resources, such as app keys or access tokens, may take +// anywhere from a few seconds to a few minutes to be deleted. +func (r *OrganizationsDevelopersAppsService) Delete(name string) *OrganizationsDevelopersAppsDeleteCall { + c := &OrganizationsDevelopersAppsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudapigeev1attribute = googlecloudapigeev1attribute return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall { +func (c *OrganizationsDevelopersAppsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -16286,38 +16181,33 @@ func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall { +func (c *OrganizationsDevelopersAppsDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Header() http.Header { +func (c *OrganizationsDevelopersAppsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDevelopersAppsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attribute) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -16328,14 +16218,14 @@ func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) d return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.developers.apps.attributes.updateDeveloperAppAttribute" call. -// Exactly one of *GoogleCloudApigeeV1Attribute or error will be +// Do executes the "apigee.organizations.developers.apps.delete" call. +// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was +// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) { +func (c *OrganizationsDevelopersAppsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -16354,7 +16244,7 @@ func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) D if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Attribute{ + ret := &GoogleCloudApigeeV1DeveloperApp{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -16366,28 +16256,25 @@ func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) D } return ret, nil // { - // "description": "Updates a developer app attribute. **Note**: OAuth access tokens and Key Management Service (KMS) entities (apps, developers, and API products) are cached for 180 seconds (current default). Any custom attributes associated with these entities are cached for at least 180 seconds after the entity is accessed at runtime. Therefore, an `ExpiresIn` element on the OAuthV2 policy won't be able to expire an access token in less than 180 seconds.", - // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes/{attributesId}", - // "httpMethod": "POST", - // "id": "apigee.organizations.developers.apps.attributes.updateDeveloperAppAttribute", + // "description": "Deletes a developer app. **Note**: The delete operation is asynchronous. The developer app is deleted immediately, but its associated resources, such as app keys or access tokens, may take anywhere from a few seconds to a few minutes to be deleted.", + // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}", + // "httpMethod": "DELETE", + // "id": "apigee.organizations.developers.apps.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Name of the developer app attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/attributes/{attribute}`", + // "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`", // "location": "path", - // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/attributes/[^/]+$", + // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudApigeeV1Attribute" - // }, // "response": { - // "$ref": "GoogleCloudApigeeV1Attribute" + // "$ref": "GoogleCloudApigeeV1DeveloperApp" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -16396,41 +16283,61 @@ func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) D } -// method id "apigee.organizations.developers.apps.keys.create": +// method id "apigee.organizations.developers.apps.generateKeyPairOrUpdateDeveloperAppStatus": -type OrganizationsDevelopersAppsKeysCreateCall struct { - s *Service - parent string - googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall struct { + s *Service + name string + googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a custom consumer key and secret for a developer app. -// This is particularly useful if you want to migrate existing consumer -// keys and secrets to Apigee hybrid from another system. Consumer keys -// and secrets can contain letters, numbers, underscores, and hyphens. -// No other special characters are allowed. To avoid service -// disruptions, a consumer key and secret should not exceed 2 KBs each. -// **Note**: When creating the consumer key and secret, an association -// to API products will not be made. Therefore, you should not specify -// the associated API products in your request. Instead, use the -// UpdateDeveloperAppKey API to make the association after the consumer -// key and secret are created. If a consumer key and secret already -// exist, you can keep them or delete them using the -// DeleteDeveloperAppKey API. -func (r *OrganizationsDevelopersAppsKeysService) Create(parent string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysCreateCall { - c := &OrganizationsDevelopersAppsKeysCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey +// GenerateKeyPairOrUpdateDeveloperAppStatus: Manages access to a +// developer app by enabling you to: * Approve or revoke a developer app +// * Generate a new consumer key and secret for a developer app To +// approve or revoke a developer app, set the `action` query parameter +// to `approved` or `revoked`, respectively, and the `Content-Type` +// header to `application/octet-stream`. If a developer app is revoked, +// none of its API keys are valid for API calls even though the keys are +// still `approved`. If successful, the API call returns the following +// HTTP status code: `204 No Content` To generate a new consumer key and +// secret for a developer app, pass the new key/secret details. Rather +// than replace an existing key, this API generates a new key. In this +// case, multiple key pairs may be associated with a single developer +// app. Each key pair has an independent status (`approved` or +// `revoked`) and expiration time. Any approved, non-expired key can be +// used in an API call. For example, if you're using API key rotation, +// you can generate new keys with expiration times that overlap keys +// that are going to expire. You might also generate a new consumer +// key/secret if the security of the original key/secret is compromised. +// The `keyExpiresIn` property defines the expiration time for the API +// key in milliseconds. If you don't set this property or set it to +// `-1`, the API key never expires. **Notes**: * When generating a new +// key/secret, this API replaces the existing attributes, notes, and +// callback URLs with those specified in the request. Include or exclude +// any existing information that you want to retain or delete, +// respectively. * To migrate existing consumer keys and secrets to +// hybrid from another system, see the CreateDeveloperAppKey API. +func (r *OrganizationsDevelopersAppsService) GenerateKeyPairOrUpdateDeveloperAppStatus(name string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall { + c := &OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp + return c +} + +// Action sets the optional parameter "action": Action. Valid values are +// `approve` or `revoke`. +func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Action(action string) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall { + c.urlParams_.Set("action", action) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsDevelopersAppsKeysCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysCreateCall { +func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -16438,36 +16345,36 @@ func (c *OrganizationsDevelopersAppsKeysCreateCall) Fields(s ...googleapi.Field) // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsDevelopersAppsKeysCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysCreateCall { +func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Context(ctx context.Context) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsDevelopersAppsKeysCreateCall) Header() http.Header { +func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsDevelopersAppsKeysCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keys") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -16475,20 +16382,19 @@ func (c *OrganizationsDevelopersAppsKeysCreateCall) doRequest(alt string) (*http } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.developers.apps.keys.create" call. -// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be +// Do executes the "apigee.organizations.developers.apps.generateKeyPairOrUpdateDeveloperAppStatus" call. +// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *OrganizationsDevelopersAppsKeysCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) { +// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -16507,7 +16413,7 @@ func (c *OrganizationsDevelopersAppsKeysCreateCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1DeveloperAppKey{ + ret := &GoogleCloudApigeeV1DeveloperApp{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -16519,28 +16425,33 @@ func (c *OrganizationsDevelopersAppsKeysCreateCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Creates a custom consumer key and secret for a developer app. This is particularly useful if you want to migrate existing consumer keys and secrets to Apigee hybrid from another system. Consumer keys and secrets can contain letters, numbers, underscores, and hyphens. No other special characters are allowed. To avoid service disruptions, a consumer key and secret should not exceed 2 KBs each. **Note**: When creating the consumer key and secret, an association to API products will not be made. Therefore, you should not specify the associated API products in your request. Instead, use the UpdateDeveloperAppKey API to make the association after the consumer key and secret are created. If a consumer key and secret already exist, you can keep them or delete them using the DeleteDeveloperAppKey API.", - // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys", + // "description": "Manages access to a developer app by enabling you to: * Approve or revoke a developer app * Generate a new consumer key and secret for a developer app To approve or revoke a developer app, set the `action` query parameter to `approved` or `revoked`, respectively, and the `Content-Type` header to `application/octet-stream`. If a developer app is revoked, none of its API keys are valid for API calls even though the keys are still `approved`. If successful, the API call returns the following HTTP status code: `204 No Content` To generate a new consumer key and secret for a developer app, pass the new key/secret details. Rather than replace an existing key, this API generates a new key. In this case, multiple key pairs may be associated with a single developer app. Each key pair has an independent status (`approved` or `revoked`) and expiration time. Any approved, non-expired key can be used in an API call. For example, if you're using API key rotation, you can generate new keys with expiration times that overlap keys that are going to expire. You might also generate a new consumer key/secret if the security of the original key/secret is compromised. The `keyExpiresIn` property defines the expiration time for the API key in milliseconds. If you don't set this property or set it to `-1`, the API key never expires. **Notes**: * When generating a new key/secret, this API replaces the existing attributes, notes, and callback URLs with those specified in the request. Include or exclude any existing information that you want to retain or delete, respectively. * To migrate existing consumer keys and secrets to hybrid from another system, see the CreateDeveloperAppKey API.", + // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}", // "httpMethod": "POST", - // "id": "apigee.organizations.developers.apps.keys.create", + // "id": "apigee.organizations.developers.apps.generateKeyPairOrUpdateDeveloperAppStatus", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Parent of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps`", + // "action": { + // "description": "Action. Valid values are `approve` or `revoke`.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`", // "location": "path", // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/keys", + // "path": "v1/{+name}", // "request": { - // "$ref": "GoogleCloudApigeeV1DeveloperAppKey" + // "$ref": "GoogleCloudApigeeV1DeveloperApp" // }, // "response": { - // "$ref": "GoogleCloudApigeeV1DeveloperAppKey" + // "$ref": "GoogleCloudApigeeV1DeveloperApp" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -16549,67 +16460,93 @@ func (c *OrganizationsDevelopersAppsKeysCreateCall) Do(opts ...googleapi.CallOpt } -// method id "apigee.organizations.developers.apps.keys.delete": +// method id "apigee.organizations.developers.apps.get": -type OrganizationsDevelopersAppsKeysDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsDevelopersAppsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes an app's consumer key and removes all API products -// associated with the app. After the consumer key is deleted, it cannot -// be used to access any APIs. **Note**: After you delete a consumer -// key, you may want to: 1. Create a new consumer key and secret for the -// developer app using the CreateDeveloperAppKey API, and subsequently -// add an API product to the key using the UpdateDeveloperAppKey API. 2. -// Delete the developer app, if it is no longer required. -func (r *OrganizationsDevelopersAppsKeysService) Delete(name string) *OrganizationsDevelopersAppsKeysDeleteCall { - c := &OrganizationsDevelopersAppsKeysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Get: Returns the details for a developer app. +func (r *OrganizationsDevelopersAppsService) Get(name string) *OrganizationsDevelopersAppsGetCall { + c := &OrganizationsDevelopersAppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Entity sets the optional parameter "entity": **Note**: Must be used +// in conjunction with the `query` parameter. Set to `apiresources` to +// return the number of API resources that have been approved for access +// by a developer app in the specified Apigee organization. +func (c *OrganizationsDevelopersAppsGetCall) Entity(entity string) *OrganizationsDevelopersAppsGetCall { + c.urlParams_.Set("entity", entity) + return c +} + +// Query sets the optional parameter "query": **Note**: Must be used in +// conjunction with the `entity` parameter. Set to `count` to return the +// number of API resources that have been approved for access by a +// developer app in the specified Apigee organization. +func (c *OrganizationsDevelopersAppsGetCall) Query(query string) *OrganizationsDevelopersAppsGetCall { + c.urlParams_.Set("query", query) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsDevelopersAppsKeysDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysDeleteCall { +func (c *OrganizationsDevelopersAppsGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *OrganizationsDevelopersAppsKeysDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysDeleteCall { - c.ctx_ = ctx - return c -} - +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsDevelopersAppsGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsDevelopersAppsGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsGetCall { + c.ctx_ = ctx + return c +} + // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsDevelopersAppsKeysDeleteCall) Header() http.Header { +func (c *OrganizationsDevelopersAppsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsDevelopersAppsKeysDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDevelopersAppsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -16620,15 +16557,14 @@ func (c *OrganizationsDevelopersAppsKeysDeleteCall) doRequest(alt string) (*http return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.developers.apps.keys.delete" call. -// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be +// Do executes the "apigee.organizations.developers.apps.get" call. +// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *OrganizationsDevelopersAppsKeysDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) { +// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsDevelopersAppsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -16647,7 +16583,7 @@ func (c *OrganizationsDevelopersAppsKeysDeleteCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1DeveloperAppKey{ + ret := &GoogleCloudApigeeV1DeveloperApp{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -16659,25 +16595,35 @@ func (c *OrganizationsDevelopersAppsKeysDeleteCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Deletes an app's consumer key and removes all API products associated with the app. After the consumer key is deleted, it cannot be used to access any APIs. **Note**: After you delete a consumer key, you may want to: 1. Create a new consumer key and secret for the developer app using the CreateDeveloperAppKey API, and subsequently add an API product to the key using the UpdateDeveloperAppKey API. 2. Delete the developer app, if it is no longer required.", - // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}", - // "httpMethod": "DELETE", - // "id": "apigee.organizations.developers.apps.keys.delete", + // "description": "Returns the details for a developer app.", + // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}", + // "httpMethod": "GET", + // "id": "apigee.organizations.developers.apps.get", // "parameterOrder": [ // "name" // ], // "parameters": { + // "entity": { + // "description": "**Note**: Must be used in conjunction with the `query` parameter. Set to `apiresources` to return the number of API resources that have been approved for access by a developer app in the specified Apigee organization.", + // "location": "query", + // "type": "string" + // }, // "name": { - // "description": "Name of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`", + // "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`", // "location": "path", - // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$", + // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$", // "required": true, // "type": "string" + // }, + // "query": { + // "description": "**Note**: Must be used in conjunction with the `entity` parameter. Set to `count` to return the number of API resources that have been approved for access by a developer app in the specified Apigee organization.", + // "location": "query", + // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudApigeeV1DeveloperAppKey" + // "$ref": "GoogleCloudApigeeV1DeveloperApp" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -16686,30 +16632,69 @@ func (c *OrganizationsDevelopersAppsKeysDeleteCall) Do(opts ...googleapi.CallOpt } -// method id "apigee.organizations.developers.apps.keys.get": +// method id "apigee.organizations.developers.apps.list": -type OrganizationsDevelopersAppsKeysGetCall struct { +type OrganizationsDevelopersAppsListCall struct { s *Service - name string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Get: Returns details for a consumer key for a developer app, -// including the key and secret value, associated API products, and -// other information. -func (r *OrganizationsDevelopersAppsKeysService) Get(name string) *OrganizationsDevelopersAppsKeysGetCall { - c := &OrganizationsDevelopersAppsKeysGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// List: Lists all apps created by a developer in an Apigee +// organization. Optionally, you can request an expanded view of the +// developer apps. A maximum of 100 developer apps are returned per API +// call. You can paginate the list of deveoper apps returned using the +// `startKey` and `count` query parameters. +func (r *OrganizationsDevelopersAppsService) List(parent string) *OrganizationsDevelopersAppsListCall { + c := &OrganizationsDevelopersAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Count sets the optional parameter "count": Number of developer apps +// to return in the API call. Use with the `startKey` parameter to +// provide more targeted filtering. The limit is 1000. +func (c *OrganizationsDevelopersAppsListCall) Count(count int64) *OrganizationsDevelopersAppsListCall { + c.urlParams_.Set("count", fmt.Sprint(count)) + return c +} + +// Expand sets the optional parameter "expand": Specifies whether to +// expand the results. Set to `true` to expand the results. This query +// parameter is not valid if you use the `count` or `startKey` query +// parameters. +func (c *OrganizationsDevelopersAppsListCall) Expand(expand bool) *OrganizationsDevelopersAppsListCall { + c.urlParams_.Set("expand", fmt.Sprint(expand)) + return c +} + +// ShallowExpand sets the optional parameter "shallowExpand": Specifies +// whether to expand the results in shallow mode. Set to `true` to +// expand the results in shallow mode. +func (c *OrganizationsDevelopersAppsListCall) ShallowExpand(shallowExpand bool) *OrganizationsDevelopersAppsListCall { + c.urlParams_.Set("shallowExpand", fmt.Sprint(shallowExpand)) + return c +} + +// StartKey sets the optional parameter "startKey": **Note**: Must be +// used in conjunction with the `count` parameter. Name of the developer +// app from which to start displaying the list of developer apps. For +// example, if you're returning 50 developer apps at a time (using the +// `count` query parameter), you can view developer apps 50-99 by +// entering the name of the 50th developer app. The developer app name +// is case sensitive. +func (c *OrganizationsDevelopersAppsListCall) StartKey(startKey string) *OrganizationsDevelopersAppsListCall { + c.urlParams_.Set("startKey", startKey) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsDevelopersAppsKeysGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysGetCall { +func (c *OrganizationsDevelopersAppsListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -16719,7 +16704,7 @@ func (c *OrganizationsDevelopersAppsKeysGetCall) Fields(s ...googleapi.Field) *O // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OrganizationsDevelopersAppsKeysGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsKeysGetCall { +func (c *OrganizationsDevelopersAppsListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsListCall { c.ifNoneMatch_ = entityTag return c } @@ -16727,23 +16712,23 @@ func (c *OrganizationsDevelopersAppsKeysGetCall) IfNoneMatch(entityTag string) * // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsDevelopersAppsKeysGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysGetCall { +func (c *OrganizationsDevelopersAppsListCall) Context(ctx context.Context) *OrganizationsDevelopersAppsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsDevelopersAppsKeysGetCall) Header() http.Header { +func (c *OrganizationsDevelopersAppsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsDevelopersAppsKeysGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDevelopersAppsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16754,7 +16739,7 @@ func (c *OrganizationsDevelopersAppsKeysGetCall) doRequest(alt string) (*http.Re var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -16762,20 +16747,21 @@ func (c *OrganizationsDevelopersAppsKeysGetCall) doRequest(alt string) (*http.Re } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.developers.apps.keys.get" call. -// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or -// (if a response was returned at all) in +// Do executes the "apigee.organizations.developers.apps.list" call. +// Exactly one of *GoogleCloudApigeeV1ListDeveloperAppsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudApigeeV1ListDeveloperAppsResponse.ServerResponse.Header +// or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *OrganizationsDevelopersAppsKeysGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) { +func (c *OrganizationsDevelopersAppsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeveloperAppsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -16794,7 +16780,7 @@ func (c *OrganizationsDevelopersAppsKeysGetCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1DeveloperAppKey{ + ret := &GoogleCloudApigeeV1ListDeveloperAppsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -16806,25 +16792,46 @@ func (c *OrganizationsDevelopersAppsKeysGetCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "Returns details for a consumer key for a developer app, including the key and secret value, associated API products, and other information.", - // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}", + // "description": "Lists all apps created by a developer in an Apigee organization. Optionally, you can request an expanded view of the developer apps. A maximum of 100 developer apps are returned per API call. You can paginate the list of deveoper apps returned using the `startKey` and `count` query parameters.", + // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps", // "httpMethod": "GET", - // "id": "apigee.organizations.developers.apps.keys.get", + // "id": "apigee.organizations.developers.apps.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Name of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`", + // "count": { + // "description": "Number of developer apps to return in the API call. Use with the `startKey` parameter to provide more targeted filtering. The limit is 1000.", + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "expand": { + // "description": "Optional. Specifies whether to expand the results. Set to `true` to expand the results. This query parameter is not valid if you use the `count` or `startKey` query parameters.", + // "location": "query", + // "type": "boolean" + // }, + // "parent": { + // "description": "Required. Name of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`", // "location": "path", - // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$", + // "pattern": "^organizations/[^/]+/developers/[^/]+$", // "required": true, // "type": "string" + // }, + // "shallowExpand": { + // "description": "Optional. Specifies whether to expand the results in shallow mode. Set to `true` to expand the results in shallow mode.", + // "location": "query", + // "type": "boolean" + // }, + // "startKey": { + // "description": "**Note**: Must be used in conjunction with the `count` parameter. Name of the developer app from which to start displaying the list of developer apps. For example, if you're returning 50 developer apps at a time (using the `count` query parameter), you can view developer apps 50-99 by entering the name of the 50th developer app. The developer app name is case sensitive.", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/apps", // "response": { - // "$ref": "GoogleCloudApigeeV1DeveloperAppKey" + // "$ref": "GoogleCloudApigeeV1ListDeveloperAppsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -16833,35 +16840,39 @@ func (c *OrganizationsDevelopersAppsKeysGetCall) Do(opts ...googleapi.CallOption } -// method id "apigee.organizations.developers.apps.keys.replaceDeveloperAppKey": +// method id "apigee.organizations.developers.apps.update": -type OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall struct { - s *Service - name string - googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsDevelopersAppsUpdateCall struct { + s *Service + name string + googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ReplaceDeveloperAppKey: Updates the scope of an app. This API -// replaces the existing scopes with those specified in the request. -// Include or exclude any existing scopes that you want to retain or -// delete, respectively. The specified scopes must already be defined -// for the API products associated with the app. This API sets the -// `scopes` element under the `apiProducts` element in the attributes of -// the app. -func (r *OrganizationsDevelopersAppsKeysService) ReplaceDeveloperAppKey(name string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall { - c := &OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Update: Updates the details for a developer app. In addition, you can +// add an API product to a developer app and automatically generate an +// API key for the app to use when calling APIs in the API product. If +// you want to use an existing API key for the API product, add the API +// product to the API key using the UpdateDeveloperAppKey API. Using +// this API, you cannot update the following: * App name as it is the +// primary key used to identify the app and cannot be changed. * Scopes +// associated with the app. Instead, use the ReplaceDeveloperAppKey API. +// This API replaces the existing attributes with those specified in the +// request. Include or exclude any existing attributes that you want to +// retain or delete, respectively. +func (r *OrganizationsDevelopersAppsService) Update(name string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsUpdateCall { + c := &OrganizationsDevelopersAppsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey + c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall { +func (c *OrganizationsDevelopersAppsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -16869,29 +16880,29 @@ func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Fields(s ... // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall { +func (c *OrganizationsDevelopersAppsUpdateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsUpdateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Header() http.Header { +func (c *OrganizationsDevelopersAppsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDevelopersAppsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp) if err != nil { return nil, err } @@ -16911,15 +16922,14 @@ func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) doRequest(al return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.developers.apps.keys.replaceDeveloperAppKey" call. -// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be +// Do executes the "apigee.organizations.developers.apps.update" call. +// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) { +// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsDevelopersAppsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -16938,7 +16948,7 @@ func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Do(opts ...g if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1DeveloperAppKey{ + ret := &GoogleCloudApigeeV1DeveloperApp{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -16950,28 +16960,28 @@ func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Do(opts ...g } return ret, nil // { - // "description": "Updates the scope of an app. This API replaces the existing scopes with those specified in the request. Include or exclude any existing scopes that you want to retain or delete, respectively. The specified scopes must already be defined for the API products associated with the app. This API sets the `scopes` element under the `apiProducts` element in the attributes of the app.", - // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}", + // "description": "Updates the details for a developer app. In addition, you can add an API product to a developer app and automatically generate an API key for the app to use when calling APIs in the API product. If you want to use an existing API key for the API product, add the API product to the API key using the UpdateDeveloperAppKey API. Using this API, you cannot update the following: * App name as it is the primary key used to identify the app and cannot be changed. * Scopes associated with the app. Instead, use the ReplaceDeveloperAppKey API. This API replaces the existing attributes with those specified in the request. Include or exclude any existing attributes that you want to retain or delete, respectively.", + // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}", // "httpMethod": "PUT", - // "id": "apigee.organizations.developers.apps.keys.replaceDeveloperAppKey", + // "id": "apigee.organizations.developers.apps.update", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Name of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`", + // "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`", // "location": "path", - // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$", + // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "request": { - // "$ref": "GoogleCloudApigeeV1DeveloperAppKey" + // "$ref": "GoogleCloudApigeeV1DeveloperApp" // }, // "response": { - // "$ref": "GoogleCloudApigeeV1DeveloperAppKey" + // "$ref": "GoogleCloudApigeeV1DeveloperApp" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -16980,43 +16990,27 @@ func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Do(opts ...g } -// method id "apigee.organizations.developers.apps.keys.updateDeveloperAppKey": +// method id "apigee.organizations.developers.apps.attributes.delete": -type OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall struct { - s *Service - name string - googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsDevelopersAppsAttributesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// UpdateDeveloperAppKey: Adds an API product to a developer app key, -// enabling the app that holds the key to access the API resources -// bundled in the API product. In addition, you can add attributes to a -// developer app key. This API replaces the existing attributes with -// those specified in the request. Include or exclude any existing -// attributes that you want to retain or delete, respectively. You can -// use the same key to access all API products associated with the app. -func (r *OrganizationsDevelopersAppsKeysService) UpdateDeveloperAppKey(name string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall { - c := &OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Delete: Deletes a developer app attribute. +func (r *OrganizationsDevelopersAppsAttributesService) Delete(name string) *OrganizationsDevelopersAppsAttributesDeleteCall { + c := &OrganizationsDevelopersAppsAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey - return c -} - -// Action sets the optional parameter "action": Approve or revoke the -// consumer key by setting this value to `approve` or `revoke`, -// respectively. -func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Action(action string) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall { - c.urlParams_.Set("action", action) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall { +func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -17024,38 +17018,33 @@ func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Fields(s ...g // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall { +func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Header() http.Header { +func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDevelopersAppsAttributesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -17066,15 +17055,14 @@ func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.developers.apps.keys.updateDeveloperAppKey" call. -// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be +// Do executes the "apigee.organizations.developers.apps.attributes.delete" call. +// Exactly one of *GoogleCloudApigeeV1Attribute or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) { +// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -17093,7 +17081,7 @@ func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Do(opts ...go if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1DeveloperAppKey{ + ret := &GoogleCloudApigeeV1Attribute{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -17105,33 +17093,25 @@ func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Do(opts ...go } return ret, nil // { - // "description": "Adds an API product to a developer app key, enabling the app that holds the key to access the API resources bundled in the API product. In addition, you can add attributes to a developer app key. This API replaces the existing attributes with those specified in the request. Include or exclude any existing attributes that you want to retain or delete, respectively. You can use the same key to access all API products associated with the app.", - // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}", - // "httpMethod": "POST", - // "id": "apigee.organizations.developers.apps.keys.updateDeveloperAppKey", + // "description": "Deletes a developer app attribute.", + // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes/{attributesId}", + // "httpMethod": "DELETE", + // "id": "apigee.organizations.developers.apps.attributes.delete", // "parameterOrder": [ // "name" // ], // "parameters": { - // "action": { - // "description": "Approve or revoke the consumer key by setting this value to `approve` or `revoke`, respectively.", - // "location": "query", - // "type": "string" - // }, // "name": { - // "description": "Name of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`", + // "description": "Required. Name of the developer app attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/attributes/{attribute}`", // "location": "path", - // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$", + // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/attributes/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudApigeeV1DeveloperAppKey" - // }, // "response": { - // "$ref": "GoogleCloudApigeeV1DeveloperAppKey" + // "$ref": "GoogleCloudApigeeV1Attribute" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -17140,22 +17120,20 @@ func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Do(opts ...go } -// method id "apigee.organizations.developers.apps.keys.apiproducts.delete": +// method id "apigee.organizations.developers.apps.attributes.get": -type OrganizationsDevelopersAppsKeysApiproductsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsDevelopersAppsAttributesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Removes an API product from an app's consumer key. After the -// API product is removed, the app cannot access the API resources -// defined in that API product. **Note**: The consumer key is not -// removed, only its association with the API product. -func (r *OrganizationsDevelopersAppsKeysApiproductsService) Delete(name string) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall { - c := &OrganizationsDevelopersAppsKeysApiproductsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Get: Returns a developer app attribute. +func (r *OrganizationsDevelopersAppsAttributesService) Get(name string) *OrganizationsDevelopersAppsAttributesGetCall { + c := &OrganizationsDevelopersAppsAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -17163,41 +17141,54 @@ func (r *OrganizationsDevelopersAppsKeysApiproductsService) Delete(name string) // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall { +func (c *OrganizationsDevelopersAppsAttributesGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsDevelopersAppsAttributesGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsAttributesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall { +func (c *OrganizationsDevelopersAppsAttributesGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Header() http.Header { +func (c *OrganizationsDevelopersAppsAttributesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDevelopersAppsAttributesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -17208,15 +17199,14 @@ func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) doRequest(alt str return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.developers.apps.keys.apiproducts.delete" call. -// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be +// Do executes the "apigee.organizations.developers.apps.attributes.get" call. +// Exactly one of *GoogleCloudApigeeV1Attribute or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) { +// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsDevelopersAppsAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -17235,7 +17225,7 @@ func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Do(opts ...google if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1DeveloperAppKey{ + ret := &GoogleCloudApigeeV1Attribute{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -17247,25 +17237,25 @@ func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Do(opts ...google } return ret, nil // { - // "description": "Removes an API product from an app's consumer key. After the API product is removed, the app cannot access the API resources defined in that API product. **Note**: The consumer key is not removed, only its association with the API product.", - // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}/apiproducts/{apiproductsId}", - // "httpMethod": "DELETE", - // "id": "apigee.organizations.developers.apps.keys.apiproducts.delete", + // "description": "Returns a developer app attribute.", + // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes/{attributesId}", + // "httpMethod": "GET", + // "id": "apigee.organizations.developers.apps.attributes.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Name of the API product in the developer app key in the following format: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}/apiproducts/{apiproduct}`", + // "description": "Required. Name of the developer app attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/attributes/{attribute}`", // "location": "path", - // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+/apiproducts/[^/]+$", + // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/attributes/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudApigeeV1DeveloperAppKey" + // "$ref": "GoogleCloudApigeeV1Attribute" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -17274,93 +17264,93 @@ func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Do(opts ...google } -// method id "apigee.organizations.developers.apps.keys.apiproducts.updateDeveloperAppKeyApiProduct": - -type OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} +// method id "apigee.organizations.developers.apps.attributes.list": -// UpdateDeveloperAppKeyApiProduct: Approve or revoke an app's consumer -// key. After a consumer key is approved, the app can use it to access -// APIs. A consumer key that is revoked or pending cannot be used to -// access an API. Any access tokens associated with a revoked consumer -// key will remain active. However, Apigee hybrid checks the status of -// the consumer key and if set to `revoked` will not allow access to the -// API. -func (r *OrganizationsDevelopersAppsKeysApiproductsService) UpdateDeveloperAppKeyApiProduct(name string) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall { - c := &OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c +type OrganizationsDevelopersAppsAttributesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Action sets the optional parameter "action": Approve or revoke the -// consumer key by setting this value to `approve` or `revoke`, -// respectively. -func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Action(action string) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall { - c.urlParams_.Set("action", action) +// List: Returns a list of all developer app attributes. +func (r *OrganizationsDevelopersAppsAttributesService) List(parent string) *OrganizationsDevelopersAppsAttributesListCall { + c := &OrganizationsDevelopersAppsAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall { +func (c *OrganizationsDevelopersAppsAttributesListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsDevelopersAppsAttributesListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsAttributesListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall { +func (c *OrganizationsDevelopersAppsAttributesListCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Header() http.Header { +func (c *OrganizationsDevelopersAppsAttributesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDevelopersAppsAttributesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.developers.apps.keys.apiproducts.updateDeveloperAppKeyApiProduct" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was +// Do executes the "apigee.organizations.developers.apps.attributes.list" call. +// Exactly one of *GoogleCloudApigeeV1Attributes or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *OrganizationsDevelopersAppsAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -17379,7 +17369,7 @@ func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProdu if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudApigeeV1Attributes{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -17391,30 +17381,172 @@ func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProdu } return ret, nil // { - // "description": "Approve or revoke an app's consumer key. After a consumer key is approved, the app can use it to access APIs. A consumer key that is revoked or pending cannot be used to access an API. Any access tokens associated with a revoked consumer key will remain active. However, Apigee hybrid checks the status of the consumer key and if set to `revoked` will not allow access to the API.", - // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}/apiproducts/{apiproductsId}", + // "description": "Returns a list of all developer app attributes.", + // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes", + // "httpMethod": "GET", + // "id": "apigee.organizations.developers.apps.attributes.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`", + // "location": "path", + // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/attributes", + // "response": { + // "$ref": "GoogleCloudApigeeV1Attributes" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "apigee.organizations.developers.apps.attributes.updateDeveloperAppAttribute": + +type OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall struct { + s *Service + name string + googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpdateDeveloperAppAttribute: Updates a developer app attribute. +// **Note**: OAuth access tokens and Key Management Service (KMS) +// entities (apps, developers, and API products) are cached for 180 +// seconds (current default). Any custom attributes associated with +// these entities are cached for at least 180 seconds after the entity +// is accessed at runtime. Therefore, an `ExpiresIn` element on the +// OAuthV2 policy won't be able to expire an access token in less than +// 180 seconds. +func (r *OrganizationsDevelopersAppsAttributesService) UpdateDeveloperAppAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall { + c := &OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudapigeev1attribute = googlecloudapigeev1attribute + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attribute) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "apigee.organizations.developers.apps.attributes.updateDeveloperAppAttribute" call. +// Exactly one of *GoogleCloudApigeeV1Attribute or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudApigeeV1Attribute{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a developer app attribute. **Note**: OAuth access tokens and Key Management Service (KMS) entities (apps, developers, and API products) are cached for 180 seconds (current default). Any custom attributes associated with these entities are cached for at least 180 seconds after the entity is accessed at runtime. Therefore, an `ExpiresIn` element on the OAuthV2 policy won't be able to expire an access token in less than 180 seconds.", + // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes/{attributesId}", // "httpMethod": "POST", - // "id": "apigee.organizations.developers.apps.keys.apiproducts.updateDeveloperAppKeyApiProduct", + // "id": "apigee.organizations.developers.apps.attributes.updateDeveloperAppAttribute", // "parameterOrder": [ // "name" // ], // "parameters": { - // "action": { - // "description": "Approve or revoke the consumer key by setting this value to `approve` or `revoke`, respectively.", - // "location": "query", - // "type": "string" - // }, // "name": { - // "description": "Name of the API product in the developer app key in the following format: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}/apiproducts/{apiproduct}`", + // "description": "Required. Name of the developer app attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/attributes/{attribute}`", // "location": "path", - // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+/apiproducts/[^/]+$", + // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/attributes/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudApigeeV1Attribute" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudApigeeV1Attribute" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -17423,9 +17555,9 @@ func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProdu } -// method id "apigee.organizations.developers.apps.keys.create.create": +// method id "apigee.organizations.developers.apps.keys.create": -type OrganizationsDevelopersAppsKeysCreateCreateCall struct { +type OrganizationsDevelopersAppsKeysCreateCall struct { s *Service parent string googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey @@ -17447,8 +17579,8 @@ type OrganizationsDevelopersAppsKeysCreateCreateCall struct { // key and secret are created. If a consumer key and secret already // exist, you can keep them or delete them using the // DeleteDeveloperAppKey API. -func (r *OrganizationsDevelopersAppsKeysCreateService) Create(parent string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysCreateCreateCall { - c := &OrganizationsDevelopersAppsKeysCreateCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *OrganizationsDevelopersAppsKeysService) Create(parent string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysCreateCall { + c := &OrganizationsDevelopersAppsKeysCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey return c @@ -17457,7 +17589,7 @@ func (r *OrganizationsDevelopersAppsKeysCreateService) Create(parent string, goo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysCreateCreateCall { +func (c *OrganizationsDevelopersAppsKeysCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -17465,23 +17597,23 @@ func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Fields(s ...googleapi. // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysCreateCreateCall { +func (c *OrganizationsDevelopersAppsKeysCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Header() http.Header { +func (c *OrganizationsDevelopersAppsKeysCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDevelopersAppsKeysCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17494,7 +17626,7 @@ func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) doRequest(alt string) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keys/create") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keys") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -17507,7 +17639,7 @@ func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.developers.apps.keys.create.create" call. +// Do executes the "apigee.organizations.developers.apps.keys.create" call. // Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be // non-nil. Any non-2xx status code is an error. Response headers are in // either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or @@ -17515,7 +17647,7 @@ func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) doRequest(alt string) // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) { +func (c *OrganizationsDevelopersAppsKeysCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -17547,9 +17679,9 @@ func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Do(opts ...googleapi.C return ret, nil // { // "description": "Creates a custom consumer key and secret for a developer app. This is particularly useful if you want to migrate existing consumer keys and secrets to Apigee hybrid from another system. Consumer keys and secrets can contain letters, numbers, underscores, and hyphens. No other special characters are allowed. To avoid service disruptions, a consumer key and secret should not exceed 2 KBs each. **Note**: When creating the consumer key and secret, an association to API products will not be made. Therefore, you should not specify the associated API products in your request. Instead, use the UpdateDeveloperAppKey API to make the association after the consumer key and secret are created. If a consumer key and secret already exist, you can keep them or delete them using the DeleteDeveloperAppKey API.", - // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/create", + // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys", // "httpMethod": "POST", - // "id": "apigee.organizations.developers.apps.keys.create.create", + // "id": "apigee.organizations.developers.apps.keys.create", // "parameterOrder": [ // "parent" // ], @@ -17562,7 +17694,7 @@ func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Do(opts ...googleapi.C // "type": "string" // } // }, - // "path": "v1/{+parent}/keys/create", + // "path": "v1/{+parent}/keys", // "request": { // "$ref": "GoogleCloudApigeeV1DeveloperAppKey" // }, @@ -17576,9 +17708,9 @@ func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Do(opts ...googleapi.C } -// method id "apigee.organizations.developers.attributes.delete": +// method id "apigee.organizations.developers.apps.keys.delete": -type OrganizationsDevelopersAttributesDeleteCall struct { +type OrganizationsDevelopersAppsKeysDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -17586,9 +17718,15 @@ type OrganizationsDevelopersAttributesDeleteCall struct { header_ http.Header } -// Delete: Deletes a developer attribute. -func (r *OrganizationsDevelopersAttributesService) Delete(name string) *OrganizationsDevelopersAttributesDeleteCall { - c := &OrganizationsDevelopersAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Delete: Deletes an app's consumer key and removes all API products +// associated with the app. After the consumer key is deleted, it cannot +// be used to access any APIs. **Note**: After you delete a consumer +// key, you may want to: 1. Create a new consumer key and secret for the +// developer app using the CreateDeveloperAppKey API, and subsequently +// add an API product to the key using the UpdateDeveloperAppKey API. 2. +// Delete the developer app, if it is no longer required. +func (r *OrganizationsDevelopersAppsKeysService) Delete(name string) *OrganizationsDevelopersAppsKeysDeleteCall { + c := &OrganizationsDevelopersAppsKeysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -17596,7 +17734,7 @@ func (r *OrganizationsDevelopersAttributesService) Delete(name string) *Organiza // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsDevelopersAttributesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesDeleteCall { +func (c *OrganizationsDevelopersAppsKeysDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -17604,23 +17742,23 @@ func (c *OrganizationsDevelopersAttributesDeleteCall) Fields(s ...googleapi.Fiel // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsDevelopersAttributesDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesDeleteCall { +func (c *OrganizationsDevelopersAppsKeysDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsDevelopersAttributesDeleteCall) Header() http.Header { +func (c *OrganizationsDevelopersAppsKeysDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsDevelopersAttributesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDevelopersAppsKeysDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17641,14 +17779,15 @@ func (c *OrganizationsDevelopersAttributesDeleteCall) doRequest(alt string) (*ht return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.developers.attributes.delete" call. -// Exactly one of *GoogleCloudApigeeV1Attribute or error will be +// Do executes the "apigee.organizations.developers.apps.keys.delete" call. +// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *OrganizationsDevelopersAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) { +// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsDevelopersAppsKeysDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -17667,7 +17806,7 @@ func (c *OrganizationsDevelopersAttributesDeleteCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Attribute{ + ret := &GoogleCloudApigeeV1DeveloperAppKey{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -17679,25 +17818,25 @@ func (c *OrganizationsDevelopersAttributesDeleteCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Deletes a developer attribute.", - // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes/{attributesId}", + // "description": "Deletes an app's consumer key and removes all API products associated with the app. After the consumer key is deleted, it cannot be used to access any APIs. **Note**: After you delete a consumer key, you may want to: 1. Create a new consumer key and secret for the developer app using the CreateDeveloperAppKey API, and subsequently add an API product to the key using the UpdateDeveloperAppKey API. 2. Delete the developer app, if it is no longer required.", + // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}", // "httpMethod": "DELETE", - // "id": "apigee.organizations.developers.attributes.delete", + // "id": "apigee.organizations.developers.apps.keys.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Name of the developer attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/attributes/{attribute}`", + // "description": "Name of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`", // "location": "path", - // "pattern": "^organizations/[^/]+/developers/[^/]+/attributes/[^/]+$", + // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudApigeeV1Attribute" + // "$ref": "GoogleCloudApigeeV1DeveloperAppKey" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -17706,9 +17845,9 @@ func (c *OrganizationsDevelopersAttributesDeleteCall) Do(opts ...googleapi.CallO } -// method id "apigee.organizations.developers.attributes.get": +// method id "apigee.organizations.developers.apps.keys.get": -type OrganizationsDevelopersAttributesGetCall struct { +type OrganizationsDevelopersAppsKeysGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -17717,9 +17856,11 @@ type OrganizationsDevelopersAttributesGetCall struct { header_ http.Header } -// Get: Returns the value of the specified developer attribute. -func (r *OrganizationsDevelopersAttributesService) Get(name string) *OrganizationsDevelopersAttributesGetCall { - c := &OrganizationsDevelopersAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Get: Returns details for a consumer key for a developer app, +// including the key and secret value, associated API products, and +// other information. +func (r *OrganizationsDevelopersAppsKeysService) Get(name string) *OrganizationsDevelopersAppsKeysGetCall { + c := &OrganizationsDevelopersAppsKeysGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -17727,7 +17868,7 @@ func (r *OrganizationsDevelopersAttributesService) Get(name string) *Organizatio // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsDevelopersAttributesGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesGetCall { +func (c *OrganizationsDevelopersAppsKeysGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -17737,7 +17878,7 @@ func (c *OrganizationsDevelopersAttributesGetCall) Fields(s ...googleapi.Field) // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OrganizationsDevelopersAttributesGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAttributesGetCall { +func (c *OrganizationsDevelopersAppsKeysGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsKeysGetCall { c.ifNoneMatch_ = entityTag return c } @@ -17745,23 +17886,23 @@ func (c *OrganizationsDevelopersAttributesGetCall) IfNoneMatch(entityTag string) // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsDevelopersAttributesGetCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesGetCall { +func (c *OrganizationsDevelopersAppsKeysGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsDevelopersAttributesGetCall) Header() http.Header { +func (c *OrganizationsDevelopersAppsKeysGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsDevelopersAttributesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDevelopersAppsKeysGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17785,14 +17926,15 @@ func (c *OrganizationsDevelopersAttributesGetCall) doRequest(alt string) (*http. return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.developers.attributes.get" call. -// Exactly one of *GoogleCloudApigeeV1Attribute or error will be +// Do executes the "apigee.organizations.developers.apps.keys.get" call. +// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *OrganizationsDevelopersAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) { +// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsDevelopersAppsKeysGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -17811,7 +17953,7 @@ func (c *OrganizationsDevelopersAttributesGetCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Attribute{ + ret := &GoogleCloudApigeeV1DeveloperAppKey{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -17823,25 +17965,25 @@ func (c *OrganizationsDevelopersAttributesGetCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Returns the value of the specified developer attribute.", - // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes/{attributesId}", + // "description": "Returns details for a consumer key for a developer app, including the key and secret value, associated API products, and other information.", + // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}", // "httpMethod": "GET", - // "id": "apigee.organizations.developers.attributes.get", + // "id": "apigee.organizations.developers.apps.keys.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Name of the developer attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/attributes/{attribute}`", + // "description": "Name of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`", // "location": "path", - // "pattern": "^organizations/[^/]+/developers/[^/]+/attributes/[^/]+$", + // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudApigeeV1Attribute" + // "$ref": "GoogleCloudApigeeV1DeveloperAppKey" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -17850,93 +17992,93 @@ func (c *OrganizationsDevelopersAttributesGetCall) Do(opts ...googleapi.CallOpti } -// method id "apigee.organizations.developers.attributes.list": +// method id "apigee.organizations.developers.apps.keys.replaceDeveloperAppKey": -type OrganizationsDevelopersAttributesListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall struct { + s *Service + name string + googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Returns a list of all developer attributes. -func (r *OrganizationsDevelopersAttributesService) List(parent string) *OrganizationsDevelopersAttributesListCall { - c := &OrganizationsDevelopersAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// ReplaceDeveloperAppKey: Updates the scope of an app. This API +// replaces the existing scopes with those specified in the request. +// Include or exclude any existing scopes that you want to retain or +// delete, respectively. The specified scopes must already be defined +// for the API products associated with the app. This API sets the +// `scopes` element under the `apiProducts` element in the attributes of +// the app. +func (r *OrganizationsDevelopersAppsKeysService) ReplaceDeveloperAppKey(name string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall { + c := &OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsDevelopersAttributesListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesListCall { +func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsDevelopersAttributesListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAttributesListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsDevelopersAttributesListCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesListCall { +func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsDevelopersAttributesListCall) Header() http.Header { +func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsDevelopersAttributesListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("PUT", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.developers.attributes.list" call. -// Exactly one of *GoogleCloudApigeeV1Attributes or error will be +// Do executes the "apigee.organizations.developers.apps.keys.replaceDeveloperAppKey" call. +// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *OrganizationsDevelopersAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) { +// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -17955,7 +18097,7 @@ func (c *OrganizationsDevelopersAttributesListCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Attributes{ + ret := &GoogleCloudApigeeV1DeveloperAppKey{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -17967,25 +18109,28 @@ func (c *OrganizationsDevelopersAttributesListCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Returns a list of all developer attributes.", - // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes", - // "httpMethod": "GET", - // "id": "apigee.organizations.developers.attributes.list", + // "description": "Updates the scope of an app. This API replaces the existing scopes with those specified in the request. Include or exclude any existing scopes that you want to retain or delete, respectively. The specified scopes must already be defined for the API products associated with the app. This API sets the `scopes` element under the `apiProducts` element in the attributes of the app.", + // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}", + // "httpMethod": "PUT", + // "id": "apigee.organizations.developers.apps.keys.replaceDeveloperAppKey", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. Email address of the developer for which attributes are being listed in the following format: `organizations/{org}/developers/{developer_email}`", + // "name": { + // "description": "Name of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`", // "location": "path", - // "pattern": "^organizations/[^/]+/developers/[^/]+$", + // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/attributes", + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudApigeeV1DeveloperAppKey" + // }, // "response": { - // "$ref": "GoogleCloudApigeeV1Attributes" + // "$ref": "GoogleCloudApigeeV1DeveloperAppKey" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -17994,35 +18139,43 @@ func (c *OrganizationsDevelopersAttributesListCall) Do(opts ...googleapi.CallOpt } -// method id "apigee.organizations.developers.attributes.updateDeveloperAttribute": +// method id "apigee.organizations.developers.apps.keys.updateDeveloperAppKey": -type OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall struct { - s *Service - name string - googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall struct { + s *Service + name string + googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// UpdateDeveloperAttribute: Updates a developer attribute. **Note**: -// OAuth access tokens and Key Management Service (KMS) entities (apps, -// developers, and API products) are cached for 180 seconds (default). -// Any custom attributes associated with these entities are cached for -// at least 180 seconds after the entity is accessed at runtime. -// Therefore, an `ExpiresIn` element on the OAuthV2 policy won't be able -// to expire an access token in less than 180 seconds. -func (r *OrganizationsDevelopersAttributesService) UpdateDeveloperAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall { - c := &OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// UpdateDeveloperAppKey: Adds an API product to a developer app key, +// enabling the app that holds the key to access the API resources +// bundled in the API product. In addition, you can add attributes to a +// developer app key. This API replaces the existing attributes with +// those specified in the request. Include or exclude any existing +// attributes that you want to retain or delete, respectively. You can +// use the same key to access all API products associated with the app. +func (r *OrganizationsDevelopersAppsKeysService) UpdateDeveloperAppKey(name string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall { + c := &OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudapigeev1attribute = googlecloudapigeev1attribute + c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey + return c +} + +// Action sets the optional parameter "action": Approve or revoke the +// consumer key by setting this value to `approve` or `revoke`, +// respectively. +func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Action(action string) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall { + c.urlParams_.Set("action", action) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall { +func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -18030,29 +18183,29 @@ func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Fields(s // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall { +func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Header() http.Header { +func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attribute) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey) if err != nil { return nil, err } @@ -18072,14 +18225,15 @@ func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) doReques return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.developers.attributes.updateDeveloperAttribute" call. -// Exactly one of *GoogleCloudApigeeV1Attribute or error will be +// Do executes the "apigee.organizations.developers.apps.keys.updateDeveloperAppKey" call. +// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) { +// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -18098,7 +18252,7 @@ func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Do(opts if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Attribute{ + ret := &GoogleCloudApigeeV1DeveloperAppKey{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -18110,28 +18264,33 @@ func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Do(opts } return ret, nil // { - // "description": "Updates a developer attribute. **Note**: OAuth access tokens and Key Management Service (KMS) entities (apps, developers, and API products) are cached for 180 seconds (default). Any custom attributes associated with these entities are cached for at least 180 seconds after the entity is accessed at runtime. Therefore, an `ExpiresIn` element on the OAuthV2 policy won't be able to expire an access token in less than 180 seconds.", - // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes/{attributesId}", + // "description": "Adds an API product to a developer app key, enabling the app that holds the key to access the API resources bundled in the API product. In addition, you can add attributes to a developer app key. This API replaces the existing attributes with those specified in the request. Include or exclude any existing attributes that you want to retain or delete, respectively. You can use the same key to access all API products associated with the app.", + // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}", // "httpMethod": "POST", - // "id": "apigee.organizations.developers.attributes.updateDeveloperAttribute", + // "id": "apigee.organizations.developers.apps.keys.updateDeveloperAppKey", // "parameterOrder": [ // "name" // ], // "parameters": { + // "action": { + // "description": "Approve or revoke the consumer key by setting this value to `approve` or `revoke`, respectively.", + // "location": "query", + // "type": "string" + // }, // "name": { - // "description": "Required. Name of the developer attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/attributes/{attribute}`", + // "description": "Name of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`", // "location": "path", - // "pattern": "^organizations/[^/]+/developers/[^/]+/attributes/[^/]+$", + // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "request": { - // "$ref": "GoogleCloudApigeeV1Attribute" + // "$ref": "GoogleCloudApigeeV1DeveloperAppKey" // }, // "response": { - // "$ref": "GoogleCloudApigeeV1Attribute" + // "$ref": "GoogleCloudApigeeV1DeveloperAppKey" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -18140,36 +18299,30 @@ func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Do(opts } -// method id "apigee.organizations.envgroups.create": - -type OrganizationsEnvgroupsCreateCall struct { - s *Service - parent string - googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} +// method id "apigee.organizations.developers.apps.keys.apiproducts.delete": -// Create: Creates a new environment group. -func (r *OrganizationsEnvgroupsService) Create(parent string, googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup) *OrganizationsEnvgroupsCreateCall { - c := &OrganizationsEnvgroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudapigeev1environmentgroup = googlecloudapigeev1environmentgroup - return c +type OrganizationsDevelopersAppsKeysApiproductsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Name sets the optional parameter "name": ID of the environment group. -// Overrides any ID in the environment_group resource. -func (c *OrganizationsEnvgroupsCreateCall) Name(name string) *OrganizationsEnvgroupsCreateCall { - c.urlParams_.Set("name", name) +// Delete: Removes an API product from an app's consumer key. After the +// API product is removed, the app cannot access the API resources +// defined in that API product. **Note**: The consumer key is not +// removed, only its association with the API product. +func (r *OrganizationsDevelopersAppsKeysApiproductsService) Delete(name string) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall { + c := &OrganizationsDevelopersAppsKeysApiproductsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvgroupsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsCreateCall { +func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -18177,56 +18330,52 @@ func (c *OrganizationsEnvgroupsCreateCall) Fields(s ...googleapi.Field) *Organiz // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvgroupsCreateCall) Context(ctx context.Context) *OrganizationsEnvgroupsCreateCall { +func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvgroupsCreateCall) Header() http.Header { +func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvgroupsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environmentgroup) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/envgroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.envgroups.create" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *OrganizationsEnvgroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "apigee.organizations.developers.apps.keys.apiproducts.delete" call. +// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -18245,7 +18394,7 @@ func (c *OrganizationsEnvgroupsCreateCall) Do(opts ...googleapi.CallOption) (*Go if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudApigeeV1DeveloperAppKey{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -18257,33 +18406,25 @@ func (c *OrganizationsEnvgroupsCreateCall) Do(opts ...googleapi.CallOption) (*Go } return ret, nil // { - // "description": "Creates a new environment group.", - // "flatPath": "v1/organizations/{organizationsId}/envgroups", - // "httpMethod": "POST", - // "id": "apigee.organizations.envgroups.create", + // "description": "Removes an API product from an app's consumer key. After the API product is removed, the app cannot access the API resources defined in that API product. **Note**: The consumer key is not removed, only its association with the API product.", + // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}/apiproducts/{apiproductsId}", + // "httpMethod": "DELETE", + // "id": "apigee.organizations.developers.apps.keys.apiproducts.delete", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { // "name": { - // "description": "ID of the environment group. Overrides any ID in the environment_group resource.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Name of the organization in which to create the environment group in the following format: `organizations/{org}`.", + // "description": "Name of the API product in the developer app key in the following format: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}/apiproducts/{apiproduct}`", // "location": "path", - // "pattern": "^organizations/[^/]+$", + // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+/apiproducts/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/envgroups", - // "request": { - // "$ref": "GoogleCloudApigeeV1EnvironmentGroup" - // }, + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudApigeeV1DeveloperAppKey" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -18292,9 +18433,9 @@ func (c *OrganizationsEnvgroupsCreateCall) Do(opts ...googleapi.CallOption) (*Go } -// method id "apigee.organizations.envgroups.delete": +// method id "apigee.organizations.developers.apps.keys.apiproducts.updateDeveloperAppKeyApiProduct": -type OrganizationsEnvgroupsDeleteCall struct { +type OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -18302,17 +18443,31 @@ type OrganizationsEnvgroupsDeleteCall struct { header_ http.Header } -// Delete: Deletes an environment group. -func (r *OrganizationsEnvgroupsService) Delete(name string) *OrganizationsEnvgroupsDeleteCall { - c := &OrganizationsEnvgroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// UpdateDeveloperAppKeyApiProduct: Approve or revoke an app's consumer +// key. After a consumer key is approved, the app can use it to access +// APIs. A consumer key that is revoked or pending cannot be used to +// access an API. Any access tokens associated with a revoked consumer +// key will remain active. However, Apigee hybrid checks the status of +// the consumer key and if set to `revoked` will not allow access to the +// API. +func (r *OrganizationsDevelopersAppsKeysApiproductsService) UpdateDeveloperAppKeyApiProduct(name string) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall { + c := &OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Action sets the optional parameter "action": Approve or revoke the +// consumer key by setting this value to `approve` or `revoke`, +// respectively. +func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Action(action string) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall { + c.urlParams_.Set("action", action) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvgroupsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsDeleteCall { +func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -18320,23 +18475,23 @@ func (c *OrganizationsEnvgroupsDeleteCall) Fields(s ...googleapi.Field) *Organiz // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvgroupsDeleteCall) Context(ctx context.Context) *OrganizationsEnvgroupsDeleteCall { +func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvgroupsDeleteCall) Header() http.Header { +func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvgroupsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18346,7 +18501,7 @@ func (c *OrganizationsEnvgroupsDeleteCall) doRequest(alt string) (*http.Response c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -18357,14 +18512,14 @@ func (c *OrganizationsEnvgroupsDeleteCall) doRequest(alt string) (*http.Response return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.envgroups.delete" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "apigee.organizations.developers.apps.keys.apiproducts.updateDeveloperAppKeyApiProduct" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvgroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -18383,7 +18538,7 @@ func (c *OrganizationsEnvgroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Go if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -18395,25 +18550,30 @@ func (c *OrganizationsEnvgroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Go } return ret, nil // { - // "description": "Deletes an environment group.", - // "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}", - // "httpMethod": "DELETE", - // "id": "apigee.organizations.envgroups.delete", + // "description": "Approve or revoke an app's consumer key. After a consumer key is approved, the app can use it to access APIs. A consumer key that is revoked or pending cannot be used to access an API. Any access tokens associated with a revoked consumer key will remain active. However, Apigee hybrid checks the status of the consumer key and if set to `revoked` will not allow access to the API.", + // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}/apiproducts/{apiproductsId}", + // "httpMethod": "POST", + // "id": "apigee.organizations.developers.apps.keys.apiproducts.updateDeveloperAppKeyApiProduct", // "parameterOrder": [ // "name" // ], // "parameters": { + // "action": { + // "description": "Approve or revoke the consumer key by setting this value to `approve` or `revoke`, respectively.", + // "location": "query", + // "type": "string" + // }, // "name": { - // "description": "Required. Name of the environment group in the following format: `organizations/{org}/envgroups/{envgroup}`.", + // "description": "Name of the API product in the developer app key in the following format: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}/apiproducts/{apiproduct}`", // "location": "path", - // "pattern": "^organizations/[^/]+/envgroups/[^/]+$", + // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+/apiproducts/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -18422,94 +18582,99 @@ func (c *OrganizationsEnvgroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Go } -// method id "apigee.organizations.envgroups.get": +// method id "apigee.organizations.developers.apps.keys.create.create": -type OrganizationsEnvgroupsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsDevelopersAppsKeysCreateCreateCall struct { + s *Service + parent string + googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets an environment group. -func (r *OrganizationsEnvgroupsService) Get(name string) *OrganizationsEnvgroupsGetCall { - c := &OrganizationsEnvgroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// Create: Creates a custom consumer key and secret for a developer app. +// This is particularly useful if you want to migrate existing consumer +// keys and secrets to Apigee hybrid from another system. Consumer keys +// and secrets can contain letters, numbers, underscores, and hyphens. +// No other special characters are allowed. To avoid service +// disruptions, a consumer key and secret should not exceed 2 KBs each. +// **Note**: When creating the consumer key and secret, an association +// to API products will not be made. Therefore, you should not specify +// the associated API products in your request. Instead, use the +// UpdateDeveloperAppKey API to make the association after the consumer +// key and secret are created. If a consumer key and secret already +// exist, you can keep them or delete them using the +// DeleteDeveloperAppKey API. +func (r *OrganizationsDevelopersAppsKeysCreateService) Create(parent string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysCreateCreateCall { + c := &OrganizationsDevelopersAppsKeysCreateCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvgroupsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsGetCall { +func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysCreateCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsEnvgroupsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvgroupsGetCall) Context(ctx context.Context) *OrganizationsEnvgroupsGetCall { +func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysCreateCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvgroupsGetCall) Header() http.Header { +func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvgroupsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keys/create") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.envgroups.get" call. -// Exactly one of *GoogleCloudApigeeV1EnvironmentGroup or error will be +// Do executes the "apigee.organizations.developers.apps.keys.create.create" call. +// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1EnvironmentGroup.ServerResponse.Header or +// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or // (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *OrganizationsEnvgroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentGroup, error) { +func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -18528,7 +18693,7 @@ func (c *OrganizationsEnvgroupsGetCall) Do(opts ...googleapi.CallOption) (*Googl if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1EnvironmentGroup{ + ret := &GoogleCloudApigeeV1DeveloperAppKey{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -18540,25 +18705,28 @@ func (c *OrganizationsEnvgroupsGetCall) Do(opts ...googleapi.CallOption) (*Googl } return ret, nil // { - // "description": "Gets an environment group.", - // "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}", - // "httpMethod": "GET", - // "id": "apigee.organizations.envgroups.get", + // "description": "Creates a custom consumer key and secret for a developer app. This is particularly useful if you want to migrate existing consumer keys and secrets to Apigee hybrid from another system. Consumer keys and secrets can contain letters, numbers, underscores, and hyphens. No other special characters are allowed. To avoid service disruptions, a consumer key and secret should not exceed 2 KBs each. **Note**: When creating the consumer key and secret, an association to API products will not be made. Therefore, you should not specify the associated API products in your request. Instead, use the UpdateDeveloperAppKey API to make the association after the consumer key and secret are created. If a consumer key and secret already exist, you can keep them or delete them using the DeleteDeveloperAppKey API.", + // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/create", + // "httpMethod": "POST", + // "id": "apigee.organizations.developers.apps.keys.create.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. Name of the environment group in the following format: `organizations/{org}/envgroups/{envgroup}`.", + // "parent": { + // "description": "Parent of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps`", // "location": "path", - // "pattern": "^organizations/[^/]+/envgroups/[^/]+$", + // "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/keys/create", + // "request": { + // "$ref": "GoogleCloudApigeeV1DeveloperAppKey" + // }, // "response": { - // "$ref": "GoogleCloudApigeeV1EnvironmentGroup" + // "$ref": "GoogleCloudApigeeV1DeveloperAppKey" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -18567,110 +18735,79 @@ func (c *OrganizationsEnvgroupsGetCall) Do(opts ...googleapi.CallOption) (*Googl } -// method id "apigee.organizations.envgroups.list": - -type OrganizationsEnvgroupsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists all environment groups. -func (r *OrganizationsEnvgroupsService) List(parent string) *OrganizationsEnvgroupsListCall { - c := &OrganizationsEnvgroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} +// method id "apigee.organizations.developers.attributes.delete": -// PageSize sets the optional parameter "pageSize": Maximum number of -// environment groups to return. The page size defaults to 25. -func (c *OrganizationsEnvgroupsListCall) PageSize(pageSize int64) *OrganizationsEnvgroupsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c +type OrganizationsDevelopersAttributesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// PageToken sets the optional parameter "pageToken": Page token, -// returned from a previous ListEnvironmentGroups call, that you can use -// to retrieve the next page. -func (c *OrganizationsEnvgroupsListCall) PageToken(pageToken string) *OrganizationsEnvgroupsListCall { - c.urlParams_.Set("pageToken", pageToken) +// Delete: Deletes a developer attribute. +func (r *OrganizationsDevelopersAttributesService) Delete(name string) *OrganizationsDevelopersAttributesDeleteCall { + c := &OrganizationsDevelopersAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvgroupsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsListCall { +func (c *OrganizationsDevelopersAttributesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsEnvgroupsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvgroupsListCall) Context(ctx context.Context) *OrganizationsEnvgroupsListCall { +func (c *OrganizationsDevelopersAttributesDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvgroupsListCall) Header() http.Header { +func (c *OrganizationsDevelopersAttributesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvgroupsListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDevelopersAttributesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/envgroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.envgroups.list" call. -// Exactly one of *GoogleCloudApigeeV1ListEnvironmentGroupsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudApigeeV1ListEnvironmentGroupsResponse.ServerResponse.Heade -// r or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *OrganizationsEnvgroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentGroupsResponse, error) { +// Do executes the "apigee.organizations.developers.attributes.delete" call. +// Exactly one of *GoogleCloudApigeeV1Attribute or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsDevelopersAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -18689,7 +18826,7 @@ func (c *OrganizationsEnvgroupsListCall) Do(opts ...googleapi.CallOption) (*Goog if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1ListEnvironmentGroupsResponse{ + ret := &GoogleCloudApigeeV1Attribute{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -18701,36 +18838,25 @@ func (c *OrganizationsEnvgroupsListCall) Do(opts ...googleapi.CallOption) (*Goog } return ret, nil // { - // "description": "Lists all environment groups.", - // "flatPath": "v1/organizations/{organizationsId}/envgroups", - // "httpMethod": "GET", - // "id": "apigee.organizations.envgroups.list", + // "description": "Deletes a developer attribute.", + // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes/{attributesId}", + // "httpMethod": "DELETE", + // "id": "apigee.organizations.developers.attributes.delete", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "pageSize": { - // "description": "Maximum number of environment groups to return. The page size defaults to 25.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Page token, returned from a previous ListEnvironmentGroups call, that you can use to retrieve the next page.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Name of the organization for which to list environment groups in the following format: `organizations/{org}`.", + // "name": { + // "description": "Required. Name of the developer attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/attributes/{attribute}`", // "location": "path", - // "pattern": "^organizations/[^/]+$", + // "pattern": "^organizations/[^/]+/developers/[^/]+/attributes/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/envgroups", + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudApigeeV1ListEnvironmentGroupsResponse" + // "$ref": "GoogleCloudApigeeV1Attribute" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -18739,96 +18865,75 @@ func (c *OrganizationsEnvgroupsListCall) Do(opts ...googleapi.CallOption) (*Goog } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *OrganizationsEnvgroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListEnvironmentGroupsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -// method id "apigee.organizations.envgroups.patch": +// method id "apigee.organizations.developers.attributes.get": -type OrganizationsEnvgroupsPatchCall struct { - s *Service - name string - googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsDevelopersAttributesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Patch: Updates an environment group. -func (r *OrganizationsEnvgroupsService) Patch(name string, googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup) *OrganizationsEnvgroupsPatchCall { - c := &OrganizationsEnvgroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Get: Returns the value of the specified developer attribute. +func (r *OrganizationsDevelopersAttributesService) Get(name string) *OrganizationsDevelopersAttributesGetCall { + c := &OrganizationsDevelopersAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudapigeev1environmentgroup = googlecloudapigeev1environmentgroup - return c -} - -// UpdateMask sets the optional parameter "updateMask": List of fields -// to be updated. -func (c *OrganizationsEnvgroupsPatchCall) UpdateMask(updateMask string) *OrganizationsEnvgroupsPatchCall { - c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvgroupsPatchCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsPatchCall { +func (c *OrganizationsDevelopersAttributesGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsDevelopersAttributesGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAttributesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvgroupsPatchCall) Context(ctx context.Context) *OrganizationsEnvgroupsPatchCall { +func (c *OrganizationsDevelopersAttributesGetCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvgroupsPatchCall) Header() http.Header { +func (c *OrganizationsDevelopersAttributesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvgroupsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDevelopersAttributesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environmentgroup) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -18839,14 +18944,14 @@ func (c *OrganizationsEnvgroupsPatchCall) doRequest(alt string) (*http.Response, return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.envgroups.patch" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "apigee.organizations.developers.attributes.get" call. +// Exactly one of *GoogleCloudApigeeV1Attribute or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvgroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *OrganizationsDevelopersAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -18865,7 +18970,7 @@ func (c *OrganizationsEnvgroupsPatchCall) Do(opts ...googleapi.CallOption) (*Goo if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudApigeeV1Attribute{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -18877,34 +18982,25 @@ func (c *OrganizationsEnvgroupsPatchCall) Do(opts ...googleapi.CallOption) (*Goo } return ret, nil // { - // "description": "Updates an environment group.", - // "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}", - // "httpMethod": "PATCH", - // "id": "apigee.organizations.envgroups.patch", + // "description": "Returns the value of the specified developer attribute.", + // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes/{attributesId}", + // "httpMethod": "GET", + // "id": "apigee.organizations.developers.attributes.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Name of the environment group to update in the format: `organizations/{org}/envgroups/{envgroup}.", + // "description": "Required. Name of the developer attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/attributes/{attribute}`", // "location": "path", - // "pattern": "^organizations/[^/]+/envgroups/[^/]+$", + // "pattern": "^organizations/[^/]+/developers/[^/]+/attributes/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "List of fields to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudApigeeV1EnvironmentGroup" - // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudApigeeV1Attribute" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -18913,67 +19009,363 @@ func (c *OrganizationsEnvgroupsPatchCall) Do(opts ...googleapi.CallOption) (*Goo } -// method id "apigee.organizations.envgroups.attachments.create": +// method id "apigee.organizations.developers.attributes.list": -type OrganizationsEnvgroupsAttachmentsCreateCall struct { - s *Service - parent string - googlecloudapigeev1environmentgroupattachment *GoogleCloudApigeeV1EnvironmentGroupAttachment - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsDevelopersAttributesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a new attachment of an environment to an environment -// group. -func (r *OrganizationsEnvgroupsAttachmentsService) Create(parent string, googlecloudapigeev1environmentgroupattachment *GoogleCloudApigeeV1EnvironmentGroupAttachment) *OrganizationsEnvgroupsAttachmentsCreateCall { - c := &OrganizationsEnvgroupsAttachmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// List: Returns a list of all developer attributes. +func (r *OrganizationsDevelopersAttributesService) List(parent string) *OrganizationsDevelopersAttributesListCall { + c := &OrganizationsDevelopersAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudapigeev1environmentgroupattachment = googlecloudapigeev1environmentgroupattachment return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsCreateCall { +func (c *OrganizationsDevelopersAttributesListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsDevelopersAttributesListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAttributesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsCreateCall { +func (c *OrganizationsDevelopersAttributesListCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Header() http.Header { +func (c *OrganizationsDevelopersAttributesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvgroupsAttachmentsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsDevelopersAttributesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environmentgroupattachment) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "apigee.organizations.developers.attributes.list" call. +// Exactly one of *GoogleCloudApigeeV1Attributes or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsDevelopersAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudApigeeV1Attributes{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns a list of all developer attributes.", + // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes", + // "httpMethod": "GET", + // "id": "apigee.organizations.developers.attributes.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Email address of the developer for which attributes are being listed in the following format: `organizations/{org}/developers/{developer_email}`", + // "location": "path", + // "pattern": "^organizations/[^/]+/developers/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/attributes", + // "response": { + // "$ref": "GoogleCloudApigeeV1Attributes" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "apigee.organizations.developers.attributes.updateDeveloperAttribute": + +type OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall struct { + s *Service + name string + googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpdateDeveloperAttribute: Updates a developer attribute. **Note**: +// OAuth access tokens and Key Management Service (KMS) entities (apps, +// developers, and API products) are cached for 180 seconds (default). +// Any custom attributes associated with these entities are cached for +// at least 180 seconds after the entity is accessed at runtime. +// Therefore, an `ExpiresIn` element on the OAuthV2 policy won't be able +// to expire an access token in less than 180 seconds. +func (r *OrganizationsDevelopersAttributesService) UpdateDeveloperAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall { + c := &OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudapigeev1attribute = googlecloudapigeev1attribute + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attribute) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "apigee.organizations.developers.attributes.updateDeveloperAttribute" call. +// Exactly one of *GoogleCloudApigeeV1Attribute or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudApigeeV1Attribute{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a developer attribute. **Note**: OAuth access tokens and Key Management Service (KMS) entities (apps, developers, and API products) are cached for 180 seconds (default). Any custom attributes associated with these entities are cached for at least 180 seconds after the entity is accessed at runtime. Therefore, an `ExpiresIn` element on the OAuthV2 policy won't be able to expire an access token in less than 180 seconds.", + // "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes/{attributesId}", + // "httpMethod": "POST", + // "id": "apigee.organizations.developers.attributes.updateDeveloperAttribute", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the developer attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/attributes/{attribute}`", + // "location": "path", + // "pattern": "^organizations/[^/]+/developers/[^/]+/attributes/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudApigeeV1Attribute" + // }, + // "response": { + // "$ref": "GoogleCloudApigeeV1Attribute" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "apigee.organizations.envgroups.create": + +type OrganizationsEnvgroupsCreateCall struct { + s *Service + parent string + googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new environment group. +func (r *OrganizationsEnvgroupsService) Create(parent string, googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup) *OrganizationsEnvgroupsCreateCall { + c := &OrganizationsEnvgroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudapigeev1environmentgroup = googlecloudapigeev1environmentgroup + return c +} + +// Name sets the optional parameter "name": ID of the environment group. +// Overrides any ID in the environment_group resource. +func (c *OrganizationsEnvgroupsCreateCall) Name(name string) *OrganizationsEnvgroupsCreateCall { + c.urlParams_.Set("name", name) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsEnvgroupsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsEnvgroupsCreateCall) Context(ctx context.Context) *OrganizationsEnvgroupsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsEnvgroupsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsEnvgroupsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environmentgroup) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/envgroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -18986,14 +19378,14 @@ func (c *OrganizationsEnvgroupsAttachmentsCreateCall) doRequest(alt string) (*ht return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.envgroups.attachments.create" call. +// Do executes the "apigee.organizations.envgroups.create" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.ServerResponse.Header or (if a response // was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *OrganizationsEnvgroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -19024,25 +19416,30 @@ func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Creates a new attachment of an environment to an environment group.", - // "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments", + // "description": "Creates a new environment group.", + // "flatPath": "v1/organizations/{organizationsId}/envgroups", // "httpMethod": "POST", - // "id": "apigee.organizations.envgroups.attachments.create", + // "id": "apigee.organizations.envgroups.create", // "parameterOrder": [ // "parent" // ], // "parameters": { + // "name": { + // "description": "ID of the environment group. Overrides any ID in the environment_group resource.", + // "location": "query", + // "type": "string" + // }, // "parent": { - // "description": "Required. EnvironmentGroup under which to create the attachment in the following format: `organizations/{org}/envgroups/{envgroup}`.", + // "description": "Required. Name of the organization in which to create the environment group in the following format: `organizations/{org}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/envgroups/[^/]+$", + // "pattern": "^organizations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/attachments", + // "path": "v1/{+parent}/envgroups", // "request": { - // "$ref": "GoogleCloudApigeeV1EnvironmentGroupAttachment" + // "$ref": "GoogleCloudApigeeV1EnvironmentGroup" // }, // "response": { // "$ref": "GoogleLongrunningOperation" @@ -19054,9 +19451,9 @@ func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Do(opts ...googleapi.CallO } -// method id "apigee.organizations.envgroups.attachments.delete": +// method id "apigee.organizations.envgroups.delete": -type OrganizationsEnvgroupsAttachmentsDeleteCall struct { +type OrganizationsEnvgroupsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -19064,9 +19461,9 @@ type OrganizationsEnvgroupsAttachmentsDeleteCall struct { header_ http.Header } -// Delete: Deletes an environment group attachment. -func (r *OrganizationsEnvgroupsAttachmentsService) Delete(name string) *OrganizationsEnvgroupsAttachmentsDeleteCall { - c := &OrganizationsEnvgroupsAttachmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Delete: Deletes an environment group. +func (r *OrganizationsEnvgroupsService) Delete(name string) *OrganizationsEnvgroupsDeleteCall { + c := &OrganizationsEnvgroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -19074,7 +19471,7 @@ func (r *OrganizationsEnvgroupsAttachmentsService) Delete(name string) *Organiza // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsDeleteCall { +func (c *OrganizationsEnvgroupsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -19082,23 +19479,23 @@ func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Fields(s ...googleapi.Fiel // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsDeleteCall { +func (c *OrganizationsEnvgroupsDeleteCall) Context(ctx context.Context) *OrganizationsEnvgroupsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Header() http.Header { +func (c *OrganizationsEnvgroupsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvgroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19119,14 +19516,14 @@ func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) doRequest(alt string) (*ht return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.envgroups.attachments.delete" call. +// Do executes the "apigee.organizations.envgroups.delete" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.ServerResponse.Header or (if a response // was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *OrganizationsEnvgroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -19157,18 +19554,18 @@ func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Deletes an environment group attachment.", - // "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments/{attachmentsId}", + // "description": "Deletes an environment group.", + // "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}", // "httpMethod": "DELETE", - // "id": "apigee.organizations.envgroups.attachments.delete", + // "id": "apigee.organizations.envgroups.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Name of the environment group attachment to delete in the following format: `organizations/{org}/envgroups/{envgroup}/attachments/{attachment}`.", + // "description": "Required. Name of the environment group in the following format: `organizations/{org}/envgroups/{envgroup}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/envgroups/[^/]+/attachments/[^/]+$", + // "pattern": "^organizations/[^/]+/envgroups/[^/]+$", // "required": true, // "type": "string" // } @@ -19184,9 +19581,9 @@ func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Do(opts ...googleapi.CallO } -// method id "apigee.organizations.envgroups.attachments.get": +// method id "apigee.organizations.envgroups.get": -type OrganizationsEnvgroupsAttachmentsGetCall struct { +type OrganizationsEnvgroupsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -19195,9 +19592,9 @@ type OrganizationsEnvgroupsAttachmentsGetCall struct { header_ http.Header } -// Get: Gets an environment group attachment. -func (r *OrganizationsEnvgroupsAttachmentsService) Get(name string) *OrganizationsEnvgroupsAttachmentsGetCall { - c := &OrganizationsEnvgroupsAttachmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Get: Gets an environment group. +func (r *OrganizationsEnvgroupsService) Get(name string) *OrganizationsEnvgroupsGetCall { + c := &OrganizationsEnvgroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -19205,7 +19602,7 @@ func (r *OrganizationsEnvgroupsAttachmentsService) Get(name string) *Organizatio // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvgroupsAttachmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsGetCall { +func (c *OrganizationsEnvgroupsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -19215,7 +19612,7 @@ func (c *OrganizationsEnvgroupsAttachmentsGetCall) Fields(s ...googleapi.Field) // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OrganizationsEnvgroupsAttachmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsAttachmentsGetCall { +func (c *OrganizationsEnvgroupsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -19223,23 +19620,23 @@ func (c *OrganizationsEnvgroupsAttachmentsGetCall) IfNoneMatch(entityTag string) // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvgroupsAttachmentsGetCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsGetCall { +func (c *OrganizationsEnvgroupsGetCall) Context(ctx context.Context) *OrganizationsEnvgroupsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvgroupsAttachmentsGetCall) Header() http.Header { +func (c *OrganizationsEnvgroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvgroupsAttachmentsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvgroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19263,16 +19660,15 @@ func (c *OrganizationsEnvgroupsAttachmentsGetCall) doRequest(alt string) (*http. return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.envgroups.attachments.get" call. -// Exactly one of *GoogleCloudApigeeV1EnvironmentGroupAttachment or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudApigeeV1EnvironmentGroupAttachment.ServerResponse.Header -// or (if a response was returned at all) in +// Do executes the "apigee.organizations.envgroups.get" call. +// Exactly one of *GoogleCloudApigeeV1EnvironmentGroup or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1EnvironmentGroup.ServerResponse.Header or +// (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *OrganizationsEnvgroupsAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentGroupAttachment, error) { +func (c *OrganizationsEnvgroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -19291,7 +19687,7 @@ func (c *OrganizationsEnvgroupsAttachmentsGetCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1EnvironmentGroupAttachment{ + ret := &GoogleCloudApigeeV1EnvironmentGroup{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -19303,25 +19699,25 @@ func (c *OrganizationsEnvgroupsAttachmentsGetCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Gets an environment group attachment.", - // "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments/{attachmentsId}", + // "description": "Gets an environment group.", + // "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}", // "httpMethod": "GET", - // "id": "apigee.organizations.envgroups.attachments.get", + // "id": "apigee.organizations.envgroups.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Name of the environment group attachment in the following format: `organizations/{org}/envgroups/{envgroup}/attachments/{attachment}`", + // "description": "Required. Name of the environment group in the following format: `organizations/{org}/envgroups/{envgroup}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/envgroups/[^/]+/attachments/[^/]+$", + // "pattern": "^organizations/[^/]+/envgroups/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudApigeeV1EnvironmentGroupAttachment" + // "$ref": "GoogleCloudApigeeV1EnvironmentGroup" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -19330,9 +19726,9 @@ func (c *OrganizationsEnvgroupsAttachmentsGetCall) Do(opts ...googleapi.CallOpti } -// method id "apigee.organizations.envgroups.attachments.list": +// method id "apigee.organizations.envgroups.list": -type OrganizationsEnvgroupsAttachmentsListCall struct { +type OrganizationsEnvgroupsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -19341,25 +19737,24 @@ type OrganizationsEnvgroupsAttachmentsListCall struct { header_ http.Header } -// List: Lists all attachments of an environment group. -func (r *OrganizationsEnvgroupsAttachmentsService) List(parent string) *OrganizationsEnvgroupsAttachmentsListCall { - c := &OrganizationsEnvgroupsAttachmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// List: Lists all environment groups. +func (r *OrganizationsEnvgroupsService) List(parent string) *OrganizationsEnvgroupsListCall { + c := &OrganizationsEnvgroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } // PageSize sets the optional parameter "pageSize": Maximum number of -// environment group attachments to return. The page size defaults to -// 25. -func (c *OrganizationsEnvgroupsAttachmentsListCall) PageSize(pageSize int64) *OrganizationsEnvgroupsAttachmentsListCall { +// environment groups to return. The page size defaults to 25. +func (c *OrganizationsEnvgroupsListCall) PageSize(pageSize int64) *OrganizationsEnvgroupsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": Page token, -// returned by a previous ListEnvironmentGroupAttachments call, that you -// can use to retrieve the next page. -func (c *OrganizationsEnvgroupsAttachmentsListCall) PageToken(pageToken string) *OrganizationsEnvgroupsAttachmentsListCall { +// returned from a previous ListEnvironmentGroups call, that you can use +// to retrieve the next page. +func (c *OrganizationsEnvgroupsListCall) PageToken(pageToken string) *OrganizationsEnvgroupsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -19367,7 +19762,7 @@ func (c *OrganizationsEnvgroupsAttachmentsListCall) PageToken(pageToken string) // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvgroupsAttachmentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsListCall { +func (c *OrganizationsEnvgroupsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -19377,7 +19772,7 @@ func (c *OrganizationsEnvgroupsAttachmentsListCall) Fields(s ...googleapi.Field) // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OrganizationsEnvgroupsAttachmentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsAttachmentsListCall { +func (c *OrganizationsEnvgroupsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsListCall { c.ifNoneMatch_ = entityTag return c } @@ -19385,23 +19780,23 @@ func (c *OrganizationsEnvgroupsAttachmentsListCall) IfNoneMatch(entityTag string // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvgroupsAttachmentsListCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsListCall { +func (c *OrganizationsEnvgroupsListCall) Context(ctx context.Context) *OrganizationsEnvgroupsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvgroupsAttachmentsListCall) Header() http.Header { +func (c *OrganizationsEnvgroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvgroupsAttachmentsListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvgroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19412,7 +19807,7 @@ func (c *OrganizationsEnvgroupsAttachmentsListCall) doRequest(alt string) (*http var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/envgroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -19425,17 +19820,16 @@ func (c *OrganizationsEnvgroupsAttachmentsListCall) doRequest(alt string) (*http return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.envgroups.attachments.list" call. -// Exactly one of -// *GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response +// Do executes the "apigee.organizations.envgroups.list" call. +// Exactly one of *GoogleCloudApigeeV1ListEnvironmentGroupsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse.ServerResp -// onse.Header or (if a response was returned at all) in +// *GoogleCloudApigeeV1ListEnvironmentGroupsResponse.ServerResponse.Heade +// r or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *OrganizationsEnvgroupsAttachmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse, error) { +func (c *OrganizationsEnvgroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentGroupsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -19454,7 +19848,7 @@ func (c *OrganizationsEnvgroupsAttachmentsListCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse{ + ret := &GoogleCloudApigeeV1ListEnvironmentGroupsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -19466,36 +19860,36 @@ func (c *OrganizationsEnvgroupsAttachmentsListCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Lists all attachments of an environment group.", - // "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments", + // "description": "Lists all environment groups.", + // "flatPath": "v1/organizations/{organizationsId}/envgroups", // "httpMethod": "GET", - // "id": "apigee.organizations.envgroups.attachments.list", + // "id": "apigee.organizations.envgroups.list", // "parameterOrder": [ // "parent" // ], // "parameters": { // "pageSize": { - // "description": "Maximum number of environment group attachments to return. The page size defaults to 25.", + // "description": "Maximum number of environment groups to return. The page size defaults to 25.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "Page token, returned by a previous ListEnvironmentGroupAttachments call, that you can use to retrieve the next page.", + // "description": "Page token, returned from a previous ListEnvironmentGroups call, that you can use to retrieve the next page.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. Name of the environment group in the following format: `organizations/{org}/envgroups/{envgroup}`.", + // "description": "Required. Name of the organization for which to list environment groups in the following format: `organizations/{org}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/envgroups/[^/]+$", + // "pattern": "^organizations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/attachments", + // "path": "v1/{+parent}/envgroups", // "response": { - // "$ref": "GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse" + // "$ref": "GoogleCloudApigeeV1ListEnvironmentGroupsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -19507,7 +19901,7 @@ func (c *OrganizationsEnvgroupsAttachmentsListCall) Do(opts ...googleapi.CallOpt // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *OrganizationsEnvgroupsAttachmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse) error) error { +func (c *OrganizationsEnvgroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListEnvironmentGroupsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -19525,37 +19919,36 @@ func (c *OrganizationsEnvgroupsAttachmentsListCall) Pages(ctx context.Context, f } } -// method id "apigee.organizations.environments.create": +// method id "apigee.organizations.envgroups.patch": -type OrganizationsEnvironmentsCreateCall struct { - s *Service - parent string - googlecloudapigeev1environment *GoogleCloudApigeeV1Environment - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsEnvgroupsPatchCall struct { + s *Service + name string + googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates an environment in an organization. -func (r *OrganizationsEnvironmentsService) Create(parent string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsCreateCall { - c := &OrganizationsEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudapigeev1environment = googlecloudapigeev1environment +// Patch: Updates an environment group. +func (r *OrganizationsEnvgroupsService) Patch(name string, googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup) *OrganizationsEnvgroupsPatchCall { + c := &OrganizationsEnvgroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudapigeev1environmentgroup = googlecloudapigeev1environmentgroup return c } -// Name sets the optional parameter "name": Name of the environment. -// Alternatively, the name may be specified in the request body in the -// name field. -func (c *OrganizationsEnvironmentsCreateCall) Name(name string) *OrganizationsEnvironmentsCreateCall { - c.urlParams_.Set("name", name) +// UpdateMask sets the optional parameter "updateMask": List of fields +// to be updated. +func (c *OrganizationsEnvgroupsPatchCall) UpdateMask(updateMask string) *OrganizationsEnvgroupsPatchCall { + c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsCreateCall { +func (c *OrganizationsEnvgroupsPatchCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -19563,56 +19956,56 @@ func (c *OrganizationsEnvironmentsCreateCall) Fields(s ...googleapi.Field) *Orga // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsCreateCall { +func (c *OrganizationsEnvgroupsPatchCall) Context(ctx context.Context) *OrganizationsEnvgroupsPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsCreateCall) Header() http.Header { +func (c *OrganizationsEnvgroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvgroupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environmentgroup) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/environments") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.create" call. +// Do executes the "apigee.organizations.envgroups.patch" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.ServerResponse.Header or (if a response // was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *OrganizationsEnvgroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -19643,30 +20036,31 @@ func (c *OrganizationsEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Creates an environment in an organization.", - // "flatPath": "v1/organizations/{organizationsId}/environments", - // "httpMethod": "POST", - // "id": "apigee.organizations.environments.create", + // "description": "Updates an environment group.", + // "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}", + // "httpMethod": "PATCH", + // "id": "apigee.organizations.envgroups.patch", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { // "name": { - // "description": "Optional. Name of the environment. Alternatively, the name may be specified in the request body in the name field.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Name of the organization in which the environment will be created. Use the following structure in your request: `organizations/{org}`", + // "description": "Required. Name of the environment group to update in the format: `organizations/{org}/envgroups/{envgroup}.", // "location": "path", - // "pattern": "^organizations/[^/]+$", + // "pattern": "^organizations/[^/]+/envgroups/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "List of fields to be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+parent}/environments", + // "path": "v1/{+name}", // "request": { - // "$ref": "GoogleCloudApigeeV1Environment" + // "$ref": "GoogleCloudApigeeV1EnvironmentGroup" // }, // "response": { // "$ref": "GoogleLongrunningOperation" @@ -19678,27 +20072,30 @@ func (c *OrganizationsEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) ( } -// method id "apigee.organizations.environments.delete": +// method id "apigee.organizations.envgroups.attachments.create": -type OrganizationsEnvironmentsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsEnvgroupsAttachmentsCreateCall struct { + s *Service + parent string + googlecloudapigeev1environmentgroupattachment *GoogleCloudApigeeV1EnvironmentGroupAttachment + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes an environment from an organization. -func (r *OrganizationsEnvironmentsService) Delete(name string) *OrganizationsEnvironmentsDeleteCall { - c := &OrganizationsEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// Create: Creates a new attachment of an environment to an environment +// group. +func (r *OrganizationsEnvgroupsAttachmentsService) Create(parent string, googlecloudapigeev1environmentgroupattachment *GoogleCloudApigeeV1EnvironmentGroupAttachment) *OrganizationsEnvgroupsAttachmentsCreateCall { + c := &OrganizationsEnvgroupsAttachmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudapigeev1environmentgroupattachment = googlecloudapigeev1environmentgroupattachment return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsDeleteCall { +func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -19706,51 +20103,56 @@ func (c *OrganizationsEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *Orga // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsDeleteCall { +func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsDeleteCall) Header() http.Header { +func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvgroupsAttachmentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environmentgroupattachment) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.delete" call. +// Do executes the "apigee.organizations.envgroups.attachments.create" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.ServerResponse.Header or (if a response // was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -19781,23 +20183,26 @@ func (c *OrganizationsEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Deletes an environment from an organization.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}", - // "httpMethod": "DELETE", - // "id": "apigee.organizations.environments.delete", + // "description": "Creates a new attachment of an environment to an environment group.", + // "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments", + // "httpMethod": "POST", + // "id": "apigee.organizations.envgroups.attachments.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`", + // "parent": { + // "description": "Required. EnvironmentGroup under which to create the attachment in the following format: `organizations/{org}/envgroups/{envgroup}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+$", + // "pattern": "^organizations/[^/]+/envgroups/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/attachments", + // "request": { + // "$ref": "GoogleCloudApigeeV1EnvironmentGroupAttachment" + // }, // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -19808,20 +20213,19 @@ func (c *OrganizationsEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) ( } -// method id "apigee.organizations.environments.get": +// method id "apigee.organizations.envgroups.attachments.delete": -type OrganizationsEnvironmentsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsEnvgroupsAttachmentsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets environment details. -func (r *OrganizationsEnvironmentsService) Get(name string) *OrganizationsEnvironmentsGetCall { - c := &OrganizationsEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Delete: Deletes an environment group attachment. +func (r *OrganizationsEnvgroupsAttachmentsService) Delete(name string) *OrganizationsEnvgroupsAttachmentsDeleteCall { + c := &OrganizationsEnvgroupsAttachmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -19829,54 +20233,41 @@ func (r *OrganizationsEnvironmentsService) Get(name string) *OrganizationsEnviro // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetCall { +func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetCall { +func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsGetCall) Header() http.Header { +func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -19887,14 +20278,14 @@ func (c *OrganizationsEnvironmentsGetCall) doRequest(alt string) (*http.Response return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.get" call. -// Exactly one of *GoogleCloudApigeeV1Environment or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1Environment.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "apigee.organizations.envgroups.attachments.delete" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) { +func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -19913,7 +20304,7 @@ func (c *OrganizationsEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*Go if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Environment{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -19925,25 +20316,25 @@ func (c *OrganizationsEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*Go } return ret, nil // { - // "description": "Gets environment details.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}", - // "httpMethod": "GET", - // "id": "apigee.organizations.environments.get", + // "description": "Deletes an environment group attachment.", + // "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments/{attachmentsId}", + // "httpMethod": "DELETE", + // "id": "apigee.organizations.envgroups.attachments.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`", + // "description": "Required. Name of the environment group attachment to delete in the following format: `organizations/{org}/envgroups/{envgroup}/attachments/{attachment}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+$", + // "pattern": "^organizations/[^/]+/envgroups/[^/]+/attachments/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudApigeeV1Environment" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -19952,9 +20343,9 @@ func (c *OrganizationsEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*Go } -// method id "apigee.organizations.environments.getDebugmask": +// method id "apigee.organizations.envgroups.attachments.get": -type OrganizationsEnvironmentsGetDebugmaskCall struct { +type OrganizationsEnvgroupsAttachmentsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -19963,10 +20354,9 @@ type OrganizationsEnvironmentsGetDebugmaskCall struct { header_ http.Header } -// GetDebugmask: Gets the debug mask singleton resource for an -// environment. -func (r *OrganizationsEnvironmentsService) GetDebugmask(name string) *OrganizationsEnvironmentsGetDebugmaskCall { - c := &OrganizationsEnvironmentsGetDebugmaskCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Get: Gets an environment group attachment. +func (r *OrganizationsEnvgroupsAttachmentsService) Get(name string) *OrganizationsEnvgroupsAttachmentsGetCall { + c := &OrganizationsEnvgroupsAttachmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -19974,7 +20364,7 @@ func (r *OrganizationsEnvironmentsService) GetDebugmask(name string) *Organizati // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsGetDebugmaskCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetDebugmaskCall { +func (c *OrganizationsEnvgroupsAttachmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -19984,7 +20374,7 @@ func (c *OrganizationsEnvironmentsGetDebugmaskCall) Fields(s ...googleapi.Field) // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsGetDebugmaskCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetDebugmaskCall { +func (c *OrganizationsEnvgroupsAttachmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsAttachmentsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -19992,23 +20382,23 @@ func (c *OrganizationsEnvironmentsGetDebugmaskCall) IfNoneMatch(entityTag string // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsGetDebugmaskCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetDebugmaskCall { +func (c *OrganizationsEnvgroupsAttachmentsGetCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsGetDebugmaskCall) Header() http.Header { +func (c *OrganizationsEnvgroupsAttachmentsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsGetDebugmaskCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvgroupsAttachmentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20032,14 +20422,16 @@ func (c *OrganizationsEnvironmentsGetDebugmaskCall) doRequest(alt string) (*http return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.getDebugmask" call. -// Exactly one of *GoogleCloudApigeeV1DebugMask or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1DebugMask.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsGetDebugmaskCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugMask, error) { +// Do executes the "apigee.organizations.envgroups.attachments.get" call. +// Exactly one of *GoogleCloudApigeeV1EnvironmentGroupAttachment or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudApigeeV1EnvironmentGroupAttachment.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsEnvgroupsAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentGroupAttachment, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -20058,7 +20450,7 @@ func (c *OrganizationsEnvironmentsGetDebugmaskCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1DebugMask{ + ret := &GoogleCloudApigeeV1EnvironmentGroupAttachment{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -20070,25 +20462,25 @@ func (c *OrganizationsEnvironmentsGetDebugmaskCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Gets the debug mask singleton resource for an environment.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/debugmask", + // "description": "Gets an environment group attachment.", + // "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments/{attachmentsId}", // "httpMethod": "GET", - // "id": "apigee.organizations.environments.getDebugmask", + // "id": "apigee.organizations.envgroups.attachments.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Name of the debug mask. Use the following structure in your request: `organizations/{org}/environments/{env}/debugmask`.", + // "description": "Required. Name of the environment group attachment in the following format: `organizations/{org}/envgroups/{envgroup}/attachments/{attachment}`", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/debugmask$", + // "pattern": "^organizations/[^/]+/envgroups/[^/]+/attachments/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudApigeeV1DebugMask" + // "$ref": "GoogleCloudApigeeV1EnvironmentGroupAttachment" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -20097,29 +20489,44 @@ func (c *OrganizationsEnvironmentsGetDebugmaskCall) Do(opts ...googleapi.CallOpt } -// method id "apigee.organizations.environments.getDeployedConfig": +// method id "apigee.organizations.envgroups.attachments.list": -type OrganizationsEnvironmentsGetDeployedConfigCall struct { +type OrganizationsEnvgroupsAttachmentsListCall struct { s *Service - name string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// GetDeployedConfig: Gets the deployed configuration for an -// environment. -func (r *OrganizationsEnvironmentsService) GetDeployedConfig(name string) *OrganizationsEnvironmentsGetDeployedConfigCall { - c := &OrganizationsEnvironmentsGetDeployedConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// List: Lists all attachments of an environment group. +func (r *OrganizationsEnvgroupsAttachmentsService) List(parent string) *OrganizationsEnvgroupsAttachmentsListCall { + c := &OrganizationsEnvgroupsAttachmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// environment group attachments to return. The page size defaults to +// 25. +func (c *OrganizationsEnvgroupsAttachmentsListCall) PageSize(pageSize int64) *OrganizationsEnvgroupsAttachmentsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token, +// returned by a previous ListEnvironmentGroupAttachments call, that you +// can use to retrieve the next page. +func (c *OrganizationsEnvgroupsAttachmentsListCall) PageToken(pageToken string) *OrganizationsEnvgroupsAttachmentsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetDeployedConfigCall { +func (c *OrganizationsEnvgroupsAttachmentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -20129,7 +20536,7 @@ func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Fields(s ...googleapi.F // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsGetDeployedConfigCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetDeployedConfigCall { +func (c *OrganizationsEnvgroupsAttachmentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsAttachmentsListCall { c.ifNoneMatch_ = entityTag return c } @@ -20137,23 +20544,23 @@ func (c *OrganizationsEnvironmentsGetDeployedConfigCall) IfNoneMatch(entityTag s // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetDeployedConfigCall { +func (c *OrganizationsEnvgroupsAttachmentsListCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Header() http.Header { +func (c *OrganizationsEnvgroupsAttachmentsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsGetDeployedConfigCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvgroupsAttachmentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20164,7 +20571,7 @@ func (c *OrganizationsEnvironmentsGetDeployedConfigCall) doRequest(alt string) ( var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -20172,20 +20579,22 @@ func (c *OrganizationsEnvironmentsGetDeployedConfigCall) doRequest(alt string) ( } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.getDeployedConfig" call. -// Exactly one of *GoogleCloudApigeeV1EnvironmentConfig or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1EnvironmentConfig.ServerResponse.Header or -// (if a response was returned at all) in +// Do executes the "apigee.organizations.envgroups.attachments.list" call. +// Exactly one of +// *GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse.ServerResp +// onse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentConfig, error) { +func (c *OrganizationsEnvgroupsAttachmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -20204,7 +20613,7 @@ func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1EnvironmentConfig{ + ret := &GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -20216,25 +20625,36 @@ func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Gets the deployed configuration for an environment.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/deployedConfig", + // "description": "Lists all attachments of an environment group.", + // "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments", // "httpMethod": "GET", - // "id": "apigee.organizations.environments.getDeployedConfig", + // "id": "apigee.organizations.envgroups.attachments.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. Name of the environment deployed configuration resource. Use the following structure in your request: `organizations/{org}/environments/{env}/deployedConfig`", + // "pageSize": { + // "description": "Maximum number of environment group attachments to return. The page size defaults to 25.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Page token, returned by a previous ListEnvironmentGroupAttachments call, that you can use to retrieve the next page.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Name of the environment group in the following format: `organizations/{org}/envgroups/{envgroup}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/deployedConfig$", + // "pattern": "^organizations/[^/]+/envgroups/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/attachments", // "response": { - // "$ref": "GoogleCloudApigeeV1EnvironmentConfig" + // "$ref": "GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -20243,112 +20663,115 @@ func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Do(opts ...googleapi.Ca } -// method id "apigee.organizations.environments.getIamPolicy": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *OrganizationsEnvgroupsAttachmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type OrganizationsEnvironmentsGetIamPolicyCall struct { - s *Service - resource string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// method id "apigee.organizations.environments.create": + +type OrganizationsEnvironmentsCreateCall struct { + s *Service + parent string + googlecloudapigeev1environment *GoogleCloudApigeeV1Environment + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetIamPolicy: Gets the IAM policy on an environment. For more -// information, see [Manage users, roles, and permissions using the -// API](https://cloud.google.com/apigee/docs/api-platform/system-administ -// ration/manage-users-roles). You must have the -// `apigee.environments.getIamPolicy` permission to call this API. -func (r *OrganizationsEnvironmentsService) GetIamPolicy(resource string) *OrganizationsEnvironmentsGetIamPolicyCall { - c := &OrganizationsEnvironmentsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource +// Create: Creates an environment in an organization. +func (r *OrganizationsEnvironmentsService) Create(parent string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsCreateCall { + c := &OrganizationsEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudapigeev1environment = googlecloudapigeev1environment return c } -// OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": The policy format version to be -// returned. Valid values are 0, 1, and 3. Requests specifying an -// invalid value will be rejected. Requests for policies with any -// conditional bindings must specify version 3. Policies without any -// conditional bindings may specify any valid value or leave the field -// unset. To learn which resources support conditions in their IAM -// policies, see the [IAM -// documentation](https://cloud.google.com/iam/help/conditions/resource-p -// olicies). -func (c *OrganizationsEnvironmentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *OrganizationsEnvironmentsGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// Name sets the optional parameter "name": Name of the environment. +// Alternatively, the name may be specified in the request body in the +// name field. +func (c *OrganizationsEnvironmentsCreateCall) Name(name string) *OrganizationsEnvironmentsCreateCall { + c.urlParams_.Set("name", name) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsGetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetIamPolicyCall { +func (c *OrganizationsEnvironmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsGetIamPolicyCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetIamPolicyCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsGetIamPolicyCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetIamPolicyCall { +func (c *OrganizationsEnvironmentsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsGetIamPolicyCall) Header() http.Header { +func (c *OrganizationsEnvironmentsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/environments") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.getIamPolicy" call. -// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "apigee.organizations.environments.create" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +func (c *OrganizationsEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -20367,7 +20790,7 @@ func (c *OrganizationsEnvironmentsGetIamPolicyCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleIamV1Policy{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -20379,31 +20802,33 @@ func (c *OrganizationsEnvironmentsGetIamPolicyCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Gets the IAM policy on an environment. For more information, see [Manage users, roles, and permissions using the API](https://cloud.google.com/apigee/docs/api-platform/system-administration/manage-users-roles). You must have the `apigee.environments.getIamPolicy` permission to call this API.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "apigee.organizations.environments.getIamPolicy", + // "description": "Creates an environment in an organization.", + // "flatPath": "v1/organizations/{organizationsId}/environments", + // "httpMethod": "POST", + // "id": "apigee.organizations.environments.create", // "parameterOrder": [ - // "resource" + // "parent" // ], // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", - // "format": "int32", + // "name": { + // "description": "Optional. Name of the environment. Alternatively, the name may be specified in the request body in the name field.", // "location": "query", - // "type": "integer" + // "type": "string" // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + // "parent": { + // "description": "Required. Name of the organization in which the environment will be created. Use the following structure in your request: `organizations/{org}`", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+$", + // "pattern": "^organizations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+resource}:getIamPolicy", + // "path": "v1/{+parent}/environments", + // "request": { + // "$ref": "GoogleCloudApigeeV1Environment" + // }, // "response": { - // "$ref": "GoogleIamV1Policy" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -20412,34 +20837,27 @@ func (c *OrganizationsEnvironmentsGetIamPolicyCall) Do(opts ...googleapi.CallOpt } -// method id "apigee.organizations.environments.setIamPolicy": +// method id "apigee.organizations.environments.delete": -type OrganizationsEnvironmentsSetIamPolicyCall struct { - s *Service - resource string - googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// SetIamPolicy: Sets the IAM policy on an environment, if the policy -// already exists it will be replaced. For more information, see [Manage -// users, roles, and permissions using the -// API](https://cloud.google.com/apigee/docs/api-platform/system-administ -// ration/manage-users-roles). You must have the -// `apigee.environments.setIamPolicy` permission to call this API. -func (r *OrganizationsEnvironmentsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *OrganizationsEnvironmentsSetIamPolicyCall { - c := &OrganizationsEnvironmentsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest +// Delete: Deletes an environment from an organization. +func (r *OrganizationsEnvironmentsService) Delete(name string) *OrganizationsEnvironmentsDeleteCall { + c := &OrganizationsEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsSetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSetIamPolicyCall { +func (c *OrganizationsEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -20447,56 +20865,51 @@ func (c *OrganizationsEnvironmentsSetIamPolicyCall) Fields(s ...googleapi.Field) // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsSetIamPolicyCall) Context(ctx context.Context) *OrganizationsEnvironmentsSetIamPolicyCall { +func (c *OrganizationsEnvironmentsDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsSetIamPolicyCall) Header() http.Header { +func (c *OrganizationsEnvironmentsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.setIamPolicy" call. -// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "apigee.organizations.environments.delete" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +func (c *OrganizationsEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -20515,7 +20928,7 @@ func (c *OrganizationsEnvironmentsSetIamPolicyCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleIamV1Policy{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -20527,28 +20940,25 @@ func (c *OrganizationsEnvironmentsSetIamPolicyCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Sets the IAM policy on an environment, if the policy already exists it will be replaced. For more information, see [Manage users, roles, and permissions using the API](https://cloud.google.com/apigee/docs/api-platform/system-administration/manage-users-roles). You must have the `apigee.environments.setIamPolicy` permission to call this API.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "apigee.organizations.environments.setIamPolicy", + // "description": "Deletes an environment from an organization.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}", + // "httpMethod": "DELETE", + // "id": "apigee.organizations.environments.delete", // "parameterOrder": [ - // "resource" + // "name" // ], // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + // "name": { + // "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`", // "location": "path", // "pattern": "^organizations/[^/]+/environments/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+resource}:setIamPolicy", - // "request": { - // "$ref": "GoogleIamV1SetIamPolicyRequest" - // }, + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleIamV1Policy" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -20557,81 +20967,93 @@ func (c *OrganizationsEnvironmentsSetIamPolicyCall) Do(opts ...googleapi.CallOpt } -// method id "apigee.organizations.environments.subscribe": +// method id "apigee.organizations.environments.get": -type OrganizationsEnvironmentsSubscribeCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Subscribe: Creates a subscription for the environment's Pub/Sub -// topic. The server will assign a random name for this subscription. -// The "name" and "push_config" must *not* be specified. -func (r *OrganizationsEnvironmentsService) Subscribe(parent string) *OrganizationsEnvironmentsSubscribeCall { - c := &OrganizationsEnvironmentsSubscribeCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// Get: Gets environment details. +func (r *OrganizationsEnvironmentsService) Get(name string) *OrganizationsEnvironmentsGetCall { + c := &OrganizationsEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsSubscribeCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSubscribeCall { +func (c *OrganizationsEnvironmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsEnvironmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsSubscribeCall) Context(ctx context.Context) *OrganizationsEnvironmentsSubscribeCall { +func (c *OrganizationsEnvironmentsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsSubscribeCall) Header() http.Header { +func (c *OrganizationsEnvironmentsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsSubscribeCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:subscribe") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.subscribe" call. -// Exactly one of *GoogleCloudApigeeV1Subscription or error will be +// Do executes the "apigee.organizations.environments.get" call. +// Exactly one of *GoogleCloudApigeeV1Environment or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1Subscription.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was +// either *GoogleCloudApigeeV1Environment.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsSubscribeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Subscription, error) { +func (c *OrganizationsEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -20650,7 +21072,7 @@ func (c *OrganizationsEnvironmentsSubscribeCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Subscription{ + ret := &GoogleCloudApigeeV1Environment{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -20662,15 +21084,15 @@ func (c *OrganizationsEnvironmentsSubscribeCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "Creates a subscription for the environment's Pub/Sub topic. The server will assign a random name for this subscription. The \"name\" and \"push_config\" must *not* be specified.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:subscribe", - // "httpMethod": "POST", - // "id": "apigee.organizations.environments.subscribe", + // "description": "Gets environment details.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}", + // "httpMethod": "GET", + // "id": "apigee.organizations.environments.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { + // "name": { // "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`", // "location": "path", // "pattern": "^organizations/[^/]+/environments/[^/]+$", @@ -20678,9 +21100,9 @@ func (c *OrganizationsEnvironmentsSubscribeCall) Do(opts ...googleapi.CallOption // "type": "string" // } // }, - // "path": "v1/{+parent}:subscribe", + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudApigeeV1Subscription" + // "$ref": "GoogleCloudApigeeV1Environment" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -20689,90 +21111,94 @@ func (c *OrganizationsEnvironmentsSubscribeCall) Do(opts ...googleapi.CallOption } -// method id "apigee.organizations.environments.testIamPermissions": +// method id "apigee.organizations.environments.getDebugmask": -type OrganizationsEnvironmentsTestIamPermissionsCall struct { - s *Service - resource string - googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsGetDebugmaskCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// TestIamPermissions: Tests the permissions of a user on an -// environment, and returns a subset of permissions that the user has on -// the environment. If the environment does not exist, an empty -// permission set is returned (a NOT_FOUND error is not returned). -func (r *OrganizationsEnvironmentsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *OrganizationsEnvironmentsTestIamPermissionsCall { - c := &OrganizationsEnvironmentsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest +// GetDebugmask: Gets the debug mask singleton resource for an +// environment. +func (r *OrganizationsEnvironmentsService) GetDebugmask(name string) *OrganizationsEnvironmentsGetDebugmaskCall { + c := &OrganizationsEnvironmentsGetDebugmaskCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTestIamPermissionsCall { +func (c *OrganizationsEnvironmentsGetDebugmaskCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetDebugmaskCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsEnvironmentsGetDebugmaskCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetDebugmaskCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Context(ctx context.Context) *OrganizationsEnvironmentsTestIamPermissionsCall { +func (c *OrganizationsEnvironmentsGetDebugmaskCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetDebugmaskCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Header() http.Header { +func (c *OrganizationsEnvironmentsGetDebugmaskCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsGetDebugmaskCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.testIamPermissions" call. -// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a +// Do executes the "apigee.organizations.environments.getDebugmask" call. +// Exactly one of *GoogleCloudApigeeV1DebugMask or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1DebugMask.ServerResponse.Header or (if a // response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { +func (c *OrganizationsEnvironmentsGetDebugmaskCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugMask, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -20791,7 +21217,7 @@ func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleIamV1TestIamPermissionsResponse{ + ret := &GoogleCloudApigeeV1DebugMask{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -20803,28 +21229,25 @@ func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Tests the permissions of a user on an environment, and returns a subset of permissions that the user has on the environment. If the environment does not exist, an empty permission set is returned (a NOT_FOUND error is not returned).", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "apigee.organizations.environments.testIamPermissions", + // "description": "Gets the debug mask singleton resource for an environment.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/debugmask", + // "httpMethod": "GET", + // "id": "apigee.organizations.environments.getDebugmask", // "parameterOrder": [ - // "resource" + // "name" // ], // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + // "name": { + // "description": "Required. Name of the debug mask. Use the following structure in your request: `organizations/{org}/environments/{env}/debugmask`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/debugmask$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+resource}:testIamPermissions", - // "request": { - // "$ref": "GoogleIamV1TestIamPermissionsRequest" - // }, + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleIamV1TestIamPermissionsResponse" + // "$ref": "GoogleCloudApigeeV1DebugMask" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -20833,87 +21256,95 @@ func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Do(opts ...googleapi.C } -// method id "apigee.organizations.environments.unsubscribe": +// method id "apigee.organizations.environments.getDeployedConfig": -type OrganizationsEnvironmentsUnsubscribeCall struct { - s *Service - parent string - googlecloudapigeev1subscription *GoogleCloudApigeeV1Subscription - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsGetDeployedConfigCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Unsubscribe: Deletes a subscription for the environment's Pub/Sub -// topic. -func (r *OrganizationsEnvironmentsService) Unsubscribe(parent string, googlecloudapigeev1subscription *GoogleCloudApigeeV1Subscription) *OrganizationsEnvironmentsUnsubscribeCall { - c := &OrganizationsEnvironmentsUnsubscribeCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudapigeev1subscription = googlecloudapigeev1subscription +// GetDeployedConfig: Gets the deployed configuration for an +// environment. +func (r *OrganizationsEnvironmentsService) GetDeployedConfig(name string) *OrganizationsEnvironmentsGetDeployedConfigCall { + c := &OrganizationsEnvironmentsGetDeployedConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsUnsubscribeCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUnsubscribeCall { +func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetDeployedConfigCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsEnvironmentsGetDeployedConfigCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetDeployedConfigCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsUnsubscribeCall) Context(ctx context.Context) *OrganizationsEnvironmentsUnsubscribeCall { +func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetDeployedConfigCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsUnsubscribeCall) Header() http.Header { +func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsUnsubscribeCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsGetDeployedConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1subscription) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:unsubscribe") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.unsubscribe" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsUnsubscribeCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// Do executes the "apigee.organizations.environments.getDeployedConfig" call. +// Exactly one of *GoogleCloudApigeeV1EnvironmentConfig or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1EnvironmentConfig.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -20932,7 +21363,7 @@ func (c *OrganizationsEnvironmentsUnsubscribeCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudApigeeV1EnvironmentConfig{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -20944,28 +21375,25 @@ func (c *OrganizationsEnvironmentsUnsubscribeCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Deletes a subscription for the environment's Pub/Sub topic.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:unsubscribe", - // "httpMethod": "POST", - // "id": "apigee.organizations.environments.unsubscribe", + // "description": "Gets the deployed configuration for an environment.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/deployedConfig", + // "httpMethod": "GET", + // "id": "apigee.organizations.environments.getDeployedConfig", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`", + // "name": { + // "description": "Required. Name of the environment deployed configuration resource. Use the following structure in your request: `organizations/{org}/environments/{env}/deployedConfig`", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/deployedConfig$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}:unsubscribe", - // "request": { - // "$ref": "GoogleCloudApigeeV1Subscription" - // }, + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudApigeeV1EnvironmentConfig" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -20974,90 +21402,112 @@ func (c *OrganizationsEnvironmentsUnsubscribeCall) Do(opts ...googleapi.CallOpti } -// method id "apigee.organizations.environments.update": +// method id "apigee.organizations.environments.getIamPolicy": -type OrganizationsEnvironmentsUpdateCall struct { - s *Service - name string - googlecloudapigeev1environment *GoogleCloudApigeeV1Environment - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Update: Updates an existing environment. When updating properties, -// you must pass all existing properties to the API, even if they are -// not being changed. If you omit properties from the payload, the -// properties are removed. To get the current list of properties for the -// environment, use the [Get Environment API](get). -func (r *OrganizationsEnvironmentsService) Update(name string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsUpdateCall { - c := &OrganizationsEnvironmentsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudapigeev1environment = googlecloudapigeev1environment +// GetIamPolicy: Gets the IAM policy on an environment. For more +// information, see [Manage users, roles, and permissions using the +// API](https://cloud.google.com/apigee/docs/api-platform/system-administ +// ration/manage-users-roles). You must have the +// `apigee.environments.getIamPolicy` permission to call this API. +func (r *OrganizationsEnvironmentsService) GetIamPolicy(resource string) *OrganizationsEnvironmentsGetIamPolicyCall { + c := &OrganizationsEnvironmentsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The policy format version to be +// returned. Valid values are 0, 1, and 3. Requests specifying an +// invalid value will be rejected. Requests for policies with any +// conditional bindings must specify version 3. Policies without any +// conditional bindings may specify any valid value or leave the field +// unset. To learn which resources support conditions in their IAM +// policies, see the [IAM +// documentation](https://cloud.google.com/iam/help/conditions/resource-p +// olicies). +func (c *OrganizationsEnvironmentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *OrganizationsEnvironmentsGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateCall { +func (c *OrganizationsEnvironmentsGetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsEnvironmentsGetIamPolicyCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateCall { +func (c *OrganizationsEnvironmentsGetIamPolicyCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetIamPolicyCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsUpdateCall) Header() http.Header { +func (c *OrganizationsEnvironmentsGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsUpdateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.update" call. -// Exactly one of *GoogleCloudApigeeV1Environment or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1Environment.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "apigee.organizations.environments.getIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) { +func (c *OrganizationsEnvironmentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -21076,7 +21526,7 @@ func (c *OrganizationsEnvironmentsUpdateCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Environment{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -21088,28 +21538,31 @@ func (c *OrganizationsEnvironmentsUpdateCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Updates an existing environment. When updating properties, you must pass all existing properties to the API, even if they are not being changed. If you omit properties from the payload, the properties are removed. To get the current list of properties for the environment, use the [Get Environment API](get).", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}", - // "httpMethod": "PUT", - // "id": "apigee.organizations.environments.update", + // "description": "Gets the IAM policy on an environment. For more information, see [Manage users, roles, and permissions using the API](https://cloud.google.com/apigee/docs/api-platform/system-administration/manage-users-roles). You must have the `apigee.environments.getIamPolicy` permission to call this API.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:getIamPolicy", + // "httpMethod": "GET", + // "id": "apigee.organizations.environments.getIamPolicy", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "name": { - // "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`", + // "options.requestedPolicyVersion": { + // "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", // "location": "path", // "pattern": "^organizations/[^/]+/environments/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudApigeeV1Environment" - // }, + // "path": "v1/{+resource}:getIamPolicy", // "response": { - // "$ref": "GoogleCloudApigeeV1Environment" + // "$ref": "GoogleIamV1Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -21118,47 +21571,34 @@ func (c *OrganizationsEnvironmentsUpdateCall) Do(opts ...googleapi.CallOption) ( } -// method id "apigee.organizations.environments.updateDebugmask": - -type OrganizationsEnvironmentsUpdateDebugmaskCall struct { - s *Service - name string - googlecloudapigeev1debugmask *GoogleCloudApigeeV1DebugMask - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// UpdateDebugmask: Updates the debug mask singleton resource for an -// environment. -func (r *OrganizationsEnvironmentsService) UpdateDebugmask(name string, googlecloudapigeev1debugmask *GoogleCloudApigeeV1DebugMask) *OrganizationsEnvironmentsUpdateDebugmaskCall { - c := &OrganizationsEnvironmentsUpdateDebugmaskCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudapigeev1debugmask = googlecloudapigeev1debugmask - return c -} +// method id "apigee.organizations.environments.setIamPolicy": -// ReplaceRepeatedFields sets the optional parameter -// "replaceRepeatedFields": Boolean flag that specifies whether to -// replace existing values in the debug mask when doing an update. Set -// to true to replace existing values. The default behavior is to append -// the values (false). -func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) ReplaceRepeatedFields(replaceRepeatedFields bool) *OrganizationsEnvironmentsUpdateDebugmaskCall { - c.urlParams_.Set("replaceRepeatedFields", fmt.Sprint(replaceRepeatedFields)) - return c +type OrganizationsEnvironmentsSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// UpdateMask sets the optional parameter "updateMask": Field debug mask -// to support partial updates. -func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsUpdateDebugmaskCall { - c.urlParams_.Set("updateMask", updateMask) +// SetIamPolicy: Sets the IAM policy on an environment, if the policy +// already exists it will be replaced. For more information, see [Manage +// users, roles, and permissions using the +// API](https://cloud.google.com/apigee/docs/api-platform/system-administ +// ration/manage-users-roles). You must have the +// `apigee.environments.setIamPolicy` permission to call this API. +func (r *OrganizationsEnvironmentsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *OrganizationsEnvironmentsSetIamPolicyCall { + c := &OrganizationsEnvironmentsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateDebugmaskCall { +func (c *OrganizationsEnvironmentsSetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -21166,56 +21606,56 @@ func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Fields(s ...googleapi.Fie // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateDebugmaskCall { +func (c *OrganizationsEnvironmentsSetIamPolicyCall) Context(ctx context.Context) *OrganizationsEnvironmentsSetIamPolicyCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Header() http.Header { +func (c *OrganizationsEnvironmentsSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1debugmask) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.updateDebugmask" call. -// Exactly one of *GoogleCloudApigeeV1DebugMask or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1DebugMask.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "apigee.organizations.environments.setIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugMask, error) { +func (c *OrganizationsEnvironmentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -21234,7 +21674,7 @@ func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1DebugMask{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -21246,39 +21686,28 @@ func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Updates the debug mask singleton resource for an environment.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/debugmask", - // "httpMethod": "PATCH", - // "id": "apigee.organizations.environments.updateDebugmask", + // "description": "Sets the IAM policy on an environment, if the policy already exists it will be replaced. For more information, see [Manage users, roles, and permissions using the API](https://cloud.google.com/apigee/docs/api-platform/system-administration/manage-users-roles). You must have the `apigee.environments.setIamPolicy` permission to call this API.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "apigee.organizations.environments.setIamPolicy", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "name": { - // "description": "Name of the debug mask.", + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/debugmask$", + // "pattern": "^organizations/[^/]+/environments/[^/]+$", // "required": true, // "type": "string" - // }, - // "replaceRepeatedFields": { - // "description": "Boolean flag that specifies whether to replace existing values in the debug mask when doing an update. Set to true to replace existing values. The default behavior is to append the values (false).", - // "location": "query", - // "type": "boolean" - // }, - // "updateMask": { - // "description": "Field debug mask to support partial updates.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+resource}:setIamPolicy", // "request": { - // "$ref": "GoogleCloudApigeeV1DebugMask" + // "$ref": "GoogleIamV1SetIamPolicyRequest" // }, // "response": { - // "$ref": "GoogleCloudApigeeV1DebugMask" + // "$ref": "GoogleIamV1Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -21287,33 +21716,29 @@ func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Do(opts ...googleapi.Call } -// method id "apigee.organizations.environments.updateEnvironment": +// method id "apigee.organizations.environments.subscribe": -type OrganizationsEnvironmentsUpdateEnvironmentCall struct { - s *Service - name string - googlecloudapigeev1environment *GoogleCloudApigeeV1Environment - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsSubscribeCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// UpdateEnvironment: Updates an existing environment. When updating -// properties, you must pass all existing properties to the API, even if -// they are not being changed. If you omit properties from the payload, -// the properties are removed. To get the current list of properties for -// the environment, use the [Get Environment API](get). -func (r *OrganizationsEnvironmentsService) UpdateEnvironment(name string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsUpdateEnvironmentCall { - c := &OrganizationsEnvironmentsUpdateEnvironmentCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudapigeev1environment = googlecloudapigeev1environment +// Subscribe: Creates a subscription for the environment's Pub/Sub +// topic. The server will assign a random name for this subscription. +// The "name" and "push_config" must *not* be specified. +func (r *OrganizationsEnvironmentsService) Subscribe(parent string) *OrganizationsEnvironmentsSubscribeCall { + c := &OrganizationsEnvironmentsSubscribeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateEnvironmentCall { +func (c *OrganizationsEnvironmentsSubscribeCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSubscribeCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -21321,36 +21746,31 @@ func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateEnvironmentCall { +func (c *OrganizationsEnvironmentsSubscribeCall) Context(ctx context.Context) *OrganizationsEnvironmentsSubscribeCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Header() http.Header { +func (c *OrganizationsEnvironmentsSubscribeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsSubscribeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:subscribe") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -21358,19 +21778,19 @@ func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) doRequest(alt string) ( } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.updateEnvironment" call. -// Exactly one of *GoogleCloudApigeeV1Environment or error will be +// Do executes the "apigee.organizations.environments.subscribe" call. +// Exactly one of *GoogleCloudApigeeV1Subscription or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1Environment.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was +// either *GoogleCloudApigeeV1Subscription.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) { +func (c *OrganizationsEnvironmentsSubscribeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Subscription, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -21389,7 +21809,7 @@ func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Environment{ + ret := &GoogleCloudApigeeV1Subscription{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -21401,15 +21821,15 @@ func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Updates an existing environment. When updating properties, you must pass all existing properties to the API, even if they are not being changed. If you omit properties from the payload, the properties are removed. To get the current list of properties for the environment, use the [Get Environment API](get).", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}", + // "description": "Creates a subscription for the environment's Pub/Sub topic. The server will assign a random name for this subscription. The \"name\" and \"push_config\" must *not* be specified.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:subscribe", // "httpMethod": "POST", - // "id": "apigee.organizations.environments.updateEnvironment", + // "id": "apigee.organizations.environments.subscribe", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { + // "parent": { // "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`", // "location": "path", // "pattern": "^organizations/[^/]+/environments/[^/]+$", @@ -21417,12 +21837,9 @@ func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Do(opts ...googleapi.Ca // "type": "string" // } // }, - // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudApigeeV1Environment" - // }, + // "path": "v1/{+parent}:subscribe", // "response": { - // "$ref": "GoogleCloudApigeeV1Environment" + // "$ref": "GoogleCloudApigeeV1Subscription" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -21431,104 +21848,90 @@ func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Do(opts ...googleapi.Ca } -// method id "apigee.organizations.environments.analytics.admin.getSchemav2": - -type OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} +// method id "apigee.organizations.environments.testIamPermissions": -// GetSchemav2: Get a list of metrics and dimensions which can be used -// for creating analytics queries and reports. Each schema element -// contains the name of the field with its associated type and if it is -// either custom field or standard field. -func (r *OrganizationsEnvironmentsAnalyticsAdminService) GetSchemav2(name string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call { - c := &OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c +type OrganizationsEnvironmentsTestIamPermissionsCall struct { + s *Service + resource string + googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Type sets the optional parameter "type": Required. Type refers to the -// dataset name whose schema needs to be retrieved E.g. type=fact or -// type=agg_cus1 -func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Type(type_ string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call { - c.urlParams_.Set("type", type_) +// TestIamPermissions: Tests the permissions of a user on an +// environment, and returns a subset of permissions that the user has on +// the environment. If the environment does not exist, an empty +// permission set is returned (a NOT_FOUND error is not returned). +func (r *OrganizationsEnvironmentsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *OrganizationsEnvironmentsTestIamPermissionsCall { + c := &OrganizationsEnvironmentsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call { +func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call { +func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Context(ctx context.Context) *OrganizationsEnvironmentsTestIamPermissionsCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Header() http.Header { +func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.analytics.admin.getSchemav2" call. -// Exactly one of *GoogleCloudApigeeV1Schema or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudApigeeV1Schema.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "apigee.organizations.environments.testIamPermissions" call. +// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Schema, error) { +func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -21547,7 +21950,7 @@ func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Do(opts ...goog if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Schema{ + ret := &GoogleIamV1TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -21559,30 +21962,28 @@ func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Do(opts ...goog } return ret, nil // { - // "description": "Get a list of metrics and dimensions which can be used for creating analytics queries and reports. Each schema element contains the name of the field with its associated type and if it is either custom field or standard field.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/admin/schemav2", - // "httpMethod": "GET", - // "id": "apigee.organizations.environments.analytics.admin.getSchemav2", + // "description": "Tests the permissions of a user on an environment, and returns a subset of permissions that the user has on the environment. If the environment does not exist, an empty permission set is returned (a NOT_FOUND error is not returned).", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "apigee.organizations.environments.testIamPermissions", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "name": { - // "description": "Required. The parent organization and environment names. Must be of the form `organizations/{org}/environments/{env}/analytics/admin/schemav2`.", + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/analytics/admin/schemav2$", + // "pattern": "^organizations/[^/]+/environments/[^/]+$", // "required": true, // "type": "string" - // }, - // "type": { - // "description": "Required. Type refers to the dataset name whose schema needs to be retrieved E.g. type=fact or type=agg_cus1", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+resource}:testIamPermissions", + // "request": { + // "$ref": "GoogleIamV1TestIamPermissionsRequest" + // }, // "response": { - // "$ref": "GoogleCloudApigeeV1Schema" + // "$ref": "GoogleIamV1TestIamPermissionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -21591,32 +21992,30 @@ func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Do(opts ...goog } -// method id "apigee.organizations.environments.analytics.exports.create": +// method id "apigee.organizations.environments.unsubscribe": -type OrganizationsEnvironmentsAnalyticsExportsCreateCall struct { - s *Service - parent string - googlecloudapigeev1exportrequest *GoogleCloudApigeeV1ExportRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsUnsubscribeCall struct { + s *Service + parent string + googlecloudapigeev1subscription *GoogleCloudApigeeV1Subscription + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Submit a data export job to be processed in the background. -// If the request is successful, the API returns a 201 status, a URI -// that can be used to retrieve the status of the export job, and the -// `state` value of "enqueued". -func (r *OrganizationsEnvironmentsAnalyticsExportsService) Create(parent string, googlecloudapigeev1exportrequest *GoogleCloudApigeeV1ExportRequest) *OrganizationsEnvironmentsAnalyticsExportsCreateCall { - c := &OrganizationsEnvironmentsAnalyticsExportsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Unsubscribe: Deletes a subscription for the environment's Pub/Sub +// topic. +func (r *OrganizationsEnvironmentsService) Unsubscribe(parent string, googlecloudapigeev1subscription *GoogleCloudApigeeV1Subscription) *OrganizationsEnvironmentsUnsubscribeCall { + c := &OrganizationsEnvironmentsUnsubscribeCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudapigeev1exportrequest = googlecloudapigeev1exportrequest + c.googlecloudapigeev1subscription = googlecloudapigeev1subscription return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsExportsCreateCall { +func (c *OrganizationsEnvironmentsUnsubscribeCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUnsubscribeCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -21624,36 +22023,36 @@ func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Fields(s ...google // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsExportsCreateCall { +func (c *OrganizationsEnvironmentsUnsubscribeCall) Context(ctx context.Context) *OrganizationsEnvironmentsUnsubscribeCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Header() http.Header { +func (c *OrganizationsEnvironmentsUnsubscribeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsUnsubscribeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1exportrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1subscription) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/exports") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:unsubscribe") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -21666,14 +22065,14 @@ func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) doRequest(alt stri return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.analytics.exports.create" call. -// Exactly one of *GoogleCloudApigeeV1Export or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudApigeeV1Export.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "apigee.organizations.environments.unsubscribe" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Export, error) { +func (c *OrganizationsEnvironmentsUnsubscribeCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -21692,7 +22091,7 @@ func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Export{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -21704,28 +22103,28 @@ func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Do(opts ...googlea } return ret, nil // { - // "description": "Submit a data export job to be processed in the background. If the request is successful, the API returns a 201 status, a URI that can be used to retrieve the status of the export job, and the `state` value of \"enqueued\".", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/exports", + // "description": "Deletes a subscription for the environment's Pub/Sub topic.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:unsubscribe", // "httpMethod": "POST", - // "id": "apigee.organizations.environments.analytics.exports.create", + // "id": "apigee.organizations.environments.unsubscribe", // "parameterOrder": [ // "parent" // ], // "parameters": { // "parent": { - // "description": "Required. Names of the parent organization and environment. Must be of the form `organizations/{org}/environments/{env}`.", + // "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`", // "location": "path", // "pattern": "^organizations/[^/]+/environments/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/analytics/exports", + // "path": "v1/{+parent}:unsubscribe", // "request": { - // "$ref": "GoogleCloudApigeeV1ExportRequest" + // "$ref": "GoogleCloudApigeeV1Subscription" // }, // "response": { - // "$ref": "GoogleCloudApigeeV1Export" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -21734,79 +22133,72 @@ func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Do(opts ...googlea } -// method id "apigee.organizations.environments.analytics.exports.get": +// method id "apigee.organizations.environments.update": -type OrganizationsEnvironmentsAnalyticsExportsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsUpdateCall struct { + s *Service + name string + googlecloudapigeev1environment *GoogleCloudApigeeV1Environment + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets the details and status of an analytics export job. If the -// export job is still in progress, its `state` is set to "running". -// After the export job has completed successfully, its `state` is set -// to "completed". If the export job fails, its `state` is set to -// `failed`. -func (r *OrganizationsEnvironmentsAnalyticsExportsService) Get(name string) *OrganizationsEnvironmentsAnalyticsExportsGetCall { - c := &OrganizationsEnvironmentsAnalyticsExportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Update: Updates an existing environment. When updating properties, +// you must pass all existing properties to the API, even if they are +// not being changed. If you omit properties from the payload, the +// properties are removed. To get the current list of properties for the +// environment, use the [Get Environment API](get). +func (r *OrganizationsEnvironmentsService) Update(name string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsUpdateCall { + c := &OrganizationsEnvironmentsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudapigeev1environment = googlecloudapigeev1environment return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsExportsGetCall { +func (c *OrganizationsEnvironmentsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsAnalyticsExportsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsExportsGetCall { +func (c *OrganizationsEnvironmentsUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Header() http.Header { +func (c *OrganizationsEnvironmentsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("PUT", urls, body) if err != nil { return nil, err } @@ -21817,14 +22209,14 @@ func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.analytics.exports.get" call. -// Exactly one of *GoogleCloudApigeeV1Export or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudApigeeV1Export.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "apigee.organizations.environments.update" call. +// Exactly one of *GoogleCloudApigeeV1Environment or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1Environment.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Export, error) { +func (c *OrganizationsEnvironmentsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -21843,7 +22235,7 @@ func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Export{ + ret := &GoogleCloudApigeeV1Environment{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -21855,25 +22247,28 @@ func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Gets the details and status of an analytics export job. If the export job is still in progress, its `state` is set to \"running\". After the export job has completed successfully, its `state` is set to \"completed\". If the export job fails, its `state` is set to `failed`.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/exports/{exportsId}", - // "httpMethod": "GET", - // "id": "apigee.organizations.environments.analytics.exports.get", + // "description": "Updates an existing environment. When updating properties, you must pass all existing properties to the API, even if they are not being changed. If you omit properties from the payload, the properties are removed. To get the current list of properties for the environment, use the [Get Environment API](get).", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}", + // "httpMethod": "PUT", + // "id": "apigee.organizations.environments.update", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Resource name of the export to get.", + // "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/analytics/exports/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudApigeeV1Environment" + // }, // "response": { - // "$ref": "GoogleCloudApigeeV1Export" + // "$ref": "GoogleCloudApigeeV1Environment" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -21882,95 +22277,104 @@ func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Do(opts ...googleapi. } -// method id "apigee.organizations.environments.analytics.exports.list": +// method id "apigee.organizations.environments.updateDebugmask": -type OrganizationsEnvironmentsAnalyticsExportsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsUpdateDebugmaskCall struct { + s *Service + name string + googlecloudapigeev1debugmask *GoogleCloudApigeeV1DebugMask + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists the details and status of all analytics export jobs -// belonging to the parent organization and environment. -func (r *OrganizationsEnvironmentsAnalyticsExportsService) List(parent string) *OrganizationsEnvironmentsAnalyticsExportsListCall { - c := &OrganizationsEnvironmentsAnalyticsExportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// UpdateDebugmask: Updates the debug mask singleton resource for an +// environment. +func (r *OrganizationsEnvironmentsService) UpdateDebugmask(name string, googlecloudapigeev1debugmask *GoogleCloudApigeeV1DebugMask) *OrganizationsEnvironmentsUpdateDebugmaskCall { + c := &OrganizationsEnvironmentsUpdateDebugmaskCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudapigeev1debugmask = googlecloudapigeev1debugmask + return c +} + +// ReplaceRepeatedFields sets the optional parameter +// "replaceRepeatedFields": Boolean flag that specifies whether to +// replace existing values in the debug mask when doing an update. Set +// to true to replace existing values. The default behavior is to append +// the values (false). +func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) ReplaceRepeatedFields(replaceRepeatedFields bool) *OrganizationsEnvironmentsUpdateDebugmaskCall { + c.urlParams_.Set("replaceRepeatedFields", fmt.Sprint(replaceRepeatedFields)) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field debug mask +// to support partial updates. +func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsUpdateDebugmaskCall { + c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsExportsListCall { +func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateDebugmaskCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsAnalyticsExportsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsExportsListCall { +func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateDebugmaskCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Header() http.Header { +func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1debugmask) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/exports") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.analytics.exports.list" call. -// Exactly one of *GoogleCloudApigeeV1ListExportsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudApigeeV1ListExportsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was +// Do executes the "apigee.organizations.environments.updateDebugmask" call. +// Exactly one of *GoogleCloudApigeeV1DebugMask or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1DebugMask.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListExportsResponse, error) { +func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugMask, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -21989,7 +22393,7 @@ func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Do(opts ...googleapi if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1ListExportsResponse{ + ret := &GoogleCloudApigeeV1DebugMask{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -22001,25 +22405,39 @@ func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Do(opts ...googleapi } return ret, nil // { - // "description": "Lists the details and status of all analytics export jobs belonging to the parent organization and environment.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/exports", - // "httpMethod": "GET", - // "id": "apigee.organizations.environments.analytics.exports.list", + // "description": "Updates the debug mask singleton resource for an environment.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/debugmask", + // "httpMethod": "PATCH", + // "id": "apigee.organizations.environments.updateDebugmask", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. Names of the parent organization and environment. Must be of the form `organizations/{org}/environments/{env}`.", + // "name": { + // "description": "Name of the debug mask.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/debugmask$", // "required": true, // "type": "string" - // } - // }, - // "path": "v1/{+parent}/analytics/exports", - // "response": { - // "$ref": "GoogleCloudApigeeV1ListExportsResponse" + // }, + // "replaceRepeatedFields": { + // "description": "Boolean flag that specifies whether to replace existing values in the debug mask when doing an update. Set to true to replace existing values. The default behavior is to append the values (false).", + // "location": "query", + // "type": "boolean" + // }, + // "updateMask": { + // "description": "Field debug mask to support partial updates.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudApigeeV1DebugMask" + // }, + // "response": { + // "$ref": "GoogleCloudApigeeV1DebugMask" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -22028,95 +22446,90 @@ func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Do(opts ...googleapi } -// method id "apigee.organizations.environments.apis.deployments.list": +// method id "apigee.organizations.environments.updateEnvironment": -type OrganizationsEnvironmentsApisDeploymentsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsUpdateEnvironmentCall struct { + s *Service + name string + googlecloudapigeev1environment *GoogleCloudApigeeV1Environment + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists all deployments of an API proxy in an environment. -func (r *OrganizationsEnvironmentsApisDeploymentsService) List(parent string) *OrganizationsEnvironmentsApisDeploymentsListCall { - c := &OrganizationsEnvironmentsApisDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// UpdateEnvironment: Updates an existing environment. When updating +// properties, you must pass all existing properties to the API, even if +// they are not being changed. If you omit properties from the payload, +// the properties are removed. To get the current list of properties for +// the environment, use the [Get Environment API](get). +func (r *OrganizationsEnvironmentsService) UpdateEnvironment(name string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsUpdateEnvironmentCall { + c := &OrganizationsEnvironmentsUpdateEnvironmentCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudapigeev1environment = googlecloudapigeev1environment return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisDeploymentsListCall { +func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateEnvironmentCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsApisDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisDeploymentsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisDeploymentsListCall { +func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateEnvironmentCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Header() http.Header { +func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsApisDeploymentsListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.apis.deployments.list" call. -// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) { +// Do executes the "apigee.organizations.environments.updateEnvironment" call. +// Exactly one of *GoogleCloudApigeeV1Environment or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1Environment.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -22135,7 +22548,7 @@ func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1ListDeploymentsResponse{ + ret := &GoogleCloudApigeeV1Environment{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -22147,25 +22560,28 @@ func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Lists all deployments of an API proxy in an environment.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/deployments", - // "httpMethod": "GET", - // "id": "apigee.organizations.environments.apis.deployments.list", + // "description": "Updates an existing environment. When updating properties, you must pass all existing properties to the API, even if they are not being changed. If you omit properties from the payload, the properties are removed. To get the current list of properties for the environment, use the [Get Environment API](get).", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}", + // "httpMethod": "POST", + // "id": "apigee.organizations.environments.updateEnvironment", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. Name representing an API proxy in an environment in the following format: `organizations/{org}/environments/{env}/apis/{api}`", + // "name": { + // "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/deployments", + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudApigeeV1Environment" + // }, // "response": { - // "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse" + // "$ref": "GoogleCloudApigeeV1Environment" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -22174,102 +22590,86 @@ func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Do(opts ...googleapi. } -// method id "apigee.organizations.environments.apis.revisions.deploy": +// method id "apigee.organizations.environments.analytics.admin.getSchemav2": -type OrganizationsEnvironmentsApisRevisionsDeployCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Deploy: Deploys a revision of an API proxy. If another revision of -// the same API proxy revision is currently deployed, set the `override` -// parameter to `true` to have this revision replace the currently -// deployed revision. You cannot invoke an API proxy until it has been -// deployed to an environment. After you deploy an API proxy revision, -// you cannot edit it. To edit the API proxy, you must create and deploy -// a new revision. For a request path -// `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/dep -// loyments`, two permissions are required: * -// `apigee.deployments.create` on the resource -// `organizations/{org}/environments/{env}` * -// `apigee.proxyrevisions.deploy` on the resource -// `organizations/{org}/apis/{api}/revisions/{rev}` -func (r *OrganizationsEnvironmentsApisRevisionsService) Deploy(name string) *OrganizationsEnvironmentsApisRevisionsDeployCall { - c := &OrganizationsEnvironmentsApisRevisionsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// GetSchemav2: Get a list of metrics and dimensions which can be used +// for creating analytics queries and reports. Each schema element +// contains the name of the field with its associated type and if it is +// either custom field or standard field. +func (r *OrganizationsEnvironmentsAnalyticsAdminService) GetSchemav2(name string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call { + c := &OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Override sets the optional parameter "override": Flag that specifies -// whether the new deployment replaces other deployed revisions of the -// API proxy in the environment. Set override to true to replace other -// deployed revisions. By default, override is false and the deployment -// is rejected if other revisions of the API proxy are deployed in the -// environment. -func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Override(override bool) *OrganizationsEnvironmentsApisRevisionsDeployCall { - c.urlParams_.Set("override", fmt.Sprint(override)) - return c -} - -// SequencedRollout sets the optional parameter "sequencedRollout": If -// true, a best-effort attempt will be made to roll out the routing -// rules corresponding to this deployment and the environment changes to -// add this deployment in a safe order. This reduces the risk of -// downtime that could be caused by changing the environment group's -// routing before the new destination for the affected traffic is ready -// to receive it. This should only be necessary if the new deployment -// will be capturing traffic from another environment under a shared -// environment group or if traffic will be rerouted to a different -// environment due to a basepath removal. The GenerateDeployChangeReport -// API may be used to examine routing changes before issuing the -// deployment request, and its response will indicate if a sequenced -// rollout is recommended for the deployment. -func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) SequencedRollout(sequencedRollout bool) *OrganizationsEnvironmentsApisRevisionsDeployCall { - c.urlParams_.Set("sequencedRollout", fmt.Sprint(sequencedRollout)) +// Type sets the optional parameter "type": Required. Type refers to the +// dataset name whose schema needs to be retrieved E.g. type=fact or +// type=agg_cus1 +func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Type(type_ string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call { + c.urlParams_.Set("type", type_) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDeployCall { +func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDeployCall { +func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Header() http.Header { +func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -22280,14 +22680,14 @@ func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.apis.revisions.deploy" call. -// Exactly one of *GoogleCloudApigeeV1Deployment or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "apigee.organizations.environments.analytics.admin.getSchemav2" call. +// Exactly one of *GoogleCloudApigeeV1Schema or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudApigeeV1Schema.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) { +func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Schema, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -22306,7 +22706,7 @@ func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Deployment{ + ret := &GoogleCloudApigeeV1Schema{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -22318,35 +22718,30 @@ func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Deploys a revision of an API proxy. If another revision of the same API proxy revision is currently deployed, set the `override` parameter to `true` to have this revision replace the currently deployed revision. You cannot invoke an API proxy until it has been deployed to an environment. After you deploy an API proxy revision, you cannot edit it. To edit the API proxy, you must create and deploy a new revision. For a request path `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/deployments`, two permissions are required: * `apigee.deployments.create` on the resource `organizations/{org}/environments/{env}` * `apigee.proxyrevisions.deploy` on the resource `organizations/{org}/apis/{api}/revisions/{rev}` ", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments", - // "httpMethod": "POST", - // "id": "apigee.organizations.environments.apis.revisions.deploy", + // "description": "Get a list of metrics and dimensions which can be used for creating analytics queries and reports. Each schema element contains the name of the field with its associated type and if it is either custom field or standard field.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/admin/schemav2", + // "httpMethod": "GET", + // "id": "apigee.organizations.environments.analytics.admin.getSchemav2", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Name of the API proxy revision deployment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`", + // "description": "Required. The parent organization and environment names. Must be of the form `organizations/{org}/environments/{env}/analytics/admin/schemav2`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/analytics/admin/schemav2$", // "required": true, // "type": "string" // }, - // "override": { - // "description": "Flag that specifies whether the new deployment replaces other deployed revisions of the API proxy in the environment. Set override to true to replace other deployed revisions. By default, override is false and the deployment is rejected if other revisions of the API proxy are deployed in the environment.", - // "location": "query", - // "type": "boolean" - // }, - // "sequencedRollout": { - // "description": "If true, a best-effort attempt will be made to roll out the routing rules corresponding to this deployment and the environment changes to add this deployment in a safe order. This reduces the risk of downtime that could be caused by changing the environment group's routing before the new destination for the affected traffic is ready to receive it. This should only be necessary if the new deployment will be capturing traffic from another environment under a shared environment group or if traffic will be rerouted to a different environment due to a basepath removal. The GenerateDeployChangeReport API may be used to examine routing changes before issuing the deployment request, and its response will indicate if a sequenced rollout is recommended for the deployment.", + // "type": { + // "description": "Required. Type refers to the dataset name whose schema needs to be retrieved E.g. type=fact or type=agg_cus1", // "location": "query", - // "type": "boolean" + // "type": "string" // } // }, - // "path": "v1/{+name}/deployments", + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudApigeeV1Deployment" + // "$ref": "GoogleCloudApigeeV1Schema" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -22355,94 +22750,89 @@ func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Do(opts ...googleapi. } -// method id "apigee.organizations.environments.apis.revisions.getDeployments": +// method id "apigee.organizations.environments.analytics.exports.create": -type OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsAnalyticsExportsCreateCall struct { + s *Service + parent string + googlecloudapigeev1exportrequest *GoogleCloudApigeeV1ExportRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetDeployments: Gets the deployment of an API proxy revision and -// actual state reported by runtime pods. -func (r *OrganizationsEnvironmentsApisRevisionsService) GetDeployments(name string) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall { - c := &OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// Create: Submit a data export job to be processed in the background. +// If the request is successful, the API returns a 201 status, a URI +// that can be used to retrieve the status of the export job, and the +// `state` value of "enqueued". +func (r *OrganizationsEnvironmentsAnalyticsExportsService) Create(parent string, googlecloudapigeev1exportrequest *GoogleCloudApigeeV1ExportRequest) *OrganizationsEnvironmentsAnalyticsExportsCreateCall { + c := &OrganizationsEnvironmentsAnalyticsExportsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudapigeev1exportrequest = googlecloudapigeev1exportrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall { +func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsExportsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall { +func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsExportsCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Header() http.Header { +func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1exportrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/exports") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.apis.revisions.getDeployments" call. -// Exactly one of *GoogleCloudApigeeV1Deployment or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "apigee.organizations.environments.analytics.exports.create" call. +// Exactly one of *GoogleCloudApigeeV1Export or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudApigeeV1Export.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) { +func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Export, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -22461,7 +22851,7 @@ func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Do(opts ...go if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Deployment{ + ret := &GoogleCloudApigeeV1Export{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -22473,25 +22863,28 @@ func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Do(opts ...go } return ret, nil // { - // "description": "Gets the deployment of an API proxy revision and actual state reported by runtime pods.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments", - // "httpMethod": "GET", - // "id": "apigee.organizations.environments.apis.revisions.getDeployments", + // "description": "Submit a data export job to be processed in the background. If the request is successful, the API returns a 201 status, a URI that can be used to retrieve the status of the export job, and the `state` value of \"enqueued\".", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/exports", + // "httpMethod": "POST", + // "id": "apigee.organizations.environments.analytics.exports.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. Name representing an API proxy revision in an environment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`", + // "parent": { + // "description": "Required. Names of the parent organization and environment. Must be of the form `organizations/{org}/environments/{env}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}/deployments", + // "path": "v1/{+parent}/analytics/exports", + // "request": { + // "$ref": "GoogleCloudApigeeV1ExportRequest" + // }, // "response": { - // "$ref": "GoogleCloudApigeeV1Deployment" + // "$ref": "GoogleCloudApigeeV1Export" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -22500,84 +22893,79 @@ func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Do(opts ...go } -// method id "apigee.organizations.environments.apis.revisions.undeploy": +// method id "apigee.organizations.environments.analytics.exports.get": -type OrganizationsEnvironmentsApisRevisionsUndeployCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsAnalyticsExportsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Undeploy: Undeploys an API proxy revision from an environment. For a -// request path -// `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/dep -// loyments`, two permissions are required: * -// `apigee.deployments.delete` on the resource -// `organizations/{org}/environments/{env}` * -// `apigee.proxyrevisions.undeploy` on the resource -// `organizations/{org}/apis/{api}/revisions/{rev}` -func (r *OrganizationsEnvironmentsApisRevisionsService) Undeploy(name string) *OrganizationsEnvironmentsApisRevisionsUndeployCall { - c := &OrganizationsEnvironmentsApisRevisionsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Get: Gets the details and status of an analytics export job. If the +// export job is still in progress, its `state` is set to "running". +// After the export job has completed successfully, its `state` is set +// to "completed". If the export job fails, its `state` is set to +// `failed`. +func (r *OrganizationsEnvironmentsAnalyticsExportsService) Get(name string) *OrganizationsEnvironmentsAnalyticsExportsGetCall { + c := &OrganizationsEnvironmentsAnalyticsExportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// SequencedRollout sets the optional parameter "sequencedRollout": If -// true, a best-effort attempt will be made to remove the environment -// group routing rules corresponding to this deployment before removing -// the deployment from the runtime. This is likely to be a rare use -// case; it is only needed when the intended effect of undeploying this -// proxy is to cause the traffic it currently handles to be rerouted to -// some other existing proxy in the environment group. The -// GenerateUndeployChangeReport API may be used to examine routing -// changes before issuing the undeployment request, and its response -// will indicate if a sequenced rollout is recommended for the -// undeployment. -func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) SequencedRollout(sequencedRollout bool) *OrganizationsEnvironmentsApisRevisionsUndeployCall { - c.urlParams_.Set("sequencedRollout", fmt.Sprint(sequencedRollout)) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsUndeployCall { +func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsExportsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsAnalyticsExportsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsUndeployCall { +func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsExportsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Header() http.Header { +func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -22588,14 +22976,14 @@ func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) doRequest(alt strin return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.apis.revisions.undeploy" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "apigee.organizations.environments.analytics.exports.get" call. +// Exactly one of *GoogleCloudApigeeV1Export or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudApigeeV1Export.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Export, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -22614,7 +23002,7 @@ func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudApigeeV1Export{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -22626,30 +23014,25 @@ func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Do(opts ...googleap } return ret, nil // { - // "description": "Undeploys an API proxy revision from an environment. For a request path `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/deployments`, two permissions are required: * `apigee.deployments.delete` on the resource `organizations/{org}/environments/{env}` * `apigee.proxyrevisions.undeploy` on the resource `organizations/{org}/apis/{api}/revisions/{rev}`", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments", - // "httpMethod": "DELETE", - // "id": "apigee.organizations.environments.apis.revisions.undeploy", + // "description": "Gets the details and status of an analytics export job. If the export job is still in progress, its `state` is set to \"running\". After the export job has completed successfully, its `state` is set to \"completed\". If the export job fails, its `state` is set to `failed`.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/exports/{exportsId}", + // "httpMethod": "GET", + // "id": "apigee.organizations.environments.analytics.exports.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Name of the API proxy revision deployment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`", + // "description": "Required. Resource name of the export to get.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/analytics/exports/[^/]+$", // "required": true, // "type": "string" - // }, - // "sequencedRollout": { - // "description": "If true, a best-effort attempt will be made to remove the environment group routing rules corresponding to this deployment before removing the deployment from the runtime. This is likely to be a rare use case; it is only needed when the intended effect of undeploying this proxy is to cause the traffic it currently handles to be rerouted to some other existing proxy in the environment group. The GenerateUndeployChangeReport API may be used to examine routing changes before issuing the undeployment request, and its response will indicate if a sequenced rollout is recommended for the undeployment.", - // "location": "query", - // "type": "boolean" // } // }, - // "path": "v1/{+name}/deployments", + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudApigeeV1Export" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -22658,76 +23041,76 @@ func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Do(opts ...googleap } -// method id "apigee.organizations.environments.apis.revisions.debugsessions.create": +// method id "apigee.organizations.environments.analytics.exports.list": -type OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall struct { - s *Service - parent string - googlecloudapigeev1debugsession *GoogleCloudApigeeV1DebugSession - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsAnalyticsExportsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a debug session for a deployed API Proxy revision. -func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) Create(parent string, googlecloudapigeev1debugsession *GoogleCloudApigeeV1DebugSession) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall { - c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// List: Lists the details and status of all analytics export jobs +// belonging to the parent organization and environment. +func (r *OrganizationsEnvironmentsAnalyticsExportsService) List(parent string) *OrganizationsEnvironmentsAnalyticsExportsListCall { + c := &OrganizationsEnvironmentsAnalyticsExportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudapigeev1debugsession = googlecloudapigeev1debugsession - return c -} - -// Timeout sets the optional parameter "timeout": The time in seconds -// after which this DebugSession should end. A timeout specified in -// DebugSession will overwrite this value. -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Timeout(timeout int64) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall { - c.urlParams_.Set("timeout", fmt.Sprint(timeout)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall { +func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsExportsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsAnalyticsExportsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall { +func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsExportsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Header() http.Header { +func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1debugsession) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/debugsessions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/exports") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -22738,14 +23121,15 @@ func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) doReques return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.create" call. -// Exactly one of *GoogleCloudApigeeV1DebugSession or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1DebugSession.ServerResponse.Header or (if +// Do executes the "apigee.organizations.environments.analytics.exports.list" call. +// Exactly one of *GoogleCloudApigeeV1ListExportsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudApigeeV1ListExportsResponse.ServerResponse.Header or (if // a response was returned at all) in error.(*googleapi.Error).Header. // Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSession, error) { +func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListExportsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -22764,7 +23148,7 @@ func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Do(opts if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1DebugSession{ + ret := &GoogleCloudApigeeV1ListExportsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -22776,34 +23160,25 @@ func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Do(opts } return ret, nil // { - // "description": "Creates a debug session for a deployed API Proxy revision.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions", - // "httpMethod": "POST", - // "id": "apigee.organizations.environments.apis.revisions.debugsessions.create", + // "description": "Lists the details and status of all analytics export jobs belonging to the parent organization and environment.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/exports", + // "httpMethod": "GET", + // "id": "apigee.organizations.environments.analytics.exports.list", // "parameterOrder": [ // "parent" // ], // "parameters": { // "parent": { - // "description": "Required. The resource name of the API Proxy revision deployment for which to create the DebugSession. Must be of the form `organizations/{organization}/environments/{environment}/apis/{api}/revisions/{revision}`.", + // "description": "Required. Names of the parent organization and environment. Must be of the form `organizations/{org}/environments/{env}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+$", // "required": true, // "type": "string" - // }, - // "timeout": { - // "description": "Optional. The time in seconds after which this DebugSession should end. A timeout specified in DebugSession will overwrite this value.", - // "format": "int64", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+parent}/debugsessions", - // "request": { - // "$ref": "GoogleCloudApigeeV1DebugSession" - // }, + // "path": "v1/{+parent}/analytics/exports", // "response": { - // "$ref": "GoogleCloudApigeeV1DebugSession" + // "$ref": "GoogleCloudApigeeV1ListExportsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -22812,81 +23187,95 @@ func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Do(opts } -// method id "apigee.organizations.environments.apis.revisions.debugsessions.deleteData": +// method id "apigee.organizations.environments.apis.deployments.list": -type OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsApisDeploymentsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// DeleteData: Deletes the data from a debug session. This does not -// cancel the debug session or prevent further data from being collected -// if the session is still active in runtime pods. -func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) DeleteData(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall { - c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// List: Lists all deployments of an API proxy in an environment. +func (r *OrganizationsEnvironmentsApisDeploymentsService) List(parent string) *OrganizationsEnvironmentsApisDeploymentsListCall { + c := &OrganizationsEnvironmentsApisDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall { +func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisDeploymentsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsEnvironmentsApisDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisDeploymentsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall { +func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisDeploymentsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Header() http.Header { +func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsApisDeploymentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/data") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.deleteData" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// Do executes the "apigee.organizations.environments.apis.deployments.list" call. +// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -22905,7 +23294,7 @@ func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Do(o if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudApigeeV1ListDeploymentsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -22917,25 +23306,25 @@ func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Do(o } return ret, nil // { - // "description": "Deletes the data from a debug session. This does not cancel the debug session or prevent further data from being collected if the session is still active in runtime pods.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions/{debugsessionsId}/data", - // "httpMethod": "DELETE", - // "id": "apigee.organizations.environments.apis.revisions.debugsessions.deleteData", + // "description": "Lists all deployments of an API proxy in an environment.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/deployments", + // "httpMethod": "GET", + // "id": "apigee.organizations.environments.apis.deployments.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the debug session to delete. Must be of the form: `organizations/{organization}/environments/{environment}/apis/{api}/revisions/{revision}/debugsessions/{debugsession}`.", + // "parent": { + // "description": "Required. Name representing an API proxy in an environment in the following format: `organizations/{org}/environments/{env}/apis/{api}`", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+/debugsessions/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}/data", + // "path": "v1/{+parent}/deployments", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -22944,75 +23333,102 @@ func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Do(o } -// method id "apigee.organizations.environments.apis.revisions.debugsessions.get": +// method id "apigee.organizations.environments.apis.revisions.deploy": -type OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsApisRevisionsDeployCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Retrieves a debug session. -func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) Get(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall { - c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Deploy: Deploys a revision of an API proxy. If another revision of +// the same API proxy revision is currently deployed, set the `override` +// parameter to `true` to have this revision replace the currently +// deployed revision. You cannot invoke an API proxy until it has been +// deployed to an environment. After you deploy an API proxy revision, +// you cannot edit it. To edit the API proxy, you must create and deploy +// a new revision. For a request path +// `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/dep +// loyments`, two permissions are required: * +// `apigee.deployments.create` on the resource +// `organizations/{org}/environments/{env}` * +// `apigee.proxyrevisions.deploy` on the resource +// `organizations/{org}/apis/{api}/revisions/{rev}` +func (r *OrganizationsEnvironmentsApisRevisionsService) Deploy(name string) *OrganizationsEnvironmentsApisRevisionsDeployCall { + c := &OrganizationsEnvironmentsApisRevisionsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Override sets the optional parameter "override": Flag that specifies +// whether the new deployment replaces other deployed revisions of the +// API proxy in the environment. Set override to true to replace other +// deployed revisions. By default, override is false and the deployment +// is rejected if other revisions of the API proxy are deployed in the +// environment. +func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Override(override bool) *OrganizationsEnvironmentsApisRevisionsDeployCall { + c.urlParams_.Set("override", fmt.Sprint(override)) + return c +} + +// SequencedRollout sets the optional parameter "sequencedRollout": If +// true, a best-effort attempt will be made to roll out the routing +// rules corresponding to this deployment and the environment changes to +// add this deployment in a safe order. This reduces the risk of +// downtime that could be caused by changing the environment group's +// routing before the new destination for the affected traffic is ready +// to receive it. This should only be necessary if the new deployment +// will be capturing traffic from another environment under a shared +// environment group or if traffic will be rerouted to a different +// environment due to a basepath removal. The GenerateDeployChangeReport +// API may be used to examine routing changes before issuing the +// deployment request, and its response will indicate if a sequenced +// rollout is recommended for the deployment. +func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) SequencedRollout(sequencedRollout bool) *OrganizationsEnvironmentsApisRevisionsDeployCall { + c.urlParams_.Set("sequencedRollout", fmt.Sprint(sequencedRollout)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall { +func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDeployCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall { +func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDeployCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Header() http.Header { +func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -23023,14 +23439,14 @@ func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) doRequest(a return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.get" call. -// Exactly one of *GoogleCloudApigeeV1DebugSession or error will be +// Do executes the "apigee.organizations.environments.apis.revisions.deploy" call. +// Exactly one of *GoogleCloudApigeeV1Deployment or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1DebugSession.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was +// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSession, error) { +func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -23049,7 +23465,7 @@ func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Do(opts ... if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1DebugSession{ + ret := &GoogleCloudApigeeV1Deployment{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -23061,25 +23477,35 @@ func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Do(opts ... } return ret, nil // { - // "description": "Retrieves a debug session.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions/{debugsessionsId}", - // "httpMethod": "GET", - // "id": "apigee.organizations.environments.apis.revisions.debugsessions.get", + // "description": "Deploys a revision of an API proxy. If another revision of the same API proxy revision is currently deployed, set the `override` parameter to `true` to have this revision replace the currently deployed revision. You cannot invoke an API proxy until it has been deployed to an environment. After you deploy an API proxy revision, you cannot edit it. To edit the API proxy, you must create and deploy a new revision. For a request path `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/deployments`, two permissions are required: * `apigee.deployments.create` on the resource `organizations/{org}/environments/{env}` * `apigee.proxyrevisions.deploy` on the resource `organizations/{org}/apis/{api}/revisions/{rev}` ", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments", + // "httpMethod": "POST", + // "id": "apigee.organizations.environments.apis.revisions.deploy", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the debug session to retrieve. Must be of the form: `organizations/{organization}/environments/{environment}/apis/{api}/revisions/{revision}/debugsessions/{session}`.", + // "description": "Required. Name of the API proxy revision deployment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+/debugsessions/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$", // "required": true, // "type": "string" + // }, + // "override": { + // "description": "Flag that specifies whether the new deployment replaces other deployed revisions of the API proxy in the environment. Set override to true to replace other deployed revisions. By default, override is false and the deployment is rejected if other revisions of the API proxy are deployed in the environment.", + // "location": "query", + // "type": "boolean" + // }, + // "sequencedRollout": { + // "description": "If true, a best-effort attempt will be made to roll out the routing rules corresponding to this deployment and the environment changes to add this deployment in a safe order. This reduces the risk of downtime that could be caused by changing the environment group's routing before the new destination for the affected traffic is ready to receive it. This should only be necessary if the new deployment will be capturing traffic from another environment under a shared environment group or if traffic will be rerouted to a different environment due to a basepath removal. The GenerateDeployChangeReport API may be used to examine routing changes before issuing the deployment request, and its response will indicate if a sequenced rollout is recommended for the deployment.", + // "location": "query", + // "type": "boolean" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+name}/deployments", // "response": { - // "$ref": "GoogleCloudApigeeV1DebugSession" + // "$ref": "GoogleCloudApigeeV1Deployment" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -23088,44 +23514,29 @@ func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Do(opts ... } -// method id "apigee.organizations.environments.apis.revisions.debugsessions.list": +// method id "apigee.organizations.environments.apis.revisions.getDeployments": -type OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall struct { +type OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists debug sessions that are currently active in the given API -// Proxy revision. -func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) List(parent string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall { - c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// PageSize sets the optional parameter "pageSize": Maximum number of -// debug sessions to return. The page size defaults to 25. -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": Page token, -// returned from a previous ListDebugSessions call, that you can use to -// retrieve the next page. -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) PageToken(pageToken string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall { - c.urlParams_.Set("pageToken", pageToken) +// GetDeployments: Gets the deployment of an API proxy revision and +// actual state reported by runtime pods. +func (r *OrganizationsEnvironmentsApisRevisionsService) GetDeployments(name string) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall { + c := &OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall { +func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -23135,7 +23546,7 @@ func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Fields(s . // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall { +func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall { c.ifNoneMatch_ = entityTag return c } @@ -23143,23 +23554,23 @@ func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) IfNoneMatc // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall { +func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Header() http.Header { +func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23170,7 +23581,7 @@ func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) doRequest( var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/debugsessions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -23178,21 +23589,19 @@ func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) doRequest( } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.list" call. -// Exactly one of *GoogleCloudApigeeV1ListDebugSessionsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudApigeeV1ListDebugSessionsResponse.ServerResponse.Header -// or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDebugSessionsResponse, error) { +// Do executes the "apigee.organizations.environments.apis.revisions.getDeployments" call. +// Exactly one of *GoogleCloudApigeeV1Deployment or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -23211,7 +23620,7 @@ func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Do(opts .. if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1ListDebugSessionsResponse{ + ret := &GoogleCloudApigeeV1Deployment{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -23223,36 +23632,25 @@ func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Do(opts .. } return ret, nil // { - // "description": "Lists debug sessions that are currently active in the given API Proxy revision.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions", + // "description": "Gets the deployment of an API proxy revision and actual state reported by runtime pods.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments", // "httpMethod": "GET", - // "id": "apigee.organizations.environments.apis.revisions.debugsessions.list", + // "id": "apigee.organizations.environments.apis.revisions.getDeployments", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "pageSize": { - // "description": "Maximum number of debug sessions to return. The page size defaults to 25.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Page token, returned from a previous ListDebugSessions call, that you can use to retrieve the next page.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The name of the API Proxy revision deployment for which to list debug sessions. Must be of the form: `organizations/{organization}/environments/{environment}/apis/{api}/revisions/{revision}`.", + // "name": { + // "description": "Required. Name representing an API proxy revision in an environment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`", // "location": "path", // "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/debugsessions", + // "path": "v1/{+name}/deployments", // "response": { - // "$ref": "GoogleCloudApigeeV1ListDebugSessionsResponse" + // "$ref": "GoogleCloudApigeeV1Deployment" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -23261,96 +23659,84 @@ func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Do(opts .. } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListDebugSessionsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -// method id "apigee.organizations.environments.apis.revisions.debugsessions.data.get": +// method id "apigee.organizations.environments.apis.revisions.undeploy": -type OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsApisRevisionsUndeployCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets the debug data from a transaction. -func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService) Get(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall { - c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Undeploy: Undeploys an API proxy revision from an environment. For a +// request path +// `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/dep +// loyments`, two permissions are required: * +// `apigee.deployments.delete` on the resource +// `organizations/{org}/environments/{env}` * +// `apigee.proxyrevisions.undeploy` on the resource +// `organizations/{org}/apis/{api}/revisions/{rev}` +func (r *OrganizationsEnvironmentsApisRevisionsService) Undeploy(name string) *OrganizationsEnvironmentsApisRevisionsUndeployCall { + c := &OrganizationsEnvironmentsApisRevisionsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// SequencedRollout sets the optional parameter "sequencedRollout": If +// true, a best-effort attempt will be made to remove the environment +// group routing rules corresponding to this deployment before removing +// the deployment from the runtime. This is likely to be a rare use +// case; it is only needed when the intended effect of undeploying this +// proxy is to cause the traffic it currently handles to be rerouted to +// some other existing proxy in the environment group. The +// GenerateUndeployChangeReport API may be used to examine routing +// changes before issuing the undeployment request, and its response +// will indicate if a sequenced rollout is recommended for the +// undeployment. +func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) SequencedRollout(sequencedRollout bool) *OrganizationsEnvironmentsApisRevisionsUndeployCall { + c.urlParams_.Set("sequencedRollout", fmt.Sprint(sequencedRollout)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall { +func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsUndeployCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall { +func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsUndeployCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Header() http.Header { +func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -23361,16 +23747,14 @@ func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) doReque return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.data.get" call. -// Exactly one of *GoogleCloudApigeeV1DebugSessionTransaction or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudApigeeV1DebugSessionTransaction.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSessionTransaction, error) { +// Do executes the "apigee.organizations.environments.apis.revisions.undeploy" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -23389,7 +23773,7 @@ func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Do(opts if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1DebugSessionTransaction{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -23401,25 +23785,30 @@ func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Do(opts } return ret, nil // { - // "description": "Gets the debug data from a transaction.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions/{debugsessionsId}/data/{dataId}", - // "httpMethod": "GET", - // "id": "apigee.organizations.environments.apis.revisions.debugsessions.data.get", + // "description": "Undeploys an API proxy revision from an environment. For a request path `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/deployments`, two permissions are required: * `apigee.deployments.delete` on the resource `organizations/{org}/environments/{env}` * `apigee.proxyrevisions.undeploy` on the resource `organizations/{org}/apis/{api}/revisions/{rev}`", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments", + // "httpMethod": "DELETE", + // "id": "apigee.organizations.environments.apis.revisions.undeploy", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the debug session transaction. Must be of the form: `organizations/{organization}/environments/{environment}/apis/{api}/revisions/{revision}/debugsessions/{session}/data/{transaction}`.", + // "description": "Required. Name of the API proxy revision deployment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+/debugsessions/[^/]+/data/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$", // "required": true, // "type": "string" + // }, + // "sequencedRollout": { + // "description": "If true, a best-effort attempt will be made to remove the environment group routing rules corresponding to this deployment before removing the deployment from the runtime. This is likely to be a rare use case; it is only needed when the intended effect of undeploying this proxy is to cause the traffic it currently handles to be rerouted to some other existing proxy in the environment group. The GenerateUndeployChangeReport API may be used to examine routing changes before issuing the undeployment request, and its response will indicate if a sequenced rollout is recommended for the undeployment.", + // "location": "query", + // "type": "boolean" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+name}/deployments", // "response": { - // "$ref": "GoogleCloudApigeeV1DebugSessionTransaction" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -23428,48 +23817,37 @@ func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Do(opts } -// method id "apigee.organizations.environments.apis.revisions.deployments.generateDeployChangeReport": +// method id "apigee.organizations.environments.apis.revisions.debugsessions.create": -type OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall struct { + s *Service + parent string + googlecloudapigeev1debugsession *GoogleCloudApigeeV1DebugSession + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GenerateDeployChangeReport: Generates a report for a dry run analysis -// of a DeployApiProxy request without committing the deployment. In -// addition to the standard validations performed when adding -// deployments, additional analysis will be done to detect possible -// traffic routing changes that would result from this deployment being -// created. Any potential routing conflicts or unsafe changes will be -// reported in the response. This routing analysis is not performed for -// a non-dry-run DeployApiProxy request. For a request path -// `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/dep -// loyments:generateDeployChangeReport`, two permissions are required: * -// `apigee.deployments.create` on the resource -// `organizations/{org}/environments/{env}` * -// `apigee.proxyrevisions.deploy` on the resource -// `organizations/{org}/apis/{api}/revisions/{rev}` -func (r *OrganizationsEnvironmentsApisRevisionsDeploymentsService) GenerateDeployChangeReport(name string) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall { - c := &OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// Create: Creates a debug session for a deployed API Proxy revision. +func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) Create(parent string, googlecloudapigeev1debugsession *GoogleCloudApigeeV1DebugSession) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall { + c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudapigeev1debugsession = googlecloudapigeev1debugsession return c } -// Override sets the optional parameter "override": Flag that specifies -// whether to force the deployment of the new revision over the -// currently deployed revision by overriding conflict checks. -func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Override(override bool) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall { - c.urlParams_.Set("override", fmt.Sprint(override)) +// Timeout sets the optional parameter "timeout": The time in seconds +// after which this DebugSession should end. A timeout specified in +// DebugSession will overwrite this value. +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Timeout(timeout int64) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall { + c.urlParams_.Set("timeout", fmt.Sprint(timeout)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall { +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -23477,31 +23855,36 @@ func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeRe // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall { +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Header() http.Header { +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1debugsession) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments:generateDeployChangeReport") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/debugsessions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -23509,21 +23892,19 @@ func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeRe } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.apis.revisions.deployments.generateDeployChangeReport" call. -// Exactly one of *GoogleCloudApigeeV1DeploymentChangeReport or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudApigeeV1DeploymentChangeReport.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeploymentChangeReport, error) { +// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.create" call. +// Exactly one of *GoogleCloudApigeeV1DebugSession or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1DebugSession.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSession, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -23542,7 +23923,7 @@ func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeRe if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1DeploymentChangeReport{ + ret := &GoogleCloudApigeeV1DebugSession{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -23554,30 +23935,34 @@ func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeRe } return ret, nil // { - // "description": "Generates a report for a dry run analysis of a DeployApiProxy request without committing the deployment. In addition to the standard validations performed when adding deployments, additional analysis will be done to detect possible traffic routing changes that would result from this deployment being created. Any potential routing conflicts or unsafe changes will be reported in the response. This routing analysis is not performed for a non-dry-run DeployApiProxy request. For a request path `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/deployments:generateDeployChangeReport`, two permissions are required: * `apigee.deployments.create` on the resource `organizations/{org}/environments/{env}` * `apigee.proxyrevisions.deploy` on the resource `organizations/{org}/apis/{api}/revisions/{rev}`", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments:generateDeployChangeReport", + // "description": "Creates a debug session for a deployed API Proxy revision.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions", // "httpMethod": "POST", - // "id": "apigee.organizations.environments.apis.revisions.deployments.generateDeployChangeReport", + // "id": "apigee.organizations.environments.apis.revisions.debugsessions.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Name of the API proxy revision deployment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`", + // "parent": { + // "description": "Required. The resource name of the API Proxy revision deployment for which to create the DebugSession. Must be of the form `organizations/{organization}/environments/{environment}/apis/{api}/revisions/{revision}`.", // "location": "path", // "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$", // "required": true, // "type": "string" // }, - // "override": { - // "description": "Flag that specifies whether to force the deployment of the new revision over the currently deployed revision by overriding conflict checks.", + // "timeout": { + // "description": "Optional. The time in seconds after which this DebugSession should end. A timeout specified in DebugSession will overwrite this value.", + // "format": "int64", // "location": "query", - // "type": "boolean" + // "type": "string" // } // }, - // "path": "v1/{+name}/deployments:generateDeployChangeReport", + // "path": "v1/{+parent}/debugsessions", + // "request": { + // "$ref": "GoogleCloudApigeeV1DebugSession" + // }, // "response": { - // "$ref": "GoogleCloudApigeeV1DeploymentChangeReport" + // "$ref": "GoogleCloudApigeeV1DebugSession" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -23586,9 +23971,9 @@ func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeRe } -// method id "apigee.organizations.environments.apis.revisions.deployments.generateUndeployChangeReport": +// method id "apigee.organizations.environments.apis.revisions.debugsessions.deleteData": -type OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall struct { +type OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -23596,23 +23981,11 @@ type OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeRepo header_ http.Header } -// GenerateUndeployChangeReport: Generates a report for a dry run -// analysis of an UndeployApiProxy request without committing the -// undeploy. In addition to the standard validations performed when -// removing deployments, additional analysis will be done to detect -// possible traffic routing changes that would result from this -// deployment being removed. Any potential routing conflicts or unsafe -// changes will be reported in the response. This routing analysis is -// not performed for a non-dry-run UndeployApiProxy request. For a -// request path -// `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/dep -// loyments:generateUndeployChangeReport`, two permissions are required: -// * `apigee.deployments.delete` on the resource -// `organizations/{org}/environments/{env}` * -// `apigee.proxyrevisions.undeploy` on the resource -// `organizations/{org}/apis/{api}/revisions/{rev}` -func (r *OrganizationsEnvironmentsApisRevisionsDeploymentsService) GenerateUndeployChangeReport(name string) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall { - c := &OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// DeleteData: Deletes the data from a debug session. This does not +// cancel the debug session or prevent further data from being collected +// if the session is still active in runtime pods. +func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) DeleteData(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall { + c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -23620,7 +23993,7 @@ func (r *OrganizationsEnvironmentsApisRevisionsDeploymentsService) GenerateUndep // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall { +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -23628,23 +24001,23 @@ func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChange // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall { +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Header() http.Header { +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23652,9 +24025,9 @@ func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChange var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments:generateUndeployChangeReport") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/data") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -23665,16 +24038,14 @@ func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChange return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.apis.revisions.deployments.generateUndeployChangeReport" call. -// Exactly one of *GoogleCloudApigeeV1DeploymentChangeReport or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudApigeeV1DeploymentChangeReport.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeploymentChangeReport, error) { +// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.deleteData" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -23693,7 +24064,7 @@ func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChange if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1DeploymentChangeReport{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -23705,25 +24076,25 @@ func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChange } return ret, nil // { - // "description": "Generates a report for a dry run analysis of an UndeployApiProxy request without committing the undeploy. In addition to the standard validations performed when removing deployments, additional analysis will be done to detect possible traffic routing changes that would result from this deployment being removed. Any potential routing conflicts or unsafe changes will be reported in the response. This routing analysis is not performed for a non-dry-run UndeployApiProxy request. For a request path `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/deployments:generateUndeployChangeReport`, two permissions are required: * `apigee.deployments.delete` on the resource `organizations/{org}/environments/{env}` * `apigee.proxyrevisions.undeploy` on the resource `organizations/{org}/apis/{api}/revisions/{rev}`", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments:generateUndeployChangeReport", - // "httpMethod": "POST", - // "id": "apigee.organizations.environments.apis.revisions.deployments.generateUndeployChangeReport", + // "description": "Deletes the data from a debug session. This does not cancel the debug session or prevent further data from being collected if the session is still active in runtime pods.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions/{debugsessionsId}/data", + // "httpMethod": "DELETE", + // "id": "apigee.organizations.environments.apis.revisions.debugsessions.deleteData", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Name of the API proxy revision deployment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`", + // "description": "Required. The name of the debug session to delete. Must be of the form: `organizations/{organization}/environments/{environment}/apis/{api}/revisions/{revision}/debugsessions/{debugsession}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+/debugsessions/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}/deployments:generateUndeployChangeReport", + // "path": "v1/{+name}/data", // "response": { - // "$ref": "GoogleCloudApigeeV1DeploymentChangeReport" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -23732,19 +24103,20 @@ func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChange } -// method id "apigee.organizations.environments.caches.delete": +// method id "apigee.organizations.environments.apis.revisions.debugsessions.get": -type OrganizationsEnvironmentsCachesDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a cache. -func (r *OrganizationsEnvironmentsCachesService) Delete(name string) *OrganizationsEnvironmentsCachesDeleteCall { - c := &OrganizationsEnvironmentsCachesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Get: Retrieves a debug session. +func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) Get(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall { + c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -23752,41 +24124,54 @@ func (r *OrganizationsEnvironmentsCachesService) Delete(name string) *Organizati // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsCachesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsCachesDeleteCall { +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsCachesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsCachesDeleteCall { +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsCachesDeleteCall) Header() http.Header { +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsCachesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -23797,14 +24182,14 @@ func (c *OrganizationsEnvironmentsCachesDeleteCall) doRequest(alt string) (*http return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.caches.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was +// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.get" call. +// Exactly one of *GoogleCloudApigeeV1DebugSession or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1DebugSession.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsCachesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSession, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -23823,7 +24208,7 @@ func (c *OrganizationsEnvironmentsCachesDeleteCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudApigeeV1DebugSession{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -23835,25 +24220,25 @@ func (c *OrganizationsEnvironmentsCachesDeleteCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Deletes a cache.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/caches/{cachesId}", - // "httpMethod": "DELETE", - // "id": "apigee.organizations.environments.caches.delete", + // "description": "Retrieves a debug session.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions/{debugsessionsId}", + // "httpMethod": "GET", + // "id": "apigee.organizations.environments.apis.revisions.debugsessions.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Cache resource name of the form: `organizations/{organization_id}/environments/{environment_id}/caches/{cache_id}`", + // "description": "Required. The name of the debug session to retrieve. Must be of the form: `organizations/{organization}/environments/{environment}/apis/{api}/revisions/{revision}/debugsessions/{session}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/caches/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+/debugsessions/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudApigeeV1DebugSession" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -23862,9 +24247,9 @@ func (c *OrganizationsEnvironmentsCachesDeleteCall) Do(opts ...googleapi.CallOpt } -// method id "apigee.organizations.environments.deployments.list": +// method id "apigee.organizations.environments.apis.revisions.debugsessions.list": -type OrganizationsEnvironmentsDeploymentsListCall struct { +type OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -23873,27 +24258,33 @@ type OrganizationsEnvironmentsDeploymentsListCall struct { header_ http.Header } -// List: Lists all deployments of API proxies or shared flows in an -// environment. -func (r *OrganizationsEnvironmentsDeploymentsService) List(parent string) *OrganizationsEnvironmentsDeploymentsListCall { - c := &OrganizationsEnvironmentsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// List: Lists debug sessions that are currently active in the given API +// Proxy revision. +func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) List(parent string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall { + c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// SharedFlows sets the optional parameter "sharedFlows": Flag that -// specifies whether to return shared flow or API proxy deployments. Set -// to `true` to return shared flow deployments; set to `false` to return -// API proxy deployments. Defaults to `false`. -func (c *OrganizationsEnvironmentsDeploymentsListCall) SharedFlows(sharedFlows bool) *OrganizationsEnvironmentsDeploymentsListCall { - c.urlParams_.Set("sharedFlows", fmt.Sprint(sharedFlows)) +// PageSize sets the optional parameter "pageSize": Maximum number of +// debug sessions to return. The page size defaults to 25. +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token, +// returned from a previous ListDebugSessions call, that you can use to +// retrieve the next page. +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) PageToken(pageToken string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsDeploymentsListCall { +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -23903,7 +24294,7 @@ func (c *OrganizationsEnvironmentsDeploymentsListCall) Fields(s ...googleapi.Fie // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsDeploymentsListCall { +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall { c.ifNoneMatch_ = entityTag return c } @@ -23911,23 +24302,23 @@ func (c *OrganizationsEnvironmentsDeploymentsListCall) IfNoneMatch(entityTag str // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsDeploymentsListCall { +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsDeploymentsListCall) Header() http.Header { +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsDeploymentsListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23938,7 +24329,7 @@ func (c *OrganizationsEnvironmentsDeploymentsListCall) doRequest(alt string) (*h var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/debugsessions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -23951,16 +24342,16 @@ func (c *OrganizationsEnvironmentsDeploymentsListCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.deployments.list" call. -// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error +// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.list" call. +// Exactly one of *GoogleCloudApigeeV1ListDebugSessionsResponse or error // will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or -// (if a response was returned at all) in +// *GoogleCloudApigeeV1ListDebugSessionsResponse.ServerResponse.Header +// or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *OrganizationsEnvironmentsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) { +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDebugSessionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -23979,7 +24370,7 @@ func (c *OrganizationsEnvironmentsDeploymentsListCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1ListDeploymentsResponse{ + ret := &GoogleCloudApigeeV1ListDebugSessionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -23991,30 +24382,36 @@ func (c *OrganizationsEnvironmentsDeploymentsListCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Lists all deployments of API proxies or shared flows in an environment.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/deployments", + // "description": "Lists debug sessions that are currently active in the given API Proxy revision.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions", // "httpMethod": "GET", - // "id": "apigee.organizations.environments.deployments.list", + // "id": "apigee.organizations.environments.apis.revisions.debugsessions.list", // "parameterOrder": [ // "parent" // ], // "parameters": { + // "pageSize": { + // "description": "Maximum number of debug sessions to return. The page size defaults to 25.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Page token, returned from a previous ListDebugSessions call, that you can use to retrieve the next page.", + // "location": "query", + // "type": "string" + // }, // "parent": { - // "description": "Required. Name of the environment for which to return deployment information in the following format: `organizations/{org}/environments/{env}`", + // "description": "Required. The name of the API Proxy revision deployment for which to list debug sessions. Must be of the form: `organizations/{organization}/environments/{environment}/apis/{api}/revisions/{revision}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$", // "required": true, // "type": "string" - // }, - // "sharedFlows": { - // "description": "Optional. Flag that specifies whether to return shared flow or API proxy deployments. Set to `true` to return shared flow deployments; set to `false` to return API proxy deployments. Defaults to `false`.", - // "location": "query", - // "type": "boolean" // } // }, - // "path": "v1/{+parent}/deployments", + // "path": "v1/{+parent}/debugsessions", // "response": { - // "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse" + // "$ref": "GoogleCloudApigeeV1ListDebugSessionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -24023,68 +24420,96 @@ func (c *OrganizationsEnvironmentsDeploymentsListCall) Do(opts ...googleapi.Call } -// method id "apigee.organizations.environments.flowhooks.attachSharedFlowToFlowHook": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListDebugSessionsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall struct { - s *Service - name string - googlecloudapigeev1flowhook *GoogleCloudApigeeV1FlowHook - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "apigee.organizations.environments.apis.revisions.debugsessions.data.get": + +type OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// AttachSharedFlowToFlowHook: Attaches a shared flow to a flow hook. -func (r *OrganizationsEnvironmentsFlowhooksService) AttachSharedFlowToFlowHook(name string, googlecloudapigeev1flowhook *GoogleCloudApigeeV1FlowHook) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall { - c := &OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Get: Gets the debug data from a transaction. +func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService) Get(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall { + c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudapigeev1flowhook = googlecloudapigeev1flowhook return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall { +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall { +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Header() http.Header { +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1flowhook) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -24095,14 +24520,16 @@ func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) doReq return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.flowhooks.attachSharedFlowToFlowHook" call. -// Exactly one of *GoogleCloudApigeeV1FlowHook or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudApigeeV1FlowHook.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) { +// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.data.get" call. +// Exactly one of *GoogleCloudApigeeV1DebugSessionTransaction or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudApigeeV1DebugSessionTransaction.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSessionTransaction, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -24121,7 +24548,7 @@ func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Do(op if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1FlowHook{ + ret := &GoogleCloudApigeeV1DebugSessionTransaction{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -24133,28 +24560,25 @@ func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Do(op } return ret, nil // { - // "description": "Attaches a shared flow to a flow hook.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/flowhooks/{flowhooksId}", - // "httpMethod": "PUT", - // "id": "apigee.organizations.environments.flowhooks.attachSharedFlowToFlowHook", + // "description": "Gets the debug data from a transaction.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions/{debugsessionsId}/data/{dataId}", + // "httpMethod": "GET", + // "id": "apigee.organizations.environments.apis.revisions.debugsessions.data.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Name of the flow hook to which the shared flow should be attached in the following format: `organizations/{org}/environments/{env}/flowhooks/{flowhook}`", + // "description": "Required. The name of the debug session transaction. Must be of the form: `organizations/{organization}/environments/{environment}/apis/{api}/revisions/{revision}/debugsessions/{session}/data/{transaction}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/flowhooks/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+/debugsessions/[^/]+/data/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudApigeeV1FlowHook" - // }, // "response": { - // "$ref": "GoogleCloudApigeeV1FlowHook" + // "$ref": "GoogleCloudApigeeV1DebugSessionTransaction" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -24163,9 +24587,9 @@ func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Do(op } -// method id "apigee.organizations.environments.flowhooks.detachSharedFlowFromFlowHook": +// method id "apigee.organizations.environments.apis.revisions.deployments.generateDeployChangeReport": -type OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall struct { +type OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -24173,18 +24597,38 @@ type OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall struct { header_ http.Header } -// DetachSharedFlowFromFlowHook: Detaches a shared flow from a flow -// hook. -func (r *OrganizationsEnvironmentsFlowhooksService) DetachSharedFlowFromFlowHook(name string) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall { - c := &OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// GenerateDeployChangeReport: Generates a report for a dry run analysis +// of a DeployApiProxy request without committing the deployment. In +// addition to the standard validations performed when adding +// deployments, additional analysis will be done to detect possible +// traffic routing changes that would result from this deployment being +// created. Any potential routing conflicts or unsafe changes will be +// reported in the response. This routing analysis is not performed for +// a non-dry-run DeployApiProxy request. For a request path +// `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/dep +// loyments:generateDeployChangeReport`, two permissions are required: * +// `apigee.deployments.create` on the resource +// `organizations/{org}/environments/{env}` * +// `apigee.proxyrevisions.deploy` on the resource +// `organizations/{org}/apis/{api}/revisions/{rev}` +func (r *OrganizationsEnvironmentsApisRevisionsDeploymentsService) GenerateDeployChangeReport(name string) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall { + c := &OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Override sets the optional parameter "override": Flag that specifies +// whether to force the deployment of the new revision over the +// currently deployed revision by overriding conflict checks. +func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Override(override bool) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall { + c.urlParams_.Set("override", fmt.Sprint(override)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall { +func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -24192,23 +24636,23 @@ func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Fie // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall { +func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Header() http.Header { +func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24216,9 +24660,9 @@ func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) doR var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments:generateDeployChangeReport") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -24229,14 +24673,16 @@ func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) doR return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.flowhooks.detachSharedFlowFromFlowHook" call. -// Exactly one of *GoogleCloudApigeeV1FlowHook or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudApigeeV1FlowHook.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) { +// Do executes the "apigee.organizations.environments.apis.revisions.deployments.generateDeployChangeReport" call. +// Exactly one of *GoogleCloudApigeeV1DeploymentChangeReport or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudApigeeV1DeploymentChangeReport.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeploymentChangeReport, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -24255,7 +24701,7 @@ func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Do( if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1FlowHook{ + ret := &GoogleCloudApigeeV1DeploymentChangeReport{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -24267,25 +24713,30 @@ func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Do( } return ret, nil // { - // "description": "Detaches a shared flow from a flow hook.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/flowhooks/{flowhooksId}", - // "httpMethod": "DELETE", - // "id": "apigee.organizations.environments.flowhooks.detachSharedFlowFromFlowHook", + // "description": "Generates a report for a dry run analysis of a DeployApiProxy request without committing the deployment. In addition to the standard validations performed when adding deployments, additional analysis will be done to detect possible traffic routing changes that would result from this deployment being created. Any potential routing conflicts or unsafe changes will be reported in the response. This routing analysis is not performed for a non-dry-run DeployApiProxy request. For a request path `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/deployments:generateDeployChangeReport`, two permissions are required: * `apigee.deployments.create` on the resource `organizations/{org}/environments/{env}` * `apigee.proxyrevisions.deploy` on the resource `organizations/{org}/apis/{api}/revisions/{rev}`", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments:generateDeployChangeReport", + // "httpMethod": "POST", + // "id": "apigee.organizations.environments.apis.revisions.deployments.generateDeployChangeReport", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Name of the flow hook to detach in the following format: `organizations/{org}/environments/{env}/flowhooks/{flowhook}`", + // "description": "Name of the API proxy revision deployment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/flowhooks/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$", // "required": true, // "type": "string" + // }, + // "override": { + // "description": "Flag that specifies whether to force the deployment of the new revision over the currently deployed revision by overriding conflict checks.", + // "location": "query", + // "type": "boolean" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+name}/deployments:generateDeployChangeReport", // "response": { - // "$ref": "GoogleCloudApigeeV1FlowHook" + // "$ref": "GoogleCloudApigeeV1DeploymentChangeReport" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -24294,23 +24745,33 @@ func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Do( } -// method id "apigee.organizations.environments.flowhooks.get": +// method id "apigee.organizations.environments.apis.revisions.deployments.generateUndeployChangeReport": -type OrganizationsEnvironmentsFlowhooksGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Returns the name of the shared flow attached to the specified -// flow hook. If there's no shared flow attached to the flow hook, the -// API does not return an error; it simply does not return a name in the -// response. -func (r *OrganizationsEnvironmentsFlowhooksService) Get(name string) *OrganizationsEnvironmentsFlowhooksGetCall { - c := &OrganizationsEnvironmentsFlowhooksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// GenerateUndeployChangeReport: Generates a report for a dry run +// analysis of an UndeployApiProxy request without committing the +// undeploy. In addition to the standard validations performed when +// removing deployments, additional analysis will be done to detect +// possible traffic routing changes that would result from this +// deployment being removed. Any potential routing conflicts or unsafe +// changes will be reported in the response. This routing analysis is +// not performed for a non-dry-run UndeployApiProxy request. For a +// request path +// `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/dep +// loyments:generateUndeployChangeReport`, two permissions are required: +// * `apigee.deployments.delete` on the resource +// `organizations/{org}/environments/{env}` * +// `apigee.proxyrevisions.undeploy` on the resource +// `organizations/{org}/apis/{api}/revisions/{rev}` +func (r *OrganizationsEnvironmentsApisRevisionsDeploymentsService) GenerateUndeployChangeReport(name string) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall { + c := &OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -24318,54 +24779,41 @@ func (r *OrganizationsEnvironmentsFlowhooksService) Get(name string) *Organizati // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsFlowhooksGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksGetCall { +func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsFlowhooksGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsFlowhooksGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsFlowhooksGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksGetCall { +func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsFlowhooksGetCall) Header() http.Header { +func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsFlowhooksGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments:generateUndeployChangeReport") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -24376,14 +24824,16 @@ func (c *OrganizationsEnvironmentsFlowhooksGetCall) doRequest(alt string) (*http return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.flowhooks.get" call. -// Exactly one of *GoogleCloudApigeeV1FlowHook or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudApigeeV1FlowHook.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsFlowhooksGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) { +// Do executes the "apigee.organizations.environments.apis.revisions.deployments.generateUndeployChangeReport" call. +// Exactly one of *GoogleCloudApigeeV1DeploymentChangeReport or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudApigeeV1DeploymentChangeReport.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeploymentChangeReport, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -24402,7 +24852,7 @@ func (c *OrganizationsEnvironmentsFlowhooksGetCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1FlowHook{ + ret := &GoogleCloudApigeeV1DeploymentChangeReport{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -24414,25 +24864,25 @@ func (c *OrganizationsEnvironmentsFlowhooksGetCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Returns the name of the shared flow attached to the specified flow hook. If there's no shared flow attached to the flow hook, the API does not return an error; it simply does not return a name in the response.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/flowhooks/{flowhooksId}", - // "httpMethod": "GET", - // "id": "apigee.organizations.environments.flowhooks.get", + // "description": "Generates a report for a dry run analysis of an UndeployApiProxy request without committing the undeploy. In addition to the standard validations performed when removing deployments, additional analysis will be done to detect possible traffic routing changes that would result from this deployment being removed. Any potential routing conflicts or unsafe changes will be reported in the response. This routing analysis is not performed for a non-dry-run UndeployApiProxy request. For a request path `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/deployments:generateUndeployChangeReport`, two permissions are required: * `apigee.deployments.delete` on the resource `organizations/{org}/environments/{env}` * `apigee.proxyrevisions.undeploy` on the resource `organizations/{org}/apis/{api}/revisions/{rev}`", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments:generateUndeployChangeReport", + // "httpMethod": "POST", + // "id": "apigee.organizations.environments.apis.revisions.deployments.generateUndeployChangeReport", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Name of the flow hook in the following format: `organizations/{org}/environments/{env}/flowhooks/{flowhook}`", + // "description": "Name of the API proxy revision deployment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/flowhooks/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+name}/deployments:generateUndeployChangeReport", // "response": { - // "$ref": "GoogleCloudApigeeV1FlowHook" + // "$ref": "GoogleCloudApigeeV1DeploymentChangeReport" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -24441,40 +24891,27 @@ func (c *OrganizationsEnvironmentsFlowhooksGetCall) Do(opts ...googleapi.CallOpt } -// method id "apigee.organizations.environments.keystores.create": - -type OrganizationsEnvironmentsKeystoresCreateCall struct { - s *Service - parent string - googlecloudapigeev1keystore *GoogleCloudApigeeV1Keystore - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} +// method id "apigee.organizations.environments.caches.delete": -// Create: Creates a keystore or truststore: * Keystore: Contains -// certificates and their associated keys. * Truststore: Contains -// trusted certificates used to validate a server's certificate. These -// certificates are typically self-signed certificates or certificates -// that are not signed by a trusted CA. -func (r *OrganizationsEnvironmentsKeystoresService) Create(parent string, googlecloudapigeev1keystore *GoogleCloudApigeeV1Keystore) *OrganizationsEnvironmentsKeystoresCreateCall { - c := &OrganizationsEnvironmentsKeystoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudapigeev1keystore = googlecloudapigeev1keystore - return c +type OrganizationsEnvironmentsCachesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Name sets the optional parameter "name": Overrides the value in -// Keystore. -func (c *OrganizationsEnvironmentsKeystoresCreateCall) Name(name string) *OrganizationsEnvironmentsKeystoresCreateCall { - c.urlParams_.Set("name", name) +// Delete: Deletes a cache. +func (r *OrganizationsEnvironmentsCachesService) Delete(name string) *OrganizationsEnvironmentsCachesDeleteCall { + c := &OrganizationsEnvironmentsCachesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsKeystoresCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresCreateCall { +func (c *OrganizationsEnvironmentsCachesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsCachesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -24482,56 +24919,51 @@ func (c *OrganizationsEnvironmentsKeystoresCreateCall) Fields(s ...googleapi.Fie // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsKeystoresCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresCreateCall { +func (c *OrganizationsEnvironmentsCachesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsCachesDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsKeystoresCreateCall) Header() http.Header { +func (c *OrganizationsEnvironmentsCachesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsKeystoresCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsCachesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keystore) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keystores") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.keystores.create" call. -// Exactly one of *GoogleCloudApigeeV1Keystore or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudApigeeV1Keystore.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "apigee.organizations.environments.caches.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsKeystoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) { +func (c *OrganizationsEnvironmentsCachesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -24550,7 +24982,7 @@ func (c *OrganizationsEnvironmentsKeystoresCreateCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Keystore{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -24562,33 +24994,25 @@ func (c *OrganizationsEnvironmentsKeystoresCreateCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Creates a keystore or truststore: * Keystore: Contains certificates and their associated keys. * Truststore: Contains trusted certificates used to validate a server's certificate. These certificates are typically self-signed certificates or certificates that are not signed by a trusted CA.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores", - // "httpMethod": "POST", - // "id": "apigee.organizations.environments.keystores.create", + // "description": "Deletes a cache.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/caches/{cachesId}", + // "httpMethod": "DELETE", + // "id": "apigee.organizations.environments.caches.delete", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { // "name": { - // "description": "Optional. Overrides the value in Keystore.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The name of the environment in which to create the keystore. Must be of the form `organizations/{organization}/environments/{environment}`.", + // "description": "Required. Cache resource name of the form: `organizations/{organization_id}/environments/{environment_id}/caches/{cache_id}`", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/caches/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/keystores", - // "request": { - // "$ref": "GoogleCloudApigeeV1Keystore" - // }, + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudApigeeV1Keystore" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -24597,79 +25021,105 @@ func (c *OrganizationsEnvironmentsKeystoresCreateCall) Do(opts ...googleapi.Call } -// method id "apigee.organizations.environments.keystores.delete": +// method id "apigee.organizations.environments.deployments.list": -type OrganizationsEnvironmentsKeystoresDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsDeploymentsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a keystore or truststore. -func (r *OrganizationsEnvironmentsKeystoresService) Delete(name string) *OrganizationsEnvironmentsKeystoresDeleteCall { - c := &OrganizationsEnvironmentsKeystoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// List: Lists all deployments of API proxies or shared flows in an +// environment. +func (r *OrganizationsEnvironmentsDeploymentsService) List(parent string) *OrganizationsEnvironmentsDeploymentsListCall { + c := &OrganizationsEnvironmentsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// SharedFlows sets the optional parameter "sharedFlows": Flag that +// specifies whether to return shared flow or API proxy deployments. Set +// to `true` to return shared flow deployments; set to `false` to return +// API proxy deployments. Defaults to `false`. +func (c *OrganizationsEnvironmentsDeploymentsListCall) SharedFlows(sharedFlows bool) *OrganizationsEnvironmentsDeploymentsListCall { + c.urlParams_.Set("sharedFlows", fmt.Sprint(sharedFlows)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresDeleteCall { +func (c *OrganizationsEnvironmentsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsDeploymentsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsEnvironmentsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsDeploymentsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresDeleteCall { +func (c *OrganizationsEnvironmentsDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsDeploymentsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Header() http.Header { +func (c *OrganizationsEnvironmentsDeploymentsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsKeystoresDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsDeploymentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.keystores.delete" call. -// Exactly one of *GoogleCloudApigeeV1Keystore or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudApigeeV1Keystore.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) { +// Do executes the "apigee.organizations.environments.deployments.list" call. +// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsEnvironmentsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -24688,7 +25138,7 @@ func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Keystore{ + ret := &GoogleCloudApigeeV1ListDeploymentsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -24700,25 +25150,30 @@ func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Deletes a keystore or truststore.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}", - // "httpMethod": "DELETE", - // "id": "apigee.organizations.environments.keystores.delete", + // "description": "Lists all deployments of API proxies or shared flows in an environment.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/deployments", + // "httpMethod": "GET", + // "id": "apigee.organizations.environments.deployments.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The name of keystore to delete. Must be of the form `organizations/{organization}/environments/{environment}/keystores/{keystore}`.", + // "parent": { + // "description": "Required. Name of the environment for which to return deployment information in the following format: `organizations/{org}/environments/{env}`", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+$", // "required": true, // "type": "string" + // }, + // "sharedFlows": { + // "description": "Optional. Flag that specifies whether to return shared flow or API proxy deployments. Set to `true` to return shared flow deployments; set to `false` to return API proxy deployments. Defaults to `false`.", + // "location": "query", + // "type": "boolean" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/deployments", // "response": { - // "$ref": "GoogleCloudApigeeV1Keystore" + // "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -24727,75 +25182,68 @@ func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Do(opts ...googleapi.Call } -// method id "apigee.organizations.environments.keystores.get": +// method id "apigee.organizations.environments.flowhooks.attachSharedFlowToFlowHook": -type OrganizationsEnvironmentsKeystoresGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall struct { + s *Service + name string + googlecloudapigeev1flowhook *GoogleCloudApigeeV1FlowHook + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets a keystore or truststore. -func (r *OrganizationsEnvironmentsKeystoresService) Get(name string) *OrganizationsEnvironmentsKeystoresGetCall { - c := &OrganizationsEnvironmentsKeystoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// AttachSharedFlowToFlowHook: Attaches a shared flow to a flow hook. +func (r *OrganizationsEnvironmentsFlowhooksService) AttachSharedFlowToFlowHook(name string, googlecloudapigeev1flowhook *GoogleCloudApigeeV1FlowHook) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall { + c := &OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudapigeev1flowhook = googlecloudapigeev1flowhook return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsKeystoresGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresGetCall { +func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsKeystoresGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsKeystoresGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresGetCall { +func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsKeystoresGetCall) Header() http.Header { +func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsKeystoresGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1flowhook) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("PUT", urls, body) if err != nil { return nil, err } @@ -24806,14 +25254,14 @@ func (c *OrganizationsEnvironmentsKeystoresGetCall) doRequest(alt string) (*http return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.keystores.get" call. -// Exactly one of *GoogleCloudApigeeV1Keystore or error will be non-nil. +// Do executes the "apigee.organizations.environments.flowhooks.attachSharedFlowToFlowHook" call. +// Exactly one of *GoogleCloudApigeeV1FlowHook or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudApigeeV1Keystore.ServerResponse.Header or (if a response +// *GoogleCloudApigeeV1FlowHook.ServerResponse.Header or (if a response // was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsKeystoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) { +func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -24832,7 +25280,7 @@ func (c *OrganizationsEnvironmentsKeystoresGetCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Keystore{ + ret := &GoogleCloudApigeeV1FlowHook{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -24844,25 +25292,28 @@ func (c *OrganizationsEnvironmentsKeystoresGetCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Gets a keystore or truststore.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}", - // "httpMethod": "GET", - // "id": "apigee.organizations.environments.keystores.get", + // "description": "Attaches a shared flow to a flow hook.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/flowhooks/{flowhooksId}", + // "httpMethod": "PUT", + // "id": "apigee.organizations.environments.flowhooks.attachSharedFlowToFlowHook", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of keystore. Must be of the form `organizations/{organization}/environments/{environment}/keystores/{keystore}`.", + // "description": "Required. Name of the flow hook to which the shared flow should be attached in the following format: `organizations/{org}/environments/{env}/flowhooks/{flowhook}`", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/flowhooks/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudApigeeV1FlowHook" + // }, // "response": { - // "$ref": "GoogleCloudApigeeV1Keystore" + // "$ref": "GoogleCloudApigeeV1FlowHook" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -24871,82 +25322,28 @@ func (c *OrganizationsEnvironmentsKeystoresGetCall) Do(opts ...googleapi.CallOpt } -// method id "apigee.organizations.environments.keystores.aliases.create": - -type OrganizationsEnvironmentsKeystoresAliasesCreateCall struct { - s *Service - parent string - googleapihttpbody *GoogleApiHttpBody - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Creates an alias from a key, certificate pair. The structure -// of the request is controlled by the `format` query parameter: * -// `keycertfile` - Separate PEM-encoded key and certificate files are -// uploaded. The request must have `Content-Type: multipart/form-data` -// and include fields `keyFile` and `certFile`. If uploading to a -// truststore, omit `keyFile`. A `password` field should be provided for -// encrypted keys. * `pkcs12` - A PKCS12 file is uploaded. The request -// must have `Content-Type: multipart/form-data` with the file provided -// in the `file` field and a `password` field if the file is encrypted. -// * `selfsignedcert` - A new private key and certificate are generated. -// The request must have `Content-Type: application/json` and a body of -// CertificateGenerationSpec. -func (r *OrganizationsEnvironmentsKeystoresAliasesService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsKeystoresAliasesCreateCall { - c := &OrganizationsEnvironmentsKeystoresAliasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googleapihttpbody = googleapihttpbody - return c -} - -// Password sets the optional parameter "_password": The password for -// the private key file, if it exists. -func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Password(Password string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall { - c.urlParams_.Set("_password", Password) - return c -} - -// Alias sets the optional parameter "alias": The alias for the key, -// certificate pair. Values must match regular expression -// `[\w\s-.]{1,255}`. This must be provided for all formats except -// 'selfsignedcert'; self-signed certs may specify the alias in either -// this parameter or the JSON body. -func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Alias(alias string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall { - c.urlParams_.Set("alias", alias) - return c -} - -// Format sets the optional parameter "format": Required. The format of -// the data. Must be either `selfsignedcert`, `keycertfile`, or -// `pkcs12`. -func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Format(format string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall { - c.urlParams_.Set("format", format) - return c -} +// method id "apigee.organizations.environments.flowhooks.detachSharedFlowFromFlowHook": -// IgnoreExpiryValidation sets the optional parameter -// "ignoreExpiryValidation": If `true`, no expiry validation will be -// performed. -func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) IgnoreExpiryValidation(ignoreExpiryValidation bool) *OrganizationsEnvironmentsKeystoresAliasesCreateCall { - c.urlParams_.Set("ignoreExpiryValidation", fmt.Sprint(ignoreExpiryValidation)) - return c +type OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// IgnoreNewlineValidation sets the optional parameter -// "ignoreNewlineValidation": If `true`, do not throw an error when the -// file contains a chain with no newline between each certificate. By -// default, a newline is needed between each certificate in a chain. -func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) IgnoreNewlineValidation(ignoreNewlineValidation bool) *OrganizationsEnvironmentsKeystoresAliasesCreateCall { - c.urlParams_.Set("ignoreNewlineValidation", fmt.Sprint(ignoreNewlineValidation)) +// DetachSharedFlowFromFlowHook: Detaches a shared flow from a flow +// hook. +func (r *OrganizationsEnvironmentsFlowhooksService) DetachSharedFlowFromFlowHook(name string) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall { + c := &OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesCreateCall { +func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -24954,56 +25351,51 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Fields(s ...google // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesCreateCall { +func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Header() http.Header { +func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/aliases") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.keystores.aliases.create" call. -// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil. +// Do executes the "apigee.organizations.environments.flowhooks.detachSharedFlowFromFlowHook" call. +// Exactly one of *GoogleCloudApigeeV1FlowHook or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudApigeeV1FlowHook.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) { +func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -25022,7 +25414,7 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Alias{ + ret := &GoogleCloudApigeeV1FlowHook{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -25034,53 +25426,25 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Do(opts ...googlea } return ret, nil // { - // "description": "Creates an alias from a key, certificate pair. The structure of the request is controlled by the `format` query parameter: * `keycertfile` - Separate PEM-encoded key and certificate files are uploaded. The request must have `Content-Type: multipart/form-data` and include fields `keyFile` and `certFile`. If uploading to a truststore, omit `keyFile`. A `password` field should be provided for encrypted keys. * `pkcs12` - A PKCS12 file is uploaded. The request must have `Content-Type: multipart/form-data` with the file provided in the `file` field and a `password` field if the file is encrypted. * `selfsignedcert` - A new private key and certificate are generated. The request must have `Content-Type: application/json` and a body of CertificateGenerationSpec.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases", - // "httpMethod": "POST", - // "id": "apigee.organizations.environments.keystores.aliases.create", + // "description": "Detaches a shared flow from a flow hook.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/flowhooks/{flowhooksId}", + // "httpMethod": "DELETE", + // "id": "apigee.organizations.environments.flowhooks.detachSharedFlowFromFlowHook", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "_password": { - // "description": "The password for the private key file, if it exists.", - // "location": "query", - // "type": "string" - // }, - // "alias": { - // "description": "The alias for the key, certificate pair. Values must match regular expression `[\\w\\s-.]{1,255}`. This must be provided for all formats except 'selfsignedcert'; self-signed certs may specify the alias in either this parameter or the JSON body.", - // "location": "query", - // "type": "string" - // }, - // "format": { - // "description": "Required. The format of the data. Must be either `selfsignedcert`, `keycertfile`, or `pkcs12`.", - // "location": "query", - // "type": "string" - // }, - // "ignoreExpiryValidation": { - // "description": "If `true`, no expiry validation will be performed.", - // "location": "query", - // "type": "boolean" - // }, - // "ignoreNewlineValidation": { - // "description": "If `true`, do not throw an error when the file contains a chain with no newline between each certificate. By default, a newline is needed between each certificate in a chain.", - // "location": "query", - // "type": "boolean" - // }, - // "parent": { - // "description": "Required. The name of the keystore. Must be of the form `organizations/{organization}/environments/{environment}/keystores/{keystore}`.", - // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+$", - // "required": true, + // "name": { + // "description": "Required. Name of the flow hook to detach in the following format: `organizations/{org}/environments/{env}/flowhooks/{flowhook}`", + // "location": "path", + // "pattern": "^organizations/[^/]+/environments/[^/]+/flowhooks/[^/]+$", + // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/aliases", - // "request": { - // "$ref": "GoogleApiHttpBody" - // }, + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudApigeeV1Alias" + // "$ref": "GoogleCloudApigeeV1FlowHook" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -25089,9 +25453,9 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Do(opts ...googlea } -// method id "apigee.organizations.environments.keystores.aliases.csr": +// method id "apigee.organizations.environments.flowhooks.get": -type OrganizationsEnvironmentsKeystoresAliasesCsrCall struct { +type OrganizationsEnvironmentsFlowhooksGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -25100,10 +25464,12 @@ type OrganizationsEnvironmentsKeystoresAliasesCsrCall struct { header_ http.Header } -// Csr: Generates a PKCS #10 Certificate Signing Request for the private -// key in an alias. -func (r *OrganizationsEnvironmentsKeystoresAliasesService) Csr(name string) *OrganizationsEnvironmentsKeystoresAliasesCsrCall { - c := &OrganizationsEnvironmentsKeystoresAliasesCsrCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Get: Returns the name of the shared flow attached to the specified +// flow hook. If there's no shared flow attached to the flow hook, the +// API does not return an error; it simply does not return a name in the +// response. +func (r *OrganizationsEnvironmentsFlowhooksService) Get(name string) *OrganizationsEnvironmentsFlowhooksGetCall { + c := &OrganizationsEnvironmentsFlowhooksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -25111,7 +25477,7 @@ func (r *OrganizationsEnvironmentsKeystoresAliasesService) Csr(name string) *Org // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesCsrCall { +func (c *OrganizationsEnvironmentsFlowhooksGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -25121,7 +25487,7 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Fields(s ...googleapi // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesCsrCall { +func (c *OrganizationsEnvironmentsFlowhooksGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsFlowhooksGetCall { c.ifNoneMatch_ = entityTag return c } @@ -25129,23 +25495,23 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) IfNoneMatch(entityTag // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesCsrCall { +func (c *OrganizationsEnvironmentsFlowhooksGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Header() http.Header { +func (c *OrganizationsEnvironmentsFlowhooksGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsFlowhooksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25156,7 +25522,7 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) doRequest(alt string) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/csr") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -25169,14 +25535,14 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.keystores.aliases.csr" call. -// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleApiHttpBody.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "apigee.organizations.environments.flowhooks.get" call. +// Exactly one of *GoogleCloudApigeeV1FlowHook or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudApigeeV1FlowHook.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) { +func (c *OrganizationsEnvironmentsFlowhooksGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -25195,7 +25561,7 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleApiHttpBody{ + ret := &GoogleCloudApigeeV1FlowHook{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -25207,25 +25573,25 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Generates a PKCS #10 Certificate Signing Request for the private key in an alias.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}/csr", + // "description": "Returns the name of the shared flow attached to the specified flow hook. If there's no shared flow attached to the flow hook, the API does not return an error; it simply does not return a name in the response.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/flowhooks/{flowhooksId}", // "httpMethod": "GET", - // "id": "apigee.organizations.environments.keystores.aliases.csr", + // "id": "apigee.organizations.environments.flowhooks.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the alias. Must be of the form `organizations/{organization}/environments/{environment}/keystores/{keystore}/aliases/{alias}`.", + // "description": "Required. Name of the flow hook in the following format: `organizations/{org}/environments/{env}/flowhooks/{flowhook}`", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/flowhooks/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}/csr", + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleApiHttpBody" + // "$ref": "GoogleCloudApigeeV1FlowHook" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -25234,27 +25600,40 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Do(opts ...googleapi. } -// method id "apigee.organizations.environments.keystores.aliases.delete": +// method id "apigee.organizations.environments.keystores.create": -type OrganizationsEnvironmentsKeystoresAliasesDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsKeystoresCreateCall struct { + s *Service + parent string + googlecloudapigeev1keystore *GoogleCloudApigeeV1Keystore + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes an alias. -func (r *OrganizationsEnvironmentsKeystoresAliasesService) Delete(name string) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall { - c := &OrganizationsEnvironmentsKeystoresAliasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// Create: Creates a keystore or truststore: * Keystore: Contains +// certificates and their associated keys. * Truststore: Contains +// trusted certificates used to validate a server's certificate. These +// certificates are typically self-signed certificates or certificates +// that are not signed by a trusted CA. +func (r *OrganizationsEnvironmentsKeystoresService) Create(parent string, googlecloudapigeev1keystore *GoogleCloudApigeeV1Keystore) *OrganizationsEnvironmentsKeystoresCreateCall { + c := &OrganizationsEnvironmentsKeystoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudapigeev1keystore = googlecloudapigeev1keystore + return c +} + +// Name sets the optional parameter "name": Overrides the value in +// Keystore. +func (c *OrganizationsEnvironmentsKeystoresCreateCall) Name(name string) *OrganizationsEnvironmentsKeystoresCreateCall { + c.urlParams_.Set("name", name) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall { +func (c *OrganizationsEnvironmentsKeystoresCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -25262,51 +25641,56 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Fields(s ...google // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall { +func (c *OrganizationsEnvironmentsKeystoresCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Header() http.Header { +func (c *OrganizationsEnvironmentsKeystoresCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsKeystoresCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keystore) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keystores") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.keystores.aliases.delete" call. -// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil. +// Do executes the "apigee.organizations.environments.keystores.create" call. +// Exactly one of *GoogleCloudApigeeV1Keystore or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudApigeeV1Keystore.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) { +func (c *OrganizationsEnvironmentsKeystoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -25325,7 +25709,7 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Alias{ + ret := &GoogleCloudApigeeV1Keystore{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -25337,25 +25721,33 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Do(opts ...googlea } return ret, nil // { - // "description": "Deletes an alias.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}", - // "httpMethod": "DELETE", - // "id": "apigee.organizations.environments.keystores.aliases.delete", + // "description": "Creates a keystore or truststore: * Keystore: Contains certificates and their associated keys. * Truststore: Contains trusted certificates used to validate a server's certificate. These certificates are typically self-signed certificates or certificates that are not signed by a trusted CA.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores", + // "httpMethod": "POST", + // "id": "apigee.organizations.environments.keystores.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { // "name": { - // "description": "Required. The name of the alias. Must be of the form `organizations/{organization}/environments/{environment}/keystores/{keystore}/aliases/{alias}`.", + // "description": "Optional. Overrides the value in Keystore.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The name of the environment in which to create the keystore. Must be of the form `organizations/{organization}/environments/{environment}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/keystores", + // "request": { + // "$ref": "GoogleCloudApigeeV1Keystore" + // }, // "response": { - // "$ref": "GoogleCloudApigeeV1Alias" + // "$ref": "GoogleCloudApigeeV1Keystore" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -25364,20 +25756,19 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Do(opts ...googlea } -// method id "apigee.organizations.environments.keystores.aliases.get": +// method id "apigee.organizations.environments.keystores.delete": -type OrganizationsEnvironmentsKeystoresAliasesGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsKeystoresDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets an alias. -func (r *OrganizationsEnvironmentsKeystoresAliasesService) Get(name string) *OrganizationsEnvironmentsKeystoresAliasesGetCall { - c := &OrganizationsEnvironmentsKeystoresAliasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Delete: Deletes a keystore or truststore. +func (r *OrganizationsEnvironmentsKeystoresService) Delete(name string) *OrganizationsEnvironmentsKeystoresDeleteCall { + c := &OrganizationsEnvironmentsKeystoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -25385,54 +25776,41 @@ func (r *OrganizationsEnvironmentsKeystoresAliasesService) Get(name string) *Org // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesGetCall { +func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesGetCall { +func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Header() http.Header { +func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsKeystoresDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -25443,14 +25821,14 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.keystores.aliases.get" call. -// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil. +// Do executes the "apigee.organizations.environments.keystores.delete" call. +// Exactly one of *GoogleCloudApigeeV1Keystore or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudApigeeV1Keystore.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) { +func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -25469,7 +25847,7 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Alias{ + ret := &GoogleCloudApigeeV1Keystore{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -25481,25 +25859,25 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Gets an alias.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}", - // "httpMethod": "GET", - // "id": "apigee.organizations.environments.keystores.aliases.get", + // "description": "Deletes a keystore or truststore.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}", + // "httpMethod": "DELETE", + // "id": "apigee.organizations.environments.keystores.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the alias. Must be of the form `organizations/{organization}/environments/{environment}/keystores/{keystore}/aliases/{alias}`.", + // "description": "Required. The name of keystore to delete. Must be of the form `organizations/{organization}/environments/{environment}/keystores/{keystore}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudApigeeV1Alias" + // "$ref": "GoogleCloudApigeeV1Keystore" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -25508,9 +25886,9 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Do(opts ...googleapi. } -// method id "apigee.organizations.environments.keystores.aliases.getCertificate": +// method id "apigee.organizations.environments.keystores.get": -type OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall struct { +type OrganizationsEnvironmentsKeystoresGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -25519,10 +25897,9 @@ type OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall struct { header_ http.Header } -// GetCertificate: Gets the certificate from an alias in PEM-encoded -// form. -func (r *OrganizationsEnvironmentsKeystoresAliasesService) GetCertificate(name string) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall { - c := &OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Get: Gets a keystore or truststore. +func (r *OrganizationsEnvironmentsKeystoresService) Get(name string) *OrganizationsEnvironmentsKeystoresGetCall { + c := &OrganizationsEnvironmentsKeystoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -25530,7 +25907,7 @@ func (r *OrganizationsEnvironmentsKeystoresAliasesService) GetCertificate(name s // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall { +func (c *OrganizationsEnvironmentsKeystoresGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -25540,7 +25917,7 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Fields(s . // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall { +func (c *OrganizationsEnvironmentsKeystoresGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresGetCall { c.ifNoneMatch_ = entityTag return c } @@ -25548,23 +25925,23 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) IfNoneMatc // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall { +func (c *OrganizationsEnvironmentsKeystoresGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Header() http.Header { +func (c *OrganizationsEnvironmentsKeystoresGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsKeystoresGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25575,7 +25952,7 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) doRequest( var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/certificate") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -25588,14 +25965,14 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) doRequest( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.keystores.aliases.getCertificate" call. -// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleApiHttpBody.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "apigee.organizations.environments.keystores.get" call. +// Exactly one of *GoogleCloudApigeeV1Keystore or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudApigeeV1Keystore.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) { +func (c *OrganizationsEnvironmentsKeystoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -25614,7 +25991,7 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Do(opts .. if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleApiHttpBody{ + ret := &GoogleCloudApigeeV1Keystore{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -25626,25 +26003,25 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Do(opts .. } return ret, nil // { - // "description": "Gets the certificate from an alias in PEM-encoded form.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}/certificate", + // "description": "Gets a keystore or truststore.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}", // "httpMethod": "GET", - // "id": "apigee.organizations.environments.keystores.aliases.getCertificate", + // "id": "apigee.organizations.environments.keystores.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the alias. Must be of the form `organizations/{organization}/environments/{environment}/keystores/{keystore}/aliases/{alias}`.", + // "description": "Required. The name of keystore. Must be of the form `organizations/{organization}/environments/{environment}/keystores/{keystore}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}/certificate", + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleApiHttpBody" + // "$ref": "GoogleCloudApigeeV1Keystore" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -25653,29 +26030,68 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Do(opts .. } -// method id "apigee.organizations.environments.keystores.aliases.update": +// method id "apigee.organizations.environments.keystores.aliases.create": -type OrganizationsEnvironmentsKeystoresAliasesUpdateCall struct { +type OrganizationsEnvironmentsKeystoresAliasesCreateCall struct { s *Service - name string + parent string googleapihttpbody *GoogleApiHttpBody urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Update: Updates the certificate in an alias. -func (r *OrganizationsEnvironmentsKeystoresAliasesService) Update(name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall { - c := &OrganizationsEnvironmentsKeystoresAliasesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// Create: Creates an alias from a key, certificate pair. The structure +// of the request is controlled by the `format` query parameter: * +// `keycertfile` - Separate PEM-encoded key and certificate files are +// uploaded. The request must have `Content-Type: multipart/form-data` +// and include fields `keyFile` and `certFile`. If uploading to a +// truststore, omit `keyFile`. A `password` field should be provided for +// encrypted keys. * `pkcs12` - A PKCS12 file is uploaded. The request +// must have `Content-Type: multipart/form-data` with the file provided +// in the `file` field and a `password` field if the file is encrypted. +// * `selfsignedcert` - A new private key and certificate are generated. +// The request must have `Content-Type: application/json` and a body of +// CertificateGenerationSpec. +func (r *OrganizationsEnvironmentsKeystoresAliasesService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsKeystoresAliasesCreateCall { + c := &OrganizationsEnvironmentsKeystoresAliasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent c.googleapihttpbody = googleapihttpbody return c } +// Password sets the optional parameter "_password": DEPRECATED: For +// improved security, send the password in the body instead of using +// this query param. To send it in the body, use a multipart/form-data +// part with name "password". The password for the private key file, if +// it exists. +func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Password(Password string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall { + c.urlParams_.Set("_password", Password) + return c +} + +// Alias sets the optional parameter "alias": The alias for the key, +// certificate pair. Values must match regular expression +// `[\w\s-.]{1,255}`. This must be provided for all formats except +// 'selfsignedcert'; self-signed certs may specify the alias in either +// this parameter or the JSON body. +func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Alias(alias string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall { + c.urlParams_.Set("alias", alias) + return c +} + +// Format sets the optional parameter "format": Required. The format of +// the data. Must be either `selfsignedcert`, `keycertfile`, or +// `pkcs12`. +func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Format(format string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall { + c.urlParams_.Set("format", format) + return c +} + // IgnoreExpiryValidation sets the optional parameter -// "ignoreExpiryValidation": Required. If `true`, no expiry validation -// will be performed. -func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) IgnoreExpiryValidation(ignoreExpiryValidation bool) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall { +// "ignoreExpiryValidation": If `true`, no expiry validation will be +// performed. +func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) IgnoreExpiryValidation(ignoreExpiryValidation bool) *OrganizationsEnvironmentsKeystoresAliasesCreateCall { c.urlParams_.Set("ignoreExpiryValidation", fmt.Sprint(ignoreExpiryValidation)) return c } @@ -25684,7 +26100,7 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) IgnoreExpiryValida // "ignoreNewlineValidation": If `true`, do not throw an error when the // file contains a chain with no newline between each certificate. By // default, a newline is needed between each certificate in a chain. -func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) IgnoreNewlineValidation(ignoreNewlineValidation bool) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall { +func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) IgnoreNewlineValidation(ignoreNewlineValidation bool) *OrganizationsEnvironmentsKeystoresAliasesCreateCall { c.urlParams_.Set("ignoreNewlineValidation", fmt.Sprint(ignoreNewlineValidation)) return c } @@ -25692,7 +26108,7 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) IgnoreNewlineValid // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall { +func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -25700,23 +26116,23 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Fields(s ...google // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall { +func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Header() http.Header { +func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25729,27 +26145,27 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) doRequest(alt stri reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/aliases") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.keystores.aliases.update" call. +// Do executes the "apigee.organizations.environments.keystores.aliases.create" call. // Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) { +func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -25780,16 +26196,31 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Do(opts ...googlea } return ret, nil // { - // "description": "Updates the certificate in an alias.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}", - // "httpMethod": "PUT", - // "id": "apigee.organizations.environments.keystores.aliases.update", + // "description": "Creates an alias from a key, certificate pair. The structure of the request is controlled by the `format` query parameter: * `keycertfile` - Separate PEM-encoded key and certificate files are uploaded. The request must have `Content-Type: multipart/form-data` and include fields `keyFile` and `certFile`. If uploading to a truststore, omit `keyFile`. A `password` field should be provided for encrypted keys. * `pkcs12` - A PKCS12 file is uploaded. The request must have `Content-Type: multipart/form-data` with the file provided in the `file` field and a `password` field if the file is encrypted. * `selfsignedcert` - A new private key and certificate are generated. The request must have `Content-Type: application/json` and a body of CertificateGenerationSpec.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases", + // "httpMethod": "POST", + // "id": "apigee.organizations.environments.keystores.aliases.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { + // "_password": { + // "description": "DEPRECATED: For improved security, send the password in the body instead of using this query param. To send it in the body, use a multipart/form-data part with name \"password\". The password for the private key file, if it exists.", + // "location": "query", + // "type": "string" + // }, + // "alias": { + // "description": "The alias for the key, certificate pair. Values must match regular expression `[\\w\\s-.]{1,255}`. This must be provided for all formats except 'selfsignedcert'; self-signed certs may specify the alias in either this parameter or the JSON body.", + // "location": "query", + // "type": "string" + // }, + // "format": { + // "description": "Required. The format of the data. Must be either `selfsignedcert`, `keycertfile`, or `pkcs12`.", + // "location": "query", + // "type": "string" + // }, // "ignoreExpiryValidation": { - // "description": "Required. If `true`, no expiry validation will be performed.", + // "description": "If `true`, no expiry validation will be performed.", // "location": "query", // "type": "boolean" // }, @@ -25798,15 +26229,15 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Do(opts ...googlea // "location": "query", // "type": "boolean" // }, - // "name": { - // "description": "Required. The name of the alias. Must be of the form `organizations/{organization}/environments/{environment}/keystores/{keystore}/aliases/{alias}`.", + // "parent": { + // "description": "Required. The name of the keystore. Must be of the form `organizations/{organization}/environments/{environment}/keystores/{keystore}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/aliases", // "request": { // "$ref": "GoogleApiHttpBody" // }, @@ -25820,86 +26251,94 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Do(opts ...googlea } -// method id "apigee.organizations.environments.keyvaluemaps.create": +// method id "apigee.organizations.environments.keystores.aliases.csr": -type OrganizationsEnvironmentsKeyvaluemapsCreateCall struct { - s *Service - parent string - googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsKeystoresAliasesCsrCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a key value map in an environment. -func (r *OrganizationsEnvironmentsKeyvaluemapsService) Create(parent string, googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap) *OrganizationsEnvironmentsKeyvaluemapsCreateCall { - c := &OrganizationsEnvironmentsKeyvaluemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudapigeev1keyvaluemap = googlecloudapigeev1keyvaluemap +// Csr: Generates a PKCS #10 Certificate Signing Request for the private +// key in an alias. +func (r *OrganizationsEnvironmentsKeystoresAliasesService) Csr(name string) *OrganizationsEnvironmentsKeystoresAliasesCsrCall { + c := &OrganizationsEnvironmentsKeystoresAliasesCsrCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsCreateCall { +func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesCsrCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesCsrCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsCreateCall { +func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesCsrCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Header() http.Header { +func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvaluemap) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/csr") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.keyvaluemaps.create" call. -// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "apigee.organizations.environments.keystores.aliases.csr" call. +// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleApiHttpBody.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) { +func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -25918,7 +26357,7 @@ func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1KeyValueMap{ + ret := &GoogleApiHttpBody{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -25930,28 +26369,25 @@ func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Creates a key value map in an environment.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keyvaluemaps", - // "httpMethod": "POST", - // "id": "apigee.organizations.environments.keyvaluemaps.create", + // "description": "Generates a PKCS #10 Certificate Signing Request for the private key in an alias.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}/csr", + // "httpMethod": "GET", + // "id": "apigee.organizations.environments.keystores.aliases.csr", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The name of the environment in which to create the key value map. Must be of the form `organizations/{organization}/environments/{environment}`.", + // "name": { + // "description": "Required. The name of the alias. Must be of the form `organizations/{organization}/environments/{environment}/keystores/{keystore}/aliases/{alias}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/keyvaluemaps", - // "request": { - // "$ref": "GoogleCloudApigeeV1KeyValueMap" - // }, + // "path": "v1/{+name}/csr", // "response": { - // "$ref": "GoogleCloudApigeeV1KeyValueMap" + // "$ref": "GoogleApiHttpBody" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -25960,9 +26396,9 @@ func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Do(opts ...googleapi.C } -// method id "apigee.organizations.environments.keyvaluemaps.delete": +// method id "apigee.organizations.environments.keystores.aliases.delete": -type OrganizationsEnvironmentsKeyvaluemapsDeleteCall struct { +type OrganizationsEnvironmentsKeystoresAliasesDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -25970,9 +26406,9 @@ type OrganizationsEnvironmentsKeyvaluemapsDeleteCall struct { header_ http.Header } -// Delete: Delete a key value map in an environment. -func (r *OrganizationsEnvironmentsKeyvaluemapsService) Delete(name string) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall { - c := &OrganizationsEnvironmentsKeyvaluemapsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Delete: Deletes an alias. +func (r *OrganizationsEnvironmentsKeystoresAliasesService) Delete(name string) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall { + c := &OrganizationsEnvironmentsKeystoresAliasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -25980,7 +26416,7 @@ func (r *OrganizationsEnvironmentsKeyvaluemapsService) Delete(name string) *Orga // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall { +func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -25988,23 +26424,23 @@ func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Fields(s ...googleapi. // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall { +func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Header() http.Header { +func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26025,14 +26461,14 @@ func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.keyvaluemaps.delete" call. -// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "apigee.organizations.environments.keystores.aliases.delete" call. +// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) { +func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -26051,7 +26487,7 @@ func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1KeyValueMap{ + ret := &GoogleCloudApigeeV1Alias{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -26063,25 +26499,25 @@ func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Delete a key value map in an environment.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keyvaluemaps/{keyvaluemapsId}", + // "description": "Deletes an alias.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}", // "httpMethod": "DELETE", - // "id": "apigee.organizations.environments.keyvaluemaps.delete", + // "id": "apigee.organizations.environments.keystores.aliases.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the key value map. Must be of the form `organizations/{organization}/environments/{environment}/keyvaluemaps/{keyvaluemap}`.", + // "description": "Required. The name of the alias. Must be of the form `organizations/{organization}/environments/{environment}/keystores/{keystore}/aliases/{alias}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/keyvaluemaps/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudApigeeV1KeyValueMap" + // "$ref": "GoogleCloudApigeeV1Alias" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -26090,9 +26526,9 @@ func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Do(opts ...googleapi.C } -// method id "apigee.organizations.environments.optimizedStats.get": +// method id "apigee.organizations.environments.keystores.aliases.get": -type OrganizationsEnvironmentsOptimizedStatsGetCall struct { +type OrganizationsEnvironmentsKeystoresAliasesGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -26101,136 +26537,17 @@ type OrganizationsEnvironmentsOptimizedStatsGetCall struct { header_ http.Header } -// Get: This api is similar to GetStats except that the response is less -// verbose. In the current scheme, a query parameter _optimized -// instructs Edge Analytics to change the response but since this -// behavior is not possible with protocol buffer and since this -// parameter is predominantly used by Edge UI, we are introducing a -// separate api. -func (r *OrganizationsEnvironmentsOptimizedStatsService) Get(name string) *OrganizationsEnvironmentsOptimizedStatsGetCall { - c := &OrganizationsEnvironmentsOptimizedStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Get: Gets an alias. +func (r *OrganizationsEnvironmentsKeystoresAliasesService) Get(name string) *OrganizationsEnvironmentsKeystoresAliasesGetCall { + c := &OrganizationsEnvironmentsKeystoresAliasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Accuracy sets the optional parameter "accuracy": Legacy field: not -// used anymore. -func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Accuracy(accuracy string) *OrganizationsEnvironmentsOptimizedStatsGetCall { - c.urlParams_.Set("accuracy", accuracy) - return c -} - -// AggTable sets the optional parameter "aggTable": If customers want to -// query custom aggregate tables, then this parameter can be used to -// specify the table name. If this parameter is skipped, then Edge Query -// will try to retrieve the data from fact tables which will be -// expensive. -func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) AggTable(aggTable string) *OrganizationsEnvironmentsOptimizedStatsGetCall { - c.urlParams_.Set("aggTable", aggTable) - return c -} - -// Filter sets the optional parameter "filter": Enables drill-down on -// specific dimension values. -func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Filter(filter string) *OrganizationsEnvironmentsOptimizedStatsGetCall { - c.urlParams_.Set("filter", filter) - return c -} - -// Limit sets the optional parameter "limit": This parameter is used to -// limit the number of result items. Default and the max value is 14400. -func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Limit(limit string) *OrganizationsEnvironmentsOptimizedStatsGetCall { - c.urlParams_.Set("limit", limit) - return c -} - -// Offset sets the optional parameter "offset": Use offset with limit to -// enable pagination of results. For example, to display results 11-20, -// set limit to '10' and offset to '10'. -func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Offset(offset string) *OrganizationsEnvironmentsOptimizedStatsGetCall { - c.urlParams_.Set("offset", offset) - return c -} - -// Realtime sets the optional parameter "realtime": Legacy field: not -// used anymore. -func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Realtime(realtime bool) *OrganizationsEnvironmentsOptimizedStatsGetCall { - c.urlParams_.Set("realtime", fmt.Sprint(realtime)) - return c -} - -// Select sets the optional parameter "select": Required. The select -// parameter contains a comma separated list of metrics. E.g. -// sum(message_count),sum(error_count) -func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Select(select_ string) *OrganizationsEnvironmentsOptimizedStatsGetCall { - c.urlParams_.Set("select", select_) - return c -} - -// Sonar sets the optional parameter "sonar": This parameter routes the -// query to api monitoring service for last hour. -func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sonar(sonar bool) *OrganizationsEnvironmentsOptimizedStatsGetCall { - c.urlParams_.Set("sonar", fmt.Sprint(sonar)) - return c -} - -// Sort sets the optional parameter "sort": This parameter specifies if -// the sort order should be ascending or descending Supported values are -// DESC and ASC. -func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sort(sort string) *OrganizationsEnvironmentsOptimizedStatsGetCall { - c.urlParams_.Set("sort", sort) - return c -} - -// Sortby sets the optional parameter "sortby": Comma separated list of -// columns to sort the final result. -func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sortby(sortby string) *OrganizationsEnvironmentsOptimizedStatsGetCall { - c.urlParams_.Set("sortby", sortby) - return c -} - -// TimeRange sets the optional parameter "timeRange": Required. Time -// interval for the interactive query. Time range is specified as -// start~end E.g. 04/15/2017 00:00~05/15/2017 23:59 -func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TimeRange(timeRange string) *OrganizationsEnvironmentsOptimizedStatsGetCall { - c.urlParams_.Set("timeRange", timeRange) - return c -} - -// TimeUnit sets the optional parameter "timeUnit": A value of second, -// minute, hour, day, week, month. Time Unit specifies the granularity -// of metrics returned. -func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TimeUnit(timeUnit string) *OrganizationsEnvironmentsOptimizedStatsGetCall { - c.urlParams_.Set("timeUnit", timeUnit) - return c -} - -// Topk sets the optional parameter "topk": Take 'top k' results from -// results, for example, to return the top 5 results 'topk=5'. -func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Topk(topk string) *OrganizationsEnvironmentsOptimizedStatsGetCall { - c.urlParams_.Set("topk", topk) - return c -} - -// TsAscending sets the optional parameter "tsAscending": Lists -// timestamps in ascending order if set to true. Recommend setting this -// value to true if you are using sortby with sort=DESC. -func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TsAscending(tsAscending bool) *OrganizationsEnvironmentsOptimizedStatsGetCall { - c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending)) - return c -} - -// Tzo sets the optional parameter "tzo": This parameters contains the -// timezone offset value. -func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Tzo(tzo string) *OrganizationsEnvironmentsOptimizedStatsGetCall { - c.urlParams_.Set("tzo", tzo) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsOptimizedStatsGetCall { +func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -26240,7 +26557,7 @@ func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Fields(s ...googleapi.F // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsOptimizedStatsGetCall { +func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesGetCall { c.ifNoneMatch_ = entityTag return c } @@ -26248,23 +26565,23 @@ func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) IfNoneMatch(entityTag s // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsOptimizedStatsGetCall { +func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Header() http.Header { +func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26288,15 +26605,14 @@ func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.optimizedStats.get" call. -// Exactly one of *GoogleCloudApigeeV1OptimizedStats or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1OptimizedStats.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1OptimizedStats, error) { +// Do executes the "apigee.organizations.environments.keystores.aliases.get" call. +// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -26315,7 +26631,7 @@ func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1OptimizedStats{ + ret := &GoogleCloudApigeeV1Alias{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -26327,100 +26643,25 @@ func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "This api is similar to GetStats except that the response is less verbose. In the current scheme, a query parameter _optimized instructs Edge Analytics to change the response but since this behavior is not possible with protocol buffer and since this parameter is predominantly used by Edge UI, we are introducing a separate api.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/optimizedStats/{optimizedStatsId}", + // "description": "Gets an alias.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}", // "httpMethod": "GET", - // "id": "apigee.organizations.environments.optimizedStats.get", + // "id": "apigee.organizations.environments.keystores.aliases.get", // "parameterOrder": [ // "name" // ], // "parameters": { - // "accuracy": { - // "description": "Legacy field: not used anymore.", - // "location": "query", - // "type": "string" - // }, - // "aggTable": { - // "description": "If customers want to query custom aggregate tables, then this parameter can be used to specify the table name. If this parameter is skipped, then Edge Query will try to retrieve the data from fact tables which will be expensive.", - // "location": "query", - // "type": "string" - // }, - // "filter": { - // "description": "Enables drill-down on specific dimension values.", - // "location": "query", - // "type": "string" - // }, - // "limit": { - // "description": "This parameter is used to limit the number of result items. Default and the max value is 14400.", - // "location": "query", - // "type": "string" - // }, // "name": { - // "description": "Required. The resource name for which the interactive query will be executed. Must be of the form `organizations/{organization_id}/environments/{environment_id/stats/{dimensions}` Dimensions let you view metrics in meaningful groupings. E.g. apiproxy, target_host. The value of dimensions should be comma separated list as shown below `organizations/{org}/environments/{env}/stats/apiproxy,request_verb`", + // "description": "Required. The name of the alias. Must be of the form `organizations/{organization}/environments/{environment}/keystores/{keystore}/aliases/{alias}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/optimizedStats/.*$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$", // "required": true, // "type": "string" - // }, - // "offset": { - // "description": "Use offset with limit to enable pagination of results. For example, to display results 11-20, set limit to '10' and offset to '10'.", - // "location": "query", - // "type": "string" - // }, - // "realtime": { - // "description": "Legacy field: not used anymore.", - // "location": "query", - // "type": "boolean" - // }, - // "select": { - // "description": "Required. The select parameter contains a comma separated list of metrics. E.g. sum(message_count),sum(error_count)", - // "location": "query", - // "type": "string" - // }, - // "sonar": { - // "description": "This parameter routes the query to api monitoring service for last hour.", - // "location": "query", - // "type": "boolean" - // }, - // "sort": { - // "description": "This parameter specifies if the sort order should be ascending or descending Supported values are DESC and ASC.", - // "location": "query", - // "type": "string" - // }, - // "sortby": { - // "description": "Comma separated list of columns to sort the final result.", - // "location": "query", - // "type": "string" - // }, - // "timeRange": { - // "description": "Required. Time interval for the interactive query. Time range is specified as start~end E.g. 04/15/2017 00:00~05/15/2017 23:59", - // "location": "query", - // "type": "string" - // }, - // "timeUnit": { - // "description": "A value of second, minute, hour, day, week, month. Time Unit specifies the granularity of metrics returned.", - // "location": "query", - // "type": "string" - // }, - // "topk": { - // "description": "Take 'top k' results from results, for example, to return the top 5 results 'topk=5'.", - // "location": "query", - // "type": "string" - // }, - // "tsAscending": { - // "description": "Lists timestamps in ascending order if set to true. Recommend setting this value to true if you are using sortby with sort=DESC.", - // "location": "query", - // "type": "boolean" - // }, - // "tzo": { - // "description": "This parameters contains the timezone offset value.", - // "location": "query", - // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudApigeeV1OptimizedStats" + // "$ref": "GoogleCloudApigeeV1Alias" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -26429,89 +26670,94 @@ func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Do(opts ...googleapi.Ca } -// method id "apigee.organizations.environments.queries.create": +// method id "apigee.organizations.environments.keystores.aliases.getCertificate": -type OrganizationsEnvironmentsQueriesCreateCall struct { - s *Service - parent string - googlecloudapigeev1query *GoogleCloudApigeeV1Query - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Submit a query to be processed in the background. If the -// submission of the query succeeds, the API returns a 201 status and an -// ID that refer to the query. In addition to the HTTP status 201, the -// `state` of "enqueued" means that the request succeeded. -func (r *OrganizationsEnvironmentsQueriesService) Create(parent string, googlecloudapigeev1query *GoogleCloudApigeeV1Query) *OrganizationsEnvironmentsQueriesCreateCall { - c := &OrganizationsEnvironmentsQueriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudapigeev1query = googlecloudapigeev1query +// GetCertificate: Gets the certificate from an alias in PEM-encoded +// form. +func (r *OrganizationsEnvironmentsKeystoresAliasesService) GetCertificate(name string) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall { + c := &OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsQueriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesCreateCall { +func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsQueriesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesCreateCall { +func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsQueriesCreateCall) Header() http.Header { +func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsQueriesCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1query) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/queries") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/certificate") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.queries.create" call. -// Exactly one of *GoogleCloudApigeeV1AsyncQuery or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "apigee.organizations.environments.keystores.aliases.getCertificate" call. +// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleApiHttpBody.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsQueriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) { +func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -26530,7 +26776,7 @@ func (c *OrganizationsEnvironmentsQueriesCreateCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1AsyncQuery{ + ret := &GoogleApiHttpBody{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -26542,28 +26788,25 @@ func (c *OrganizationsEnvironmentsQueriesCreateCall) Do(opts ...googleapi.CallOp } return ret, nil // { - // "description": "Submit a query to be processed in the background. If the submission of the query succeeds, the API returns a 201 status and an ID that refer to the query. In addition to the HTTP status 201, the `state` of \"enqueued\" means that the request succeeded.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries", - // "httpMethod": "POST", - // "id": "apigee.organizations.environments.queries.create", + // "description": "Gets the certificate from an alias in PEM-encoded form.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}/certificate", + // "httpMethod": "GET", + // "id": "apigee.organizations.environments.keystores.aliases.getCertificate", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The parent resource name. Must be of the form `organizations/{org}/environments/{env}`.", + // "name": { + // "description": "Required. The name of the alias. Must be of the form `organizations/{organization}/environments/{environment}/keystores/{keystore}/aliases/{alias}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/queries", - // "request": { - // "$ref": "GoogleCloudApigeeV1Query" - // }, + // "path": "v1/{+name}/certificate", // "response": { - // "$ref": "GoogleCloudApigeeV1AsyncQuery" + // "$ref": "GoogleApiHttpBody" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -26572,77 +26815,85 @@ func (c *OrganizationsEnvironmentsQueriesCreateCall) Do(opts ...googleapi.CallOp } -// method id "apigee.organizations.environments.queries.get": +// method id "apigee.organizations.environments.keystores.aliases.update": -type OrganizationsEnvironmentsQueriesGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsKeystoresAliasesUpdateCall struct { + s *Service + name string + googleapihttpbody *GoogleApiHttpBody + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Get query status If the query is still in progress, the `state` -// is set to "running" After the query has completed successfully, -// `state` is set to "completed" -func (r *OrganizationsEnvironmentsQueriesService) Get(name string) *OrganizationsEnvironmentsQueriesGetCall { - c := &OrganizationsEnvironmentsQueriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Update: Updates the certificate in an alias. +func (r *OrganizationsEnvironmentsKeystoresAliasesService) Update(name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall { + c := &OrganizationsEnvironmentsKeystoresAliasesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googleapihttpbody = googleapihttpbody + return c +} + +// IgnoreExpiryValidation sets the optional parameter +// "ignoreExpiryValidation": Required. If `true`, no expiry validation +// will be performed. +func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) IgnoreExpiryValidation(ignoreExpiryValidation bool) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall { + c.urlParams_.Set("ignoreExpiryValidation", fmt.Sprint(ignoreExpiryValidation)) + return c +} + +// IgnoreNewlineValidation sets the optional parameter +// "ignoreNewlineValidation": If `true`, do not throw an error when the +// file contains a chain with no newline between each certificate. By +// default, a newline is needed between each certificate in a chain. +func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) IgnoreNewlineValidation(ignoreNewlineValidation bool) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall { + c.urlParams_.Set("ignoreNewlineValidation", fmt.Sprint(ignoreNewlineValidation)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsQueriesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesGetCall { +func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsQueriesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsQueriesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesGetCall { +func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsQueriesGetCall) Header() http.Header { +func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsQueriesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("PUT", urls, body) if err != nil { return nil, err } @@ -26653,14 +26904,14 @@ func (c *OrganizationsEnvironmentsQueriesGetCall) doRequest(alt string) (*http.R return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.queries.get" call. -// Exactly one of *GoogleCloudApigeeV1AsyncQuery or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "apigee.organizations.environments.keystores.aliases.update" call. +// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsQueriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) { +func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -26679,7 +26930,7 @@ func (c *OrganizationsEnvironmentsQueriesGetCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1AsyncQuery{ + ret := &GoogleCloudApigeeV1Alias{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -26691,25 +26942,38 @@ func (c *OrganizationsEnvironmentsQueriesGetCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Get query status If the query is still in progress, the `state` is set to \"running\" After the query has completed successfully, `state` is set to \"completed\"", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries/{queriesId}", - // "httpMethod": "GET", - // "id": "apigee.organizations.environments.queries.get", + // "description": "Updates the certificate in an alias.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}", + // "httpMethod": "PUT", + // "id": "apigee.organizations.environments.keystores.aliases.update", // "parameterOrder": [ // "name" // ], // "parameters": { + // "ignoreExpiryValidation": { + // "description": "Required. If `true`, no expiry validation will be performed.", + // "location": "query", + // "type": "boolean" + // }, + // "ignoreNewlineValidation": { + // "description": "If `true`, do not throw an error when the file contains a chain with no newline between each certificate. By default, a newline is needed between each certificate in a chain.", + // "location": "query", + // "type": "boolean" + // }, // "name": { - // "description": "Required. Name of the asynchronous query to get. Must be of the form `organizations/{org}/environments/{env}/queries/{queryId}`.", + // "description": "Required. The name of the alias. Must be of the form `organizations/{organization}/environments/{environment}/keystores/{keystore}/aliases/{alias}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/queries/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleApiHttpBody" + // }, // "response": { - // "$ref": "GoogleCloudApigeeV1AsyncQuery" + // "$ref": "GoogleCloudApigeeV1Alias" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -26718,79 +26982,201 @@ func (c *OrganizationsEnvironmentsQueriesGetCall) Do(opts ...googleapi.CallOptio } -// method id "apigee.organizations.environments.queries.getResult": +// method id "apigee.organizations.environments.keyvaluemaps.create": -type OrganizationsEnvironmentsQueriesGetResultCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsKeyvaluemapsCreateCall struct { + s *Service + parent string + googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetResult: After the query is completed, use this API to retrieve the -// results. If the request succeeds, and there is a non-zero result set, -// the result is downloaded to the client as a zipped JSON file. The -// name of the downloaded file will be: OfflineQueryResult-.zip Example: -// `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip` -func (r *OrganizationsEnvironmentsQueriesService) GetResult(name string) *OrganizationsEnvironmentsQueriesGetResultCall { - c := &OrganizationsEnvironmentsQueriesGetResultCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// Create: Creates a key value map in an environment. +func (r *OrganizationsEnvironmentsKeyvaluemapsService) Create(parent string, googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap) *OrganizationsEnvironmentsKeyvaluemapsCreateCall { + c := &OrganizationsEnvironmentsKeyvaluemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudapigeev1keyvaluemap = googlecloudapigeev1keyvaluemap return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsQueriesGetResultCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesGetResultCall { +func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsQueriesGetResultCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesGetResultCall { - c.ifNoneMatch_ = entityTag +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvaluemap) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "apigee.organizations.environments.keyvaluemaps.create" call. +// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudApigeeV1KeyValueMap{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a key value map in an environment.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keyvaluemaps", + // "httpMethod": "POST", + // "id": "apigee.organizations.environments.keyvaluemaps.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The name of the environment in which to create the key value map. Must be of the form `organizations/{organization}/environments/{environment}`.", + // "location": "path", + // "pattern": "^organizations/[^/]+/environments/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/keyvaluemaps", + // "request": { + // "$ref": "GoogleCloudApigeeV1KeyValueMap" + // }, + // "response": { + // "$ref": "GoogleCloudApigeeV1KeyValueMap" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "apigee.organizations.environments.keyvaluemaps.delete": + +type OrganizationsEnvironmentsKeyvaluemapsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Delete a key value map in an environment. +func (r *OrganizationsEnvironmentsKeyvaluemapsService) Delete(name string) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall { + c := &OrganizationsEnvironmentsKeyvaluemapsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsQueriesGetResultCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesGetResultCall { +func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsQueriesGetResultCall) Header() http.Header { +func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsQueriesGetResultCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -26801,14 +27187,14 @@ func (c *OrganizationsEnvironmentsQueriesGetResultCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.queries.getResult" call. -// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleApiHttpBody.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "apigee.organizations.environments.keyvaluemaps.delete" call. +// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsQueriesGetResultCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) { +func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -26827,7 +27213,7 @@ func (c *OrganizationsEnvironmentsQueriesGetResultCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleApiHttpBody{ + ret := &GoogleCloudApigeeV1KeyValueMap{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -26839,25 +27225,25 @@ func (c *OrganizationsEnvironmentsQueriesGetResultCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "After the query is completed, use this API to retrieve the results. If the request succeeds, and there is a non-zero result set, the result is downloaded to the client as a zipped JSON file. The name of the downloaded file will be: OfflineQueryResult-.zip Example: `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip`", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries/{queriesId}/result", - // "httpMethod": "GET", - // "id": "apigee.organizations.environments.queries.getResult", + // "description": "Delete a key value map in an environment.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keyvaluemaps/{keyvaluemapsId}", + // "httpMethod": "DELETE", + // "id": "apigee.organizations.environments.keyvaluemaps.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Name of the asynchronous query result to get. Must be of the form `organizations/{org}/environments/{env}/queries/{queryId}/result`.", + // "description": "Required. The name of the key value map. Must be of the form `organizations/{organization}/environments/{environment}/keyvaluemaps/{keyvaluemap}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/queries/[^/]+/result$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/keyvaluemaps/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleApiHttpBody" + // "$ref": "GoogleCloudApigeeV1KeyValueMap" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -26866,73 +27252,147 @@ func (c *OrganizationsEnvironmentsQueriesGetResultCall) Do(opts ...googleapi.Cal } -// method id "apigee.organizations.environments.queries.list": +// method id "apigee.organizations.environments.optimizedStats.get": -type OrganizationsEnvironmentsQueriesListCall struct { +type OrganizationsEnvironmentsOptimizedStatsGetCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Return a list of Asynchronous Queries -func (r *OrganizationsEnvironmentsQueriesService) List(parent string) *OrganizationsEnvironmentsQueriesListCall { - c := &OrganizationsEnvironmentsQueriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// Get: This api is similar to GetStats except that the response is less +// verbose. In the current scheme, a query parameter _optimized +// instructs Edge Analytics to change the response but since this +// behavior is not possible with protocol buffer and since this +// parameter is predominantly used by Edge UI, we are introducing a +// separate api. +func (r *OrganizationsEnvironmentsOptimizedStatsService) Get(name string) *OrganizationsEnvironmentsOptimizedStatsGetCall { + c := &OrganizationsEnvironmentsOptimizedStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// Dataset sets the optional parameter "dataset": Filter response list -// by dataset. Example: `api`, `mint` -func (c *OrganizationsEnvironmentsQueriesListCall) Dataset(dataset string) *OrganizationsEnvironmentsQueriesListCall { - c.urlParams_.Set("dataset", dataset) +// Accuracy sets the optional parameter "accuracy": Legacy field: not +// used anymore. +func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Accuracy(accuracy string) *OrganizationsEnvironmentsOptimizedStatsGetCall { + c.urlParams_.Set("accuracy", accuracy) return c } -// From sets the optional parameter "from": Filter response list by -// returning asynchronous queries that created after this date time. -// Time must be in ISO date-time format like '2011-12-03T10:15:30Z'. -func (c *OrganizationsEnvironmentsQueriesListCall) From(from string) *OrganizationsEnvironmentsQueriesListCall { - c.urlParams_.Set("from", from) +// AggTable sets the optional parameter "aggTable": If customers want to +// query custom aggregate tables, then this parameter can be used to +// specify the table name. If this parameter is skipped, then Edge Query +// will try to retrieve the data from fact tables which will be +// expensive. +func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) AggTable(aggTable string) *OrganizationsEnvironmentsOptimizedStatsGetCall { + c.urlParams_.Set("aggTable", aggTable) return c } -// InclQueriesWithoutReport sets the optional parameter -// "inclQueriesWithoutReport": Flag to include asynchronous queries that -// don't have a report denifition. -func (c *OrganizationsEnvironmentsQueriesListCall) InclQueriesWithoutReport(inclQueriesWithoutReport string) *OrganizationsEnvironmentsQueriesListCall { - c.urlParams_.Set("inclQueriesWithoutReport", inclQueriesWithoutReport) +// Filter sets the optional parameter "filter": Enables drill-down on +// specific dimension values. +func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Filter(filter string) *OrganizationsEnvironmentsOptimizedStatsGetCall { + c.urlParams_.Set("filter", filter) return c } -// Status sets the optional parameter "status": Filter response list by -// asynchronous query status. -func (c *OrganizationsEnvironmentsQueriesListCall) Status(status string) *OrganizationsEnvironmentsQueriesListCall { - c.urlParams_.Set("status", status) +// Limit sets the optional parameter "limit": This parameter is used to +// limit the number of result items. Default and the max value is 14400. +func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Limit(limit string) *OrganizationsEnvironmentsOptimizedStatsGetCall { + c.urlParams_.Set("limit", limit) return c } -// SubmittedBy sets the optional parameter "submittedBy": Filter -// response list by user who submitted queries. -func (c *OrganizationsEnvironmentsQueriesListCall) SubmittedBy(submittedBy string) *OrganizationsEnvironmentsQueriesListCall { - c.urlParams_.Set("submittedBy", submittedBy) +// Offset sets the optional parameter "offset": Use offset with limit to +// enable pagination of results. For example, to display results 11-20, +// set limit to '10' and offset to '10'. +func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Offset(offset string) *OrganizationsEnvironmentsOptimizedStatsGetCall { + c.urlParams_.Set("offset", offset) return c } -// To sets the optional parameter "to": Filter response list by -// returning asynchronous queries that created before this date time. -// Time must be in ISO date-time format like '2011-12-03T10:16:30Z'. -func (c *OrganizationsEnvironmentsQueriesListCall) To(to string) *OrganizationsEnvironmentsQueriesListCall { - c.urlParams_.Set("to", to) +// Realtime sets the optional parameter "realtime": Legacy field: not +// used anymore. +func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Realtime(realtime bool) *OrganizationsEnvironmentsOptimizedStatsGetCall { + c.urlParams_.Set("realtime", fmt.Sprint(realtime)) + return c +} + +// Select sets the optional parameter "select": Required. The select +// parameter contains a comma separated list of metrics. E.g. +// sum(message_count),sum(error_count) +func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Select(select_ string) *OrganizationsEnvironmentsOptimizedStatsGetCall { + c.urlParams_.Set("select", select_) + return c +} + +// Sonar sets the optional parameter "sonar": This parameter routes the +// query to api monitoring service for last hour. +func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sonar(sonar bool) *OrganizationsEnvironmentsOptimizedStatsGetCall { + c.urlParams_.Set("sonar", fmt.Sprint(sonar)) + return c +} + +// Sort sets the optional parameter "sort": This parameter specifies if +// the sort order should be ascending or descending Supported values are +// DESC and ASC. +func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sort(sort string) *OrganizationsEnvironmentsOptimizedStatsGetCall { + c.urlParams_.Set("sort", sort) + return c +} + +// Sortby sets the optional parameter "sortby": Comma separated list of +// columns to sort the final result. +func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sortby(sortby string) *OrganizationsEnvironmentsOptimizedStatsGetCall { + c.urlParams_.Set("sortby", sortby) + return c +} + +// TimeRange sets the optional parameter "timeRange": Required. Time +// interval for the interactive query. Time range is specified as +// start~end E.g. 04/15/2017 00:00~05/15/2017 23:59 +func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TimeRange(timeRange string) *OrganizationsEnvironmentsOptimizedStatsGetCall { + c.urlParams_.Set("timeRange", timeRange) + return c +} + +// TimeUnit sets the optional parameter "timeUnit": A value of second, +// minute, hour, day, week, month. Time Unit specifies the granularity +// of metrics returned. +func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TimeUnit(timeUnit string) *OrganizationsEnvironmentsOptimizedStatsGetCall { + c.urlParams_.Set("timeUnit", timeUnit) + return c +} + +// Topk sets the optional parameter "topk": Take 'top k' results from +// results, for example, to return the top 5 results 'topk=5'. +func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Topk(topk string) *OrganizationsEnvironmentsOptimizedStatsGetCall { + c.urlParams_.Set("topk", topk) + return c +} + +// TsAscending sets the optional parameter "tsAscending": Lists +// timestamps in ascending order if set to true. Recommend setting this +// value to true if you are using sortby with sort=DESC. +func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TsAscending(tsAscending bool) *OrganizationsEnvironmentsOptimizedStatsGetCall { + c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending)) + return c +} + +// Tzo sets the optional parameter "tzo": This parameters contains the +// timezone offset value. +func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Tzo(tzo string) *OrganizationsEnvironmentsOptimizedStatsGetCall { + c.urlParams_.Set("tzo", tzo) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsQueriesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesListCall { +func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsOptimizedStatsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -26942,7 +27402,7 @@ func (c *OrganizationsEnvironmentsQueriesListCall) Fields(s ...googleapi.Field) // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsQueriesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesListCall { +func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsOptimizedStatsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -26950,23 +27410,23 @@ func (c *OrganizationsEnvironmentsQueriesListCall) IfNoneMatch(entityTag string) // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsQueriesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesListCall { +func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsOptimizedStatsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsQueriesListCall) Header() http.Header { +func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsQueriesListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26977,7 +27437,7 @@ func (c *OrganizationsEnvironmentsQueriesListCall) doRequest(alt string) (*http. var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/queries") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -26985,21 +27445,20 @@ func (c *OrganizationsEnvironmentsQueriesListCall) doRequest(alt string) (*http. } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.queries.list" call. -// Exactly one of *GoogleCloudApigeeV1ListAsyncQueriesResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudApigeeV1ListAsyncQueriesResponse.ServerResponse.Header or +// Do executes the "apigee.organizations.environments.optimizedStats.get" call. +// Exactly one of *GoogleCloudApigeeV1OptimizedStats or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1OptimizedStats.ServerResponse.Header or // (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *OrganizationsEnvironmentsQueriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAsyncQueriesResponse, error) { +func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1OptimizedStats, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -27018,7 +27477,7 @@ func (c *OrganizationsEnvironmentsQueriesListCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1ListAsyncQueriesResponse{ + ret := &GoogleCloudApigeeV1OptimizedStats{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -27030,55 +27489,100 @@ func (c *OrganizationsEnvironmentsQueriesListCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Return a list of Asynchronous Queries", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries", + // "description": "This api is similar to GetStats except that the response is less verbose. In the current scheme, a query parameter _optimized instructs Edge Analytics to change the response but since this behavior is not possible with protocol buffer and since this parameter is predominantly used by Edge UI, we are introducing a separate api.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/optimizedStats/{optimizedStatsId}", // "httpMethod": "GET", - // "id": "apigee.organizations.environments.queries.list", + // "id": "apigee.organizations.environments.optimizedStats.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "dataset": { - // "description": "Filter response list by dataset. Example: `api`, `mint`", + // "accuracy": { + // "description": "Legacy field: not used anymore.", // "location": "query", // "type": "string" // }, - // "from": { - // "description": "Filter response list by returning asynchronous queries that created after this date time. Time must be in ISO date-time format like '2011-12-03T10:15:30Z'.", + // "aggTable": { + // "description": "If customers want to query custom aggregate tables, then this parameter can be used to specify the table name. If this parameter is skipped, then Edge Query will try to retrieve the data from fact tables which will be expensive.", // "location": "query", // "type": "string" // }, - // "inclQueriesWithoutReport": { - // "description": "Flag to include asynchronous queries that don't have a report denifition.", + // "filter": { + // "description": "Enables drill-down on specific dimension values.", // "location": "query", // "type": "string" // }, - // "parent": { - // "description": "Required. The parent resource name. Must be of the form `organizations/{org}/environments/{env}`.", + // "limit": { + // "description": "This parameter is used to limit the number of result items. Default and the max value is 14400.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "Required. The resource name for which the interactive query will be executed. Must be of the form `organizations/{organization_id}/environments/{environment_id/stats/{dimensions}` Dimensions let you view metrics in meaningful groupings. E.g. apiproxy, target_host. The value of dimensions should be comma separated list as shown below `organizations/{org}/environments/{env}/stats/apiproxy,request_verb`", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/optimizedStats/.*$", // "required": true, // "type": "string" // }, - // "status": { - // "description": "Filter response list by asynchronous query status.", + // "offset": { + // "description": "Use offset with limit to enable pagination of results. For example, to display results 11-20, set limit to '10' and offset to '10'.", // "location": "query", // "type": "string" // }, - // "submittedBy": { - // "description": "Filter response list by user who submitted queries.", + // "realtime": { + // "description": "Legacy field: not used anymore.", + // "location": "query", + // "type": "boolean" + // }, + // "select": { + // "description": "Required. The select parameter contains a comma separated list of metrics. E.g. sum(message_count),sum(error_count)", // "location": "query", // "type": "string" // }, - // "to": { - // "description": "Filter response list by returning asynchronous queries that created before this date time. Time must be in ISO date-time format like '2011-12-03T10:16:30Z'.", + // "sonar": { + // "description": "This parameter routes the query to api monitoring service for last hour.", + // "location": "query", + // "type": "boolean" + // }, + // "sort": { + // "description": "This parameter specifies if the sort order should be ascending or descending Supported values are DESC and ASC.", + // "location": "query", + // "type": "string" + // }, + // "sortby": { + // "description": "Comma separated list of columns to sort the final result.", + // "location": "query", + // "type": "string" + // }, + // "timeRange": { + // "description": "Required. Time interval for the interactive query. Time range is specified as start~end E.g. 04/15/2017 00:00~05/15/2017 23:59", + // "location": "query", + // "type": "string" + // }, + // "timeUnit": { + // "description": "A value of second, minute, hour, day, week, month. Time Unit specifies the granularity of metrics returned.", + // "location": "query", + // "type": "string" + // }, + // "topk": { + // "description": "Take 'top k' results from results, for example, to return the top 5 results 'topk=5'.", + // "location": "query", + // "type": "string" + // }, + // "tsAscending": { + // "description": "Lists timestamps in ascending order if set to true. Recommend setting this value to true if you are using sortby with sort=DESC.", + // "location": "query", + // "type": "boolean" + // }, + // "tzo": { + // "description": "This parameters contains the timezone offset value.", // "location": "query", // "type": "string" // } // }, - // "path": "v1/{+parent}/queries", + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudApigeeV1ListAsyncQueriesResponse" + // "$ref": "GoogleCloudApigeeV1OptimizedStats" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -27087,29 +27591,32 @@ func (c *OrganizationsEnvironmentsQueriesListCall) Do(opts ...googleapi.CallOpti } -// method id "apigee.organizations.environments.references.create": +// method id "apigee.organizations.environments.queries.create": -type OrganizationsEnvironmentsReferencesCreateCall struct { - s *Service - parent string - googlecloudapigeev1reference *GoogleCloudApigeeV1Reference - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsQueriesCreateCall struct { + s *Service + parent string + googlecloudapigeev1query *GoogleCloudApigeeV1Query + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a Reference in the specified environment. -func (r *OrganizationsEnvironmentsReferencesService) Create(parent string, googlecloudapigeev1reference *GoogleCloudApigeeV1Reference) *OrganizationsEnvironmentsReferencesCreateCall { - c := &OrganizationsEnvironmentsReferencesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Create: Submit a query to be processed in the background. If the +// submission of the query succeeds, the API returns a 201 status and an +// ID that refer to the query. In addition to the HTTP status 201, the +// `state` of "enqueued" means that the request succeeded. +func (r *OrganizationsEnvironmentsQueriesService) Create(parent string, googlecloudapigeev1query *GoogleCloudApigeeV1Query) *OrganizationsEnvironmentsQueriesCreateCall { + c := &OrganizationsEnvironmentsQueriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudapigeev1reference = googlecloudapigeev1reference + c.googlecloudapigeev1query = googlecloudapigeev1query return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsReferencesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesCreateCall { +func (c *OrganizationsEnvironmentsQueriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -27117,36 +27624,36 @@ func (c *OrganizationsEnvironmentsReferencesCreateCall) Fields(s ...googleapi.Fi // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsReferencesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesCreateCall { +func (c *OrganizationsEnvironmentsQueriesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsReferencesCreateCall) Header() http.Header { +func (c *OrganizationsEnvironmentsQueriesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsReferencesCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsQueriesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1reference) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1query) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/references") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/queries") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -27159,14 +27666,14 @@ func (c *OrganizationsEnvironmentsReferencesCreateCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.references.create" call. -// Exactly one of *GoogleCloudApigeeV1Reference or error will be +// Do executes the "apigee.organizations.environments.queries.create" call. +// Exactly one of *GoogleCloudApigeeV1AsyncQuery or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a +// either *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a // response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsReferencesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) { +func (c *OrganizationsEnvironmentsQueriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -27185,7 +27692,7 @@ func (c *OrganizationsEnvironmentsReferencesCreateCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Reference{ + ret := &GoogleCloudApigeeV1AsyncQuery{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -27197,28 +27704,28 @@ func (c *OrganizationsEnvironmentsReferencesCreateCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Creates a Reference in the specified environment.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references", + // "description": "Submit a query to be processed in the background. If the submission of the query succeeds, the API returns a 201 status and an ID that refer to the query. In addition to the HTTP status 201, the `state` of \"enqueued\" means that the request succeeded.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries", // "httpMethod": "POST", - // "id": "apigee.organizations.environments.references.create", + // "id": "apigee.organizations.environments.queries.create", // "parameterOrder": [ // "parent" // ], // "parameters": { // "parent": { - // "description": "Required. The parent environment name under which the Reference will be created. Must be of the form `organizations/{org}/environments/{env}`.", + // "description": "Required. The parent resource name. Must be of the form `organizations/{org}/environments/{env}`.", // "location": "path", // "pattern": "^organizations/[^/]+/environments/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/references", + // "path": "v1/{+parent}/queries", // "request": { - // "$ref": "GoogleCloudApigeeV1Reference" + // "$ref": "GoogleCloudApigeeV1Query" // }, // "response": { - // "$ref": "GoogleCloudApigeeV1Reference" + // "$ref": "GoogleCloudApigeeV1AsyncQuery" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -27227,20 +27734,22 @@ func (c *OrganizationsEnvironmentsReferencesCreateCall) Do(opts ...googleapi.Cal } -// method id "apigee.organizations.environments.references.delete": - -type OrganizationsEnvironmentsReferencesDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} +// method id "apigee.organizations.environments.queries.get": -// Delete: Deletes a Reference from an environment. Returns the deleted -// Reference resource. -func (r *OrganizationsEnvironmentsReferencesService) Delete(name string) *OrganizationsEnvironmentsReferencesDeleteCall { - c := &OrganizationsEnvironmentsReferencesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +type OrganizationsEnvironmentsQueriesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get query status If the query is still in progress, the `state` +// is set to "running" After the query has completed successfully, +// `state` is set to "completed" +func (r *OrganizationsEnvironmentsQueriesService) Get(name string) *OrganizationsEnvironmentsQueriesGetCall { + c := &OrganizationsEnvironmentsQueriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -27248,41 +27757,54 @@ func (r *OrganizationsEnvironmentsReferencesService) Delete(name string) *Organi // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsReferencesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesDeleteCall { +func (c *OrganizationsEnvironmentsQueriesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsEnvironmentsQueriesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsReferencesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesDeleteCall { +func (c *OrganizationsEnvironmentsQueriesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsReferencesDeleteCall) Header() http.Header { +func (c *OrganizationsEnvironmentsQueriesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsReferencesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsQueriesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -27293,14 +27815,14 @@ func (c *OrganizationsEnvironmentsReferencesDeleteCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.references.delete" call. -// Exactly one of *GoogleCloudApigeeV1Reference or error will be +// Do executes the "apigee.organizations.environments.queries.get" call. +// Exactly one of *GoogleCloudApigeeV1AsyncQuery or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a +// either *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a // response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsReferencesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) { +func (c *OrganizationsEnvironmentsQueriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -27319,7 +27841,7 @@ func (c *OrganizationsEnvironmentsReferencesDeleteCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Reference{ + ret := &GoogleCloudApigeeV1AsyncQuery{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -27331,25 +27853,25 @@ func (c *OrganizationsEnvironmentsReferencesDeleteCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Deletes a Reference from an environment. Returns the deleted Reference resource.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references/{referencesId}", - // "httpMethod": "DELETE", - // "id": "apigee.organizations.environments.references.delete", + // "description": "Get query status If the query is still in progress, the `state` is set to \"running\" After the query has completed successfully, `state` is set to \"completed\"", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries/{queriesId}", + // "httpMethod": "GET", + // "id": "apigee.organizations.environments.queries.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the Reference to delete. Must be of the form `organizations/{org}/environments/{env}/references/{ref}`.", + // "description": "Required. Name of the asynchronous query to get. Must be of the form `organizations/{org}/environments/{env}/queries/{queryId}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/references/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/queries/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudApigeeV1Reference" + // "$ref": "GoogleCloudApigeeV1AsyncQuery" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -27358,9 +27880,9 @@ func (c *OrganizationsEnvironmentsReferencesDeleteCall) Do(opts ...googleapi.Cal } -// method id "apigee.organizations.environments.references.get": +// method id "apigee.organizations.environments.queries.getResult": -type OrganizationsEnvironmentsReferencesGetCall struct { +type OrganizationsEnvironmentsQueriesGetResultCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -27369,9 +27891,13 @@ type OrganizationsEnvironmentsReferencesGetCall struct { header_ http.Header } -// Get: Gets a Reference resource. -func (r *OrganizationsEnvironmentsReferencesService) Get(name string) *OrganizationsEnvironmentsReferencesGetCall { - c := &OrganizationsEnvironmentsReferencesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// GetResult: After the query is completed, use this API to retrieve the +// results. If the request succeeds, and there is a non-zero result set, +// the result is downloaded to the client as a zipped JSON file. The +// name of the downloaded file will be: OfflineQueryResult-.zip Example: +// `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip` +func (r *OrganizationsEnvironmentsQueriesService) GetResult(name string) *OrganizationsEnvironmentsQueriesGetResultCall { + c := &OrganizationsEnvironmentsQueriesGetResultCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -27379,7 +27905,7 @@ func (r *OrganizationsEnvironmentsReferencesService) Get(name string) *Organizat // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsReferencesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesGetCall { +func (c *OrganizationsEnvironmentsQueriesGetResultCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesGetResultCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -27389,7 +27915,7 @@ func (c *OrganizationsEnvironmentsReferencesGetCall) Fields(s ...googleapi.Field // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsReferencesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsReferencesGetCall { +func (c *OrganizationsEnvironmentsQueriesGetResultCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesGetResultCall { c.ifNoneMatch_ = entityTag return c } @@ -27397,23 +27923,23 @@ func (c *OrganizationsEnvironmentsReferencesGetCall) IfNoneMatch(entityTag strin // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsReferencesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesGetCall { +func (c *OrganizationsEnvironmentsQueriesGetResultCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesGetResultCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsReferencesGetCall) Header() http.Header { +func (c *OrganizationsEnvironmentsQueriesGetResultCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsReferencesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsQueriesGetResultCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27437,14 +27963,14 @@ func (c *OrganizationsEnvironmentsReferencesGetCall) doRequest(alt string) (*htt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.references.get" call. -// Exactly one of *GoogleCloudApigeeV1Reference or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "apigee.organizations.environments.queries.getResult" call. +// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleApiHttpBody.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsReferencesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) { +func (c *OrganizationsEnvironmentsQueriesGetResultCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -27463,7 +27989,7 @@ func (c *OrganizationsEnvironmentsReferencesGetCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Reference{ + ret := &GoogleApiHttpBody{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -27475,25 +28001,25 @@ func (c *OrganizationsEnvironmentsReferencesGetCall) Do(opts ...googleapi.CallOp } return ret, nil // { - // "description": "Gets a Reference resource.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references/{referencesId}", + // "description": "After the query is completed, use this API to retrieve the results. If the request succeeds, and there is a non-zero result set, the result is downloaded to the client as a zipped JSON file. The name of the downloaded file will be: OfflineQueryResult-.zip Example: `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip`", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries/{queriesId}/result", // "httpMethod": "GET", - // "id": "apigee.organizations.environments.references.get", + // "id": "apigee.organizations.environments.queries.getResult", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the Reference to get. Must be of the form `organizations/{org}/environments/{env}/references/{ref}`.", + // "description": "Required. Name of the asynchronous query result to get. Must be of the form `organizations/{org}/environments/{env}/queries/{queryId}/result`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/references/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/queries/[^/]+/result$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudApigeeV1Reference" + // "$ref": "GoogleApiHttpBody" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -27502,88 +28028,140 @@ func (c *OrganizationsEnvironmentsReferencesGetCall) Do(opts ...googleapi.CallOp } -// method id "apigee.organizations.environments.references.update": +// method id "apigee.organizations.environments.queries.list": -type OrganizationsEnvironmentsReferencesUpdateCall struct { - s *Service - name string - googlecloudapigeev1reference *GoogleCloudApigeeV1Reference - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsQueriesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Update: Updates an existing Reference. Note that this operation has -// PUT semantics; it will replace the entirety of the existing Reference -// with the resource in the request body. -func (r *OrganizationsEnvironmentsReferencesService) Update(name string, googlecloudapigeev1reference *GoogleCloudApigeeV1Reference) *OrganizationsEnvironmentsReferencesUpdateCall { - c := &OrganizationsEnvironmentsReferencesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudapigeev1reference = googlecloudapigeev1reference +// List: Return a list of Asynchronous Queries +func (r *OrganizationsEnvironmentsQueriesService) List(parent string) *OrganizationsEnvironmentsQueriesListCall { + c := &OrganizationsEnvironmentsQueriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Dataset sets the optional parameter "dataset": Filter response list +// by dataset. Example: `api`, `mint` +func (c *OrganizationsEnvironmentsQueriesListCall) Dataset(dataset string) *OrganizationsEnvironmentsQueriesListCall { + c.urlParams_.Set("dataset", dataset) + return c +} + +// From sets the optional parameter "from": Filter response list by +// returning asynchronous queries that created after this date time. +// Time must be in ISO date-time format like '2011-12-03T10:15:30Z'. +func (c *OrganizationsEnvironmentsQueriesListCall) From(from string) *OrganizationsEnvironmentsQueriesListCall { + c.urlParams_.Set("from", from) + return c +} + +// InclQueriesWithoutReport sets the optional parameter +// "inclQueriesWithoutReport": Flag to include asynchronous queries that +// don't have a report denifition. +func (c *OrganizationsEnvironmentsQueriesListCall) InclQueriesWithoutReport(inclQueriesWithoutReport string) *OrganizationsEnvironmentsQueriesListCall { + c.urlParams_.Set("inclQueriesWithoutReport", inclQueriesWithoutReport) + return c +} + +// Status sets the optional parameter "status": Filter response list by +// asynchronous query status. +func (c *OrganizationsEnvironmentsQueriesListCall) Status(status string) *OrganizationsEnvironmentsQueriesListCall { + c.urlParams_.Set("status", status) + return c +} + +// SubmittedBy sets the optional parameter "submittedBy": Filter +// response list by user who submitted queries. +func (c *OrganizationsEnvironmentsQueriesListCall) SubmittedBy(submittedBy string) *OrganizationsEnvironmentsQueriesListCall { + c.urlParams_.Set("submittedBy", submittedBy) + return c +} + +// To sets the optional parameter "to": Filter response list by +// returning asynchronous queries that created before this date time. +// Time must be in ISO date-time format like '2011-12-03T10:16:30Z'. +func (c *OrganizationsEnvironmentsQueriesListCall) To(to string) *OrganizationsEnvironmentsQueriesListCall { + c.urlParams_.Set("to", to) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsReferencesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesUpdateCall { +func (c *OrganizationsEnvironmentsQueriesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsEnvironmentsQueriesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsReferencesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesUpdateCall { +func (c *OrganizationsEnvironmentsQueriesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsReferencesUpdateCall) Header() http.Header { +func (c *OrganizationsEnvironmentsQueriesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsReferencesUpdateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsQueriesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1reference) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/queries") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.references.update" call. -// Exactly one of *GoogleCloudApigeeV1Reference or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsReferencesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) { +// Do executes the "apigee.organizations.environments.queries.list" call. +// Exactly one of *GoogleCloudApigeeV1ListAsyncQueriesResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudApigeeV1ListAsyncQueriesResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsEnvironmentsQueriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAsyncQueriesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -27602,7 +28180,7 @@ func (c *OrganizationsEnvironmentsReferencesUpdateCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Reference{ + ret := &GoogleCloudApigeeV1ListAsyncQueriesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -27614,28 +28192,55 @@ func (c *OrganizationsEnvironmentsReferencesUpdateCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Updates an existing Reference. Note that this operation has PUT semantics; it will replace the entirety of the existing Reference with the resource in the request body.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references/{referencesId}", - // "httpMethod": "PUT", - // "id": "apigee.organizations.environments.references.update", + // "description": "Return a list of Asynchronous Queries", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries", + // "httpMethod": "GET", + // "id": "apigee.organizations.environments.queries.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the Reference to update. Must be of the form `organizations/{org}/environments/{env}/references/{ref}`.", + // "dataset": { + // "description": "Filter response list by dataset. Example: `api`, `mint`", + // "location": "query", + // "type": "string" + // }, + // "from": { + // "description": "Filter response list by returning asynchronous queries that created after this date time. Time must be in ISO date-time format like '2011-12-03T10:15:30Z'.", + // "location": "query", + // "type": "string" + // }, + // "inclQueriesWithoutReport": { + // "description": "Flag to include asynchronous queries that don't have a report denifition.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent resource name. Must be of the form `organizations/{org}/environments/{env}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/references/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+$", // "required": true, // "type": "string" + // }, + // "status": { + // "description": "Filter response list by asynchronous query status.", + // "location": "query", + // "type": "string" + // }, + // "submittedBy": { + // "description": "Filter response list by user who submitted queries.", + // "location": "query", + // "type": "string" + // }, + // "to": { + // "description": "Filter response list by returning asynchronous queries that created before this date time. Time must be in ISO date-time format like '2011-12-03T10:16:30Z'.", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudApigeeV1Reference" - // }, + // "path": "v1/{+parent}/queries", // "response": { - // "$ref": "GoogleCloudApigeeV1Reference" + // "$ref": "GoogleCloudApigeeV1ListAsyncQueriesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -27644,48 +28249,29 @@ func (c *OrganizationsEnvironmentsReferencesUpdateCall) Do(opts ...googleapi.Cal } -// method id "apigee.organizations.environments.resourcefiles.create": +// method id "apigee.organizations.environments.references.create": -type OrganizationsEnvironmentsResourcefilesCreateCall struct { - s *Service - parent string - googleapihttpbody *GoogleApiHttpBody - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsReferencesCreateCall struct { + s *Service + parent string + googlecloudapigeev1reference *GoogleCloudApigeeV1Reference + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a resource file. Specify the `Content-Type` as -// `application/octet-stream` or `multipart/form-data`. For more -// information about resource files, see [Resource -// files](https://cloud.google.com/apigee/docs/api-platform/develop/resou -// rce-files). -func (r *OrganizationsEnvironmentsResourcefilesService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsResourcefilesCreateCall { - c := &OrganizationsEnvironmentsResourcefilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Create: Creates a Reference in the specified environment. +func (r *OrganizationsEnvironmentsReferencesService) Create(parent string, googlecloudapigeev1reference *GoogleCloudApigeeV1Reference) *OrganizationsEnvironmentsReferencesCreateCall { + c := &OrganizationsEnvironmentsReferencesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googleapihttpbody = googleapihttpbody - return c -} - -// Name sets the optional parameter "name": Required. Name of the -// resource file. Must match the regular expression: -// [a-zA-Z0-9:/\\!@#$%^&{}\[\]()+\-=,.~'` ]{1,255} -func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Name(name string) *OrganizationsEnvironmentsResourcefilesCreateCall { - c.urlParams_.Set("name", name) - return c -} - -// Type sets the optional parameter "type": Required. Resource file -// type. {{ resource_file_type }} -func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Type(type_ string) *OrganizationsEnvironmentsResourcefilesCreateCall { - c.urlParams_.Set("type", type_) + c.googlecloudapigeev1reference = googlecloudapigeev1reference return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesCreateCall { +func (c *OrganizationsEnvironmentsReferencesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -27693,36 +28279,36 @@ func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Fields(s ...googleapi // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesCreateCall { +func (c *OrganizationsEnvironmentsReferencesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Header() http.Header { +func (c *OrganizationsEnvironmentsReferencesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsResourcefilesCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsReferencesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1reference) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/references") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -27735,14 +28321,14 @@ func (c *OrganizationsEnvironmentsResourcefilesCreateCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.resourcefiles.create" call. -// Exactly one of *GoogleCloudApigeeV1ResourceFile or error will be +// Do executes the "apigee.organizations.environments.references.create" call. +// Exactly one of *GoogleCloudApigeeV1Reference or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1ResourceFile.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was +// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) { +func (c *OrganizationsEnvironmentsReferencesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -27761,7 +28347,7 @@ func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1ResourceFile{ + ret := &GoogleCloudApigeeV1Reference{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -27773,38 +28359,28 @@ func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Creates a resource file. Specify the `Content-Type` as `application/octet-stream` or `multipart/form-data`. For more information about resource files, see [Resource files](https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles", + // "description": "Creates a Reference in the specified environment.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references", // "httpMethod": "POST", - // "id": "apigee.organizations.environments.resourcefiles.create", + // "id": "apigee.organizations.environments.references.create", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. Name of the resource file. Must match the regular expression: [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}", - // "location": "query", - // "type": "string" - // }, // "parent": { - // "description": "Required. Name of the environment in which to create the resource file in the following format: `organizations/{org}/environments/{env}`.", + // "description": "Required. The parent environment name under which the Reference will be created. Must be of the form `organizations/{org}/environments/{env}`.", // "location": "path", // "pattern": "^organizations/[^/]+/environments/[^/]+$", // "required": true, // "type": "string" - // }, - // "type": { - // "description": "Required. Resource file type. {{ resource_file_type }}", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+parent}/resourcefiles", + // "path": "v1/{+parent}/references", // "request": { - // "$ref": "GoogleApiHttpBody" + // "$ref": "GoogleCloudApigeeV1Reference" // }, // "response": { - // "$ref": "GoogleCloudApigeeV1ResourceFile" + // "$ref": "GoogleCloudApigeeV1Reference" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -27813,26 +28389,20 @@ func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Do(opts ...googleapi. } -// method id "apigee.organizations.environments.resourcefiles.delete": +// method id "apigee.organizations.environments.references.delete": -type OrganizationsEnvironmentsResourcefilesDeleteCall struct { +type OrganizationsEnvironmentsReferencesDeleteCall struct { s *Service - parent string - type_ string name string urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Delete: Deletes a resource file. For more information about resource -// files, see [Resource -// files](https://cloud.google.com/apigee/docs/api-platform/develop/resou -// rce-files). -func (r *OrganizationsEnvironmentsResourcefilesService) Delete(parent string, type_ string, name string) *OrganizationsEnvironmentsResourcefilesDeleteCall { - c := &OrganizationsEnvironmentsResourcefilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.type_ = type_ +// Delete: Deletes a Reference from an environment. Returns the deleted +// Reference resource. +func (r *OrganizationsEnvironmentsReferencesService) Delete(name string) *OrganizationsEnvironmentsReferencesDeleteCall { + c := &OrganizationsEnvironmentsReferencesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -27840,7 +28410,7 @@ func (r *OrganizationsEnvironmentsResourcefilesService) Delete(parent string, ty // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesDeleteCall { +func (c *OrganizationsEnvironmentsReferencesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -27848,23 +28418,23 @@ func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Fields(s ...googleapi // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesDeleteCall { +func (c *OrganizationsEnvironmentsReferencesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Header() http.Header { +func (c *OrganizationsEnvironmentsReferencesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsReferencesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27872,7 +28442,7 @@ func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) doRequest(alt string) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -27880,21 +28450,19 @@ func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) doRequest(alt string) } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - "type": c.type_, - "name": c.name, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.resourcefiles.delete" call. -// Exactly one of *GoogleCloudApigeeV1ResourceFile or error will be +// Do executes the "apigee.organizations.environments.references.delete" call. +// Exactly one of *GoogleCloudApigeeV1Reference or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1ResourceFile.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was +// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) { +func (c *OrganizationsEnvironmentsReferencesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -27913,7 +28481,7 @@ func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1ResourceFile{ + ret := &GoogleCloudApigeeV1Reference{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -27925,39 +28493,25 @@ func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Deletes a resource file. For more information about resource files, see [Resource files](https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}/{name}", + // "description": "Deletes a Reference from an environment. Returns the deleted Reference resource.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references/{referencesId}", // "httpMethod": "DELETE", - // "id": "apigee.organizations.environments.resourcefiles.delete", + // "id": "apigee.organizations.environments.references.delete", // "parameterOrder": [ - // "parent", - // "type", // "name" // ], // "parameters": { // "name": { - // "description": "Required. ID of the resource file to delete. Must match the regular expression: [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "Required. Name of the environment in the following format: `organizations/{org}/environments/{env}`.", - // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "type": { - // "description": "Required. Resource file type. {{ resource_file_type }}", + // "description": "Required. The name of the Reference to delete. Must be of the form `organizations/{org}/environments/{env}/references/{ref}`.", // "location": "path", + // "pattern": "^organizations/[^/]+/environments/[^/]+/references/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/resourcefiles/{type}/{name}", + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudApigeeV1ResourceFile" + // "$ref": "GoogleCloudApigeeV1Reference" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -27966,12 +28520,10 @@ func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Do(opts ...googleapi. } -// method id "apigee.organizations.environments.resourcefiles.get": +// method id "apigee.organizations.environments.references.get": -type OrganizationsEnvironmentsResourcefilesGetCall struct { +type OrganizationsEnvironmentsReferencesGetCall struct { s *Service - parent string - type_ string name string urlParams_ gensupport.URLParams ifNoneMatch_ string @@ -27979,14 +28531,9 @@ type OrganizationsEnvironmentsResourcefilesGetCall struct { header_ http.Header } -// Get: Gets the contents of a resource file. For more information about -// resource files, see [Resource -// files](https://cloud.google.com/apigee/docs/api-platform/develop/resou -// rce-files). -func (r *OrganizationsEnvironmentsResourcefilesService) Get(parent string, type_ string, name string) *OrganizationsEnvironmentsResourcefilesGetCall { - c := &OrganizationsEnvironmentsResourcefilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.type_ = type_ +// Get: Gets a Reference resource. +func (r *OrganizationsEnvironmentsReferencesService) Get(name string) *OrganizationsEnvironmentsReferencesGetCall { + c := &OrganizationsEnvironmentsReferencesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -27994,7 +28541,7 @@ func (r *OrganizationsEnvironmentsResourcefilesService) Get(parent string, type_ // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsResourcefilesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesGetCall { +func (c *OrganizationsEnvironmentsReferencesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -28004,7 +28551,7 @@ func (c *OrganizationsEnvironmentsResourcefilesGetCall) Fields(s ...googleapi.Fi // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsResourcefilesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesGetCall { +func (c *OrganizationsEnvironmentsReferencesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsReferencesGetCall { c.ifNoneMatch_ = entityTag return c } @@ -28012,23 +28559,23 @@ func (c *OrganizationsEnvironmentsResourcefilesGetCall) IfNoneMatch(entityTag st // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsResourcefilesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesGetCall { +func (c *OrganizationsEnvironmentsReferencesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsResourcefilesGetCall) Header() http.Header { +func (c *OrganizationsEnvironmentsReferencesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsResourcefilesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsReferencesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28039,7 +28586,7 @@ func (c *OrganizationsEnvironmentsResourcefilesGetCall) doRequest(alt string) (* var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -28047,21 +28594,19 @@ func (c *OrganizationsEnvironmentsResourcefilesGetCall) doRequest(alt string) (* } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - "type": c.type_, - "name": c.name, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.resourcefiles.get" call. -// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleApiHttpBody.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "apigee.organizations.environments.references.get" call. +// Exactly one of *GoogleCloudApigeeV1Reference or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsResourcefilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) { +func (c *OrganizationsEnvironmentsReferencesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -28080,7 +28625,7 @@ func (c *OrganizationsEnvironmentsResourcefilesGetCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleApiHttpBody{ + ret := &GoogleCloudApigeeV1Reference{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -28092,39 +28637,25 @@ func (c *OrganizationsEnvironmentsResourcefilesGetCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Gets the contents of a resource file. For more information about resource files, see [Resource files](https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}/{name}", + // "description": "Gets a Reference resource.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references/{referencesId}", // "httpMethod": "GET", - // "id": "apigee.organizations.environments.resourcefiles.get", + // "id": "apigee.organizations.environments.references.get", // "parameterOrder": [ - // "parent", - // "type", // "name" // ], // "parameters": { // "name": { - // "description": "Required. ID of the resource file. Must match the regular expression: [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "Required. Name of the environment in the following format: `organizations/{org}/environments/{env}`.", - // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "type": { - // "description": "Required. Resource file type. {{ resource_file_type }}", + // "description": "Required. The name of the Reference to get. Must be of the form `organizations/{org}/environments/{env}/references/{ref}`.", // "location": "path", + // "pattern": "^organizations/[^/]+/environments/[^/]+/references/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/resourcefiles/{type}/{name}", + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleApiHttpBody" + // "$ref": "GoogleCloudApigeeV1Reference" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -28133,105 +28664,88 @@ func (c *OrganizationsEnvironmentsResourcefilesGetCall) Do(opts ...googleapi.Cal } -// method id "apigee.organizations.environments.resourcefiles.list": - -type OrganizationsEnvironmentsResourcefilesListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} +// method id "apigee.organizations.environments.references.update": -// List: Lists all resource files, optionally filtering by type. For -// more information about resource files, see [Resource -// files](https://cloud.google.com/apigee/docs/api-platform/develop/resou -// rce-files). -func (r *OrganizationsEnvironmentsResourcefilesService) List(parent string) *OrganizationsEnvironmentsResourcefilesListCall { - c := &OrganizationsEnvironmentsResourcefilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c +type OrganizationsEnvironmentsReferencesUpdateCall struct { + s *Service + name string + googlecloudapigeev1reference *GoogleCloudApigeeV1Reference + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Type sets the optional parameter "type": Type of resource files to -// list. {{ resource_file_type }} -func (c *OrganizationsEnvironmentsResourcefilesListCall) Type(type_ string) *OrganizationsEnvironmentsResourcefilesListCall { - c.urlParams_.Set("type", type_) +// Update: Updates an existing Reference. Note that this operation has +// PUT semantics; it will replace the entirety of the existing Reference +// with the resource in the request body. +func (r *OrganizationsEnvironmentsReferencesService) Update(name string, googlecloudapigeev1reference *GoogleCloudApigeeV1Reference) *OrganizationsEnvironmentsReferencesUpdateCall { + c := &OrganizationsEnvironmentsReferencesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudapigeev1reference = googlecloudapigeev1reference return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsResourcefilesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesListCall { +func (c *OrganizationsEnvironmentsReferencesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsResourcefilesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsResourcefilesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesListCall { +func (c *OrganizationsEnvironmentsReferencesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesUpdateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsResourcefilesListCall) Header() http.Header { +func (c *OrganizationsEnvironmentsReferencesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsResourcefilesListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsReferencesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1reference) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("PUT", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.resourcefiles.list" call. -// Exactly one of *GoogleCloudApigeeV1ListEnvironmentResourcesResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudApigeeV1ListEnvironmentResourcesResponse.ServerResponse.He -// ader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *OrganizationsEnvironmentsResourcefilesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentResourcesResponse, error) { +// Do executes the "apigee.organizations.environments.references.update" call. +// Exactly one of *GoogleCloudApigeeV1Reference or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsEnvironmentsReferencesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -28250,7 +28764,7 @@ func (c *OrganizationsEnvironmentsResourcefilesListCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1ListEnvironmentResourcesResponse{ + ret := &GoogleCloudApigeeV1Reference{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -28262,30 +28776,28 @@ func (c *OrganizationsEnvironmentsResourcefilesListCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Lists all resource files, optionally filtering by type. For more information about resource files, see [Resource files](https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles", - // "httpMethod": "GET", - // "id": "apigee.organizations.environments.resourcefiles.list", + // "description": "Updates an existing Reference. Note that this operation has PUT semantics; it will replace the entirety of the existing Reference with the resource in the request body.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references/{referencesId}", + // "httpMethod": "PUT", + // "id": "apigee.organizations.environments.references.update", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. Name of the environment in which to list resource files in the following format: `organizations/{org}/environments/{env}`.", + // "name": { + // "description": "Required. The name of the Reference to update. Must be of the form `organizations/{org}/environments/{env}/references/{ref}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/references/[^/]+$", // "required": true, // "type": "string" - // }, - // "type": { - // "description": "Optional. Type of resource files to list. {{ resource_file_type }}", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+parent}/resourcefiles", + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudApigeeV1Reference" + // }, // "response": { - // "$ref": "GoogleCloudApigeeV1ListEnvironmentResourcesResponse" + // "$ref": "GoogleCloudApigeeV1Reference" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -28294,102 +28806,105 @@ func (c *OrganizationsEnvironmentsResourcefilesListCall) Do(opts ...googleapi.Ca } -// method id "apigee.organizations.environments.resourcefiles.listEnvironmentResources": +// method id "apigee.organizations.environments.resourcefiles.create": -type OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall struct { - s *Service - parent string - type_ string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsResourcefilesCreateCall struct { + s *Service + parent string + googleapihttpbody *GoogleApiHttpBody + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ListEnvironmentResources: Lists all resource files, optionally -// filtering by type. For more information about resource files, see -// [Resource +// Create: Creates a resource file. Specify the `Content-Type` as +// `application/octet-stream` or `multipart/form-data`. For more +// information about resource files, see [Resource // files](https://cloud.google.com/apigee/docs/api-platform/develop/resou // rce-files). -func (r *OrganizationsEnvironmentsResourcefilesService) ListEnvironmentResources(parent string, type_ string) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall { - c := &OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *OrganizationsEnvironmentsResourcefilesService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsResourcefilesCreateCall { + c := &OrganizationsEnvironmentsResourcefilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.type_ = type_ + c.googleapihttpbody = googleapihttpbody + return c +} + +// Name sets the optional parameter "name": Required. Name of the +// resource file. Must match the regular expression: +// [a-zA-Z0-9:/\\!@#$%^&{}\[\]()+\-=,.~'` ]{1,255} +func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Name(name string) *OrganizationsEnvironmentsResourcefilesCreateCall { + c.urlParams_.Set("name", name) + return c +} + +// Type sets the optional parameter "type": Required. Resource file +// type. {{ resource_file_type }} +func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Type(type_ string) *OrganizationsEnvironmentsResourcefilesCreateCall { + c.urlParams_.Set("type", type_) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall { +func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall { +func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Header() http.Header { +func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsResourcefilesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, - "type": c.type_, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.resourcefiles.listEnvironmentResources" call. -// Exactly one of *GoogleCloudApigeeV1ListEnvironmentResourcesResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudApigeeV1ListEnvironmentResourcesResponse.ServerResponse.He -// ader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentResourcesResponse, error) { +// Do executes the "apigee.organizations.environments.resourcefiles.create" call. +// Exactly one of *GoogleCloudApigeeV1ResourceFile or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1ResourceFile.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -28408,7 +28923,7 @@ func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Do( if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1ListEnvironmentResourcesResponse{ + ret := &GoogleCloudApigeeV1ResourceFile{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -28420,32 +28935,38 @@ func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Do( } return ret, nil // { - // "description": "Lists all resource files, optionally filtering by type. For more information about resource files, see [Resource files](https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}", - // "httpMethod": "GET", - // "id": "apigee.organizations.environments.resourcefiles.listEnvironmentResources", + // "description": "Creates a resource file. Specify the `Content-Type` as `application/octet-stream` or `multipart/form-data`. For more information about resource files, see [Resource files](https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles", + // "httpMethod": "POST", + // "id": "apigee.organizations.environments.resourcefiles.create", // "parameterOrder": [ - // "parent", - // "type" + // "parent" // ], // "parameters": { + // "name": { + // "description": "Required. Name of the resource file. Must match the regular expression: [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}", + // "location": "query", + // "type": "string" + // }, // "parent": { - // "description": "Required. Name of the environment in which to list resource files in the following format: `organizations/{org}/environments/{env}`.", + // "description": "Required. Name of the environment in which to create the resource file in the following format: `organizations/{org}/environments/{env}`.", // "location": "path", // "pattern": "^organizations/[^/]+/environments/[^/]+$", // "required": true, // "type": "string" // }, // "type": { - // "description": "Optional. Type of resource files to list. {{ resource_file_type }}", - // "location": "path", - // "required": true, + // "description": "Required. Resource file type. {{ resource_file_type }}", + // "location": "query", // "type": "string" // } // }, - // "path": "v1/{+parent}/resourcefiles/{type}", + // "path": "v1/{+parent}/resourcefiles", + // "request": { + // "$ref": "GoogleApiHttpBody" + // }, // "response": { - // "$ref": "GoogleCloudApigeeV1ListEnvironmentResourcesResponse" + // "$ref": "GoogleCloudApigeeV1ResourceFile" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -28454,37 +28975,34 @@ func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Do( } -// method id "apigee.organizations.environments.resourcefiles.update": +// method id "apigee.organizations.environments.resourcefiles.delete": -type OrganizationsEnvironmentsResourcefilesUpdateCall struct { - s *Service - parent string - type_ string - name string - googleapihttpbody *GoogleApiHttpBody - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsResourcefilesDeleteCall struct { + s *Service + parent string + type_ string + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Update: Updates a resource file. Specify the `Content-Type` as -// `application/octet-stream` or `multipart/form-data`. For more -// information about resource files, see [Resource +// Delete: Deletes a resource file. For more information about resource +// files, see [Resource // files](https://cloud.google.com/apigee/docs/api-platform/develop/resou // rce-files). -func (r *OrganizationsEnvironmentsResourcefilesService) Update(parent string, type_ string, name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsResourcefilesUpdateCall { - c := &OrganizationsEnvironmentsResourcefilesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *OrganizationsEnvironmentsResourcefilesService) Delete(parent string, type_ string, name string) *OrganizationsEnvironmentsResourcefilesDeleteCall { + c := &OrganizationsEnvironmentsResourcefilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent c.type_ = type_ c.name = name - c.googleapihttpbody = googleapihttpbody return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesUpdateCall { +func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -28492,38 +29010,33 @@ func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Fields(s ...googleapi // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesUpdateCall { +func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Header() http.Header { +func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -28536,14 +29049,14 @@ func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.resourcefiles.update" call. +// Do executes the "apigee.organizations.environments.resourcefiles.delete" call. // Exactly one of *GoogleCloudApigeeV1ResourceFile or error will be // non-nil. Any non-2xx status code is an error. Response headers are in // either *GoogleCloudApigeeV1ResourceFile.ServerResponse.Header or (if // a response was returned at all) in error.(*googleapi.Error).Header. // Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) { +func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -28574,10 +29087,10 @@ func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Updates a resource file. Specify the `Content-Type` as `application/octet-stream` or `multipart/form-data`. For more information about resource files, see [Resource files](https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).", + // "description": "Deletes a resource file. For more information about resource files, see [Resource files](https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).", // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}/{name}", - // "httpMethod": "PUT", - // "id": "apigee.organizations.environments.resourcefiles.update", + // "httpMethod": "DELETE", + // "id": "apigee.organizations.environments.resourcefiles.delete", // "parameterOrder": [ // "parent", // "type", @@ -28585,7 +29098,7 @@ func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Do(opts ...googleapi. // ], // "parameters": { // "name": { - // "description": "Required. ID of the resource file to update. Must match the regular expression: [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}", + // "description": "Required. ID of the resource file to delete. Must match the regular expression: [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}", // "location": "path", // "required": true, // "type": "string" @@ -28605,9 +29118,6 @@ func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Do(opts ...googleapi. // } // }, // "path": "v1/{+parent}/resourcefiles/{type}/{name}", - // "request": { - // "$ref": "GoogleApiHttpBody" - // }, // "response": { // "$ref": "GoogleCloudApigeeV1ResourceFile" // }, @@ -28618,28 +29128,35 @@ func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Do(opts ...googleapi. } -// method id "apigee.organizations.environments.sharedflows.deployments.list": +// method id "apigee.organizations.environments.resourcefiles.get": -type OrganizationsEnvironmentsSharedflowsDeploymentsListCall struct { +type OrganizationsEnvironmentsResourcefilesGetCall struct { s *Service parent string + type_ string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists all deployments of a shared flow in an environment. -func (r *OrganizationsEnvironmentsSharedflowsDeploymentsService) List(parent string) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall { - c := &OrganizationsEnvironmentsSharedflowsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Get: Gets the contents of a resource file. For more information about +// resource files, see [Resource +// files](https://cloud.google.com/apigee/docs/api-platform/develop/resou +// rce-files). +func (r *OrganizationsEnvironmentsResourcefilesService) Get(parent string, type_ string, name string) *OrganizationsEnvironmentsResourcefilesGetCall { + c := &OrganizationsEnvironmentsResourcefilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent + c.type_ = type_ + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall { +func (c *OrganizationsEnvironmentsResourcefilesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -28649,7 +29166,7 @@ func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Fields(s ...go // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall { +func (c *OrganizationsEnvironmentsResourcefilesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesGetCall { c.ifNoneMatch_ = entityTag return c } @@ -28657,23 +29174,23 @@ func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) IfNoneMatch(en // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall { +func (c *OrganizationsEnvironmentsResourcefilesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Header() http.Header { +func (c *OrganizationsEnvironmentsResourcefilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsResourcefilesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28684,7 +29201,7 @@ func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) doRequest(alt var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -28693,20 +29210,20 @@ func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) doRequest(alt req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, + "type": c.type_, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.sharedflows.deployments.list" call. -// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) { +// Do executes the "apigee.organizations.environments.resourcefiles.get" call. +// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleApiHttpBody.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsEnvironmentsResourcefilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -28725,7 +29242,7 @@ func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Do(opts ...goo if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1ListDeploymentsResponse{ + ret := &GoogleApiHttpBody{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -28737,25 +29254,39 @@ func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Do(opts ...goo } return ret, nil // { - // "description": "Lists all deployments of a shared flow in an environment.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/deployments", + // "description": "Gets the contents of a resource file. For more information about resource files, see [Resource files](https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}/{name}", // "httpMethod": "GET", - // "id": "apigee.organizations.environments.sharedflows.deployments.list", + // "id": "apigee.organizations.environments.resourcefiles.get", // "parameterOrder": [ - // "parent" + // "parent", + // "type", + // "name" // ], // "parameters": { + // "name": { + // "description": "Required. ID of the resource file. Must match the regular expression: [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}", + // "location": "path", + // "required": true, + // "type": "string" + // }, // "parent": { - // "description": "Required. Name representing a shared flow in an environment in the following format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}`", + // "description": "Required. Name of the environment in the following format: `organizations/{org}/environments/{env}`.", + // "location": "path", + // "pattern": "^organizations/[^/]+/environments/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "type": { + // "description": "Required. Resource file type. {{ resource_file_type }}", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/deployments", + // "path": "v1/{+parent}/resourcefiles/{type}/{name}", // "response": { - // "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse" + // "$ref": "GoogleApiHttpBody" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -28764,102 +29295,105 @@ func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Do(opts ...goo } -// method id "apigee.organizations.environments.sharedflows.revisions.deploy": +// method id "apigee.organizations.environments.resourcefiles.list": -type OrganizationsEnvironmentsSharedflowsRevisionsDeployCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsResourcefilesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Deploy: Deploys a revision of a shared flow. If another revision of -// the same shared flow is currently deployed, set the `override` -// parameter to `true` to have this revision replace the currently -// deployed revision. You cannot use a shared flow until it has been -// deployed to an environment. For a request path -// `organizations/{org}/environments/{env}/sharedflows/{sf}/revisions/{re -// v}/deployments`, two permissions are required: * -// `apigee.deployments.create` on the resource -// `organizations/{org}/environments/{env}` * -// `apigee.sharedflowrevisions.deploy` on the resource -// `organizations/{org}/sharedflows/{sf}/revisions/{rev}` -func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) Deploy(name string) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall { - c := &OrganizationsEnvironmentsSharedflowsRevisionsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// List: Lists all resource files, optionally filtering by type. For +// more information about resource files, see [Resource +// files](https://cloud.google.com/apigee/docs/api-platform/develop/resou +// rce-files). +func (r *OrganizationsEnvironmentsResourcefilesService) List(parent string) *OrganizationsEnvironmentsResourcefilesListCall { + c := &OrganizationsEnvironmentsResourcefilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } -// Override sets the optional parameter "override": Flag that specifies -// whether to force the deployment of the new revision over the -// currently deployed revision by overriding conflict checks. If an -// existing shared flow revision is deployed, to ensure seamless -// deployment with no downtime, set this parameter to `true`. In this -// case, hybrid deploys the new revision fully before undeploying the -// existing revision. If set to `false`, you must undeploy the existing -// revision before deploying the new revision. -func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Override(override bool) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall { - c.urlParams_.Set("override", fmt.Sprint(override)) +// Type sets the optional parameter "type": Type of resource files to +// list. {{ resource_file_type }} +func (c *OrganizationsEnvironmentsResourcefilesListCall) Type(type_ string) *OrganizationsEnvironmentsResourcefilesListCall { + c.urlParams_.Set("type", type_) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall { +func (c *OrganizationsEnvironmentsResourcefilesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsEnvironmentsResourcefilesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall { +func (c *OrganizationsEnvironmentsResourcefilesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Header() http.Header { +func (c *OrganizationsEnvironmentsResourcefilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsResourcefilesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.sharedflows.revisions.deploy" call. -// Exactly one of *GoogleCloudApigeeV1Deployment or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) { +// Do executes the "apigee.organizations.environments.resourcefiles.list" call. +// Exactly one of *GoogleCloudApigeeV1ListEnvironmentResourcesResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudApigeeV1ListEnvironmentResourcesResponse.ServerResponse.He +// ader or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsEnvironmentsResourcefilesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentResourcesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -28878,7 +29412,7 @@ func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Do(opts ...goo if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Deployment{ + ret := &GoogleCloudApigeeV1ListEnvironmentResourcesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -28890,30 +29424,1431 @@ func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Do(opts ...goo } return ret, nil // { - // "description": "Deploys a revision of a shared flow. If another revision of the same shared flow is currently deployed, set the `override` parameter to `true` to have this revision replace the currently deployed revision. You cannot use a shared flow until it has been deployed to an environment. For a request path `organizations/{org}/environments/{env}/sharedflows/{sf}/revisions/{rev}/deployments`, two permissions are required: * `apigee.deployments.create` on the resource `organizations/{org}/environments/{env}` * `apigee.sharedflowrevisions.deploy` on the resource `organizations/{org}/sharedflows/{sf}/revisions/{rev}`", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments", - // "httpMethod": "POST", - // "id": "apigee.organizations.environments.sharedflows.revisions.deploy", + // "description": "Lists all resource files, optionally filtering by type. For more information about resource files, see [Resource files](https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles", + // "httpMethod": "GET", + // "id": "apigee.organizations.environments.resourcefiles.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. Name of the shared flow revision to deploy in the following format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/revisions/{rev}`", - // "location": "path", + // "parent": { + // "description": "Required. Name of the environment in which to list resource files in the following format: `organizations/{org}/environments/{env}`.", + // "location": "path", + // "pattern": "^organizations/[^/]+/environments/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "type": { + // "description": "Optional. Type of resource files to list. {{ resource_file_type }}", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/resourcefiles", + // "response": { + // "$ref": "GoogleCloudApigeeV1ListEnvironmentResourcesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "apigee.organizations.environments.resourcefiles.listEnvironmentResources": + +type OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall struct { + s *Service + parent string + type_ string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// ListEnvironmentResources: Lists all resource files, optionally +// filtering by type. For more information about resource files, see +// [Resource +// files](https://cloud.google.com/apigee/docs/api-platform/develop/resou +// rce-files). +func (r *OrganizationsEnvironmentsResourcefilesService) ListEnvironmentResources(parent string, type_ string) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall { + c := &OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.type_ = type_ + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + "type": c.type_, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "apigee.organizations.environments.resourcefiles.listEnvironmentResources" call. +// Exactly one of *GoogleCloudApigeeV1ListEnvironmentResourcesResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudApigeeV1ListEnvironmentResourcesResponse.ServerResponse.He +// ader or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentResourcesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudApigeeV1ListEnvironmentResourcesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists all resource files, optionally filtering by type. For more information about resource files, see [Resource files](https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}", + // "httpMethod": "GET", + // "id": "apigee.organizations.environments.resourcefiles.listEnvironmentResources", + // "parameterOrder": [ + // "parent", + // "type" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Name of the environment in which to list resource files in the following format: `organizations/{org}/environments/{env}`.", + // "location": "path", + // "pattern": "^organizations/[^/]+/environments/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "type": { + // "description": "Optional. Type of resource files to list. {{ resource_file_type }}", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/resourcefiles/{type}", + // "response": { + // "$ref": "GoogleCloudApigeeV1ListEnvironmentResourcesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "apigee.organizations.environments.resourcefiles.update": + +type OrganizationsEnvironmentsResourcefilesUpdateCall struct { + s *Service + parent string + type_ string + name string + googleapihttpbody *GoogleApiHttpBody + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Update: Updates a resource file. Specify the `Content-Type` as +// `application/octet-stream` or `multipart/form-data`. For more +// information about resource files, see [Resource +// files](https://cloud.google.com/apigee/docs/api-platform/develop/resou +// rce-files). +func (r *OrganizationsEnvironmentsResourcefilesService) Update(parent string, type_ string, name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsResourcefilesUpdateCall { + c := &OrganizationsEnvironmentsResourcefilesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.type_ = type_ + c.name = name + c.googleapihttpbody = googleapihttpbody + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesUpdateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesUpdateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PUT", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + "type": c.type_, + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "apigee.organizations.environments.resourcefiles.update" call. +// Exactly one of *GoogleCloudApigeeV1ResourceFile or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1ResourceFile.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudApigeeV1ResourceFile{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a resource file. Specify the `Content-Type` as `application/octet-stream` or `multipart/form-data`. For more information about resource files, see [Resource files](https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}/{name}", + // "httpMethod": "PUT", + // "id": "apigee.organizations.environments.resourcefiles.update", + // "parameterOrder": [ + // "parent", + // "type", + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. ID of the resource file to update. Must match the regular expression: [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "parent": { + // "description": "Required. Name of the environment in the following format: `organizations/{org}/environments/{env}`.", + // "location": "path", + // "pattern": "^organizations/[^/]+/environments/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "type": { + // "description": "Required. Resource file type. {{ resource_file_type }}", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/resourcefiles/{type}/{name}", + // "request": { + // "$ref": "GoogleApiHttpBody" + // }, + // "response": { + // "$ref": "GoogleCloudApigeeV1ResourceFile" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "apigee.organizations.environments.sharedflows.deployments.list": + +type OrganizationsEnvironmentsSharedflowsDeploymentsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all deployments of a shared flow in an environment. +func (r *OrganizationsEnvironmentsSharedflowsDeploymentsService) List(parent string) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall { + c := &OrganizationsEnvironmentsSharedflowsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "apigee.organizations.environments.sharedflows.deployments.list" call. +// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudApigeeV1ListDeploymentsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists all deployments of a shared flow in an environment.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/deployments", + // "httpMethod": "GET", + // "id": "apigee.organizations.environments.sharedflows.deployments.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Name representing a shared flow in an environment in the following format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}`", + // "location": "path", + // "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/deployments", + // "response": { + // "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "apigee.organizations.environments.sharedflows.revisions.deploy": + +type OrganizationsEnvironmentsSharedflowsRevisionsDeployCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Deploy: Deploys a revision of a shared flow. If another revision of +// the same shared flow is currently deployed, set the `override` +// parameter to `true` to have this revision replace the currently +// deployed revision. You cannot use a shared flow until it has been +// deployed to an environment. For a request path +// `organizations/{org}/environments/{env}/sharedflows/{sf}/revisions/{re +// v}/deployments`, two permissions are required: * +// `apigee.deployments.create` on the resource +// `organizations/{org}/environments/{env}` * +// `apigee.sharedflowrevisions.deploy` on the resource +// `organizations/{org}/sharedflows/{sf}/revisions/{rev}` +func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) Deploy(name string) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall { + c := &OrganizationsEnvironmentsSharedflowsRevisionsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Override sets the optional parameter "override": Flag that specifies +// whether to force the deployment of the new revision over the +// currently deployed revision by overriding conflict checks. If an +// existing shared flow revision is deployed, to ensure seamless +// deployment with no downtime, set this parameter to `true`. In this +// case, hybrid deploys the new revision fully before undeploying the +// existing revision. If set to `false`, you must undeploy the existing +// revision before deploying the new revision. +func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Override(override bool) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall { + c.urlParams_.Set("override", fmt.Sprint(override)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "apigee.organizations.environments.sharedflows.revisions.deploy" call. +// Exactly one of *GoogleCloudApigeeV1Deployment or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudApigeeV1Deployment{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deploys a revision of a shared flow. If another revision of the same shared flow is currently deployed, set the `override` parameter to `true` to have this revision replace the currently deployed revision. You cannot use a shared flow until it has been deployed to an environment. For a request path `organizations/{org}/environments/{env}/sharedflows/{sf}/revisions/{rev}/deployments`, two permissions are required: * `apigee.deployments.create` on the resource `organizations/{org}/environments/{env}` * `apigee.sharedflowrevisions.deploy` on the resource `organizations/{org}/sharedflows/{sf}/revisions/{rev}`", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments", + // "httpMethod": "POST", + // "id": "apigee.organizations.environments.sharedflows.revisions.deploy", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the shared flow revision to deploy in the following format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/revisions/{rev}`", + // "location": "path", + // "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+/revisions/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "override": { + // "description": "Flag that specifies whether to force the deployment of the new revision over the currently deployed revision by overriding conflict checks. If an existing shared flow revision is deployed, to ensure seamless deployment with no downtime, set this parameter to `true`. In this case, hybrid deploys the new revision fully before undeploying the existing revision. If set to `false`, you must undeploy the existing revision before deploying the new revision.", + // "location": "query", + // "type": "boolean" + // } + // }, + // "path": "v1/{+name}/deployments", + // "response": { + // "$ref": "GoogleCloudApigeeV1Deployment" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "apigee.organizations.environments.sharedflows.revisions.getDeployments": + +type OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetDeployments: Gets the deployment of a shared flow revision and +// actual state reported by runtime pods. +func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) GetDeployments(name string) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall { + c := &OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "apigee.organizations.environments.sharedflows.revisions.getDeployments" call. +// Exactly one of *GoogleCloudApigeeV1Deployment or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudApigeeV1Deployment{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the deployment of a shared flow revision and actual state reported by runtime pods.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments", + // "httpMethod": "GET", + // "id": "apigee.organizations.environments.sharedflows.revisions.getDeployments", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name representing a shared flow in an environment in the following format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/revisions/{rev}`", + // "location": "path", + // "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+/revisions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}/deployments", + // "response": { + // "$ref": "GoogleCloudApigeeV1Deployment" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "apigee.organizations.environments.sharedflows.revisions.undeploy": + +type OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Undeploy: Undeploys a shared flow revision from an environment. For a +// request path +// `organizations/{org}/environments/{env}/sharedflows/{sf}/revisions/{re +// v}/deployments`, two permissions are required: * +// `apigee.deployments.delete` on the resource +// `organizations/{org}/environments/{env}` * +// `apigee.sharedflowrevisions.undeploy` on the resource +// `organizations/{org}/sharedflows/{sf}/revisions/{rev}` +func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) Undeploy(name string) *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall { + c := &OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "apigee.organizations.environments.sharedflows.revisions.undeploy" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Undeploys a shared flow revision from an environment. For a request path `organizations/{org}/environments/{env}/sharedflows/{sf}/revisions/{rev}/deployments`, two permissions are required: * `apigee.deployments.delete` on the resource `organizations/{org}/environments/{env}` * `apigee.sharedflowrevisions.undeploy` on the resource `organizations/{org}/sharedflows/{sf}/revisions/{rev}`", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments", + // "httpMethod": "DELETE", + // "id": "apigee.organizations.environments.sharedflows.revisions.undeploy", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the shared flow revision to undeploy in the following format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/revisions/{rev}`", + // "location": "path", // "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+/revisions/[^/]+$", // "required": true, // "type": "string" + // } + // }, + // "path": "v1/{+name}/deployments", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "apigee.organizations.environments.stats.get": + +type OrganizationsEnvironmentsStatsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Retrieve metrics grouped by dimensions. The types of metrics you +// can retrieve include traffic, message counts, API call latency, +// response size, and cache hits and counts. Dimensions let you view +// metrics in meaningful groups. The stats api does accept dimensions as +// path params. The dimensions are optional in which case the metrics +// are computed on the entire data for the given timerange. +func (r *OrganizationsEnvironmentsStatsService) Get(name string) *OrganizationsEnvironmentsStatsGetCall { + c := &OrganizationsEnvironmentsStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Accuracy sets the optional parameter "accuracy": Legacy field: not +// used anymore. This field is present to support UI calls which still +// use this parameter. +func (c *OrganizationsEnvironmentsStatsGetCall) Accuracy(accuracy string) *OrganizationsEnvironmentsStatsGetCall { + c.urlParams_.Set("accuracy", accuracy) + return c +} + +// AggTable sets the optional parameter "aggTable": If customers want to +// query custom aggregate tables, then this parameter can be used to +// specify the table name. If this parameter is skipped, then Edge Query +// will try to retrieve the data from fact tables which will be +// expensive. +func (c *OrganizationsEnvironmentsStatsGetCall) AggTable(aggTable string) *OrganizationsEnvironmentsStatsGetCall { + c.urlParams_.Set("aggTable", aggTable) + return c +} + +// Filter sets the optional parameter "filter": Enables drill-down on +// specific dimension values +func (c *OrganizationsEnvironmentsStatsGetCall) Filter(filter string) *OrganizationsEnvironmentsStatsGetCall { + c.urlParams_.Set("filter", filter) + return c +} + +// Limit sets the optional parameter "limit": This parameter is used to +// limit the number of result items. Default and the max value is 14400. +func (c *OrganizationsEnvironmentsStatsGetCall) Limit(limit string) *OrganizationsEnvironmentsStatsGetCall { + c.urlParams_.Set("limit", limit) + return c +} + +// Offset sets the optional parameter "offset": Use offset with limit to +// enable pagination of results. For example, to display results 11-20, +// set limit to '10' and offset to '10'. +func (c *OrganizationsEnvironmentsStatsGetCall) Offset(offset string) *OrganizationsEnvironmentsStatsGetCall { + c.urlParams_.Set("offset", offset) + return c +} + +// Realtime sets the optional parameter "realtime": Legacy field: not +// used anymore. +func (c *OrganizationsEnvironmentsStatsGetCall) Realtime(realtime bool) *OrganizationsEnvironmentsStatsGetCall { + c.urlParams_.Set("realtime", fmt.Sprint(realtime)) + return c +} + +// Select sets the optional parameter "select": The select parameter +// contains a comma separated list of metrics. E.g. +// sum(message_count),sum(error_count) +func (c *OrganizationsEnvironmentsStatsGetCall) Select(select_ string) *OrganizationsEnvironmentsStatsGetCall { + c.urlParams_.Set("select", select_) + return c +} + +// Sonar sets the optional parameter "sonar": This parameter routes the +// query to api monitoring service for last hour. +func (c *OrganizationsEnvironmentsStatsGetCall) Sonar(sonar bool) *OrganizationsEnvironmentsStatsGetCall { + c.urlParams_.Set("sonar", fmt.Sprint(sonar)) + return c +} + +// Sort sets the optional parameter "sort": This parameter specifies if +// the sort order should be ascending or descending Supported values are +// DESC and ASC. +func (c *OrganizationsEnvironmentsStatsGetCall) Sort(sort string) *OrganizationsEnvironmentsStatsGetCall { + c.urlParams_.Set("sort", sort) + return c +} + +// Sortby sets the optional parameter "sortby": Comma separated list of +// columns to sort the final result. +func (c *OrganizationsEnvironmentsStatsGetCall) Sortby(sortby string) *OrganizationsEnvironmentsStatsGetCall { + c.urlParams_.Set("sortby", sortby) + return c +} + +// TimeRange sets the optional parameter "timeRange": Time interval for +// the interactive query. Time range is specified as start~end E.g. +// 04/15/2017 00:00~05/15/2017 23:59 +func (c *OrganizationsEnvironmentsStatsGetCall) TimeRange(timeRange string) *OrganizationsEnvironmentsStatsGetCall { + c.urlParams_.Set("timeRange", timeRange) + return c +} + +// TimeUnit sets the optional parameter "timeUnit": A value of second, +// minute, hour, day, week, month. Time Unit specifies the granularity +// of metrics returned. +func (c *OrganizationsEnvironmentsStatsGetCall) TimeUnit(timeUnit string) *OrganizationsEnvironmentsStatsGetCall { + c.urlParams_.Set("timeUnit", timeUnit) + return c +} + +// Topk sets the optional parameter "topk": Take 'top k' results from +// results, for example, to return the top 5 results 'topk=5'. +func (c *OrganizationsEnvironmentsStatsGetCall) Topk(topk string) *OrganizationsEnvironmentsStatsGetCall { + c.urlParams_.Set("topk", topk) + return c +} + +// TsAscending sets the optional parameter "tsAscending": Lists +// timestamps in ascending order if set to true. Recommend setting this +// value to true if you are using sortby with sort=DESC. +func (c *OrganizationsEnvironmentsStatsGetCall) TsAscending(tsAscending bool) *OrganizationsEnvironmentsStatsGetCall { + c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending)) + return c +} + +// Tzo sets the optional parameter "tzo": This parameters contains the +// timezone offset value. +func (c *OrganizationsEnvironmentsStatsGetCall) Tzo(tzo string) *OrganizationsEnvironmentsStatsGetCall { + c.urlParams_.Set("tzo", tzo) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsEnvironmentsStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsStatsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsEnvironmentsStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsStatsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsEnvironmentsStatsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsStatsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsEnvironmentsStatsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsEnvironmentsStatsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "apigee.organizations.environments.stats.get" call. +// Exactly one of *GoogleCloudApigeeV1Stats or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudApigeeV1Stats.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsEnvironmentsStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Stats, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudApigeeV1Stats{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Retrieve metrics grouped by dimensions. The types of metrics you can retrieve include traffic, message counts, API call latency, response size, and cache hits and counts. Dimensions let you view metrics in meaningful groups. The stats api does accept dimensions as path params. The dimensions are optional in which case the metrics are computed on the entire data for the given timerange.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/stats/{statsId}", + // "httpMethod": "GET", + // "id": "apigee.organizations.environments.stats.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "accuracy": { + // "description": "Legacy field: not used anymore. This field is present to support UI calls which still use this parameter.", + // "location": "query", + // "type": "string" + // }, + // "aggTable": { + // "description": "If customers want to query custom aggregate tables, then this parameter can be used to specify the table name. If this parameter is skipped, then Edge Query will try to retrieve the data from fact tables which will be expensive.", + // "location": "query", + // "type": "string" + // }, + // "filter": { + // "description": "Enables drill-down on specific dimension values", + // "location": "query", + // "type": "string" + // }, + // "limit": { + // "description": "This parameter is used to limit the number of result items. Default and the max value is 14400.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "Required. The resource name for which the interactive query will be executed. Must be of the form `organizations/{organization_id}/environments/{environment_id/stats/{dimensions}` Dimensions let you view metrics in meaningful groupings. E.g. apiproxy, target_host. The value of dimensions should be comma separated list as shown below `organizations/{org}/environments/{env}/stats/apiproxy,request_verb`", + // "location": "path", + // "pattern": "^organizations/[^/]+/environments/[^/]+/stats/.*$", + // "required": true, + // "type": "string" + // }, + // "offset": { + // "description": "Use offset with limit to enable pagination of results. For example, to display results 11-20, set limit to '10' and offset to '10'.", + // "location": "query", + // "type": "string" + // }, + // "realtime": { + // "description": "Legacy field: not used anymore.", + // "location": "query", + // "type": "boolean" + // }, + // "select": { + // "description": "The select parameter contains a comma separated list of metrics. E.g. sum(message_count),sum(error_count)", + // "location": "query", + // "type": "string" + // }, + // "sonar": { + // "description": "This parameter routes the query to api monitoring service for last hour.", + // "location": "query", + // "type": "boolean" + // }, + // "sort": { + // "description": "This parameter specifies if the sort order should be ascending or descending Supported values are DESC and ASC.", + // "location": "query", + // "type": "string" + // }, + // "sortby": { + // "description": "Comma separated list of columns to sort the final result.", + // "location": "query", + // "type": "string" + // }, + // "timeRange": { + // "description": "Time interval for the interactive query. Time range is specified as start~end E.g. 04/15/2017 00:00~05/15/2017 23:59", + // "location": "query", + // "type": "string" + // }, + // "timeUnit": { + // "description": "A value of second, minute, hour, day, week, month. Time Unit specifies the granularity of metrics returned.", + // "location": "query", + // "type": "string" + // }, + // "topk": { + // "description": "Take 'top k' results from results, for example, to return the top 5 results 'topk=5'.", + // "location": "query", + // "type": "string" + // }, + // "tsAscending": { + // "description": "Lists timestamps in ascending order if set to true. Recommend setting this value to true if you are using sortby with sort=DESC.", + // "location": "query", + // "type": "boolean" + // }, + // "tzo": { + // "description": "This parameters contains the timezone offset value.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudApigeeV1Stats" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "apigee.organizations.environments.targetservers.create": + +type OrganizationsEnvironmentsTargetserversCreateCall struct { + s *Service + parent string + googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a TargetServer in the specified environment. +func (r *OrganizationsEnvironmentsTargetserversService) Create(parent string, googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer) *OrganizationsEnvironmentsTargetserversCreateCall { + c := &OrganizationsEnvironmentsTargetserversCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudapigeev1targetserver = googlecloudapigeev1targetserver + return c +} + +// Name sets the optional parameter "name": The ID to give the +// TargetServer. This will overwrite the value in TargetServer. +func (c *OrganizationsEnvironmentsTargetserversCreateCall) Name(name string) *OrganizationsEnvironmentsTargetserversCreateCall { + c.urlParams_.Set("name", name) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsEnvironmentsTargetserversCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsEnvironmentsTargetserversCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsEnvironmentsTargetserversCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsEnvironmentsTargetserversCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1targetserver) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/targetservers") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "apigee.organizations.environments.targetservers.create" call. +// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsEnvironmentsTargetserversCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudApigeeV1TargetServer{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a TargetServer in the specified environment.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers", + // "httpMethod": "POST", + // "id": "apigee.organizations.environments.targetservers.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "name": { + // "description": "Optional. The ID to give the TargetServer. This will overwrite the value in TargetServer.", + // "location": "query", + // "type": "string" // }, - // "override": { - // "description": "Flag that specifies whether to force the deployment of the new revision over the currently deployed revision by overriding conflict checks. If an existing shared flow revision is deployed, to ensure seamless deployment with no downtime, set this parameter to `true`. In this case, hybrid deploys the new revision fully before undeploying the existing revision. If set to `false`, you must undeploy the existing revision before deploying the new revision.", - // "location": "query", - // "type": "boolean" + // "parent": { + // "description": "Required. The parent environment name under which the TargetServer will be created. Must be of the form `organizations/{org}/environments/{env}`.", + // "location": "path", + // "pattern": "^organizations/[^/]+/environments/[^/]+$", + // "required": true, + // "type": "string" // } // }, - // "path": "v1/{+name}/deployments", + // "path": "v1/{+parent}/targetservers", + // "request": { + // "$ref": "GoogleCloudApigeeV1TargetServer" + // }, // "response": { - // "$ref": "GoogleCloudApigeeV1Deployment" + // "$ref": "GoogleCloudApigeeV1TargetServer" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -28922,9 +30857,140 @@ func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Do(opts ...goo } -// method id "apigee.organizations.environments.sharedflows.revisions.getDeployments": +// method id "apigee.organizations.environments.targetservers.delete": -type OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall struct { +type OrganizationsEnvironmentsTargetserversDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a TargetServer from an environment. Returns the +// deleted TargetServer resource. +func (r *OrganizationsEnvironmentsTargetserversService) Delete(name string) *OrganizationsEnvironmentsTargetserversDeleteCall { + c := &OrganizationsEnvironmentsTargetserversDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsEnvironmentsTargetserversDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "apigee.organizations.environments.targetservers.delete" call. +// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudApigeeV1TargetServer{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a TargetServer from an environment. Returns the deleted TargetServer resource.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers/{targetserversId}", + // "httpMethod": "DELETE", + // "id": "apigee.organizations.environments.targetservers.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the TargetServer to delete. Must be of the form `organizations/{org}/environments/{env}/targetservers/{target_server_id}`.", + // "location": "path", + // "pattern": "^organizations/[^/]+/environments/[^/]+/targetservers/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudApigeeV1TargetServer" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "apigee.organizations.environments.targetservers.get": + +type OrganizationsEnvironmentsTargetserversGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -28933,10 +30999,9 @@ type OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall struct { header_ http.Header } -// GetDeployments: Gets the deployment of a shared flow revision and -// actual state reported by runtime pods. -func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) GetDeployments(name string) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall { - c := &OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Get: Gets a TargetServer resource. +func (r *OrganizationsEnvironmentsTargetserversService) Get(name string) *OrganizationsEnvironmentsTargetserversGetCall { + c := &OrganizationsEnvironmentsTargetserversGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -28944,7 +31009,7 @@ func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) GetDeployments(na // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall { +func (c *OrganizationsEnvironmentsTargetserversGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -28954,7 +31019,7 @@ func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Fields // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall { +func (c *OrganizationsEnvironmentsTargetserversGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsTargetserversGetCall { c.ifNoneMatch_ = entityTag return c } @@ -28962,23 +31027,23 @@ func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) IfNone // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall { +func (c *OrganizationsEnvironmentsTargetserversGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Header() http.Header { +func (c *OrganizationsEnvironmentsTargetserversGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsTargetserversGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28989,7 +31054,7 @@ func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) doRequ var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -29002,14 +31067,14 @@ func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) doRequ return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.sharedflows.revisions.getDeployments" call. -// Exactly one of *GoogleCloudApigeeV1Deployment or error will be +// Do executes the "apigee.organizations.environments.targetservers.get" call. +// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was +// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) { +func (c *OrganizationsEnvironmentsTargetserversGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -29028,7 +31093,7 @@ func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Do(opt if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Deployment{ + ret := &GoogleCloudApigeeV1TargetServer{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -29040,25 +31105,25 @@ func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Do(opt } return ret, nil // { - // "description": "Gets the deployment of a shared flow revision and actual state reported by runtime pods.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments", + // "description": "Gets a TargetServer resource.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers/{targetserversId}", // "httpMethod": "GET", - // "id": "apigee.organizations.environments.sharedflows.revisions.getDeployments", + // "id": "apigee.organizations.environments.targetservers.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Name representing a shared flow in an environment in the following format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/revisions/{rev}`", + // "description": "Required. The name of the TargetServer to get. Must be of the form `organizations/{org}/environments/{env}/targetservers/{target_server_id}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+/revisions/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/targetservers/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}/deployments", + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudApigeeV1Deployment" + // "$ref": "GoogleCloudApigeeV1TargetServer" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -29067,34 +31132,31 @@ func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Do(opt } -// method id "apigee.organizations.environments.sharedflows.revisions.undeploy": +// method id "apigee.organizations.environments.targetservers.update": -type OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsEnvironmentsTargetserversUpdateCall struct { + s *Service + name string + googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Undeploy: Undeploys a shared flow revision from an environment. For a -// request path -// `organizations/{org}/environments/{env}/sharedflows/{sf}/revisions/{re -// v}/deployments`, two permissions are required: * -// `apigee.deployments.delete` on the resource -// `organizations/{org}/environments/{env}` * -// `apigee.sharedflowrevisions.undeploy` on the resource -// `organizations/{org}/sharedflows/{sf}/revisions/{rev}` -func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) Undeploy(name string) *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall { - c := &OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Update: Updates an existing TargetServer. Note that this operation +// has PUT semantics; it will replace the entirety of the existing +// TargetServer with the resource in the request body. +func (r *OrganizationsEnvironmentsTargetserversService) Update(name string, googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer) *OrganizationsEnvironmentsTargetserversUpdateCall { + c := &OrganizationsEnvironmentsTargetserversUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudapigeev1targetserver = googlecloudapigeev1targetserver return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall { +func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -29102,33 +31164,38 @@ func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Fields(s ... // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall { +func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversUpdateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Header() http.Header { +func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsEnvironmentsTargetserversUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1targetserver) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("PUT", urls, body) if err != nil { return nil, err } @@ -29139,14 +31206,14 @@ func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) doRequest(al return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.sharedflows.revisions.undeploy" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was +// Do executes the "apigee.organizations.environments.targetservers.update" call. +// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -29165,7 +31232,7 @@ func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Do(opts ...g if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudApigeeV1TargetServer{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -29177,25 +31244,28 @@ func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Do(opts ...g } return ret, nil // { - // "description": "Undeploys a shared flow revision from an environment. For a request path `organizations/{org}/environments/{env}/sharedflows/{sf}/revisions/{rev}/deployments`, two permissions are required: * `apigee.deployments.delete` on the resource `organizations/{org}/environments/{env}` * `apigee.sharedflowrevisions.undeploy` on the resource `organizations/{org}/sharedflows/{sf}/revisions/{rev}`", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments", - // "httpMethod": "DELETE", - // "id": "apigee.organizations.environments.sharedflows.revisions.undeploy", + // "description": "Updates an existing TargetServer. Note that this operation has PUT semantics; it will replace the entirety of the existing TargetServer with the resource in the request body.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers/{targetserversId}", + // "httpMethod": "PUT", + // "id": "apigee.organizations.environments.targetservers.update", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Name of the shared flow revision to undeploy in the following format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/revisions/{rev}`", + // "description": "Required. The name of the TargetServer to replace. Must be of the form `organizations/{org}/environments/{env}/targetservers/{target_server_id}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+/revisions/[^/]+$", + // "pattern": "^organizations/[^/]+/environments/[^/]+/targetservers/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}/deployments", + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudApigeeV1TargetServer" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudApigeeV1TargetServer" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -29204,148 +31274,322 @@ func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Do(opts ...g } -// method id "apigee.organizations.environments.stats.get": +// method id "apigee.organizations.hostQueries.create": -type OrganizationsEnvironmentsStatsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsHostQueriesCreateCall struct { + s *Service + parent string + googlecloudapigeev1query *GoogleCloudApigeeV1Query + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Retrieve metrics grouped by dimensions. The types of metrics you -// can retrieve include traffic, message counts, API call latency, -// response size, and cache hits and counts. Dimensions let you view -// metrics in meaningful groups. The stats api does accept dimensions as -// path params. The dimensions are optional in which case the metrics -// are computed on the entire data for the given timerange. -func (r *OrganizationsEnvironmentsStatsService) Get(name string) *OrganizationsEnvironmentsStatsGetCall { - c := &OrganizationsEnvironmentsStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// Create: Submit a query at host level to be processed in the +// background. If the submission of the query succeeds, the API returns +// a 201 status and an ID that refer to the query. In addition to the +// HTTP status 201, the `state` of "enqueued" means that the request +// succeeded. +func (r *OrganizationsHostQueriesService) Create(parent string, googlecloudapigeev1query *GoogleCloudApigeeV1Query) *OrganizationsHostQueriesCreateCall { + c := &OrganizationsHostQueriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudapigeev1query = googlecloudapigeev1query return c } -// Accuracy sets the optional parameter "accuracy": Legacy field: not -// used anymore. This field is present to support UI calls which still -// use this parameter. -func (c *OrganizationsEnvironmentsStatsGetCall) Accuracy(accuracy string) *OrganizationsEnvironmentsStatsGetCall { - c.urlParams_.Set("accuracy", accuracy) +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsHostQueriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// AggTable sets the optional parameter "aggTable": If customers want to -// query custom aggregate tables, then this parameter can be used to -// specify the table name. If this parameter is skipped, then Edge Query -// will try to retrieve the data from fact tables which will be -// expensive. -func (c *OrganizationsEnvironmentsStatsGetCall) AggTable(aggTable string) *OrganizationsEnvironmentsStatsGetCall { - c.urlParams_.Set("aggTable", aggTable) +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsHostQueriesCreateCall) Context(ctx context.Context) *OrganizationsHostQueriesCreateCall { + c.ctx_ = ctx return c } -// Filter sets the optional parameter "filter": Enables drill-down on -// specific dimension values -func (c *OrganizationsEnvironmentsStatsGetCall) Filter(filter string) *OrganizationsEnvironmentsStatsGetCall { - c.urlParams_.Set("filter", filter) - return c +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsHostQueriesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ } -// Limit sets the optional parameter "limit": This parameter is used to -// limit the number of result items. Default and the max value is 14400. -func (c *OrganizationsEnvironmentsStatsGetCall) Limit(limit string) *OrganizationsEnvironmentsStatsGetCall { - c.urlParams_.Set("limit", limit) - return c +func (c *OrganizationsHostQueriesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1query) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/hostQueries") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Offset sets the optional parameter "offset": Use offset with limit to -// enable pagination of results. For example, to display results 11-20, -// set limit to '10' and offset to '10'. -func (c *OrganizationsEnvironmentsStatsGetCall) Offset(offset string) *OrganizationsEnvironmentsStatsGetCall { - c.urlParams_.Set("offset", offset) - return c +// Do executes the "apigee.organizations.hostQueries.create" call. +// Exactly one of *GoogleCloudApigeeV1AsyncQuery or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsHostQueriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudApigeeV1AsyncQuery{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Submit a query at host level to be processed in the background. If the submission of the query succeeds, the API returns a 201 status and an ID that refer to the query. In addition to the HTTP status 201, the `state` of \"enqueued\" means that the request succeeded.", + // "flatPath": "v1/organizations/{organizationsId}/hostQueries", + // "httpMethod": "POST", + // "id": "apigee.organizations.hostQueries.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The parent resource name. Must be of the form `organizations/{org}`.", + // "location": "path", + // "pattern": "^organizations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/hostQueries", + // "request": { + // "$ref": "GoogleCloudApigeeV1Query" + // }, + // "response": { + // "$ref": "GoogleCloudApigeeV1AsyncQuery" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + } -// Realtime sets the optional parameter "realtime": Legacy field: not -// used anymore. -func (c *OrganizationsEnvironmentsStatsGetCall) Realtime(realtime bool) *OrganizationsEnvironmentsStatsGetCall { - c.urlParams_.Set("realtime", fmt.Sprint(realtime)) - return c +// method id "apigee.organizations.hostQueries.get": + +type OrganizationsHostQueriesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Select sets the optional parameter "select": The select parameter -// contains a comma separated list of metrics. E.g. -// sum(message_count),sum(error_count) -func (c *OrganizationsEnvironmentsStatsGetCall) Select(select_ string) *OrganizationsEnvironmentsStatsGetCall { - c.urlParams_.Set("select", select_) +// Get: Get status of a query submitted at host level. If the query is +// still in progress, the `state` is set to "running" After the query +// has completed successfully, `state` is set to "completed" +func (r *OrganizationsHostQueriesService) Get(name string) *OrganizationsHostQueriesGetCall { + c := &OrganizationsHostQueriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// Sonar sets the optional parameter "sonar": This parameter routes the -// query to api monitoring service for last hour. -func (c *OrganizationsEnvironmentsStatsGetCall) Sonar(sonar bool) *OrganizationsEnvironmentsStatsGetCall { - c.urlParams_.Set("sonar", fmt.Sprint(sonar)) +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsHostQueriesGetCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Sort sets the optional parameter "sort": This parameter specifies if -// the sort order should be ascending or descending Supported values are -// DESC and ASC. -func (c *OrganizationsEnvironmentsStatsGetCall) Sort(sort string) *OrganizationsEnvironmentsStatsGetCall { - c.urlParams_.Set("sort", sort) +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsHostQueriesGetCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesGetCall { + c.ifNoneMatch_ = entityTag return c } -// Sortby sets the optional parameter "sortby": Comma separated list of -// columns to sort the final result. -func (c *OrganizationsEnvironmentsStatsGetCall) Sortby(sortby string) *OrganizationsEnvironmentsStatsGetCall { - c.urlParams_.Set("sortby", sortby) +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsHostQueriesGetCall) Context(ctx context.Context) *OrganizationsHostQueriesGetCall { + c.ctx_ = ctx return c } -// TimeRange sets the optional parameter "timeRange": Time interval for -// the interactive query. Time range is specified as start~end E.g. -// 04/15/2017 00:00~05/15/2017 23:59 -func (c *OrganizationsEnvironmentsStatsGetCall) TimeRange(timeRange string) *OrganizationsEnvironmentsStatsGetCall { - c.urlParams_.Set("timeRange", timeRange) - return c +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsHostQueriesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ } -// TimeUnit sets the optional parameter "timeUnit": A value of second, -// minute, hour, day, week, month. Time Unit specifies the granularity -// of metrics returned. -func (c *OrganizationsEnvironmentsStatsGetCall) TimeUnit(timeUnit string) *OrganizationsEnvironmentsStatsGetCall { - c.urlParams_.Set("timeUnit", timeUnit) - return c +func (c *OrganizationsHostQueriesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Topk sets the optional parameter "topk": Take 'top k' results from -// results, for example, to return the top 5 results 'topk=5'. -func (c *OrganizationsEnvironmentsStatsGetCall) Topk(topk string) *OrganizationsEnvironmentsStatsGetCall { - c.urlParams_.Set("topk", topk) - return c +// Do executes the "apigee.organizations.hostQueries.get" call. +// Exactly one of *GoogleCloudApigeeV1AsyncQuery or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsHostQueriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudApigeeV1AsyncQuery{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Get status of a query submitted at host level. If the query is still in progress, the `state` is set to \"running\" After the query has completed successfully, `state` is set to \"completed\"", + // "flatPath": "v1/organizations/{organizationsId}/hostQueries/{hostQueriesId}", + // "httpMethod": "GET", + // "id": "apigee.organizations.hostQueries.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the asynchronous query to get. Must be of the form `organizations/{org}/queries/{queryId}`.", + // "location": "path", + // "pattern": "^organizations/[^/]+/hostQueries/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudApigeeV1AsyncQuery" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + } -// TsAscending sets the optional parameter "tsAscending": Lists -// timestamps in ascending order if set to true. Recommend setting this -// value to true if you are using sortby with sort=DESC. -func (c *OrganizationsEnvironmentsStatsGetCall) TsAscending(tsAscending bool) *OrganizationsEnvironmentsStatsGetCall { - c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending)) - return c +// method id "apigee.organizations.hostQueries.getResult": + +type OrganizationsHostQueriesGetResultCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Tzo sets the optional parameter "tzo": This parameters contains the -// timezone offset value. -func (c *OrganizationsEnvironmentsStatsGetCall) Tzo(tzo string) *OrganizationsEnvironmentsStatsGetCall { - c.urlParams_.Set("tzo", tzo) +// GetResult: After the query is completed, use this API to retrieve the +// results. If the request succeeds, and there is a non-zero result set, +// the result is downloaded to the client as a zipped JSON file. The +// name of the downloaded file will be: OfflineQueryResult-.zip Example: +// `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip` +func (r *OrganizationsHostQueriesService) GetResult(name string) *OrganizationsHostQueriesGetResultCall { + c := &OrganizationsHostQueriesGetResultCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsStatsGetCall { +func (c *OrganizationsHostQueriesGetResultCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesGetResultCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -29355,7 +31599,7 @@ func (c *OrganizationsEnvironmentsStatsGetCall) Fields(s ...googleapi.Field) *Or // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsStatsGetCall { +func (c *OrganizationsHostQueriesGetResultCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesGetResultCall { c.ifNoneMatch_ = entityTag return c } @@ -29363,23 +31607,23 @@ func (c *OrganizationsEnvironmentsStatsGetCall) IfNoneMatch(entityTag string) *O // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsStatsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsStatsGetCall { +func (c *OrganizationsHostQueriesGetResultCall) Context(ctx context.Context) *OrganizationsHostQueriesGetResultCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsStatsGetCall) Header() http.Header { +func (c *OrganizationsHostQueriesGetResultCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsStatsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsHostQueriesGetResultCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29403,14 +31647,14 @@ func (c *OrganizationsEnvironmentsStatsGetCall) doRequest(alt string) (*http.Res return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.stats.get" call. -// Exactly one of *GoogleCloudApigeeV1Stats or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudApigeeV1Stats.ServerResponse.Header or (if a response was +// Do executes the "apigee.organizations.hostQueries.getResult" call. +// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleApiHttpBody.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Stats, error) { +func (c *OrganizationsHostQueriesGetResultCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -29429,7 +31673,7 @@ func (c *OrganizationsEnvironmentsStatsGetCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1Stats{ + ret := &GoogleApiHttpBody{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -29441,100 +31685,25 @@ func (c *OrganizationsEnvironmentsStatsGetCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Retrieve metrics grouped by dimensions. The types of metrics you can retrieve include traffic, message counts, API call latency, response size, and cache hits and counts. Dimensions let you view metrics in meaningful groups. The stats api does accept dimensions as path params. The dimensions are optional in which case the metrics are computed on the entire data for the given timerange.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/stats/{statsId}", + // "description": "After the query is completed, use this API to retrieve the results. If the request succeeds, and there is a non-zero result set, the result is downloaded to the client as a zipped JSON file. The name of the downloaded file will be: OfflineQueryResult-.zip Example: `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip`", + // "flatPath": "v1/organizations/{organizationsId}/hostQueries/{hostQueriesId}/result", // "httpMethod": "GET", - // "id": "apigee.organizations.environments.stats.get", + // "id": "apigee.organizations.hostQueries.getResult", // "parameterOrder": [ // "name" // ], // "parameters": { - // "accuracy": { - // "description": "Legacy field: not used anymore. This field is present to support UI calls which still use this parameter.", - // "location": "query", - // "type": "string" - // }, - // "aggTable": { - // "description": "If customers want to query custom aggregate tables, then this parameter can be used to specify the table name. If this parameter is skipped, then Edge Query will try to retrieve the data from fact tables which will be expensive.", - // "location": "query", - // "type": "string" - // }, - // "filter": { - // "description": "Enables drill-down on specific dimension values", - // "location": "query", - // "type": "string" - // }, - // "limit": { - // "description": "This parameter is used to limit the number of result items. Default and the max value is 14400.", - // "location": "query", - // "type": "string" - // }, // "name": { - // "description": "Required. The resource name for which the interactive query will be executed. Must be of the form `organizations/{organization_id}/environments/{environment_id/stats/{dimensions}` Dimensions let you view metrics in meaningful groupings. E.g. apiproxy, target_host. The value of dimensions should be comma separated list as shown below `organizations/{org}/environments/{env}/stats/apiproxy,request_verb`", + // "description": "Required. Name of the asynchronous query result to get. Must be of the form `organizations/{org}/queries/{queryId}/result`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/stats/.*$", + // "pattern": "^organizations/[^/]+/hostQueries/[^/]+/result$", // "required": true, // "type": "string" - // }, - // "offset": { - // "description": "Use offset with limit to enable pagination of results. For example, to display results 11-20, set limit to '10' and offset to '10'.", - // "location": "query", - // "type": "string" - // }, - // "realtime": { - // "description": "Legacy field: not used anymore.", - // "location": "query", - // "type": "boolean" - // }, - // "select": { - // "description": "The select parameter contains a comma separated list of metrics. E.g. sum(message_count),sum(error_count)", - // "location": "query", - // "type": "string" - // }, - // "sonar": { - // "description": "This parameter routes the query to api monitoring service for last hour.", - // "location": "query", - // "type": "boolean" - // }, - // "sort": { - // "description": "This parameter specifies if the sort order should be ascending or descending Supported values are DESC and ASC.", - // "location": "query", - // "type": "string" - // }, - // "sortby": { - // "description": "Comma separated list of columns to sort the final result.", - // "location": "query", - // "type": "string" - // }, - // "timeRange": { - // "description": "Time interval for the interactive query. Time range is specified as start~end E.g. 04/15/2017 00:00~05/15/2017 23:59", - // "location": "query", - // "type": "string" - // }, - // "timeUnit": { - // "description": "A value of second, minute, hour, day, week, month. Time Unit specifies the granularity of metrics returned.", - // "location": "query", - // "type": "string" - // }, - // "topk": { - // "description": "Take 'top k' results from results, for example, to return the top 5 results 'topk=5'.", - // "location": "query", - // "type": "string" - // }, - // "tsAscending": { - // "description": "Lists timestamps in ascending order if set to true. Recommend setting this value to true if you are using sortby with sort=DESC.", - // "location": "query", - // "type": "boolean" - // }, - // "tzo": { - // "description": "This parameters contains the timezone offset value.", - // "location": "query", - // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudApigeeV1Stats" + // "$ref": "GoogleApiHttpBody" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -29543,93 +31712,94 @@ func (c *OrganizationsEnvironmentsStatsGetCall) Do(opts ...googleapi.CallOption) } -// method id "apigee.organizations.environments.targetservers.create": - -type OrganizationsEnvironmentsTargetserversCreateCall struct { - s *Service - parent string - googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} +// method id "apigee.organizations.hostQueries.getResultView": -// Create: Creates a TargetServer in the specified environment. -func (r *OrganizationsEnvironmentsTargetserversService) Create(parent string, googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer) *OrganizationsEnvironmentsTargetserversCreateCall { - c := &OrganizationsEnvironmentsTargetserversCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudapigeev1targetserver = googlecloudapigeev1targetserver - return c +type OrganizationsHostQueriesGetResultViewCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Name sets the optional parameter "name": The ID to give the -// TargetServer. This will overwrite the value in TargetServer. -func (c *OrganizationsEnvironmentsTargetserversCreateCall) Name(name string) *OrganizationsEnvironmentsTargetserversCreateCall { - c.urlParams_.Set("name", name) +// GetResultView: +func (r *OrganizationsHostQueriesService) GetResultView(name string) *OrganizationsHostQueriesGetResultViewCall { + c := &OrganizationsHostQueriesGetResultViewCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsTargetserversCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversCreateCall { +func (c *OrganizationsHostQueriesGetResultViewCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesGetResultViewCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsHostQueriesGetResultViewCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesGetResultViewCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsTargetserversCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversCreateCall { +func (c *OrganizationsHostQueriesGetResultViewCall) Context(ctx context.Context) *OrganizationsHostQueriesGetResultViewCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsTargetserversCreateCall) Header() http.Header { +func (c *OrganizationsHostQueriesGetResultViewCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsTargetserversCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsHostQueriesGetResultViewCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1targetserver) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/targetservers") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.targetservers.create" call. -// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if +// Do executes the "apigee.organizations.hostQueries.getResultView" call. +// Exactly one of *GoogleCloudApigeeV1AsyncQueryResultView or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudApigeeV1AsyncQueryResultView.ServerResponse.Header or (if // a response was returned at all) in error.(*googleapi.Error).Header. // Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsTargetserversCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) { +func (c *OrganizationsHostQueriesGetResultViewCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQueryResultView, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -29648,7 +31818,7 @@ func (c *OrganizationsEnvironmentsTargetserversCreateCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1TargetServer{ + ret := &GoogleCloudApigeeV1AsyncQueryResultView{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -29660,33 +31830,25 @@ func (c *OrganizationsEnvironmentsTargetserversCreateCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Creates a TargetServer in the specified environment.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers", - // "httpMethod": "POST", - // "id": "apigee.organizations.environments.targetservers.create", + // "description": "", + // "flatPath": "v1/organizations/{organizationsId}/hostQueries/{hostQueriesId}/resultView", + // "httpMethod": "GET", + // "id": "apigee.organizations.hostQueries.getResultView", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { // "name": { - // "description": "Optional. The ID to give the TargetServer. This will overwrite the value in TargetServer.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent environment name under which the TargetServer will be created. Must be of the form `organizations/{org}/environments/{env}`.", + // "description": "Required. Name of the asynchronous query result view to get. Must be of the form `organizations/{org}/queries/{queryId}/resultView`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+$", + // "pattern": "^organizations/[^/]+/hostQueries/[^/]+/resultView$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/targetservers", - // "request": { - // "$ref": "GoogleCloudApigeeV1TargetServer" - // }, + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudApigeeV1TargetServer" + // "$ref": "GoogleCloudApigeeV1AsyncQueryResultView" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -29695,80 +31857,147 @@ func (c *OrganizationsEnvironmentsTargetserversCreateCall) Do(opts ...googleapi. } -// method id "apigee.organizations.environments.targetservers.delete": +// method id "apigee.organizations.hostQueries.list": -type OrganizationsEnvironmentsTargetserversDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsHostQueriesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a TargetServer from an environment. Returns the -// deleted TargetServer resource. -func (r *OrganizationsEnvironmentsTargetserversService) Delete(name string) *OrganizationsEnvironmentsTargetserversDeleteCall { - c := &OrganizationsEnvironmentsTargetserversDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// List: Return a list of Asynchronous Queries at host level. +func (r *OrganizationsHostQueriesService) List(parent string) *OrganizationsHostQueriesListCall { + c := &OrganizationsHostQueriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Dataset sets the optional parameter "dataset": Filter response list +// by dataset. Example: `api`, `mint` +func (c *OrganizationsHostQueriesListCall) Dataset(dataset string) *OrganizationsHostQueriesListCall { + c.urlParams_.Set("dataset", dataset) + return c +} + +// EnvgroupHostname sets the optional parameter "envgroupHostname": +// Required. Filter response list by hostname. +func (c *OrganizationsHostQueriesListCall) EnvgroupHostname(envgroupHostname string) *OrganizationsHostQueriesListCall { + c.urlParams_.Set("envgroupHostname", envgroupHostname) + return c +} + +// From sets the optional parameter "from": Filter response list by +// returning asynchronous queries that created after this date time. +// Time must be in ISO date-time format like '2011-12-03T10:15:30Z'. +func (c *OrganizationsHostQueriesListCall) From(from string) *OrganizationsHostQueriesListCall { + c.urlParams_.Set("from", from) + return c +} + +// InclQueriesWithoutReport sets the optional parameter +// "inclQueriesWithoutReport": Flag to include asynchronous queries that +// don't have a report denifition. +func (c *OrganizationsHostQueriesListCall) InclQueriesWithoutReport(inclQueriesWithoutReport string) *OrganizationsHostQueriesListCall { + c.urlParams_.Set("inclQueriesWithoutReport", inclQueriesWithoutReport) + return c +} + +// Status sets the optional parameter "status": Filter response list by +// asynchronous query status. +func (c *OrganizationsHostQueriesListCall) Status(status string) *OrganizationsHostQueriesListCall { + c.urlParams_.Set("status", status) + return c +} + +// SubmittedBy sets the optional parameter "submittedBy": Filter +// response list by user who submitted queries. +func (c *OrganizationsHostQueriesListCall) SubmittedBy(submittedBy string) *OrganizationsHostQueriesListCall { + c.urlParams_.Set("submittedBy", submittedBy) + return c +} + +// To sets the optional parameter "to": Filter response list by +// returning asynchronous queries that created before this date time. +// Time must be in ISO date-time format like '2011-12-03T10:16:30Z'. +func (c *OrganizationsHostQueriesListCall) To(to string) *OrganizationsHostQueriesListCall { + c.urlParams_.Set("to", to) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversDeleteCall { +func (c *OrganizationsHostQueriesListCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsHostQueriesListCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversDeleteCall { +func (c *OrganizationsHostQueriesListCall) Context(ctx context.Context) *OrganizationsHostQueriesListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Header() http.Header { +func (c *OrganizationsHostQueriesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsTargetserversDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsHostQueriesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/hostQueries") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.targetservers.delete" call. -// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) { +// Do executes the "apigee.organizations.hostQueries.list" call. +// Exactly one of *GoogleCloudApigeeV1ListAsyncQueriesResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudApigeeV1ListAsyncQueriesResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsHostQueriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAsyncQueriesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -29787,7 +32016,7 @@ func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1TargetServer{ + ret := &GoogleCloudApigeeV1ListAsyncQueriesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -29799,25 +32028,60 @@ func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Deletes a TargetServer from an environment. Returns the deleted TargetServer resource.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers/{targetserversId}", - // "httpMethod": "DELETE", - // "id": "apigee.organizations.environments.targetservers.delete", + // "description": "Return a list of Asynchronous Queries at host level.", + // "flatPath": "v1/organizations/{organizationsId}/hostQueries", + // "httpMethod": "GET", + // "id": "apigee.organizations.hostQueries.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the TargetServer to delete. Must be of the form `organizations/{org}/environments/{env}/targetservers/{target_server_id}`.", + // "dataset": { + // "description": "Filter response list by dataset. Example: `api`, `mint`", + // "location": "query", + // "type": "string" + // }, + // "envgroupHostname": { + // "description": "Required. Filter response list by hostname.", + // "location": "query", + // "type": "string" + // }, + // "from": { + // "description": "Filter response list by returning asynchronous queries that created after this date time. Time must be in ISO date-time format like '2011-12-03T10:15:30Z'.", + // "location": "query", + // "type": "string" + // }, + // "inclQueriesWithoutReport": { + // "description": "Flag to include asynchronous queries that don't have a report denifition.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent resource name. Must be of the form `organizations/{org}`.", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/targetservers/[^/]+$", + // "pattern": "^organizations/[^/]+$", // "required": true, // "type": "string" + // }, + // "status": { + // "description": "Filter response list by asynchronous query status.", + // "location": "query", + // "type": "string" + // }, + // "submittedBy": { + // "description": "Filter response list by user who submitted queries.", + // "location": "query", + // "type": "string" + // }, + // "to": { + // "description": "Filter response list by returning asynchronous queries that created before this date time. Time must be in ISO date-time format like '2011-12-03T10:16:30Z'.", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/hostQueries", // "response": { - // "$ref": "GoogleCloudApigeeV1TargetServer" + // "$ref": "GoogleCloudApigeeV1ListAsyncQueriesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -29826,9 +32090,9 @@ func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Do(opts ...googleapi. } -// method id "apigee.organizations.environments.targetservers.get": +// method id "apigee.organizations.hostStats.get": -type OrganizationsEnvironmentsTargetserversGetCall struct { +type OrganizationsHostStatsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -29837,17 +32101,127 @@ type OrganizationsEnvironmentsTargetserversGetCall struct { header_ http.Header } -// Get: Gets a TargetServer resource. -func (r *OrganizationsEnvironmentsTargetserversService) Get(name string) *OrganizationsEnvironmentsTargetserversGetCall { - c := &OrganizationsEnvironmentsTargetserversGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Get: Retrieve metrics grouped by dimensions in host level. The types +// of metrics you can retrieve include traffic, message counts, API call +// latency, response size, and cache hits and counts. Dimensions let you +// view metrics in meaningful groups. The stats api does accept +// dimensions as path params. The dimensions are optional in which case +// the metrics are computed on the entire data for the given timerange. +func (r *OrganizationsHostStatsService) Get(name string) *OrganizationsHostStatsGetCall { + c := &OrganizationsHostStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Accuracy sets the optional parameter "accuracy": Legacy field: not +// used anymore. +func (c *OrganizationsHostStatsGetCall) Accuracy(accuracy string) *OrganizationsHostStatsGetCall { + c.urlParams_.Set("accuracy", accuracy) + return c +} + +// EnvgroupHostname sets the optional parameter "envgroupHostname": +// Required. The hostname for which the interactive query will be +// executed. +func (c *OrganizationsHostStatsGetCall) EnvgroupHostname(envgroupHostname string) *OrganizationsHostStatsGetCall { + c.urlParams_.Set("envgroupHostname", envgroupHostname) + return c +} + +// Filter sets the optional parameter "filter": Enables drill-down on +// specific dimension values. +func (c *OrganizationsHostStatsGetCall) Filter(filter string) *OrganizationsHostStatsGetCall { + c.urlParams_.Set("filter", filter) + return c +} + +// Limit sets the optional parameter "limit": This parameter is used to +// limit the number of result items. Default and the max value is 14400. +func (c *OrganizationsHostStatsGetCall) Limit(limit string) *OrganizationsHostStatsGetCall { + c.urlParams_.Set("limit", limit) + return c +} + +// Offset sets the optional parameter "offset": Use offset with limit to +// enable pagination of results. For example, to display results 11-20, +// set limit to '10' and offset to '10'. +func (c *OrganizationsHostStatsGetCall) Offset(offset string) *OrganizationsHostStatsGetCall { + c.urlParams_.Set("offset", offset) + return c +} + +// Realtime sets the optional parameter "realtime": Legacy field: not +// used anymore. +func (c *OrganizationsHostStatsGetCall) Realtime(realtime bool) *OrganizationsHostStatsGetCall { + c.urlParams_.Set("realtime", fmt.Sprint(realtime)) + return c +} + +// Select sets the optional parameter "select": The select parameter +// contains a comma separated list of metrics. E.g. +// sum(message_count),sum(error_count) +func (c *OrganizationsHostStatsGetCall) Select(select_ string) *OrganizationsHostStatsGetCall { + c.urlParams_.Set("select", select_) + return c +} + +// Sort sets the optional parameter "sort": This parameter specifies if +// the sort order should be ascending or descending Supported values are +// DESC and ASC. +func (c *OrganizationsHostStatsGetCall) Sort(sort string) *OrganizationsHostStatsGetCall { + c.urlParams_.Set("sort", sort) + return c +} + +// Sortby sets the optional parameter "sortby": Comma separated list of +// columns to sort the final result. +func (c *OrganizationsHostStatsGetCall) Sortby(sortby string) *OrganizationsHostStatsGetCall { + c.urlParams_.Set("sortby", sortby) + return c +} + +// TimeRange sets the optional parameter "timeRange": Time interval for +// the interactive query. Time range is specified as start~end E.g. +// 04/15/2017 00:00~05/15/2017 23:59 +func (c *OrganizationsHostStatsGetCall) TimeRange(timeRange string) *OrganizationsHostStatsGetCall { + c.urlParams_.Set("timeRange", timeRange) + return c +} + +// TimeUnit sets the optional parameter "timeUnit": A value of second, +// minute, hour, day, week, month. Time Unit specifies the granularity +// of metrics returned. +func (c *OrganizationsHostStatsGetCall) TimeUnit(timeUnit string) *OrganizationsHostStatsGetCall { + c.urlParams_.Set("timeUnit", timeUnit) + return c +} + +// Topk sets the optional parameter "topk": Take 'top k' results from +// results, for example, to return the top 5 results 'topk=5'. +func (c *OrganizationsHostStatsGetCall) Topk(topk string) *OrganizationsHostStatsGetCall { + c.urlParams_.Set("topk", topk) + return c +} + +// TsAscending sets the optional parameter "tsAscending": Lists +// timestamps in ascending order if set to true. Recommend setting this +// value to true if you are using sortby with sort=DESC. +func (c *OrganizationsHostStatsGetCall) TsAscending(tsAscending bool) *OrganizationsHostStatsGetCall { + c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending)) + return c +} + +// Tzo sets the optional parameter "tzo": This parameters contains the +// timezone offset value. +func (c *OrganizationsHostStatsGetCall) Tzo(tzo string) *OrganizationsHostStatsGetCall { + c.urlParams_.Set("tzo", tzo) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsEnvironmentsTargetserversGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversGetCall { +func (c *OrganizationsHostStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsHostStatsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -29857,7 +32231,7 @@ func (c *OrganizationsEnvironmentsTargetserversGetCall) Fields(s ...googleapi.Fi // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OrganizationsEnvironmentsTargetserversGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsTargetserversGetCall { +func (c *OrganizationsHostStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsHostStatsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -29865,23 +32239,23 @@ func (c *OrganizationsEnvironmentsTargetserversGetCall) IfNoneMatch(entityTag st // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsEnvironmentsTargetserversGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversGetCall { +func (c *OrganizationsHostStatsGetCall) Context(ctx context.Context) *OrganizationsHostStatsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsEnvironmentsTargetserversGetCall) Header() http.Header { +func (c *OrganizationsHostStatsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsEnvironmentsTargetserversGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsHostStatsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29905,14 +32279,14 @@ func (c *OrganizationsEnvironmentsTargetserversGetCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "apigee.organizations.environments.targetservers.get" call. -// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was +// Do executes the "apigee.organizations.hostStats.get" call. +// Exactly one of *GoogleCloudApigeeV1Stats or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudApigeeV1Stats.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsTargetserversGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) { +func (c *OrganizationsHostStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Stats, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -29931,7 +32305,7 @@ func (c *OrganizationsEnvironmentsTargetserversGetCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudApigeeV1TargetServer{ + ret := &GoogleCloudApigeeV1Stats{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -29943,167 +32317,95 @@ func (c *OrganizationsEnvironmentsTargetserversGetCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Gets a TargetServer resource.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers/{targetserversId}", + // "description": "Retrieve metrics grouped by dimensions in host level. The types of metrics you can retrieve include traffic, message counts, API call latency, response size, and cache hits and counts. Dimensions let you view metrics in meaningful groups. The stats api does accept dimensions as path params. The dimensions are optional in which case the metrics are computed on the entire data for the given timerange.", + // "flatPath": "v1/organizations/{organizationsId}/hostStats/{hostStatsId}", // "httpMethod": "GET", - // "id": "apigee.organizations.environments.targetservers.get", + // "id": "apigee.organizations.hostStats.get", // "parameterOrder": [ // "name" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the TargetServer to get. Must be of the form `organizations/{org}/environments/{env}/targetservers/{target_server_id}`.", - // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/targetservers/[^/]+$", - // "required": true, + // "accuracy": { + // "description": "Legacy field: not used anymore.", + // "location": "query", // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleCloudApigeeV1TargetServer" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigee.organizations.environments.targetservers.update": - -type OrganizationsEnvironmentsTargetserversUpdateCall struct { - s *Service - name string - googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Update: Updates an existing TargetServer. Note that this operation -// has PUT semantics; it will replace the entirety of the existing -// TargetServer with the resource in the request body. -func (r *OrganizationsEnvironmentsTargetserversService) Update(name string, googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer) *OrganizationsEnvironmentsTargetserversUpdateCall { - c := &OrganizationsEnvironmentsTargetserversUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudapigeev1targetserver = googlecloudapigeev1targetserver - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversUpdateCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversUpdateCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *OrganizationsEnvironmentsTargetserversUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1targetserver) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "apigee.organizations.environments.targetservers.update" call. -// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, &googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - } - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - ret := &GoogleCloudApigeeV1TargetServer{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Updates an existing TargetServer. Note that this operation has PUT semantics; it will replace the entirety of the existing TargetServer with the resource in the request body.", - // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers/{targetserversId}", - // "httpMethod": "PUT", - // "id": "apigee.organizations.environments.targetservers.update", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { + // }, + // "envgroupHostname": { + // "description": "Required. The hostname for which the interactive query will be executed.", + // "location": "query", + // "type": "string" + // }, + // "filter": { + // "description": "Enables drill-down on specific dimension values.", + // "location": "query", + // "type": "string" + // }, + // "limit": { + // "description": "This parameter is used to limit the number of result items. Default and the max value is 14400.", + // "location": "query", + // "type": "string" + // }, // "name": { - // "description": "Required. The name of the TargetServer to replace. Must be of the form `organizations/{org}/environments/{env}/targetservers/{target_server_id}`.", + // "description": "Required. The resource name for which the interactive query will be executed. Must be of the form `organizations/{organization_id}/stats/{dimensions}`. Dimensions let you view metrics in meaningful groupings. E.g. apiproxy, target_host. The value of dimensions should be comma separated list as shown below `organizations/{org}/stats/apiproxy,request_verb`", // "location": "path", - // "pattern": "^organizations/[^/]+/environments/[^/]+/targetservers/[^/]+$", + // "pattern": "^organizations/[^/]+/hostStats/.*$", // "required": true, // "type": "string" + // }, + // "offset": { + // "description": "Use offset with limit to enable pagination of results. For example, to display results 11-20, set limit to '10' and offset to '10'.", + // "location": "query", + // "type": "string" + // }, + // "realtime": { + // "description": "Legacy field: not used anymore.", + // "location": "query", + // "type": "boolean" + // }, + // "select": { + // "description": "The select parameter contains a comma separated list of metrics. E.g. sum(message_count),sum(error_count)", + // "location": "query", + // "type": "string" + // }, + // "sort": { + // "description": "This parameter specifies if the sort order should be ascending or descending Supported values are DESC and ASC.", + // "location": "query", + // "type": "string" + // }, + // "sortby": { + // "description": "Comma separated list of columns to sort the final result.", + // "location": "query", + // "type": "string" + // }, + // "timeRange": { + // "description": "Time interval for the interactive query. Time range is specified as start~end E.g. 04/15/2017 00:00~05/15/2017 23:59", + // "location": "query", + // "type": "string" + // }, + // "timeUnit": { + // "description": "A value of second, minute, hour, day, week, month. Time Unit specifies the granularity of metrics returned.", + // "location": "query", + // "type": "string" + // }, + // "topk": { + // "description": "Take 'top k' results from results, for example, to return the top 5 results 'topk=5'.", + // "location": "query", + // "type": "string" + // }, + // "tsAscending": { + // "description": "Lists timestamps in ascending order if set to true. Recommend setting this value to true if you are using sortby with sort=DESC.", + // "location": "query", + // "type": "boolean" + // }, + // "tzo": { + // "description": "This parameters contains the timezone offset value.", + // "location": "query", + // "type": "string" // } // }, // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudApigeeV1TargetServer" - // }, // "response": { - // "$ref": "GoogleCloudApigeeV1TargetServer" + // "$ref": "GoogleCloudApigeeV1Stats" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -30160,7 +32462,7 @@ func (c *OrganizationsInstancesCreateCall) Header() http.Header { func (c *OrganizationsInstancesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30300,7 +32602,7 @@ func (c *OrganizationsInstancesDeleteCall) Header() http.Header { func (c *OrganizationsInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30368,7 +32670,7 @@ func (c *OrganizationsInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*Go // ], // "parameters": { // "name": { - // "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instance/{instance}`.", + // "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`.", // "location": "path", // "pattern": "^organizations/[^/]+/instances/[^/]+$", // "required": true, @@ -30442,7 +32744,7 @@ func (c *OrganizationsInstancesGetCall) Header() http.Header { func (c *OrganizationsInstancesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30602,7 +32904,7 @@ func (c *OrganizationsInstancesListCall) Header() http.Header { func (c *OrganizationsInstancesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30771,7 +33073,7 @@ func (c *OrganizationsInstancesReportStatusCall) Header() http.Header { func (c *OrganizationsInstancesReportStatusCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30914,7 +33216,7 @@ func (c *OrganizationsInstancesAttachmentsCreateCall) Header() http.Header { func (c *OrganizationsInstancesAttachmentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31053,7 +33355,7 @@ func (c *OrganizationsInstancesAttachmentsDeleteCall) Header() http.Header { func (c *OrganizationsInstancesAttachmentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31194,7 +33496,7 @@ func (c *OrganizationsInstancesAttachmentsGetCall) Header() http.Header { func (c *OrganizationsInstancesAttachmentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31355,7 +33657,7 @@ func (c *OrganizationsInstancesAttachmentsListCall) Header() http.Header { func (c *OrganizationsInstancesAttachmentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31478,6 +33780,291 @@ func (c *OrganizationsInstancesAttachmentsListCall) Pages(ctx context.Context, f } } +// method id "apigee.organizations.instances.canaryevaluations.create": + +type OrganizationsInstancesCanaryevaluationsCreateCall struct { + s *Service + parent string + googlecloudapigeev1canaryevaluation *GoogleCloudApigeeV1CanaryEvaluation + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new canary evaluation for an organization. +func (r *OrganizationsInstancesCanaryevaluationsService) Create(parent string, googlecloudapigeev1canaryevaluation *GoogleCloudApigeeV1CanaryEvaluation) *OrganizationsInstancesCanaryevaluationsCreateCall { + c := &OrganizationsInstancesCanaryevaluationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudapigeev1canaryevaluation = googlecloudapigeev1canaryevaluation + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesCanaryevaluationsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Context(ctx context.Context) *OrganizationsInstancesCanaryevaluationsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsInstancesCanaryevaluationsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1canaryevaluation) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/canaryevaluations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "apigee.organizations.instances.canaryevaluations.create" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new canary evaluation for an organization.", + // "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/canaryevaluations", + // "httpMethod": "POST", + // "id": "apigee.organizations.instances.canaryevaluations.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}/instances/{instance}`.", + // "location": "path", + // "pattern": "^organizations/[^/]+/instances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/canaryevaluations", + // "request": { + // "$ref": "GoogleCloudApigeeV1CanaryEvaluation" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "apigee.organizations.instances.canaryevaluations.get": + +type OrganizationsInstancesCanaryevaluationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a CanaryEvaluation for an organization. +func (r *OrganizationsInstancesCanaryevaluationsService) Get(name string) *OrganizationsInstancesCanaryevaluationsGetCall { + c := &OrganizationsInstancesCanaryevaluationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsInstancesCanaryevaluationsGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesCanaryevaluationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsInstancesCanaryevaluationsGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesCanaryevaluationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsInstancesCanaryevaluationsGetCall) Context(ctx context.Context) *OrganizationsInstancesCanaryevaluationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsInstancesCanaryevaluationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsInstancesCanaryevaluationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "apigee.organizations.instances.canaryevaluations.get" call. +// Exactly one of *GoogleCloudApigeeV1CanaryEvaluation or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1CanaryEvaluation.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsInstancesCanaryevaluationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CanaryEvaluation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudApigeeV1CanaryEvaluation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a CanaryEvaluation for an organization.", + // "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/canaryevaluations/{canaryevaluationsId}", + // "httpMethod": "GET", + // "id": "apigee.organizations.instances.canaryevaluations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the CanaryEvaluation. Use the following structure in your request: `organizations/{org}/instances/*/canaryevaluations/{evaluation}`", + // "location": "path", + // "pattern": "^organizations/[^/]+/instances/[^/]+/canaryevaluations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudApigeeV1CanaryEvaluation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "apigee.organizations.keyvaluemaps.create": type OrganizationsKeyvaluemapsCreateCall struct { @@ -31524,7 +34111,7 @@ func (c *OrganizationsKeyvaluemapsCreateCall) Header() http.Header { func (c *OrganizationsKeyvaluemapsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31662,7 +34249,7 @@ func (c *OrganizationsKeyvaluemapsDeleteCall) Header() http.Header { func (c *OrganizationsKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31805,7 +34392,7 @@ func (c *OrganizationsOperationsGetCall) Header() http.Header { func (c *OrganizationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31979,7 +34566,7 @@ func (c *OrganizationsOperationsListCall) Header() http.Header { func (c *OrganizationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -32106,6 +34693,327 @@ func (c *OrganizationsOperationsListCall) Pages(ctx context.Context, f func(*Goo } } +// method id "apigee.organizations.optimizedHostStats.get": + +type OrganizationsOptimizedHostStatsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: This api is similar to GetHostStats except that the response is +// less verbose. +func (r *OrganizationsOptimizedHostStatsService) Get(name string) *OrganizationsOptimizedHostStatsGetCall { + c := &OrganizationsOptimizedHostStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Accuracy sets the optional parameter "accuracy": Legacy field: not +// used anymore. +func (c *OrganizationsOptimizedHostStatsGetCall) Accuracy(accuracy string) *OrganizationsOptimizedHostStatsGetCall { + c.urlParams_.Set("accuracy", accuracy) + return c +} + +// EnvgroupHostname sets the optional parameter "envgroupHostname": +// Required. The hostname for which the interactive query will be +// executed. +func (c *OrganizationsOptimizedHostStatsGetCall) EnvgroupHostname(envgroupHostname string) *OrganizationsOptimizedHostStatsGetCall { + c.urlParams_.Set("envgroupHostname", envgroupHostname) + return c +} + +// Filter sets the optional parameter "filter": Enables drill-down on +// specific dimension values. +func (c *OrganizationsOptimizedHostStatsGetCall) Filter(filter string) *OrganizationsOptimizedHostStatsGetCall { + c.urlParams_.Set("filter", filter) + return c +} + +// Limit sets the optional parameter "limit": This parameter is used to +// limit the number of result items. Default and the max value is 14400. +func (c *OrganizationsOptimizedHostStatsGetCall) Limit(limit string) *OrganizationsOptimizedHostStatsGetCall { + c.urlParams_.Set("limit", limit) + return c +} + +// Offset sets the optional parameter "offset": Use offset with limit to +// enable pagination of results. For example, to display results 11-20, +// set limit to '10' and offset to '10'. +func (c *OrganizationsOptimizedHostStatsGetCall) Offset(offset string) *OrganizationsOptimizedHostStatsGetCall { + c.urlParams_.Set("offset", offset) + return c +} + +// Realtime sets the optional parameter "realtime": Legacy field: not +// used anymore. +func (c *OrganizationsOptimizedHostStatsGetCall) Realtime(realtime bool) *OrganizationsOptimizedHostStatsGetCall { + c.urlParams_.Set("realtime", fmt.Sprint(realtime)) + return c +} + +// Select sets the optional parameter "select": Required. The select +// parameter contains a comma separated list of metrics. E.g. +// sum(message_count),sum(error_count) +func (c *OrganizationsOptimizedHostStatsGetCall) Select(select_ string) *OrganizationsOptimizedHostStatsGetCall { + c.urlParams_.Set("select", select_) + return c +} + +// Sort sets the optional parameter "sort": This parameter specifies if +// the sort order should be ascending or descending Supported values are +// DESC and ASC. +func (c *OrganizationsOptimizedHostStatsGetCall) Sort(sort string) *OrganizationsOptimizedHostStatsGetCall { + c.urlParams_.Set("sort", sort) + return c +} + +// Sortby sets the optional parameter "sortby": Comma separated list of +// columns to sort the final result. +func (c *OrganizationsOptimizedHostStatsGetCall) Sortby(sortby string) *OrganizationsOptimizedHostStatsGetCall { + c.urlParams_.Set("sortby", sortby) + return c +} + +// TimeRange sets the optional parameter "timeRange": Required. Time +// interval for the interactive query. Time range is specified as +// start~end. E.g 04/15/2017 00:00~05/15/2017 23:59. +func (c *OrganizationsOptimizedHostStatsGetCall) TimeRange(timeRange string) *OrganizationsOptimizedHostStatsGetCall { + c.urlParams_.Set("timeRange", timeRange) + return c +} + +// TimeUnit sets the optional parameter "timeUnit": A value of second, +// minute, hour, day, week, month. Time Unit specifies the granularity +// of metrics returned. +func (c *OrganizationsOptimizedHostStatsGetCall) TimeUnit(timeUnit string) *OrganizationsOptimizedHostStatsGetCall { + c.urlParams_.Set("timeUnit", timeUnit) + return c +} + +// Topk sets the optional parameter "topk": Take 'top k' results from +// results, for example, to return the top 5 results 'topk=5'. +func (c *OrganizationsOptimizedHostStatsGetCall) Topk(topk string) *OrganizationsOptimizedHostStatsGetCall { + c.urlParams_.Set("topk", topk) + return c +} + +// TsAscending sets the optional parameter "tsAscending": Lists +// timestamps in ascending order if set to true. Recommend setting this +// value to true if you are using sortby with sort=DESC. +func (c *OrganizationsOptimizedHostStatsGetCall) TsAscending(tsAscending bool) *OrganizationsOptimizedHostStatsGetCall { + c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending)) + return c +} + +// Tzo sets the optional parameter "tzo": This parameters contains the +// timezone offset value. +func (c *OrganizationsOptimizedHostStatsGetCall) Tzo(tzo string) *OrganizationsOptimizedHostStatsGetCall { + c.urlParams_.Set("tzo", tzo) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsOptimizedHostStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsOptimizedHostStatsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsOptimizedHostStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsOptimizedHostStatsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsOptimizedHostStatsGetCall) Context(ctx context.Context) *OrganizationsOptimizedHostStatsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsOptimizedHostStatsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsOptimizedHostStatsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "apigee.organizations.optimizedHostStats.get" call. +// Exactly one of *GoogleCloudApigeeV1OptimizedStats or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1OptimizedStats.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsOptimizedHostStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1OptimizedStats, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudApigeeV1OptimizedStats{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "This api is similar to GetHostStats except that the response is less verbose.", + // "flatPath": "v1/organizations/{organizationsId}/optimizedHostStats/{optimizedHostStatsId}", + // "httpMethod": "GET", + // "id": "apigee.organizations.optimizedHostStats.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "accuracy": { + // "description": "Legacy field: not used anymore.", + // "location": "query", + // "type": "string" + // }, + // "envgroupHostname": { + // "description": "Required. The hostname for which the interactive query will be executed.", + // "location": "query", + // "type": "string" + // }, + // "filter": { + // "description": "Enables drill-down on specific dimension values.", + // "location": "query", + // "type": "string" + // }, + // "limit": { + // "description": "This parameter is used to limit the number of result items. Default and the max value is 14400.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "Required. The resource name for which the interactive query will be executed. Must be of the form `organizations/{organization_id}/stats/{dimensions}`. Dimensions let you view metrics in meaningful groupings. E.g. apiproxy, target_host. The value of dimensions should be comma separated list as shown below `organizations/{org}/stats/apiproxy,request_verb`", + // "location": "path", + // "pattern": "^organizations/[^/]+/optimizedHostStats/.*$", + // "required": true, + // "type": "string" + // }, + // "offset": { + // "description": "Use offset with limit to enable pagination of results. For example, to display results 11-20, set limit to '10' and offset to '10'.", + // "location": "query", + // "type": "string" + // }, + // "realtime": { + // "description": "Legacy field: not used anymore.", + // "location": "query", + // "type": "boolean" + // }, + // "select": { + // "description": "Required. The select parameter contains a comma separated list of metrics. E.g. sum(message_count),sum(error_count)", + // "location": "query", + // "type": "string" + // }, + // "sort": { + // "description": "This parameter specifies if the sort order should be ascending or descending Supported values are DESC and ASC.", + // "location": "query", + // "type": "string" + // }, + // "sortby": { + // "description": "Comma separated list of columns to sort the final result.", + // "location": "query", + // "type": "string" + // }, + // "timeRange": { + // "description": "Required. Time interval for the interactive query. Time range is specified as start~end. E.g 04/15/2017 00:00~05/15/2017 23:59.", + // "location": "query", + // "type": "string" + // }, + // "timeUnit": { + // "description": "A value of second, minute, hour, day, week, month. Time Unit specifies the granularity of metrics returned.", + // "location": "query", + // "type": "string" + // }, + // "topk": { + // "description": "Take 'top k' results from results, for example, to return the top 5 results 'topk=5'.", + // "location": "query", + // "type": "string" + // }, + // "tsAscending": { + // "description": "Lists timestamps in ascending order if set to true. Recommend setting this value to true if you are using sortby with sort=DESC.", + // "location": "query", + // "type": "boolean" + // }, + // "tzo": { + // "description": "This parameters contains the timezone offset value.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudApigeeV1OptimizedStats" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "apigee.organizations.reports.create": type OrganizationsReportsCreateCall struct { @@ -32159,7 +35067,7 @@ func (c *OrganizationsReportsCreateCall) Header() http.Header { func (c *OrganizationsReportsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -32297,7 +35205,7 @@ func (c *OrganizationsReportsDeleteCall) Header() http.Header { func (c *OrganizationsReportsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -32440,7 +35348,7 @@ func (c *OrganizationsReportsGetCall) Header() http.Header { func (c *OrganizationsReportsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -32591,7 +35499,7 @@ func (c *OrganizationsReportsListCall) Header() http.Header { func (c *OrganizationsReportsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -32733,7 +35641,7 @@ func (c *OrganizationsReportsUpdateCall) Header() http.Header { func (c *OrganizationsReportsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -32892,7 +35800,7 @@ func (c *OrganizationsSharedflowsCreateCall) Header() http.Header { func (c *OrganizationsSharedflowsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -33042,7 +35950,7 @@ func (c *OrganizationsSharedflowsDeleteCall) Header() http.Header { func (c *OrganizationsSharedflowsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -33183,7 +36091,7 @@ func (c *OrganizationsSharedflowsGetCall) Header() http.Header { func (c *OrganizationsSharedflowsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -33341,7 +36249,7 @@ func (c *OrganizationsSharedflowsListCall) Header() http.Header { func (c *OrganizationsSharedflowsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -33497,7 +36405,7 @@ func (c *OrganizationsSharedflowsDeploymentsListCall) Header() http.Header { func (c *OrganizationsSharedflowsDeploymentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -33633,7 +36541,7 @@ func (c *OrganizationsSharedflowsRevisionsDeleteCall) Header() http.Header { func (c *OrganizationsSharedflowsRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -33785,7 +36693,7 @@ func (c *OrganizationsSharedflowsRevisionsGetCall) Header() http.Header { func (c *OrganizationsSharedflowsRevisionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -33939,7 +36847,7 @@ func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Header() func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -34094,7 +37002,7 @@ func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Header() http.Hea func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -34231,7 +37139,7 @@ func (c *OrganizationsSitesApicategoriesCreateCall) Header() http.Header { func (c *OrganizationsSitesApicategoriesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -34369,7 +37277,7 @@ func (c *OrganizationsSitesApicategoriesDeleteCall) Header() http.Header { func (c *OrganizationsSitesApicategoriesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -34511,7 +37419,7 @@ func (c *OrganizationsSitesApicategoriesGetCall) Header() http.Header { func (c *OrganizationsSitesApicategoriesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -34655,7 +37563,7 @@ func (c *OrganizationsSitesApicategoriesListCall) Header() http.Header { func (c *OrganizationsSitesApicategoriesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -34792,7 +37700,7 @@ func (c *OrganizationsSitesApicategoriesPatchCall) Header() http.Header { func (c *OrganizationsSitesApicategoriesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -34934,7 +37842,7 @@ func (c *ProjectsProvisionOrganizationCall) Header() http.Header { func (c *ProjectsProvisionOrganizationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/appengine/v1/appengine-gen.go b/appengine/v1/appengine-gen.go index dad189f793c..77846c63d21 100644 --- a/appengine/v1/appengine-gen.go +++ b/appengine/v1/appengine-gen.go @@ -3766,7 +3766,7 @@ func (c *AppsCreateCall) Header() http.Header { func (c *AppsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3902,7 +3902,7 @@ func (c *AppsGetCall) Header() http.Header { func (c *AppsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4048,7 +4048,7 @@ func (c *AppsPatchCall) Header() http.Header { func (c *AppsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4201,7 +4201,7 @@ func (c *AppsRepairCall) Header() http.Header { func (c *AppsRepairCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4340,7 +4340,7 @@ func (c *AppsAuthorizedCertificatesCreateCall) Header() http.Header { func (c *AppsAuthorizedCertificatesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4479,7 +4479,7 @@ func (c *AppsAuthorizedCertificatesDeleteCall) Header() http.Header { func (c *AppsAuthorizedCertificatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4643,7 +4643,7 @@ func (c *AppsAuthorizedCertificatesGetCall) Header() http.Header { func (c *AppsAuthorizedCertificatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4838,7 +4838,7 @@ func (c *AppsAuthorizedCertificatesListCall) Header() http.Header { func (c *AppsAuthorizedCertificatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5034,7 +5034,7 @@ func (c *AppsAuthorizedCertificatesPatchCall) Header() http.Header { func (c *AppsAuthorizedCertificatesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5210,7 +5210,7 @@ func (c *AppsAuthorizedDomainsListCall) Header() http.Header { func (c *AppsAuthorizedDomainsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5401,7 +5401,7 @@ func (c *AppsDomainMappingsCreateCall) Header() http.Header { func (c *AppsDomainMappingsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5557,7 +5557,7 @@ func (c *AppsDomainMappingsDeleteCall) Header() http.Header { func (c *AppsDomainMappingsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5707,7 +5707,7 @@ func (c *AppsDomainMappingsGetCall) Header() http.Header { func (c *AppsDomainMappingsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5874,7 +5874,7 @@ func (c *AppsDomainMappingsListCall) Header() http.Header { func (c *AppsDomainMappingsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6055,7 +6055,7 @@ func (c *AppsDomainMappingsPatchCall) Header() http.Header { func (c *AppsDomainMappingsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6212,7 +6212,7 @@ func (c *AppsFirewallIngressRulesBatchUpdateCall) Header() http.Header { func (c *AppsFirewallIngressRulesBatchUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6351,7 +6351,7 @@ func (c *AppsFirewallIngressRulesCreateCall) Header() http.Header { func (c *AppsFirewallIngressRulesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6490,7 +6490,7 @@ func (c *AppsFirewallIngressRulesDeleteCall) Header() http.Header { func (c *AppsFirewallIngressRulesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6640,7 +6640,7 @@ func (c *AppsFirewallIngressRulesGetCall) Header() http.Header { func (c *AppsFirewallIngressRulesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6816,7 +6816,7 @@ func (c *AppsFirewallIngressRulesListCall) Header() http.Header { func (c *AppsFirewallIngressRulesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6998,7 +6998,7 @@ func (c *AppsFirewallIngressRulesPatchCall) Header() http.Header { func (c *AppsFirewallIngressRulesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7162,7 +7162,7 @@ func (c *AppsLocationsGetCall) Header() http.Header { func (c *AppsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7337,7 +7337,7 @@ func (c *AppsLocationsListCall) Header() http.Header { func (c *AppsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7523,7 +7523,7 @@ func (c *AppsOperationsGetCall) Header() http.Header { func (c *AppsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7706,7 +7706,7 @@ func (c *AppsOperationsListCall) Header() http.Header { func (c *AppsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7879,7 +7879,7 @@ func (c *AppsServicesDeleteCall) Header() http.Header { func (c *AppsServicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8029,7 +8029,7 @@ func (c *AppsServicesGetCall) Header() http.Header { func (c *AppsServicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8196,7 +8196,7 @@ func (c *AppsServicesListCall) Header() http.Header { func (c *AppsServicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8393,7 +8393,7 @@ func (c *AppsServicesPatchCall) Header() http.Header { func (c *AppsServicesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8553,7 +8553,7 @@ func (c *AppsServicesVersionsCreateCall) Header() http.Header { func (c *AppsServicesVersionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8702,7 +8702,7 @@ func (c *AppsServicesVersionsDeleteCall) Header() http.Header { func (c *AppsServicesVersionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8878,7 +8878,7 @@ func (c *AppsServicesVersionsGetCall) Header() http.Header { func (c *AppsServicesVersionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9082,7 +9082,7 @@ func (c *AppsServicesVersionsListCall) Header() http.Header { func (c *AppsServicesVersionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9330,7 +9330,7 @@ func (c *AppsServicesVersionsPatchCall) Header() http.Header { func (c *AppsServicesVersionsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9503,7 +9503,7 @@ func (c *AppsServicesVersionsInstancesDebugCall) Header() http.Header { func (c *AppsServicesVersionsInstancesDebugCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9681,7 +9681,7 @@ func (c *AppsServicesVersionsInstancesDeleteCall) Header() http.Header { func (c *AppsServicesVersionsInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9851,7 +9851,7 @@ func (c *AppsServicesVersionsInstancesGetCall) Header() http.Header { func (c *AppsServicesVersionsInstancesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10041,7 +10041,7 @@ func (c *AppsServicesVersionsInstancesListCall) Header() http.Header { func (c *AppsServicesVersionsInstancesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/appengine/v1alpha/appengine-gen.go b/appengine/v1alpha/appengine-gen.go index 7bc162d2777..c5f4d89fd5a 100644 --- a/appengine/v1alpha/appengine-gen.go +++ b/appengine/v1alpha/appengine-gen.go @@ -1268,7 +1268,7 @@ func (c *AppsAuthorizedCertificatesCreateCall) Header() http.Header { func (c *AppsAuthorizedCertificatesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1407,7 +1407,7 @@ func (c *AppsAuthorizedCertificatesDeleteCall) Header() http.Header { func (c *AppsAuthorizedCertificatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1571,7 +1571,7 @@ func (c *AppsAuthorizedCertificatesGetCall) Header() http.Header { func (c *AppsAuthorizedCertificatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1766,7 +1766,7 @@ func (c *AppsAuthorizedCertificatesListCall) Header() http.Header { func (c *AppsAuthorizedCertificatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1962,7 +1962,7 @@ func (c *AppsAuthorizedCertificatesPatchCall) Header() http.Header { func (c *AppsAuthorizedCertificatesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2138,7 +2138,7 @@ func (c *AppsAuthorizedDomainsListCall) Header() http.Header { func (c *AppsAuthorizedDomainsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2340,7 +2340,7 @@ func (c *AppsDomainMappingsCreateCall) Header() http.Header { func (c *AppsDomainMappingsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2501,7 +2501,7 @@ func (c *AppsDomainMappingsDeleteCall) Header() http.Header { func (c *AppsDomainMappingsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2651,7 +2651,7 @@ func (c *AppsDomainMappingsGetCall) Header() http.Header { func (c *AppsDomainMappingsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2818,7 +2818,7 @@ func (c *AppsDomainMappingsListCall) Header() http.Header { func (c *AppsDomainMappingsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3011,7 +3011,7 @@ func (c *AppsDomainMappingsPatchCall) Header() http.Header { func (c *AppsDomainMappingsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3180,7 +3180,7 @@ func (c *AppsLocationsGetCall) Header() http.Header { func (c *AppsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3355,7 +3355,7 @@ func (c *AppsLocationsListCall) Header() http.Header { func (c *AppsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3541,7 +3541,7 @@ func (c *AppsOperationsGetCall) Header() http.Header { func (c *AppsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3724,7 +3724,7 @@ func (c *AppsOperationsListCall) Header() http.Header { func (c *AppsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/appengine/v1beta/appengine-api.json b/appengine/v1beta/appengine-api.json index facd3e751ca..5480f967965 100644 --- a/appengine/v1beta/appengine-api.json +++ b/appengine/v1beta/appengine-api.json @@ -1594,7 +1594,7 @@ } } }, - "revision": "20200914", + "revision": "20201114", "rootUrl": "https://appengine.googleapis.com/", "schemas": { "ApiConfigHandler": { @@ -2474,7 +2474,7 @@ "vmLiveness": { "description": "Output only. The liveness health check of this instance. Only applicable for instances in App Engine flexible environment.", "enum": [ - "STATE_UNSPECIFIED", + "LIVENESS_STATE_UNSPECIFIED", "UNKNOWN", "HEALTHY", "UNHEALTHY", @@ -3492,6 +3492,10 @@ "$ref": "ApiConfigHandler", "description": "Serving configuration for Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/endpoints/).Only returned in GET requests if view=FULL is set." }, + "appEngineApis": { + "description": "app_engine_apis allows Second Generation runtimes to access the App Engine APIs.", + "type": "boolean" + }, "automaticScaling": { "$ref": "AutomaticScaling", "description": "Automatic scaling is based on request rate, response latencies, and other application metrics. Instances are dynamically created and destroyed as needed in order to handle traffic." diff --git a/appengine/v1beta/appengine-gen.go b/appengine/v1beta/appengine-gen.go index 0e62f09dc7d..9ce517037c5 100644 --- a/appengine/v1beta/appengine-gen.go +++ b/appengine/v1beta/appengine-gen.go @@ -1754,9 +1754,9 @@ type Instance struct { // Only applicable for instances in App Engine flexible environment. // // Possible values: - // "STATE_UNSPECIFIED" - There is no liveness health check for the - // instance. Only applicable for instances in App Engine standard - // environment. + // "LIVENESS_STATE_UNSPECIFIED" - There is no liveness health check + // for the instance. Only applicable for instances in App Engine + // standard environment. // "UNKNOWN" - The health checking system is aware of the instance but // its health is not known at the moment. // "HEALTHY" - The instance is reachable i.e. a connection to the @@ -3496,6 +3496,10 @@ type Version struct { // returned in GET requests if view=FULL is set. ApiConfig *ApiConfigHandler `json:"apiConfig,omitempty"` + // AppEngineApis: app_engine_apis allows Second Generation runtimes to + // access the App Engine APIs. + AppEngineApis bool `json:"appEngineApis,omitempty"` + // AutomaticScaling: Automatic scaling is based on request rate, // response latencies, and other application metrics. Instances are // dynamically created and destroyed as needed in order to handle @@ -3884,7 +3888,7 @@ func (c *AppsCreateCall) Header() http.Header { func (c *AppsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4020,7 +4024,7 @@ func (c *AppsGetCall) Header() http.Header { func (c *AppsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4166,7 +4170,7 @@ func (c *AppsPatchCall) Header() http.Header { func (c *AppsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4319,7 +4323,7 @@ func (c *AppsRepairCall) Header() http.Header { func (c *AppsRepairCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4458,7 +4462,7 @@ func (c *AppsAuthorizedCertificatesCreateCall) Header() http.Header { func (c *AppsAuthorizedCertificatesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4597,7 +4601,7 @@ func (c *AppsAuthorizedCertificatesDeleteCall) Header() http.Header { func (c *AppsAuthorizedCertificatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4761,7 +4765,7 @@ func (c *AppsAuthorizedCertificatesGetCall) Header() http.Header { func (c *AppsAuthorizedCertificatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4956,7 +4960,7 @@ func (c *AppsAuthorizedCertificatesListCall) Header() http.Header { func (c *AppsAuthorizedCertificatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5152,7 +5156,7 @@ func (c *AppsAuthorizedCertificatesPatchCall) Header() http.Header { func (c *AppsAuthorizedCertificatesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5328,7 +5332,7 @@ func (c *AppsAuthorizedDomainsListCall) Header() http.Header { func (c *AppsAuthorizedDomainsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5519,7 +5523,7 @@ func (c *AppsDomainMappingsCreateCall) Header() http.Header { func (c *AppsDomainMappingsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5675,7 +5679,7 @@ func (c *AppsDomainMappingsDeleteCall) Header() http.Header { func (c *AppsDomainMappingsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5825,7 +5829,7 @@ func (c *AppsDomainMappingsGetCall) Header() http.Header { func (c *AppsDomainMappingsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5992,7 +5996,7 @@ func (c *AppsDomainMappingsListCall) Header() http.Header { func (c *AppsDomainMappingsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6173,7 +6177,7 @@ func (c *AppsDomainMappingsPatchCall) Header() http.Header { func (c *AppsDomainMappingsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6330,7 +6334,7 @@ func (c *AppsFirewallIngressRulesBatchUpdateCall) Header() http.Header { func (c *AppsFirewallIngressRulesBatchUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6469,7 +6473,7 @@ func (c *AppsFirewallIngressRulesCreateCall) Header() http.Header { func (c *AppsFirewallIngressRulesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6608,7 +6612,7 @@ func (c *AppsFirewallIngressRulesDeleteCall) Header() http.Header { func (c *AppsFirewallIngressRulesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6758,7 +6762,7 @@ func (c *AppsFirewallIngressRulesGetCall) Header() http.Header { func (c *AppsFirewallIngressRulesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6934,7 +6938,7 @@ func (c *AppsFirewallIngressRulesListCall) Header() http.Header { func (c *AppsFirewallIngressRulesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7116,7 +7120,7 @@ func (c *AppsFirewallIngressRulesPatchCall) Header() http.Header { func (c *AppsFirewallIngressRulesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7280,7 +7284,7 @@ func (c *AppsLocationsGetCall) Header() http.Header { func (c *AppsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7455,7 +7459,7 @@ func (c *AppsLocationsListCall) Header() http.Header { func (c *AppsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7641,7 +7645,7 @@ func (c *AppsOperationsGetCall) Header() http.Header { func (c *AppsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7824,7 +7828,7 @@ func (c *AppsOperationsListCall) Header() http.Header { func (c *AppsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7997,7 +8001,7 @@ func (c *AppsServicesDeleteCall) Header() http.Header { func (c *AppsServicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8147,7 +8151,7 @@ func (c *AppsServicesGetCall) Header() http.Header { func (c *AppsServicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8314,7 +8318,7 @@ func (c *AppsServicesListCall) Header() http.Header { func (c *AppsServicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8512,7 +8516,7 @@ func (c *AppsServicesPatchCall) Header() http.Header { func (c *AppsServicesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8672,7 +8676,7 @@ func (c *AppsServicesVersionsCreateCall) Header() http.Header { func (c *AppsServicesVersionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8821,7 +8825,7 @@ func (c *AppsServicesVersionsDeleteCall) Header() http.Header { func (c *AppsServicesVersionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8997,7 +9001,7 @@ func (c *AppsServicesVersionsGetCall) Header() http.Header { func (c *AppsServicesVersionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9201,7 +9205,7 @@ func (c *AppsServicesVersionsListCall) Header() http.Header { func (c *AppsServicesVersionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9451,7 +9455,7 @@ func (c *AppsServicesVersionsPatchCall) Header() http.Header { func (c *AppsServicesVersionsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9624,7 +9628,7 @@ func (c *AppsServicesVersionsInstancesDebugCall) Header() http.Header { func (c *AppsServicesVersionsInstancesDebugCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9802,7 +9806,7 @@ func (c *AppsServicesVersionsInstancesDeleteCall) Header() http.Header { func (c *AppsServicesVersionsInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9972,7 +9976,7 @@ func (c *AppsServicesVersionsInstancesGetCall) Header() http.Header { func (c *AppsServicesVersionsInstancesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10162,7 +10166,7 @@ func (c *AppsServicesVersionsInstancesListCall) Header() http.Header { func (c *AppsServicesVersionsInstancesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/area120tables/v1alpha1/area120tables-api.json b/area120tables/v1alpha1/area120tables-api.json new file mode 100644 index 00000000000..459df0381f3 --- /dev/null +++ b/area120tables/v1alpha1/area120tables-api.json @@ -0,0 +1,845 @@ +{ + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/drive": { + "description": "See, edit, create, and delete all of your Google Drive files" + }, + "https://www.googleapis.com/auth/drive.file": { + "description": "View and manage Google Drive files and folders that you have opened or created with this app" + }, + "https://www.googleapis.com/auth/drive.readonly": { + "description": "See and download all your Google Drive files" + }, + "https://www.googleapis.com/auth/spreadsheets": { + "description": "See, edit, create, and delete your spreadsheets in Google Drive" + }, + "https://www.googleapis.com/auth/spreadsheets.readonly": { + "description": "View your Google Spreadsheets" + } + } + } + }, + "basePath": "", + "baseUrl": "https://area120tables.googleapis.com/", + "batchPath": "batch", + "canonicalName": "Area120 Tables", + "description": "", + "discoveryVersion": "v1", + "documentationLink": "https://tables.area120.google.com", + "fullyEncodeReservedExpansion": true, + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "id": "area120tables:v1alpha1", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://area120tables.mtls.googleapis.com/", + "name": "area120tables", + "ownerDomain": "google.com", + "ownerName": "Google", + "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, + "alt": { + "default": "json", + "description": "Data format for response.", + "enum": [ + "json", + "media", + "proto" + ], + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query", + "type": "string" + }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, + "fields": { + "description": "Selector specifying which fields to include in a partial response.", + "location": "query", + "type": "string" + }, + "key": { + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "location": "query", + "type": "string" + }, + "oauth_token": { + "description": "OAuth 2.0 token for the current user.", + "location": "query", + "type": "string" + }, + "prettyPrint": { + "default": "true", + "description": "Returns response with indentations and line breaks.", + "location": "query", + "type": "boolean" + }, + "quotaUser": { + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query", + "type": "string" + }, + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query", + "type": "string" + } + }, + "protocol": "rest", + "resources": { + "tables": { + "methods": { + "get": { + "description": "Gets a table. Returns NOT_FOUND if the table does not exist.", + "flatPath": "v1alpha1/tables/{tablesId}", + "httpMethod": "GET", + "id": "area120tables.tables.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the table to retrieve. Format: tables/{table}", + "location": "path", + "pattern": "^tables/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha1/{+name}", + "response": { + "$ref": "Table" + }, + "scopes": [ + "https://www.googleapis.com/auth/drive", + "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.readonly", + "https://www.googleapis.com/auth/spreadsheets", + "https://www.googleapis.com/auth/spreadsheets.readonly" + ] + }, + "list": { + "description": "Lists tables for the user.", + "flatPath": "v1alpha1/tables", + "httpMethod": "GET", + "id": "area120tables.tables.list", + "parameterOrder": [], + "parameters": { + "pageSize": { + "description": "The maximum number of tables to return. The service may return fewer than this value. If unspecified, at most 20 tables are returned. The maximum value is 100; values above 100 are coerced to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListTables` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListTables` must match the call that provided the page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha1/tables", + "response": { + "$ref": "ListTablesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/drive", + "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.readonly", + "https://www.googleapis.com/auth/spreadsheets", + "https://www.googleapis.com/auth/spreadsheets.readonly" + ] + } + }, + "resources": { + "rows": { + "methods": { + "batchCreate": { + "description": "Creates multiple rows.", + "flatPath": "v1alpha1/tables/{tablesId}/rows:batchCreate", + "httpMethod": "POST", + "id": "area120tables.tables.rows.batchCreate", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent table where the rows will be created. Format: tables/{table}", + "location": "path", + "pattern": "^tables/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha1/{+parent}/rows:batchCreate", + "request": { + "$ref": "BatchCreateRowsRequest" + }, + "response": { + "$ref": "BatchCreateRowsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/drive", + "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/spreadsheets" + ] + }, + "batchUpdate": { + "description": "Updates multiple rows.", + "flatPath": "v1alpha1/tables/{tablesId}/rows:batchUpdate", + "httpMethod": "POST", + "id": "area120tables.tables.rows.batchUpdate", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent table shared by all rows being updated. Format: tables/{table}", + "location": "path", + "pattern": "^tables/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha1/{+parent}/rows:batchUpdate", + "request": { + "$ref": "BatchUpdateRowsRequest" + }, + "response": { + "$ref": "BatchUpdateRowsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/drive", + "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/spreadsheets" + ] + }, + "create": { + "description": "Creates a row.", + "flatPath": "v1alpha1/tables/{tablesId}/rows", + "httpMethod": "POST", + "id": "area120tables.tables.rows.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent table where this row will be created. Format: tables/{table}", + "location": "path", + "pattern": "^tables/[^/]+$", + "required": true, + "type": "string" + }, + "view": { + "description": "Optional. Column key to use for values in the row. Defaults to user entered name.", + "enum": [ + "VIEW_UNSPECIFIED", + "COLUMN_ID_VIEW" + ], + "enumDescriptions": [ + "Defaults to user entered text.", + "Uses internally generated column id to identify values." + ], + "location": "query", + "type": "string" + } + }, + "path": "v1alpha1/{+parent}/rows", + "request": { + "$ref": "Row" + }, + "response": { + "$ref": "Row" + }, + "scopes": [ + "https://www.googleapis.com/auth/drive", + "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/spreadsheets" + ] + }, + "delete": { + "description": "Deletes a row.", + "flatPath": "v1alpha1/tables/{tablesId}/rows/{rowsId}", + "httpMethod": "DELETE", + "id": "area120tables.tables.rows.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the row to delete. Format: tables/{table}/rows/{row}", + "location": "path", + "pattern": "^tables/[^/]+/rows/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/drive", + "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/spreadsheets" + ] + }, + "get": { + "description": "Gets a row. Returns NOT_FOUND if the row does not exist in the table.", + "flatPath": "v1alpha1/tables/{tablesId}/rows/{rowsId}", + "httpMethod": "GET", + "id": "area120tables.tables.rows.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the row to retrieve. Format: tables/{table}/rows/{row}", + "location": "path", + "pattern": "^tables/[^/]+/rows/[^/]+$", + "required": true, + "type": "string" + }, + "view": { + "description": "Optional. Column key to use for values in the row. Defaults to user entered name.", + "enum": [ + "VIEW_UNSPECIFIED", + "COLUMN_ID_VIEW" + ], + "enumDescriptions": [ + "Defaults to user entered text.", + "Uses internally generated column id to identify values." + ], + "location": "query", + "type": "string" + } + }, + "path": "v1alpha1/{+name}", + "response": { + "$ref": "Row" + }, + "scopes": [ + "https://www.googleapis.com/auth/drive", + "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.readonly", + "https://www.googleapis.com/auth/spreadsheets", + "https://www.googleapis.com/auth/spreadsheets.readonly" + ] + }, + "list": { + "description": "Lists rows in a table. Returns NOT_FOUND if the table does not exist.", + "flatPath": "v1alpha1/tables/{tablesId}/rows", + "httpMethod": "GET", + "id": "area120tables.tables.rows.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of rows to return. The service may return fewer than this value. If unspecified, at most 50 rows are returned. The maximum value is 1,000; values above 1,000 are coerced to 1,000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListRows` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRows` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent table. Format: tables/{table}", + "location": "path", + "pattern": "^tables/[^/]+$", + "required": true, + "type": "string" + }, + "view": { + "description": "Optional. Column key to use for values in the row. Defaults to user entered name.", + "enum": [ + "VIEW_UNSPECIFIED", + "COLUMN_ID_VIEW" + ], + "enumDescriptions": [ + "Defaults to user entered text.", + "Uses internally generated column id to identify values." + ], + "location": "query", + "type": "string" + } + }, + "path": "v1alpha1/{+parent}/rows", + "response": { + "$ref": "ListRowsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/drive", + "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.readonly", + "https://www.googleapis.com/auth/spreadsheets", + "https://www.googleapis.com/auth/spreadsheets.readonly" + ] + }, + "patch": { + "description": "Updates a row.", + "flatPath": "v1alpha1/tables/{tablesId}/rows/{rowsId}", + "httpMethod": "PATCH", + "id": "area120tables.tables.rows.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The resource name of the row. Row names have the form `tables/{table}/rows/{row}`. The name is ignored when creating a row.", + "location": "path", + "pattern": "^tables/[^/]+/rows/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The list of fields to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + }, + "view": { + "description": "Optional. Column key to use for values in the row. Defaults to user entered name.", + "enum": [ + "VIEW_UNSPECIFIED", + "COLUMN_ID_VIEW" + ], + "enumDescriptions": [ + "Defaults to user entered text.", + "Uses internally generated column id to identify values." + ], + "location": "query", + "type": "string" + } + }, + "path": "v1alpha1/{+name}", + "request": { + "$ref": "Row" + }, + "response": { + "$ref": "Row" + }, + "scopes": [ + "https://www.googleapis.com/auth/drive", + "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/spreadsheets" + ] + } + } + } + } + }, + "workspaces": { + "methods": { + "get": { + "description": "Gets a workspace. Returns NOT_FOUND if the workspace does not exist.", + "flatPath": "v1alpha1/workspaces/{workspacesId}", + "httpMethod": "GET", + "id": "area120tables.workspaces.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the workspace to retrieve. Format: workspaces/{workspace}", + "location": "path", + "pattern": "^workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha1/{+name}", + "response": { + "$ref": "Workspace" + }, + "scopes": [ + "https://www.googleapis.com/auth/drive", + "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.readonly", + "https://www.googleapis.com/auth/spreadsheets", + "https://www.googleapis.com/auth/spreadsheets.readonly" + ] + }, + "list": { + "description": "Lists workspaces for the user.", + "flatPath": "v1alpha1/workspaces", + "httpMethod": "GET", + "id": "area120tables.workspaces.list", + "parameterOrder": [], + "parameters": { + "pageSize": { + "description": "The maximum number of workspaces to return. The service may return fewer than this value. If unspecified, at most 10 workspaces are returned. The maximum value is 25; values above 25 are coerced to 25.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListWorkspaces` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListWorkspaces` must match the call that provided the page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha1/workspaces", + "response": { + "$ref": "ListWorkspacesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/drive", + "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.readonly", + "https://www.googleapis.com/auth/spreadsheets", + "https://www.googleapis.com/auth/spreadsheets.readonly" + ] + } + } + } + }, + "revision": "20201116", + "rootUrl": "https://area120tables.googleapis.com/", + "schemas": { + "BatchCreateRowsRequest": { + "description": "Request message for TablesService.BatchCreateRows.", + "id": "BatchCreateRowsRequest", + "properties": { + "requests": { + "description": "Required. The request message specifying the rows to create. A maximum of 500 rows can be created in a single batch.", + "items": { + "$ref": "CreateRowRequest" + }, + "type": "array" + } + }, + "type": "object" + }, + "BatchCreateRowsResponse": { + "description": "Response message for TablesService.BatchCreateRows.", + "id": "BatchCreateRowsResponse", + "properties": { + "rows": { + "description": "The created rows.", + "items": { + "$ref": "Row" + }, + "type": "array" + } + }, + "type": "object" + }, + "BatchUpdateRowsRequest": { + "description": "Request message for TablesService.BatchUpdateRows.", + "id": "BatchUpdateRowsRequest", + "properties": { + "requests": { + "description": "Required. The request messages specifying the rows to update. A maximum of 500 rows can be modified in a single batch.", + "items": { + "$ref": "UpdateRowRequest" + }, + "type": "array" + } + }, + "type": "object" + }, + "BatchUpdateRowsResponse": { + "description": "Response message for TablesService.BatchUpdateRows.", + "id": "BatchUpdateRowsResponse", + "properties": { + "rows": { + "description": "The updated rows.", + "items": { + "$ref": "Row" + }, + "type": "array" + } + }, + "type": "object" + }, + "ColumnDescription": { + "description": "Details on a column in the table.", + "id": "ColumnDescription", + "properties": { + "dataType": { + "description": "Data type of the column Supported types are auto_id, boolean, boolean_list, creator, create_timestamp, date, dropdown, location, integer, integer_list, number, number_list, person, person_list, tags, check_list, text, text_list, update_timestamp, updater, relationship, file_attachment_list. These types directly map to the column types supported on Tables website.", + "type": "string" + }, + "id": { + "description": "Internal id for a column.", + "type": "string" + }, + "labels": { + "description": "Optional. Range of labeled values for the column. Some columns like tags and drop-downs limit the values to a set of possible values. We return the range of values in such cases to help clients implement better user data validation.", + "items": { + "$ref": "LabeledItem" + }, + "type": "array" + }, + "lookupDetails": { + "$ref": "LookupDetails", + "description": "Optional. Indicates that this is a lookup column whose value is derived from the relationship column specified in the details. Lookup columns can not be updated directly. To change the value you must update the associated relationship column." + }, + "name": { + "description": "column name", + "type": "string" + }, + "relationshipDetails": { + "$ref": "RelationshipDetails", + "description": "Optional. Additional details about a relationship column. Specified when data_type is relationship." + } + }, + "type": "object" + }, + "CreateRowRequest": { + "description": "Request message for TablesService.CreateRow.", + "id": "CreateRowRequest", + "properties": { + "parent": { + "description": "Required. The parent table where this row will be created. Format: tables/{table}", + "type": "string" + }, + "row": { + "$ref": "Row", + "description": "Required. The row to create." + }, + "view": { + "description": "Optional. Column key to use for values in the row. Defaults to user entered name.", + "enum": [ + "VIEW_UNSPECIFIED", + "COLUMN_ID_VIEW" + ], + "enumDescriptions": [ + "Defaults to user entered text.", + "Uses internally generated column id to identify values." + ], + "type": "string" + } + }, + "type": "object" + }, + "Empty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "id": "Empty", + "properties": {}, + "type": "object" + }, + "LabeledItem": { + "description": "A single item in a labeled column.", + "id": "LabeledItem", + "properties": { + "id": { + "description": "Internal id associated with the item.", + "type": "string" + }, + "name": { + "description": "Display string as entered by user.", + "type": "string" + } + }, + "type": "object" + }, + "ListRowsResponse": { + "description": "Response message for TablesService.ListRows.", + "id": "ListRowsResponse", + "properties": { + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is empty, there are no subsequent pages.", + "type": "string" + }, + "rows": { + "description": "The rows from the specified table.", + "items": { + "$ref": "Row" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListTablesResponse": { + "description": "Response message for TablesService.ListTables.", + "id": "ListTablesResponse", + "properties": { + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is empty, there are no subsequent pages.", + "type": "string" + }, + "tables": { + "description": "The list of tables.", + "items": { + "$ref": "Table" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListWorkspacesResponse": { + "description": "Response message for TablesService.ListWorkspaces.", + "id": "ListWorkspacesResponse", + "properties": { + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is empty, there are no subsequent pages.", + "type": "string" + }, + "workspaces": { + "description": "The list of workspaces.", + "items": { + "$ref": "Workspace" + }, + "type": "array" + } + }, + "type": "object" + }, + "LookupDetails": { + "description": "Details about a lookup column whose value comes from the associated relationship.", + "id": "LookupDetails", + "properties": { + "relationshipColumn": { + "description": "The name of the relationship column associated with the lookup.", + "type": "string" + }, + "relationshipColumnId": { + "description": "The id of the relationship column.", + "type": "string" + } + }, + "type": "object" + }, + "RelationshipDetails": { + "description": "Details about a relationship column.", + "id": "RelationshipDetails", + "properties": { + "linkedTable": { + "description": "The name of the table this relationship is linked to.", + "type": "string" + } + }, + "type": "object" + }, + "Row": { + "description": "A single row in a table.", + "id": "Row", + "properties": { + "name": { + "description": "The resource name of the row. Row names have the form `tables/{table}/rows/{row}`. The name is ignored when creating a row.", + "type": "string" + }, + "values": { + "additionalProperties": { + "type": "any" + }, + "description": "The values of the row. This is a map of column key to value. Key is user entered name(default) or the internal column id based on the view in the request.", + "type": "object" + } + }, + "type": "object" + }, + "Table": { + "description": "A single table.", + "id": "Table", + "properties": { + "columns": { + "description": "List of columns in this table. Order of columns matches the display order.", + "items": { + "$ref": "ColumnDescription" + }, + "type": "array" + }, + "displayName": { + "description": "The human readable title of the table.", + "type": "string" + }, + "name": { + "description": "The resource name of the table. Table names have the form `tables/{table}`.", + "type": "string" + } + }, + "type": "object" + }, + "UpdateRowRequest": { + "description": "Request message for TablesService.UpdateRow.", + "id": "UpdateRowRequest", + "properties": { + "row": { + "$ref": "Row", + "description": "Required. The row to update." + }, + "updateMask": { + "description": "The list of fields to update.", + "format": "google-fieldmask", + "type": "string" + }, + "view": { + "description": "Optional. Column key to use for values in the row. Defaults to user entered name.", + "enum": [ + "VIEW_UNSPECIFIED", + "COLUMN_ID_VIEW" + ], + "enumDescriptions": [ + "Defaults to user entered text.", + "Uses internally generated column id to identify values." + ], + "type": "string" + } + }, + "type": "object" + }, + "Workspace": { + "description": "A single workspace.", + "id": "Workspace", + "properties": { + "displayName": { + "description": "The human readable title of the workspace.", + "type": "string" + }, + "name": { + "description": "The resource name of the workspace. Workspace names have the form `workspaces/{workspace}`.", + "type": "string" + }, + "tables": { + "description": "The list of tables in the workspace.", + "items": { + "$ref": "Table" + }, + "type": "array" + } + }, + "type": "object" + } + }, + "servicePath": "", + "title": "Area120 Tables API", + "version": "v1alpha1", + "version_module": true +} \ No newline at end of file diff --git a/area120tables/v1alpha1/area120tables-gen.go b/area120tables/v1alpha1/area120tables-gen.go new file mode 100644 index 00000000000..2e6604ab71a --- /dev/null +++ b/area120tables/v1alpha1/area120tables-gen.go @@ -0,0 +1,2610 @@ +// Copyright 2020 Google LLC. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated file. DO NOT EDIT. + +// Package area120tables provides access to the Area120 Tables API. +// +// For product documentation, see: https://tables.area120.google.com +// +// Creating a client +// +// Usage example: +// +// import "google.golang.org/api/area120tables/v1alpha1" +// ... +// ctx := context.Background() +// area120tablesService, err := area120tables.NewService(ctx) +// +// In this example, Google Application Default Credentials are used for authentication. +// +// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// +// Other authentication options +// +// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// +// area120tablesService, err := area120tables.NewService(ctx, option.WithScopes(area120tables.SpreadsheetsReadonlyScope)) +// +// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// +// area120tablesService, err := area120tables.NewService(ctx, option.WithAPIKey("AIza...")) +// +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// +// config := &oauth2.Config{...} +// // ... +// token, err := config.Exchange(ctx, ...) +// area120tablesService, err := area120tables.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) +// +// See https://godoc.org/google.golang.org/api/option/ for details on options. +package area120tables // import "google.golang.org/api/area120tables/v1alpha1" + +import ( + "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + googleapi "google.golang.org/api/googleapi" + gensupport "google.golang.org/api/internal/gensupport" + option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" + htransport "google.golang.org/api/transport/http" +) + +// Always reference these packages, just in case the auto-generated code +// below doesn't. +var _ = bytes.NewBuffer +var _ = strconv.Itoa +var _ = fmt.Sprintf +var _ = json.NewDecoder +var _ = io.Copy +var _ = url.Parse +var _ = gensupport.MarshalJSON +var _ = googleapi.Version +var _ = errors.New +var _ = strings.Replace +var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint + +const apiId = "area120tables:v1alpha1" +const apiName = "area120tables" +const apiVersion = "v1alpha1" +const basePath = "https://area120tables.googleapis.com/" +const mtlsBasePath = "https://area120tables.mtls.googleapis.com/" + +// OAuth2 scopes used by this API. +const ( + // See, edit, create, and delete all of your Google Drive files + DriveScope = "https://www.googleapis.com/auth/drive" + + // View and manage Google Drive files and folders that you have opened + // or created with this app + DriveFileScope = "https://www.googleapis.com/auth/drive.file" + + // See and download all your Google Drive files + DriveReadonlyScope = "https://www.googleapis.com/auth/drive.readonly" + + // See, edit, create, and delete your spreadsheets in Google Drive + SpreadsheetsScope = "https://www.googleapis.com/auth/spreadsheets" + + // View your Google Spreadsheets + SpreadsheetsReadonlyScope = "https://www.googleapis.com/auth/spreadsheets.readonly" +) + +// NewService creates a new Service. +func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + scopesOption := option.WithScopes( + "https://www.googleapis.com/auth/drive", + "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.readonly", + "https://www.googleapis.com/auth/spreadsheets", + "https://www.googleapis.com/auth/spreadsheets.readonly", + ) + // NOTE: prepend, so we don't override user-specified scopes. + opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + client, endpoint, err := htransport.NewClient(ctx, opts...) + if err != nil { + return nil, err + } + s, err := New(client) + if err != nil { + return nil, err + } + if endpoint != "" { + s.BasePath = endpoint + } + return s, nil +} + +// New creates a new Service. It uses the provided http.Client for requests. +// +// Deprecated: please use NewService instead. +// To provide a custom HTTP client, use option.WithHTTPClient. +// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. +func New(client *http.Client) (*Service, error) { + if client == nil { + return nil, errors.New("client is nil") + } + s := &Service{client: client, BasePath: basePath} + s.Tables = NewTablesService(s) + s.Workspaces = NewWorkspacesService(s) + return s, nil +} + +type Service struct { + client *http.Client + BasePath string // API endpoint base URL + UserAgent string // optional additional User-Agent fragment + + Tables *TablesService + + Workspaces *WorkspacesService +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewTablesService(s *Service) *TablesService { + rs := &TablesService{s: s} + rs.Rows = NewTablesRowsService(s) + return rs +} + +type TablesService struct { + s *Service + + Rows *TablesRowsService +} + +func NewTablesRowsService(s *Service) *TablesRowsService { + rs := &TablesRowsService{s: s} + return rs +} + +type TablesRowsService struct { + s *Service +} + +func NewWorkspacesService(s *Service) *WorkspacesService { + rs := &WorkspacesService{s: s} + return rs +} + +type WorkspacesService struct { + s *Service +} + +// BatchCreateRowsRequest: Request message for +// TablesService.BatchCreateRows. +type BatchCreateRowsRequest struct { + // Requests: Required. The request message specifying the rows to + // create. A maximum of 500 rows can be created in a single batch. + Requests []*CreateRowRequest `json:"requests,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Requests") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Requests") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *BatchCreateRowsRequest) MarshalJSON() ([]byte, error) { + type NoMethod BatchCreateRowsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// BatchCreateRowsResponse: Response message for +// TablesService.BatchCreateRows. +type BatchCreateRowsResponse struct { + // Rows: The created rows. + Rows []*Row `json:"rows,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Rows") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Rows") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *BatchCreateRowsResponse) MarshalJSON() ([]byte, error) { + type NoMethod BatchCreateRowsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// BatchUpdateRowsRequest: Request message for +// TablesService.BatchUpdateRows. +type BatchUpdateRowsRequest struct { + // Requests: Required. The request messages specifying the rows to + // update. A maximum of 500 rows can be modified in a single batch. + Requests []*UpdateRowRequest `json:"requests,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Requests") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Requests") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *BatchUpdateRowsRequest) MarshalJSON() ([]byte, error) { + type NoMethod BatchUpdateRowsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// BatchUpdateRowsResponse: Response message for +// TablesService.BatchUpdateRows. +type BatchUpdateRowsResponse struct { + // Rows: The updated rows. + Rows []*Row `json:"rows,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Rows") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Rows") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *BatchUpdateRowsResponse) MarshalJSON() ([]byte, error) { + type NoMethod BatchUpdateRowsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ColumnDescription: Details on a column in the table. +type ColumnDescription struct { + // DataType: Data type of the column Supported types are auto_id, + // boolean, boolean_list, creator, create_timestamp, date, dropdown, + // location, integer, integer_list, number, number_list, person, + // person_list, tags, check_list, text, text_list, update_timestamp, + // updater, relationship, file_attachment_list. These types directly map + // to the column types supported on Tables website. + DataType string `json:"dataType,omitempty"` + + // Id: Internal id for a column. + Id string `json:"id,omitempty"` + + // Labels: Optional. Range of labeled values for the column. Some + // columns like tags and drop-downs limit the values to a set of + // possible values. We return the range of values in such cases to help + // clients implement better user data validation. + Labels []*LabeledItem `json:"labels,omitempty"` + + // LookupDetails: Optional. Indicates that this is a lookup column whose + // value is derived from the relationship column specified in the + // details. Lookup columns can not be updated directly. To change the + // value you must update the associated relationship column. + LookupDetails *LookupDetails `json:"lookupDetails,omitempty"` + + // Name: column name + Name string `json:"name,omitempty"` + + // RelationshipDetails: Optional. Additional details about a + // relationship column. Specified when data_type is relationship. + RelationshipDetails *RelationshipDetails `json:"relationshipDetails,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DataType") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DataType") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ColumnDescription) MarshalJSON() ([]byte, error) { + type NoMethod ColumnDescription + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CreateRowRequest: Request message for TablesService.CreateRow. +type CreateRowRequest struct { + // Parent: Required. The parent table where this row will be created. + // Format: tables/{table} + Parent string `json:"parent,omitempty"` + + // Row: Required. The row to create. + Row *Row `json:"row,omitempty"` + + // View: Optional. Column key to use for values in the row. Defaults to + // user entered name. + // + // Possible values: + // "VIEW_UNSPECIFIED" - Defaults to user entered text. + // "COLUMN_ID_VIEW" - Uses internally generated column id to identify + // values. + View string `json:"view,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Parent") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Parent") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CreateRowRequest) MarshalJSON() ([]byte, error) { + type NoMethod CreateRowRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Empty: A generic empty message that you can re-use to avoid defining +// duplicated empty messages in your APIs. A typical example is to use +// it as the request or the response type of an API method. For +// instance: service Foo { rpc Bar(google.protobuf.Empty) returns +// (google.protobuf.Empty); } The JSON representation for `Empty` is +// empty JSON object `{}`. +type Empty struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// LabeledItem: A single item in a labeled column. +type LabeledItem struct { + // Id: Internal id associated with the item. + Id string `json:"id,omitempty"` + + // Name: Display string as entered by user. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Id") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Id") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *LabeledItem) MarshalJSON() ([]byte, error) { + type NoMethod LabeledItem + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListRowsResponse: Response message for TablesService.ListRows. +type ListRowsResponse struct { + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is empty, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Rows: The rows from the specified table. + Rows []*Row `json:"rows,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListRowsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListRowsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListTablesResponse: Response message for TablesService.ListTables. +type ListTablesResponse struct { + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is empty, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Tables: The list of tables. + Tables []*Table `json:"tables,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListTablesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListTablesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListWorkspacesResponse: Response message for +// TablesService.ListWorkspaces. +type ListWorkspacesResponse struct { + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is empty, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Workspaces: The list of workspaces. + Workspaces []*Workspace `json:"workspaces,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListWorkspacesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListWorkspacesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LookupDetails: Details about a lookup column whose value comes from +// the associated relationship. +type LookupDetails struct { + // RelationshipColumn: The name of the relationship column associated + // with the lookup. + RelationshipColumn string `json:"relationshipColumn,omitempty"` + + // RelationshipColumnId: The id of the relationship column. + RelationshipColumnId string `json:"relationshipColumnId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "RelationshipColumn") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "RelationshipColumn") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *LookupDetails) MarshalJSON() ([]byte, error) { + type NoMethod LookupDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RelationshipDetails: Details about a relationship column. +type RelationshipDetails struct { + // LinkedTable: The name of the table this relationship is linked to. + LinkedTable string `json:"linkedTable,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LinkedTable") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "LinkedTable") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RelationshipDetails) MarshalJSON() ([]byte, error) { + type NoMethod RelationshipDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Row: A single row in a table. +type Row struct { + // Name: The resource name of the row. Row names have the form + // `tables/{table}/rows/{row}`. The name is ignored when creating a row. + Name string `json:"name,omitempty"` + + // Values: The values of the row. This is a map of column key to value. + // Key is user entered name(default) or the internal column id based on + // the view in the request. + Values googleapi.RawMessage `json:"values,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Name") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Name") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Row) MarshalJSON() ([]byte, error) { + type NoMethod Row + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Table: A single table. +type Table struct { + // Columns: List of columns in this table. Order of columns matches the + // display order. + Columns []*ColumnDescription `json:"columns,omitempty"` + + // DisplayName: The human readable title of the table. + DisplayName string `json:"displayName,omitempty"` + + // Name: The resource name of the table. Table names have the form + // `tables/{table}`. + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Columns") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Columns") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Table) MarshalJSON() ([]byte, error) { + type NoMethod Table + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// UpdateRowRequest: Request message for TablesService.UpdateRow. +type UpdateRowRequest struct { + // Row: Required. The row to update. + Row *Row `json:"row,omitempty"` + + // UpdateMask: The list of fields to update. + UpdateMask string `json:"updateMask,omitempty"` + + // View: Optional. Column key to use for values in the row. Defaults to + // user entered name. + // + // Possible values: + // "VIEW_UNSPECIFIED" - Defaults to user entered text. + // "COLUMN_ID_VIEW" - Uses internally generated column id to identify + // values. + View string `json:"view,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Row") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Row") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *UpdateRowRequest) MarshalJSON() ([]byte, error) { + type NoMethod UpdateRowRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Workspace: A single workspace. +type Workspace struct { + // DisplayName: The human readable title of the workspace. + DisplayName string `json:"displayName,omitempty"` + + // Name: The resource name of the workspace. Workspace names have the + // form `workspaces/{workspace}`. + Name string `json:"name,omitempty"` + + // Tables: The list of tables in the workspace. + Tables []*Table `json:"tables,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisplayName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Workspace) MarshalJSON() ([]byte, error) { + type NoMethod Workspace + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "area120tables.tables.get": + +type TablesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a table. Returns NOT_FOUND if the table does not exist. +func (r *TablesService) Get(name string) *TablesGetCall { + c := &TablesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *TablesGetCall) Fields(s ...googleapi.Field) *TablesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *TablesGetCall) IfNoneMatch(entityTag string) *TablesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *TablesGetCall) Context(ctx context.Context) *TablesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *TablesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *TablesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "area120tables.tables.get" call. +// Exactly one of *Table or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Table.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *TablesGetCall) Do(opts ...googleapi.CallOption) (*Table, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Table{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a table. Returns NOT_FOUND if the table does not exist.", + // "flatPath": "v1alpha1/tables/{tablesId}", + // "httpMethod": "GET", + // "id": "area120tables.tables.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the table to retrieve. Format: tables/{table}", + // "location": "path", + // "pattern": "^tables/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha1/{+name}", + // "response": { + // "$ref": "Table" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/drive", + // "https://www.googleapis.com/auth/drive.file", + // "https://www.googleapis.com/auth/drive.readonly", + // "https://www.googleapis.com/auth/spreadsheets", + // "https://www.googleapis.com/auth/spreadsheets.readonly" + // ] + // } + +} + +// method id "area120tables.tables.list": + +type TablesListCall struct { + s *Service + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists tables for the user. +func (r *TablesService) List() *TablesListCall { + c := &TablesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of tables to return. The service may return fewer than this value. If +// unspecified, at most 20 tables are returned. The maximum value is +// 100; values above 100 are coerced to 100. +func (c *TablesListCall) PageSize(pageSize int64) *TablesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListTables` call. Provide this to retrieve +// the subsequent page. When paginating, all other parameters provided +// to `ListTables` must match the call that provided the page token. +func (c *TablesListCall) PageToken(pageToken string) *TablesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *TablesListCall) Fields(s ...googleapi.Field) *TablesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *TablesListCall) IfNoneMatch(entityTag string) *TablesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *TablesListCall) Context(ctx context.Context) *TablesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *TablesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *TablesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/tables") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "area120tables.tables.list" call. +// Exactly one of *ListTablesResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListTablesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *TablesListCall) Do(opts ...googleapi.CallOption) (*ListTablesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListTablesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists tables for the user.", + // "flatPath": "v1alpha1/tables", + // "httpMethod": "GET", + // "id": "area120tables.tables.list", + // "parameterOrder": [], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of tables to return. The service may return fewer than this value. If unspecified, at most 20 tables are returned. The maximum value is 100; values above 100 are coerced to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `ListTables` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListTables` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1alpha1/tables", + // "response": { + // "$ref": "ListTablesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/drive", + // "https://www.googleapis.com/auth/drive.file", + // "https://www.googleapis.com/auth/drive.readonly", + // "https://www.googleapis.com/auth/spreadsheets", + // "https://www.googleapis.com/auth/spreadsheets.readonly" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *TablesListCall) Pages(ctx context.Context, f func(*ListTablesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "area120tables.tables.rows.batchCreate": + +type TablesRowsBatchCreateCall struct { + s *Service + parent string + batchcreaterowsrequest *BatchCreateRowsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BatchCreate: Creates multiple rows. +func (r *TablesRowsService) BatchCreate(parent string, batchcreaterowsrequest *BatchCreateRowsRequest) *TablesRowsBatchCreateCall { + c := &TablesRowsBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.batchcreaterowsrequest = batchcreaterowsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *TablesRowsBatchCreateCall) Fields(s ...googleapi.Field) *TablesRowsBatchCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *TablesRowsBatchCreateCall) Context(ctx context.Context) *TablesRowsBatchCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *TablesRowsBatchCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *TablesRowsBatchCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.batchcreaterowsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/rows:batchCreate") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "area120tables.tables.rows.batchCreate" call. +// Exactly one of *BatchCreateRowsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *BatchCreateRowsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *TablesRowsBatchCreateCall) Do(opts ...googleapi.CallOption) (*BatchCreateRowsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &BatchCreateRowsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates multiple rows.", + // "flatPath": "v1alpha1/tables/{tablesId}/rows:batchCreate", + // "httpMethod": "POST", + // "id": "area120tables.tables.rows.batchCreate", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The parent table where the rows will be created. Format: tables/{table}", + // "location": "path", + // "pattern": "^tables/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha1/{+parent}/rows:batchCreate", + // "request": { + // "$ref": "BatchCreateRowsRequest" + // }, + // "response": { + // "$ref": "BatchCreateRowsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/drive", + // "https://www.googleapis.com/auth/drive.file", + // "https://www.googleapis.com/auth/spreadsheets" + // ] + // } + +} + +// method id "area120tables.tables.rows.batchUpdate": + +type TablesRowsBatchUpdateCall struct { + s *Service + parent string + batchupdaterowsrequest *BatchUpdateRowsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BatchUpdate: Updates multiple rows. +func (r *TablesRowsService) BatchUpdate(parent string, batchupdaterowsrequest *BatchUpdateRowsRequest) *TablesRowsBatchUpdateCall { + c := &TablesRowsBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.batchupdaterowsrequest = batchupdaterowsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *TablesRowsBatchUpdateCall) Fields(s ...googleapi.Field) *TablesRowsBatchUpdateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *TablesRowsBatchUpdateCall) Context(ctx context.Context) *TablesRowsBatchUpdateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *TablesRowsBatchUpdateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *TablesRowsBatchUpdateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.batchupdaterowsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/rows:batchUpdate") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "area120tables.tables.rows.batchUpdate" call. +// Exactly one of *BatchUpdateRowsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *BatchUpdateRowsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *TablesRowsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*BatchUpdateRowsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &BatchUpdateRowsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates multiple rows.", + // "flatPath": "v1alpha1/tables/{tablesId}/rows:batchUpdate", + // "httpMethod": "POST", + // "id": "area120tables.tables.rows.batchUpdate", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The parent table shared by all rows being updated. Format: tables/{table}", + // "location": "path", + // "pattern": "^tables/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha1/{+parent}/rows:batchUpdate", + // "request": { + // "$ref": "BatchUpdateRowsRequest" + // }, + // "response": { + // "$ref": "BatchUpdateRowsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/drive", + // "https://www.googleapis.com/auth/drive.file", + // "https://www.googleapis.com/auth/spreadsheets" + // ] + // } + +} + +// method id "area120tables.tables.rows.create": + +type TablesRowsCreateCall struct { + s *Service + parent string + row *Row + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a row. +func (r *TablesRowsService) Create(parent string, row *Row) *TablesRowsCreateCall { + c := &TablesRowsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.row = row + return c +} + +// View sets the optional parameter "view": Column key to use for values +// in the row. Defaults to user entered name. +// +// Possible values: +// "VIEW_UNSPECIFIED" - Defaults to user entered text. +// "COLUMN_ID_VIEW" - Uses internally generated column id to identify +// values. +func (c *TablesRowsCreateCall) View(view string) *TablesRowsCreateCall { + c.urlParams_.Set("view", view) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *TablesRowsCreateCall) Fields(s ...googleapi.Field) *TablesRowsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *TablesRowsCreateCall) Context(ctx context.Context) *TablesRowsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *TablesRowsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *TablesRowsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.row) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/rows") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "area120tables.tables.rows.create" call. +// Exactly one of *Row or error will be non-nil. Any non-2xx status code +// is an error. Response headers are in either +// *Row.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *TablesRowsCreateCall) Do(opts ...googleapi.CallOption) (*Row, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Row{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a row.", + // "flatPath": "v1alpha1/tables/{tablesId}/rows", + // "httpMethod": "POST", + // "id": "area120tables.tables.rows.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The parent table where this row will be created. Format: tables/{table}", + // "location": "path", + // "pattern": "^tables/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "view": { + // "description": "Optional. Column key to use for values in the row. Defaults to user entered name.", + // "enum": [ + // "VIEW_UNSPECIFIED", + // "COLUMN_ID_VIEW" + // ], + // "enumDescriptions": [ + // "Defaults to user entered text.", + // "Uses internally generated column id to identify values." + // ], + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1alpha1/{+parent}/rows", + // "request": { + // "$ref": "Row" + // }, + // "response": { + // "$ref": "Row" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/drive", + // "https://www.googleapis.com/auth/drive.file", + // "https://www.googleapis.com/auth/spreadsheets" + // ] + // } + +} + +// method id "area120tables.tables.rows.delete": + +type TablesRowsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a row. +func (r *TablesRowsService) Delete(name string) *TablesRowsDeleteCall { + c := &TablesRowsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *TablesRowsDeleteCall) Fields(s ...googleapi.Field) *TablesRowsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *TablesRowsDeleteCall) Context(ctx context.Context) *TablesRowsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *TablesRowsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *TablesRowsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "area120tables.tables.rows.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *TablesRowsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a row.", + // "flatPath": "v1alpha1/tables/{tablesId}/rows/{rowsId}", + // "httpMethod": "DELETE", + // "id": "area120tables.tables.rows.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the row to delete. Format: tables/{table}/rows/{row}", + // "location": "path", + // "pattern": "^tables/[^/]+/rows/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha1/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/drive", + // "https://www.googleapis.com/auth/drive.file", + // "https://www.googleapis.com/auth/spreadsheets" + // ] + // } + +} + +// method id "area120tables.tables.rows.get": + +type TablesRowsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a row. Returns NOT_FOUND if the row does not exist in the +// table. +func (r *TablesRowsService) Get(name string) *TablesRowsGetCall { + c := &TablesRowsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// View sets the optional parameter "view": Column key to use for values +// in the row. Defaults to user entered name. +// +// Possible values: +// "VIEW_UNSPECIFIED" - Defaults to user entered text. +// "COLUMN_ID_VIEW" - Uses internally generated column id to identify +// values. +func (c *TablesRowsGetCall) View(view string) *TablesRowsGetCall { + c.urlParams_.Set("view", view) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *TablesRowsGetCall) Fields(s ...googleapi.Field) *TablesRowsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *TablesRowsGetCall) IfNoneMatch(entityTag string) *TablesRowsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *TablesRowsGetCall) Context(ctx context.Context) *TablesRowsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *TablesRowsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *TablesRowsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "area120tables.tables.rows.get" call. +// Exactly one of *Row or error will be non-nil. Any non-2xx status code +// is an error. Response headers are in either +// *Row.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *TablesRowsGetCall) Do(opts ...googleapi.CallOption) (*Row, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Row{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a row. Returns NOT_FOUND if the row does not exist in the table.", + // "flatPath": "v1alpha1/tables/{tablesId}/rows/{rowsId}", + // "httpMethod": "GET", + // "id": "area120tables.tables.rows.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the row to retrieve. Format: tables/{table}/rows/{row}", + // "location": "path", + // "pattern": "^tables/[^/]+/rows/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "view": { + // "description": "Optional. Column key to use for values in the row. Defaults to user entered name.", + // "enum": [ + // "VIEW_UNSPECIFIED", + // "COLUMN_ID_VIEW" + // ], + // "enumDescriptions": [ + // "Defaults to user entered text.", + // "Uses internally generated column id to identify values." + // ], + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1alpha1/{+name}", + // "response": { + // "$ref": "Row" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/drive", + // "https://www.googleapis.com/auth/drive.file", + // "https://www.googleapis.com/auth/drive.readonly", + // "https://www.googleapis.com/auth/spreadsheets", + // "https://www.googleapis.com/auth/spreadsheets.readonly" + // ] + // } + +} + +// method id "area120tables.tables.rows.list": + +type TablesRowsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists rows in a table. Returns NOT_FOUND if the table does not +// exist. +func (r *TablesRowsService) List(parent string) *TablesRowsListCall { + c := &TablesRowsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of rows to return. The service may return fewer than this value. If +// unspecified, at most 50 rows are returned. The maximum value is +// 1,000; values above 1,000 are coerced to 1,000. +func (c *TablesRowsListCall) PageSize(pageSize int64) *TablesRowsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListRows` call. Provide this to retrieve +// the subsequent page. When paginating, all other parameters provided +// to `ListRows` must match the call that provided the page token. +func (c *TablesRowsListCall) PageToken(pageToken string) *TablesRowsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// View sets the optional parameter "view": Column key to use for values +// in the row. Defaults to user entered name. +// +// Possible values: +// "VIEW_UNSPECIFIED" - Defaults to user entered text. +// "COLUMN_ID_VIEW" - Uses internally generated column id to identify +// values. +func (c *TablesRowsListCall) View(view string) *TablesRowsListCall { + c.urlParams_.Set("view", view) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *TablesRowsListCall) Fields(s ...googleapi.Field) *TablesRowsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *TablesRowsListCall) IfNoneMatch(entityTag string) *TablesRowsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *TablesRowsListCall) Context(ctx context.Context) *TablesRowsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *TablesRowsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *TablesRowsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/rows") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "area120tables.tables.rows.list" call. +// Exactly one of *ListRowsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListRowsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *TablesRowsListCall) Do(opts ...googleapi.CallOption) (*ListRowsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListRowsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists rows in a table. Returns NOT_FOUND if the table does not exist.", + // "flatPath": "v1alpha1/tables/{tablesId}/rows", + // "httpMethod": "GET", + // "id": "area120tables.tables.rows.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of rows to return. The service may return fewer than this value. If unspecified, at most 50 rows are returned. The maximum value is 1,000; values above 1,000 are coerced to 1,000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `ListRows` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRows` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent table. Format: tables/{table}", + // "location": "path", + // "pattern": "^tables/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "view": { + // "description": "Optional. Column key to use for values in the row. Defaults to user entered name.", + // "enum": [ + // "VIEW_UNSPECIFIED", + // "COLUMN_ID_VIEW" + // ], + // "enumDescriptions": [ + // "Defaults to user entered text.", + // "Uses internally generated column id to identify values." + // ], + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1alpha1/{+parent}/rows", + // "response": { + // "$ref": "ListRowsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/drive", + // "https://www.googleapis.com/auth/drive.file", + // "https://www.googleapis.com/auth/drive.readonly", + // "https://www.googleapis.com/auth/spreadsheets", + // "https://www.googleapis.com/auth/spreadsheets.readonly" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *TablesRowsListCall) Pages(ctx context.Context, f func(*ListRowsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "area120tables.tables.rows.patch": + +type TablesRowsPatchCall struct { + s *Service + name string + row *Row + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a row. +func (r *TablesRowsService) Patch(name string, row *Row) *TablesRowsPatchCall { + c := &TablesRowsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.row = row + return c +} + +// UpdateMask sets the optional parameter "updateMask": The list of +// fields to update. +func (c *TablesRowsPatchCall) UpdateMask(updateMask string) *TablesRowsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// View sets the optional parameter "view": Column key to use for values +// in the row. Defaults to user entered name. +// +// Possible values: +// "VIEW_UNSPECIFIED" - Defaults to user entered text. +// "COLUMN_ID_VIEW" - Uses internally generated column id to identify +// values. +func (c *TablesRowsPatchCall) View(view string) *TablesRowsPatchCall { + c.urlParams_.Set("view", view) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *TablesRowsPatchCall) Fields(s ...googleapi.Field) *TablesRowsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *TablesRowsPatchCall) Context(ctx context.Context) *TablesRowsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *TablesRowsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *TablesRowsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.row) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "area120tables.tables.rows.patch" call. +// Exactly one of *Row or error will be non-nil. Any non-2xx status code +// is an error. Response headers are in either +// *Row.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *TablesRowsPatchCall) Do(opts ...googleapi.CallOption) (*Row, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Row{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a row.", + // "flatPath": "v1alpha1/tables/{tablesId}/rows/{rowsId}", + // "httpMethod": "PATCH", + // "id": "area120tables.tables.rows.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The resource name of the row. Row names have the form `tables/{table}/rows/{row}`. The name is ignored when creating a row.", + // "location": "path", + // "pattern": "^tables/[^/]+/rows/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "The list of fields to update.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // }, + // "view": { + // "description": "Optional. Column key to use for values in the row. Defaults to user entered name.", + // "enum": [ + // "VIEW_UNSPECIFIED", + // "COLUMN_ID_VIEW" + // ], + // "enumDescriptions": [ + // "Defaults to user entered text.", + // "Uses internally generated column id to identify values." + // ], + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1alpha1/{+name}", + // "request": { + // "$ref": "Row" + // }, + // "response": { + // "$ref": "Row" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/drive", + // "https://www.googleapis.com/auth/drive.file", + // "https://www.googleapis.com/auth/spreadsheets" + // ] + // } + +} + +// method id "area120tables.workspaces.get": + +type WorkspacesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a workspace. Returns NOT_FOUND if the workspace does not +// exist. +func (r *WorkspacesService) Get(name string) *WorkspacesGetCall { + c := &WorkspacesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *WorkspacesGetCall) Fields(s ...googleapi.Field) *WorkspacesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *WorkspacesGetCall) IfNoneMatch(entityTag string) *WorkspacesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *WorkspacesGetCall) Context(ctx context.Context) *WorkspacesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *WorkspacesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *WorkspacesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "area120tables.workspaces.get" call. +// Exactly one of *Workspace or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Workspace.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *WorkspacesGetCall) Do(opts ...googleapi.CallOption) (*Workspace, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Workspace{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a workspace. Returns NOT_FOUND if the workspace does not exist.", + // "flatPath": "v1alpha1/workspaces/{workspacesId}", + // "httpMethod": "GET", + // "id": "area120tables.workspaces.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the workspace to retrieve. Format: workspaces/{workspace}", + // "location": "path", + // "pattern": "^workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha1/{+name}", + // "response": { + // "$ref": "Workspace" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/drive", + // "https://www.googleapis.com/auth/drive.file", + // "https://www.googleapis.com/auth/drive.readonly", + // "https://www.googleapis.com/auth/spreadsheets", + // "https://www.googleapis.com/auth/spreadsheets.readonly" + // ] + // } + +} + +// method id "area120tables.workspaces.list": + +type WorkspacesListCall struct { + s *Service + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists workspaces for the user. +func (r *WorkspacesService) List() *WorkspacesListCall { + c := &WorkspacesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of workspaces to return. The service may return fewer than this +// value. If unspecified, at most 10 workspaces are returned. The +// maximum value is 25; values above 25 are coerced to 25. +func (c *WorkspacesListCall) PageSize(pageSize int64) *WorkspacesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListWorkspaces` call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// provided to `ListWorkspaces` must match the call that provided the +// page token. +func (c *WorkspacesListCall) PageToken(pageToken string) *WorkspacesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *WorkspacesListCall) Fields(s ...googleapi.Field) *WorkspacesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *WorkspacesListCall) IfNoneMatch(entityTag string) *WorkspacesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *WorkspacesListCall) Context(ctx context.Context) *WorkspacesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *WorkspacesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *WorkspacesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/workspaces") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "area120tables.workspaces.list" call. +// Exactly one of *ListWorkspacesResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListWorkspacesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *WorkspacesListCall) Do(opts ...googleapi.CallOption) (*ListWorkspacesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListWorkspacesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists workspaces for the user.", + // "flatPath": "v1alpha1/workspaces", + // "httpMethod": "GET", + // "id": "area120tables.workspaces.list", + // "parameterOrder": [], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of workspaces to return. The service may return fewer than this value. If unspecified, at most 10 workspaces are returned. The maximum value is 25; values above 25 are coerced to 25.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `ListWorkspaces` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListWorkspaces` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1alpha1/workspaces", + // "response": { + // "$ref": "ListWorkspacesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/drive", + // "https://www.googleapis.com/auth/drive.file", + // "https://www.googleapis.com/auth/drive.readonly", + // "https://www.googleapis.com/auth/spreadsheets", + // "https://www.googleapis.com/auth/spreadsheets.readonly" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *WorkspacesListCall) Pages(ctx context.Context, f func(*ListWorkspacesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} diff --git a/artifactregistry/v1beta1/artifactregistry-api.json b/artifactregistry/v1beta1/artifactregistry-api.json index cc959fc407b..53e30e6ab9f 100644 --- a/artifactregistry/v1beta1/artifactregistry-api.json +++ b/artifactregistry/v1beta1/artifactregistry-api.json @@ -966,17 +966,13 @@ } } }, - "revision": "20201009", + "revision": "20201107", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "Binding": { "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { - "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", - "type": "string" - }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." diff --git a/artifactregistry/v1beta1/artifactregistry-gen.go b/artifactregistry/v1beta1/artifactregistry-gen.go index 1f82d4924b1..1f30497b1bb 100644 --- a/artifactregistry/v1beta1/artifactregistry-gen.go +++ b/artifactregistry/v1beta1/artifactregistry-gen.go @@ -238,10 +238,6 @@ type ProjectsLocationsRepositoriesPackagesVersionsService struct { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. - BindingId string `json:"bindingId,omitempty"` - // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -291,7 +287,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "BindingId") to + // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -299,7 +295,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BindingId") to include in + // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -1468,7 +1464,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1635,7 +1631,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1819,7 +1815,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1994,7 +1990,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2176,7 +2172,7 @@ func (c *ProjectsLocationsRepositoriesCreateCall) Header() http.Header { func (c *ProjectsLocationsRepositoriesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2322,7 +2318,7 @@ func (c *ProjectsLocationsRepositoriesDeleteCall) Header() http.Header { func (c *ProjectsLocationsRepositoriesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2463,7 +2459,7 @@ func (c *ProjectsLocationsRepositoriesGetCall) Header() http.Header { func (c *ProjectsLocationsRepositoriesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2623,7 +2619,7 @@ func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2788,7 +2784,7 @@ func (c *ProjectsLocationsRepositoriesListCall) Header() http.Header { func (c *ProjectsLocationsRepositoriesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2964,7 +2960,7 @@ func (c *ProjectsLocationsRepositoriesPatchCall) Header() http.Header { func (c *ProjectsLocationsRepositoriesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3110,7 +3106,7 @@ func (c *ProjectsLocationsRepositoriesSetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsRepositoriesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3251,7 +3247,7 @@ func (c *ProjectsLocationsRepositoriesTestIamPermissionsCall) Header() http.Head func (c *ProjectsLocationsRepositoriesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3401,7 +3397,7 @@ func (c *ProjectsLocationsRepositoriesFilesGetCall) Header() http.Header { func (c *ProjectsLocationsRepositoriesFilesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3574,7 +3570,7 @@ func (c *ProjectsLocationsRepositoriesFilesListCall) Header() http.Header { func (c *ProjectsLocationsRepositoriesFilesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3746,7 +3742,7 @@ func (c *ProjectsLocationsRepositoriesPackagesDeleteCall) Header() http.Header { func (c *ProjectsLocationsRepositoriesPackagesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3887,7 +3883,7 @@ func (c *ProjectsLocationsRepositoriesPackagesGetCall) Header() http.Header { func (c *ProjectsLocationsRepositoriesPackagesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4046,7 +4042,7 @@ func (c *ProjectsLocationsRepositoriesPackagesListCall) Header() http.Header { func (c *ProjectsLocationsRepositoriesPackagesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4221,7 +4217,7 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsCreateCall) Header() http.Head func (c *ProjectsLocationsRepositoriesPackagesTagsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4364,7 +4360,7 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsDeleteCall) Header() http.Head func (c *ProjectsLocationsRepositoriesPackagesTagsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4505,7 +4501,7 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsGetCall) Header() http.Header func (c *ProjectsLocationsRepositoriesPackagesTagsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4676,7 +4672,7 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) Header() http.Header func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4857,7 +4853,7 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsPatchCall) Header() http.Heade func (c *ProjectsLocationsRepositoriesPackagesTagsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5010,7 +5006,7 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall) Header() http. func (c *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5170,7 +5166,7 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsGetCall) Header() http.Hea func (c *ProjectsLocationsRepositoriesPackagesVersionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5358,7 +5354,7 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) Header() http.He func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/artifactregistry/v1beta2/artifactregistry-api.json b/artifactregistry/v1beta2/artifactregistry-api.json new file mode 100644 index 00000000000..0ad28ab5663 --- /dev/null +++ b/artifactregistry/v1beta2/artifactregistry-api.json @@ -0,0 +1,1573 @@ +{ + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/cloud-platform": { + "description": "View and manage your data across Google Cloud Platform services" + }, + "https://www.googleapis.com/auth/cloud-platform.read-only": { + "description": "View your data across Google Cloud Platform services" + } + } + } + }, + "basePath": "", + "baseUrl": "https://artifactregistry.googleapis.com/", + "batchPath": "batch", + "canonicalName": "Artifact Registry", + "description": "Store and manage build artifacts in a scalable and integrated service built on Google infrastructure.", + "discoveryVersion": "v1", + "documentationLink": "https://cloud.google.com/artifacts/docs/", + "fullyEncodeReservedExpansion": true, + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "id": "artifactregistry:v1beta2", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://artifactregistry.mtls.googleapis.com/", + "name": "artifactregistry", + "ownerDomain": "google.com", + "ownerName": "Google", + "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, + "alt": { + "default": "json", + "description": "Data format for response.", + "enum": [ + "json", + "media", + "proto" + ], + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query", + "type": "string" + }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, + "fields": { + "description": "Selector specifying which fields to include in a partial response.", + "location": "query", + "type": "string" + }, + "key": { + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "location": "query", + "type": "string" + }, + "oauth_token": { + "description": "OAuth 2.0 token for the current user.", + "location": "query", + "type": "string" + }, + "prettyPrint": { + "default": "true", + "description": "Returns response with indentations and line breaks.", + "location": "query", + "type": "boolean" + }, + "quotaUser": { + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query", + "type": "string" + }, + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query", + "type": "string" + } + }, + "protocol": "rest", + "resources": { + "projects": { + "resources": { + "locations": { + "methods": { + "get": { + "description": "Gets information about a location.", + "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}", + "httpMethod": "GET", + "id": "artifactregistry.projects.locations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Resource name for the location.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta2/{+name}", + "response": { + "$ref": "Location" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "list": { + "description": "Lists information about the supported locations for this service.", + "flatPath": "v1beta2/projects/{projectsId}/locations", + "httpMethod": "GET", + "id": "artifactregistry.projects.locations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The resource that owns the locations collection, if applicable.", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta2/{+name}/locations", + "response": { + "$ref": "ListLocationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + } + }, + "resources": { + "operations": { + "methods": { + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "artifactregistry.projects.locations.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta2/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/operations", + "httpMethod": "GET", + "id": "artifactregistry.projects.locations.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta2/{+name}/operations", + "response": { + "$ref": "ListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + } + } + }, + "repositories": { + "methods": { + "create": { + "description": "Creates a repository. The returned Operation will finish once the repository has been created. Its response will be the created Repository.", + "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories", + "httpMethod": "POST", + "id": "artifactregistry.projects.locations.repositories.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "The name of the parent resource where the repository will be created.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "repositoryId": { + "description": "The repository id to use for this repository.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta2/{+parent}/repositories", + "request": { + "$ref": "Repository" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a repository and all of its contents. The returned Operation will finish once the repository has been deleted. It will not have any Operation metadata and will return a google.protobuf.Empty response.", + "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}", + "httpMethod": "DELETE", + "id": "artifactregistry.projects.locations.repositories.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the repository to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta2/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a repository.", + "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}", + "httpMethod": "GET", + "id": "artifactregistry.projects.locations.repositories.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the repository to retrieve.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta2/{+name}", + "response": { + "$ref": "Repository" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "getIamPolicy": { + "description": "Gets the IAM policy for a given resource.", + "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:getIamPolicy", + "httpMethod": "GET", + "id": "artifactregistry.projects.locations.repositories.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta2/{+resource}:getIamPolicy", + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "list": { + "description": "Lists repositories.", + "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories", + "httpMethod": "GET", + "id": "artifactregistry.projects.locations.repositories.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of repositories to return. Maximum page size is 10,000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The next_page_token value returned from a previous list request, if any.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "The name of the parent resource whose repositories will be listed.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta2/{+parent}/repositories", + "response": { + "$ref": "ListRepositoriesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "patch": { + "description": "Updates a repository.", + "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}", + "httpMethod": "PATCH", + "id": "artifactregistry.projects.locations.repositories.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the repository, for example: \"projects/p1/locations/us-central1/repositories/repo1\".", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta2/{+name}", + "request": { + "$ref": "Repository" + }, + "response": { + "$ref": "Repository" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Updates the IAM policy for a given resource.", + "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:setIamPolicy", + "httpMethod": "POST", + "id": "artifactregistry.projects.locations.repositories.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta2/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Tests if the caller has a list of permissions on a resource.", + "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:testIamPermissions", + "httpMethod": "POST", + "id": "artifactregistry.projects.locations.repositories.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta2/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + } + }, + "resources": { + "files": { + "methods": { + "get": { + "description": "Gets a file.", + "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/files/{filesId}", + "httpMethod": "GET", + "id": "artifactregistry.projects.locations.repositories.files.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the file to retrieve.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/files/.*$", + "required": true, + "type": "string" + } + }, + "path": "v1beta2/{+name}", + "response": { + "$ref": "File" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "list": { + "description": "Lists files.", + "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/files", + "httpMethod": "GET", + "id": "artifactregistry.projects.locations.repositories.files.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are: * `name` * `owner` An example of using a filter: * `name=\"projects/p1/locations/us-central1/repositories/repo1/files/a/b/*\"` --\u003e Files with an ID starting with \"a/b/\". * `owner=\"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0\"` --\u003e Files owned by the version `1.0` in package `pkg1`.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of files to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The next_page_token value returned from a previous list request, if any.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "The name of the parent resource whose files will be listed.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta2/{+parent}/files", + "response": { + "$ref": "ListFilesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + } + } + }, + "packages": { + "methods": { + "delete": { + "description": "Deletes a package and all of its versions and tags. The returned operation will complete once the package has been deleted.", + "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}", + "httpMethod": "DELETE", + "id": "artifactregistry.projects.locations.repositories.packages.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the package to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta2/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a package.", + "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}", + "httpMethod": "GET", + "id": "artifactregistry.projects.locations.repositories.packages.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the package to retrieve.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta2/{+name}", + "response": { + "$ref": "Package" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "list": { + "description": "Lists packages.", + "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages", + "httpMethod": "GET", + "id": "artifactregistry.projects.locations.repositories.packages.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of packages to return. Maximum page size is 10,000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The next_page_token value returned from a previous list request, if any.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "The name of the parent resource whose packages will be listed.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta2/{+parent}/packages", + "response": { + "$ref": "ListPackagesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + } + }, + "resources": { + "tags": { + "methods": { + "create": { + "description": "Creates a tag.", + "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/tags", + "httpMethod": "POST", + "id": "artifactregistry.projects.locations.repositories.packages.tags.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "The name of the parent resource where the tag will be created.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+$", + "required": true, + "type": "string" + }, + "tagId": { + "description": "The tag id to use for this repository.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta2/{+parent}/tags", + "request": { + "$ref": "Tag" + }, + "response": { + "$ref": "Tag" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a tag.", + "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/tags/{tagsId}", + "httpMethod": "DELETE", + "id": "artifactregistry.projects.locations.repositories.packages.tags.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the tag to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+/tags/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta2/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a tag.", + "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/tags/{tagsId}", + "httpMethod": "GET", + "id": "artifactregistry.projects.locations.repositories.packages.tags.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the tag to retrieve.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+/tags/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta2/{+name}", + "response": { + "$ref": "Tag" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "list": { + "description": "Lists tags.", + "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/tags", + "httpMethod": "GET", + "id": "artifactregistry.projects.locations.repositories.packages.tags.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are: * `version` An example of using a filter: * `version=\"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0\"` --\u003e Tags that are applied to the version `1.0` in package `pkg1`.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of tags to return. Maximum page size is 10,000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The next_page_token value returned from a previous list request, if any.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "The name of the parent resource whose tags will be listed.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta2/{+parent}/tags", + "response": { + "$ref": "ListTagsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "patch": { + "description": "Updates a tag.", + "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/tags/{tagsId}", + "httpMethod": "PATCH", + "id": "artifactregistry.projects.locations.repositories.packages.tags.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the tag, for example: \"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1\".", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+/tags/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta2/{+name}", + "request": { + "$ref": "Tag" + }, + "response": { + "$ref": "Tag" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "versions": { + "methods": { + "delete": { + "description": "Deletes a version and all of its content. The returned operation will complete once the version has been deleted.", + "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/versions/{versionsId}", + "httpMethod": "DELETE", + "id": "artifactregistry.projects.locations.repositories.packages.versions.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "force": { + "description": "By default, a version that is tagged may not be deleted. If force=true, the version and any tags pointing to the version are deleted.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "The name of the version to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta2/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a version", + "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/versions/{versionsId}", + "httpMethod": "GET", + "id": "artifactregistry.projects.locations.repositories.packages.versions.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the version to retrieve.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + }, + "view": { + "description": "The view that should be returned in the response.", + "enum": [ + "VERSION_VIEW_UNSPECIFIED", + "BASIC", + "FULL" + ], + "enumDescriptions": [ + "The default / unset value. The API will default to the BASIC view.", + "Includes basic information about the version, but not any related tags.", + "Include everything." + ], + "location": "query", + "type": "string" + } + }, + "path": "v1beta2/{+name}", + "response": { + "$ref": "Version" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "list": { + "description": "Lists versions.", + "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/versions", + "httpMethod": "GET", + "id": "artifactregistry.projects.locations.repositories.packages.versions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of versions to return. Maximum page size is 10,000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The next_page_token value returned from a previous list request, if any.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "The name of the parent resource whose versions will be listed.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+$", + "required": true, + "type": "string" + }, + "view": { + "description": "The view that should be returned in the response.", + "enum": [ + "VERSION_VIEW_UNSPECIFIED", + "BASIC", + "FULL" + ], + "enumDescriptions": [ + "The default / unset value. The API will default to the BASIC view.", + "Includes basic information about the version, but not any related tags.", + "Include everything." + ], + "location": "query", + "type": "string" + } + }, + "path": "v1beta2/{+parent}/versions", + "response": { + "$ref": "ListVersionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + } + } + } + } + } + } + } + } + } + } + } + }, + "revision": "20201107", + "rootUrl": "https://artifactregistry.googleapis.com/", + "schemas": { + "Binding": { + "description": "Associates `members` with a `role`.", + "id": "Binding", + "properties": { + "condition": { + "$ref": "Expr", + "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." + }, + "members": { + "description": "Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "items": { + "type": "string" + }, + "type": "array" + }, + "role": { + "description": "Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", + "type": "string" + } + }, + "type": "object" + }, + "Empty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "id": "Empty", + "properties": {}, + "type": "object" + }, + "Expr": { + "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", + "id": "Expr", + "properties": { + "description": { + "description": "Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.", + "type": "string" + }, + "expression": { + "description": "Textual representation of an expression in Common Expression Language syntax.", + "type": "string" + }, + "location": { + "description": "Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.", + "type": "string" + }, + "title": { + "description": "Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.", + "type": "string" + } + }, + "type": "object" + }, + "File": { + "description": "Files store content that is potentially associated with Packages or Versions.", + "id": "File", + "properties": { + "createTime": { + "description": "The time when the File was created.", + "format": "google-datetime", + "type": "string" + }, + "hashes": { + "description": "The hashes of the file content.", + "items": { + "$ref": "Hash" + }, + "type": "array" + }, + "name": { + "description": "The name of the file, for example: \"projects/p1/locations/us-central1/repositories/repo1/files/a/b/c.txt\".", + "type": "string" + }, + "owner": { + "description": "The name of the Package or Version that owns this file, if any.", + "type": "string" + }, + "sizeBytes": { + "description": "The size of the File in bytes.", + "format": "int64", + "type": "string" + }, + "updateTime": { + "description": "The time when the File was last updated.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "GoogleDevtoolsArtifactregistryV1alpha1ErrorInfo": { + "description": "Error information explaining why a package was not imported.", + "id": "GoogleDevtoolsArtifactregistryV1alpha1ErrorInfo", + "properties": { + "error": { + "$ref": "Status", + "description": "The detailed error status." + }, + "gcsSource": { + "$ref": "GoogleDevtoolsArtifactregistryV1alpha1GcsSource", + "description": "Google Cloud Storage location requested." + } + }, + "type": "object" + }, + "GoogleDevtoolsArtifactregistryV1alpha1GcsSource": { + "description": "Google Cloud Storage location for the input content.", + "id": "GoogleDevtoolsArtifactregistryV1alpha1GcsSource", + "properties": { + "uris": { + "description": "Cloud Storage paths URI (e.g., gs://my_bucket//my_object).", + "items": { + "type": "string" + }, + "type": "array" + }, + "useWildcards": { + "description": "Supports URI wildcards for matching multiple objects from a single URI.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleDevtoolsArtifactregistryV1alpha1ImportArtifactsResponse": { + "description": "The response message from importing artifacts.", + "id": "GoogleDevtoolsArtifactregistryV1alpha1ImportArtifactsResponse", + "properties": { + "errors": { + "description": "Detailed error info for packages that were not imported.", + "items": { + "$ref": "GoogleDevtoolsArtifactregistryV1alpha1ErrorInfo" + }, + "type": "array" + }, + "packages": { + "description": "The packages updated.", + "items": { + "$ref": "GoogleDevtoolsArtifactregistryV1alpha1Package" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleDevtoolsArtifactregistryV1alpha1Package": { + "description": "Packages are named collections of versions.", + "id": "GoogleDevtoolsArtifactregistryV1alpha1Package", + "properties": { + "createTime": { + "description": "The time when the package was created.", + "format": "google-datetime", + "type": "string" + }, + "displayName": { + "description": "The display name of the package.", + "type": "string" + }, + "name": { + "description": "The name of the package, for example: \"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1\".", + "type": "string" + }, + "updateTime": { + "description": "The time when the package was last updated. This includes publishing a new version of the package.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "Hash": { + "description": "A hash of file content.", + "id": "Hash", + "properties": { + "type": { + "description": "The algorithm used to compute the hash value.", + "enum": [ + "HASH_TYPE_UNSPECIFIED", + "SHA256" + ], + "enumDescriptions": [ + "Unspecified.", + "SHA256 hash." + ], + "type": "string" + }, + "value": { + "description": "The hash value.", + "format": "byte", + "type": "string" + } + }, + "type": "object" + }, + "ListFilesResponse": { + "description": "The response from listing files.", + "id": "ListFilesResponse", + "properties": { + "files": { + "description": "The files returned.", + "items": { + "$ref": "File" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The token to retrieve the next page of files, or empty if there are no more files to return.", + "type": "string" + } + }, + "type": "object" + }, + "ListLocationsResponse": { + "description": "The response message for Locations.ListLocations.", + "id": "ListLocationsResponse", + "properties": { + "locations": { + "description": "A list of locations that matches the specified filter in the request.", + "items": { + "$ref": "Location" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + } + }, + "type": "object" + }, + "ListOperationsResponse": { + "description": "The response message for Operations.ListOperations.", + "id": "ListOperationsResponse", + "properties": { + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + }, + "operations": { + "description": "A list of operations that matches the specified filter in the request.", + "items": { + "$ref": "Operation" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListPackagesResponse": { + "description": "The response from listing packages.", + "id": "ListPackagesResponse", + "properties": { + "nextPageToken": { + "description": "The token to retrieve the next page of packages, or empty if there are no more packages to return.", + "type": "string" + }, + "packages": { + "description": "The packages returned.", + "items": { + "$ref": "Package" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListRepositoriesResponse": { + "description": "The response from listing repositories.", + "id": "ListRepositoriesResponse", + "properties": { + "nextPageToken": { + "description": "The token to retrieve the next page of repositories, or empty if there are no more repositories to return.", + "type": "string" + }, + "repositories": { + "description": "The repositories returned.", + "items": { + "$ref": "Repository" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListTagsResponse": { + "description": "The response from listing tags.", + "id": "ListTagsResponse", + "properties": { + "nextPageToken": { + "description": "The token to retrieve the next page of tags, or empty if there are no more tags to return.", + "type": "string" + }, + "tags": { + "description": "The tags returned.", + "items": { + "$ref": "Tag" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListVersionsResponse": { + "description": "The response from listing versions.", + "id": "ListVersionsResponse", + "properties": { + "nextPageToken": { + "description": "The token to retrieve the next page of versions, or empty if there are no more versions to return.", + "type": "string" + }, + "versions": { + "description": "The versions returned.", + "items": { + "$ref": "Version" + }, + "type": "array" + } + }, + "type": "object" + }, + "Location": { + "description": "A resource that represents Google Cloud Platform location.", + "id": "Location", + "properties": { + "displayName": { + "description": "The friendly name for this location, typically a nearby city name. For example, \"Tokyo\".", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Cross-service attributes for the location. For example {\"cloud.googleapis.com/region\": \"us-east1\"}", + "type": "object" + }, + "locationId": { + "description": "The canonical id for this location. For example: `\"us-east1\"`.", + "type": "string" + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata. For example the available capacity at the given location.", + "type": "object" + }, + "name": { + "description": "Resource name for the location, which may vary between implementations. For example: `\"projects/example-project/locations/us-east1\"`", + "type": "string" + } + }, + "type": "object" + }, + "Operation": { + "description": "This resource represents a long-running operation that is the result of a network API call.", + "id": "Operation", + "properties": { + "done": { + "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", + "type": "boolean" + }, + "error": { + "$ref": "Status", + "description": "The error result of the operation in case of failure or cancellation." + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "type": "object" + }, + "name": { + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", + "type": "string" + }, + "response": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "type": "object" + } + }, + "type": "object" + }, + "Package": { + "description": "Packages are named collections of versions.", + "id": "Package", + "properties": { + "createTime": { + "description": "The time when the package was created.", + "format": "google-datetime", + "type": "string" + }, + "displayName": { + "description": "The display name of the package.", + "type": "string" + }, + "name": { + "description": "The name of the package, for example: \"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1\".", + "type": "string" + }, + "updateTime": { + "description": "The time when the package was last updated. This includes publishing a new version of the package.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "Policy": { + "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", + "id": "Policy", + "properties": { + "bindings": { + "description": "Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.", + "items": { + "$ref": "Binding" + }, + "type": "array" + }, + "etag": { + "description": "`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.", + "format": "byte", + "type": "string" + }, + "version": { + "description": "Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "Repository": { + "description": "A Repository for storing artifacts with a specific format.", + "id": "Repository", + "properties": { + "createTime": { + "description": "The time when the repository was created.", + "format": "google-datetime", + "type": "string" + }, + "description": { + "description": "The user-provided description of the repository.", + "type": "string" + }, + "format": { + "description": "The format of packages that are stored in the repository.", + "enum": [ + "FORMAT_UNSPECIFIED", + "DOCKER" + ], + "enumDescriptions": [ + "Unspecified package format.", + "Docker package format." + ], + "type": "string" + }, + "kmsKeyName": { + "description": "The Cloud KMS resource name of the customer managed encryption key that’s used to encrypt the contents of the Repository. Has the form: `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. This value may not be changed after the Repository has been created.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.", + "type": "object" + }, + "name": { + "description": "The name of the repository, for example: \"projects/p1/locations/us-central1/repositories/repo1\".", + "type": "string" + }, + "updateTime": { + "description": "The time when the repository was last updated.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "SetIamPolicyRequest": { + "description": "Request message for `SetIamPolicy` method.", + "id": "SetIamPolicyRequest", + "properties": { + "policy": { + "$ref": "Policy", + "description": "REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them." + } + }, + "type": "object" + }, + "Status": { + "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", + "id": "Status", + "properties": { + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "format": "int32", + "type": "integer" + }, + "details": { + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", + "type": "string" + } + }, + "type": "object" + }, + "Tag": { + "description": "Tags point to a version and represent an alternative name that can be used to access the version.", + "id": "Tag", + "properties": { + "name": { + "description": "The name of the tag, for example: \"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1\".", + "type": "string" + }, + "version": { + "description": "The name of the version the tag refers to, for example: \"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811\"", + "type": "string" + } + }, + "type": "object" + }, + "TestIamPermissionsRequest": { + "description": "Request message for `TestIamPermissions` method.", + "id": "TestIamPermissionsRequest", + "properties": { + "permissions": { + "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "TestIamPermissionsResponse": { + "description": "Response message for `TestIamPermissions` method.", + "id": "TestIamPermissionsResponse", + "properties": { + "permissions": { + "description": "A subset of `TestPermissionsRequest.permissions` that the caller is allowed.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "Version": { + "description": "The body of a version resource. A version resource represents a collection of components, such as files and other data. This may correspond to a version in many package management schemes.", + "id": "Version", + "properties": { + "createTime": { + "description": "The time when the version was created.", + "format": "google-datetime", + "type": "string" + }, + "description": { + "description": "Optional. Description of the version, as specified in its metadata.", + "type": "string" + }, + "name": { + "description": "The name of the version, for example: \"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1\".", + "type": "string" + }, + "relatedTags": { + "description": "Output only. A list of related tags. Will contain up to 100 tags that reference this version.", + "items": { + "$ref": "Tag" + }, + "type": "array" + }, + "updateTime": { + "description": "The time when the version was last updated.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + } + }, + "servicePath": "", + "title": "Artifact Registry API", + "version": "v1beta2", + "version_module": true +} \ No newline at end of file diff --git a/artifactregistry/v1beta2/artifactregistry-gen.go b/artifactregistry/v1beta2/artifactregistry-gen.go new file mode 100644 index 00000000000..908af73386d --- /dev/null +++ b/artifactregistry/v1beta2/artifactregistry-gen.go @@ -0,0 +1,5492 @@ +// Copyright 2020 Google LLC. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated file. DO NOT EDIT. + +// Package artifactregistry provides access to the Artifact Registry API. +// +// For product documentation, see: https://cloud.google.com/artifacts/docs/ +// +// Creating a client +// +// Usage example: +// +// import "google.golang.org/api/artifactregistry/v1beta2" +// ... +// ctx := context.Background() +// artifactregistryService, err := artifactregistry.NewService(ctx) +// +// In this example, Google Application Default Credentials are used for authentication. +// +// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// +// Other authentication options +// +// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// +// artifactregistryService, err := artifactregistry.NewService(ctx, option.WithScopes(artifactregistry.CloudPlatformReadOnlyScope)) +// +// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// +// artifactregistryService, err := artifactregistry.NewService(ctx, option.WithAPIKey("AIza...")) +// +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// +// config := &oauth2.Config{...} +// // ... +// token, err := config.Exchange(ctx, ...) +// artifactregistryService, err := artifactregistry.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) +// +// See https://godoc.org/google.golang.org/api/option/ for details on options. +package artifactregistry // import "google.golang.org/api/artifactregistry/v1beta2" + +import ( + "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + googleapi "google.golang.org/api/googleapi" + gensupport "google.golang.org/api/internal/gensupport" + option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" + htransport "google.golang.org/api/transport/http" +) + +// Always reference these packages, just in case the auto-generated code +// below doesn't. +var _ = bytes.NewBuffer +var _ = strconv.Itoa +var _ = fmt.Sprintf +var _ = json.NewDecoder +var _ = io.Copy +var _ = url.Parse +var _ = gensupport.MarshalJSON +var _ = googleapi.Version +var _ = errors.New +var _ = strings.Replace +var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint + +const apiId = "artifactregistry:v1beta2" +const apiName = "artifactregistry" +const apiVersion = "v1beta2" +const basePath = "https://artifactregistry.googleapis.com/" +const mtlsBasePath = "https://artifactregistry.mtls.googleapis.com/" + +// OAuth2 scopes used by this API. +const ( + // View and manage your data across Google Cloud Platform services + CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" + + // View your data across Google Cloud Platform services + CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/cloud-platform.read-only" +) + +// NewService creates a new Service. +func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + scopesOption := option.WithScopes( + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + ) + // NOTE: prepend, so we don't override user-specified scopes. + opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + client, endpoint, err := htransport.NewClient(ctx, opts...) + if err != nil { + return nil, err + } + s, err := New(client) + if err != nil { + return nil, err + } + if endpoint != "" { + s.BasePath = endpoint + } + return s, nil +} + +// New creates a new Service. It uses the provided http.Client for requests. +// +// Deprecated: please use NewService instead. +// To provide a custom HTTP client, use option.WithHTTPClient. +// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. +func New(client *http.Client) (*Service, error) { + if client == nil { + return nil, errors.New("client is nil") + } + s := &Service{client: client, BasePath: basePath} + s.Projects = NewProjectsService(s) + return s, nil +} + +type Service struct { + client *http.Client + BasePath string // API endpoint base URL + UserAgent string // optional additional User-Agent fragment + + Projects *ProjectsService +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewProjectsService(s *Service) *ProjectsService { + rs := &ProjectsService{s: s} + rs.Locations = NewProjectsLocationsService(s) + return rs +} + +type ProjectsService struct { + s *Service + + Locations *ProjectsLocationsService +} + +func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { + rs := &ProjectsLocationsService{s: s} + rs.Operations = NewProjectsLocationsOperationsService(s) + rs.Repositories = NewProjectsLocationsRepositoriesService(s) + return rs +} + +type ProjectsLocationsService struct { + s *Service + + Operations *ProjectsLocationsOperationsService + + Repositories *ProjectsLocationsRepositoriesService +} + +func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { + rs := &ProjectsLocationsOperationsService{s: s} + return rs +} + +type ProjectsLocationsOperationsService struct { + s *Service +} + +func NewProjectsLocationsRepositoriesService(s *Service) *ProjectsLocationsRepositoriesService { + rs := &ProjectsLocationsRepositoriesService{s: s} + rs.Files = NewProjectsLocationsRepositoriesFilesService(s) + rs.Packages = NewProjectsLocationsRepositoriesPackagesService(s) + return rs +} + +type ProjectsLocationsRepositoriesService struct { + s *Service + + Files *ProjectsLocationsRepositoriesFilesService + + Packages *ProjectsLocationsRepositoriesPackagesService +} + +func NewProjectsLocationsRepositoriesFilesService(s *Service) *ProjectsLocationsRepositoriesFilesService { + rs := &ProjectsLocationsRepositoriesFilesService{s: s} + return rs +} + +type ProjectsLocationsRepositoriesFilesService struct { + s *Service +} + +func NewProjectsLocationsRepositoriesPackagesService(s *Service) *ProjectsLocationsRepositoriesPackagesService { + rs := &ProjectsLocationsRepositoriesPackagesService{s: s} + rs.Tags = NewProjectsLocationsRepositoriesPackagesTagsService(s) + rs.Versions = NewProjectsLocationsRepositoriesPackagesVersionsService(s) + return rs +} + +type ProjectsLocationsRepositoriesPackagesService struct { + s *Service + + Tags *ProjectsLocationsRepositoriesPackagesTagsService + + Versions *ProjectsLocationsRepositoriesPackagesVersionsService +} + +func NewProjectsLocationsRepositoriesPackagesTagsService(s *Service) *ProjectsLocationsRepositoriesPackagesTagsService { + rs := &ProjectsLocationsRepositoriesPackagesTagsService{s: s} + return rs +} + +type ProjectsLocationsRepositoriesPackagesTagsService struct { + s *Service +} + +func NewProjectsLocationsRepositoriesPackagesVersionsService(s *Service) *ProjectsLocationsRepositoriesPackagesVersionsService { + rs := &ProjectsLocationsRepositoriesPackagesVersionsService{s: s} + return rs +} + +type ProjectsLocationsRepositoriesPackagesVersionsService struct { + s *Service +} + +// Binding: Associates `members` with a `role`. +type Binding struct { + // Condition: The condition that is associated with this binding. If the + // condition evaluates to `true`, then this binding applies to the + // current request. If the condition evaluates to `false`, then this + // binding does not apply to the current request. However, a different + // role binding might grant the same role to one or more of the members + // in this binding. To learn which resources support conditions in their + // IAM policies, see the [IAM + // documentation](https://cloud.google.com/iam/help/conditions/resource-p + // olicies). + Condition *Expr `json:"condition,omitempty"` + + // Members: Specifies the identities requesting access for a Cloud + // Platform resource. `members` can have the following values: * + // `allUsers`: A special identifier that represents anyone who is on the + // internet; with or without a Google account. * + // `allAuthenticatedUsers`: A special identifier that represents anyone + // who is authenticated with a Google account or a service account. * + // `user:{emailid}`: An email address that represents a specific Google + // account. For example, `alice@example.com` . * + // `serviceAccount:{emailid}`: An email address that represents a + // service account. For example, + // `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An + // email address that represents a Google group. For example, + // `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An + // email address (plus unique identifier) representing a user that has + // been recently deleted. For example, + // `alice@example.com?uid=123456789012345678901`. If the user is + // recovered, this value reverts to `user:{emailid}` and the recovered + // user retains the role in the binding. * + // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address + // (plus unique identifier) representing a service account that has been + // recently deleted. For example, + // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + // If the service account is undeleted, this value reverts to + // `serviceAccount:{emailid}` and the undeleted service account retains + // the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: + // An email address (plus unique identifier) representing a Google group + // that has been recently deleted. For example, + // `admins@example.com?uid=123456789012345678901`. If the group is + // recovered, this value reverts to `group:{emailid}` and the recovered + // group retains the role in the binding. * `domain:{domain}`: The G + // Suite domain (primary) that represents all the users of that domain. + // For example, `google.com` or `example.com`. + Members []string `json:"members,omitempty"` + + // Role: Role that is assigned to `members`. For example, + // `roles/viewer`, `roles/editor`, or `roles/owner`. + Role string `json:"role,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Condition") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Condition") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Binding) MarshalJSON() ([]byte, error) { + type NoMethod Binding + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Empty: A generic empty message that you can re-use to avoid defining +// duplicated empty messages in your APIs. A typical example is to use +// it as the request or the response type of an API method. For +// instance: service Foo { rpc Bar(google.protobuf.Empty) returns +// (google.protobuf.Empty); } The JSON representation for `Empty` is +// empty JSON object `{}`. +type Empty struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// Expr: Represents a textual expression in the Common Expression +// Language (CEL) syntax. CEL is a C-like expression language. The +// syntax and semantics of CEL are documented at +// https://github.com/google/cel-spec. Example (Comparison): title: +// "Summary size limit" description: "Determines if a summary is less +// than 100 chars" expression: "document.summary.size() < 100" Example +// (Equality): title: "Requestor is owner" description: "Determines if +// requestor is the document owner" expression: "document.owner == +// request.auth.claims.email" Example (Logic): title: "Public documents" +// description: "Determine whether the document should be publicly +// visible" expression: "document.type != 'private' && document.type != +// 'internal'" Example (Data Manipulation): title: "Notification string" +// description: "Create a notification string with a timestamp." +// expression: "'New message received at ' + +// string(document.create_time)" The exact variables and functions that +// may be referenced within an expression are determined by the service +// that evaluates it. See the service documentation for additional +// information. +type Expr struct { + // Description: Optional. Description of the expression. This is a + // longer text which describes the expression, e.g. when hovered over it + // in a UI. + Description string `json:"description,omitempty"` + + // Expression: Textual representation of an expression in Common + // Expression Language syntax. + Expression string `json:"expression,omitempty"` + + // Location: Optional. String indicating the location of the expression + // for error reporting, e.g. a file name and a position in the file. + Location string `json:"location,omitempty"` + + // Title: Optional. Title for the expression, i.e. a short string + // describing its purpose. This can be used e.g. in UIs which allow to + // enter the expression. + Title string `json:"title,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Description") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Expr) MarshalJSON() ([]byte, error) { + type NoMethod Expr + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// File: Files store content that is potentially associated with +// Packages or Versions. +type File struct { + // CreateTime: The time when the File was created. + CreateTime string `json:"createTime,omitempty"` + + // Hashes: The hashes of the file content. + Hashes []*Hash `json:"hashes,omitempty"` + + // Name: The name of the file, for example: + // "projects/p1/locations/us-central1/repositories/repo1/files/a/b/c.txt" + // . + Name string `json:"name,omitempty"` + + // Owner: The name of the Package or Version that owns this file, if + // any. + Owner string `json:"owner,omitempty"` + + // SizeBytes: The size of the File in bytes. + SizeBytes int64 `json:"sizeBytes,omitempty,string"` + + // UpdateTime: The time when the File was last updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *File) MarshalJSON() ([]byte, error) { + type NoMethod File + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleDevtoolsArtifactregistryV1alpha1ErrorInfo: Error information +// explaining why a package was not imported. +type GoogleDevtoolsArtifactregistryV1alpha1ErrorInfo struct { + // Error: The detailed error status. + Error *Status `json:"error,omitempty"` + + // GcsSource: Google Cloud Storage location requested. + GcsSource *GoogleDevtoolsArtifactregistryV1alpha1GcsSource `json:"gcsSource,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Error") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Error") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleDevtoolsArtifactregistryV1alpha1ErrorInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleDevtoolsArtifactregistryV1alpha1ErrorInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleDevtoolsArtifactregistryV1alpha1GcsSource: Google Cloud Storage +// location for the input content. +type GoogleDevtoolsArtifactregistryV1alpha1GcsSource struct { + // Uris: Cloud Storage paths URI (e.g., gs://my_bucket//my_object). + Uris []string `json:"uris,omitempty"` + + // UseWildcards: Supports URI wildcards for matching multiple objects + // from a single URI. + UseWildcards bool `json:"useWildcards,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Uris") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Uris") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleDevtoolsArtifactregistryV1alpha1GcsSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleDevtoolsArtifactregistryV1alpha1GcsSource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleDevtoolsArtifactregistryV1alpha1ImportArtifactsResponse: The +// response message from importing artifacts. +type GoogleDevtoolsArtifactregistryV1alpha1ImportArtifactsResponse struct { + // Errors: Detailed error info for packages that were not imported. + Errors []*GoogleDevtoolsArtifactregistryV1alpha1ErrorInfo `json:"errors,omitempty"` + + // Packages: The packages updated. + Packages []*GoogleDevtoolsArtifactregistryV1alpha1Package `json:"packages,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Errors") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Errors") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleDevtoolsArtifactregistryV1alpha1ImportArtifactsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleDevtoolsArtifactregistryV1alpha1ImportArtifactsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleDevtoolsArtifactregistryV1alpha1Package: Packages are named +// collections of versions. +type GoogleDevtoolsArtifactregistryV1alpha1Package struct { + // CreateTime: The time when the package was created. + CreateTime string `json:"createTime,omitempty"` + + // DisplayName: The display name of the package. + DisplayName string `json:"displayName,omitempty"` + + // Name: The name of the package, for example: + // "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1". + Name string `json:"name,omitempty"` + + // UpdateTime: The time when the package was last updated. This includes + // publishing a new version of the package. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleDevtoolsArtifactregistryV1alpha1Package) MarshalJSON() ([]byte, error) { + type NoMethod GoogleDevtoolsArtifactregistryV1alpha1Package + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Hash: A hash of file content. +type Hash struct { + // Type: The algorithm used to compute the hash value. + // + // Possible values: + // "HASH_TYPE_UNSPECIFIED" - Unspecified. + // "SHA256" - SHA256 hash. + Type string `json:"type,omitempty"` + + // Value: The hash value. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Type") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Type") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Hash) MarshalJSON() ([]byte, error) { + type NoMethod Hash + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListFilesResponse: The response from listing files. +type ListFilesResponse struct { + // Files: The files returned. + Files []*File `json:"files,omitempty"` + + // NextPageToken: The token to retrieve the next page of files, or empty + // if there are no more files to return. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Files") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Files") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListFilesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListFilesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListLocationsResponse: The response message for +// Locations.ListLocations. +type ListLocationsResponse struct { + // Locations: A list of locations that matches the specified filter in + // the request. + Locations []*Location `json:"locations,omitempty"` + + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Locations") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Locations") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListLocationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListOperationsResponse: The response message for +// Operations.ListOperations. +type ListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Operations: A list of operations that matches the specified filter in + // the request. + Operations []*Operation `json:"operations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListOperationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListPackagesResponse: The response from listing packages. +type ListPackagesResponse struct { + // NextPageToken: The token to retrieve the next page of packages, or + // empty if there are no more packages to return. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Packages: The packages returned. + Packages []*Package `json:"packages,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListPackagesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListPackagesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListRepositoriesResponse: The response from listing repositories. +type ListRepositoriesResponse struct { + // NextPageToken: The token to retrieve the next page of repositories, + // or empty if there are no more repositories to return. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Repositories: The repositories returned. + Repositories []*Repository `json:"repositories,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListRepositoriesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListRepositoriesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListTagsResponse: The response from listing tags. +type ListTagsResponse struct { + // NextPageToken: The token to retrieve the next page of tags, or empty + // if there are no more tags to return. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Tags: The tags returned. + Tags []*Tag `json:"tags,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListTagsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListTagsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListVersionsResponse: The response from listing versions. +type ListVersionsResponse struct { + // NextPageToken: The token to retrieve the next page of versions, or + // empty if there are no more versions to return. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Versions: The versions returned. + Versions []*Version `json:"versions,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListVersionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListVersionsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Location: A resource that represents Google Cloud Platform location. +type Location struct { + // DisplayName: The friendly name for this location, typically a nearby + // city name. For example, "Tokyo". + DisplayName string `json:"displayName,omitempty"` + + // Labels: Cross-service attributes for the location. For example + // {"cloud.googleapis.com/region": "us-east1"} + Labels map[string]string `json:"labels,omitempty"` + + // LocationId: The canonical id for this location. For example: + // "us-east1". + LocationId string `json:"locationId,omitempty"` + + // Metadata: Service-specific metadata. For example the available + // capacity at the given location. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: Resource name for the location, which may vary between + // implementations. For example: + // "projects/example-project/locations/us-east1" + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisplayName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Location) MarshalJSON() ([]byte, error) { + type NoMethod Location + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Operation: This resource represents a long-running operation that is +// the result of a network API call. +type Operation struct { + // Done: If the value is `false`, it means the operation is still in + // progress. If `true`, the operation is completed, and either `error` + // or `response` is available. + Done bool `json:"done,omitempty"` + + // Error: The error result of the operation in case of failure or + // cancellation. + Error *Status `json:"error,omitempty"` + + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as + // create time. Some services might not provide such metadata. Any + // method that returns a long-running operation should document the + // metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: The server-assigned name, which is only unique within the same + // service that originally returns it. If you use the default HTTP + // mapping, the `name` should be a resource name ending with + // `operations/{unique_id}`. + Name string `json:"name,omitempty"` + + // Response: The normal response of the operation in case of success. If + // the original method returns no data on success, such as `Delete`, the + // response is `google.protobuf.Empty`. If the original method is + // standard `Get`/`Create`/`Update`, the response should be the + // resource. For other methods, the response should have the type + // `XxxResponse`, where `Xxx` is the original method name. For example, + // if the original method name is `TakeSnapshot()`, the inferred + // response type is `TakeSnapshotResponse`. + Response googleapi.RawMessage `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Done") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Done") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Operation) MarshalJSON() ([]byte, error) { + type NoMethod Operation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Package: Packages are named collections of versions. +type Package struct { + // CreateTime: The time when the package was created. + CreateTime string `json:"createTime,omitempty"` + + // DisplayName: The display name of the package. + DisplayName string `json:"displayName,omitempty"` + + // Name: The name of the package, for example: + // "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1". + Name string `json:"name,omitempty"` + + // UpdateTime: The time when the package was last updated. This includes + // publishing a new version of the package. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Package) MarshalJSON() ([]byte, error) { + type NoMethod Package + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Policy: An Identity and Access Management (IAM) policy, which +// specifies access controls for Google Cloud resources. A `Policy` is a +// collection of `bindings`. A `binding` binds one or more `members` to +// a single `role`. Members can be user accounts, service accounts, +// Google groups, and domains (such as G Suite). A `role` is a named +// list of permissions; each `role` can be an IAM predefined role or a +// user-created custom role. For some types of Google Cloud resources, a +// `binding` can also specify a `condition`, which is a logical +// expression that allows access to a resource only if the expression +// evaluates to `true`. A condition can add constraints based on +// attributes of the request, the resource, or both. To learn which +// resources support conditions in their IAM policies, see the [IAM +// documentation](https://cloud.google.com/iam/help/conditions/resource-p +// olicies). **JSON example:** { "bindings": [ { "role": +// "roles/resourcemanager.organizationAdmin", "members": [ +// "user:mike@example.com", "group:admins@example.com", +// "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { +// "role": "roles/resourcemanager.organizationViewer", "members": [ +// "user:eve@example.com" ], "condition": { "title": "expirable access", +// "description": "Does not grant access after Sep 2020", "expression": +// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], +// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - +// members: - user:mike@example.com - group:admins@example.com - +// domain:google.com - +// serviceAccount:my-project-id@appspot.gserviceaccount.com role: +// roles/resourcemanager.organizationAdmin - members: - +// user:eve@example.com role: roles/resourcemanager.organizationViewer +// condition: title: expirable access description: Does not grant access +// after Sep 2020 expression: request.time < +// timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: +// 3 For a description of IAM and its features, see the [IAM +// documentation](https://cloud.google.com/iam/docs/). +type Policy struct { + // Bindings: Associates a list of `members` to a `role`. Optionally, may + // specify a `condition` that determines how and when the `bindings` are + // applied. Each of the `bindings` must contain at least one member. + Bindings []*Binding `json:"bindings,omitempty"` + + // Etag: `etag` is used for optimistic concurrency control as a way to + // help prevent simultaneous updates of a policy from overwriting each + // other. It is strongly suggested that systems make use of the `etag` + // in the read-modify-write cycle to perform policy updates in order to + // avoid race conditions: An `etag` is returned in the response to + // `getIamPolicy`, and systems are expected to put that etag in the + // request to `setIamPolicy` to ensure that their change will be applied + // to the same version of the policy. **Important:** If you use IAM + // Conditions, you must include the `etag` field whenever you call + // `setIamPolicy`. If you omit this field, then IAM allows you to + // overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. + Etag string `json:"etag,omitempty"` + + // Version: Specifies the format of the policy. Valid values are `0`, + // `1`, and `3`. Requests that specify an invalid value are rejected. + // Any operation that affects conditional role bindings must specify + // version `3`. This requirement applies to the following operations: * + // Getting a policy that includes a conditional role binding * Adding a + // conditional role binding to a policy * Changing a conditional role + // binding in a policy * Removing any role binding, with or without a + // condition, from a policy that includes conditions **Important:** If + // you use IAM Conditions, you must include the `etag` field whenever + // you call `setIamPolicy`. If you omit this field, then IAM allows you + // to overwrite a version `3` policy with a version `1` policy, and all + // of the conditions in the version `3` policy are lost. If a policy + // does not include any conditions, operations on that policy may + // specify any valid version or leave the field unset. To learn which + // resources support conditions in their IAM policies, see the [IAM + // documentation](https://cloud.google.com/iam/help/conditions/resource-p + // olicies). + Version int64 `json:"version,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Bindings") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Bindings") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Policy) MarshalJSON() ([]byte, error) { + type NoMethod Policy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Repository: A Repository for storing artifacts with a specific +// format. +type Repository struct { + // CreateTime: The time when the repository was created. + CreateTime string `json:"createTime,omitempty"` + + // Description: The user-provided description of the repository. + Description string `json:"description,omitempty"` + + // Format: The format of packages that are stored in the repository. + // + // Possible values: + // "FORMAT_UNSPECIFIED" - Unspecified package format. + // "DOCKER" - Docker package format. + Format string `json:"format,omitempty"` + + // KmsKeyName: The Cloud KMS resource name of the customer managed + // encryption key that’s used to encrypt the contents of the + // Repository. Has the form: + // `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my- + // key`. This value may not be changed after the Repository has been + // created. + KmsKeyName string `json:"kmsKeyName,omitempty"` + + // Labels: Labels with user-defined metadata. This field may contain up + // to 64 entries. Label keys and values may be no longer than 63 + // characters. Label keys must begin with a lowercase letter and may + // only contain lowercase letters, numeric characters, underscores, and + // dashes. + Labels map[string]string `json:"labels,omitempty"` + + // Name: The name of the repository, for example: + // "projects/p1/locations/us-central1/repositories/repo1". + Name string `json:"name,omitempty"` + + // UpdateTime: The time when the repository was last updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Repository) MarshalJSON() ([]byte, error) { + type NoMethod Repository + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SetIamPolicyRequest: Request message for `SetIamPolicy` method. +type SetIamPolicyRequest struct { + // Policy: REQUIRED: The complete policy to be applied to the + // `resource`. The size of the policy is limited to a few 10s of KB. An + // empty policy is a valid policy but certain Cloud Platform services + // (such as Projects) might reject them. + Policy *Policy `json:"policy,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Policy") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Policy") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { + type NoMethod SetIamPolicyRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Status: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs +// and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each +// `Status` message contains three pieces of data: error code, error +// message, and error details. You can find out more about this error +// model and how to work with it in the [API Design +// Guide](https://cloud.google.com/apis/design/errors). +type Status struct { + // Code: The status code, which should be an enum value of + // google.rpc.Code. + Code int64 `json:"code,omitempty"` + + // Details: A list of messages that carry the error details. There is a + // common set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Status) MarshalJSON() ([]byte, error) { + type NoMethod Status + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Tag: Tags point to a version and represent an alternative name that +// can be used to access the version. +type Tag struct { + // Name: The name of the tag, for example: + // "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/ta + // gs/tag1". + Name string `json:"name,omitempty"` + + // Version: The name of the version the tag refers to, for example: + // "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/ve + // rsions/sha256:5243811" + Version string `json:"version,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Name") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Name") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Tag) MarshalJSON() ([]byte, error) { + type NoMethod Tag + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TestIamPermissionsRequest: Request message for `TestIamPermissions` +// method. +type TestIamPermissionsRequest struct { + // Permissions: The set of permissions to check for the `resource`. + // Permissions with wildcards (such as '*' or 'storage.*') are not + // allowed. For more information see [IAM + // Overview](https://cloud.google.com/iam/docs/overview#permissions). + Permissions []string `json:"permissions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Permissions") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Permissions") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { + type NoMethod TestIamPermissionsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TestIamPermissionsResponse: Response message for `TestIamPermissions` +// method. +type TestIamPermissionsResponse struct { + // Permissions: A subset of `TestPermissionsRequest.permissions` that + // the caller is allowed. + Permissions []string `json:"permissions,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Permissions") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Permissions") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod TestIamPermissionsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Version: The body of a version resource. A version resource +// represents a collection of components, such as files and other data. +// This may correspond to a version in many package management schemes. +type Version struct { + // CreateTime: The time when the version was created. + CreateTime string `json:"createTime,omitempty"` + + // Description: Optional. Description of the version, as specified in + // its metadata. + Description string `json:"description,omitempty"` + + // Name: The name of the version, for example: + // "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/ve + // rsions/art1". + Name string `json:"name,omitempty"` + + // RelatedTags: Output only. A list of related tags. Will contain up to + // 100 tags that reference this version. + RelatedTags []*Tag `json:"relatedTags,omitempty"` + + // UpdateTime: The time when the version was last updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Version) MarshalJSON() ([]byte, error) { + type NoMethod Version + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "artifactregistry.projects.locations.get": + +type ProjectsLocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information about a location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.get" call. +// Exactly one of *Location or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Location.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Location{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets information about a location.", + // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}", + // "httpMethod": "GET", + // "id": "artifactregistry.projects.locations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Resource name for the location.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta2/{+name}", + // "response": { + // "$ref": "Location" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" + // ] + // } + +} + +// method id "artifactregistry.projects.locations.list": + +type ProjectsLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists information about the supported locations for this +// service. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}/locations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.list" call. +// Exactly one of *ListLocationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListLocationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists information about the supported locations for this service.", + // "flatPath": "v1beta2/projects/{projectsId}/locations", + // "httpMethod": "GET", + // "id": "artifactregistry.projects.locations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The resource that owns the locations collection, if applicable.", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta2/{+name}/locations", + // "response": { + // "$ref": "ListLocationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "artifactregistry.projects.locations.operations.get": + +type ProjectsLocationsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { + c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.operations.get" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "artifactregistry.projects.locations.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta2/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" + // ] + // } + +} + +// method id "artifactregistry.projects.locations.operations.list": + +type ProjectsLocationsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to +// override the binding to use different resource name schemes, such as +// `users/*/operations`. To override the binding, API services can add a +// binding such as "/v1/{name=users/*}/operations" to their service +// configuration. For backwards compatibility, the default name includes +// the operations collection id, however overriding users must ensure +// the name binding is the parent resource, without the operations +// collection id. +func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { + c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.operations.list" call. +// Exactly one of *ListOperationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/operations", + // "httpMethod": "GET", + // "id": "artifactregistry.projects.locations.operations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta2/{+name}/operations", + // "response": { + // "$ref": "ListOperationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "artifactregistry.projects.locations.repositories.create": + +type ProjectsLocationsRepositoriesCreateCall struct { + s *Service + parent string + repository *Repository + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a repository. The returned Operation will finish once +// the repository has been created. Its response will be the created +// Repository. +func (r *ProjectsLocationsRepositoriesService) Create(parent string, repository *Repository) *ProjectsLocationsRepositoriesCreateCall { + c := &ProjectsLocationsRepositoriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.repository = repository + return c +} + +// RepositoryId sets the optional parameter "repositoryId": The +// repository id to use for this repository. +func (c *ProjectsLocationsRepositoriesCreateCall) RepositoryId(repositoryId string) *ProjectsLocationsRepositoriesCreateCall { + c.urlParams_.Set("repositoryId", repositoryId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesCreateCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.repository) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+parent}/repositories") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.repositories.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsRepositoriesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a repository. The returned Operation will finish once the repository has been created. Its response will be the created Repository.", + // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories", + // "httpMethod": "POST", + // "id": "artifactregistry.projects.locations.repositories.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "The name of the parent resource where the repository will be created.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "repositoryId": { + // "description": "The repository id to use for this repository.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta2/{+parent}/repositories", + // "request": { + // "$ref": "Repository" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "artifactregistry.projects.locations.repositories.delete": + +type ProjectsLocationsRepositoriesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a repository and all of its contents. The returned +// Operation will finish once the repository has been deleted. It will +// not have any Operation metadata and will return a +// google.protobuf.Empty response. +func (r *ProjectsLocationsRepositoriesService) Delete(name string) *ProjectsLocationsRepositoriesDeleteCall { + c := &ProjectsLocationsRepositoriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesDeleteCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.repositories.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsRepositoriesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a repository and all of its contents. The returned Operation will finish once the repository has been deleted. It will not have any Operation metadata and will return a google.protobuf.Empty response.", + // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}", + // "httpMethod": "DELETE", + // "id": "artifactregistry.projects.locations.repositories.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the repository to delete.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta2/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "artifactregistry.projects.locations.repositories.get": + +type ProjectsLocationsRepositoriesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a repository. +func (r *ProjectsLocationsRepositoriesService) Get(name string) *ProjectsLocationsRepositoriesGetCall { + c := &ProjectsLocationsRepositoriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.repositories.get" call. +// Exactly one of *Repository or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Repository.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsRepositoriesGetCall) Do(opts ...googleapi.CallOption) (*Repository, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Repository{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a repository.", + // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}", + // "httpMethod": "GET", + // "id": "artifactregistry.projects.locations.repositories.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the repository to retrieve.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta2/{+name}", + // "response": { + // "$ref": "Repository" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" + // ] + // } + +} + +// method id "artifactregistry.projects.locations.repositories.getIamPolicy": + +type ProjectsLocationsRepositoriesGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the IAM policy for a given resource. +func (r *ProjectsLocationsRepositoriesService) GetIamPolicy(resource string) *ProjectsLocationsRepositoriesGetIamPolicyCall { + c := &ProjectsLocationsRepositoriesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The policy format version to be +// returned. Valid values are 0, 1, and 3. Requests specifying an +// invalid value will be rejected. Requests for policies with any +// conditional bindings must specify version 3. Policies without any +// conditional bindings may specify any valid value or leave the field +// unset. To learn which resources support conditions in their IAM +// policies, see the [IAM +// documentation](https://cloud.google.com/iam/help/conditions/resource-p +// olicies). +func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsRepositoriesGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesGetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+resource}:getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.repositories.getIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the IAM policy for a given resource.", + // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:getIamPolicy", + // "httpMethod": "GET", + // "id": "artifactregistry.projects.locations.repositories.getIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "options.requestedPolicyVersion": { + // "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta2/{+resource}:getIamPolicy", + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" + // ] + // } + +} + +// method id "artifactregistry.projects.locations.repositories.list": + +type ProjectsLocationsRepositoriesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists repositories. +func (r *ProjectsLocationsRepositoriesService) List(parent string) *ProjectsLocationsRepositoriesListCall { + c := &ProjectsLocationsRepositoriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of repositories to return. Maximum page size is 10,000. +func (c *ProjectsLocationsRepositoriesListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The +// next_page_token value returned from a previous list request, if any. +func (c *ProjectsLocationsRepositoriesListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+parent}/repositories") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.repositories.list" call. +// Exactly one of *ListRepositoriesResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListRepositoriesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsRepositoriesListCall) Do(opts ...googleapi.CallOption) (*ListRepositoriesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListRepositoriesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists repositories.", + // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories", + // "httpMethod": "GET", + // "id": "artifactregistry.projects.locations.repositories.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of repositories to return. Maximum page size is 10,000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The next_page_token value returned from a previous list request, if any.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "The name of the parent resource whose repositories will be listed.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta2/{+parent}/repositories", + // "response": { + // "$ref": "ListRepositoriesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsRepositoriesListCall) Pages(ctx context.Context, f func(*ListRepositoriesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "artifactregistry.projects.locations.repositories.patch": + +type ProjectsLocationsRepositoriesPatchCall struct { + s *Service + name string + repository *Repository + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a repository. +func (r *ProjectsLocationsRepositoriesService) Patch(name string, repository *Repository) *ProjectsLocationsRepositoriesPatchCall { + c := &ProjectsLocationsRepositoriesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.repository = repository + return c +} + +// UpdateMask sets the optional parameter "updateMask": The update mask +// applies to the resource. For the `FieldMask` definition, see +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask +func (c *ProjectsLocationsRepositoriesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsRepositoriesPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesPatchCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.repository) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.repositories.patch" call. +// Exactly one of *Repository or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Repository.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsRepositoriesPatchCall) Do(opts ...googleapi.CallOption) (*Repository, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Repository{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a repository.", + // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}", + // "httpMethod": "PATCH", + // "id": "artifactregistry.projects.locations.repositories.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the repository, for example: \"projects/p1/locations/us-central1/repositories/repo1\".", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta2/{+name}", + // "request": { + // "$ref": "Repository" + // }, + // "response": { + // "$ref": "Repository" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "artifactregistry.projects.locations.repositories.setIamPolicy": + +type ProjectsLocationsRepositoriesSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Updates the IAM policy for a given resource. +func (r *ProjectsLocationsRepositoriesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsRepositoriesSetIamPolicyCall { + c := &ProjectsLocationsRepositoriesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesSetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+resource}:setIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.repositories.setIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsRepositoriesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates the IAM policy for a given resource.", + // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "artifactregistry.projects.locations.repositories.setIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta2/{+resource}:setIamPolicy", + // "request": { + // "$ref": "SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "artifactregistry.projects.locations.repositories.testIamPermissions": + +type ProjectsLocationsRepositoriesTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Tests if the caller has a list of permissions on +// a resource. +func (r *ProjectsLocationsRepositoriesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsRepositoriesTestIamPermissionsCall { + c := &ProjectsLocationsRepositoriesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+resource}:testIamPermissions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.repositories.testIamPermissions" call. +// Exactly one of *TestIamPermissionsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsRepositoriesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &TestIamPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Tests if the caller has a list of permissions on a resource.", + // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "artifactregistry.projects.locations.repositories.testIamPermissions", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta2/{+resource}:testIamPermissions", + // "request": { + // "$ref": "TestIamPermissionsRequest" + // }, + // "response": { + // "$ref": "TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" + // ] + // } + +} + +// method id "artifactregistry.projects.locations.repositories.files.get": + +type ProjectsLocationsRepositoriesFilesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a file. +func (r *ProjectsLocationsRepositoriesFilesService) Get(name string) *ProjectsLocationsRepositoriesFilesGetCall { + c := &ProjectsLocationsRepositoriesFilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesFilesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesFilesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesFilesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesFilesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesFilesGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesFilesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesFilesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesFilesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.repositories.files.get" call. +// Exactly one of *File or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *File.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsRepositoriesFilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &File{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a file.", + // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/files/{filesId}", + // "httpMethod": "GET", + // "id": "artifactregistry.projects.locations.repositories.files.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the file to retrieve.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/files/.*$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta2/{+name}", + // "response": { + // "$ref": "File" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" + // ] + // } + +} + +// method id "artifactregistry.projects.locations.repositories.files.list": + +type ProjectsLocationsRepositoriesFilesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists files. +func (r *ProjectsLocationsRepositoriesFilesService) List(parent string) *ProjectsLocationsRepositoriesFilesListCall { + c := &ProjectsLocationsRepositoriesFilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": An expression for +// filtering the results of the request. Filter rules are case +// insensitive. The fields eligible for filtering are: * `name` * +// `owner` An example of using a filter: * +// `name="projects/p1/locations/us-central1/repositories/repo1/files/a/b/ +// *" --> Files with an ID starting with "a/b/". * +// `owner="projects/p1/locations/us-central1/repositories/repo1/packages/ +// pkg1/versions/1.0" --> Files owned by the version `1.0` in package +// `pkg1`. +func (c *ProjectsLocationsRepositoriesFilesListCall) Filter(filter string) *ProjectsLocationsRepositoriesFilesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of files to return. +func (c *ProjectsLocationsRepositoriesFilesListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesFilesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The +// next_page_token value returned from a previous list request, if any. +func (c *ProjectsLocationsRepositoriesFilesListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesFilesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesFilesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesFilesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesFilesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesFilesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesFilesListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesFilesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesFilesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesFilesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+parent}/files") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.repositories.files.list" call. +// Exactly one of *ListFilesResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListFilesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsRepositoriesFilesListCall) Do(opts ...googleapi.CallOption) (*ListFilesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListFilesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists files.", + // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/files", + // "httpMethod": "GET", + // "id": "artifactregistry.projects.locations.repositories.files.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are: * `name` * `owner` An example of using a filter: * `name=\"projects/p1/locations/us-central1/repositories/repo1/files/a/b/*\"` --\u003e Files with an ID starting with \"a/b/\". * `owner=\"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0\"` --\u003e Files owned by the version `1.0` in package `pkg1`.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of files to return.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The next_page_token value returned from a previous list request, if any.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "The name of the parent resource whose files will be listed.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta2/{+parent}/files", + // "response": { + // "$ref": "ListFilesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsRepositoriesFilesListCall) Pages(ctx context.Context, f func(*ListFilesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "artifactregistry.projects.locations.repositories.packages.delete": + +type ProjectsLocationsRepositoriesPackagesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a package and all of its versions and tags. The +// returned operation will complete once the package has been deleted. +func (r *ProjectsLocationsRepositoriesPackagesService) Delete(name string) *ProjectsLocationsRepositoriesPackagesDeleteCall { + c := &ProjectsLocationsRepositoriesPackagesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesPackagesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesPackagesDeleteCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesPackagesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesPackagesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.repositories.packages.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsRepositoriesPackagesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a package and all of its versions and tags. The returned operation will complete once the package has been deleted.", + // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}", + // "httpMethod": "DELETE", + // "id": "artifactregistry.projects.locations.repositories.packages.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the package to delete.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta2/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "artifactregistry.projects.locations.repositories.packages.get": + +type ProjectsLocationsRepositoriesPackagesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a package. +func (r *ProjectsLocationsRepositoriesPackagesService) Get(name string) *ProjectsLocationsRepositoriesPackagesGetCall { + c := &ProjectsLocationsRepositoriesPackagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesPackagesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesPackagesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPackagesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesPackagesGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesPackagesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesPackagesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.repositories.packages.get" call. +// Exactly one of *Package or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Package.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsRepositoriesPackagesGetCall) Do(opts ...googleapi.CallOption) (*Package, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Package{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a package.", + // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}", + // "httpMethod": "GET", + // "id": "artifactregistry.projects.locations.repositories.packages.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the package to retrieve.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta2/{+name}", + // "response": { + // "$ref": "Package" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" + // ] + // } + +} + +// method id "artifactregistry.projects.locations.repositories.packages.list": + +type ProjectsLocationsRepositoriesPackagesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists packages. +func (r *ProjectsLocationsRepositoriesPackagesService) List(parent string) *ProjectsLocationsRepositoriesPackagesListCall { + c := &ProjectsLocationsRepositoriesPackagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of packages to return. Maximum page size is 10,000. +func (c *ProjectsLocationsRepositoriesPackagesListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesPackagesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The +// next_page_token value returned from a previous list request, if any. +func (c *ProjectsLocationsRepositoriesPackagesListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesPackagesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesPackagesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesPackagesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPackagesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesPackagesListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesPackagesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesPackagesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+parent}/packages") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.repositories.packages.list" call. +// Exactly one of *ListPackagesResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListPackagesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsRepositoriesPackagesListCall) Do(opts ...googleapi.CallOption) (*ListPackagesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListPackagesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists packages.", + // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages", + // "httpMethod": "GET", + // "id": "artifactregistry.projects.locations.repositories.packages.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of packages to return. Maximum page size is 10,000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The next_page_token value returned from a previous list request, if any.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "The name of the parent resource whose packages will be listed.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta2/{+parent}/packages", + // "response": { + // "$ref": "ListPackagesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsRepositoriesPackagesListCall) Pages(ctx context.Context, f func(*ListPackagesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "artifactregistry.projects.locations.repositories.packages.tags.create": + +type ProjectsLocationsRepositoriesPackagesTagsCreateCall struct { + s *Service + parent string + tag *Tag + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a tag. +func (r *ProjectsLocationsRepositoriesPackagesTagsService) Create(parent string, tag *Tag) *ProjectsLocationsRepositoriesPackagesTagsCreateCall { + c := &ProjectsLocationsRepositoriesPackagesTagsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.tag = tag + return c +} + +// TagId sets the optional parameter "tagId": The tag id to use for this +// repository. +func (c *ProjectsLocationsRepositoriesPackagesTagsCreateCall) TagId(tagId string) *ProjectsLocationsRepositoriesPackagesTagsCreateCall { + c.urlParams_.Set("tagId", tagId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesPackagesTagsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesTagsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesPackagesTagsCreateCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesTagsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesPackagesTagsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesPackagesTagsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.tag) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+parent}/tags") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.repositories.packages.tags.create" call. +// Exactly one of *Tag or error will be non-nil. Any non-2xx status code +// is an error. Response headers are in either +// *Tag.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsRepositoriesPackagesTagsCreateCall) Do(opts ...googleapi.CallOption) (*Tag, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Tag{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a tag.", + // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/tags", + // "httpMethod": "POST", + // "id": "artifactregistry.projects.locations.repositories.packages.tags.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "The name of the parent resource where the tag will be created.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "tagId": { + // "description": "The tag id to use for this repository.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta2/{+parent}/tags", + // "request": { + // "$ref": "Tag" + // }, + // "response": { + // "$ref": "Tag" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "artifactregistry.projects.locations.repositories.packages.tags.delete": + +type ProjectsLocationsRepositoriesPackagesTagsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a tag. +func (r *ProjectsLocationsRepositoriesPackagesTagsService) Delete(name string) *ProjectsLocationsRepositoriesPackagesTagsDeleteCall { + c := &ProjectsLocationsRepositoriesPackagesTagsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesPackagesTagsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesTagsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesPackagesTagsDeleteCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesTagsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesPackagesTagsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesPackagesTagsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.repositories.packages.tags.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsRepositoriesPackagesTagsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a tag.", + // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/tags/{tagsId}", + // "httpMethod": "DELETE", + // "id": "artifactregistry.projects.locations.repositories.packages.tags.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the tag to delete.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+/tags/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta2/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "artifactregistry.projects.locations.repositories.packages.tags.get": + +type ProjectsLocationsRepositoriesPackagesTagsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a tag. +func (r *ProjectsLocationsRepositoriesPackagesTagsService) Get(name string) *ProjectsLocationsRepositoriesPackagesTagsGetCall { + c := &ProjectsLocationsRepositoriesPackagesTagsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesPackagesTagsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesTagsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesPackagesTagsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPackagesTagsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesPackagesTagsGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesTagsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesPackagesTagsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesPackagesTagsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.repositories.packages.tags.get" call. +// Exactly one of *Tag or error will be non-nil. Any non-2xx status code +// is an error. Response headers are in either +// *Tag.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsRepositoriesPackagesTagsGetCall) Do(opts ...googleapi.CallOption) (*Tag, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Tag{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a tag.", + // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/tags/{tagsId}", + // "httpMethod": "GET", + // "id": "artifactregistry.projects.locations.repositories.packages.tags.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the tag to retrieve.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+/tags/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta2/{+name}", + // "response": { + // "$ref": "Tag" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" + // ] + // } + +} + +// method id "artifactregistry.projects.locations.repositories.packages.tags.list": + +type ProjectsLocationsRepositoriesPackagesTagsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists tags. +func (r *ProjectsLocationsRepositoriesPackagesTagsService) List(parent string) *ProjectsLocationsRepositoriesPackagesTagsListCall { + c := &ProjectsLocationsRepositoriesPackagesTagsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": An expression for +// filtering the results of the request. Filter rules are case +// insensitive. The fields eligible for filtering are: * `version` An +// example of using a filter: * +// `version="projects/p1/locations/us-central1/repositories/repo1/package +// s/pkg1/versions/1.0" --> Tags that are applied to the version `1.0` +// in package `pkg1`. +func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) Filter(filter string) *ProjectsLocationsRepositoriesPackagesTagsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of tags to return. Maximum page size is 10,000. +func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesPackagesTagsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The +// next_page_token value returned from a previous list request, if any. +func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesPackagesTagsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesTagsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPackagesTagsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesTagsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+parent}/tags") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.repositories.packages.tags.list" call. +// Exactly one of *ListTagsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListTagsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) Do(opts ...googleapi.CallOption) (*ListTagsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListTagsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists tags.", + // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/tags", + // "httpMethod": "GET", + // "id": "artifactregistry.projects.locations.repositories.packages.tags.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are: * `version` An example of using a filter: * `version=\"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0\"` --\u003e Tags that are applied to the version `1.0` in package `pkg1`.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of tags to return. Maximum page size is 10,000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The next_page_token value returned from a previous list request, if any.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "The name of the parent resource whose tags will be listed.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta2/{+parent}/tags", + // "response": { + // "$ref": "ListTagsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) Pages(ctx context.Context, f func(*ListTagsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "artifactregistry.projects.locations.repositories.packages.tags.patch": + +type ProjectsLocationsRepositoriesPackagesTagsPatchCall struct { + s *Service + name string + tag *Tag + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a tag. +func (r *ProjectsLocationsRepositoriesPackagesTagsService) Patch(name string, tag *Tag) *ProjectsLocationsRepositoriesPackagesTagsPatchCall { + c := &ProjectsLocationsRepositoriesPackagesTagsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.tag = tag + return c +} + +// UpdateMask sets the optional parameter "updateMask": The update mask +// applies to the resource. For the `FieldMask` definition, see +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask +func (c *ProjectsLocationsRepositoriesPackagesTagsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsRepositoriesPackagesTagsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesPackagesTagsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesTagsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesPackagesTagsPatchCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesTagsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesPackagesTagsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesPackagesTagsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.tag) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.repositories.packages.tags.patch" call. +// Exactly one of *Tag or error will be non-nil. Any non-2xx status code +// is an error. Response headers are in either +// *Tag.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsRepositoriesPackagesTagsPatchCall) Do(opts ...googleapi.CallOption) (*Tag, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Tag{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a tag.", + // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/tags/{tagsId}", + // "httpMethod": "PATCH", + // "id": "artifactregistry.projects.locations.repositories.packages.tags.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the tag, for example: \"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1\".", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+/tags/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta2/{+name}", + // "request": { + // "$ref": "Tag" + // }, + // "response": { + // "$ref": "Tag" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "artifactregistry.projects.locations.repositories.packages.versions.delete": + +type ProjectsLocationsRepositoriesPackagesVersionsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a version and all of its content. The returned +// operation will complete once the version has been deleted. +func (r *ProjectsLocationsRepositoriesPackagesVersionsService) Delete(name string) *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall { + c := &ProjectsLocationsRepositoriesPackagesVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Force sets the optional parameter "force": By default, a version that +// is tagged may not be deleted. If force=true, the version and any tags +// pointing to the version are deleted. +func (c *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall) Force(force bool) *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.repositories.packages.versions.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a version and all of its content. The returned operation will complete once the version has been deleted.", + // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/versions/{versionsId}", + // "httpMethod": "DELETE", + // "id": "artifactregistry.projects.locations.repositories.packages.versions.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "force": { + // "description": "By default, a version that is tagged may not be deleted. If force=true, the version and any tags pointing to the version are deleted.", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "The name of the version to delete.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta2/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "artifactregistry.projects.locations.repositories.packages.versions.get": + +type ProjectsLocationsRepositoriesPackagesVersionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a version +func (r *ProjectsLocationsRepositoriesPackagesVersionsService) Get(name string) *ProjectsLocationsRepositoriesPackagesVersionsGetCall { + c := &ProjectsLocationsRepositoriesPackagesVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// View sets the optional parameter "view": The view that should be +// returned in the response. +// +// Possible values: +// "VERSION_VIEW_UNSPECIFIED" - The default / unset value. The API +// will default to the BASIC view. +// "BASIC" - Includes basic information about the version, but not any +// related tags. +// "FULL" - Include everything. +func (c *ProjectsLocationsRepositoriesPackagesVersionsGetCall) View(view string) *ProjectsLocationsRepositoriesPackagesVersionsGetCall { + c.urlParams_.Set("view", view) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesPackagesVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesVersionsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesPackagesVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPackagesVersionsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesPackagesVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesVersionsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesPackagesVersionsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesPackagesVersionsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.repositories.packages.versions.get" call. +// Exactly one of *Version or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Version.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsRepositoriesPackagesVersionsGetCall) Do(opts ...googleapi.CallOption) (*Version, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Version{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a version", + // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/versions/{versionsId}", + // "httpMethod": "GET", + // "id": "artifactregistry.projects.locations.repositories.packages.versions.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the version to retrieve.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "view": { + // "description": "The view that should be returned in the response.", + // "enum": [ + // "VERSION_VIEW_UNSPECIFIED", + // "BASIC", + // "FULL" + // ], + // "enumDescriptions": [ + // "The default / unset value. The API will default to the BASIC view.", + // "Includes basic information about the version, but not any related tags.", + // "Include everything." + // ], + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta2/{+name}", + // "response": { + // "$ref": "Version" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" + // ] + // } + +} + +// method id "artifactregistry.projects.locations.repositories.packages.versions.list": + +type ProjectsLocationsRepositoriesPackagesVersionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists versions. +func (r *ProjectsLocationsRepositoriesPackagesVersionsService) List(parent string) *ProjectsLocationsRepositoriesPackagesVersionsListCall { + c := &ProjectsLocationsRepositoriesPackagesVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of versions to return. Maximum page size is 10,000. +func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesPackagesVersionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The +// next_page_token value returned from a previous list request, if any. +func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesPackagesVersionsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// View sets the optional parameter "view": The view that should be +// returned in the response. +// +// Possible values: +// "VERSION_VIEW_UNSPECIFIED" - The default / unset value. The API +// will default to the BASIC view. +// "BASIC" - Includes basic information about the version, but not any +// related tags. +// "FULL" - Include everything. +func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) View(view string) *ProjectsLocationsRepositoriesPackagesVersionsListCall { + c.urlParams_.Set("view", view) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPackagesVersionsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPackagesVersionsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPackagesVersionsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+parent}/versions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.repositories.packages.versions.list" call. +// Exactly one of *ListVersionsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListVersionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) Do(opts ...googleapi.CallOption) (*ListVersionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListVersionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists versions.", + // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/versions", + // "httpMethod": "GET", + // "id": "artifactregistry.projects.locations.repositories.packages.versions.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of versions to return. Maximum page size is 10,000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The next_page_token value returned from a previous list request, if any.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "The name of the parent resource whose versions will be listed.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "view": { + // "description": "The view that should be returned in the response.", + // "enum": [ + // "VERSION_VIEW_UNSPECIFIED", + // "BASIC", + // "FULL" + // ], + // "enumDescriptions": [ + // "The default / unset value. The API will default to the BASIC view.", + // "Includes basic information about the version, but not any related tags.", + // "Include everything." + // ], + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta2/{+parent}/versions", + // "response": { + // "$ref": "ListVersionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) Pages(ctx context.Context, f func(*ListVersionsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} diff --git a/assuredworkloads/v1/assuredworkloads-api.json b/assuredworkloads/v1/assuredworkloads-api.json new file mode 100644 index 00000000000..1af18dfeae4 --- /dev/null +++ b/assuredworkloads/v1/assuredworkloads-api.json @@ -0,0 +1,828 @@ +{ + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/cloud-platform": { + "description": "View and manage your data across Google Cloud Platform services" + } + } + } + }, + "basePath": "", + "baseUrl": "https://assuredworkloads.googleapis.com/", + "batchPath": "batch", + "canonicalName": "Assuredworkloads", + "description": "", + "discoveryVersion": "v1", + "documentationLink": "https://cloud.google.com", + "fullyEncodeReservedExpansion": true, + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "id": "assuredworkloads:v1", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://assuredworkloads.mtls.googleapis.com/", + "name": "assuredworkloads", + "ownerDomain": "google.com", + "ownerName": "Google", + "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, + "alt": { + "default": "json", + "description": "Data format for response.", + "enum": [ + "json", + "media", + "proto" + ], + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query", + "type": "string" + }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, + "fields": { + "description": "Selector specifying which fields to include in a partial response.", + "location": "query", + "type": "string" + }, + "key": { + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "location": "query", + "type": "string" + }, + "oauth_token": { + "description": "OAuth 2.0 token for the current user.", + "location": "query", + "type": "string" + }, + "prettyPrint": { + "default": "true", + "description": "Returns response with indentations and line breaks.", + "location": "query", + "type": "boolean" + }, + "quotaUser": { + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query", + "type": "string" + }, + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query", + "type": "string" + } + }, + "protocol": "rest", + "resources": { + "organizations": { + "resources": { + "locations": { + "resources": { + "operations": { + "methods": { + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "assuredworkloads.organizations.locations.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/operations", + "httpMethod": "GET", + "id": "assuredworkloads.organizations.locations.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "workloads": { + "methods": { + "create": { + "description": "Creates Assured Workload.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/workloads", + "httpMethod": "POST", + "id": "assuredworkloads.organizations.locations.workloads.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "externalId": { + "description": "Optional. A identifier associated with the workload and underlying projects which allows for the break down of billing costs for a workload. The value provided for the identifier will add a label to the workload and contained projects with the identifier as the value.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the new Workload's parent. Must be of the form `organizations/{org_id}/locations/{location_id}`.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/workloads", + "request": { + "$ref": "GoogleCloudAssuredworkloadsV1Workload" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes the workload. Make sure that workload's direct children are already in a deleted state, otherwise the request will fail with a FAILED_PRECONDITION error.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/workloads/{workloadsId}", + "httpMethod": "DELETE", + "id": "assuredworkloads.organizations.locations.workloads.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "etag": { + "description": "Optional. The etag of the workload. If this is provided, it must match the server's etag.", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The `name` field is used to identify the workload. Format: organizations/{org_id}/locations/{location_id}/workloads/{workload_id}", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets Assured Workload associated with a CRM Node", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/workloads/{workloadsId}", + "httpMethod": "GET", + "id": "assuredworkloads.organizations.locations.workloads.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the Workload to fetch. This is the workloads's relative path in the API, formatted as \"organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}\". For example, \"organizations/123/locations/us-east1/workloads/assured-workload-1\".", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAssuredworkloadsV1Workload" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Assured Workloads under a CRM Node.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/workloads", + "httpMethod": "GET", + "id": "assuredworkloads.organizations.locations.workloads.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "A custom filter for filtering by properties of a workload. At this time, only filtering by labels is supported.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Page token returned from previous request. Page token contains context from previous request. Page token needs to be passed in the second and following requests.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent Resource to list workloads from. Must be of the form `organizations/{org_id}/locations/{location}`.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/workloads", + "response": { + "$ref": "GoogleCloudAssuredworkloadsV1ListWorkloadsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates an existing workload. Currently allows updating of workload display_name and labels. For force updates don't set etag field in the Workload. Only one update operation per workload can be in progress.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/workloads/{workloadsId}", + "httpMethod": "PATCH", + "id": "assuredworkloads.organizations.locations.workloads.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Optional. The resource name of the workload. Format: organizations/{organization}/locations/{location}/workloads/{workload} Read-only.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The list of fields to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudAssuredworkloadsV1Workload" + }, + "response": { + "$ref": "GoogleCloudAssuredworkloadsV1Workload" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + } + }, + "revision": "20201112", + "rootUrl": "https://assuredworkloads.googleapis.com/", + "schemas": { + "GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata": { + "description": "Operation metadata to give request details of CreateWorkload.", + "id": "GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata", + "properties": { + "complianceRegime": { + "description": "Optional. Compliance controls that should be applied to the resources managed by the workload.", + "enum": [ + "COMPLIANCE_REGIME_UNSPECIFIED", + "IL4", + "CJIS", + "FEDRAMP_HIGH", + "FEDRAMP_MODERATE" + ], + "enumDescriptions": [ + "Unknown compliance regime.", + "Information protection as per DoD IL4 requirements.", + "Criminal Justice Information Services (CJIS) Security policies.", + "FedRAMP High data protection controls", + "FedRAMP Moderate data protection controls" + ], + "type": "string" + }, + "createTime": { + "description": "Optional. Time when the operation was created.", + "format": "google-datetime", + "type": "string" + }, + "displayName": { + "description": "Optional. The display name of the workload.", + "type": "string" + }, + "parent": { + "description": "Optional. The parent of the workload.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAssuredworkloadsV1ListWorkloadsResponse": { + "description": "Response of ListWorkloads endpoint.", + "id": "GoogleCloudAssuredworkloadsV1ListWorkloadsResponse", + "properties": { + "nextPageToken": { + "description": "The next page token. Return empty if reached the last page.", + "type": "string" + }, + "workloads": { + "description": "List of Workloads under a given parent.", + "items": { + "$ref": "GoogleCloudAssuredworkloadsV1Workload" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAssuredworkloadsV1Workload": { + "description": "An Workload object for managing highly regulated workloads of cloud customers.", + "id": "GoogleCloudAssuredworkloadsV1Workload", + "properties": { + "billingAccount": { + "description": "Required. Input only. The billing account used for the resources which are direct children of workload. This billing account is initially associated with the resources created as part of Workload creation. After the initial creation of these resources, the customer can change the assigned billing account. The resource name has the form `billingAccounts/{billing_account_id}`. For example, `billingAccounts/012345-567890-ABCDEF`.", + "type": "string" + }, + "complianceRegime": { + "description": "Required. Immutable. Compliance Regime associated with this workload.", + "enum": [ + "COMPLIANCE_REGIME_UNSPECIFIED", + "IL4", + "CJIS", + "FEDRAMP_HIGH", + "FEDRAMP_MODERATE" + ], + "enumDescriptions": [ + "Unknown compliance regime.", + "Information protection as per DoD IL4 requirements.", + "Criminal Justice Information Services (CJIS) Security policies.", + "FedRAMP High data protection controls", + "FedRAMP Moderate data protection controls" + ], + "type": "string" + }, + "createTime": { + "description": "Output only. Immutable. The Workload creation timestamp.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Required. The user-assigned display name of the Workload. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, and spaces. Example: My Workload", + "type": "string" + }, + "etag": { + "description": "Optional. ETag of the workload, it is calculated on the basis of the Workload contents. It will be used in Update \u0026 Delete operations.", + "type": "string" + }, + "kmsSettings": { + "$ref": "GoogleCloudAssuredworkloadsV1WorkloadKMSSettings", + "description": "Input only. Settings used to create a CMEK crypto key. When set a project with a KMS CMEK key is provisioned. This field is mandatory for a subset of Compliance Regimes." + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Labels applied to the workload.", + "type": "object" + }, + "name": { + "description": "Optional. The resource name of the workload. Format: organizations/{organization}/locations/{location}/workloads/{workload} Read-only.", + "type": "string" + }, + "provisionedResourcesParent": { + "description": "Input only. The parent resource for the resources managed by this Assured Workload. May be either an organization or a folder. Must be the same or a child of the Workload parent. If not specified all resources are created under the Workload parent. Formats: folders/{folder_id} organizations/{organization_id}", + "type": "string" + }, + "resources": { + "description": "Output only. The resources associated with this workload. These resources will be created when creating the workload. If any of the projects already exist, the workload creation will fail. Always read only.", + "items": { + "$ref": "GoogleCloudAssuredworkloadsV1WorkloadResourceInfo" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAssuredworkloadsV1WorkloadKMSSettings": { + "description": "Settings specific to the Key Management Service.", + "id": "GoogleCloudAssuredworkloadsV1WorkloadKMSSettings", + "properties": { + "nextRotationTime": { + "description": "Required. Input only. Immutable. The time at which the Key Management Service will automatically create a new version of the crypto key and mark it as the primary.", + "format": "google-datetime", + "type": "string" + }, + "rotationPeriod": { + "description": "Required. Input only. Immutable. [next_rotation_time] will be advanced by this period when the Key Management Service automatically rotates a key. Must be at least 24 hours and at most 876,000 hours.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAssuredworkloadsV1WorkloadResourceInfo": { + "description": "Represent the resources that are children of this Workload.", + "id": "GoogleCloudAssuredworkloadsV1WorkloadResourceInfo", + "properties": { + "resourceId": { + "description": "Resource identifier. For a project this represents project_number.", + "format": "int64", + "type": "string" + }, + "resourceType": { + "description": "Indicates the type of resource.", + "enum": [ + "RESOURCE_TYPE_UNSPECIFIED", + "CONSUMER_PROJECT", + "ENCRYPTION_KEYS_PROJECT" + ], + "enumDescriptions": [ + "Unknown resource type.", + "Consumer project.", + "Consumer project containing encryption keys." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata": { + "description": "Operation metadata to give request details of CreateWorkload.", + "id": "GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata", + "properties": { + "complianceRegime": { + "description": "Optional. Compliance controls that should be applied to the resources managed by the workload.", + "enum": [ + "COMPLIANCE_REGIME_UNSPECIFIED", + "IL4", + "CJIS", + "FEDRAMP_HIGH", + "FEDRAMP_MODERATE" + ], + "enumDescriptions": [ + "Unknown compliance regime.", + "Information protection as per DoD IL4 requirements.", + "Criminal Justice Information Services (CJIS) Security policies.", + "FedRAMP High data protection controls", + "FedRAMP Moderate data protection controls" + ], + "type": "string" + }, + "createTime": { + "description": "Optional. Time when the operation was created.", + "format": "google-datetime", + "type": "string" + }, + "displayName": { + "description": "Optional. The display name of the workload.", + "type": "string" + }, + "parent": { + "description": "Optional. The parent of the workload.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAssuredworkloadsV1beta1Workload": { + "description": "An Workload object for managing highly regulated workloads of cloud customers.", + "id": "GoogleCloudAssuredworkloadsV1beta1Workload", + "properties": { + "billingAccount": { + "description": "Required. Input only. The billing account used for the resources which are direct children of workload. This billing account is initially associated with the resources created as part of Workload creation. After the initial creation of these resources, the customer can change the assigned billing account. The resource name has the form `billingAccounts/{billing_account_id}`. For example, `billingAccounts/012345-567890-ABCDEF`.", + "type": "string" + }, + "cjisSettings": { + "$ref": "GoogleCloudAssuredworkloadsV1beta1WorkloadCJISSettings", + "description": "Required. Input only. Immutable. Settings specific to resources needed for CJIS." + }, + "complianceRegime": { + "description": "Required. Immutable. Compliance Regime associated with this workload.", + "enum": [ + "COMPLIANCE_REGIME_UNSPECIFIED", + "IL4", + "CJIS", + "FEDRAMP_HIGH", + "FEDRAMP_MODERATE" + ], + "enumDescriptions": [ + "Unknown compliance regime.", + "Information protection as per DoD IL4 requirements.", + "Criminal Justice Information Services (CJIS) Security policies.", + "FedRAMP High data protection controls", + "FedRAMP Moderate data protection controls" + ], + "type": "string" + }, + "createTime": { + "description": "Output only. Immutable. The Workload creation timestamp.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Required. The user-assigned display name of the Workload. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, and spaces. Example: My Workload", + "type": "string" + }, + "etag": { + "description": "Optional. ETag of the workload, it is calculated on the basis of the Workload contents. It will be used in Update \u0026 Delete operations.", + "type": "string" + }, + "fedrampHighSettings": { + "$ref": "GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampHighSettings", + "description": "Required. Input only. Immutable. Settings specific to resources needed for FedRAMP High." + }, + "fedrampModerateSettings": { + "$ref": "GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampModerateSettings", + "description": "Required. Input only. Immutable. Settings specific to resources needed for FedRAMP Moderate." + }, + "il4Settings": { + "$ref": "GoogleCloudAssuredworkloadsV1beta1WorkloadIL4Settings", + "description": "Required. Input only. Immutable. Settings specific to resources needed for IL4." + }, + "kmsSettings": { + "$ref": "GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings", + "description": "Input only. Settings used to create a CMEK crypto key. When set a project with a KMS CMEK key is provisioned. This field is mandatory for a subset of Compliance Regimes." + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Labels applied to the workload.", + "type": "object" + }, + "name": { + "description": "Optional. The resource name of the workload. Format: organizations/{organization}/locations/{location}/workloads/{workload} Read-only.", + "type": "string" + }, + "provisionedResourcesParent": { + "description": "Input only. The parent resource for the resources managed by this Assured Workload. May be either an organization or a folder. Must be the same or a child of the Workload parent. If not specified all resources are created under the Workload parent. Formats: folders/{folder_id} organizations/{organization_id}", + "type": "string" + }, + "resources": { + "description": "Output only. The resources associated with this workload. These resources will be created when creating the workload. If any of the projects already exist, the workload creation will fail. Always read only.", + "items": { + "$ref": "GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAssuredworkloadsV1beta1WorkloadCJISSettings": { + "description": "Settings specific to resources needed for CJIS.", + "id": "GoogleCloudAssuredworkloadsV1beta1WorkloadCJISSettings", + "properties": { + "kmsSettings": { + "$ref": "GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings", + "description": "Required. Input only. Immutable. Settings used to create a CMEK crypto key." + } + }, + "type": "object" + }, + "GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampHighSettings": { + "description": "Settings specific to resources needed for FedRAMP High.", + "id": "GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampHighSettings", + "properties": { + "kmsSettings": { + "$ref": "GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings", + "description": "Required. Input only. Immutable. Settings used to create a CMEK crypto key." + } + }, + "type": "object" + }, + "GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampModerateSettings": { + "description": "Settings specific to resources needed for FedRAMP Moderate.", + "id": "GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampModerateSettings", + "properties": { + "kmsSettings": { + "$ref": "GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings", + "description": "Required. Input only. Immutable. Settings used to create a CMEK crypto key." + } + }, + "type": "object" + }, + "GoogleCloudAssuredworkloadsV1beta1WorkloadIL4Settings": { + "description": "Settings specific to resources needed for IL4.", + "id": "GoogleCloudAssuredworkloadsV1beta1WorkloadIL4Settings", + "properties": { + "kmsSettings": { + "$ref": "GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings", + "description": "Required. Input only. Immutable. Settings used to create a CMEK crypto key." + } + }, + "type": "object" + }, + "GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings": { + "description": "Settings specific to the Key Management Service.", + "id": "GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings", + "properties": { + "nextRotationTime": { + "description": "Required. Input only. Immutable. The time at which the Key Management Service will automatically create a new version of the crypto key and mark it as the primary.", + "format": "google-datetime", + "type": "string" + }, + "rotationPeriod": { + "description": "Required. Input only. Immutable. [next_rotation_time] will be advanced by this period when the Key Management Service automatically rotates a key. Must be at least 24 hours and at most 876,000 hours.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo": { + "description": "Represent the resources that are children of this Workload.", + "id": "GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo", + "properties": { + "resourceId": { + "description": "Resource identifier. For a project this represents project_number.", + "format": "int64", + "type": "string" + }, + "resourceType": { + "description": "Indicates the type of resource.", + "enum": [ + "RESOURCE_TYPE_UNSPECIFIED", + "CONSUMER_PROJECT", + "ENCRYPTION_KEYS_PROJECT" + ], + "enumDescriptions": [ + "Unknown resource type.", + "Consumer project.", + "Consumer project containing encryption keys." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleLongrunningListOperationsResponse": { + "description": "The response message for Operations.ListOperations.", + "id": "GoogleLongrunningListOperationsResponse", + "properties": { + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + }, + "operations": { + "description": "A list of operations that matches the specified filter in the request.", + "items": { + "$ref": "GoogleLongrunningOperation" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleLongrunningOperation": { + "description": "This resource represents a long-running operation that is the result of a network API call.", + "id": "GoogleLongrunningOperation", + "properties": { + "done": { + "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", + "type": "boolean" + }, + "error": { + "$ref": "GoogleRpcStatus", + "description": "The error result of the operation in case of failure or cancellation." + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "type": "object" + }, + "name": { + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", + "type": "string" + }, + "response": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "type": "object" + } + }, + "type": "object" + }, + "GoogleProtobufEmpty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "id": "GoogleProtobufEmpty", + "properties": {}, + "type": "object" + }, + "GoogleRpcStatus": { + "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", + "id": "GoogleRpcStatus", + "properties": { + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "format": "int32", + "type": "integer" + }, + "details": { + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", + "type": "string" + } + }, + "type": "object" + } + }, + "servicePath": "", + "title": "Assured Workloads API", + "version": "v1", + "version_module": true +} \ No newline at end of file diff --git a/assuredworkloads/v1/assuredworkloads-gen.go b/assuredworkloads/v1/assuredworkloads-gen.go new file mode 100644 index 00000000000..e24d97ccdaa --- /dev/null +++ b/assuredworkloads/v1/assuredworkloads-gen.go @@ -0,0 +1,2104 @@ +// Copyright 2020 Google LLC. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated file. DO NOT EDIT. + +// Package assuredworkloads provides access to the Assured Workloads API. +// +// For product documentation, see: https://cloud.google.com +// +// Creating a client +// +// Usage example: +// +// import "google.golang.org/api/assuredworkloads/v1" +// ... +// ctx := context.Background() +// assuredworkloadsService, err := assuredworkloads.NewService(ctx) +// +// In this example, Google Application Default Credentials are used for authentication. +// +// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// +// Other authentication options +// +// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// +// assuredworkloadsService, err := assuredworkloads.NewService(ctx, option.WithAPIKey("AIza...")) +// +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// +// config := &oauth2.Config{...} +// // ... +// token, err := config.Exchange(ctx, ...) +// assuredworkloadsService, err := assuredworkloads.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) +// +// See https://godoc.org/google.golang.org/api/option/ for details on options. +package assuredworkloads // import "google.golang.org/api/assuredworkloads/v1" + +import ( + "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + googleapi "google.golang.org/api/googleapi" + gensupport "google.golang.org/api/internal/gensupport" + option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" + htransport "google.golang.org/api/transport/http" +) + +// Always reference these packages, just in case the auto-generated code +// below doesn't. +var _ = bytes.NewBuffer +var _ = strconv.Itoa +var _ = fmt.Sprintf +var _ = json.NewDecoder +var _ = io.Copy +var _ = url.Parse +var _ = gensupport.MarshalJSON +var _ = googleapi.Version +var _ = errors.New +var _ = strings.Replace +var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint + +const apiId = "assuredworkloads:v1" +const apiName = "assuredworkloads" +const apiVersion = "v1" +const basePath = "https://assuredworkloads.googleapis.com/" +const mtlsBasePath = "https://assuredworkloads.mtls.googleapis.com/" + +// OAuth2 scopes used by this API. +const ( + // View and manage your data across Google Cloud Platform services + CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" +) + +// NewService creates a new Service. +func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + scopesOption := option.WithScopes( + "https://www.googleapis.com/auth/cloud-platform", + ) + // NOTE: prepend, so we don't override user-specified scopes. + opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + client, endpoint, err := htransport.NewClient(ctx, opts...) + if err != nil { + return nil, err + } + s, err := New(client) + if err != nil { + return nil, err + } + if endpoint != "" { + s.BasePath = endpoint + } + return s, nil +} + +// New creates a new Service. It uses the provided http.Client for requests. +// +// Deprecated: please use NewService instead. +// To provide a custom HTTP client, use option.WithHTTPClient. +// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. +func New(client *http.Client) (*Service, error) { + if client == nil { + return nil, errors.New("client is nil") + } + s := &Service{client: client, BasePath: basePath} + s.Organizations = NewOrganizationsService(s) + return s, nil +} + +type Service struct { + client *http.Client + BasePath string // API endpoint base URL + UserAgent string // optional additional User-Agent fragment + + Organizations *OrganizationsService +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewOrganizationsService(s *Service) *OrganizationsService { + rs := &OrganizationsService{s: s} + rs.Locations = NewOrganizationsLocationsService(s) + return rs +} + +type OrganizationsService struct { + s *Service + + Locations *OrganizationsLocationsService +} + +func NewOrganizationsLocationsService(s *Service) *OrganizationsLocationsService { + rs := &OrganizationsLocationsService{s: s} + rs.Operations = NewOrganizationsLocationsOperationsService(s) + rs.Workloads = NewOrganizationsLocationsWorkloadsService(s) + return rs +} + +type OrganizationsLocationsService struct { + s *Service + + Operations *OrganizationsLocationsOperationsService + + Workloads *OrganizationsLocationsWorkloadsService +} + +func NewOrganizationsLocationsOperationsService(s *Service) *OrganizationsLocationsOperationsService { + rs := &OrganizationsLocationsOperationsService{s: s} + return rs +} + +type OrganizationsLocationsOperationsService struct { + s *Service +} + +func NewOrganizationsLocationsWorkloadsService(s *Service) *OrganizationsLocationsWorkloadsService { + rs := &OrganizationsLocationsWorkloadsService{s: s} + return rs +} + +type OrganizationsLocationsWorkloadsService struct { + s *Service +} + +// GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata: +// Operation metadata to give request details of CreateWorkload. +type GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata struct { + // ComplianceRegime: Optional. Compliance controls that should be + // applied to the resources managed by the workload. + // + // Possible values: + // "COMPLIANCE_REGIME_UNSPECIFIED" - Unknown compliance regime. + // "IL4" - Information protection as per DoD IL4 requirements. + // "CJIS" - Criminal Justice Information Services (CJIS) Security + // policies. + // "FEDRAMP_HIGH" - FedRAMP High data protection controls + // "FEDRAMP_MODERATE" - FedRAMP Moderate data protection controls + ComplianceRegime string `json:"complianceRegime,omitempty"` + + // CreateTime: Optional. Time when the operation was created. + CreateTime string `json:"createTime,omitempty"` + + // DisplayName: Optional. The display name of the workload. + DisplayName string `json:"displayName,omitempty"` + + // Parent: Optional. The parent of the workload. + Parent string `json:"parent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ComplianceRegime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ComplianceRegime") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAssuredworkloadsV1ListWorkloadsResponse: Response of +// ListWorkloads endpoint. +type GoogleCloudAssuredworkloadsV1ListWorkloadsResponse struct { + // NextPageToken: The next page token. Return empty if reached the last + // page. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Workloads: List of Workloads under a given parent. + Workloads []*GoogleCloudAssuredworkloadsV1Workload `json:"workloads,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAssuredworkloadsV1ListWorkloadsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAssuredworkloadsV1ListWorkloadsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAssuredworkloadsV1Workload: An Workload object for +// managing highly regulated workloads of cloud customers. +type GoogleCloudAssuredworkloadsV1Workload struct { + // BillingAccount: Required. Input only. The billing account used for + // the resources which are direct children of workload. This billing + // account is initially associated with the resources created as part of + // Workload creation. After the initial creation of these resources, the + // customer can change the assigned billing account. The resource name + // has the form `billingAccounts/{billing_account_id}`. For example, + // `billingAccounts/012345-567890-ABCDEF`. + BillingAccount string `json:"billingAccount,omitempty"` + + // ComplianceRegime: Required. Immutable. Compliance Regime associated + // with this workload. + // + // Possible values: + // "COMPLIANCE_REGIME_UNSPECIFIED" - Unknown compliance regime. + // "IL4" - Information protection as per DoD IL4 requirements. + // "CJIS" - Criminal Justice Information Services (CJIS) Security + // policies. + // "FEDRAMP_HIGH" - FedRAMP High data protection controls + // "FEDRAMP_MODERATE" - FedRAMP Moderate data protection controls + ComplianceRegime string `json:"complianceRegime,omitempty"` + + // CreateTime: Output only. Immutable. The Workload creation timestamp. + CreateTime string `json:"createTime,omitempty"` + + // DisplayName: Required. The user-assigned display name of the + // Workload. When present it must be between 4 to 30 characters. Allowed + // characters are: lowercase and uppercase letters, numbers, hyphen, and + // spaces. Example: My Workload + DisplayName string `json:"displayName,omitempty"` + + // Etag: Optional. ETag of the workload, it is calculated on the basis + // of the Workload contents. It will be used in Update & Delete + // operations. + Etag string `json:"etag,omitempty"` + + // KmsSettings: Input only. Settings used to create a CMEK crypto key. + // When set a project with a KMS CMEK key is provisioned. This field is + // mandatory for a subset of Compliance Regimes. + KmsSettings *GoogleCloudAssuredworkloadsV1WorkloadKMSSettings `json:"kmsSettings,omitempty"` + + // Labels: Optional. Labels applied to the workload. + Labels map[string]string `json:"labels,omitempty"` + + // Name: Optional. The resource name of the workload. Format: + // organizations/{organization}/locations/{location}/workloads/{workload} + // Read-only. + Name string `json:"name,omitempty"` + + // ProvisionedResourcesParent: Input only. The parent resource for the + // resources managed by this Assured Workload. May be either an + // organization or a folder. Must be the same or a child of the Workload + // parent. If not specified all resources are created under the Workload + // parent. Formats: folders/{folder_id} organizations/{organization_id} + ProvisionedResourcesParent string `json:"provisionedResourcesParent,omitempty"` + + // Resources: Output only. The resources associated with this workload. + // These resources will be created when creating the workload. If any of + // the projects already exist, the workload creation will fail. Always + // read only. + Resources []*GoogleCloudAssuredworkloadsV1WorkloadResourceInfo `json:"resources,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "BillingAccount") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BillingAccount") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAssuredworkloadsV1Workload) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAssuredworkloadsV1Workload + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAssuredworkloadsV1WorkloadKMSSettings: Settings specific +// to the Key Management Service. +type GoogleCloudAssuredworkloadsV1WorkloadKMSSettings struct { + // NextRotationTime: Required. Input only. Immutable. The time at which + // the Key Management Service will automatically create a new version of + // the crypto key and mark it as the primary. + NextRotationTime string `json:"nextRotationTime,omitempty"` + + // RotationPeriod: Required. Input only. Immutable. [next_rotation_time] + // will be advanced by this period when the Key Management Service + // automatically rotates a key. Must be at least 24 hours and at most + // 876,000 hours. + RotationPeriod string `json:"rotationPeriod,omitempty"` + + // ForceSendFields is a list of field names (e.g. "NextRotationTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextRotationTime") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAssuredworkloadsV1WorkloadKMSSettings) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAssuredworkloadsV1WorkloadKMSSettings + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAssuredworkloadsV1WorkloadResourceInfo: Represent the +// resources that are children of this Workload. +type GoogleCloudAssuredworkloadsV1WorkloadResourceInfo struct { + // ResourceId: Resource identifier. For a project this represents + // project_number. + ResourceId int64 `json:"resourceId,omitempty,string"` + + // ResourceType: Indicates the type of resource. + // + // Possible values: + // "RESOURCE_TYPE_UNSPECIFIED" - Unknown resource type. + // "CONSUMER_PROJECT" - Consumer project. + // "ENCRYPTION_KEYS_PROJECT" - Consumer project containing encryption + // keys. + ResourceType string `json:"resourceType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ResourceId") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ResourceId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAssuredworkloadsV1WorkloadResourceInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAssuredworkloadsV1WorkloadResourceInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata: +// Operation metadata to give request details of CreateWorkload. +type GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata struct { + // ComplianceRegime: Optional. Compliance controls that should be + // applied to the resources managed by the workload. + // + // Possible values: + // "COMPLIANCE_REGIME_UNSPECIFIED" - Unknown compliance regime. + // "IL4" - Information protection as per DoD IL4 requirements. + // "CJIS" - Criminal Justice Information Services (CJIS) Security + // policies. + // "FEDRAMP_HIGH" - FedRAMP High data protection controls + // "FEDRAMP_MODERATE" - FedRAMP Moderate data protection controls + ComplianceRegime string `json:"complianceRegime,omitempty"` + + // CreateTime: Optional. Time when the operation was created. + CreateTime string `json:"createTime,omitempty"` + + // DisplayName: Optional. The display name of the workload. + DisplayName string `json:"displayName,omitempty"` + + // Parent: Optional. The parent of the workload. + Parent string `json:"parent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ComplianceRegime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ComplianceRegime") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAssuredworkloadsV1beta1Workload: An Workload object for +// managing highly regulated workloads of cloud customers. +type GoogleCloudAssuredworkloadsV1beta1Workload struct { + // BillingAccount: Required. Input only. The billing account used for + // the resources which are direct children of workload. This billing + // account is initially associated with the resources created as part of + // Workload creation. After the initial creation of these resources, the + // customer can change the assigned billing account. The resource name + // has the form `billingAccounts/{billing_account_id}`. For example, + // `billingAccounts/012345-567890-ABCDEF`. + BillingAccount string `json:"billingAccount,omitempty"` + + // CjisSettings: Required. Input only. Immutable. Settings specific to + // resources needed for CJIS. + CjisSettings *GoogleCloudAssuredworkloadsV1beta1WorkloadCJISSettings `json:"cjisSettings,omitempty"` + + // ComplianceRegime: Required. Immutable. Compliance Regime associated + // with this workload. + // + // Possible values: + // "COMPLIANCE_REGIME_UNSPECIFIED" - Unknown compliance regime. + // "IL4" - Information protection as per DoD IL4 requirements. + // "CJIS" - Criminal Justice Information Services (CJIS) Security + // policies. + // "FEDRAMP_HIGH" - FedRAMP High data protection controls + // "FEDRAMP_MODERATE" - FedRAMP Moderate data protection controls + ComplianceRegime string `json:"complianceRegime,omitempty"` + + // CreateTime: Output only. Immutable. The Workload creation timestamp. + CreateTime string `json:"createTime,omitempty"` + + // DisplayName: Required. The user-assigned display name of the + // Workload. When present it must be between 4 to 30 characters. Allowed + // characters are: lowercase and uppercase letters, numbers, hyphen, and + // spaces. Example: My Workload + DisplayName string `json:"displayName,omitempty"` + + // Etag: Optional. ETag of the workload, it is calculated on the basis + // of the Workload contents. It will be used in Update & Delete + // operations. + Etag string `json:"etag,omitempty"` + + // FedrampHighSettings: Required. Input only. Immutable. Settings + // specific to resources needed for FedRAMP High. + FedrampHighSettings *GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampHighSettings `json:"fedrampHighSettings,omitempty"` + + // FedrampModerateSettings: Required. Input only. Immutable. Settings + // specific to resources needed for FedRAMP Moderate. + FedrampModerateSettings *GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampModerateSettings `json:"fedrampModerateSettings,omitempty"` + + // Il4Settings: Required. Input only. Immutable. Settings specific to + // resources needed for IL4. + Il4Settings *GoogleCloudAssuredworkloadsV1beta1WorkloadIL4Settings `json:"il4Settings,omitempty"` + + // KmsSettings: Input only. Settings used to create a CMEK crypto key. + // When set a project with a KMS CMEK key is provisioned. This field is + // mandatory for a subset of Compliance Regimes. + KmsSettings *GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings `json:"kmsSettings,omitempty"` + + // Labels: Optional. Labels applied to the workload. + Labels map[string]string `json:"labels,omitempty"` + + // Name: Optional. The resource name of the workload. Format: + // organizations/{organization}/locations/{location}/workloads/{workload} + // Read-only. + Name string `json:"name,omitempty"` + + // ProvisionedResourcesParent: Input only. The parent resource for the + // resources managed by this Assured Workload. May be either an + // organization or a folder. Must be the same or a child of the Workload + // parent. If not specified all resources are created under the Workload + // parent. Formats: folders/{folder_id} organizations/{organization_id} + ProvisionedResourcesParent string `json:"provisionedResourcesParent,omitempty"` + + // Resources: Output only. The resources associated with this workload. + // These resources will be created when creating the workload. If any of + // the projects already exist, the workload creation will fail. Always + // read only. + Resources []*GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo `json:"resources,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BillingAccount") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BillingAccount") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAssuredworkloadsV1beta1Workload) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAssuredworkloadsV1beta1Workload + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAssuredworkloadsV1beta1WorkloadCJISSettings: Settings +// specific to resources needed for CJIS. +type GoogleCloudAssuredworkloadsV1beta1WorkloadCJISSettings struct { + // KmsSettings: Required. Input only. Immutable. Settings used to create + // a CMEK crypto key. + KmsSettings *GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings `json:"kmsSettings,omitempty"` + + // ForceSendFields is a list of field names (e.g. "KmsSettings") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "KmsSettings") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAssuredworkloadsV1beta1WorkloadCJISSettings) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAssuredworkloadsV1beta1WorkloadCJISSettings + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampHighSettings: +// Settings specific to resources needed for FedRAMP High. +type GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampHighSettings struct { + // KmsSettings: Required. Input only. Immutable. Settings used to create + // a CMEK crypto key. + KmsSettings *GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings `json:"kmsSettings,omitempty"` + + // ForceSendFields is a list of field names (e.g. "KmsSettings") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "KmsSettings") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampHighSettings) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampHighSettings + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampModerateSettings: +// Settings specific to resources needed for FedRAMP Moderate. +type GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampModerateSettings struct { + // KmsSettings: Required. Input only. Immutable. Settings used to create + // a CMEK crypto key. + KmsSettings *GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings `json:"kmsSettings,omitempty"` + + // ForceSendFields is a list of field names (e.g. "KmsSettings") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "KmsSettings") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampModerateSettings) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampModerateSettings + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAssuredworkloadsV1beta1WorkloadIL4Settings: Settings +// specific to resources needed for IL4. +type GoogleCloudAssuredworkloadsV1beta1WorkloadIL4Settings struct { + // KmsSettings: Required. Input only. Immutable. Settings used to create + // a CMEK crypto key. + KmsSettings *GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings `json:"kmsSettings,omitempty"` + + // ForceSendFields is a list of field names (e.g. "KmsSettings") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "KmsSettings") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAssuredworkloadsV1beta1WorkloadIL4Settings) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAssuredworkloadsV1beta1WorkloadIL4Settings + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings: Settings +// specific to the Key Management Service. +type GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings struct { + // NextRotationTime: Required. Input only. Immutable. The time at which + // the Key Management Service will automatically create a new version of + // the crypto key and mark it as the primary. + NextRotationTime string `json:"nextRotationTime,omitempty"` + + // RotationPeriod: Required. Input only. Immutable. [next_rotation_time] + // will be advanced by this period when the Key Management Service + // automatically rotates a key. Must be at least 24 hours and at most + // 876,000 hours. + RotationPeriod string `json:"rotationPeriod,omitempty"` + + // ForceSendFields is a list of field names (e.g. "NextRotationTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextRotationTime") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo: Represent the +// resources that are children of this Workload. +type GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo struct { + // ResourceId: Resource identifier. For a project this represents + // project_number. + ResourceId int64 `json:"resourceId,omitempty,string"` + + // ResourceType: Indicates the type of resource. + // + // Possible values: + // "RESOURCE_TYPE_UNSPECIFIED" - Unknown resource type. + // "CONSUMER_PROJECT" - Consumer project. + // "ENCRYPTION_KEYS_PROJECT" - Consumer project containing encryption + // keys. + ResourceType string `json:"resourceType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ResourceId") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ResourceId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleLongrunningListOperationsResponse: The response message for +// Operations.ListOperations. +type GoogleLongrunningListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Operations: A list of operations that matches the specified filter in + // the request. + Operations []*GoogleLongrunningOperation `json:"operations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleLongrunningListOperationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleLongrunningOperation: This resource represents a long-running +// operation that is the result of a network API call. +type GoogleLongrunningOperation struct { + // Done: If the value is `false`, it means the operation is still in + // progress. If `true`, the operation is completed, and either `error` + // or `response` is available. + Done bool `json:"done,omitempty"` + + // Error: The error result of the operation in case of failure or + // cancellation. + Error *GoogleRpcStatus `json:"error,omitempty"` + + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as + // create time. Some services might not provide such metadata. Any + // method that returns a long-running operation should document the + // metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: The server-assigned name, which is only unique within the same + // service that originally returns it. If you use the default HTTP + // mapping, the `name` should be a resource name ending with + // `operations/{unique_id}`. + Name string `json:"name,omitempty"` + + // Response: The normal response of the operation in case of success. If + // the original method returns no data on success, such as `Delete`, the + // response is `google.protobuf.Empty`. If the original method is + // standard `Get`/`Create`/`Update`, the response should be the + // resource. For other methods, the response should have the type + // `XxxResponse`, where `Xxx` is the original method name. For example, + // if the original method name is `TakeSnapshot()`, the inferred + // response type is `TakeSnapshotResponse`. + Response googleapi.RawMessage `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Done") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Done") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleLongrunningOperation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleProtobufEmpty: A generic empty message that you can re-use to +// avoid defining duplicated empty messages in your APIs. A typical +// example is to use it as the request or the response type of an API +// method. For instance: service Foo { rpc Bar(google.protobuf.Empty) +// returns (google.protobuf.Empty); } The JSON representation for +// `Empty` is empty JSON object `{}`. +type GoogleProtobufEmpty struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// GoogleRpcStatus: The `Status` type defines a logical error model that +// is suitable for different programming environments, including REST +// APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). +// Each `Status` message contains three pieces of data: error code, +// error message, and error details. You can find out more about this +// error model and how to work with it in the [API Design +// Guide](https://cloud.google.com/apis/design/errors). +type GoogleRpcStatus struct { + // Code: The status code, which should be an enum value of + // google.rpc.Code. + Code int64 `json:"code,omitempty"` + + // Details: A list of messages that carry the error details. There is a + // common set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { + type NoMethod GoogleRpcStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "assuredworkloads.organizations.locations.operations.get": + +type OrganizationsLocationsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +func (r *OrganizationsLocationsOperationsService) Get(name string) *OrganizationsLocationsOperationsGetCall { + c := &OrganizationsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsLocationsOperationsGetCall) Context(ctx context.Context) *OrganizationsLocationsOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsLocationsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "assuredworkloads.organizations.locations.operations.get" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "assuredworkloads.organizations.locations.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "assuredworkloads.organizations.locations.operations.list": + +type OrganizationsLocationsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to +// override the binding to use different resource name schemes, such as +// `users/*/operations`. To override the binding, API services can add a +// binding such as "/v1/{name=users/*}/operations" to their service +// configuration. For backwards compatibility, the default name includes +// the operations collection id, however overriding users must ensure +// the name binding is the parent resource, without the operations +// collection id. +func (r *OrganizationsLocationsOperationsService) List(name string) *OrganizationsLocationsOperationsListCall { + c := &OrganizationsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *OrganizationsLocationsOperationsListCall) Filter(filter string) *OrganizationsLocationsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *OrganizationsLocationsOperationsListCall) PageSize(pageSize int64) *OrganizationsLocationsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *OrganizationsLocationsOperationsListCall) PageToken(pageToken string) *OrganizationsLocationsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsLocationsOperationsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsLocationsOperationsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsLocationsOperationsListCall) Context(ctx context.Context) *OrganizationsLocationsOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsLocationsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "assuredworkloads.organizations.locations.operations.list" call. +// Exactly one of *GoogleLongrunningListOperationsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleLongrunningListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/operations", + // "httpMethod": "GET", + // "id": "assuredworkloads.organizations.locations.operations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^organizations/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}/operations", + // "response": { + // "$ref": "GoogleLongrunningListOperationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *OrganizationsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "assuredworkloads.organizations.locations.workloads.create": + +type OrganizationsLocationsWorkloadsCreateCall struct { + s *Service + parent string + googlecloudassuredworkloadsv1workload *GoogleCloudAssuredworkloadsV1Workload + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates Assured Workload. +func (r *OrganizationsLocationsWorkloadsService) Create(parent string, googlecloudassuredworkloadsv1workload *GoogleCloudAssuredworkloadsV1Workload) *OrganizationsLocationsWorkloadsCreateCall { + c := &OrganizationsLocationsWorkloadsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudassuredworkloadsv1workload = googlecloudassuredworkloadsv1workload + return c +} + +// ExternalId sets the optional parameter "externalId": A identifier +// associated with the workload and underlying projects which allows for +// the break down of billing costs for a workload. The value provided +// for the identifier will add a label to the workload and contained +// projects with the identifier as the value. +func (c *OrganizationsLocationsWorkloadsCreateCall) ExternalId(externalId string) *OrganizationsLocationsWorkloadsCreateCall { + c.urlParams_.Set("externalId", externalId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsLocationsWorkloadsCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsLocationsWorkloadsCreateCall) Context(ctx context.Context) *OrganizationsLocationsWorkloadsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsLocationsWorkloadsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsWorkloadsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudassuredworkloadsv1workload) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/workloads") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "assuredworkloads.organizations.locations.workloads.create" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsLocationsWorkloadsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates Assured Workload.", + // "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/workloads", + // "httpMethod": "POST", + // "id": "assuredworkloads.organizations.locations.workloads.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "externalId": { + // "description": "Optional. A identifier associated with the workload and underlying projects which allows for the break down of billing costs for a workload. The value provided for the identifier will add a label to the workload and contained projects with the identifier as the value.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the new Workload's parent. Must be of the form `organizations/{org_id}/locations/{location_id}`.", + // "location": "path", + // "pattern": "^organizations/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/workloads", + // "request": { + // "$ref": "GoogleCloudAssuredworkloadsV1Workload" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "assuredworkloads.organizations.locations.workloads.delete": + +type OrganizationsLocationsWorkloadsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the workload. Make sure that workload's direct +// children are already in a deleted state, otherwise the request will +// fail with a FAILED_PRECONDITION error. +func (r *OrganizationsLocationsWorkloadsService) Delete(name string) *OrganizationsLocationsWorkloadsDeleteCall { + c := &OrganizationsLocationsWorkloadsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Etag sets the optional parameter "etag": The etag of the workload. If +// this is provided, it must match the server's etag. +func (c *OrganizationsLocationsWorkloadsDeleteCall) Etag(etag string) *OrganizationsLocationsWorkloadsDeleteCall { + c.urlParams_.Set("etag", etag) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsLocationsWorkloadsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsLocationsWorkloadsDeleteCall) Context(ctx context.Context) *OrganizationsLocationsWorkloadsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsLocationsWorkloadsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsWorkloadsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "assuredworkloads.organizations.locations.workloads.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsLocationsWorkloadsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes the workload. Make sure that workload's direct children are already in a deleted state, otherwise the request will fail with a FAILED_PRECONDITION error.", + // "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/workloads/{workloadsId}", + // "httpMethod": "DELETE", + // "id": "assuredworkloads.organizations.locations.workloads.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "etag": { + // "description": "Optional. The etag of the workload. If this is provided, it must match the server's etag.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "Required. The `name` field is used to identify the workload. Format: organizations/{org_id}/locations/{location_id}/workloads/{workload_id}", + // "location": "path", + // "pattern": "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "assuredworkloads.organizations.locations.workloads.get": + +type OrganizationsLocationsWorkloadsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets Assured Workload associated with a CRM Node +func (r *OrganizationsLocationsWorkloadsService) Get(name string) *OrganizationsLocationsWorkloadsGetCall { + c := &OrganizationsLocationsWorkloadsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsLocationsWorkloadsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsLocationsWorkloadsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsWorkloadsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsLocationsWorkloadsGetCall) Context(ctx context.Context) *OrganizationsLocationsWorkloadsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsLocationsWorkloadsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsWorkloadsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "assuredworkloads.organizations.locations.workloads.get" call. +// Exactly one of *GoogleCloudAssuredworkloadsV1Workload or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAssuredworkloadsV1Workload.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsLocationsWorkloadsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1Workload, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudAssuredworkloadsV1Workload{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets Assured Workload associated with a CRM Node", + // "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/workloads/{workloadsId}", + // "httpMethod": "GET", + // "id": "assuredworkloads.organizations.locations.workloads.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name of the Workload to fetch. This is the workloads's relative path in the API, formatted as \"organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}\". For example, \"organizations/123/locations/us-east1/workloads/assured-workload-1\".", + // "location": "path", + // "pattern": "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudAssuredworkloadsV1Workload" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "assuredworkloads.organizations.locations.workloads.list": + +type OrganizationsLocationsWorkloadsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists Assured Workloads under a CRM Node. +func (r *OrganizationsLocationsWorkloadsService) List(parent string) *OrganizationsLocationsWorkloadsListCall { + c := &OrganizationsLocationsWorkloadsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": A custom filter for +// filtering by properties of a workload. At this time, only filtering +// by labels is supported. +func (c *OrganizationsLocationsWorkloadsListCall) Filter(filter string) *OrganizationsLocationsWorkloadsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": Page size. +func (c *OrganizationsLocationsWorkloadsListCall) PageSize(pageSize int64) *OrganizationsLocationsWorkloadsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token +// returned from previous request. Page token contains context from +// previous request. Page token needs to be passed in the second and +// following requests. +func (c *OrganizationsLocationsWorkloadsListCall) PageToken(pageToken string) *OrganizationsLocationsWorkloadsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsLocationsWorkloadsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsLocationsWorkloadsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsWorkloadsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsLocationsWorkloadsListCall) Context(ctx context.Context) *OrganizationsLocationsWorkloadsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsLocationsWorkloadsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsWorkloadsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/workloads") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "assuredworkloads.organizations.locations.workloads.list" call. +// Exactly one of *GoogleCloudAssuredworkloadsV1ListWorkloadsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAssuredworkloadsV1ListWorkloadsResponse.ServerResponse.Hea +// der or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsLocationsWorkloadsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1ListWorkloadsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudAssuredworkloadsV1ListWorkloadsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists Assured Workloads under a CRM Node.", + // "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/workloads", + // "httpMethod": "GET", + // "id": "assuredworkloads.organizations.locations.workloads.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "A custom filter for filtering by properties of a workload. At this time, only filtering by labels is supported.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Page token returned from previous request. Page token contains context from previous request. Page token needs to be passed in the second and following requests.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Parent Resource to list workloads from. Must be of the form `organizations/{org_id}/locations/{location}`.", + // "location": "path", + // "pattern": "^organizations/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/workloads", + // "response": { + // "$ref": "GoogleCloudAssuredworkloadsV1ListWorkloadsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *OrganizationsLocationsWorkloadsListCall) Pages(ctx context.Context, f func(*GoogleCloudAssuredworkloadsV1ListWorkloadsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "assuredworkloads.organizations.locations.workloads.patch": + +type OrganizationsLocationsWorkloadsPatchCall struct { + s *Service + name string + googlecloudassuredworkloadsv1workload *GoogleCloudAssuredworkloadsV1Workload + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates an existing workload. Currently allows updating of +// workload display_name and labels. For force updates don't set etag +// field in the Workload. Only one update operation per workload can be +// in progress. +func (r *OrganizationsLocationsWorkloadsService) Patch(name string, googlecloudassuredworkloadsv1workload *GoogleCloudAssuredworkloadsV1Workload) *OrganizationsLocationsWorkloadsPatchCall { + c := &OrganizationsLocationsWorkloadsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudassuredworkloadsv1workload = googlecloudassuredworkloadsv1workload + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The +// list of fields to be updated. +func (c *OrganizationsLocationsWorkloadsPatchCall) UpdateMask(updateMask string) *OrganizationsLocationsWorkloadsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsLocationsWorkloadsPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsLocationsWorkloadsPatchCall) Context(ctx context.Context) *OrganizationsLocationsWorkloadsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsLocationsWorkloadsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsWorkloadsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudassuredworkloadsv1workload) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "assuredworkloads.organizations.locations.workloads.patch" call. +// Exactly one of *GoogleCloudAssuredworkloadsV1Workload or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAssuredworkloadsV1Workload.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsLocationsWorkloadsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1Workload, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudAssuredworkloadsV1Workload{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates an existing workload. Currently allows updating of workload display_name and labels. For force updates don't set etag field in the Workload. Only one update operation per workload can be in progress.", + // "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/workloads/{workloadsId}", + // "httpMethod": "PATCH", + // "id": "assuredworkloads.organizations.locations.workloads.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Optional. The resource name of the workload. Format: organizations/{organization}/locations/{location}/workloads/{workload} Read-only.", + // "location": "path", + // "pattern": "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The list of fields to be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudAssuredworkloadsV1Workload" + // }, + // "response": { + // "$ref": "GoogleCloudAssuredworkloadsV1Workload" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} diff --git a/assuredworkloads/v1beta1/assuredworkloads-api.json b/assuredworkloads/v1beta1/assuredworkloads-api.json index f044f9f93d2..fa088966d51 100644 --- a/assuredworkloads/v1beta1/assuredworkloads-api.json +++ b/assuredworkloads/v1beta1/assuredworkloads-api.json @@ -351,7 +351,7 @@ } } }, - "revision": "20200924", + "revision": "20201112", "rootUrl": "https://assuredworkloads.googleapis.com/", "schemas": { "GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata": { @@ -400,10 +400,6 @@ "description": "Required. Input only. The billing account used for the resources which are direct children of workload. This billing account is initially associated with the resources created as part of Workload creation. After the initial creation of these resources, the customer can change the assigned billing account. The resource name has the form `billingAccounts/{billing_account_id}`. For example, `billingAccounts/012345-567890-ABCDEF`.", "type": "string" }, - "cjisSettings": { - "$ref": "GoogleCloudAssuredworkloadsV1WorkloadCJISSettings", - "description": "Required. Input only. Immutable. Settings specific to resources needed for CJIS." - }, "complianceRegime": { "description": "Required. Immutable. Compliance Regime associated with this workload.", "enum": [ @@ -436,17 +432,9 @@ "description": "Optional. ETag of the workload, it is calculated on the basis of the Workload contents. It will be used in Update \u0026 Delete operations.", "type": "string" }, - "fedrampHighSettings": { - "$ref": "GoogleCloudAssuredworkloadsV1WorkloadFedrampHighSettings", - "description": "Required. Input only. Immutable. Settings specific to resources needed for FedRAMP High." - }, - "fedrampModerateSettings": { - "$ref": "GoogleCloudAssuredworkloadsV1WorkloadFedrampModerateSettings", - "description": "Required. Input only. Immutable. Settings specific to resources needed for FedRAMP Moderate." - }, - "il4Settings": { - "$ref": "GoogleCloudAssuredworkloadsV1WorkloadIL4Settings", - "description": "Required. Input only. Immutable. Settings specific to resources needed for IL4." + "kmsSettings": { + "$ref": "GoogleCloudAssuredworkloadsV1WorkloadKMSSettings", + "description": "Input only. Settings used to create a CMEK crypto key. When set a project with a KMS CMEK key is provisioned. This field is mandatory for a subset of Compliance Regimes." }, "labels": { "additionalProperties": { @@ -459,6 +447,10 @@ "description": "Optional. The resource name of the workload. Format: organizations/{organization}/locations/{location}/workloads/{workload} Read-only.", "type": "string" }, + "provisionedResourcesParent": { + "description": "Input only. The parent resource for the resources managed by this Assured Workload. May be either an organization or a folder. Must be the same or a child of the Workload parent. If not specified all resources are created under the Workload parent. Formats: folders/{folder_id} organizations/{organization_id}", + "type": "string" + }, "resources": { "description": "Output only. The resources associated with this workload. These resources will be created when creating the workload. If any of the projects already exist, the workload creation will fail. Always read only.", "items": { @@ -470,50 +462,6 @@ }, "type": "object" }, - "GoogleCloudAssuredworkloadsV1WorkloadCJISSettings": { - "description": "Settings specific to resources needed for CJIS.", - "id": "GoogleCloudAssuredworkloadsV1WorkloadCJISSettings", - "properties": { - "kmsSettings": { - "$ref": "GoogleCloudAssuredworkloadsV1WorkloadKMSSettings", - "description": "Required. Input only. Immutable. Settings used to create a CMEK crypto key." - } - }, - "type": "object" - }, - "GoogleCloudAssuredworkloadsV1WorkloadFedrampHighSettings": { - "description": "Settings specific to resources needed for FedRAMP High.", - "id": "GoogleCloudAssuredworkloadsV1WorkloadFedrampHighSettings", - "properties": { - "kmsSettings": { - "$ref": "GoogleCloudAssuredworkloadsV1WorkloadKMSSettings", - "description": "Required. Input only. Immutable. Settings used to create a CMEK crypto key." - } - }, - "type": "object" - }, - "GoogleCloudAssuredworkloadsV1WorkloadFedrampModerateSettings": { - "description": "Settings specific to resources needed for FedRAMP Moderate.", - "id": "GoogleCloudAssuredworkloadsV1WorkloadFedrampModerateSettings", - "properties": { - "kmsSettings": { - "$ref": "GoogleCloudAssuredworkloadsV1WorkloadKMSSettings", - "description": "Required. Input only. Immutable. Settings used to create a CMEK crypto key." - } - }, - "type": "object" - }, - "GoogleCloudAssuredworkloadsV1WorkloadIL4Settings": { - "description": "Settings specific to resources needed for IL4.", - "id": "GoogleCloudAssuredworkloadsV1WorkloadIL4Settings", - "properties": { - "kmsSettings": { - "$ref": "GoogleCloudAssuredworkloadsV1WorkloadKMSSettings", - "description": "Required. Input only. Immutable. Settings used to create a CMEK crypto key." - } - }, - "type": "object" - }, "GoogleCloudAssuredworkloadsV1WorkloadKMSSettings": { "description": "Settings specific to the Key Management Service.", "id": "GoogleCloudAssuredworkloadsV1WorkloadKMSSettings", @@ -669,6 +617,10 @@ "$ref": "GoogleCloudAssuredworkloadsV1beta1WorkloadIL4Settings", "description": "Required. Input only. Immutable. Settings specific to resources needed for IL4." }, + "kmsSettings": { + "$ref": "GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings", + "description": "Input only. Settings used to create a CMEK crypto key. When set a project with a KMS CMEK key is provisioned. This field is mandatory for a subset of Compliance Regimes." + }, "labels": { "additionalProperties": { "type": "string" @@ -680,6 +632,10 @@ "description": "Optional. The resource name of the workload. Format: organizations/{organization}/locations/{location}/workloads/{workload} Read-only.", "type": "string" }, + "provisionedResourcesParent": { + "description": "Input only. The parent resource for the resources managed by this Assured Workload. May be either an organization or a folder. Must be the same or a child of the Workload parent. If not specified all resources are created under the Workload parent. Formats: folders/{folder_id} organizations/{organization_id}", + "type": "string" + }, "resources": { "description": "Output only. The resources associated with this workload. These resources will be created when creating the workload. If any of the projects already exist, the workload creation will fail. Always read only.", "items": { diff --git a/assuredworkloads/v1beta1/assuredworkloads-gen.go b/assuredworkloads/v1beta1/assuredworkloads-gen.go index 7338134a0e2..c232aad77aa 100644 --- a/assuredworkloads/v1beta1/assuredworkloads-gen.go +++ b/assuredworkloads/v1beta1/assuredworkloads-gen.go @@ -240,10 +240,6 @@ type GoogleCloudAssuredworkloadsV1Workload struct { // `billingAccounts/012345-567890-ABCDEF`. BillingAccount string `json:"billingAccount,omitempty"` - // CjisSettings: Required. Input only. Immutable. Settings specific to - // resources needed for CJIS. - CjisSettings *GoogleCloudAssuredworkloadsV1WorkloadCJISSettings `json:"cjisSettings,omitempty"` - // ComplianceRegime: Required. Immutable. Compliance Regime associated // with this workload. // @@ -270,17 +266,10 @@ type GoogleCloudAssuredworkloadsV1Workload struct { // operations. Etag string `json:"etag,omitempty"` - // FedrampHighSettings: Required. Input only. Immutable. Settings - // specific to resources needed for FedRAMP High. - FedrampHighSettings *GoogleCloudAssuredworkloadsV1WorkloadFedrampHighSettings `json:"fedrampHighSettings,omitempty"` - - // FedrampModerateSettings: Required. Input only. Immutable. Settings - // specific to resources needed for FedRAMP Moderate. - FedrampModerateSettings *GoogleCloudAssuredworkloadsV1WorkloadFedrampModerateSettings `json:"fedrampModerateSettings,omitempty"` - - // Il4Settings: Required. Input only. Immutable. Settings specific to - // resources needed for IL4. - Il4Settings *GoogleCloudAssuredworkloadsV1WorkloadIL4Settings `json:"il4Settings,omitempty"` + // KmsSettings: Input only. Settings used to create a CMEK crypto key. + // When set a project with a KMS CMEK key is provisioned. This field is + // mandatory for a subset of Compliance Regimes. + KmsSettings *GoogleCloudAssuredworkloadsV1WorkloadKMSSettings `json:"kmsSettings,omitempty"` // Labels: Optional. Labels applied to the workload. Labels map[string]string `json:"labels,omitempty"` @@ -290,6 +279,13 @@ type GoogleCloudAssuredworkloadsV1Workload struct { // Read-only. Name string `json:"name,omitempty"` + // ProvisionedResourcesParent: Input only. The parent resource for the + // resources managed by this Assured Workload. May be either an + // organization or a folder. Must be the same or a child of the Workload + // parent. If not specified all resources are created under the Workload + // parent. Formats: folders/{folder_id} organizations/{organization_id} + ProvisionedResourcesParent string `json:"provisionedResourcesParent,omitempty"` + // Resources: Output only. The resources associated with this workload. // These resources will be created when creating the workload. If any of // the projects already exist, the workload creation will fail. Always @@ -320,126 +316,6 @@ func (s *GoogleCloudAssuredworkloadsV1Workload) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAssuredworkloadsV1WorkloadCJISSettings: Settings specific -// to resources needed for CJIS. -type GoogleCloudAssuredworkloadsV1WorkloadCJISSettings struct { - // KmsSettings: Required. Input only. Immutable. Settings used to create - // a CMEK crypto key. - KmsSettings *GoogleCloudAssuredworkloadsV1WorkloadKMSSettings `json:"kmsSettings,omitempty"` - - // ForceSendFields is a list of field names (e.g. "KmsSettings") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "KmsSettings") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudAssuredworkloadsV1WorkloadCJISSettings) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAssuredworkloadsV1WorkloadCJISSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudAssuredworkloadsV1WorkloadFedrampHighSettings: Settings -// specific to resources needed for FedRAMP High. -type GoogleCloudAssuredworkloadsV1WorkloadFedrampHighSettings struct { - // KmsSettings: Required. Input only. Immutable. Settings used to create - // a CMEK crypto key. - KmsSettings *GoogleCloudAssuredworkloadsV1WorkloadKMSSettings `json:"kmsSettings,omitempty"` - - // ForceSendFields is a list of field names (e.g. "KmsSettings") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "KmsSettings") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudAssuredworkloadsV1WorkloadFedrampHighSettings) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAssuredworkloadsV1WorkloadFedrampHighSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudAssuredworkloadsV1WorkloadFedrampModerateSettings: -// Settings specific to resources needed for FedRAMP Moderate. -type GoogleCloudAssuredworkloadsV1WorkloadFedrampModerateSettings struct { - // KmsSettings: Required. Input only. Immutable. Settings used to create - // a CMEK crypto key. - KmsSettings *GoogleCloudAssuredworkloadsV1WorkloadKMSSettings `json:"kmsSettings,omitempty"` - - // ForceSendFields is a list of field names (e.g. "KmsSettings") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "KmsSettings") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudAssuredworkloadsV1WorkloadFedrampModerateSettings) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAssuredworkloadsV1WorkloadFedrampModerateSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudAssuredworkloadsV1WorkloadIL4Settings: Settings specific -// to resources needed for IL4. -type GoogleCloudAssuredworkloadsV1WorkloadIL4Settings struct { - // KmsSettings: Required. Input only. Immutable. Settings used to create - // a CMEK crypto key. - KmsSettings *GoogleCloudAssuredworkloadsV1WorkloadKMSSettings `json:"kmsSettings,omitempty"` - - // ForceSendFields is a list of field names (e.g. "KmsSettings") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "KmsSettings") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudAssuredworkloadsV1WorkloadIL4Settings) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAssuredworkloadsV1WorkloadIL4Settings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudAssuredworkloadsV1WorkloadKMSSettings: Settings specific // to the Key Management Service. type GoogleCloudAssuredworkloadsV1WorkloadKMSSettings struct { @@ -656,6 +532,11 @@ type GoogleCloudAssuredworkloadsV1beta1Workload struct { // resources needed for IL4. Il4Settings *GoogleCloudAssuredworkloadsV1beta1WorkloadIL4Settings `json:"il4Settings,omitempty"` + // KmsSettings: Input only. Settings used to create a CMEK crypto key. + // When set a project with a KMS CMEK key is provisioned. This field is + // mandatory for a subset of Compliance Regimes. + KmsSettings *GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings `json:"kmsSettings,omitempty"` + // Labels: Optional. Labels applied to the workload. Labels map[string]string `json:"labels,omitempty"` @@ -664,6 +545,13 @@ type GoogleCloudAssuredworkloadsV1beta1Workload struct { // Read-only. Name string `json:"name,omitempty"` + // ProvisionedResourcesParent: Input only. The parent resource for the + // resources managed by this Assured Workload. May be either an + // organization or a folder. Must be the same or a child of the Workload + // parent. If not specified all resources are created under the Workload + // parent. Formats: folders/{folder_id} organizations/{organization_id} + ProvisionedResourcesParent string `json:"provisionedResourcesParent,omitempty"` + // Resources: Output only. The resources associated with this workload. // These resources will be created when creating the workload. If any of // the projects already exist, the workload creation will fail. Always @@ -1107,7 +995,7 @@ func (c *OrganizationsLocationsOperationsGetCall) Header() http.Header { func (c *OrganizationsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201111") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1281,7 +1169,7 @@ func (c *OrganizationsLocationsOperationsListCall) Header() http.Header { func (c *OrganizationsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201111") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1464,7 +1352,7 @@ func (c *OrganizationsLocationsWorkloadsCreateCall) Header() http.Header { func (c *OrganizationsLocationsWorkloadsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201111") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1616,7 +1504,7 @@ func (c *OrganizationsLocationsWorkloadsDeleteCall) Header() http.Header { func (c *OrganizationsLocationsWorkloadsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201111") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1762,7 +1650,7 @@ func (c *OrganizationsLocationsWorkloadsGetCall) Header() http.Header { func (c *OrganizationsLocationsWorkloadsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201111") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1931,7 +1819,7 @@ func (c *OrganizationsLocationsWorkloadsListCall) Header() http.Header { func (c *OrganizationsLocationsWorkloadsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201111") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2116,7 +2004,7 @@ func (c *OrganizationsLocationsWorkloadsPatchCall) Header() http.Header { func (c *OrganizationsLocationsWorkloadsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201111") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/bigquery/v2/bigquery-api.json b/bigquery/v2/bigquery-api.json index 6b6b89301a9..9104cdbff72 100644 --- a/bigquery/v2/bigquery-api.json +++ b/bigquery/v2/bigquery-api.json @@ -41,7 +41,7 @@ }, "id": "bigquery:v2", "kind": "discovery#restDescription", - "mtlsRootUrl": "https://www.mtls.googleapis.com/", + "mtlsRootUrl": "https://bigquery.mtls.googleapis.com/", "name": "bigquery", "ownerDomain": "google.com", "ownerName": "Google", @@ -1579,7 +1579,7 @@ } } }, - "revision": "20201015", + "revision": "20201030", "rootUrl": "https://bigquery.googleapis.com/", "schemas": { "AggregateClassificationMetrics": { @@ -2173,6 +2173,9 @@ "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { + "bindingId": { + "type": "string" + }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." diff --git a/bigquery/v2/bigquery-gen.go b/bigquery/v2/bigquery-gen.go index 173811b1695..570ca1a6d7d 100644 --- a/bigquery/v2/bigquery-gen.go +++ b/bigquery/v2/bigquery-gen.go @@ -81,7 +81,7 @@ const apiId = "bigquery:v2" const apiName = "bigquery" const apiVersion = "v2" const basePath = "https://bigquery.googleapis.com/bigquery/v2/" -const mtlsBasePath = "https://www.mtls.googleapis.com/bigquery/v2/" +const mtlsBasePath = "https://bigquery.mtls.googleapis.com/bigquery/v2/" // OAuth2 scopes used by this API. const ( @@ -1178,6 +1178,8 @@ func (s *BinaryConfusionMatrix) UnmarshalJSON(data []byte) error { // Binding: Associates `members` with a `role`. type Binding struct { + BindingId string `json:"bindingId,omitempty"` + // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -1227,7 +1229,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to + // ForceSendFields is a list of field names (e.g. "BindingId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -1235,7 +1237,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Condition") to include in + // NullFields is a list of field names (e.g. "BindingId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -7694,7 +7696,7 @@ func (c *DatasetsDeleteCall) Header() http.Header { func (c *DatasetsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7821,7 +7823,7 @@ func (c *DatasetsGetCall) Header() http.Header { func (c *DatasetsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7965,7 +7967,7 @@ func (c *DatasetsInsertCall) Header() http.Header { func (c *DatasetsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8145,7 +8147,7 @@ func (c *DatasetsListCall) Header() http.Header { func (c *DatasetsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8328,7 +8330,7 @@ func (c *DatasetsPatchCall) Header() http.Header { func (c *DatasetsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8479,7 +8481,7 @@ func (c *DatasetsUpdateCall) Header() http.Header { func (c *DatasetsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8637,7 +8639,7 @@ func (c *JobsCancelCall) Header() http.Header { func (c *JobsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8802,7 +8804,7 @@ func (c *JobsGetCall) Header() http.Header { func (c *JobsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9001,7 +9003,7 @@ func (c *JobsGetQueryResultsCall) Header() http.Header { func (c *JobsGetQueryResultsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9235,7 +9237,7 @@ func (c *JobsInsertCall) Header() http.Header { func (c *JobsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9502,7 +9504,7 @@ func (c *JobsListCall) Header() http.Header { func (c *JobsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9722,7 +9724,7 @@ func (c *JobsQueryCall) Header() http.Header { func (c *JobsQueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9865,7 +9867,7 @@ func (c *ModelsDeleteCall) Header() http.Header { func (c *ModelsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10001,7 +10003,7 @@ func (c *ModelsGetCall) Header() http.Header { func (c *ModelsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10184,7 +10186,7 @@ func (c *ModelsListCall) Header() http.Header { func (c *ModelsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10367,7 +10369,7 @@ func (c *ModelsPatchCall) Header() http.Header { func (c *ModelsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10536,7 +10538,7 @@ func (c *ProjectsGetServiceAccountCall) Header() http.Header { func (c *ProjectsGetServiceAccountCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10694,7 +10696,7 @@ func (c *ProjectsListCall) Header() http.Header { func (c *ProjectsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10852,7 +10854,7 @@ func (c *RoutinesDeleteCall) Header() http.Header { func (c *RoutinesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10996,7 +10998,7 @@ func (c *RoutinesGetCall) Header() http.Header { func (c *RoutinesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11160,7 +11162,7 @@ func (c *RoutinesInsertCall) Header() http.Header { func (c *RoutinesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11357,7 +11359,7 @@ func (c *RoutinesListCall) Header() http.Header { func (c *RoutinesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11552,7 +11554,7 @@ func (c *RoutinesUpdateCall) Header() http.Header { func (c *RoutinesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11739,7 +11741,7 @@ func (c *RowAccessPoliciesListCall) Header() http.Header { func (c *RowAccessPoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11932,7 +11934,7 @@ func (c *TabledataInsertAllCall) Header() http.Header { func (c *TabledataInsertAllCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12131,7 +12133,7 @@ func (c *TabledataListCall) Header() http.Header { func (c *TabledataListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12329,7 +12331,7 @@ func (c *TablesDeleteCall) Header() http.Header { func (c *TablesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12471,7 +12473,7 @@ func (c *TablesGetCall) Header() http.Header { func (c *TablesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12630,7 +12632,7 @@ func (c *TablesGetIamPolicyCall) Header() http.Header { func (c *TablesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12775,7 +12777,7 @@ func (c *TablesInsertCall) Header() http.Header { func (c *TablesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12948,7 +12950,7 @@ func (c *TablesListCall) Header() http.Header { func (c *TablesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13131,7 +13133,7 @@ func (c *TablesPatchCall) Header() http.Header { func (c *TablesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13288,7 +13290,7 @@ func (c *TablesSetIamPolicyCall) Header() http.Header { func (c *TablesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13434,7 +13436,7 @@ func (c *TablesTestIamPermissionsCall) Header() http.Header { func (c *TablesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13583,7 +13585,7 @@ func (c *TablesUpdateCall) Header() http.Header { func (c *TablesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/bigqueryconnection/v1beta1/bigqueryconnection-api.json b/bigqueryconnection/v1beta1/bigqueryconnection-api.json index 56234f405c7..5a47fbee7f5 100644 --- a/bigqueryconnection/v1beta1/bigqueryconnection-api.json +++ b/bigqueryconnection/v1beta1/bigqueryconnection-api.json @@ -395,7 +395,7 @@ } } }, - "revision": "20200805", + "revision": "20201031", "rootUrl": "https://bigqueryconnection.googleapis.com/", "schemas": { "AuditConfig": { @@ -450,6 +450,9 @@ "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { + "bindingId": { + "type": "string" + }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." diff --git a/bigqueryconnection/v1beta1/bigqueryconnection-gen.go b/bigqueryconnection/v1beta1/bigqueryconnection-gen.go index 7024b9959e5..17251085fd7 100644 --- a/bigqueryconnection/v1beta1/bigqueryconnection-gen.go +++ b/bigqueryconnection/v1beta1/bigqueryconnection-gen.go @@ -275,6 +275,8 @@ func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { + BindingId string `json:"bindingId,omitempty"` + // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -324,7 +326,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to + // ForceSendFields is a list of field names (e.g. "BindingId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -332,7 +334,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Condition") to include in + // NullFields is a list of field names (e.g. "BindingId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -938,7 +940,7 @@ func (c *ProjectsLocationsConnectionsCreateCall) Header() http.Header { func (c *ProjectsLocationsConnectionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1082,7 +1084,7 @@ func (c *ProjectsLocationsConnectionsDeleteCall) Header() http.Header { func (c *ProjectsLocationsConnectionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1224,7 +1226,7 @@ func (c *ProjectsLocationsConnectionsGetCall) Header() http.Header { func (c *ProjectsLocationsConnectionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1362,7 +1364,7 @@ func (c *ProjectsLocationsConnectionsGetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsConnectionsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1525,7 +1527,7 @@ func (c *ProjectsLocationsConnectionsListCall) Header() http.Header { func (c *ProjectsLocationsConnectionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1702,7 +1704,7 @@ func (c *ProjectsLocationsConnectionsPatchCall) Header() http.Header { func (c *ProjectsLocationsConnectionsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1851,7 +1853,7 @@ func (c *ProjectsLocationsConnectionsSetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsConnectionsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1997,7 +1999,7 @@ func (c *ProjectsLocationsConnectionsTestIamPermissionsCall) Header() http.Heade func (c *ProjectsLocationsConnectionsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2138,7 +2140,7 @@ func (c *ProjectsLocationsConnectionsUpdateCredentialCall) Header() http.Header func (c *ProjectsLocationsConnectionsUpdateCredentialCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go b/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go index 80209953d55..921c56b47d7 100644 --- a/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go +++ b/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go @@ -1411,7 +1411,7 @@ func (c *ProjectsDataSourcesCheckValidCredsCall) Header() http.Header { func (c *ProjectsDataSourcesCheckValidCredsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1564,7 +1564,7 @@ func (c *ProjectsDataSourcesGetCall) Header() http.Header { func (c *ProjectsDataSourcesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1730,7 +1730,7 @@ func (c *ProjectsDataSourcesListCall) Header() http.Header { func (c *ProjectsDataSourcesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1909,7 +1909,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2078,7 +2078,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2258,7 +2258,7 @@ func (c *ProjectsLocationsDataSourcesCheckValidCredsCall) Header() http.Header { func (c *ProjectsLocationsDataSourcesCheckValidCredsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2411,7 +2411,7 @@ func (c *ProjectsLocationsDataSourcesGetCall) Header() http.Header { func (c *ProjectsLocationsDataSourcesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2577,7 +2577,7 @@ func (c *ProjectsLocationsDataSourcesListCall) Header() http.Header { func (c *ProjectsLocationsDataSourcesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2781,7 +2781,7 @@ func (c *ProjectsLocationsTransferConfigsCreateCall) Header() http.Header { func (c *ProjectsLocationsTransferConfigsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2935,7 +2935,7 @@ func (c *ProjectsLocationsTransferConfigsDeleteCall) Header() http.Header { func (c *ProjectsLocationsTransferConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3077,7 +3077,7 @@ func (c *ProjectsLocationsTransferConfigsGetCall) Header() http.Header { func (c *ProjectsLocationsTransferConfigsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3250,7 +3250,7 @@ func (c *ProjectsLocationsTransferConfigsListCall) Header() http.Header { func (c *ProjectsLocationsTransferConfigsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3469,7 +3469,7 @@ func (c *ProjectsLocationsTransferConfigsPatchCall) Header() http.Header { func (c *ProjectsLocationsTransferConfigsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3634,7 +3634,7 @@ func (c *ProjectsLocationsTransferConfigsScheduleRunsCall) Header() http.Header func (c *ProjectsLocationsTransferConfigsScheduleRunsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3778,7 +3778,7 @@ func (c *ProjectsLocationsTransferConfigsStartManualRunsCall) Header() http.Head func (c *ProjectsLocationsTransferConfigsStartManualRunsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3917,7 +3917,7 @@ func (c *ProjectsLocationsTransferConfigsRunsDeleteCall) Header() http.Header { func (c *ProjectsLocationsTransferConfigsRunsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4059,7 +4059,7 @@ func (c *ProjectsLocationsTransferConfigsRunsGetCall) Header() http.Header { func (c *ProjectsLocationsTransferConfigsRunsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4251,7 +4251,7 @@ func (c *ProjectsLocationsTransferConfigsRunsListCall) Header() http.Header { func (c *ProjectsLocationsTransferConfigsRunsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4497,7 +4497,7 @@ func (c *ProjectsLocationsTransferConfigsRunsTransferLogsListCall) Header() http func (c *ProjectsLocationsTransferConfigsRunsTransferLogsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4719,7 +4719,7 @@ func (c *ProjectsTransferConfigsCreateCall) Header() http.Header { func (c *ProjectsTransferConfigsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4873,7 +4873,7 @@ func (c *ProjectsTransferConfigsDeleteCall) Header() http.Header { func (c *ProjectsTransferConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5015,7 +5015,7 @@ func (c *ProjectsTransferConfigsGetCall) Header() http.Header { func (c *ProjectsTransferConfigsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5188,7 +5188,7 @@ func (c *ProjectsTransferConfigsListCall) Header() http.Header { func (c *ProjectsTransferConfigsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5407,7 +5407,7 @@ func (c *ProjectsTransferConfigsPatchCall) Header() http.Header { func (c *ProjectsTransferConfigsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5572,7 +5572,7 @@ func (c *ProjectsTransferConfigsScheduleRunsCall) Header() http.Header { func (c *ProjectsTransferConfigsScheduleRunsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5716,7 +5716,7 @@ func (c *ProjectsTransferConfigsStartManualRunsCall) Header() http.Header { func (c *ProjectsTransferConfigsStartManualRunsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5855,7 +5855,7 @@ func (c *ProjectsTransferConfigsRunsDeleteCall) Header() http.Header { func (c *ProjectsTransferConfigsRunsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5997,7 +5997,7 @@ func (c *ProjectsTransferConfigsRunsGetCall) Header() http.Header { func (c *ProjectsTransferConfigsRunsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6189,7 +6189,7 @@ func (c *ProjectsTransferConfigsRunsListCall) Header() http.Header { func (c *ProjectsTransferConfigsRunsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6435,7 +6435,7 @@ func (c *ProjectsTransferConfigsRunsTransferLogsListCall) Header() http.Header { func (c *ProjectsTransferConfigsRunsTransferLogsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/bigqueryreservation/v1/bigqueryreservation-gen.go b/bigqueryreservation/v1/bigqueryreservation-gen.go index 665769c2434..21c48dacb9e 100644 --- a/bigqueryreservation/v1/bigqueryreservation-gen.go +++ b/bigqueryreservation/v1/bigqueryreservation-gen.go @@ -1036,7 +1036,7 @@ func (c *OperationsDeleteCall) Header() http.Header { func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1208,7 +1208,7 @@ func (c *OperationsListCall) Header() http.Header { func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1390,7 +1390,7 @@ func (c *ProjectsLocationsGetBiReservationCall) Header() http.Header { func (c *ProjectsLocationsGetBiReservationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1570,7 +1570,7 @@ func (c *ProjectsLocationsSearchAllAssignmentsCall) Header() http.Header { func (c *ProjectsLocationsSearchAllAssignmentsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1788,7 +1788,7 @@ func (c *ProjectsLocationsSearchAssignmentsCall) Header() http.Header { func (c *ProjectsLocationsSearchAssignmentsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1972,7 +1972,7 @@ func (c *ProjectsLocationsUpdateBiReservationCall) Header() http.Header { func (c *ProjectsLocationsUpdateBiReservationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2127,7 +2127,7 @@ func (c *ProjectsLocationsCapacityCommitmentsCreateCall) Header() http.Header { func (c *ProjectsLocationsCapacityCommitmentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2273,7 +2273,7 @@ func (c *ProjectsLocationsCapacityCommitmentsDeleteCall) Header() http.Header { func (c *ProjectsLocationsCapacityCommitmentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2415,7 +2415,7 @@ func (c *ProjectsLocationsCapacityCommitmentsGetCall) Header() http.Header { func (c *ProjectsLocationsCapacityCommitmentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2574,7 +2574,7 @@ func (c *ProjectsLocationsCapacityCommitmentsListCall) Header() http.Header { func (c *ProjectsLocationsCapacityCommitmentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2746,7 +2746,7 @@ func (c *ProjectsLocationsCapacityCommitmentsMergeCall) Header() http.Header { func (c *ProjectsLocationsCapacityCommitmentsMergeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2898,7 +2898,7 @@ func (c *ProjectsLocationsCapacityCommitmentsPatchCall) Header() http.Header { func (c *ProjectsLocationsCapacityCommitmentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3050,7 +3050,7 @@ func (c *ProjectsLocationsCapacityCommitmentsSplitCall) Header() http.Header { func (c *ProjectsLocationsCapacityCommitmentsSplitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3199,7 +3199,7 @@ func (c *ProjectsLocationsReservationsCreateCall) Header() http.Header { func (c *ProjectsLocationsReservationsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3345,7 +3345,7 @@ func (c *ProjectsLocationsReservationsDeleteCall) Header() http.Header { func (c *ProjectsLocationsReservationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3487,7 +3487,7 @@ func (c *ProjectsLocationsReservationsGetCall) Header() http.Header { func (c *ProjectsLocationsReservationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3647,7 +3647,7 @@ func (c *ProjectsLocationsReservationsListCall) Header() http.Header { func (c *ProjectsLocationsReservationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3822,7 +3822,7 @@ func (c *ProjectsLocationsReservationsPatchCall) Header() http.Header { func (c *ProjectsLocationsReservationsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3987,7 +3987,7 @@ func (c *ProjectsLocationsReservationsAssignmentsCreateCall) Header() http.Heade func (c *ProjectsLocationsReservationsAssignmentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4134,7 +4134,7 @@ func (c *ProjectsLocationsReservationsAssignmentsDeleteCall) Header() http.Heade func (c *ProjectsLocationsReservationsAssignmentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4300,7 +4300,7 @@ func (c *ProjectsLocationsReservationsAssignmentsListCall) Header() http.Header func (c *ProjectsLocationsReservationsAssignmentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4471,7 +4471,7 @@ func (c *ProjectsLocationsReservationsAssignmentsMoveCall) Header() http.Header func (c *ProjectsLocationsReservationsAssignmentsMoveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/bigqueryreservation/v1alpha2/bigqueryreservation-gen.go b/bigqueryreservation/v1alpha2/bigqueryreservation-gen.go index 889d146aa13..b3413041cb7 100644 --- a/bigqueryreservation/v1alpha2/bigqueryreservation-gen.go +++ b/bigqueryreservation/v1alpha2/bigqueryreservation-gen.go @@ -803,7 +803,7 @@ func (c *ProjectsLocationsSearchReservationGrantsCall) Header() http.Header { func (c *ProjectsLocationsSearchReservationGrantsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -983,7 +983,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1127,7 +1127,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1267,7 +1267,7 @@ func (c *ProjectsLocationsReservationGrantsCreateCall) Header() http.Header { func (c *ProjectsLocationsReservationGrantsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1411,7 +1411,7 @@ func (c *ProjectsLocationsReservationGrantsDeleteCall) Header() http.Header { func (c *ProjectsLocationsReservationGrantsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1572,7 +1572,7 @@ func (c *ProjectsLocationsReservationGrantsListCall) Header() http.Header { func (c *ProjectsLocationsReservationGrantsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1749,7 +1749,7 @@ func (c *ProjectsLocationsReservationsCreateCall) Header() http.Header { func (c *ProjectsLocationsReservationsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1904,7 +1904,7 @@ func (c *ProjectsLocationsReservationsCreateReservationCall) Header() http.Heade func (c *ProjectsLocationsReservationsCreateReservationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2061,7 +2061,7 @@ func (c *ProjectsLocationsReservationsDeleteCall) Header() http.Header { func (c *ProjectsLocationsReservationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2208,7 +2208,7 @@ func (c *ProjectsLocationsReservationsGetCall) Header() http.Header { func (c *ProjectsLocationsReservationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2378,7 +2378,7 @@ func (c *ProjectsLocationsReservationsListCall) Header() http.Header { func (c *ProjectsLocationsReservationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2559,7 +2559,7 @@ func (c *ProjectsLocationsReservationsPatchCall) Header() http.Header { func (c *ProjectsLocationsReservationsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2706,7 +2706,7 @@ func (c *ProjectsLocationsReservationsSlotPoolsDeleteCall) Header() http.Header func (c *ProjectsLocationsReservationsSlotPoolsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2848,7 +2848,7 @@ func (c *ProjectsLocationsReservationsSlotPoolsGetCall) Header() http.Header { func (c *ProjectsLocationsReservationsSlotPoolsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3007,7 +3007,7 @@ func (c *ProjectsLocationsReservationsSlotPoolsListCall) Header() http.Header { func (c *ProjectsLocationsReservationsSlotPoolsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/bigqueryreservation/v1beta1/bigqueryreservation-gen.go b/bigqueryreservation/v1beta1/bigqueryreservation-gen.go index 54a4142cfc4..df84ea09701 100644 --- a/bigqueryreservation/v1beta1/bigqueryreservation-gen.go +++ b/bigqueryreservation/v1beta1/bigqueryreservation-gen.go @@ -900,7 +900,7 @@ func (c *ProjectsLocationsGetBiReservationCall) Header() http.Header { func (c *ProjectsLocationsGetBiReservationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1081,7 +1081,7 @@ func (c *ProjectsLocationsSearchAssignmentsCall) Header() http.Header { func (c *ProjectsLocationsSearchAssignmentsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1265,7 +1265,7 @@ func (c *ProjectsLocationsUpdateBiReservationCall) Header() http.Header { func (c *ProjectsLocationsUpdateBiReservationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1420,7 +1420,7 @@ func (c *ProjectsLocationsCapacityCommitmentsCreateCall) Header() http.Header { func (c *ProjectsLocationsCapacityCommitmentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1566,7 +1566,7 @@ func (c *ProjectsLocationsCapacityCommitmentsDeleteCall) Header() http.Header { func (c *ProjectsLocationsCapacityCommitmentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1708,7 +1708,7 @@ func (c *ProjectsLocationsCapacityCommitmentsGetCall) Header() http.Header { func (c *ProjectsLocationsCapacityCommitmentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1867,7 +1867,7 @@ func (c *ProjectsLocationsCapacityCommitmentsListCall) Header() http.Header { func (c *ProjectsLocationsCapacityCommitmentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2039,7 +2039,7 @@ func (c *ProjectsLocationsCapacityCommitmentsMergeCall) Header() http.Header { func (c *ProjectsLocationsCapacityCommitmentsMergeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2191,7 +2191,7 @@ func (c *ProjectsLocationsCapacityCommitmentsPatchCall) Header() http.Header { func (c *ProjectsLocationsCapacityCommitmentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2343,7 +2343,7 @@ func (c *ProjectsLocationsCapacityCommitmentsSplitCall) Header() http.Header { func (c *ProjectsLocationsCapacityCommitmentsSplitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2492,7 +2492,7 @@ func (c *ProjectsLocationsReservationsCreateCall) Header() http.Header { func (c *ProjectsLocationsReservationsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2638,7 +2638,7 @@ func (c *ProjectsLocationsReservationsDeleteCall) Header() http.Header { func (c *ProjectsLocationsReservationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2780,7 +2780,7 @@ func (c *ProjectsLocationsReservationsGetCall) Header() http.Header { func (c *ProjectsLocationsReservationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2950,7 +2950,7 @@ func (c *ProjectsLocationsReservationsListCall) Header() http.Header { func (c *ProjectsLocationsReservationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3130,7 +3130,7 @@ func (c *ProjectsLocationsReservationsPatchCall) Header() http.Header { func (c *ProjectsLocationsReservationsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3295,7 +3295,7 @@ func (c *ProjectsLocationsReservationsAssignmentsCreateCall) Header() http.Heade func (c *ProjectsLocationsReservationsAssignmentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3442,7 +3442,7 @@ func (c *ProjectsLocationsReservationsAssignmentsDeleteCall) Header() http.Heade func (c *ProjectsLocationsReservationsAssignmentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3608,7 +3608,7 @@ func (c *ProjectsLocationsReservationsAssignmentsListCall) Header() http.Header func (c *ProjectsLocationsReservationsAssignmentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3779,7 +3779,7 @@ func (c *ProjectsLocationsReservationsAssignmentsMoveCall) Header() http.Header func (c *ProjectsLocationsReservationsAssignmentsMoveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/bigtableadmin/v2/bigtableadmin-gen.go b/bigtableadmin/v2/bigtableadmin-gen.go index d9e2ae6bb23..933f2865f74 100644 --- a/bigtableadmin/v2/bigtableadmin-gen.go +++ b/bigtableadmin/v2/bigtableadmin-gen.go @@ -2813,7 +2813,7 @@ func (c *OperationsCancelCall) Header() http.Header { func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2951,7 +2951,7 @@ func (c *OperationsDeleteCall) Header() http.Header { func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3099,7 +3099,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3279,7 +3279,7 @@ func (c *OperationsProjectsOperationsListCall) Header() http.Header { func (c *OperationsProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3457,7 +3457,7 @@ func (c *ProjectsInstancesCreateCall) Header() http.Header { func (c *ProjectsInstancesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3600,7 +3600,7 @@ func (c *ProjectsInstancesDeleteCall) Header() http.Header { func (c *ProjectsInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3746,7 +3746,7 @@ func (c *ProjectsInstancesGetCall) Header() http.Header { func (c *ProjectsInstancesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3889,7 +3889,7 @@ func (c *ProjectsInstancesGetIamPolicyCall) Header() http.Header { func (c *ProjectsInstancesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4050,7 +4050,7 @@ func (c *ProjectsInstancesListCall) Header() http.Header { func (c *ProjectsInstancesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4227,7 +4227,7 @@ func (c *ProjectsInstancesPartialUpdateInstanceCall) Header() http.Header { func (c *ProjectsInstancesPartialUpdateInstanceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4379,7 +4379,7 @@ func (c *ProjectsInstancesSetIamPolicyCall) Header() http.Header { func (c *ProjectsInstancesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4525,7 +4525,7 @@ func (c *ProjectsInstancesTestIamPermissionsCall) Header() http.Header { func (c *ProjectsInstancesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4672,7 +4672,7 @@ func (c *ProjectsInstancesUpdateCall) Header() http.Header { func (c *ProjectsInstancesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4833,7 +4833,7 @@ func (c *ProjectsInstancesAppProfilesCreateCall) Header() http.Header { func (c *ProjectsInstancesAppProfilesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4994,7 +4994,7 @@ func (c *ProjectsInstancesAppProfilesDeleteCall) Header() http.Header { func (c *ProjectsInstancesAppProfilesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5145,7 +5145,7 @@ func (c *ProjectsInstancesAppProfilesGetCall) Header() http.Header { func (c *ProjectsInstancesAppProfilesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5314,7 +5314,7 @@ func (c *ProjectsInstancesAppProfilesListCall) Header() http.Header { func (c *ProjectsInstancesAppProfilesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5501,7 +5501,7 @@ func (c *ProjectsInstancesAppProfilesPatchCall) Header() http.Header { func (c *ProjectsInstancesAppProfilesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5666,7 +5666,7 @@ func (c *ProjectsInstancesClustersCreateCall) Header() http.Header { func (c *ProjectsInstancesClustersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5814,7 +5814,7 @@ func (c *ProjectsInstancesClustersDeleteCall) Header() http.Header { func (c *ProjectsInstancesClustersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5960,7 +5960,7 @@ func (c *ProjectsInstancesClustersGetCall) Header() http.Header { func (c *ProjectsInstancesClustersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6117,7 +6117,7 @@ func (c *ProjectsInstancesClustersListCall) Header() http.Header { func (c *ProjectsInstancesClustersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6284,7 +6284,7 @@ func (c *ProjectsInstancesClustersUpdateCall) Header() http.Header { func (c *ProjectsInstancesClustersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6445,7 +6445,7 @@ func (c *ProjectsInstancesClustersBackupsCreateCall) Header() http.Header { func (c *ProjectsInstancesClustersBackupsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6592,7 +6592,7 @@ func (c *ProjectsInstancesClustersBackupsDeleteCall) Header() http.Header { func (c *ProjectsInstancesClustersBackupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6737,7 +6737,7 @@ func (c *ProjectsInstancesClustersBackupsGetCall) Header() http.Header { func (c *ProjectsInstancesClustersBackupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6878,7 +6878,7 @@ func (c *ProjectsInstancesClustersBackupsGetIamPolicyCall) Header() http.Header func (c *ProjectsInstancesClustersBackupsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7093,7 +7093,7 @@ func (c *ProjectsInstancesClustersBackupsListCall) Header() http.Header { func (c *ProjectsInstancesClustersBackupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7285,7 +7285,7 @@ func (c *ProjectsInstancesClustersBackupsPatchCall) Header() http.Header { func (c *ProjectsInstancesClustersBackupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7436,7 +7436,7 @@ func (c *ProjectsInstancesClustersBackupsSetIamPolicyCall) Header() http.Header func (c *ProjectsInstancesClustersBackupsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7581,7 +7581,7 @@ func (c *ProjectsInstancesClustersBackupsTestIamPermissionsCall) Header() http.H func (c *ProjectsInstancesClustersBackupsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7727,7 +7727,7 @@ func (c *ProjectsInstancesTablesCheckConsistencyCall) Header() http.Header { func (c *ProjectsInstancesTablesCheckConsistencyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7873,7 +7873,7 @@ func (c *ProjectsInstancesTablesCreateCall) Header() http.Header { func (c *ProjectsInstancesTablesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8015,7 +8015,7 @@ func (c *ProjectsInstancesTablesDeleteCall) Header() http.Header { func (c *ProjectsInstancesTablesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8153,7 +8153,7 @@ func (c *ProjectsInstancesTablesDropRowRangeCall) Header() http.Header { func (c *ProjectsInstancesTablesDropRowRangeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8300,7 +8300,7 @@ func (c *ProjectsInstancesTablesGenerateConsistencyTokenCall) Header() http.Head func (c *ProjectsInstancesTablesGenerateConsistencyTokenCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8471,7 +8471,7 @@ func (c *ProjectsInstancesTablesGetCall) Header() http.Header { func (c *ProjectsInstancesTablesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8632,7 +8632,7 @@ func (c *ProjectsInstancesTablesGetIamPolicyCall) Header() http.Header { func (c *ProjectsInstancesTablesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8822,7 +8822,7 @@ func (c *ProjectsInstancesTablesListCall) Header() http.Header { func (c *ProjectsInstancesTablesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9017,7 +9017,7 @@ func (c *ProjectsInstancesTablesModifyColumnFamiliesCall) Header() http.Header { func (c *ProjectsInstancesTablesModifyColumnFamiliesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9166,7 +9166,7 @@ func (c *ProjectsInstancesTablesRestoreCall) Header() http.Header { func (c *ProjectsInstancesTablesRestoreCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9311,7 +9311,7 @@ func (c *ProjectsInstancesTablesSetIamPolicyCall) Header() http.Header { func (c *ProjectsInstancesTablesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9456,7 +9456,7 @@ func (c *ProjectsInstancesTablesTestIamPermissionsCall) Header() http.Header { func (c *ProjectsInstancesTablesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9609,7 +9609,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9781,7 +9781,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/billingbudgets/v1/billingbudgets-api.json b/billingbudgets/v1/billingbudgets-api.json index 5980033cc25..d261fc9532c 100644 --- a/billingbudgets/v1/billingbudgets-api.json +++ b/billingbudgets/v1/billingbudgets-api.json @@ -270,7 +270,7 @@ } } }, - "revision": "20201012", + "revision": "20201107", "rootUrl": "https://billingbudgets.googleapis.com/", "schemas": { "GoogleCloudBillingBudgetsV1Budget": { @@ -331,17 +331,26 @@ "description": "A filter for a budget, limiting the scope of the cost to calculate.", "id": "GoogleCloudBillingBudgetsV1Filter", "properties": { + "creditTypes": { + "description": "Optional. If Filter.credit_types_treatment is INCLUDE_SPECIFIED_CREDITS, this is a list of credit types to be subtracted from gross cost to determine the spend for threshold calculations. If Filter.credit_types_treatment is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty. See [a list of acceptable credit type values](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type).", + "items": { + "type": "string" + }, + "type": "array" + }, "creditTypesTreatment": { "description": "Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.", "enum": [ "CREDIT_TYPES_TREATMENT_UNSPECIFIED", "INCLUDE_ALL_CREDITS", - "EXCLUDE_ALL_CREDITS" + "EXCLUDE_ALL_CREDITS", + "INCLUDE_SPECIFIED_CREDITS" ], "enumDescriptions": [ "This is an invalid value.", "All types of credit are subtracted from the gross cost to determine the spend for threshold calculations.", - "All types of credit are added to the net cost to determine the spend for threshold calculations." + "All types of credit are added to the net cost to determine the spend for threshold calculations.", + "Credit types specified in the credit_types field are subtracted from the gross cost to determine the spend for threshold calculations." ], "type": "string" }, diff --git a/billingbudgets/v1/billingbudgets-gen.go b/billingbudgets/v1/billingbudgets-gen.go index cd4b669a2e6..06ad7e378ae 100644 --- a/billingbudgets/v1/billingbudgets-gen.go +++ b/billingbudgets/v1/billingbudgets-gen.go @@ -267,6 +267,16 @@ func (s *GoogleCloudBillingBudgetsV1BudgetAmount) MarshalJSON() ([]byte, error) // GoogleCloudBillingBudgetsV1Filter: A filter for a budget, limiting // the scope of the cost to calculate. type GoogleCloudBillingBudgetsV1Filter struct { + // CreditTypes: Optional. If Filter.credit_types_treatment is + // INCLUDE_SPECIFIED_CREDITS, this is a list of credit types to be + // subtracted from gross cost to determine the spend for threshold + // calculations. If Filter.credit_types_treatment is **not** + // INCLUDE_SPECIFIED_CREDITS, this field must be empty. See [a list of + // acceptable credit type + // values](https://cloud.google.com/billing/docs/how-to/export-data-bigqu + // ery-tables#credits-type). + CreditTypes []string `json:"creditTypes,omitempty"` + // CreditTypesTreatment: Optional. If not set, default behavior is // `INCLUDE_ALL_CREDITS`. // @@ -276,6 +286,9 @@ type GoogleCloudBillingBudgetsV1Filter struct { // gross cost to determine the spend for threshold calculations. // "EXCLUDE_ALL_CREDITS" - All types of credit are added to the net // cost to determine the spend for threshold calculations. + // "INCLUDE_SPECIFIED_CREDITS" - Credit types specified in the + // credit_types field are subtracted from the gross cost to determine + // the spend for threshold calculations. CreditTypesTreatment string `json:"creditTypesTreatment,omitempty"` // Labels: Optional. A single label and value pair specifying that usage @@ -310,22 +323,20 @@ type GoogleCloudBillingBudgetsV1Filter struct { // exist. Subaccounts []string `json:"subaccounts,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "CreditTypesTreatment") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CreditTypes") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreditTypesTreatment") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreditTypes") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } @@ -604,7 +615,7 @@ func (c *BillingAccountsBudgetsCreateCall) Header() http.Header { func (c *BillingAccountsBudgetsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -744,7 +755,7 @@ func (c *BillingAccountsBudgetsDeleteCall) Header() http.Header { func (c *BillingAccountsBudgetsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -889,7 +900,7 @@ func (c *BillingAccountsBudgetsGetCall) Header() http.Header { func (c *BillingAccountsBudgetsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1055,7 +1066,7 @@ func (c *BillingAccountsBudgetsListCall) Header() http.Header { func (c *BillingAccountsBudgetsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1239,7 +1250,7 @@ func (c *BillingAccountsBudgetsPatchCall) Header() http.Header { func (c *BillingAccountsBudgetsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/billingbudgets/v1beta1/billingbudgets-api.json b/billingbudgets/v1beta1/billingbudgets-api.json index 2d5abbb3c54..39ec47ec846 100644 --- a/billingbudgets/v1beta1/billingbudgets-api.json +++ b/billingbudgets/v1beta1/billingbudgets-api.json @@ -264,7 +264,7 @@ } } }, - "revision": "20201012", + "revision": "20201107", "rootUrl": "https://billingbudgets.googleapis.com/", "schemas": { "GoogleCloudBillingBudgetsV1beta1AllUpdatesRule": { @@ -362,17 +362,26 @@ "description": "A filter for a budget, limiting the scope of the cost to calculate.", "id": "GoogleCloudBillingBudgetsV1beta1Filter", "properties": { + "creditTypes": { + "description": "Optional. If Filter.credit_types_treatment is INCLUDE_SPECIFIED_CREDITS, this is a list of credit types to be subtracted from gross cost to determine the spend for threshold calculations. If Filter.credit_types_treatment is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty. See [a list of acceptable credit type values](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type).", + "items": { + "type": "string" + }, + "type": "array" + }, "creditTypesTreatment": { "description": "Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.", "enum": [ "CREDIT_TYPES_TREATMENT_UNSPECIFIED", "INCLUDE_ALL_CREDITS", - "EXCLUDE_ALL_CREDITS" + "EXCLUDE_ALL_CREDITS", + "INCLUDE_SPECIFIED_CREDITS" ], "enumDescriptions": [ "", "All types of credit are subtracted from the gross cost to determine the spend for threshold calculations.", - "All types of credit are added to the net cost to determine the spend for threshold calculations." + "All types of credit are added to the net cost to determine the spend for threshold calculations.", + "Credit types specified in the credit_types field are subtracted from the gross cost to determine the spend for threshold calculations." ], "type": "string" }, diff --git a/billingbudgets/v1beta1/billingbudgets-gen.go b/billingbudgets/v1beta1/billingbudgets-gen.go index e42ded20d8a..50e9ab20ca5 100644 --- a/billingbudgets/v1beta1/billingbudgets-gen.go +++ b/billingbudgets/v1beta1/billingbudgets-gen.go @@ -357,6 +357,16 @@ func (s *GoogleCloudBillingBudgetsV1beta1CreateBudgetRequest) MarshalJSON() ([]b // GoogleCloudBillingBudgetsV1beta1Filter: A filter for a budget, // limiting the scope of the cost to calculate. type GoogleCloudBillingBudgetsV1beta1Filter struct { + // CreditTypes: Optional. If Filter.credit_types_treatment is + // INCLUDE_SPECIFIED_CREDITS, this is a list of credit types to be + // subtracted from gross cost to determine the spend for threshold + // calculations. If Filter.credit_types_treatment is **not** + // INCLUDE_SPECIFIED_CREDITS, this field must be empty. See [a list of + // acceptable credit type + // values](https://cloud.google.com/billing/docs/how-to/export-data-bigqu + // ery-tables#credits-type). + CreditTypes []string `json:"creditTypes,omitempty"` + // CreditTypesTreatment: Optional. If not set, default behavior is // `INCLUDE_ALL_CREDITS`. // @@ -366,6 +376,9 @@ type GoogleCloudBillingBudgetsV1beta1Filter struct { // gross cost to determine the spend for threshold calculations. // "EXCLUDE_ALL_CREDITS" - All types of credit are added to the net // cost to determine the spend for threshold calculations. + // "INCLUDE_SPECIFIED_CREDITS" - Credit types specified in the + // credit_types field are subtracted from the gross cost to determine + // the spend for threshold calculations. CreditTypesTreatment string `json:"creditTypesTreatment,omitempty"` // Labels: Optional. A single label and value pair specifying that usage @@ -399,22 +412,20 @@ type GoogleCloudBillingBudgetsV1beta1Filter struct { // from the parent account and all subaccounts, if they exist. Subaccounts []string `json:"subaccounts,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "CreditTypesTreatment") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CreditTypes") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreditTypesTreatment") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreditTypes") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } @@ -670,7 +681,7 @@ func (c *BillingAccountsBudgetsCreateCall) Header() http.Header { func (c *BillingAccountsBudgetsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -810,7 +821,7 @@ func (c *BillingAccountsBudgetsDeleteCall) Header() http.Header { func (c *BillingAccountsBudgetsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -955,7 +966,7 @@ func (c *BillingAccountsBudgetsGetCall) Header() http.Header { func (c *BillingAccountsBudgetsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1121,7 +1132,7 @@ func (c *BillingAccountsBudgetsListCall) Header() http.Header { func (c *BillingAccountsBudgetsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1294,7 +1305,7 @@ func (c *BillingAccountsBudgetsPatchCall) Header() http.Header { func (c *BillingAccountsBudgetsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/binaryauthorization/v1/binaryauthorization-api.json b/binaryauthorization/v1/binaryauthorization-api.json index 210f089987c..ab4ac7bf897 100644 --- a/binaryauthorization/v1/binaryauthorization-api.json +++ b/binaryauthorization/v1/binaryauthorization-api.json @@ -522,7 +522,7 @@ } } }, - "revision": "20201016", + "revision": "20201113", "rootUrl": "https://binaryauthorization.googleapis.com/", "schemas": { "AdmissionRule": { @@ -658,10 +658,6 @@ "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { - "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", - "type": "string" - }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." diff --git a/binaryauthorization/v1/binaryauthorization-gen.go b/binaryauthorization/v1/binaryauthorization-gen.go index 58e642106af..adf73cbb8b7 100644 --- a/binaryauthorization/v1/binaryauthorization-gen.go +++ b/binaryauthorization/v1/binaryauthorization-gen.go @@ -419,10 +419,6 @@ func (s *AttestorPublicKey) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. - BindingId string `json:"bindingId,omitempty"` - // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -472,7 +468,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "BindingId") to + // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -480,7 +476,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BindingId") to include in + // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -1238,7 +1234,7 @@ func (c *ProjectsGetPolicyCall) Header() http.Header { func (c *ProjectsGetPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1377,7 +1373,7 @@ func (c *ProjectsUpdatePolicyCall) Header() http.Header { func (c *ProjectsUpdatePolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1527,7 +1523,7 @@ func (c *ProjectsAttestorsCreateCall) Header() http.Header { func (c *ProjectsAttestorsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1671,7 +1667,7 @@ func (c *ProjectsAttestorsDeleteCall) Header() http.Header { func (c *ProjectsAttestorsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1813,7 +1809,7 @@ func (c *ProjectsAttestorsGetCall) Header() http.Header { func (c *ProjectsAttestorsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1974,7 +1970,7 @@ func (c *ProjectsAttestorsGetIamPolicyCall) Header() http.Header { func (c *ProjectsAttestorsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2142,7 +2138,7 @@ func (c *ProjectsAttestorsListCall) Header() http.Header { func (c *ProjectsAttestorsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2311,7 +2307,7 @@ func (c *ProjectsAttestorsSetIamPolicyCall) Header() http.Header { func (c *ProjectsAttestorsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2456,7 +2452,7 @@ func (c *ProjectsAttestorsTestIamPermissionsCall) Header() http.Header { func (c *ProjectsAttestorsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2597,7 +2593,7 @@ func (c *ProjectsAttestorsUpdateCall) Header() http.Header { func (c *ProjectsAttestorsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2738,7 +2734,7 @@ func (c *ProjectsAttestorsValidateAttestationOccurrenceCall) Header() http.Heade func (c *ProjectsAttestorsValidateAttestationOccurrenceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2905,7 +2901,7 @@ func (c *ProjectsPolicyGetIamPolicyCall) Header() http.Header { func (c *ProjectsPolicyGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3048,7 +3044,7 @@ func (c *ProjectsPolicySetIamPolicyCall) Header() http.Header { func (c *ProjectsPolicySetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3193,7 +3189,7 @@ func (c *ProjectsPolicyTestIamPermissionsCall) Header() http.Header { func (c *ProjectsPolicyTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/binaryauthorization/v1beta1/binaryauthorization-api.json b/binaryauthorization/v1beta1/binaryauthorization-api.json index 729eb2d3528..10c660f1593 100644 --- a/binaryauthorization/v1beta1/binaryauthorization-api.json +++ b/binaryauthorization/v1beta1/binaryauthorization-api.json @@ -522,7 +522,7 @@ } } }, - "revision": "20201016", + "revision": "20201113", "rootUrl": "https://binaryauthorization.googleapis.com/", "schemas": { "AdmissionRule": { @@ -574,7 +574,7 @@ "id": "AdmissionWhitelistPattern", "properties": { "namePattern": { - "description": "An image name pattern to allowlist, in the form `registry/path/to/image`. This supports a trailing `*` as a wildcard, but this is allowed only in text after the `registry/` part.", + "description": "An image name pattern to allowlist, in the form `registry/path/to/image`. This supports a trailing `*` as a wildcard, but this is allowed only in text after the `registry/` part. Also wildcards do not match `/`, i.e., gcr.io/nginx* matches gcr.io/nginx@latest, but it does not match gcr.io/nginx/image.", "type": "string" } }, @@ -658,10 +658,6 @@ "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { - "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", - "type": "string" - }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." diff --git a/binaryauthorization/v1beta1/binaryauthorization-gen.go b/binaryauthorization/v1beta1/binaryauthorization-gen.go index 16301f83dc5..45929ec32eb 100644 --- a/binaryauthorization/v1beta1/binaryauthorization-gen.go +++ b/binaryauthorization/v1beta1/binaryauthorization-gen.go @@ -236,7 +236,9 @@ func (s *AdmissionRule) MarshalJSON() ([]byte, error) { type AdmissionWhitelistPattern struct { // NamePattern: An image name pattern to allowlist, in the form // `registry/path/to/image`. This supports a trailing `*` as a wildcard, - // but this is allowed only in text after the `registry/` part. + // but this is allowed only in text after the `registry/` part. Also + // wildcards do not match `/`, i.e., gcr.io/nginx* matches + // gcr.io/nginx@latest, but it does not match gcr.io/nginx/image. NamePattern string `json:"namePattern,omitempty"` // ForceSendFields is a list of field names (e.g. "NamePattern") to @@ -419,10 +421,6 @@ func (s *AttestorPublicKey) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. - BindingId string `json:"bindingId,omitempty"` - // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -472,7 +470,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "BindingId") to + // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -480,7 +478,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BindingId") to include in + // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -1238,7 +1236,7 @@ func (c *ProjectsGetPolicyCall) Header() http.Header { func (c *ProjectsGetPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1377,7 +1375,7 @@ func (c *ProjectsUpdatePolicyCall) Header() http.Header { func (c *ProjectsUpdatePolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1527,7 +1525,7 @@ func (c *ProjectsAttestorsCreateCall) Header() http.Header { func (c *ProjectsAttestorsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1671,7 +1669,7 @@ func (c *ProjectsAttestorsDeleteCall) Header() http.Header { func (c *ProjectsAttestorsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1813,7 +1811,7 @@ func (c *ProjectsAttestorsGetCall) Header() http.Header { func (c *ProjectsAttestorsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1974,7 +1972,7 @@ func (c *ProjectsAttestorsGetIamPolicyCall) Header() http.Header { func (c *ProjectsAttestorsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2142,7 +2140,7 @@ func (c *ProjectsAttestorsListCall) Header() http.Header { func (c *ProjectsAttestorsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2311,7 +2309,7 @@ func (c *ProjectsAttestorsSetIamPolicyCall) Header() http.Header { func (c *ProjectsAttestorsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2456,7 +2454,7 @@ func (c *ProjectsAttestorsTestIamPermissionsCall) Header() http.Header { func (c *ProjectsAttestorsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2597,7 +2595,7 @@ func (c *ProjectsAttestorsUpdateCall) Header() http.Header { func (c *ProjectsAttestorsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2738,7 +2736,7 @@ func (c *ProjectsAttestorsValidateAttestationOccurrenceCall) Header() http.Heade func (c *ProjectsAttestorsValidateAttestationOccurrenceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2905,7 +2903,7 @@ func (c *ProjectsPolicyGetIamPolicyCall) Header() http.Header { func (c *ProjectsPolicyGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3048,7 +3046,7 @@ func (c *ProjectsPolicySetIamPolicyCall) Header() http.Header { func (c *ProjectsPolicySetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3193,7 +3191,7 @@ func (c *ProjectsPolicyTestIamPermissionsCall) Header() http.Header { func (c *ProjectsPolicyTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/blogger/v2/blogger-gen.go b/blogger/v2/blogger-gen.go index ccdc7a80874..fd0de12bfa4 100644 --- a/blogger/v2/blogger-gen.go +++ b/blogger/v2/blogger-gen.go @@ -1471,7 +1471,7 @@ func (c *BlogsGetCall) Header() http.Header { func (c *BlogsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1613,7 +1613,7 @@ func (c *BlogsListCall) Header() http.Header { func (c *BlogsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1759,7 +1759,7 @@ func (c *CommentsGetCall) Header() http.Header { func (c *CommentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1941,7 +1941,7 @@ func (c *CommentsListCall) Header() http.Header { func (c *CommentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2130,7 +2130,7 @@ func (c *PagesGetCall) Header() http.Header { func (c *PagesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2285,7 +2285,7 @@ func (c *PagesListCall) Header() http.Header { func (c *PagesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2433,7 +2433,7 @@ func (c *PostsGetCall) Header() http.Header { func (c *PostsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2606,7 +2606,7 @@ func (c *PostsListCall) Header() http.Header { func (c *PostsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2786,7 +2786,7 @@ func (c *UsersGetCall) Header() http.Header { func (c *UsersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/blogger/v3/blogger-gen.go b/blogger/v3/blogger-gen.go index 934fc9e540a..e4d9b221400 100644 --- a/blogger/v3/blogger-gen.go +++ b/blogger/v3/blogger-gen.go @@ -1714,7 +1714,7 @@ func (c *BlogUserInfosGetCall) Header() http.Header { func (c *BlogUserInfosGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1887,7 +1887,7 @@ func (c *BlogsGetCall) Header() http.Header { func (c *BlogsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2062,7 +2062,7 @@ func (c *BlogsGetByUrlCall) Header() http.Header { func (c *BlogsGetByUrlCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2259,7 +2259,7 @@ func (c *BlogsListByUserCall) Header() http.Header { func (c *BlogsListByUserCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2447,7 +2447,7 @@ func (c *CommentsApproveCall) Header() http.Header { func (c *CommentsApproveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2593,7 +2593,7 @@ func (c *CommentsDeleteCall) Header() http.Header { func (c *CommentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2734,7 +2734,7 @@ func (c *CommentsGetCall) Header() http.Header { func (c *CommentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2963,7 +2963,7 @@ func (c *CommentsListCall) Header() http.Header { func (c *CommentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3229,7 +3229,7 @@ func (c *CommentsListByBlogCall) Header() http.Header { func (c *CommentsListByBlogCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3425,7 +3425,7 @@ func (c *CommentsMarkAsSpamCall) Header() http.Header { func (c *CommentsMarkAsSpamCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3572,7 +3572,7 @@ func (c *CommentsRemoveContentCall) Header() http.Header { func (c *CommentsRemoveContentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3736,7 +3736,7 @@ func (c *PageViewsGetCall) Header() http.Header { func (c *PageViewsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3884,7 +3884,7 @@ func (c *PagesDeleteCall) Header() http.Header { func (c *PagesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4016,7 +4016,7 @@ func (c *PagesGetCall) Header() http.Header { func (c *PagesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4179,7 +4179,7 @@ func (c *PagesInsertCall) Header() http.Header { func (c *PagesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4370,7 +4370,7 @@ func (c *PagesListCall) Header() http.Header { func (c *PagesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4581,7 +4581,7 @@ func (c *PagesPatchCall) Header() http.Header { func (c *PagesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4734,7 +4734,7 @@ func (c *PagesPublishCall) Header() http.Header { func (c *PagesPublishCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4871,7 +4871,7 @@ func (c *PagesRevertCall) Header() http.Header { func (c *PagesRevertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5022,7 +5022,7 @@ func (c *PagesUpdateCall) Header() http.Header { func (c *PagesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5194,7 +5194,7 @@ func (c *PostUserInfosGetCall) Header() http.Header { func (c *PostUserInfosGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5428,7 +5428,7 @@ func (c *PostUserInfosListCall) Header() http.Header { func (c *PostUserInfosListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5662,7 +5662,7 @@ func (c *PostsDeleteCall) Header() http.Header { func (c *PostsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5812,7 +5812,7 @@ func (c *PostsGetCall) Header() http.Header { func (c *PostsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6011,7 +6011,7 @@ func (c *PostsGetByPathCall) Header() http.Header { func (c *PostsGetByPathCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6190,7 +6190,7 @@ func (c *PostsInsertCall) Header() http.Header { func (c *PostsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6426,7 +6426,7 @@ func (c *PostsListCall) Header() http.Header { func (c *PostsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6689,7 +6689,7 @@ func (c *PostsPatchCall) Header() http.Header { func (c *PostsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6862,7 +6862,7 @@ func (c *PostsPublishCall) Header() http.Header { func (c *PostsPublishCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7003,7 +7003,7 @@ func (c *PostsRevertCall) Header() http.Header { func (c *PostsRevertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7168,7 +7168,7 @@ func (c *PostsSearchCall) Header() http.Header { func (c *PostsSearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7360,7 +7360,7 @@ func (c *PostsUpdateCall) Header() http.Header { func (c *PostsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7536,7 +7536,7 @@ func (c *UsersGetCall) Header() http.Header { func (c *UsersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/books/v1/books-gen.go b/books/v1/books-gen.go index f7623d86c3a..821ee1e5301 100644 --- a/books/v1/books-gen.go +++ b/books/v1/books-gen.go @@ -4973,7 +4973,7 @@ func (c *BookshelvesGetCall) Header() http.Header { func (c *BookshelvesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5136,7 +5136,7 @@ func (c *BookshelvesListCall) Header() http.Header { func (c *BookshelvesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5315,7 +5315,7 @@ func (c *BookshelvesVolumesListCall) Header() http.Header { func (c *BookshelvesVolumesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5505,7 +5505,7 @@ func (c *CloudloadingAddBookCall) Header() http.Header { func (c *CloudloadingAddBookCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5642,7 +5642,7 @@ func (c *CloudloadingDeleteBookCall) Header() http.Header { func (c *CloudloadingDeleteBookCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5768,7 +5768,7 @@ func (c *CloudloadingUpdateBookCall) Header() http.Header { func (c *CloudloadingUpdateBookCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5904,7 +5904,7 @@ func (c *DictionaryListOfflineMetadataCall) Header() http.Header { func (c *DictionaryListOfflineMetadataCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6050,7 +6050,7 @@ func (c *FamilysharingGetFamilyInfoCall) Header() http.Header { func (c *FamilysharingGetFamilyInfoCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6194,7 +6194,7 @@ func (c *FamilysharingShareCall) Header() http.Header { func (c *FamilysharingShareCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6346,7 +6346,7 @@ func (c *FamilysharingUnshareCall) Header() http.Header { func (c *FamilysharingUnshareCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6506,7 +6506,7 @@ func (c *LayersGetCall) Header() http.Header { func (c *LayersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6695,7 +6695,7 @@ func (c *LayersListCall) Header() http.Header { func (c *LayersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6910,7 +6910,7 @@ func (c *LayersAnnotationDataGetCall) Header() http.Header { func (c *LayersAnnotationDataGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7187,7 +7187,7 @@ func (c *LayersAnnotationDataListCall) Header() http.Header { func (c *LayersAnnotationDataListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7443,7 +7443,7 @@ func (c *LayersVolumeAnnotationsGetCall) Header() http.Header { func (c *LayersVolumeAnnotationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7704,7 +7704,7 @@ func (c *LayersVolumeAnnotationsListCall) Header() http.Header { func (c *LayersVolumeAnnotationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7951,7 +7951,7 @@ func (c *MyconfigGetUserSettingsCall) Header() http.Header { func (c *MyconfigGetUserSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8091,7 +8091,7 @@ func (c *MyconfigReleaseDownloadAccessCall) Header() http.Header { func (c *MyconfigReleaseDownloadAccessCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8257,7 +8257,7 @@ func (c *MyconfigRequestAccessCall) Header() http.Header { func (c *MyconfigRequestAccessCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8468,7 +8468,7 @@ func (c *MyconfigSyncVolumeLicensesCall) Header() http.Header { func (c *MyconfigSyncVolumeLicensesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8645,7 +8645,7 @@ func (c *MyconfigUpdateUserSettingsCall) Header() http.Header { func (c *MyconfigUpdateUserSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8777,7 +8777,7 @@ func (c *MylibraryAnnotationsDeleteCall) Header() http.Header { func (c *MylibraryAnnotationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8940,7 +8940,7 @@ func (c *MylibraryAnnotationsInsertCall) Header() http.Header { func (c *MylibraryAnnotationsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9168,7 +9168,7 @@ func (c *MylibraryAnnotationsListCall) Header() http.Header { func (c *MylibraryAnnotationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9364,7 +9364,7 @@ func (c *MylibraryAnnotationsSummaryCall) Header() http.Header { func (c *MylibraryAnnotationsSummaryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9507,7 +9507,7 @@ func (c *MylibraryAnnotationsUpdateCall) Header() http.Header { func (c *MylibraryAnnotationsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9670,7 +9670,7 @@ func (c *MylibraryBookshelvesAddVolumeCall) Header() http.Header { func (c *MylibraryBookshelvesAddVolumeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9835,7 +9835,7 @@ func (c *MylibraryBookshelvesClearVolumesCall) Header() http.Header { func (c *MylibraryBookshelvesClearVolumesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9988,7 +9988,7 @@ func (c *MylibraryBookshelvesGetCall) Header() http.Header { func (c *MylibraryBookshelvesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10142,7 +10142,7 @@ func (c *MylibraryBookshelvesListCall) Header() http.Header { func (c *MylibraryBookshelvesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10277,7 +10277,7 @@ func (c *MylibraryBookshelvesMoveVolumeCall) Header() http.Header { func (c *MylibraryBookshelvesMoveVolumeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10445,7 +10445,7 @@ func (c *MylibraryBookshelvesRemoveVolumeCall) Header() http.Header { func (c *MylibraryBookshelvesRemoveVolumeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10664,7 +10664,7 @@ func (c *MylibraryBookshelvesVolumesListCall) Header() http.Header { func (c *MylibraryBookshelvesVolumesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10870,7 +10870,7 @@ func (c *MylibraryReadingpositionsGetCall) Header() http.Header { func (c *MylibraryReadingpositionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11051,7 +11051,7 @@ func (c *MylibraryReadingpositionsSetPositionCall) Header() http.Header { func (c *MylibraryReadingpositionsSetPositionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11257,7 +11257,7 @@ func (c *NotificationGetCall) Header() http.Header { func (c *NotificationGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11412,7 +11412,7 @@ func (c *OnboardingListCategoriesCall) Header() http.Header { func (c *OnboardingListCategoriesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11590,7 +11590,7 @@ func (c *OnboardingListCategoryVolumesCall) Header() http.Header { func (c *OnboardingListCategoryVolumesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11807,7 +11807,7 @@ func (c *PersonalizedstreamGetCall) Header() http.Header { func (c *PersonalizedstreamGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12001,7 +12001,7 @@ func (c *PromoofferAcceptCall) Header() http.Header { func (c *PromoofferAcceptCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12199,7 +12199,7 @@ func (c *PromoofferDismissCall) Header() http.Header { func (c *PromoofferDismissCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12398,7 +12398,7 @@ func (c *PromoofferGetCall) Header() http.Header { func (c *PromoofferGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12559,7 +12559,7 @@ func (c *SeriesGetCall) Header() http.Header { func (c *SeriesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12713,7 +12713,7 @@ func (c *SeriesMembershipGetCall) Header() http.Header { func (c *SeriesMembershipGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12912,7 +12912,7 @@ func (c *VolumesGetCall) Header() http.Header { func (c *VolumesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13222,7 +13222,7 @@ func (c *VolumesListCall) Header() http.Header { func (c *VolumesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13550,7 +13550,7 @@ func (c *VolumesAssociatedListCall) Header() http.Header { func (c *VolumesAssociatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13801,7 +13801,7 @@ func (c *VolumesMybooksListCall) Header() http.Header { func (c *VolumesMybooksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14036,7 +14036,7 @@ func (c *VolumesRecommendedListCall) Header() http.Header { func (c *VolumesRecommendedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14197,7 +14197,7 @@ func (c *VolumesRecommendedRateCall) Header() http.Header { func (c *VolumesRecommendedRateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14410,7 +14410,7 @@ func (c *VolumesUseruploadedListCall) Header() http.Header { func (c *VolumesUseruploadedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/calendar/v3/calendar-api.json b/calendar/v3/calendar-api.json index 0e6658ac72d..44f29d5f0f1 100644 --- a/calendar/v3/calendar-api.json +++ b/calendar/v3/calendar-api.json @@ -27,8 +27,8 @@ "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/google-apps/calendar/firstapp", "icons": { - "x16": "http://www.google.com/images/icons/product/calendar-16.png", - "x32": "http://www.google.com/images/icons/product/calendar-32.png" + "x16": "http://fonts.gstatic.com/s/i/productlogos/calendar_2020q4/v8/web-16dp/logo_calendar_2020q4_color_1x_web_16dp.png", + "x32": "http://fonts.gstatic.com/s/i/productlogos/calendar_2020q4/v8/web-32dp/logo_calendar_2020q4_color_1x_web_32dp.png" }, "id": "calendar:v3", "kind": "discovery#restDescription", @@ -1723,7 +1723,7 @@ } } }, - "revision": "20200917", + "revision": "20201028", "rootUrl": "https://www.googleapis.com/", "schemas": { "Acl": { @@ -2204,7 +2204,7 @@ "id": "ConferenceSolutionKey", "properties": { "type": { - "description": "The conference solution type.\nIf a client encounters an unfamiliar or empty type, it should still be able to display the entry points. However, it should disallow modifications.\nThe possible values are: \n- \"eventHangout\" for Hangouts for consumers (http://hangouts.google.com)\n- \"eventNamedHangout\" for classic Hangouts for G Suite users (http://hangouts.google.com)\n- \"hangoutsMeet\" for Google Meet (http://meet.google.com)\n- \"addOn\" for 3P conference providers", + "description": "The conference solution type.\nIf a client encounters an unfamiliar or empty type, it should still be able to display the entry points. However, it should disallow modifications.\nThe possible values are: \n- \"eventHangout\" for Hangouts for consumers (http://hangouts.google.com)\n- \"eventNamedHangout\" for classic Hangouts for Google Workspace users (http://hangouts.google.com)\n- \"hangoutsMeet\" for Google Meet (http://meet.google.com)\n- \"addOn\" for 3P conference providers", "type": "string" } }, diff --git a/calendar/v3/calendar-gen.go b/calendar/v3/calendar-gen.go index e9a54716d7d..658209c527b 100644 --- a/calendar/v3/calendar-gen.go +++ b/calendar/v3/calendar-gen.go @@ -1065,7 +1065,7 @@ type ConferenceSolutionKey struct { // The possible values are: // - "eventHangout" for Hangouts for consumers // (http://hangouts.google.com) - // - "eventNamedHangout" for classic Hangouts for G Suite users + // - "eventNamedHangout" for classic Hangouts for Google Workspace users // (http://hangouts.google.com) // - "hangoutsMeet" for Google Meet (http://meet.google.com) // - "addOn" for 3P conference providers @@ -2424,7 +2424,7 @@ func (c *AclDeleteCall) Header() http.Header { func (c *AclDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2545,7 +2545,7 @@ func (c *AclGetCall) Header() http.Header { func (c *AclGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2695,7 +2695,7 @@ func (c *AclInsertCall) Header() http.Header { func (c *AclInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2887,7 +2887,7 @@ func (c *AclListCall) Header() http.Header { func (c *AclListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3076,7 +3076,7 @@ func (c *AclPatchCall) Header() http.Header { func (c *AclPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3238,7 +3238,7 @@ func (c *AclUpdateCall) Header() http.Header { func (c *AclUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3429,7 +3429,7 @@ func (c *AclWatchCall) Header() http.Header { func (c *AclWatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3589,7 +3589,7 @@ func (c *CalendarListDeleteCall) Header() http.Header { func (c *CalendarListDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3700,7 +3700,7 @@ func (c *CalendarListGetCall) Header() http.Header { func (c *CalendarListGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3842,7 +3842,7 @@ func (c *CalendarListInsertCall) Header() http.Header { func (c *CalendarListInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4045,7 +4045,7 @@ func (c *CalendarListListCall) Header() http.Header { func (c *CalendarListListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4244,7 +4244,7 @@ func (c *CalendarListPatchCall) Header() http.Header { func (c *CalendarListPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4397,7 +4397,7 @@ func (c *CalendarListUpdateCall) Header() http.Header { func (c *CalendarListUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4603,7 +4603,7 @@ func (c *CalendarListWatchCall) Header() http.Header { func (c *CalendarListWatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4775,7 +4775,7 @@ func (c *CalendarsClearCall) Header() http.Header { func (c *CalendarsClearCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4876,7 +4876,7 @@ func (c *CalendarsDeleteCall) Header() http.Header { func (c *CalendarsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4987,7 +4987,7 @@ func (c *CalendarsGetCall) Header() http.Header { func (c *CalendarsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5119,7 +5119,7 @@ func (c *CalendarsInsertCall) Header() http.Header { func (c *CalendarsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5244,7 +5244,7 @@ func (c *CalendarsPatchCall) Header() http.Header { func (c *CalendarsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5382,7 +5382,7 @@ func (c *CalendarsUpdateCall) Header() http.Header { func (c *CalendarsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5518,7 +5518,7 @@ func (c *ChannelsStopCall) Header() http.Header { func (c *ChannelsStopCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5626,7 +5626,7 @@ func (c *ColorsGetCall) Header() http.Header { func (c *ColorsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5772,7 +5772,7 @@ func (c *EventsDeleteCall) Header() http.Header { func (c *EventsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5940,7 +5940,7 @@ func (c *EventsGetCall) Header() http.Header { func (c *EventsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6122,7 +6122,7 @@ func (c *EventsImportCall) Header() http.Header { func (c *EventsImportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6330,7 +6330,7 @@ func (c *EventsInsertCall) Header() http.Header { func (c *EventsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6595,7 +6595,7 @@ func (c *EventsInstancesCall) Header() http.Header { func (c *EventsInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7003,7 +7003,7 @@ func (c *EventsListCall) Header() http.Header { func (c *EventsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7293,7 +7293,7 @@ func (c *EventsMoveCall) Header() http.Header { func (c *EventsMoveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7527,7 +7527,7 @@ func (c *EventsPatchCall) Header() http.Header { func (c *EventsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7744,7 +7744,7 @@ func (c *EventsQuickAddCall) Header() http.Header { func (c *EventsQuickAddCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7970,7 +7970,7 @@ func (c *EventsUpdateCall) Header() http.Header { func (c *EventsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8344,7 +8344,7 @@ func (c *EventsWatchCall) Header() http.Header { func (c *EventsWatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8588,7 +8588,7 @@ func (c *FreebusyQueryCall) Header() http.Header { func (c *FreebusyQueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8722,7 +8722,7 @@ func (c *SettingsGetCall) Header() http.Header { func (c *SettingsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8893,7 +8893,7 @@ func (c *SettingsListCall) Header() http.Header { func (c *SettingsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9082,7 +9082,7 @@ func (c *SettingsWatchCall) Header() http.Header { func (c *SettingsWatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index 6d04a2bb0c6..f9631d4b1a4 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -372,7 +372,7 @@ } } }, - "revision": "20201019", + "revision": "20201028", "rootUrl": "https://chat.googleapis.com/", "schemas": { "ActionParameter": { @@ -1247,7 +1247,7 @@ "type": "string" }, "isAnonymous": { - "description": "Set to true if none of the depending services (Gaia, PeopleApi) returns any info for this user.", + "description": "True when the user is deleted or the user's proifle is not visible.", "type": "boolean" }, "name": { diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 5760e870aed..4940f3a5ae5 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -1467,8 +1467,8 @@ type User struct { // DomainId: Obfuscated domain information. DomainId string `json:"domainId,omitempty"` - // IsAnonymous: Set to true if none of the depending services (Gaia, - // PeopleApi) returns any info for this user. + // IsAnonymous: True when the user is deleted or the user's proifle is + // not visible. IsAnonymous bool `json:"isAnonymous,omitempty"` // Name: Resource name, in the format "users/*". @@ -1636,7 +1636,7 @@ func (c *MediaDownloadCall) Header() http.Header { func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201021") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1794,7 +1794,7 @@ func (c *SpacesGetCall) Header() http.Header { func (c *SpacesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201021") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1948,7 +1948,7 @@ func (c *SpacesListCall) Header() http.Header { func (c *SpacesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201021") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2109,7 +2109,7 @@ func (c *SpacesMembersGetCall) Header() http.Header { func (c *SpacesMembersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201021") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2265,7 +2265,7 @@ func (c *SpacesMembersListCall) Header() http.Header { func (c *SpacesMembersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201021") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2443,7 +2443,7 @@ func (c *SpacesMessagesCreateCall) Header() http.Header { func (c *SpacesMessagesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201021") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2583,7 +2583,7 @@ func (c *SpacesMessagesDeleteCall) Header() http.Header { func (c *SpacesMessagesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201021") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2721,7 +2721,7 @@ func (c *SpacesMessagesGetCall) Header() http.Header { func (c *SpacesMessagesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201021") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2861,7 +2861,7 @@ func (c *SpacesMessagesUpdateCall) Header() http.Header { func (c *SpacesMessagesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201021") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3014,7 +3014,7 @@ func (c *SpacesMessagesAttachmentsGetCall) Header() http.Header { func (c *SpacesMessagesAttachmentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201021") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/chromeuxreport/v1/chromeuxreport-gen.go b/chromeuxreport/v1/chromeuxreport-gen.go index dac3f89d04c..c90f13163ec 100644 --- a/chromeuxreport/v1/chromeuxreport-gen.go +++ b/chromeuxreport/v1/chromeuxreport-gen.go @@ -552,7 +552,7 @@ func (c *RecordsQueryRecordCall) Header() http.Header { func (c *RecordsQueryRecordCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/civicinfo/v2/civicinfo-gen.go b/civicinfo/v2/civicinfo-gen.go index a5bd2db528d..a1a19bca7b4 100644 --- a/civicinfo/v2/civicinfo-gen.go +++ b/civicinfo/v2/civicinfo-gen.go @@ -1355,7 +1355,7 @@ func (c *DivisionsSearchCall) Header() http.Header { func (c *DivisionsSearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1487,7 +1487,7 @@ func (c *ElectionsElectionQueryCall) Header() http.Header { func (c *ElectionsElectionQueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1643,7 +1643,7 @@ func (c *ElectionsVoterInfoQueryCall) Header() http.Header { func (c *ElectionsVoterInfoQueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1855,7 +1855,7 @@ func (c *RepresentativesRepresentativeInfoByAddressCall) Header() http.Header { func (c *RepresentativesRepresentativeInfoByAddressCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2108,7 +2108,7 @@ func (c *RepresentativesRepresentativeInfoByDivisionCall) Header() http.Header { func (c *RepresentativesRepresentativeInfoByDivisionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/classroom/v1/classroom-gen.go b/classroom/v1/classroom-gen.go index ba95659daea..ec06c5904fa 100644 --- a/classroom/v1/classroom-gen.go +++ b/classroom/v1/classroom-gen.go @@ -3167,7 +3167,7 @@ func (c *CoursesCreateCall) Header() http.Header { func (c *CoursesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3295,7 +3295,7 @@ func (c *CoursesDeleteCall) Header() http.Header { func (c *CoursesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3438,7 +3438,7 @@ func (c *CoursesGetCall) Header() http.Header { func (c *CoursesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3653,7 +3653,7 @@ func (c *CoursesListCall) Header() http.Header { func (c *CoursesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3861,7 +3861,7 @@ func (c *CoursesPatchCall) Header() http.Header { func (c *CoursesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4010,7 +4010,7 @@ func (c *CoursesUpdateCall) Header() http.Header { func (c *CoursesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4155,7 +4155,7 @@ func (c *CoursesAliasesCreateCall) Header() http.Header { func (c *CoursesAliasesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4300,7 +4300,7 @@ func (c *CoursesAliasesDeleteCall) Header() http.Header { func (c *CoursesAliasesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4469,7 +4469,7 @@ func (c *CoursesAliasesListCall) Header() http.Header { func (c *CoursesAliasesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4642,7 +4642,7 @@ func (c *CoursesAnnouncementsCreateCall) Header() http.Header { func (c *CoursesAnnouncementsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4790,7 +4790,7 @@ func (c *CoursesAnnouncementsDeleteCall) Header() http.Header { func (c *CoursesAnnouncementsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4944,7 +4944,7 @@ func (c *CoursesAnnouncementsGetCall) Header() http.Header { func (c *CoursesAnnouncementsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5152,7 +5152,7 @@ func (c *CoursesAnnouncementsListCall) Header() http.Header { func (c *CoursesAnnouncementsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5350,7 +5350,7 @@ func (c *CoursesAnnouncementsModifyAssigneesCall) Header() http.Header { func (c *CoursesAnnouncementsModifyAssigneesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5519,7 +5519,7 @@ func (c *CoursesAnnouncementsPatchCall) Header() http.Header { func (c *CoursesAnnouncementsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5684,7 +5684,7 @@ func (c *CoursesCourseWorkCreateCall) Header() http.Header { func (c *CoursesCourseWorkCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5832,7 +5832,7 @@ func (c *CoursesCourseWorkDeleteCall) Header() http.Header { func (c *CoursesCourseWorkDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5986,7 +5986,7 @@ func (c *CoursesCourseWorkGetCall) Header() http.Header { func (c *CoursesCourseWorkGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6195,7 +6195,7 @@ func (c *CoursesCourseWorkListCall) Header() http.Header { func (c *CoursesCourseWorkListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6395,7 +6395,7 @@ func (c *CoursesCourseWorkModifyAssigneesCall) Header() http.Header { func (c *CoursesCourseWorkModifyAssigneesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6572,7 +6572,7 @@ func (c *CoursesCourseWorkPatchCall) Header() http.Header { func (c *CoursesCourseWorkPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6742,7 +6742,7 @@ func (c *CoursesCourseWorkStudentSubmissionsGetCall) Header() http.Header { func (c *CoursesCourseWorkStudentSubmissionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6979,7 +6979,7 @@ func (c *CoursesCourseWorkStudentSubmissionsListCall) Header() http.Header { func (c *CoursesCourseWorkStudentSubmissionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7215,7 +7215,7 @@ func (c *CoursesCourseWorkStudentSubmissionsModifyAttachmentsCall) Header() http func (c *CoursesCourseWorkStudentSubmissionsModifyAttachmentsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7396,7 +7396,7 @@ func (c *CoursesCourseWorkStudentSubmissionsPatchCall) Header() http.Header { func (c *CoursesCourseWorkStudentSubmissionsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7576,7 +7576,7 @@ func (c *CoursesCourseWorkStudentSubmissionsReclaimCall) Header() http.Header { func (c *CoursesCourseWorkStudentSubmissionsReclaimCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7748,7 +7748,7 @@ func (c *CoursesCourseWorkStudentSubmissionsReturnCall) Header() http.Header { func (c *CoursesCourseWorkStudentSubmissionsReturnCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7918,7 +7918,7 @@ func (c *CoursesCourseWorkStudentSubmissionsTurnInCall) Header() http.Header { func (c *CoursesCourseWorkStudentSubmissionsTurnInCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8080,7 +8080,7 @@ func (c *CoursesCourseWorkMaterialsCreateCall) Header() http.Header { func (c *CoursesCourseWorkMaterialsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8228,7 +8228,7 @@ func (c *CoursesCourseWorkMaterialsDeleteCall) Header() http.Header { func (c *CoursesCourseWorkMaterialsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8383,7 +8383,7 @@ func (c *CoursesCourseWorkMaterialsGetCall) Header() http.Header { func (c *CoursesCourseWorkMaterialsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8611,7 +8611,7 @@ func (c *CoursesCourseWorkMaterialsListCall) Header() http.Header { func (c *CoursesCourseWorkMaterialsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8834,7 +8834,7 @@ func (c *CoursesCourseWorkMaterialsPatchCall) Header() http.Header { func (c *CoursesCourseWorkMaterialsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9005,7 +9005,7 @@ func (c *CoursesStudentsCreateCall) Header() http.Header { func (c *CoursesStudentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9155,7 +9155,7 @@ func (c *CoursesStudentsDeleteCall) Header() http.Header { func (c *CoursesStudentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9309,7 +9309,7 @@ func (c *CoursesStudentsGetCall) Header() http.Header { func (c *CoursesStudentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9483,7 +9483,7 @@ func (c *CoursesStudentsListCall) Header() http.Header { func (c *CoursesStudentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9660,7 +9660,7 @@ func (c *CoursesTeachersCreateCall) Header() http.Header { func (c *CoursesTeachersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9806,7 +9806,7 @@ func (c *CoursesTeachersDeleteCall) Header() http.Header { func (c *CoursesTeachersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9960,7 +9960,7 @@ func (c *CoursesTeachersGetCall) Header() http.Header { func (c *CoursesTeachersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10134,7 +10134,7 @@ func (c *CoursesTeachersListCall) Header() http.Header { func (c *CoursesTeachersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10307,7 +10307,7 @@ func (c *CoursesTopicsCreateCall) Header() http.Header { func (c *CoursesTopicsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10451,7 +10451,7 @@ func (c *CoursesTopicsDeleteCall) Header() http.Header { func (c *CoursesTopicsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10605,7 +10605,7 @@ func (c *CoursesTopicsGetCall) Header() http.Header { func (c *CoursesTopicsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10780,7 +10780,7 @@ func (c *CoursesTopicsListCall) Header() http.Header { func (c *CoursesTopicsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10966,7 +10966,7 @@ func (c *CoursesTopicsPatchCall) Header() http.Header { func (c *CoursesTopicsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11125,7 +11125,7 @@ func (c *InvitationsAcceptCall) Header() http.Header { func (c *InvitationsAcceptCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11262,7 +11262,7 @@ func (c *InvitationsCreateCall) Header() http.Header { func (c *InvitationsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11390,7 +11390,7 @@ func (c *InvitationsDeleteCall) Header() http.Header { func (c *InvitationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11533,7 +11533,7 @@ func (c *InvitationsGetCall) Header() http.Header { func (c *InvitationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11713,7 +11713,7 @@ func (c *InvitationsListCall) Header() http.Header { func (c *InvitationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11900,7 +11900,7 @@ func (c *RegistrationsCreateCall) Header() http.Header { func (c *RegistrationsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12026,7 +12026,7 @@ func (c *RegistrationsDeleteCall) Header() http.Header { func (c *RegistrationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12169,7 +12169,7 @@ func (c *UserProfilesGetCall) Header() http.Header { func (c *UserProfilesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12330,7 +12330,7 @@ func (c *UserProfilesGuardianInvitationsCreateCall) Header() http.Header { func (c *UserProfilesGuardianInvitationsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12490,7 +12490,7 @@ func (c *UserProfilesGuardianInvitationsGetCall) Header() http.Header { func (c *UserProfilesGuardianInvitationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12694,7 +12694,7 @@ func (c *UserProfilesGuardianInvitationsListCall) Header() http.Header { func (c *UserProfilesGuardianInvitationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12908,7 +12908,7 @@ func (c *UserProfilesGuardianInvitationsPatchCall) Header() http.Header { func (c *UserProfilesGuardianInvitationsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13073,7 +13073,7 @@ func (c *UserProfilesGuardiansDeleteCall) Header() http.Header { func (c *UserProfilesGuardiansDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13234,7 +13234,7 @@ func (c *UserProfilesGuardiansGetCall) Header() http.Header { func (c *UserProfilesGuardiansGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13430,7 +13430,7 @@ func (c *UserProfilesGuardiansListCall) Header() http.Header { func (c *UserProfilesGuardiansListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudasset/v1/cloudasset-api.json b/cloudasset/v1/cloudasset-api.json index d9b07993c62..ea83f525147 100644 --- a/cloudasset/v1/cloudasset-api.json +++ b/cloudasset/v1/cloudasset-api.json @@ -271,6 +271,117 @@ }, "v1": { "methods": { + "analyzeIamPolicy": { + "description": "Analyzes IAM policies to answer which identities have what accesses on which resources.", + "flatPath": "v1/{v1Id}/{v1Id1}:analyzeIamPolicy", + "httpMethod": "GET", + "id": "cloudasset.analyzeIamPolicy", + "parameterOrder": [ + "scope" + ], + "parameters": { + "analysisQuery.accessSelector.permissions": { + "description": "Optional. The permissions to appear in result.", + "location": "query", + "repeated": true, + "type": "string" + }, + "analysisQuery.accessSelector.roles": { + "description": "Optional. The roles to appear in result.", + "location": "query", + "repeated": true, + "type": "string" + }, + "analysisQuery.identitySelector.identity": { + "description": "Required. The identity appear in the form of members in [IAM policy binding](https://cloud.google.com/iam/reference/rest/v1/Binding). The examples of supported forms are: \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\". Notice that wildcard characters (such as * and ?) are not supported. You must give a specific identity.", + "location": "query", + "type": "string" + }, + "analysisQuery.options.analyzeServiceAccountImpersonation": { + "description": "Optional. If true, the response will include access analysis from identities to resources via service account impersonation. This is a very expensive operation, because many derived queries will be executed. We highly recommend you use AssetService.AnalyzeIamPolicyLongrunning rpc instead. For example, if the request analyzes for which resources user A has permission P, and there's an IAM policy states user A has iam.serviceAccounts.getAccessToken permission to a service account SA, and there's another IAM policy states service account SA has permission P to a GCP folder F, then user A potentially has access to the GCP folder F. And those advanced analysis results will be included in AnalyzeIamPolicyResponse.service_account_impersonation_analysis. Another example, if the request analyzes for who has permission P to a GCP folder F, and there's an IAM policy states user A has iam.serviceAccounts.actAs permission to a service account SA, and there's another IAM policy states service account SA has permission P to the GCP folder F, then user A potentially has access to the GCP folder F. And those advanced analysis results will be included in AnalyzeIamPolicyResponse.service_account_impersonation_analysis. Default is false.", + "location": "query", + "type": "boolean" + }, + "analysisQuery.options.expandGroups": { + "description": "Optional. If true, the identities section of the result will expand any Google groups appearing in an IAM policy binding. If IamPolicyAnalysisQuery.identity_selector is specified, the identity in the result will be determined by the selector, and this flag is not allowed to set. Default is false.", + "location": "query", + "type": "boolean" + }, + "analysisQuery.options.expandResources": { + "description": "Optional. If true and IamPolicyAnalysisQuery.resource_selector is not specified, the resource section of the result will expand any resource attached to an IAM policy to include resources lower in the resource hierarchy. For example, if the request analyzes for which resources user A has permission P, and the results include an IAM policy with P on a GCP folder, the results will also include resources in that folder with permission P. If true and IamPolicyAnalysisQuery.resource_selector is specified, the resource section of the result will expand the specified resource to include resources lower in the resource hierarchy. Only project or lower resources are supported. Folder and organization resource cannot be used together with this option. For example, if the request analyzes for which users have permission P on a GCP project with this option enabled, the results will include all users who have permission P on that project or any lower resource. Default is false.", + "location": "query", + "type": "boolean" + }, + "analysisQuery.options.expandRoles": { + "description": "Optional. If true, the access section of result will expand any roles appearing in IAM policy bindings to include their permissions. If IamPolicyAnalysisQuery.access_selector is specified, the access section of the result will be determined by the selector, and this flag is not allowed to set. Default is false.", + "location": "query", + "type": "boolean" + }, + "analysisQuery.options.outputGroupEdges": { + "description": "Optional. If true, the result will output group identity edges, starting from the binding's group members, to any expanded identities. Default is false.", + "location": "query", + "type": "boolean" + }, + "analysisQuery.options.outputResourceEdges": { + "description": "Optional. If true, the result will output resource edges, starting from the policy attached resource, to any expanded resources. Default is false.", + "location": "query", + "type": "boolean" + }, + "analysisQuery.resourceSelector.fullResourceName": { + "description": "Required. The [full resource name] (https://cloud.google.com/asset-inventory/docs/resource-name-format) of a resource of [supported resource types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#analyzable_asset_types).", + "location": "query", + "type": "string" + }, + "executionTimeout": { + "description": "Optional. Amount of time executable has to complete. See JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json). If this field is set with a value less than the RPC deadline, and the execution of your query hasn't finished in the specified execution timeout, you will get a response with partial result. Otherwise, your query's execution will continue until the RPC deadline. If it's not finished until then, you will get a DEADLINE_EXCEEDED error. Default is empty.", + "format": "google-duration", + "location": "query", + "type": "string" + }, + "scope": { + "description": "Required. The relative name of the root asset. Only resources and IAM policies within the scope will be analyzed. This can only be an organization number (such as \"organizations/123\"), a folder number (such as \"folders/123\"), a project ID (such as \"projects/my-project-id\"), or a project number (such as \"projects/12345\"). To know how to get organization id, visit [here ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id). To know how to get folder or project id, visit [here ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).", + "location": "path", + "pattern": "^[^/]+/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+scope}:analyzeIamPolicy", + "response": { + "$ref": "AnalyzeIamPolicyResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "analyzeIamPolicyLongrunning": { + "description": "Analyzes IAM policies asynchronously to answer which identities have what accesses on which resources, and writes the analysis results to a Google Cloud Storage or a BigQuery destination. For Cloud Storage destination, the output format is the JSON format that represents a AnalyzeIamPolicyResponse. This method implements the google.longrunning.Operation, which allows you to track the operation status. We recommend intervals of at least 2 seconds with exponential backoff retry to poll the operation result. The metadata contains the request to help callers to map responses to requests.", + "flatPath": "v1/{v1Id}/{v1Id1}:analyzeIamPolicyLongrunning", + "httpMethod": "POST", + "id": "cloudasset.analyzeIamPolicyLongrunning", + "parameterOrder": [ + "scope" + ], + "parameters": { + "scope": { + "description": "Required. The relative name of the root asset. Only resources and IAM policies within the scope will be analyzed. This can only be an organization number (such as \"organizations/123\"), a folder number (such as \"folders/123\"), a project ID (such as \"projects/my-project-id\"), or a project number (such as \"projects/12345\"). To know how to get organization id, visit [here ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id). To know how to get folder or project id, visit [here ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).", + "location": "path", + "pattern": "^[^/]+/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+scope}:analyzeIamPolicyLongrunning", + "request": { + "$ref": "AnalyzeIamPolicyLongrunningRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "batchGetAssetsHistory": { "description": "Batch gets the update history of assets that overlap a time window. For IAM_POLICY content, this API outputs history when the asset and its attached IAM POLICY both exist. This can create gaps in the output history. Otherwise, this API outputs history with asset in both non-delete or deleted status. If a specified asset does not exist, this API returns an INVALID_ARGUMENT error.", "flatPath": "v1/{v1Id}/{v1Id1}:batchGetAssetsHistory", @@ -293,14 +404,16 @@ "RESOURCE", "IAM_POLICY", "ORG_POLICY", - "ACCESS_POLICY" + "ACCESS_POLICY", + "OS_INVENTORY" ], "enumDescriptions": [ "Unspecified content type.", "Resource metadata.", "The actual IAM policy set on a resource.", "The Cloud Organization Policy set on an asset.", - "The Cloud Access context manager Policy set on an asset." + "The Cloud Access context manager Policy set on an asset.", + "The runtime OS Inventory information." ], "location": "query", "type": "string" @@ -457,9 +570,67 @@ } } }, - "revision": "20200911", + "revision": "20201115", "rootUrl": "https://cloudasset.googleapis.com/", "schemas": { + "AccessSelector": { + "description": "Specifies roles and/or permissions to analyze, to determine both the identities possessing them and the resources they control. If multiple values are specified, results will include roles or permissions matching any of them. The total number of roles and permissions should be equal or less than 10.", + "id": "AccessSelector", + "properties": { + "permissions": { + "description": "Optional. The permissions to appear in result.", + "items": { + "type": "string" + }, + "type": "array" + }, + "roles": { + "description": "Optional. The roles to appear in result.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "AnalyzeIamPolicyLongrunningRequest": { + "description": "A request message for AssetService.AnalyzeIamPolicyLongrunning.", + "id": "AnalyzeIamPolicyLongrunningRequest", + "properties": { + "analysisQuery": { + "$ref": "IamPolicyAnalysisQuery", + "description": "Required. The request query." + }, + "outputConfig": { + "$ref": "IamPolicyAnalysisOutputConfig", + "description": "Required. Output configuration indicating where the results will be output to." + } + }, + "type": "object" + }, + "AnalyzeIamPolicyResponse": { + "description": "A response message for AssetService.AnalyzeIamPolicy.", + "id": "AnalyzeIamPolicyResponse", + "properties": { + "fullyExplored": { + "description": "Represents whether all entries in the main_analysis and service_account_impersonation_analysis have been fully explored to answer the query in the request.", + "type": "boolean" + }, + "mainAnalysis": { + "$ref": "IamPolicyAnalysis", + "description": "The main analysis that matches the original request." + }, + "serviceAccountImpersonationAnalysis": { + "description": "The service account impersonation analysis if AnalyzeIamPolicyRequest.analyze_service_account_impersonation is enabled.", + "items": { + "$ref": "IamPolicyAnalysis" + }, + "type": "array" + } + }, + "type": "object" + }, "Asset": { "description": "An asset in Google Cloud. An asset can be any resource in the Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), a resource outside the Google Cloud resource hierarchy (such as Google Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy). See [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information.", "id": "Asset", @@ -498,6 +669,10 @@ }, "type": "array" }, + "osInventory": { + "$ref": "Inventory", + "description": "A representation of runtime OS Inventory information. See [this topic](https://cloud.google.com/compute/docs/instances/os-inventory-management) for more information." + }, "resource": { "$ref": "Resource", "description": "A representation of the resource." @@ -678,14 +853,16 @@ "RESOURCE", "IAM_POLICY", "ORG_POLICY", - "ACCESS_POLICY" + "ACCESS_POLICY", + "OS_INVENTORY" ], "enumDescriptions": [ "Unspecified content type.", "Resource metadata.", "The actual IAM policy set on a resource.", "The Cloud Organization Policy set on an asset.", - "The Cloud Access context manager Policy set on an asset." + "The Cloud Access context manager Policy set on an asset.", + "The runtime OS Inventory information." ], "type": "string" }, @@ -753,14 +930,16 @@ "RESOURCE", "IAM_POLICY", "ORG_POLICY", - "ACCESS_POLICY" + "ACCESS_POLICY", + "OS_INVENTORY" ], "enumDescriptions": [ "Unspecified content type.", "Resource metadata.", "The actual IAM policy set on a resource.", "The Cloud Organization Policy set on an asset.", - "The Cloud Access context manager Policy set on an asset." + "The Cloud Access context manager Policy set on an asset.", + "The runtime OS Inventory information." ], "type": "string" }, @@ -801,6 +980,161 @@ }, "type": "object" }, + "GoogleCloudAssetV1Access": { + "description": "An IAM role or permission under analysis.", + "id": "GoogleCloudAssetV1Access", + "properties": { + "analysisState": { + "$ref": "IamPolicyAnalysisState", + "description": "The analysis state of this access." + }, + "permission": { + "description": "The permission.", + "type": "string" + }, + "role": { + "description": "The role.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAssetV1AccessControlList": { + "description": "An access control list, derived from the above IAM policy binding, which contains a set of resources and accesses. May include one item from each set to compose an access control entry. NOTICE that there could be multiple access control lists for one IAM policy binding. The access control lists are created based on resource and access combinations. For example, assume we have the following cases in one IAM policy binding: - Permission P1 and P2 apply to resource R1 and R2; - Permission P3 applies to resource R2 and R3; This will result in the following access control lists: - AccessControlList 1: [R1, R2], [P1, P2] - AccessControlList 2: [R2, R3], [P3]", + "id": "GoogleCloudAssetV1AccessControlList", + "properties": { + "accesses": { + "description": "The accesses that match one of the following conditions: - The access_selector, if it is specified in request; - Otherwise, access specifiers reachable from the policy binding's role.", + "items": { + "$ref": "GoogleCloudAssetV1Access" + }, + "type": "array" + }, + "resourceEdges": { + "description": "Resource edges of the graph starting from the policy attached resource to any descendant resources. The Edge.source_node contains the full resource name of a parent resource and Edge.target_node contains the full resource name of a child resource. This field is present only if the output_resource_edges option is enabled in request.", + "items": { + "$ref": "GoogleCloudAssetV1Edge" + }, + "type": "array" + }, + "resources": { + "description": "The resources that match one of the following conditions: - The resource_selector, if it is specified in request; - Otherwise, resources reachable from the policy attached resource.", + "items": { + "$ref": "GoogleCloudAssetV1Resource" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAssetV1BigQueryDestination": { + "description": "A BigQuery destination.", + "id": "GoogleCloudAssetV1BigQueryDestination", + "properties": { + "dataset": { + "description": "Required. The BigQuery dataset in format \"projects/projectId/datasets/datasetId\", to which the analysis results should be exported. If this dataset does not exist, the export call will return an INVALID_ARGUMENT error.", + "type": "string" + }, + "partitionKey": { + "description": "The partition key for BigQuery partitioned table.", + "enum": [ + "PARTITION_KEY_UNSPECIFIED", + "REQUEST_TIME" + ], + "enumDescriptions": [ + "Unspecified partition key. Tables won't be partitioned using this option.", + "The time when the request is received. If specified as partition key, the result table(s) is partitoned by the RequestTime column, an additional timestamp column representing when the request was received." + ], + "type": "string" + }, + "tablePrefix": { + "description": "Required. The prefix of the BigQuery tables to which the analysis results will be written. Tables will be created based on this table_prefix if not exist: * _analysis table will contain export operation's metadata. * _analysis_result will contain all the IamPolicyAnalysisResult. When [partition_key] is specified, both tables will be partitioned based on the [partition_key].", + "type": "string" + }, + "writeDisposition": { + "description": "Optional. Specifies the action that occurs if the destination table or partition already exists. The following values are supported: * WRITE_TRUNCATE: If the table or partition already exists, BigQuery overwrites the entire table or all the partitions data. * WRITE_APPEND: If the table or partition already exists, BigQuery appends the data to the table or the latest partition. * WRITE_EMPTY: If the table already exists and contains data, an error is returned. The default value is WRITE_APPEND. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Details are at https://cloud.google.com/bigquery/docs/loading-data-local#appending_to_or_overwriting_a_table_using_a_local_file.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAssetV1Edge": { + "description": "A directional edge.", + "id": "GoogleCloudAssetV1Edge", + "properties": { + "sourceNode": { + "description": "The source node of the edge. For example, it could be a full resource name for a resource node or an email of an identity.", + "type": "string" + }, + "targetNode": { + "description": "The target node of the edge. For example, it could be a full resource name for a resource node or an email of an identity.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAssetV1GcsDestination": { + "description": "A Cloud Storage location.", + "id": "GoogleCloudAssetV1GcsDestination", + "properties": { + "uri": { + "description": "Required. The uri of the Cloud Storage object. It's the same uri that is used by gsutil. For example: \"gs://bucket_name/object_name\". See [Quickstart: Using the gsutil tool] (https://cloud.google.com/storage/docs/quickstart-gsutil) for examples.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAssetV1Identity": { + "description": "An identity under analysis.", + "id": "GoogleCloudAssetV1Identity", + "properties": { + "analysisState": { + "$ref": "IamPolicyAnalysisState", + "description": "The analysis state of this identity." + }, + "name": { + "description": "The identity name in any form of members appear in [IAM policy binding](https://cloud.google.com/iam/reference/rest/v1/Binding), such as: - user:foo@google.com - group:group1@google.com - serviceAccount:s1@prj1.iam.gserviceaccount.com - projectOwner:some_project_id - domain:google.com - allUsers - etc.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAssetV1IdentityList": { + "description": "The identities and group edges.", + "id": "GoogleCloudAssetV1IdentityList", + "properties": { + "groupEdges": { + "description": "Group identity edges of the graph starting from the binding's group members to any node of the identities. The Edge.source_node contains a group, such as `group:parent@google.com`. The Edge.target_node contains a member of the group, such as `group:child@google.com` or `user:foo@google.com`. This field is present only if the output_group_edges option is enabled in request.", + "items": { + "$ref": "GoogleCloudAssetV1Edge" + }, + "type": "array" + }, + "identities": { + "description": "Only the identities that match one of the following conditions will be presented: - The identity_selector, if it is specified in request; - Otherwise, identities reachable from the policy binding's members.", + "items": { + "$ref": "GoogleCloudAssetV1Identity" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAssetV1Resource": { + "description": "A Google Cloud resource under analysis.", + "id": "GoogleCloudAssetV1Resource", + "properties": { + "analysisState": { + "$ref": "IamPolicyAnalysisState", + "description": "The analysis state of this resource." + }, + "fullResourceName": { + "description": "The [full resource name](https://cloud.google.com/asset-inventory/docs/resource-name-format)", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudOrgpolicyV1BooleanPolicy": { "description": "Used in `policy_type` to specify how `boolean_policy` will behave at this resource.", "id": "GoogleCloudOrgpolicyV1BooleanPolicy", @@ -1223,6 +1557,160 @@ }, "type": "object" }, + "IamPolicyAnalysis": { + "description": "An analysis message to group the query and results.", + "id": "IamPolicyAnalysis", + "properties": { + "analysisQuery": { + "$ref": "IamPolicyAnalysisQuery", + "description": "The analysis query." + }, + "analysisResults": { + "description": "A list of IamPolicyAnalysisResult that matches the analysis query, or empty if no result is found.", + "items": { + "$ref": "IamPolicyAnalysisResult" + }, + "type": "array" + }, + "fullyExplored": { + "description": "Represents whether all entries in the analysis_results have been fully explored to answer the query.", + "type": "boolean" + }, + "nonCriticalErrors": { + "description": "A list of non-critical errors happened during the query handling.", + "items": { + "$ref": "IamPolicyAnalysisState" + }, + "type": "array" + } + }, + "type": "object" + }, + "IamPolicyAnalysisOutputConfig": { + "description": "Output configuration for export IAM policy analysis destination.", + "id": "IamPolicyAnalysisOutputConfig", + "properties": { + "bigqueryDestination": { + "$ref": "GoogleCloudAssetV1BigQueryDestination", + "description": "Destination on BigQuery." + }, + "gcsDestination": { + "$ref": "GoogleCloudAssetV1GcsDestination", + "description": "Destination on Cloud Storage." + } + }, + "type": "object" + }, + "IamPolicyAnalysisQuery": { + "description": "## LINT.IfChange Keep in sync with ## logs/proto/cloud_asset_inventory/iam_policy_analyzer_log.proto IAM policy analysis query message.", + "id": "IamPolicyAnalysisQuery", + "properties": { + "accessSelector": { + "$ref": "AccessSelector", + "description": "Optional. Specifies roles or permissions for analysis. This is optional." + }, + "identitySelector": { + "$ref": "IdentitySelector", + "description": "Optional. Specifies an identity for analysis." + }, + "options": { + "$ref": "Options", + "description": "Optional. The query options." + }, + "resourceSelector": { + "$ref": "ResourceSelector", + "description": "Optional. Specifies a resource for analysis." + }, + "scope": { + "description": "Required. The relative name of the root asset. Only resources and IAM policies within the scope will be analyzed. This can only be an organization number (such as \"organizations/123\"), a folder number (such as \"folders/123\"), a project ID (such as \"projects/my-project-id\"), or a project number (such as \"projects/12345\"). To know how to get organization id, visit [here ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id). To know how to get folder or project id, visit [here ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).", + "type": "string" + } + }, + "type": "object" + }, + "IamPolicyAnalysisResult": { + "description": "IAM Policy analysis result, consisting of one IAM policy binding and derived access control lists.", + "id": "IamPolicyAnalysisResult", + "properties": { + "accessControlLists": { + "description": "The access control lists derived from the iam_binding that match or potentially match resource and access selectors specified in the request.", + "items": { + "$ref": "GoogleCloudAssetV1AccessControlList" + }, + "type": "array" + }, + "attachedResourceFullName": { + "description": "The [full resource name](https://cloud.google.com/asset-inventory/docs/resource-name-format) of the resource to which the iam_binding policy attaches.", + "type": "string" + }, + "fullyExplored": { + "description": "Represents whether all analyses on the iam_binding have successfully finished.", + "type": "boolean" + }, + "iamBinding": { + "$ref": "Binding", + "description": "The Cloud IAM policy binding under analysis." + }, + "identityList": { + "$ref": "GoogleCloudAssetV1IdentityList", + "description": "The identity list derived from members of the iam_binding that match or potentially match identity selector specified in the request." + } + }, + "type": "object" + }, + "IamPolicyAnalysisState": { + "description": "Represents the detailed state of an entity under analysis, such as a resource, an identity or an access.", + "id": "IamPolicyAnalysisState", + "properties": { + "cause": { + "description": "The human-readable description of the cause of failure.", + "type": "string" + }, + "code": { + "description": "The Google standard error code that best describes the state. For example: - OK means the analysis on this entity has been successfully finished; - PERMISSION_DENIED means an access denied error is encountered; - DEADLINE_EXCEEDED means the analysis on this entity hasn't been started in time;", + "enum": [ + "OK", + "CANCELLED", + "UNKNOWN", + "INVALID_ARGUMENT", + "DEADLINE_EXCEEDED", + "NOT_FOUND", + "ALREADY_EXISTS", + "PERMISSION_DENIED", + "UNAUTHENTICATED", + "RESOURCE_EXHAUSTED", + "FAILED_PRECONDITION", + "ABORTED", + "OUT_OF_RANGE", + "UNIMPLEMENTED", + "INTERNAL", + "UNAVAILABLE", + "DATA_LOSS" + ], + "enumDescriptions": [ + "Not an error; returned on success HTTP Mapping: 200 OK", + "The operation was cancelled, typically by the caller. HTTP Mapping: 499 Client Closed Request", + "Unknown error. For example, this error may be returned when a `Status` value received from another address space belongs to an error space that is not known in this address space. Also errors raised by APIs that do not return enough error information may be converted to this error. HTTP Mapping: 500 Internal Server Error", + "The client specified an invalid argument. Note that this differs from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments that are problematic regardless of the state of the system (e.g., a malformed file name). HTTP Mapping: 400 Bad Request", + "The deadline expired before the operation could complete. For operations that change the state of the system, this error may be returned even if the operation has completed successfully. For example, a successful response from a server could have been delayed long enough for the deadline to expire. HTTP Mapping: 504 Gateway Timeout", + "Some requested entity (e.g., file or directory) was not found. Note to server developers: if a request is denied for an entire class of users, such as gradual feature rollout or undocumented allowlist, `NOT_FOUND` may be used. If a request is denied for some users within a class of users, such as user-based access control, `PERMISSION_DENIED` must be used. HTTP Mapping: 404 Not Found", + "The entity that a client attempted to create (e.g., file or directory) already exists. HTTP Mapping: 409 Conflict", + "The caller does not have permission to execute the specified operation. `PERMISSION_DENIED` must not be used for rejections caused by exhausting some resource (use `RESOURCE_EXHAUSTED` instead for those errors). `PERMISSION_DENIED` must not be used if the caller can not be identified (use `UNAUTHENTICATED` instead for those errors). This error code does not imply the request is valid or the requested entity exists or satisfies other pre-conditions. HTTP Mapping: 403 Forbidden", + "The request does not have valid authentication credentials for the operation. HTTP Mapping: 401 Unauthorized", + "Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space. HTTP Mapping: 429 Too Many Requests", + "The operation was rejected because the system is not in a state required for the operation's execution. For example, the directory to be deleted is non-empty, an rmdir operation is applied to a non-directory, etc. Service implementors can use the following guidelines to decide between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: (a) Use `UNAVAILABLE` if the client can retry just the failing call. (b) Use `ABORTED` if the client should retry at a higher level (e.g., when a client-specified test-and-set fails, indicating the client should restart a read-modify-write sequence). (c) Use `FAILED_PRECONDITION` if the client should not retry until the system state has been explicitly fixed. E.g., if an \"rmdir\" fails because the directory is non-empty, `FAILED_PRECONDITION` should be returned since the client should not retry unless the files are deleted from the directory. HTTP Mapping: 400 Bad Request", + "The operation was aborted, typically due to a concurrency issue such as a sequencer check failure or transaction abort. See the guidelines above for deciding between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping: 409 Conflict", + "The operation was attempted past the valid range. E.g., seeking or reading past end-of-file. Unlike `INVALID_ARGUMENT`, this error indicates a problem that may be fixed if the system state changes. For example, a 32-bit file system will generate `INVALID_ARGUMENT` if asked to read at an offset that is not in the range [0,2^32-1], but it will generate `OUT_OF_RANGE` if asked to read from an offset past the current file size. There is a fair bit of overlap between `FAILED_PRECONDITION` and `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific error) when it applies so that callers who are iterating through a space can easily look for an `OUT_OF_RANGE` error to detect when they are done. HTTP Mapping: 400 Bad Request", + "The operation is not implemented or is not supported/enabled in this service. HTTP Mapping: 501 Not Implemented", + "Internal errors. This means that some invariants expected by the underlying system have been broken. This error code is reserved for serious errors. HTTP Mapping: 500 Internal Server Error", + "The service is currently unavailable. This is most likely a transient condition, which can be corrected by retrying with a backoff. Note that it is not always safe to retry non-idempotent operations. See the guidelines above for deciding between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping: 503 Service Unavailable", + "Unrecoverable data loss or corruption. HTTP Mapping: 500 Internal Server Error" + ], + "type": "string" + } + }, + "type": "object" + }, "IamPolicySearchResult": { "description": "A result of IAM Policy search, containing information of an IAM policy.", "id": "IamPolicySearchResult", @@ -1246,6 +1734,90 @@ }, "type": "object" }, + "IdentitySelector": { + "description": "Specifies an identity for which to determine resource access, based on roles assigned either directly to them or to the groups they belong to, directly or indirectly.", + "id": "IdentitySelector", + "properties": { + "identity": { + "description": "Required. The identity appear in the form of members in [IAM policy binding](https://cloud.google.com/iam/reference/rest/v1/Binding). The examples of supported forms are: \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\". Notice that wildcard characters (such as * and ?) are not supported. You must give a specific identity.", + "type": "string" + } + }, + "type": "object" + }, + "Inventory": { + "description": "The inventory details of a VM.", + "id": "Inventory", + "properties": { + "items": { + "additionalProperties": { + "$ref": "Item" + }, + "description": "Inventory items related to the VM keyed by an opaque unique identifier for each inventory item. The identifier is unique to each distinct and addressable inventory item and will change, when there is a new package version.", + "type": "object" + }, + "osInfo": { + "$ref": "OsInfo", + "description": "Base level operating system information for the VM." + } + }, + "type": "object" + }, + "Item": { + "description": "A single piece of inventory on a VM.", + "id": "Item", + "properties": { + "availablePackage": { + "$ref": "SoftwarePackage", + "description": "Software package available to be installed on the VM instance." + }, + "createTime": { + "description": "When this inventory item was first detected.", + "format": "google-datetime", + "type": "string" + }, + "id": { + "description": "Identifier for this item, unique across items for this VM.", + "type": "string" + }, + "installedPackage": { + "$ref": "SoftwarePackage", + "description": "Software package present on the VM instance." + }, + "originType": { + "description": "The origin of this inventory item.", + "enum": [ + "ORIGIN_TYPE_UNSPECIFIED", + "INVENTORY_REPORT" + ], + "enumDescriptions": [ + "Invalid. An origin type must be specified.", + "This inventory item was discovered as the result of the agent reporting inventory via the reporting API." + ], + "type": "string" + }, + "type": { + "description": "The specific type of inventory, correlating to its specific details.", + "enum": [ + "TYPE_UNSPECIFIED", + "INSTALLED_PACKAGE", + "AVAILABLE_PACKAGE" + ], + "enumDescriptions": [ + "Invalid. An type must be specified.", + "This represents a package that is installed on the VM.", + "This represents an update that is available for a package." + ], + "type": "string" + }, + "updateTime": { + "description": "When this inventory item was last modified.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "ListFeedsResponse": { "id": "ListFeedsResponse", "properties": { @@ -1294,6 +1866,76 @@ }, "type": "object" }, + "Options": { + "description": "Contains query options.", + "id": "Options", + "properties": { + "analyzeServiceAccountImpersonation": { + "description": "Optional. If true, the response will include access analysis from identities to resources via service account impersonation. This is a very expensive operation, because many derived queries will be executed. We highly recommend you use AssetService.AnalyzeIamPolicyLongrunning rpc instead. For example, if the request analyzes for which resources user A has permission P, and there's an IAM policy states user A has iam.serviceAccounts.getAccessToken permission to a service account SA, and there's another IAM policy states service account SA has permission P to a GCP folder F, then user A potentially has access to the GCP folder F. And those advanced analysis results will be included in AnalyzeIamPolicyResponse.service_account_impersonation_analysis. Another example, if the request analyzes for who has permission P to a GCP folder F, and there's an IAM policy states user A has iam.serviceAccounts.actAs permission to a service account SA, and there's another IAM policy states service account SA has permission P to the GCP folder F, then user A potentially has access to the GCP folder F. And those advanced analysis results will be included in AnalyzeIamPolicyResponse.service_account_impersonation_analysis. Default is false.", + "type": "boolean" + }, + "expandGroups": { + "description": "Optional. If true, the identities section of the result will expand any Google groups appearing in an IAM policy binding. If IamPolicyAnalysisQuery.identity_selector is specified, the identity in the result will be determined by the selector, and this flag is not allowed to set. Default is false.", + "type": "boolean" + }, + "expandResources": { + "description": "Optional. If true and IamPolicyAnalysisQuery.resource_selector is not specified, the resource section of the result will expand any resource attached to an IAM policy to include resources lower in the resource hierarchy. For example, if the request analyzes for which resources user A has permission P, and the results include an IAM policy with P on a GCP folder, the results will also include resources in that folder with permission P. If true and IamPolicyAnalysisQuery.resource_selector is specified, the resource section of the result will expand the specified resource to include resources lower in the resource hierarchy. Only project or lower resources are supported. Folder and organization resource cannot be used together with this option. For example, if the request analyzes for which users have permission P on a GCP project with this option enabled, the results will include all users who have permission P on that project or any lower resource. Default is false.", + "type": "boolean" + }, + "expandRoles": { + "description": "Optional. If true, the access section of result will expand any roles appearing in IAM policy bindings to include their permissions. If IamPolicyAnalysisQuery.access_selector is specified, the access section of the result will be determined by the selector, and this flag is not allowed to set. Default is false.", + "type": "boolean" + }, + "outputGroupEdges": { + "description": "Optional. If true, the result will output group identity edges, starting from the binding's group members, to any expanded identities. Default is false.", + "type": "boolean" + }, + "outputResourceEdges": { + "description": "Optional. If true, the result will output resource edges, starting from the policy attached resource, to any expanded resources. Default is false.", + "type": "boolean" + } + }, + "type": "object" + }, + "OsInfo": { + "description": "Operating system information for the VM.", + "id": "OsInfo", + "properties": { + "architecture": { + "description": "The system architecture of the operating system.", + "type": "string" + }, + "hostname": { + "description": "The VM hostname.", + "type": "string" + }, + "kernelRelease": { + "description": "The kernel release of the operating system.", + "type": "string" + }, + "kernelVersion": { + "description": "The kernel version of the operating system.", + "type": "string" + }, + "longName": { + "description": "The operating system long name. For example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019 Datacenter'.", + "type": "string" + }, + "osconfigAgentVersion": { + "description": "The current version of the OS Config agent running on the VM.", + "type": "string" + }, + "shortName": { + "description": "The operating system short name. For example, 'windows' or 'debian'.", + "type": "string" + }, + "version": { + "description": "The version of the operating system.", + "type": "string" + } + }, + "type": "object" + }, "OutputConfig": { "description": "Output configuration for export assets destination.", "id": "OutputConfig", @@ -1478,6 +2120,17 @@ }, "type": "object" }, + "ResourceSelector": { + "description": "Specifies the resource to analyze for access policies, which may be set directly on the resource, or on ancestors such as organizations, folders or projects.", + "id": "ResourceSelector", + "properties": { + "fullResourceName": { + "description": "Required. The [full resource name] (https://cloud.google.com/asset-inventory/docs/resource-name-format) of a resource of [supported resource types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#analyzable_asset_types).", + "type": "string" + } + }, + "type": "object" + }, "SearchAllIamPoliciesResponse": { "description": "Search all IAM policies response.", "id": "SearchAllIamPoliciesResponse", @@ -1514,6 +2167,45 @@ }, "type": "object" }, + "SoftwarePackage": { + "description": "Software package information of the operating system.", + "id": "SoftwarePackage", + "properties": { + "aptPackage": { + "$ref": "VersionedPackage", + "description": "Details of an APT package. For details about the apt package manager, see https://wiki.debian.org/Apt." + }, + "cosPackage": { + "$ref": "VersionedPackage", + "description": "Details of a COS package." + }, + "googetPackage": { + "$ref": "VersionedPackage", + "description": "Details of a Googet package. For details about the googet package manager, see https://github.com/google/googet." + }, + "qfePackage": { + "$ref": "WindowsQuickFixEngineeringPackage", + "description": "Details of a Windows Quick Fix engineering package. See https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering for info in Windows Quick Fix Engineering." + }, + "wuaPackage": { + "$ref": "WindowsUpdatePackage", + "description": "Details of a Windows Update package. See https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for information about Windows Update." + }, + "yumPackage": { + "$ref": "VersionedPackage", + "description": "Yum package info. For details about the yum package manager, see https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum." + }, + "zypperPackage": { + "$ref": "VersionedPackage", + "description": "Details of a Zypper package. For details about the Zypper package manager, see https://en.opensuse.org/SDB:Zypper_manual." + }, + "zypperPatch": { + "$ref": "ZypperPatch", + "description": "Details of a Zypper patch. For details about the Zypper package manager, see https://en.opensuse.org/SDB:Zypper_manual." + } + }, + "type": "object" + }, "Status": { "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "id": "Status", @@ -1614,6 +2306,141 @@ } }, "type": "object" + }, + "VersionedPackage": { + "description": "Information related to the a standard versioned package. This includes package info for APT, Yum, Zypper, and Googet package managers.", + "id": "VersionedPackage", + "properties": { + "architecture": { + "description": "The system architecture this package is intended for.", + "type": "string" + }, + "packageName": { + "description": "The name of the package.", + "type": "string" + }, + "version": { + "description": "The version of the package.", + "type": "string" + } + }, + "type": "object" + }, + "WindowsQuickFixEngineeringPackage": { + "description": "Information related to a Quick Fix Engineering package. Fields are taken from Windows QuickFixEngineering Interface and match the source names: https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering", + "id": "WindowsQuickFixEngineeringPackage", + "properties": { + "caption": { + "description": "A short textual description of the QFE update.", + "type": "string" + }, + "description": { + "description": "A textual description of the QFE update.", + "type": "string" + }, + "hotFixId": { + "description": "Unique identifier associated with a particular QFE update.", + "type": "string" + }, + "installTime": { + "description": "Date that the QFE update was installed. Mapped from installed_on field.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "WindowsUpdateCategory": { + "description": "Categories specified by the Windows Update.", + "id": "WindowsUpdateCategory", + "properties": { + "id": { + "description": "The identifier of the windows update category.", + "type": "string" + }, + "name": { + "description": "The name of the windows update category.", + "type": "string" + } + }, + "type": "object" + }, + "WindowsUpdatePackage": { + "description": "Details related to a Windows Update package. Field data and names are taken from Windows Update API IUpdate Interface: https://docs.microsoft.com/en-us/windows/win32/api/_wua/ Descriptive fields like title, and description are localized based on the locale of the VM being updated.", + "id": "WindowsUpdatePackage", + "properties": { + "categories": { + "description": "The categories that are associated with this update package.", + "items": { + "$ref": "WindowsUpdateCategory" + }, + "type": "array" + }, + "description": { + "description": "The localized description of the update package.", + "type": "string" + }, + "kbArticleIds": { + "description": "A collection of Microsoft Knowledge Base article IDs that are associated with the update package.", + "items": { + "type": "string" + }, + "type": "array" + }, + "lastDeploymentChangeTime": { + "description": "The last published date of the update, in (UTC) date and time.", + "format": "google-datetime", + "type": "string" + }, + "moreInfoUrls": { + "description": "A collection of URLs that provide more information about the update package.", + "items": { + "type": "string" + }, + "type": "array" + }, + "revisionNumber": { + "description": "The revision number of this update package.", + "format": "int32", + "type": "integer" + }, + "supportUrl": { + "description": "A hyperlink to the language-specific support information for the update.", + "type": "string" + }, + "title": { + "description": "The localized title of the update package.", + "type": "string" + }, + "updateId": { + "description": "Gets the identifier of an update package. Stays the same across revisions.", + "type": "string" + } + }, + "type": "object" + }, + "ZypperPatch": { + "description": "Details related to a Zypper Patch.", + "id": "ZypperPatch", + "properties": { + "category": { + "description": "The category of the patch.", + "type": "string" + }, + "patchName": { + "description": "The name of the patch.", + "type": "string" + }, + "severity": { + "description": "The severity specified for this patch", + "type": "string" + }, + "summary": { + "description": "Any summary information provided about this patch.", + "type": "string" + } + }, + "type": "object" } }, "servicePath": "", diff --git a/cloudasset/v1/cloudasset-gen.go b/cloudasset/v1/cloudasset-gen.go index c613ff2847e..793ff5e0f8d 100644 --- a/cloudasset/v1/cloudasset-gen.go +++ b/cloudasset/v1/cloudasset-gen.go @@ -168,6 +168,118 @@ type V1Service struct { s *Service } +// AccessSelector: Specifies roles and/or permissions to analyze, to +// determine both the identities possessing them and the resources they +// control. If multiple values are specified, results will include roles +// or permissions matching any of them. The total number of roles and +// permissions should be equal or less than 10. +type AccessSelector struct { + // Permissions: Optional. The permissions to appear in result. + Permissions []string `json:"permissions,omitempty"` + + // Roles: Optional. The roles to appear in result. + Roles []string `json:"roles,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Permissions") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Permissions") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AccessSelector) MarshalJSON() ([]byte, error) { + type NoMethod AccessSelector + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AnalyzeIamPolicyLongrunningRequest: A request message for +// AssetService.AnalyzeIamPolicyLongrunning. +type AnalyzeIamPolicyLongrunningRequest struct { + // AnalysisQuery: Required. The request query. + AnalysisQuery *IamPolicyAnalysisQuery `json:"analysisQuery,omitempty"` + + // OutputConfig: Required. Output configuration indicating where the + // results will be output to. + OutputConfig *IamPolicyAnalysisOutputConfig `json:"outputConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnalysisQuery") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnalysisQuery") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AnalyzeIamPolicyLongrunningRequest) MarshalJSON() ([]byte, error) { + type NoMethod AnalyzeIamPolicyLongrunningRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AnalyzeIamPolicyResponse: A response message for +// AssetService.AnalyzeIamPolicy. +type AnalyzeIamPolicyResponse struct { + // FullyExplored: Represents whether all entries in the main_analysis + // and service_account_impersonation_analysis have been fully explored + // to answer the query in the request. + FullyExplored bool `json:"fullyExplored,omitempty"` + + // MainAnalysis: The main analysis that matches the original request. + MainAnalysis *IamPolicyAnalysis `json:"mainAnalysis,omitempty"` + + // ServiceAccountImpersonationAnalysis: The service account + // impersonation analysis if + // AnalyzeIamPolicyRequest.analyze_service_account_impersonation is + // enabled. + ServiceAccountImpersonationAnalysis []*IamPolicyAnalysis `json:"serviceAccountImpersonationAnalysis,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "FullyExplored") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FullyExplored") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AnalyzeIamPolicyResponse) MarshalJSON() ([]byte, error) { + type NoMethod AnalyzeIamPolicyResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Asset: An asset in Google Cloud. An asset can be any resource in the // Google Cloud [resource // hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platfo @@ -228,6 +340,12 @@ type Asset struct { // resource. OrgPolicy []*GoogleCloudOrgpolicyV1Policy `json:"orgPolicy,omitempty"` + // OsInventory: A representation of runtime OS Inventory information. + // See [this + // topic](https://cloud.google.com/compute/docs/instances/os-inventory-ma + // nagement) for more information. + OsInventory *Inventory `json:"osInventory,omitempty"` + // Resource: A representation of the resource. Resource *Resource `json:"resource,omitempty"` @@ -664,6 +782,7 @@ type ExportAssetsRequest struct { // "ORG_POLICY" - The Cloud Organization Policy set on an asset. // "ACCESS_POLICY" - The Cloud Access context manager Policy set on an // asset. + // "OS_INVENTORY" - The runtime OS Inventory information. ContentType string `json:"contentType,omitempty"` // OutputConfig: Required. Output configuration indicating where the @@ -807,6 +926,7 @@ type Feed struct { // "ORG_POLICY" - The Cloud Organization Policy set on an asset. // "ACCESS_POLICY" - The Cloud Access context manager Policy set on an // asset. + // "OS_INVENTORY" - The runtime OS Inventory information. ContentType string `json:"contentType,omitempty"` // FeedOutputConfig: Required. Feed output configuration defining where @@ -920,6 +1040,328 @@ func (s *GcsDestination) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAssetV1Access: An IAM role or permission under analysis. +type GoogleCloudAssetV1Access struct { + // AnalysisState: The analysis state of this access. + AnalysisState *IamPolicyAnalysisState `json:"analysisState,omitempty"` + + // Permission: The permission. + Permission string `json:"permission,omitempty"` + + // Role: The role. + Role string `json:"role,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnalysisState") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnalysisState") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAssetV1Access) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAssetV1Access + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAssetV1AccessControlList: An access control list, derived +// from the above IAM policy binding, which contains a set of resources +// and accesses. May include one item from each set to compose an access +// control entry. NOTICE that there could be multiple access control +// lists for one IAM policy binding. The access control lists are +// created based on resource and access combinations. For example, +// assume we have the following cases in one IAM policy binding: - +// Permission P1 and P2 apply to resource R1 and R2; - Permission P3 +// applies to resource R2 and R3; This will result in the following +// access control lists: - AccessControlList 1: [R1, R2], [P1, P2] - +// AccessControlList 2: [R2, R3], [P3] +type GoogleCloudAssetV1AccessControlList struct { + // Accesses: The accesses that match one of the following conditions: - + // The access_selector, if it is specified in request; - Otherwise, + // access specifiers reachable from the policy binding's role. + Accesses []*GoogleCloudAssetV1Access `json:"accesses,omitempty"` + + // ResourceEdges: Resource edges of the graph starting from the policy + // attached resource to any descendant resources. The Edge.source_node + // contains the full resource name of a parent resource and + // Edge.target_node contains the full resource name of a child resource. + // This field is present only if the output_resource_edges option is + // enabled in request. + ResourceEdges []*GoogleCloudAssetV1Edge `json:"resourceEdges,omitempty"` + + // Resources: The resources that match one of the following conditions: + // - The resource_selector, if it is specified in request; - Otherwise, + // resources reachable from the policy attached resource. + Resources []*GoogleCloudAssetV1Resource `json:"resources,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Accesses") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Accesses") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAssetV1AccessControlList) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAssetV1AccessControlList + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAssetV1BigQueryDestination: A BigQuery destination. +type GoogleCloudAssetV1BigQueryDestination struct { + // Dataset: Required. The BigQuery dataset in format + // "projects/projectId/datasets/datasetId", to which the analysis + // results should be exported. If this dataset does not exist, the + // export call will return an INVALID_ARGUMENT error. + Dataset string `json:"dataset,omitempty"` + + // PartitionKey: The partition key for BigQuery partitioned table. + // + // Possible values: + // "PARTITION_KEY_UNSPECIFIED" - Unspecified partition key. Tables + // won't be partitioned using this option. + // "REQUEST_TIME" - The time when the request is received. If + // specified as partition key, the result table(s) is partitoned by the + // RequestTime column, an additional timestamp column representing when + // the request was received. + PartitionKey string `json:"partitionKey,omitempty"` + + // TablePrefix: Required. The prefix of the BigQuery tables to which the + // analysis results will be written. Tables will be created based on + // this table_prefix if not exist: * _analysis table will contain export + // operation's metadata. * _analysis_result will contain all the + // IamPolicyAnalysisResult. When [partition_key] is specified, both + // tables will be partitioned based on the [partition_key]. + TablePrefix string `json:"tablePrefix,omitempty"` + + // WriteDisposition: Optional. Specifies the action that occurs if the + // destination table or partition already exists. The following values + // are supported: * WRITE_TRUNCATE: If the table or partition already + // exists, BigQuery overwrites the entire table or all the partitions + // data. * WRITE_APPEND: If the table or partition already exists, + // BigQuery appends the data to the table or the latest partition. * + // WRITE_EMPTY: If the table already exists and contains data, an error + // is returned. The default value is WRITE_APPEND. Each action is atomic + // and only occurs if BigQuery is able to complete the job successfully. + // Details are at + // https://cloud.google.com/bigquery/docs/loading-data-local#appending_to_or_overwriting_a_table_using_a_local_file. + WriteDisposition string `json:"writeDisposition,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Dataset") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Dataset") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAssetV1BigQueryDestination) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAssetV1BigQueryDestination + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAssetV1Edge: A directional edge. +type GoogleCloudAssetV1Edge struct { + // SourceNode: The source node of the edge. For example, it could be a + // full resource name for a resource node or an email of an identity. + SourceNode string `json:"sourceNode,omitempty"` + + // TargetNode: The target node of the edge. For example, it could be a + // full resource name for a resource node or an email of an identity. + TargetNode string `json:"targetNode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "SourceNode") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "SourceNode") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAssetV1Edge) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAssetV1Edge + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAssetV1GcsDestination: A Cloud Storage location. +type GoogleCloudAssetV1GcsDestination struct { + // Uri: Required. The uri of the Cloud Storage object. It's the same uri + // that is used by gsutil. For example: "gs://bucket_name/object_name". + // See [Quickstart: Using the gsutil tool] + // (https://cloud.google.com/storage/docs/quickstart-gsutil) for + // examples. + Uri string `json:"uri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Uri") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Uri") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAssetV1GcsDestination) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAssetV1GcsDestination + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAssetV1Identity: An identity under analysis. +type GoogleCloudAssetV1Identity struct { + // AnalysisState: The analysis state of this identity. + AnalysisState *IamPolicyAnalysisState `json:"analysisState,omitempty"` + + // Name: The identity name in any form of members appear in [IAM policy + // binding](https://cloud.google.com/iam/reference/rest/v1/Binding), + // such as: - user:foo@google.com - group:group1@google.com - + // serviceAccount:s1@prj1.iam.gserviceaccount.com - + // projectOwner:some_project_id - domain:google.com - allUsers - etc. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnalysisState") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnalysisState") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAssetV1Identity) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAssetV1Identity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAssetV1IdentityList: The identities and group edges. +type GoogleCloudAssetV1IdentityList struct { + // GroupEdges: Group identity edges of the graph starting from the + // binding's group members to any node of the identities. The + // Edge.source_node contains a group, such as `group:parent@google.com`. + // The Edge.target_node contains a member of the group, such as + // `group:child@google.com` or `user:foo@google.com`. This field is + // present only if the output_group_edges option is enabled in request. + GroupEdges []*GoogleCloudAssetV1Edge `json:"groupEdges,omitempty"` + + // Identities: Only the identities that match one of the following + // conditions will be presented: - The identity_selector, if it is + // specified in request; - Otherwise, identities reachable from the + // policy binding's members. + Identities []*GoogleCloudAssetV1Identity `json:"identities,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GroupEdges") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GroupEdges") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAssetV1IdentityList) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAssetV1IdentityList + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAssetV1Resource: A Google Cloud resource under analysis. +type GoogleCloudAssetV1Resource struct { + // AnalysisState: The analysis state of this resource. + AnalysisState *IamPolicyAnalysisState `json:"analysisState,omitempty"` + + // FullResourceName: The [full resource + // name](https://cloud.google.com/asset-inventory/docs/resource-name-form + // at) + FullResourceName string `json:"fullResourceName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnalysisState") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnalysisState") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAssetV1Resource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAssetV1Resource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudOrgpolicyV1BooleanPolicy: Used in `policy_type` to specify // how `boolean_policy` will behave at this resource. type GoogleCloudOrgpolicyV1BooleanPolicy struct { @@ -1737,8 +2179,310 @@ func (s *GoogleIdentityAccesscontextmanagerV1VpcAccessibleServices) MarshalJSON( return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// IamPolicySearchResult: A result of IAM Policy search, containing -// information of an IAM policy. +// IamPolicyAnalysis: An analysis message to group the query and +// results. +type IamPolicyAnalysis struct { + // AnalysisQuery: The analysis query. + AnalysisQuery *IamPolicyAnalysisQuery `json:"analysisQuery,omitempty"` + + // AnalysisResults: A list of IamPolicyAnalysisResult that matches the + // analysis query, or empty if no result is found. + AnalysisResults []*IamPolicyAnalysisResult `json:"analysisResults,omitempty"` + + // FullyExplored: Represents whether all entries in the analysis_results + // have been fully explored to answer the query. + FullyExplored bool `json:"fullyExplored,omitempty"` + + // NonCriticalErrors: A list of non-critical errors happened during the + // query handling. + NonCriticalErrors []*IamPolicyAnalysisState `json:"nonCriticalErrors,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnalysisQuery") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnalysisQuery") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *IamPolicyAnalysis) MarshalJSON() ([]byte, error) { + type NoMethod IamPolicyAnalysis + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// IamPolicyAnalysisOutputConfig: Output configuration for export IAM +// policy analysis destination. +type IamPolicyAnalysisOutputConfig struct { + // BigqueryDestination: Destination on BigQuery. + BigqueryDestination *GoogleCloudAssetV1BigQueryDestination `json:"bigqueryDestination,omitempty"` + + // GcsDestination: Destination on Cloud Storage. + GcsDestination *GoogleCloudAssetV1GcsDestination `json:"gcsDestination,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BigqueryDestination") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BigqueryDestination") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *IamPolicyAnalysisOutputConfig) MarshalJSON() ([]byte, error) { + type NoMethod IamPolicyAnalysisOutputConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// IamPolicyAnalysisQuery: ## LINT.IfChange Keep in sync with ## +// logs/proto/cloud_asset_inventory/iam_policy_analyzer_log.proto IAM +// policy analysis query message. +type IamPolicyAnalysisQuery struct { + // AccessSelector: Optional. Specifies roles or permissions for + // analysis. This is optional. + AccessSelector *AccessSelector `json:"accessSelector,omitempty"` + + // IdentitySelector: Optional. Specifies an identity for analysis. + IdentitySelector *IdentitySelector `json:"identitySelector,omitempty"` + + // Options: Optional. The query options. + Options *Options `json:"options,omitempty"` + + // ResourceSelector: Optional. Specifies a resource for analysis. + ResourceSelector *ResourceSelector `json:"resourceSelector,omitempty"` + + // Scope: Required. The relative name of the root asset. Only resources + // and IAM policies within the scope will be analyzed. This can only be + // an organization number (such as "organizations/123"), a folder number + // (such as "folders/123"), a project ID (such as + // "projects/my-project-id"), or a project number (such as + // "projects/12345"). To know how to get organization id, visit [here + // ](https://cloud.google.com/resource-manager/docs/creating-managing-org + // anization#retrieving_your_organization_id). To know how to get folder + // or project id, visit [here + // ](https://cloud.google.com/resource-manager/docs/creating-managing-fol + // ders#viewing_or_listing_folders_and_projects). + Scope string `json:"scope,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AccessSelector") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AccessSelector") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *IamPolicyAnalysisQuery) MarshalJSON() ([]byte, error) { + type NoMethod IamPolicyAnalysisQuery + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// IamPolicyAnalysisResult: IAM Policy analysis result, consisting of +// one IAM policy binding and derived access control lists. +type IamPolicyAnalysisResult struct { + // AccessControlLists: The access control lists derived from the + // iam_binding that match or potentially match resource and access + // selectors specified in the request. + AccessControlLists []*GoogleCloudAssetV1AccessControlList `json:"accessControlLists,omitempty"` + + // AttachedResourceFullName: The [full resource + // name](https://cloud.google.com/asset-inventory/docs/resource-name-form + // at) of the resource to which the iam_binding policy attaches. + AttachedResourceFullName string `json:"attachedResourceFullName,omitempty"` + + // FullyExplored: Represents whether all analyses on the iam_binding + // have successfully finished. + FullyExplored bool `json:"fullyExplored,omitempty"` + + // IamBinding: The Cloud IAM policy binding under analysis. + IamBinding *Binding `json:"iamBinding,omitempty"` + + // IdentityList: The identity list derived from members of the + // iam_binding that match or potentially match identity selector + // specified in the request. + IdentityList *GoogleCloudAssetV1IdentityList `json:"identityList,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AccessControlLists") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AccessControlLists") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *IamPolicyAnalysisResult) MarshalJSON() ([]byte, error) { + type NoMethod IamPolicyAnalysisResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// IamPolicyAnalysisState: Represents the detailed state of an entity +// under analysis, such as a resource, an identity or an access. +type IamPolicyAnalysisState struct { + // Cause: The human-readable description of the cause of failure. + Cause string `json:"cause,omitempty"` + + // Code: The Google standard error code that best describes the state. + // For example: - OK means the analysis on this entity has been + // successfully finished; - PERMISSION_DENIED means an access denied + // error is encountered; - DEADLINE_EXCEEDED means the analysis on this + // entity hasn't been started in time; + // + // Possible values: + // "OK" - Not an error; returned on success HTTP Mapping: 200 OK + // "CANCELLED" - The operation was cancelled, typically by the caller. + // HTTP Mapping: 499 Client Closed Request + // "UNKNOWN" - Unknown error. For example, this error may be returned + // when a `Status` value received from another address space belongs to + // an error space that is not known in this address space. Also errors + // raised by APIs that do not return enough error information may be + // converted to this error. HTTP Mapping: 500 Internal Server Error + // "INVALID_ARGUMENT" - The client specified an invalid argument. Note + // that this differs from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` + // indicates arguments that are problematic regardless of the state of + // the system (e.g., a malformed file name). HTTP Mapping: 400 Bad + // Request + // "DEADLINE_EXCEEDED" - The deadline expired before the operation + // could complete. For operations that change the state of the system, + // this error may be returned even if the operation has completed + // successfully. For example, a successful response from a server could + // have been delayed long enough for the deadline to expire. HTTP + // Mapping: 504 Gateway Timeout + // "NOT_FOUND" - Some requested entity (e.g., file or directory) was + // not found. Note to server developers: if a request is denied for an + // entire class of users, such as gradual feature rollout or + // undocumented allowlist, `NOT_FOUND` may be used. If a request is + // denied for some users within a class of users, such as user-based + // access control, `PERMISSION_DENIED` must be used. HTTP Mapping: 404 + // Not Found + // "ALREADY_EXISTS" - The entity that a client attempted to create + // (e.g., file or directory) already exists. HTTP Mapping: 409 Conflict + // "PERMISSION_DENIED" - The caller does not have permission to + // execute the specified operation. `PERMISSION_DENIED` must not be used + // for rejections caused by exhausting some resource (use + // `RESOURCE_EXHAUSTED` instead for those errors). `PERMISSION_DENIED` + // must not be used if the caller can not be identified (use + // `UNAUTHENTICATED` instead for those errors). This error code does not + // imply the request is valid or the requested entity exists or + // satisfies other pre-conditions. HTTP Mapping: 403 Forbidden + // "UNAUTHENTICATED" - The request does not have valid authentication + // credentials for the operation. HTTP Mapping: 401 Unauthorized + // "RESOURCE_EXHAUSTED" - Some resource has been exhausted, perhaps a + // per-user quota, or perhaps the entire file system is out of space. + // HTTP Mapping: 429 Too Many Requests + // "FAILED_PRECONDITION" - The operation was rejected because the + // system is not in a state required for the operation's execution. For + // example, the directory to be deleted is non-empty, an rmdir operation + // is applied to a non-directory, etc. Service implementors can use the + // following guidelines to decide between `FAILED_PRECONDITION`, + // `ABORTED`, and `UNAVAILABLE`: (a) Use `UNAVAILABLE` if the client can + // retry just the failing call. (b) Use `ABORTED` if the client should + // retry at a higher level (e.g., when a client-specified test-and-set + // fails, indicating the client should restart a read-modify-write + // sequence). (c) Use `FAILED_PRECONDITION` if the client should not + // retry until the system state has been explicitly fixed. E.g., if an + // "rmdir" fails because the directory is non-empty, + // `FAILED_PRECONDITION` should be returned since the client should not + // retry unless the files are deleted from the directory. HTTP Mapping: + // 400 Bad Request + // "ABORTED" - The operation was aborted, typically due to a + // concurrency issue such as a sequencer check failure or transaction + // abort. See the guidelines above for deciding between + // `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping: + // 409 Conflict + // "OUT_OF_RANGE" - The operation was attempted past the valid range. + // E.g., seeking or reading past end-of-file. Unlike `INVALID_ARGUMENT`, + // this error indicates a problem that may be fixed if the system state + // changes. For example, a 32-bit file system will generate + // `INVALID_ARGUMENT` if asked to read at an offset that is not in the + // range [0,2^32-1], but it will generate `OUT_OF_RANGE` if asked to + // read from an offset past the current file size. There is a fair bit + // of overlap between `FAILED_PRECONDITION` and `OUT_OF_RANGE`. We + // recommend using `OUT_OF_RANGE` (the more specific error) when it + // applies so that callers who are iterating through a space can easily + // look for an `OUT_OF_RANGE` error to detect when they are done. HTTP + // Mapping: 400 Bad Request + // "UNIMPLEMENTED" - The operation is not implemented or is not + // supported/enabled in this service. HTTP Mapping: 501 Not Implemented + // "INTERNAL" - Internal errors. This means that some invariants + // expected by the underlying system have been broken. This error code + // is reserved for serious errors. HTTP Mapping: 500 Internal Server + // Error + // "UNAVAILABLE" - The service is currently unavailable. This is most + // likely a transient condition, which can be corrected by retrying with + // a backoff. Note that it is not always safe to retry non-idempotent + // operations. See the guidelines above for deciding between + // `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping: + // 503 Service Unavailable + // "DATA_LOSS" - Unrecoverable data loss or corruption. HTTP Mapping: + // 500 Internal Server Error + Code string `json:"code,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Cause") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Cause") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *IamPolicyAnalysisState) MarshalJSON() ([]byte, error) { + type NoMethod IamPolicyAnalysisState + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// IamPolicySearchResult: A result of IAM Policy search, containing +// information of an IAM policy. type IamPolicySearchResult struct { // Explanation: Explanation about the IAM policy search result. It // contains additional information to explain why the search result @@ -1798,6 +2542,139 @@ func (s *IamPolicySearchResult) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// IdentitySelector: Specifies an identity for which to determine +// resource access, based on roles assigned either directly to them or +// to the groups they belong to, directly or indirectly. +type IdentitySelector struct { + // Identity: Required. The identity appear in the form of members in + // [IAM policy + // binding](https://cloud.google.com/iam/reference/rest/v1/Binding). The + // examples of supported forms are: "user:mike@example.com", + // "group:admins@example.com", "domain:google.com", + // "serviceAccount:my-project-id@appspot.gserviceaccount.com". Notice + // that wildcard characters (such as * and ?) are not supported. You + // must give a specific identity. + Identity string `json:"identity,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Identity") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Identity") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *IdentitySelector) MarshalJSON() ([]byte, error) { + type NoMethod IdentitySelector + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Inventory: The inventory details of a VM. +type Inventory struct { + // Items: Inventory items related to the VM keyed by an opaque unique + // identifier for each inventory item. The identifier is unique to each + // distinct and addressable inventory item and will change, when there + // is a new package version. + Items map[string]Item `json:"items,omitempty"` + + // OsInfo: Base level operating system information for the VM. + OsInfo *OsInfo `json:"osInfo,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Items") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Items") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Inventory) MarshalJSON() ([]byte, error) { + type NoMethod Inventory + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Item: A single piece of inventory on a VM. +type Item struct { + // AvailablePackage: Software package available to be installed on the + // VM instance. + AvailablePackage *SoftwarePackage `json:"availablePackage,omitempty"` + + // CreateTime: When this inventory item was first detected. + CreateTime string `json:"createTime,omitempty"` + + // Id: Identifier for this item, unique across items for this VM. + Id string `json:"id,omitempty"` + + // InstalledPackage: Software package present on the VM instance. + InstalledPackage *SoftwarePackage `json:"installedPackage,omitempty"` + + // OriginType: The origin of this inventory item. + // + // Possible values: + // "ORIGIN_TYPE_UNSPECIFIED" - Invalid. An origin type must be + // specified. + // "INVENTORY_REPORT" - This inventory item was discovered as the + // result of the agent reporting inventory via the reporting API. + OriginType string `json:"originType,omitempty"` + + // Type: The specific type of inventory, correlating to its specific + // details. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Invalid. An type must be specified. + // "INSTALLED_PACKAGE" - This represents a package that is installed + // on the VM. + // "AVAILABLE_PACKAGE" - This represents an update that is available + // for a package. + Type string `json:"type,omitempty"` + + // UpdateTime: When this inventory item was last modified. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AvailablePackage") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AvailablePackage") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *Item) MarshalJSON() ([]byte, error) { + type NoMethod Item + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type ListFeedsResponse struct { // Feeds: A list of feeds. Feeds []*Feed `json:"feeds,omitempty"` @@ -1891,6 +2768,150 @@ func (s *Operation) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Options: Contains query options. +type Options struct { + // AnalyzeServiceAccountImpersonation: Optional. If true, the response + // will include access analysis from identities to resources via service + // account impersonation. This is a very expensive operation, because + // many derived queries will be executed. We highly recommend you use + // AssetService.AnalyzeIamPolicyLongrunning rpc instead. For example, if + // the request analyzes for which resources user A has permission P, and + // there's an IAM policy states user A has + // iam.serviceAccounts.getAccessToken permission to a service account + // SA, and there's another IAM policy states service account SA has + // permission P to a GCP folder F, then user A potentially has access to + // the GCP folder F. And those advanced analysis results will be + // included in + // AnalyzeIamPolicyResponse.service_account_impersonation_analysis. + // Another example, if the request analyzes for who has permission P to + // a GCP folder F, and there's an IAM policy states user A has + // iam.serviceAccounts.actAs permission to a service account SA, and + // there's another IAM policy states service account SA has permission P + // to the GCP folder F, then user A potentially has access to the GCP + // folder F. And those advanced analysis results will be included in + // AnalyzeIamPolicyResponse.service_account_impersonation_analysis. + // Default is false. + AnalyzeServiceAccountImpersonation bool `json:"analyzeServiceAccountImpersonation,omitempty"` + + // ExpandGroups: Optional. If true, the identities section of the result + // will expand any Google groups appearing in an IAM policy binding. If + // IamPolicyAnalysisQuery.identity_selector is specified, the identity + // in the result will be determined by the selector, and this flag is + // not allowed to set. Default is false. + ExpandGroups bool `json:"expandGroups,omitempty"` + + // ExpandResources: Optional. If true and + // IamPolicyAnalysisQuery.resource_selector is not specified, the + // resource section of the result will expand any resource attached to + // an IAM policy to include resources lower in the resource hierarchy. + // For example, if the request analyzes for which resources user A has + // permission P, and the results include an IAM policy with P on a GCP + // folder, the results will also include resources in that folder with + // permission P. If true and IamPolicyAnalysisQuery.resource_selector is + // specified, the resource section of the result will expand the + // specified resource to include resources lower in the resource + // hierarchy. Only project or lower resources are supported. Folder and + // organization resource cannot be used together with this option. For + // example, if the request analyzes for which users have permission P on + // a GCP project with this option enabled, the results will include all + // users who have permission P on that project or any lower resource. + // Default is false. + ExpandResources bool `json:"expandResources,omitempty"` + + // ExpandRoles: Optional. If true, the access section of result will + // expand any roles appearing in IAM policy bindings to include their + // permissions. If IamPolicyAnalysisQuery.access_selector is specified, + // the access section of the result will be determined by the selector, + // and this flag is not allowed to set. Default is false. + ExpandRoles bool `json:"expandRoles,omitempty"` + + // OutputGroupEdges: Optional. If true, the result will output group + // identity edges, starting from the binding's group members, to any + // expanded identities. Default is false. + OutputGroupEdges bool `json:"outputGroupEdges,omitempty"` + + // OutputResourceEdges: Optional. If true, the result will output + // resource edges, starting from the policy attached resource, to any + // expanded resources. Default is false. + OutputResourceEdges bool `json:"outputResourceEdges,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AnalyzeServiceAccountImpersonation") to unconditionally include in + // API requests. By default, fields with empty values are omitted from + // API requests. However, any non-pointer, non-interface field appearing + // in ForceSendFields will be sent to the server regardless of whether + // the field is empty or not. This may be used to include empty fields + // in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "AnalyzeServiceAccountImpersonation") to include in API requests with + // the JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Options) MarshalJSON() ([]byte, error) { + type NoMethod Options + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// OsInfo: Operating system information for the VM. +type OsInfo struct { + // Architecture: The system architecture of the operating system. + Architecture string `json:"architecture,omitempty"` + + // Hostname: The VM hostname. + Hostname string `json:"hostname,omitempty"` + + // KernelRelease: The kernel release of the operating system. + KernelRelease string `json:"kernelRelease,omitempty"` + + // KernelVersion: The kernel version of the operating system. + KernelVersion string `json:"kernelVersion,omitempty"` + + // LongName: The operating system long name. For example 'Debian + // GNU/Linux 9' or 'Microsoft Window Server 2019 Datacenter'. + LongName string `json:"longName,omitempty"` + + // OsconfigAgentVersion: The current version of the OS Config agent + // running on the VM. + OsconfigAgentVersion string `json:"osconfigAgentVersion,omitempty"` + + // ShortName: The operating system short name. For example, 'windows' or + // 'debian'. + ShortName string `json:"shortName,omitempty"` + + // Version: The version of the operating system. + Version string `json:"version,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Architecture") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Architecture") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *OsInfo) MarshalJSON() ([]byte, error) { + type NoMethod OsInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // OutputConfig: Output configuration for export assets destination. type OutputConfig struct { // BigqueryDestination: Destination on BigQuery. The output table stores @@ -2294,6 +3315,41 @@ func (s *ResourceSearchResult) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ResourceSelector: Specifies the resource to analyze for access +// policies, which may be set directly on the resource, or on ancestors +// such as organizations, folders or projects. +type ResourceSelector struct { + // FullResourceName: Required. The [full resource name] + // (https://cloud.google.com/asset-inventory/docs/resource-name-format) + // of a resource of [supported resource + // types](https://cloud.google.com/asset-inventory/docs/supported-asset-t + // ypes#analyzable_asset_types). + FullResourceName string `json:"fullResourceName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FullResourceName") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FullResourceName") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ResourceSelector) MarshalJSON() ([]byte, error) { + type NoMethod ResourceSelector + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SearchAllIamPoliciesResponse: Search all IAM policies response. type SearchAllIamPoliciesResponse struct { // NextPageToken: Set if there are more results than those appearing in @@ -2372,9 +3428,70 @@ func (s *SearchAllResourcesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each +// SoftwarePackage: Software package information of the operating +// system. +type SoftwarePackage struct { + // AptPackage: Details of an APT package. For details about the apt + // package manager, see https://wiki.debian.org/Apt. + AptPackage *VersionedPackage `json:"aptPackage,omitempty"` + + // CosPackage: Details of a COS package. + CosPackage *VersionedPackage `json:"cosPackage,omitempty"` + + // GoogetPackage: Details of a Googet package. For details about the + // googet package manager, see https://github.com/google/googet. + GoogetPackage *VersionedPackage `json:"googetPackage,omitempty"` + + // QfePackage: Details of a Windows Quick Fix engineering package. See + // https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering for info in Windows Quick Fix + // Engineering. + QfePackage *WindowsQuickFixEngineeringPackage `json:"qfePackage,omitempty"` + + // WuaPackage: Details of a Windows Update package. See + // https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for + // information about Windows Update. + WuaPackage *WindowsUpdatePackage `json:"wuaPackage,omitempty"` + + // YumPackage: Yum package info. For details about the yum package + // manager, see + // https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum. + YumPackage *VersionedPackage `json:"yumPackage,omitempty"` + + // ZypperPackage: Details of a Zypper package. For details about the + // Zypper package manager, see + // https://en.opensuse.org/SDB:Zypper_manual. + ZypperPackage *VersionedPackage `json:"zypperPackage,omitempty"` + + // ZypperPatch: Details of a Zypper patch. For details about the Zypper + // package manager, see https://en.opensuse.org/SDB:Zypper_manual. + ZypperPatch *ZypperPatch `json:"zypperPatch,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AptPackage") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AptPackage") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SoftwarePackage) MarshalJSON() ([]byte, error) { + type NoMethod SoftwarePackage + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Status: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs +// and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each // `Status` message contains three pieces of data: error code, error // message, and error details. You can find out more about this error // model and how to work with it in the [API Design @@ -2538,6 +3655,213 @@ func (s *UpdateFeedRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// VersionedPackage: Information related to the a standard versioned +// package. This includes package info for APT, Yum, Zypper, and Googet +// package managers. +type VersionedPackage struct { + // Architecture: The system architecture this package is intended for. + Architecture string `json:"architecture,omitempty"` + + // PackageName: The name of the package. + PackageName string `json:"packageName,omitempty"` + + // Version: The version of the package. + Version string `json:"version,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Architecture") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Architecture") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *VersionedPackage) MarshalJSON() ([]byte, error) { + type NoMethod VersionedPackage + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// WindowsQuickFixEngineeringPackage: Information related to a Quick Fix +// Engineering package. Fields are taken from Windows +// QuickFixEngineering Interface and match the source names: +// https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering +type WindowsQuickFixEngineeringPackage struct { + // Caption: A short textual description of the QFE update. + Caption string `json:"caption,omitempty"` + + // Description: A textual description of the QFE update. + Description string `json:"description,omitempty"` + + // HotFixId: Unique identifier associated with a particular QFE update. + HotFixId string `json:"hotFixId,omitempty"` + + // InstallTime: Date that the QFE update was installed. Mapped from + // installed_on field. + InstallTime string `json:"installTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Caption") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Caption") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *WindowsQuickFixEngineeringPackage) MarshalJSON() ([]byte, error) { + type NoMethod WindowsQuickFixEngineeringPackage + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// WindowsUpdateCategory: Categories specified by the Windows Update. +type WindowsUpdateCategory struct { + // Id: The identifier of the windows update category. + Id string `json:"id,omitempty"` + + // Name: The name of the windows update category. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Id") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Id") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *WindowsUpdateCategory) MarshalJSON() ([]byte, error) { + type NoMethod WindowsUpdateCategory + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// WindowsUpdatePackage: Details related to a Windows Update package. +// Field data and names are taken from Windows Update API IUpdate +// Interface: https://docs.microsoft.com/en-us/windows/win32/api/_wua/ +// Descriptive fields like title, and description are localized based on +// the locale of the VM being updated. +type WindowsUpdatePackage struct { + // Categories: The categories that are associated with this update + // package. + Categories []*WindowsUpdateCategory `json:"categories,omitempty"` + + // Description: The localized description of the update package. + Description string `json:"description,omitempty"` + + // KbArticleIds: A collection of Microsoft Knowledge Base article IDs + // that are associated with the update package. + KbArticleIds []string `json:"kbArticleIds,omitempty"` + + // LastDeploymentChangeTime: The last published date of the update, in + // (UTC) date and time. + LastDeploymentChangeTime string `json:"lastDeploymentChangeTime,omitempty"` + + // MoreInfoUrls: A collection of URLs that provide more information + // about the update package. + MoreInfoUrls []string `json:"moreInfoUrls,omitempty"` + + // RevisionNumber: The revision number of this update package. + RevisionNumber int64 `json:"revisionNumber,omitempty"` + + // SupportUrl: A hyperlink to the language-specific support information + // for the update. + SupportUrl string `json:"supportUrl,omitempty"` + + // Title: The localized title of the update package. + Title string `json:"title,omitempty"` + + // UpdateId: Gets the identifier of an update package. Stays the same + // across revisions. + UpdateId string `json:"updateId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Categories") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Categories") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *WindowsUpdatePackage) MarshalJSON() ([]byte, error) { + type NoMethod WindowsUpdatePackage + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ZypperPatch: Details related to a Zypper Patch. +type ZypperPatch struct { + // Category: The category of the patch. + Category string `json:"category,omitempty"` + + // PatchName: The name of the patch. + PatchName string `json:"patchName,omitempty"` + + // Severity: The severity specified for this patch + Severity string `json:"severity,omitempty"` + + // Summary: Any summary information provided about this patch. + Summary string `json:"summary,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Category") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Category") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ZypperPatch) MarshalJSON() ([]byte, error) { + type NoMethod ZypperPatch + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // method id "cloudasset.feeds.create": type FeedsCreateCall struct { @@ -2585,7 +3909,7 @@ func (c *FeedsCreateCall) Header() http.Header { func (c *FeedsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2723,7 +4047,7 @@ func (c *FeedsDeleteCall) Header() http.Header { func (c *FeedsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2864,7 +4188,7 @@ func (c *FeedsGetCall) Header() http.Header { func (c *FeedsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3008,7 +4332,7 @@ func (c *FeedsListCall) Header() http.Header { func (c *FeedsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3143,7 +4467,7 @@ func (c *FeedsPatchCall) Header() http.Header { func (c *FeedsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3294,7 +4618,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3383,6 +4707,503 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) } +// method id "cloudasset.analyzeIamPolicy": + +type V1AnalyzeIamPolicyCall struct { + s *Service + scope string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// AnalyzeIamPolicy: Analyzes IAM policies to answer which identities +// have what accesses on which resources. +func (r *V1Service) AnalyzeIamPolicy(scope string) *V1AnalyzeIamPolicyCall { + c := &V1AnalyzeIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.scope = scope + return c +} + +// AnalysisQueryAccessSelectorPermissions sets the optional parameter +// "analysisQuery.accessSelector.permissions": The permissions to appear +// in result. +func (c *V1AnalyzeIamPolicyCall) AnalysisQueryAccessSelectorPermissions(analysisQueryAccessSelectorPermissions ...string) *V1AnalyzeIamPolicyCall { + c.urlParams_.SetMulti("analysisQuery.accessSelector.permissions", append([]string{}, analysisQueryAccessSelectorPermissions...)) + return c +} + +// AnalysisQueryAccessSelectorRoles sets the optional parameter +// "analysisQuery.accessSelector.roles": The roles to appear in result. +func (c *V1AnalyzeIamPolicyCall) AnalysisQueryAccessSelectorRoles(analysisQueryAccessSelectorRoles ...string) *V1AnalyzeIamPolicyCall { + c.urlParams_.SetMulti("analysisQuery.accessSelector.roles", append([]string{}, analysisQueryAccessSelectorRoles...)) + return c +} + +// AnalysisQueryIdentitySelectorIdentity sets the optional parameter +// "analysisQuery.identitySelector.identity": Required. The identity +// appear in the form of members in [IAM policy +// binding](https://cloud.google.com/iam/reference/rest/v1/Binding). The +// examples of supported forms are: "user:mike@example.com", +// "group:admins@example.com", "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com". Notice +// that wildcard characters (such as * and ?) are not supported. You +// must give a specific identity. +func (c *V1AnalyzeIamPolicyCall) AnalysisQueryIdentitySelectorIdentity(analysisQueryIdentitySelectorIdentity string) *V1AnalyzeIamPolicyCall { + c.urlParams_.Set("analysisQuery.identitySelector.identity", analysisQueryIdentitySelectorIdentity) + return c +} + +// AnalysisQueryOptionsAnalyzeServiceAccountImpersonation sets the +// optional parameter +// "analysisQuery.options.analyzeServiceAccountImpersonation": If true, +// the response will include access analysis from identities to +// resources via service account impersonation. This is a very expensive +// operation, because many derived queries will be executed. We highly +// recommend you use AssetService.AnalyzeIamPolicyLongrunning rpc +// instead. For example, if the request analyzes for which resources +// user A has permission P, and there's an IAM policy states user A has +// iam.serviceAccounts.getAccessToken permission to a service account +// SA, and there's another IAM policy states service account SA has +// permission P to a GCP folder F, then user A potentially has access to +// the GCP folder F. And those advanced analysis results will be +// included in +// AnalyzeIamPolicyResponse.service_account_impersonation_analysis. +// Another example, if the request analyzes for who has permission P to +// a GCP folder F, and there's an IAM policy states user A has +// iam.serviceAccounts.actAs permission to a service account SA, and +// there's another IAM policy states service account SA has permission P +// to the GCP folder F, then user A potentially has access to the GCP +// folder F. And those advanced analysis results will be included in +// AnalyzeIamPolicyResponse.service_account_impersonation_analysis. +// Default is false. +func (c *V1AnalyzeIamPolicyCall) AnalysisQueryOptionsAnalyzeServiceAccountImpersonation(analysisQueryOptionsAnalyzeServiceAccountImpersonation bool) *V1AnalyzeIamPolicyCall { + c.urlParams_.Set("analysisQuery.options.analyzeServiceAccountImpersonation", fmt.Sprint(analysisQueryOptionsAnalyzeServiceAccountImpersonation)) + return c +} + +// AnalysisQueryOptionsExpandGroups sets the optional parameter +// "analysisQuery.options.expandGroups": If true, the identities section +// of the result will expand any Google groups appearing in an IAM +// policy binding. If IamPolicyAnalysisQuery.identity_selector is +// specified, the identity in the result will be determined by the +// selector, and this flag is not allowed to set. Default is false. +func (c *V1AnalyzeIamPolicyCall) AnalysisQueryOptionsExpandGroups(analysisQueryOptionsExpandGroups bool) *V1AnalyzeIamPolicyCall { + c.urlParams_.Set("analysisQuery.options.expandGroups", fmt.Sprint(analysisQueryOptionsExpandGroups)) + return c +} + +// AnalysisQueryOptionsExpandResources sets the optional parameter +// "analysisQuery.options.expandResources": If true and +// IamPolicyAnalysisQuery.resource_selector is not specified, the +// resource section of the result will expand any resource attached to +// an IAM policy to include resources lower in the resource hierarchy. +// For example, if the request analyzes for which resources user A has +// permission P, and the results include an IAM policy with P on a GCP +// folder, the results will also include resources in that folder with +// permission P. If true and IamPolicyAnalysisQuery.resource_selector is +// specified, the resource section of the result will expand the +// specified resource to include resources lower in the resource +// hierarchy. Only project or lower resources are supported. Folder and +// organization resource cannot be used together with this option. For +// example, if the request analyzes for which users have permission P on +// a GCP project with this option enabled, the results will include all +// users who have permission P on that project or any lower resource. +// Default is false. +func (c *V1AnalyzeIamPolicyCall) AnalysisQueryOptionsExpandResources(analysisQueryOptionsExpandResources bool) *V1AnalyzeIamPolicyCall { + c.urlParams_.Set("analysisQuery.options.expandResources", fmt.Sprint(analysisQueryOptionsExpandResources)) + return c +} + +// AnalysisQueryOptionsExpandRoles sets the optional parameter +// "analysisQuery.options.expandRoles": If true, the access section of +// result will expand any roles appearing in IAM policy bindings to +// include their permissions. If IamPolicyAnalysisQuery.access_selector +// is specified, the access section of the result will be determined by +// the selector, and this flag is not allowed to set. Default is false. +func (c *V1AnalyzeIamPolicyCall) AnalysisQueryOptionsExpandRoles(analysisQueryOptionsExpandRoles bool) *V1AnalyzeIamPolicyCall { + c.urlParams_.Set("analysisQuery.options.expandRoles", fmt.Sprint(analysisQueryOptionsExpandRoles)) + return c +} + +// AnalysisQueryOptionsOutputGroupEdges sets the optional parameter +// "analysisQuery.options.outputGroupEdges": If true, the result will +// output group identity edges, starting from the binding's group +// members, to any expanded identities. Default is false. +func (c *V1AnalyzeIamPolicyCall) AnalysisQueryOptionsOutputGroupEdges(analysisQueryOptionsOutputGroupEdges bool) *V1AnalyzeIamPolicyCall { + c.urlParams_.Set("analysisQuery.options.outputGroupEdges", fmt.Sprint(analysisQueryOptionsOutputGroupEdges)) + return c +} + +// AnalysisQueryOptionsOutputResourceEdges sets the optional parameter +// "analysisQuery.options.outputResourceEdges": If true, the result will +// output resource edges, starting from the policy attached resource, to +// any expanded resources. Default is false. +func (c *V1AnalyzeIamPolicyCall) AnalysisQueryOptionsOutputResourceEdges(analysisQueryOptionsOutputResourceEdges bool) *V1AnalyzeIamPolicyCall { + c.urlParams_.Set("analysisQuery.options.outputResourceEdges", fmt.Sprint(analysisQueryOptionsOutputResourceEdges)) + return c +} + +// AnalysisQueryResourceSelectorFullResourceName sets the optional +// parameter "analysisQuery.resourceSelector.fullResourceName": +// Required. The [full resource name] +// (https://cloud.google.com/asset-inventory/docs/resource-name-format) +// of a resource of [supported resource +// types](https://cloud.google.com/asset-inventory/docs/supported-asset-t +// ypes#analyzable_asset_types). +func (c *V1AnalyzeIamPolicyCall) AnalysisQueryResourceSelectorFullResourceName(analysisQueryResourceSelectorFullResourceName string) *V1AnalyzeIamPolicyCall { + c.urlParams_.Set("analysisQuery.resourceSelector.fullResourceName", analysisQueryResourceSelectorFullResourceName) + return c +} + +// ExecutionTimeout sets the optional parameter "executionTimeout": +// Amount of time executable has to complete. See JSON representation of +// [Duration](https://developers.google.com/protocol-buffers/docs/proto3# +// json). If this field is set with a value less than the RPC deadline, +// and the execution of your query hasn't finished in the specified +// execution timeout, you will get a response with partial result. +// Otherwise, your query's execution will continue until the RPC +// deadline. If it's not finished until then, you will get a +// DEADLINE_EXCEEDED error. Default is empty. +func (c *V1AnalyzeIamPolicyCall) ExecutionTimeout(executionTimeout string) *V1AnalyzeIamPolicyCall { + c.urlParams_.Set("executionTimeout", executionTimeout) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *V1AnalyzeIamPolicyCall) Fields(s ...googleapi.Field) *V1AnalyzeIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *V1AnalyzeIamPolicyCall) IfNoneMatch(entityTag string) *V1AnalyzeIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *V1AnalyzeIamPolicyCall) Context(ctx context.Context) *V1AnalyzeIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *V1AnalyzeIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *V1AnalyzeIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+scope}:analyzeIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "scope": c.scope, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "cloudasset.analyzeIamPolicy" call. +// Exactly one of *AnalyzeIamPolicyResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *AnalyzeIamPolicyResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *V1AnalyzeIamPolicyCall) Do(opts ...googleapi.CallOption) (*AnalyzeIamPolicyResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &AnalyzeIamPolicyResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Analyzes IAM policies to answer which identities have what accesses on which resources.", + // "flatPath": "v1/{v1Id}/{v1Id1}:analyzeIamPolicy", + // "httpMethod": "GET", + // "id": "cloudasset.analyzeIamPolicy", + // "parameterOrder": [ + // "scope" + // ], + // "parameters": { + // "analysisQuery.accessSelector.permissions": { + // "description": "Optional. The permissions to appear in result.", + // "location": "query", + // "repeated": true, + // "type": "string" + // }, + // "analysisQuery.accessSelector.roles": { + // "description": "Optional. The roles to appear in result.", + // "location": "query", + // "repeated": true, + // "type": "string" + // }, + // "analysisQuery.identitySelector.identity": { + // "description": "Required. The identity appear in the form of members in [IAM policy binding](https://cloud.google.com/iam/reference/rest/v1/Binding). The examples of supported forms are: \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\". Notice that wildcard characters (such as * and ?) are not supported. You must give a specific identity.", + // "location": "query", + // "type": "string" + // }, + // "analysisQuery.options.analyzeServiceAccountImpersonation": { + // "description": "Optional. If true, the response will include access analysis from identities to resources via service account impersonation. This is a very expensive operation, because many derived queries will be executed. We highly recommend you use AssetService.AnalyzeIamPolicyLongrunning rpc instead. For example, if the request analyzes for which resources user A has permission P, and there's an IAM policy states user A has iam.serviceAccounts.getAccessToken permission to a service account SA, and there's another IAM policy states service account SA has permission P to a GCP folder F, then user A potentially has access to the GCP folder F. And those advanced analysis results will be included in AnalyzeIamPolicyResponse.service_account_impersonation_analysis. Another example, if the request analyzes for who has permission P to a GCP folder F, and there's an IAM policy states user A has iam.serviceAccounts.actAs permission to a service account SA, and there's another IAM policy states service account SA has permission P to the GCP folder F, then user A potentially has access to the GCP folder F. And those advanced analysis results will be included in AnalyzeIamPolicyResponse.service_account_impersonation_analysis. Default is false.", + // "location": "query", + // "type": "boolean" + // }, + // "analysisQuery.options.expandGroups": { + // "description": "Optional. If true, the identities section of the result will expand any Google groups appearing in an IAM policy binding. If IamPolicyAnalysisQuery.identity_selector is specified, the identity in the result will be determined by the selector, and this flag is not allowed to set. Default is false.", + // "location": "query", + // "type": "boolean" + // }, + // "analysisQuery.options.expandResources": { + // "description": "Optional. If true and IamPolicyAnalysisQuery.resource_selector is not specified, the resource section of the result will expand any resource attached to an IAM policy to include resources lower in the resource hierarchy. For example, if the request analyzes for which resources user A has permission P, and the results include an IAM policy with P on a GCP folder, the results will also include resources in that folder with permission P. If true and IamPolicyAnalysisQuery.resource_selector is specified, the resource section of the result will expand the specified resource to include resources lower in the resource hierarchy. Only project or lower resources are supported. Folder and organization resource cannot be used together with this option. For example, if the request analyzes for which users have permission P on a GCP project with this option enabled, the results will include all users who have permission P on that project or any lower resource. Default is false.", + // "location": "query", + // "type": "boolean" + // }, + // "analysisQuery.options.expandRoles": { + // "description": "Optional. If true, the access section of result will expand any roles appearing in IAM policy bindings to include their permissions. If IamPolicyAnalysisQuery.access_selector is specified, the access section of the result will be determined by the selector, and this flag is not allowed to set. Default is false.", + // "location": "query", + // "type": "boolean" + // }, + // "analysisQuery.options.outputGroupEdges": { + // "description": "Optional. If true, the result will output group identity edges, starting from the binding's group members, to any expanded identities. Default is false.", + // "location": "query", + // "type": "boolean" + // }, + // "analysisQuery.options.outputResourceEdges": { + // "description": "Optional. If true, the result will output resource edges, starting from the policy attached resource, to any expanded resources. Default is false.", + // "location": "query", + // "type": "boolean" + // }, + // "analysisQuery.resourceSelector.fullResourceName": { + // "description": "Required. The [full resource name] (https://cloud.google.com/asset-inventory/docs/resource-name-format) of a resource of [supported resource types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#analyzable_asset_types).", + // "location": "query", + // "type": "string" + // }, + // "executionTimeout": { + // "description": "Optional. Amount of time executable has to complete. See JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json). If this field is set with a value less than the RPC deadline, and the execution of your query hasn't finished in the specified execution timeout, you will get a response with partial result. Otherwise, your query's execution will continue until the RPC deadline. If it's not finished until then, you will get a DEADLINE_EXCEEDED error. Default is empty.", + // "format": "google-duration", + // "location": "query", + // "type": "string" + // }, + // "scope": { + // "description": "Required. The relative name of the root asset. Only resources and IAM policies within the scope will be analyzed. This can only be an organization number (such as \"organizations/123\"), a folder number (such as \"folders/123\"), a project ID (such as \"projects/my-project-id\"), or a project number (such as \"projects/12345\"). To know how to get organization id, visit [here ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id). To know how to get folder or project id, visit [here ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).", + // "location": "path", + // "pattern": "^[^/]+/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+scope}:analyzeIamPolicy", + // "response": { + // "$ref": "AnalyzeIamPolicyResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "cloudasset.analyzeIamPolicyLongrunning": + +type V1AnalyzeIamPolicyLongrunningCall struct { + s *Service + scope string + analyzeiampolicylongrunningrequest *AnalyzeIamPolicyLongrunningRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// AnalyzeIamPolicyLongrunning: Analyzes IAM policies asynchronously to +// answer which identities have what accesses on which resources, and +// writes the analysis results to a Google Cloud Storage or a BigQuery +// destination. For Cloud Storage destination, the output format is the +// JSON format that represents a AnalyzeIamPolicyResponse. This method +// implements the google.longrunning.Operation, which allows you to +// track the operation status. We recommend intervals of at least 2 +// seconds with exponential backoff retry to poll the operation result. +// The metadata contains the request to help callers to map responses to +// requests. +func (r *V1Service) AnalyzeIamPolicyLongrunning(scope string, analyzeiampolicylongrunningrequest *AnalyzeIamPolicyLongrunningRequest) *V1AnalyzeIamPolicyLongrunningCall { + c := &V1AnalyzeIamPolicyLongrunningCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.scope = scope + c.analyzeiampolicylongrunningrequest = analyzeiampolicylongrunningrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *V1AnalyzeIamPolicyLongrunningCall) Fields(s ...googleapi.Field) *V1AnalyzeIamPolicyLongrunningCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *V1AnalyzeIamPolicyLongrunningCall) Context(ctx context.Context) *V1AnalyzeIamPolicyLongrunningCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *V1AnalyzeIamPolicyLongrunningCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *V1AnalyzeIamPolicyLongrunningCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.analyzeiampolicylongrunningrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+scope}:analyzeIamPolicyLongrunning") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "scope": c.scope, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "cloudasset.analyzeIamPolicyLongrunning" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *V1AnalyzeIamPolicyLongrunningCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Analyzes IAM policies asynchronously to answer which identities have what accesses on which resources, and writes the analysis results to a Google Cloud Storage or a BigQuery destination. For Cloud Storage destination, the output format is the JSON format that represents a AnalyzeIamPolicyResponse. This method implements the google.longrunning.Operation, which allows you to track the operation status. We recommend intervals of at least 2 seconds with exponential backoff retry to poll the operation result. The metadata contains the request to help callers to map responses to requests.", + // "flatPath": "v1/{v1Id}/{v1Id1}:analyzeIamPolicyLongrunning", + // "httpMethod": "POST", + // "id": "cloudasset.analyzeIamPolicyLongrunning", + // "parameterOrder": [ + // "scope" + // ], + // "parameters": { + // "scope": { + // "description": "Required. The relative name of the root asset. Only resources and IAM policies within the scope will be analyzed. This can only be an organization number (such as \"organizations/123\"), a folder number (such as \"folders/123\"), a project ID (such as \"projects/my-project-id\"), or a project number (such as \"projects/12345\"). To know how to get organization id, visit [here ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id). To know how to get folder or project id, visit [here ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).", + // "location": "path", + // "pattern": "^[^/]+/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+scope}:analyzeIamPolicyLongrunning", + // "request": { + // "$ref": "AnalyzeIamPolicyLongrunningRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "cloudasset.batchGetAssetsHistory": type V1BatchGetAssetsHistoryCall struct { @@ -3429,6 +5250,7 @@ func (c *V1BatchGetAssetsHistoryCall) AssetNames(assetNames ...string) *V1BatchG // "ORG_POLICY" - The Cloud Organization Policy set on an asset. // "ACCESS_POLICY" - The Cloud Access context manager Policy set on an // asset. +// "OS_INVENTORY" - The runtime OS Inventory information. func (c *V1BatchGetAssetsHistoryCall) ContentType(contentType string) *V1BatchGetAssetsHistoryCall { c.urlParams_.Set("contentType", contentType) return c @@ -3487,7 +5309,7 @@ func (c *V1BatchGetAssetsHistoryCall) Header() http.Header { func (c *V1BatchGetAssetsHistoryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3570,14 +5392,16 @@ func (c *V1BatchGetAssetsHistoryCall) Do(opts ...googleapi.CallOption) (*BatchGe // "RESOURCE", // "IAM_POLICY", // "ORG_POLICY", - // "ACCESS_POLICY" + // "ACCESS_POLICY", + // "OS_INVENTORY" // ], // "enumDescriptions": [ // "Unspecified content type.", // "Resource metadata.", // "The actual IAM policy set on a resource.", // "The Cloud Organization Policy set on an asset.", - // "The Cloud Access context manager Policy set on an asset." + // "The Cloud Access context manager Policy set on an asset.", + // "The runtime OS Inventory information." // ], // "location": "query", // "type": "string" @@ -3669,7 +5493,7 @@ func (c *V1ExportAssetsCall) Header() http.Header { func (c *V1ExportAssetsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3870,7 +5694,7 @@ func (c *V1SearchAllIamPoliciesCall) Header() http.Header { func (c *V1SearchAllIamPoliciesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4132,7 +5956,7 @@ func (c *V1SearchAllResourcesCall) Header() http.Header { func (c *V1SearchAllResourcesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudasset/v1beta1/cloudasset-api.json b/cloudasset/v1beta1/cloudasset-api.json index 1a17bf1c4cc..e161679e400 100644 --- a/cloudasset/v1beta1/cloudasset-api.json +++ b/cloudasset/v1beta1/cloudasset-api.json @@ -411,7 +411,7 @@ } } }, - "revision": "20200904", + "revision": "20201106", "rootUrl": "https://cloudasset.googleapis.com/", "schemas": { "Asset": { diff --git a/cloudasset/v1beta1/cloudasset-gen.go b/cloudasset/v1beta1/cloudasset-gen.go index dcdb82ed370..1572f0de686 100644 --- a/cloudasset/v1beta1/cloudasset-gen.go +++ b/cloudasset/v1beta1/cloudasset-gen.go @@ -1876,7 +1876,7 @@ func (c *FoldersExportAssetsCall) Header() http.Header { func (c *FoldersExportAssetsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2027,7 +2027,7 @@ func (c *FoldersOperationsGetCall) Header() http.Header { func (c *FoldersOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2218,7 +2218,7 @@ func (c *OrganizationsBatchGetAssetsHistoryCall) Header() http.Header { func (c *OrganizationsBatchGetAssetsHistoryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2392,7 +2392,7 @@ func (c *OrganizationsExportAssetsCall) Header() http.Header { func (c *OrganizationsExportAssetsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2543,7 +2543,7 @@ func (c *OrganizationsOperationsGetCall) Header() http.Header { func (c *OrganizationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2734,7 +2734,7 @@ func (c *ProjectsBatchGetAssetsHistoryCall) Header() http.Header { func (c *ProjectsBatchGetAssetsHistoryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2908,7 +2908,7 @@ func (c *ProjectsExportAssetsCall) Header() http.Header { func (c *ProjectsExportAssetsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3059,7 +3059,7 @@ func (c *ProjectsOperationsGetCall) Header() http.Header { func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudasset/v1p1beta1/cloudasset-api.json b/cloudasset/v1p1beta1/cloudasset-api.json index 295ff8dd127..ee66c204bfc 100644 --- a/cloudasset/v1p1beta1/cloudasset-api.json +++ b/cloudasset/v1p1beta1/cloudasset-api.json @@ -207,7 +207,7 @@ } } }, - "revision": "20200810", + "revision": "20201106", "rootUrl": "https://cloudasset.googleapis.com/", "schemas": { "AuditConfig": { diff --git a/cloudasset/v1p1beta1/cloudasset-gen.go b/cloudasset/v1p1beta1/cloudasset-gen.go index 0871492dcb0..fb54f5720cb 100644 --- a/cloudasset/v1p1beta1/cloudasset-gen.go +++ b/cloudasset/v1p1beta1/cloudasset-gen.go @@ -837,7 +837,7 @@ func (c *IamPoliciesSearchAllCall) Header() http.Header { func (c *IamPoliciesSearchAllCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1069,7 +1069,7 @@ func (c *ResourcesSearchAllCall) Header() http.Header { func (c *ResourcesSearchAllCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudasset/v1p4beta1/cloudasset-api.json b/cloudasset/v1p4beta1/cloudasset-api.json index e2f517b61ac..79b6e58ebca 100644 --- a/cloudasset/v1p4beta1/cloudasset-api.json +++ b/cloudasset/v1p4beta1/cloudasset-api.json @@ -221,7 +221,7 @@ } } }, - "revision": "20201003", + "revision": "20201106", "rootUrl": "https://cloudasset.googleapis.com/", "schemas": { "AccessSelector": { diff --git a/cloudasset/v1p4beta1/cloudasset-gen.go b/cloudasset/v1p4beta1/cloudasset-gen.go index 2a12caed040..668d94bd6ef 100644 --- a/cloudasset/v1p4beta1/cloudasset-gen.go +++ b/cloudasset/v1p4beta1/cloudasset-gen.go @@ -1402,7 +1402,7 @@ func (c *V1p4beta1AnalyzeIamPolicyCall) Header() http.Header { func (c *V1p4beta1AnalyzeIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1602,7 +1602,7 @@ func (c *V1p4beta1ExportIamPolicyAnalysisCall) Header() http.Header { func (c *V1p4beta1ExportIamPolicyAnalysisCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudasset/v1p5beta1/cloudasset-api.json b/cloudasset/v1p5beta1/cloudasset-api.json index 0d70ad79e16..c5ddd7267af 100644 --- a/cloudasset/v1p5beta1/cloudasset-api.json +++ b/cloudasset/v1p5beta1/cloudasset-api.json @@ -177,7 +177,7 @@ } } }, - "revision": "20200904", + "revision": "20201106", "rootUrl": "https://cloudasset.googleapis.com/", "schemas": { "Asset": { diff --git a/cloudasset/v1p5beta1/cloudasset-gen.go b/cloudasset/v1p5beta1/cloudasset-gen.go index 67ffd04625b..99f2b831ca6 100644 --- a/cloudasset/v1p5beta1/cloudasset-gen.go +++ b/cloudasset/v1p5beta1/cloudasset-gen.go @@ -1603,7 +1603,7 @@ func (c *AssetsListCall) Header() http.Header { func (c *AssetsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudbilling/v1/cloudbilling-gen.go b/cloudbilling/v1/cloudbilling-gen.go index 94cc3d0b727..550eee8a1c0 100644 --- a/cloudbilling/v1/cloudbilling-gen.go +++ b/cloudbilling/v1/cloudbilling-gen.go @@ -1427,7 +1427,7 @@ func (c *BillingAccountsCreateCall) Header() http.Header { func (c *BillingAccountsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1566,7 +1566,7 @@ func (c *BillingAccountsGetCall) Header() http.Header { func (c *BillingAccountsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1731,7 +1731,7 @@ func (c *BillingAccountsGetIamPolicyCall) Header() http.Header { func (c *BillingAccountsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1912,7 +1912,7 @@ func (c *BillingAccountsListCall) Header() http.Header { func (c *BillingAccountsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2086,7 +2086,7 @@ func (c *BillingAccountsPatchCall) Header() http.Header { func (c *BillingAccountsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2238,7 +2238,7 @@ func (c *BillingAccountsSetIamPolicyCall) Header() http.Header { func (c *BillingAccountsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2382,7 +2382,7 @@ func (c *BillingAccountsTestIamPermissionsCall) Header() http.Header { func (c *BillingAccountsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2555,7 +2555,7 @@ func (c *BillingAccountsProjectsListCall) Header() http.Header { func (c *BillingAccountsProjectsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2736,7 +2736,7 @@ func (c *ProjectsGetBillingInfoCall) Header() http.Header { func (c *ProjectsGetBillingInfoCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2900,7 +2900,7 @@ func (c *ProjectsUpdateBillingInfoCall) Header() http.Header { func (c *ProjectsUpdateBillingInfoCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3064,7 +3064,7 @@ func (c *ServicesListCall) Header() http.Header { func (c *ServicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3277,7 +3277,7 @@ func (c *ServicesSkusListCall) Header() http.Header { func (c *ServicesSkusListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudbuild/v1/cloudbuild-gen.go b/cloudbuild/v1/cloudbuild-gen.go index 64802fe42e8..6288ace654a 100644 --- a/cloudbuild/v1/cloudbuild-gen.go +++ b/cloudbuild/v1/cloudbuild-gen.go @@ -2081,7 +2081,7 @@ func (c *OperationsCancelCall) Header() http.Header { func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2232,7 +2232,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2369,7 +2369,7 @@ func (c *ProjectsBuildsCancelCall) Header() http.Header { func (c *ProjectsBuildsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2527,7 +2527,7 @@ func (c *ProjectsBuildsCreateCall) Header() http.Header { func (c *ProjectsBuildsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2692,7 +2692,7 @@ func (c *ProjectsBuildsGetCall) Header() http.Header { func (c *ProjectsBuildsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2883,7 +2883,7 @@ func (c *ProjectsBuildsListCall) Header() http.Header { func (c *ProjectsBuildsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3078,7 +3078,7 @@ func (c *ProjectsBuildsRetryCall) Header() http.Header { func (c *ProjectsBuildsRetryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3225,7 +3225,7 @@ func (c *ProjectsLocationsBuildsCancelCall) Header() http.Header { func (c *ProjectsLocationsBuildsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3375,7 +3375,7 @@ func (c *ProjectsLocationsBuildsCreateCall) Header() http.Header { func (c *ProjectsLocationsBuildsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3544,7 +3544,7 @@ func (c *ProjectsLocationsBuildsGetCall) Header() http.Header { func (c *ProjectsLocationsBuildsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3732,7 +3732,7 @@ func (c *ProjectsLocationsBuildsListCall) Header() http.Header { func (c *ProjectsLocationsBuildsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3926,7 +3926,7 @@ func (c *ProjectsLocationsBuildsRetryCall) Header() http.Header { func (c *ProjectsLocationsBuildsRetryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4075,7 +4075,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4226,7 +4226,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4361,7 +4361,7 @@ func (c *ProjectsTriggersCreateCall) Header() http.Header { func (c *ProjectsTriggersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4501,7 +4501,7 @@ func (c *ProjectsTriggersDeleteCall) Header() http.Header { func (c *ProjectsTriggersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4652,7 +4652,7 @@ func (c *ProjectsTriggersGetCall) Header() http.Header { func (c *ProjectsTriggersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4817,7 +4817,7 @@ func (c *ProjectsTriggersListCall) Header() http.Header { func (c *ProjectsTriggersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4986,7 +4986,7 @@ func (c *ProjectsTriggersPatchCall) Header() http.Header { func (c *ProjectsTriggersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5135,7 +5135,7 @@ func (c *ProjectsTriggersRunCall) Header() http.Header { func (c *ProjectsTriggersRunCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudbuild/v1alpha1/cloudbuild-gen.go b/cloudbuild/v1alpha1/cloudbuild-gen.go index 92025d609c1..a3ddb89d690 100644 --- a/cloudbuild/v1alpha1/cloudbuild-gen.go +++ b/cloudbuild/v1alpha1/cloudbuild-gen.go @@ -1887,7 +1887,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2038,7 +2038,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2174,7 +2174,7 @@ func (c *ProjectsWorkerPoolsCreateCall) Header() http.Header { func (c *ProjectsWorkerPoolsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2312,7 +2312,7 @@ func (c *ProjectsWorkerPoolsDeleteCall) Header() http.Header { func (c *ProjectsWorkerPoolsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2453,7 +2453,7 @@ func (c *ProjectsWorkerPoolsGetCall) Header() http.Header { func (c *ProjectsWorkerPoolsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2597,7 +2597,7 @@ func (c *ProjectsWorkerPoolsListCall) Header() http.Header { func (c *ProjectsWorkerPoolsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2732,7 +2732,7 @@ func (c *ProjectsWorkerPoolsPatchCall) Header() http.Header { func (c *ProjectsWorkerPoolsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudbuild/v1alpha2/cloudbuild-gen.go b/cloudbuild/v1alpha2/cloudbuild-gen.go index 8f230594c99..1671b0849ee 100644 --- a/cloudbuild/v1alpha2/cloudbuild-gen.go +++ b/cloudbuild/v1alpha2/cloudbuild-gen.go @@ -1845,7 +1845,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1996,7 +1996,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2141,7 +2141,7 @@ func (c *ProjectsWorkerPoolsCreateCall) Header() http.Header { func (c *ProjectsWorkerPoolsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2284,7 +2284,7 @@ func (c *ProjectsWorkerPoolsDeleteCall) Header() http.Header { func (c *ProjectsWorkerPoolsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2425,7 +2425,7 @@ func (c *ProjectsWorkerPoolsGetCall) Header() http.Header { func (c *ProjectsWorkerPoolsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2569,7 +2569,7 @@ func (c *ProjectsWorkerPoolsListCall) Header() http.Header { func (c *ProjectsWorkerPoolsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2711,7 +2711,7 @@ func (c *ProjectsWorkerPoolsPatchCall) Header() http.Header { func (c *ProjectsWorkerPoolsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/clouddebugger/v2/clouddebugger-gen.go b/clouddebugger/v2/clouddebugger-gen.go index 8748f9c67e5..cca465fb29d 100644 --- a/clouddebugger/v2/clouddebugger-gen.go +++ b/clouddebugger/v2/clouddebugger-gen.go @@ -1435,7 +1435,7 @@ func (c *ControllerDebuggeesRegisterCall) Header() http.Header { func (c *ControllerDebuggeesRegisterCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1610,7 +1610,7 @@ func (c *ControllerDebuggeesBreakpointsListCall) Header() http.Header { func (c *ControllerDebuggeesBreakpointsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1769,7 +1769,7 @@ func (c *ControllerDebuggeesBreakpointsUpdateCall) Header() http.Header { func (c *ControllerDebuggeesBreakpointsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1947,7 +1947,7 @@ func (c *DebuggerDebuggeesListCall) Header() http.Header { func (c *DebuggerDebuggeesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2094,7 +2094,7 @@ func (c *DebuggerDebuggeesBreakpointsDeleteCall) Header() http.Header { func (c *DebuggerDebuggeesBreakpointsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2258,7 +2258,7 @@ func (c *DebuggerDebuggeesBreakpointsGetCall) Header() http.Header { func (c *DebuggerDebuggeesBreakpointsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2472,7 +2472,7 @@ func (c *DebuggerDebuggeesBreakpointsListCall) Header() http.Header { func (c *DebuggerDebuggeesBreakpointsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2670,7 +2670,7 @@ func (c *DebuggerDebuggeesBreakpointsSetCall) Header() http.Header { func (c *DebuggerDebuggeesBreakpointsSetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/clouderrorreporting/v1beta1/clouderrorreporting-gen.go b/clouderrorreporting/v1beta1/clouderrorreporting-gen.go index f7a9b458aad..5039f48f6b8 100644 --- a/clouderrorreporting/v1beta1/clouderrorreporting-gen.go +++ b/clouderrorreporting/v1beta1/clouderrorreporting-gen.go @@ -854,7 +854,7 @@ func (c *ProjectsDeleteEventsCall) Header() http.Header { func (c *ProjectsDeleteEventsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1063,7 +1063,7 @@ func (c *ProjectsEventsListCall) Header() http.Header { func (c *ProjectsEventsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1276,7 +1276,7 @@ func (c *ProjectsEventsReportCall) Header() http.Header { func (c *ProjectsEventsReportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1550,7 +1550,7 @@ func (c *ProjectsGroupStatsListCall) Header() http.Header { func (c *ProjectsGroupStatsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1814,7 +1814,7 @@ func (c *ProjectsGroupsGetCall) Header() http.Header { func (c *ProjectsGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1950,7 +1950,7 @@ func (c *ProjectsGroupsUpdateCall) Header() http.Header { func (c *ProjectsGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudfunctions/v1/cloudfunctions-api.json b/cloudfunctions/v1/cloudfunctions-api.json index 7a51c0e950d..92b1d5b8987 100644 --- a/cloudfunctions/v1/cloudfunctions-api.json +++ b/cloudfunctions/v1/cloudfunctions-api.json @@ -546,7 +546,7 @@ } } }, - "revision": "20200917", + "revision": "20201107", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { diff --git a/cloudfunctions/v1/cloudfunctions-gen.go b/cloudfunctions/v1/cloudfunctions-gen.go index a07c9cc9927..1154e2988fe 100644 --- a/cloudfunctions/v1/cloudfunctions-gen.go +++ b/cloudfunctions/v1/cloudfunctions-gen.go @@ -1522,7 +1522,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1707,7 +1707,7 @@ func (c *OperationsListCall) Header() http.Header { func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1903,7 +1903,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2078,7 +2078,7 @@ func (c *ProjectsLocationsFunctionsCallCall) Header() http.Header { func (c *ProjectsLocationsFunctionsCallCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2220,7 +2220,7 @@ func (c *ProjectsLocationsFunctionsCreateCall) Header() http.Header { func (c *ProjectsLocationsFunctionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2360,7 +2360,7 @@ func (c *ProjectsLocationsFunctionsDeleteCall) Header() http.Header { func (c *ProjectsLocationsFunctionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2496,7 +2496,7 @@ func (c *ProjectsLocationsFunctionsGenerateDownloadUrlCall) Header() http.Header func (c *ProjectsLocationsFunctionsGenerateDownloadUrlCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2651,7 +2651,7 @@ func (c *ProjectsLocationsFunctionsGenerateUploadUrlCall) Header() http.Header { func (c *ProjectsLocationsFunctionsGenerateUploadUrlCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2801,7 +2801,7 @@ func (c *ProjectsLocationsFunctionsGetCall) Header() http.Header { func (c *ProjectsLocationsFunctionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2962,7 +2962,7 @@ func (c *ProjectsLocationsFunctionsGetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsFunctionsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3129,7 +3129,7 @@ func (c *ProjectsLocationsFunctionsListCall) Header() http.Header { func (c *ProjectsLocationsFunctionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3303,7 +3303,7 @@ func (c *ProjectsLocationsFunctionsPatchCall) Header() http.Header { func (c *ProjectsLocationsFunctionsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3450,7 +3450,7 @@ func (c *ProjectsLocationsFunctionsSetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsFunctionsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3592,7 +3592,7 @@ func (c *ProjectsLocationsFunctionsTestIamPermissionsCall) Header() http.Header func (c *ProjectsLocationsFunctionsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudidentity/v1/cloudidentity-api.json b/cloudidentity/v1/cloudidentity-api.json index 4d13994507b..10921ebff23 100644 --- a/cloudidentity/v1/cloudidentity-api.json +++ b/cloudidentity/v1/cloudidentity-api.json @@ -126,7 +126,7 @@ ], "parameters": { "name": { - "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}`, where device_id is the unique ID assigned to the Device, and device_user_id is the unique ID assigned to the User.", + "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}`, where device_id is the unique ID assigned to the Device.", "location": "path", "pattern": "^devices/[^/]+$", "required": true, @@ -229,7 +229,7 @@ "type": "string" }, "filter": { - "description": "Optional. Additional restrictions when fetching list of devices. [Help Center article link](https://support.google.com/a/answer/7549103)", + "description": "Optional. Additional restrictions when fetching list of devices. For a list of search fields, refer to [Mobile device search fields](https://developers.google.com/admin-sdk/directory/v1/search-operators). Multiple search fields are separated by the space character.", "location": "query", "type": "string" }, @@ -443,7 +443,7 @@ "type": "string" }, "filter": { - "description": "Optional. Additional restrictions when fetching list of devices. [HC article](https://support.google.com/a/answer/7549103)", + "description": "Optional. Additional restrictions when fetching list of devices. For a list of search fields, refer to [Mobile device search fields](https://developers.google.com/admin-sdk/directory/v1/search-operators). Multiple search fields are separated by the space character.", "location": "query", "type": "string" }, @@ -571,7 +571,7 @@ "type": "string" }, "name": { - "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the ClientState in format: `devices/{device_id}/deviceUsers/{device_user_id}/clientStates/{partner_id}`, where device_id is the unique ID assigned to the Device, device_user_id is the unique ID assigned to the User and partner_id identifies the partner storing the data.", + "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the ClientState in format: `devices/{device_id}/deviceUsers/{device_user_id}/clientStates/{partner_id}`, where device_id is the unique ID assigned to the Device, device_user_id is the unique ID assigned to the User and partner_id identifies the partner storing the data. To get the client state for devices belonging to your own organization, the `partnerId` is in the format: `customerId-*anystring*`. Where the `customerId` is your organization's customer ID and `anystring` is any suffix. This suffix is used in setting up Custom Access Levels in Context-Aware Access. You may use `my_customer` instead of the customer ID for devices managed by your own organization.", "location": "path", "pattern": "^devices/[^/]+/deviceUsers/[^/]+/clientStates/[^/]+$", "required": true, @@ -1128,7 +1128,7 @@ } } }, - "revision": "20200927", + "revision": "20201117", "rootUrl": "https://cloudidentity.googleapis.com/", "schemas": { "EntityKey": { diff --git a/cloudidentity/v1/cloudidentity-gen.go b/cloudidentity/v1/cloudidentity-gen.go index fb15de534c7..4065b8efded 100644 --- a/cloudidentity/v1/cloudidentity-gen.go +++ b/cloudidentity/v1/cloudidentity-gen.go @@ -1869,7 +1869,7 @@ func (c *DevicesCancelWipeCall) Header() http.Header { func (c *DevicesCancelWipeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1942,7 +1942,7 @@ func (c *DevicesCancelWipeCall) Do(opts ...googleapi.CallOption) (*Operation, er // ], // "parameters": { // "name": { - // "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}`, where device_id is the unique ID assigned to the Device, and device_user_id is the unique ID assigned to the User.", + // "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}`, where device_id is the unique ID assigned to the Device.", // "location": "path", // "pattern": "^devices/[^/]+$", // "required": true, @@ -2015,7 +2015,7 @@ func (c *DevicesCreateCall) Header() http.Header { func (c *DevicesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2154,7 +2154,7 @@ func (c *DevicesDeleteCall) Header() http.Header { func (c *DevicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2310,7 +2310,7 @@ func (c *DevicesGetCall) Header() http.Header { func (c *DevicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2432,8 +2432,11 @@ func (c *DevicesListCall) Customer(customer string) *DevicesListCall { } // Filter sets the optional parameter "filter": Additional restrictions -// when fetching list of devices. [Help Center article -// link](https://support.google.com/a/answer/7549103) +// when fetching list of devices. For a list of search fields, refer to +// [Mobile device search +// fields](https://developers.google.com/admin-sdk/directory/v1/search-op +// erators). Multiple search fields are separated by the space +// character. func (c *DevicesListCall) Filter(filter string) *DevicesListCall { c.urlParams_.Set("filter", filter) return c @@ -2523,7 +2526,7 @@ func (c *DevicesListCall) Header() http.Header { func (c *DevicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2596,7 +2599,7 @@ func (c *DevicesListCall) Do(opts ...googleapi.CallOption) (*GoogleAppsCloudiden // "type": "string" // }, // "filter": { - // "description": "Optional. Additional restrictions when fetching list of devices. [Help Center article link](https://support.google.com/a/answer/7549103)", + // "description": "Optional. Additional restrictions when fetching list of devices. For a list of search fields, refer to [Mobile device search fields](https://developers.google.com/admin-sdk/directory/v1/search-operators). Multiple search fields are separated by the space character.", // "location": "query", // "type": "string" // }, @@ -2707,7 +2710,7 @@ func (c *DevicesWipeCall) Header() http.Header { func (c *DevicesWipeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2844,7 +2847,7 @@ func (c *DevicesDeviceUsersApproveCall) Header() http.Header { func (c *DevicesDeviceUsersApproveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2981,7 +2984,7 @@ func (c *DevicesDeviceUsersBlockCall) Header() http.Header { func (c *DevicesDeviceUsersBlockCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3120,7 +3123,7 @@ func (c *DevicesDeviceUsersCancelWipeCall) Header() http.Header { func (c *DevicesDeviceUsersCancelWipeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3267,7 +3270,7 @@ func (c *DevicesDeviceUsersDeleteCall) Header() http.Header { func (c *DevicesDeviceUsersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3421,7 +3424,7 @@ func (c *DevicesDeviceUsersGetCall) Header() http.Header { func (c *DevicesDeviceUsersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3544,8 +3547,11 @@ func (c *DevicesDeviceUsersListCall) Customer(customer string) *DevicesDeviceUse } // Filter sets the optional parameter "filter": Additional restrictions -// when fetching list of devices. [HC -// article](https://support.google.com/a/answer/7549103) +// when fetching list of devices. For a list of search fields, refer to +// [Mobile device search +// fields](https://developers.google.com/admin-sdk/directory/v1/search-op +// erators). Multiple search fields are separated by the space +// character. func (c *DevicesDeviceUsersListCall) Filter(filter string) *DevicesDeviceUsersListCall { c.urlParams_.Set("filter", filter) return c @@ -3614,7 +3620,7 @@ func (c *DevicesDeviceUsersListCall) Header() http.Header { func (c *DevicesDeviceUsersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3693,7 +3699,7 @@ func (c *DevicesDeviceUsersListCall) Do(opts ...googleapi.CallOption) (*GoogleAp // "type": "string" // }, // "filter": { - // "description": "Optional. Additional restrictions when fetching list of devices. [HC article](https://support.google.com/a/answer/7549103)", + // "description": "Optional. Additional restrictions when fetching list of devices. For a list of search fields, refer to [Mobile device search fields](https://developers.google.com/admin-sdk/directory/v1/search-operators). Multiple search fields are separated by the space character.", // "location": "query", // "type": "string" // }, @@ -3865,7 +3871,7 @@ func (c *DevicesDeviceUsersLookupCall) Header() http.Header { func (c *DevicesDeviceUsersLookupCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4056,7 +4062,7 @@ func (c *DevicesDeviceUsersWipeCall) Header() http.Header { func (c *DevicesDeviceUsersWipeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4213,7 +4219,7 @@ func (c *DevicesDeviceUsersClientStatesGetCall) Header() http.Header { func (c *DevicesDeviceUsersClientStatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4291,7 +4297,7 @@ func (c *DevicesDeviceUsersClientStatesGetCall) Do(opts ...googleapi.CallOption) // "type": "string" // }, // "name": { - // "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the ClientState in format: `devices/{device_id}/deviceUsers/{device_user_id}/clientStates/{partner_id}`, where device_id is the unique ID assigned to the Device, device_user_id is the unique ID assigned to the User and partner_id identifies the partner storing the data.", + // "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the ClientState in format: `devices/{device_id}/deviceUsers/{device_user_id}/clientStates/{partner_id}`, where device_id is the unique ID assigned to the Device, device_user_id is the unique ID assigned to the User and partner_id identifies the partner storing the data. To get the client state for devices belonging to your own organization, the `partnerId` is in the format: `customerId-*anystring*`. Where the `customerId` is your organization's customer ID and `anystring` is any suffix. This suffix is used in setting up Custom Access Levels in Context-Aware Access. You may use `my_customer` instead of the customer ID for devices managed by your own organization.", // "location": "path", // "pattern": "^devices/[^/]+/deviceUsers/[^/]+/clientStates/[^/]+$", // "required": true, @@ -4396,7 +4402,7 @@ func (c *DevicesDeviceUsersClientStatesListCall) Header() http.Header { func (c *DevicesDeviceUsersClientStatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4591,7 +4597,7 @@ func (c *DevicesDeviceUsersClientStatesPatchCall) Header() http.Header { func (c *DevicesDeviceUsersClientStatesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4751,7 +4757,7 @@ func (c *GroupsCreateCall) Header() http.Header { func (c *GroupsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4893,7 +4899,7 @@ func (c *GroupsDeleteCall) Header() http.Header { func (c *GroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5035,7 +5041,7 @@ func (c *GroupsGetCall) Header() http.Header { func (c *GroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5221,7 +5227,7 @@ func (c *GroupsListCall) Header() http.Header { func (c *GroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5429,7 +5435,7 @@ func (c *GroupsLookupCall) Header() http.Header { func (c *GroupsLookupCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5572,7 +5578,7 @@ func (c *GroupsPatchCall) Header() http.Header { func (c *GroupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5770,7 +5776,7 @@ func (c *GroupsSearchCall) Header() http.Header { func (c *GroupsSearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5947,7 +5953,7 @@ func (c *GroupsMembershipsCreateCall) Header() http.Header { func (c *GroupsMembershipsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6086,7 +6092,7 @@ func (c *GroupsMembershipsDeleteCall) Header() http.Header { func (c *GroupsMembershipsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6228,7 +6234,7 @@ func (c *GroupsMembershipsGetCall) Header() http.Header { func (c *GroupsMembershipsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6407,7 +6413,7 @@ func (c *GroupsMembershipsListCall) Header() http.Header { func (c *GroupsMembershipsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6624,7 +6630,7 @@ func (c *GroupsMembershipsLookupCall) Header() http.Header { func (c *GroupsMembershipsLookupCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6772,7 +6778,7 @@ func (c *GroupsMembershipsModifyMembershipRolesCall) Header() http.Header { func (c *GroupsMembershipsModifyMembershipRolesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudidentity/v1beta1/cloudidentity-api.json b/cloudidentity/v1beta1/cloudidentity-api.json index 096222abe4e..ba29defc141 100644 --- a/cloudidentity/v1beta1/cloudidentity-api.json +++ b/cloudidentity/v1beta1/cloudidentity-api.json @@ -126,7 +126,7 @@ ], "parameters": { "name": { - "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}`, where device_id is the unique ID assigned to the Device, and device_user_id is the unique ID assigned to the User.", + "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}`, where device_id is the unique ID assigned to the Device.", "location": "path", "pattern": "^devices/[^/]+$", "required": true, @@ -223,7 +223,7 @@ "type": "string" }, "filter": { - "description": "Optional. Additional restrictions when fetching list of devices. [HC article link](https://support.google.com/a/answer/7549103)", + "description": "Optional. Additional restrictions when fetching list of devices. For a list of search fields, refer to [Mobile device search fields](https://developers.google.com/admin-sdk/directory/v1/search-operators). Multiple search fields are separated by the space character.", "location": "query", "type": "string" }, @@ -437,7 +437,7 @@ "type": "string" }, "filter": { - "description": "Optional. Additional restrictions when fetching list of devices. [HC article](https://support.google.com/a/answer/7549103)", + "description": "Optional. Additional restrictions when fetching list of devices. For a list of search fields, refer to [Mobile device search fields](https://developers.google.com/admin-sdk/directory/v1/search-operators). Multiple search fields are separated by the space character.", "location": "query", "type": "string" }, @@ -565,7 +565,7 @@ "type": "string" }, "name": { - "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the ClientState in format: `devices/{device_id}/deviceUsers/{device_user_id}/clientStates/{partner_id}`, where device_id is the unique ID assigned to the Device, device_user_id is the unique ID assigned to the User and partner_id identifies the partner storing the data.", + "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the ClientState in format: `devices/{device_id}/deviceUsers/{device_user_id}/clientStates/{partner_id}`, where device_id is the unique ID assigned to the Device, device_user_id is the unique ID assigned to the User and partner_id identifies the partner storing the data. To get the client state for devices belonging to your own organization, the `partnerId` is in the format: `customerId-*anystring*`. Where the `customerId` is your organization's customer ID and `anystring` is any suffix. This suffix is used in setting up Custom Access Levels in Context-Aware Access. You may use `my_customer` instead of the customer ID for devices managed by your own organization.", "location": "path", "pattern": "^devices/[^/]+/deviceUsers/[^/]+/clientStates/[^/]+$", "required": true, @@ -873,7 +873,7 @@ "memberships": { "methods": { "checkTransitiveMembership": { - "description": "Check a potential member for membership in a group. A member has membership to a group as long as there is a single viewable transitive membership between the group and the member. The actor must have view permissions to at least one transitive membership between the member and group.", + "description": "Check a potential member for membership in a group. **Note:** This feature is only available to Google Workspace Enterprise Standard, Enterprise Plus, and Enterprise for Education; and Cloud Identity Premium accounts. A member has membership to a group as long as there is a single viewable transitive membership between the group and the member. The actor must have view permissions to at least one transitive membership between the member and group.", "flatPath": "v1beta1/groups/{groupsId}/memberships:checkTransitiveMembership", "httpMethod": "GET", "id": "cloudidentity.groups.memberships.checkTransitiveMembership", @@ -987,7 +987,7 @@ ] }, "getMembershipGraph": { - "description": "Get a membership graph of just a member or both a member and a group. Given a member, the response will contain all membership paths from the member. Given both a group and a member, the response will contain all membership paths between the group and the member.", + "description": "Get a membership graph of just a member or both a member and a group. **Note:** This feature is only available to Google Workspace Enterprise Standard, Enterprise Plus, and Enterprise for Education; and Cloud Identity Premium accounts. Given a member, the response will contain all membership paths from the member. Given both a group and a member, the response will contain all membership paths between the group and the member.", "flatPath": "v1beta1/groups/{groupsId}/memberships:getMembershipGraph", "httpMethod": "GET", "id": "cloudidentity.groups.memberships.getMembershipGraph", @@ -1136,7 +1136,7 @@ ] }, "searchTransitiveGroups": { - "description": "Search transitive groups of a member. A transitive group is any group that has a direct or indirect membership to the member. Actor must have view permissions all transitive groups.", + "description": "Search transitive groups of a member. **Note:** This feature is only available to Google Workspace Enterprise Standard, Enterprise Plus, and Enterprise for Education; and Cloud Identity Premium accounts. A transitive group is any group that has a direct or indirect membership to the member. Actor must have view permissions all transitive groups.", "flatPath": "v1beta1/groups/{groupsId}/memberships:searchTransitiveGroups", "httpMethod": "GET", "id": "cloudidentity.groups.memberships.searchTransitiveGroups", @@ -1179,7 +1179,7 @@ ] }, "searchTransitiveMemberships": { - "description": "Search transitive memberships of a group. A transitive membership is any direct or indirect membership of a group. Actor must have view permissions to all transitive memberships.", + "description": "Search transitive memberships of a group. **Note:** This feature is only available to Google Workspace Enterprise Standard, Enterprise Plus, and Enterprise for Education; and Cloud Identity Premium accounts. A transitive membership is any direct or indirect membership of a group. Actor must have view permissions to all transitive memberships.", "flatPath": "v1beta1/groups/{groupsId}/memberships:searchTransitiveMemberships", "httpMethod": "GET", "id": "cloudidentity.groups.memberships.searchTransitiveMemberships", @@ -1221,7 +1221,7 @@ } } }, - "revision": "20200927", + "revision": "20201117", "rootUrl": "https://cloudidentity.googleapis.com/", "schemas": { "AndroidAttributes": { diff --git a/cloudidentity/v1beta1/cloudidentity-gen.go b/cloudidentity/v1beta1/cloudidentity-gen.go index 502ad16514a..18bb0d280d1 100644 --- a/cloudidentity/v1beta1/cloudidentity-gen.go +++ b/cloudidentity/v1beta1/cloudidentity-gen.go @@ -3065,7 +3065,7 @@ func (c *DevicesCancelWipeCall) Header() http.Header { func (c *DevicesCancelWipeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3138,7 +3138,7 @@ func (c *DevicesCancelWipeCall) Do(opts ...googleapi.CallOption) (*Operation, er // ], // "parameters": { // "name": { - // "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}`, where device_id is the unique ID assigned to the Device, and device_user_id is the unique ID assigned to the User.", + // "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}`, where device_id is the unique ID assigned to the Device.", // "location": "path", // "pattern": "^devices/[^/]+$", // "required": true, @@ -3200,7 +3200,7 @@ func (c *DevicesCreateCall) Header() http.Header { func (c *DevicesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3333,7 +3333,7 @@ func (c *DevicesDeleteCall) Header() http.Header { func (c *DevicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3485,7 +3485,7 @@ func (c *DevicesGetCall) Header() http.Header { func (c *DevicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3601,8 +3601,11 @@ func (c *DevicesListCall) Customer(customer string) *DevicesListCall { } // Filter sets the optional parameter "filter": Additional restrictions -// when fetching list of devices. [HC article -// link](https://support.google.com/a/answer/7549103) +// when fetching list of devices. For a list of search fields, refer to +// [Mobile device search +// fields](https://developers.google.com/admin-sdk/directory/v1/search-op +// erators). Multiple search fields are separated by the space +// character. func (c *DevicesListCall) Filter(filter string) *DevicesListCall { c.urlParams_.Set("filter", filter) return c @@ -3691,7 +3694,7 @@ func (c *DevicesListCall) Header() http.Header { func (c *DevicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3762,7 +3765,7 @@ func (c *DevicesListCall) Do(opts ...googleapi.CallOption) (*ListDevicesResponse // "type": "string" // }, // "filter": { - // "description": "Optional. Additional restrictions when fetching list of devices. [HC article link](https://support.google.com/a/answer/7549103)", + // "description": "Optional. Additional restrictions when fetching list of devices. For a list of search fields, refer to [Mobile device search fields](https://developers.google.com/admin-sdk/directory/v1/search-operators). Multiple search fields are separated by the space character.", // "location": "query", // "type": "string" // }, @@ -3873,7 +3876,7 @@ func (c *DevicesWipeCall) Header() http.Header { func (c *DevicesWipeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4010,7 +4013,7 @@ func (c *DevicesDeviceUsersApproveCall) Header() http.Header { func (c *DevicesDeviceUsersApproveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4147,7 +4150,7 @@ func (c *DevicesDeviceUsersBlockCall) Header() http.Header { func (c *DevicesDeviceUsersBlockCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4286,7 +4289,7 @@ func (c *DevicesDeviceUsersCancelWipeCall) Header() http.Header { func (c *DevicesDeviceUsersCancelWipeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4433,7 +4436,7 @@ func (c *DevicesDeviceUsersDeleteCall) Header() http.Header { func (c *DevicesDeviceUsersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4587,7 +4590,7 @@ func (c *DevicesDeviceUsersGetCall) Header() http.Header { func (c *DevicesDeviceUsersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4708,8 +4711,11 @@ func (c *DevicesDeviceUsersListCall) Customer(customer string) *DevicesDeviceUse } // Filter sets the optional parameter "filter": Additional restrictions -// when fetching list of devices. [HC -// article](https://support.google.com/a/answer/7549103) +// when fetching list of devices. For a list of search fields, refer to +// [Mobile device search +// fields](https://developers.google.com/admin-sdk/directory/v1/search-op +// erators). Multiple search fields are separated by the space +// character. func (c *DevicesDeviceUsersListCall) Filter(filter string) *DevicesDeviceUsersListCall { c.urlParams_.Set("filter", filter) return c @@ -4778,7 +4784,7 @@ func (c *DevicesDeviceUsersListCall) Header() http.Header { func (c *DevicesDeviceUsersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4854,7 +4860,7 @@ func (c *DevicesDeviceUsersListCall) Do(opts ...googleapi.CallOption) (*ListDevi // "type": "string" // }, // "filter": { - // "description": "Optional. Additional restrictions when fetching list of devices. [HC article](https://support.google.com/a/answer/7549103)", + // "description": "Optional. Additional restrictions when fetching list of devices. For a list of search fields, refer to [Mobile device search fields](https://developers.google.com/admin-sdk/directory/v1/search-operators). Multiple search fields are separated by the space character.", // "location": "query", // "type": "string" // }, @@ -5026,7 +5032,7 @@ func (c *DevicesDeviceUsersLookupCall) Header() http.Header { func (c *DevicesDeviceUsersLookupCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5208,7 +5214,7 @@ func (c *DevicesDeviceUsersWipeCall) Header() http.Header { func (c *DevicesDeviceUsersWipeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5365,7 +5371,7 @@ func (c *DevicesDeviceUsersClientStatesGetCall) Header() http.Header { func (c *DevicesDeviceUsersClientStatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5441,7 +5447,7 @@ func (c *DevicesDeviceUsersClientStatesGetCall) Do(opts ...googleapi.CallOption) // "type": "string" // }, // "name": { - // "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the ClientState in format: `devices/{device_id}/deviceUsers/{device_user_id}/clientStates/{partner_id}`, where device_id is the unique ID assigned to the Device, device_user_id is the unique ID assigned to the User and partner_id identifies the partner storing the data.", + // "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the ClientState in format: `devices/{device_id}/deviceUsers/{device_user_id}/clientStates/{partner_id}`, where device_id is the unique ID assigned to the Device, device_user_id is the unique ID assigned to the User and partner_id identifies the partner storing the data. To get the client state for devices belonging to your own organization, the `partnerId` is in the format: `customerId-*anystring*`. Where the `customerId` is your organization's customer ID and `anystring` is any suffix. This suffix is used in setting up Custom Access Levels in Context-Aware Access. You may use `my_customer` instead of the customer ID for devices managed by your own organization.", // "location": "path", // "pattern": "^devices/[^/]+/deviceUsers/[^/]+/clientStates/[^/]+$", // "required": true, @@ -5521,7 +5527,7 @@ func (c *DevicesDeviceUsersClientStatesPatchCall) Header() http.Header { func (c *DevicesDeviceUsersClientStatesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5681,7 +5687,7 @@ func (c *GroupsCreateCall) Header() http.Header { func (c *GroupsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5823,7 +5829,7 @@ func (c *GroupsDeleteCall) Header() http.Header { func (c *GroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5965,7 +5971,7 @@ func (c *GroupsGetCall) Header() http.Header { func (c *GroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6151,7 +6157,7 @@ func (c *GroupsListCall) Header() http.Header { func (c *GroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6359,7 +6365,7 @@ func (c *GroupsLookupCall) Header() http.Header { func (c *GroupsLookupCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6502,7 +6508,7 @@ func (c *GroupsPatchCall) Header() http.Header { func (c *GroupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6699,7 +6705,7 @@ func (c *GroupsSearchCall) Header() http.Header { func (c *GroupsSearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6840,10 +6846,13 @@ type GroupsMembershipsCheckTransitiveMembershipCall struct { } // CheckTransitiveMembership: Check a potential member for membership in -// a group. A member has membership to a group as long as there is a -// single viewable transitive membership between the group and the -// member. The actor must have view permissions to at least one -// transitive membership between the member and group. +// a group. **Note:** This feature is only available to Google Workspace +// Enterprise Standard, Enterprise Plus, and Enterprise for Education; +// and Cloud Identity Premium accounts. A member has membership to a +// group as long as there is a single viewable transitive membership +// between the group and the member. The actor must have view +// permissions to at least one transitive membership between the member +// and group. func (r *GroupsMembershipsService) CheckTransitiveMembership(parent string) *GroupsMembershipsCheckTransitiveMembershipCall { c := &GroupsMembershipsCheckTransitiveMembershipCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -6898,7 +6907,7 @@ func (c *GroupsMembershipsCheckTransitiveMembershipCall) Header() http.Header { func (c *GroupsMembershipsCheckTransitiveMembershipCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6961,7 +6970,7 @@ func (c *GroupsMembershipsCheckTransitiveMembershipCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Check a potential member for membership in a group. A member has membership to a group as long as there is a single viewable transitive membership between the group and the member. The actor must have view permissions to at least one transitive membership between the member and group.", + // "description": "Check a potential member for membership in a group. **Note:** This feature is only available to Google Workspace Enterprise Standard, Enterprise Plus, and Enterprise for Education; and Cloud Identity Premium accounts. A member has membership to a group as long as there is a single viewable transitive membership between the group and the member. The actor must have view permissions to at least one transitive membership between the member and group.", // "flatPath": "v1beta1/groups/{groupsId}/memberships:checkTransitiveMembership", // "httpMethod": "GET", // "id": "cloudidentity.groups.memberships.checkTransitiveMembership", @@ -7041,7 +7050,7 @@ func (c *GroupsMembershipsCreateCall) Header() http.Header { func (c *GroupsMembershipsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7180,7 +7189,7 @@ func (c *GroupsMembershipsDeleteCall) Header() http.Header { func (c *GroupsMembershipsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7322,7 +7331,7 @@ func (c *GroupsMembershipsGetCall) Header() http.Header { func (c *GroupsMembershipsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7425,10 +7434,12 @@ type GroupsMembershipsGetMembershipGraphCall struct { } // GetMembershipGraph: Get a membership graph of just a member or both a -// member and a group. Given a member, the response will contain all -// membership paths from the member. Given both a group and a member, -// the response will contain all membership paths between the group and -// the member. +// member and a group. **Note:** This feature is only available to +// Google Workspace Enterprise Standard, Enterprise Plus, and Enterprise +// for Education; and Cloud Identity Premium accounts. Given a member, +// the response will contain all membership paths from the member. Given +// both a group and a member, the response will contain all membership +// paths between the group and the member. func (r *GroupsMembershipsService) GetMembershipGraph(parent string) *GroupsMembershipsGetMembershipGraphCall { c := &GroupsMembershipsGetMembershipGraphCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -7483,7 +7494,7 @@ func (c *GroupsMembershipsGetMembershipGraphCall) Header() http.Header { func (c *GroupsMembershipsGetMembershipGraphCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7545,7 +7556,7 @@ func (c *GroupsMembershipsGetMembershipGraphCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Get a membership graph of just a member or both a member and a group. Given a member, the response will contain all membership paths from the member. Given both a group and a member, the response will contain all membership paths between the group and the member.", + // "description": "Get a membership graph of just a member or both a member and a group. **Note:** This feature is only available to Google Workspace Enterprise Standard, Enterprise Plus, and Enterprise for Education; and Cloud Identity Premium accounts. Given a member, the response will contain all membership paths from the member. Given both a group and a member, the response will contain all membership paths between the group and the member.", // "flatPath": "v1beta1/groups/{groupsId}/memberships:getMembershipGraph", // "httpMethod": "GET", // "id": "cloudidentity.groups.memberships.getMembershipGraph", @@ -7666,7 +7677,7 @@ func (c *GroupsMembershipsListCall) Header() http.Header { func (c *GroupsMembershipsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7881,7 +7892,7 @@ func (c *GroupsMembershipsLookupCall) Header() http.Header { func (c *GroupsMembershipsLookupCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8029,7 +8040,7 @@ func (c *GroupsMembershipsModifyMembershipRolesCall) Header() http.Header { func (c *GroupsMembershipsModifyMembershipRolesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8135,10 +8146,12 @@ type GroupsMembershipsSearchTransitiveGroupsCall struct { header_ http.Header } -// SearchTransitiveGroups: Search transitive groups of a member. A -// transitive group is any group that has a direct or indirect -// membership to the member. Actor must have view permissions all -// transitive groups. +// SearchTransitiveGroups: Search transitive groups of a member. +// **Note:** This feature is only available to Google Workspace +// Enterprise Standard, Enterprise Plus, and Enterprise for Education; +// and Cloud Identity Premium accounts. A transitive group is any group +// that has a direct or indirect membership to the member. Actor must +// have view permissions all transitive groups. func (r *GroupsMembershipsService) SearchTransitiveGroups(parent string) *GroupsMembershipsSearchTransitiveGroupsCall { c := &GroupsMembershipsSearchTransitiveGroupsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -8209,7 +8222,7 @@ func (c *GroupsMembershipsSearchTransitiveGroupsCall) Header() http.Header { func (c *GroupsMembershipsSearchTransitiveGroupsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8271,7 +8284,7 @@ func (c *GroupsMembershipsSearchTransitiveGroupsCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Search transitive groups of a member. A transitive group is any group that has a direct or indirect membership to the member. Actor must have view permissions all transitive groups.", + // "description": "Search transitive groups of a member. **Note:** This feature is only available to Google Workspace Enterprise Standard, Enterprise Plus, and Enterprise for Education; and Cloud Identity Premium accounts. A transitive group is any group that has a direct or indirect membership to the member. Actor must have view permissions all transitive groups.", // "flatPath": "v1beta1/groups/{groupsId}/memberships:searchTransitiveGroups", // "httpMethod": "GET", // "id": "cloudidentity.groups.memberships.searchTransitiveGroups", @@ -8349,9 +8362,11 @@ type GroupsMembershipsSearchTransitiveMembershipsCall struct { } // SearchTransitiveMemberships: Search transitive memberships of a -// group. A transitive membership is any direct or indirect membership -// of a group. Actor must have view permissions to all transitive -// memberships. +// group. **Note:** This feature is only available to Google Workspace +// Enterprise Standard, Enterprise Plus, and Enterprise for Education; +// and Cloud Identity Premium accounts. A transitive membership is any +// direct or indirect membership of a group. Actor must have view +// permissions to all transitive memberships. func (r *GroupsMembershipsService) SearchTransitiveMemberships(parent string) *GroupsMembershipsSearchTransitiveMembershipsCall { c := &GroupsMembershipsSearchTransitiveMembershipsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -8409,7 +8424,7 @@ func (c *GroupsMembershipsSearchTransitiveMembershipsCall) Header() http.Header func (c *GroupsMembershipsSearchTransitiveMembershipsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8472,7 +8487,7 @@ func (c *GroupsMembershipsSearchTransitiveMembershipsCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Search transitive memberships of a group. A transitive membership is any direct or indirect membership of a group. Actor must have view permissions to all transitive memberships.", + // "description": "Search transitive memberships of a group. **Note:** This feature is only available to Google Workspace Enterprise Standard, Enterprise Plus, and Enterprise for Education; and Cloud Identity Premium accounts. A transitive membership is any direct or indirect membership of a group. Actor must have view permissions to all transitive memberships.", // "flatPath": "v1beta1/groups/{groupsId}/memberships:searchTransitiveMemberships", // "httpMethod": "GET", // "id": "cloudidentity.groups.memberships.searchTransitiveMemberships", diff --git a/cloudiot/v1/cloudiot-api.json b/cloudiot/v1/cloudiot-api.json index 72ce2310a5d..eda0fe63084 100644 --- a/cloudiot/v1/cloudiot-api.json +++ b/cloudiot/v1/cloudiot-api.json @@ -938,7 +938,7 @@ } } }, - "revision": "20200901", + "revision": "20201110", "rootUrl": "https://cloudiot.googleapis.com/", "schemas": { "BindDeviceToGatewayRequest": { @@ -966,10 +966,6 @@ "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { - "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", - "type": "string" - }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." diff --git a/cloudiot/v1/cloudiot-gen.go b/cloudiot/v1/cloudiot-gen.go index bb0e8d1ee6b..68f7d3b5bc3 100644 --- a/cloudiot/v1/cloudiot-gen.go +++ b/cloudiot/v1/cloudiot-gen.go @@ -279,10 +279,6 @@ type BindDeviceToGatewayResponse struct { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. - BindingId string `json:"bindingId,omitempty"` - // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -332,7 +328,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "BindingId") to + // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -340,7 +336,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BindingId") to include in + // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -1790,7 +1786,7 @@ func (c *ProjectsLocationsRegistriesBindDeviceToGatewayCall) Header() http.Heade func (c *ProjectsLocationsRegistriesBindDeviceToGatewayCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1931,7 +1927,7 @@ func (c *ProjectsLocationsRegistriesCreateCall) Header() http.Header { func (c *ProjectsLocationsRegistriesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2070,7 +2066,7 @@ func (c *ProjectsLocationsRegistriesDeleteCall) Header() http.Header { func (c *ProjectsLocationsRegistriesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2212,7 +2208,7 @@ func (c *ProjectsLocationsRegistriesGetCall) Header() http.Header { func (c *ProjectsLocationsRegistriesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2350,7 +2346,7 @@ func (c *ProjectsLocationsRegistriesGetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsRegistriesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2519,7 +2515,7 @@ func (c *ProjectsLocationsRegistriesListCall) Header() http.Header { func (c *ProjectsLocationsRegistriesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2698,7 +2694,7 @@ func (c *ProjectsLocationsRegistriesPatchCall) Header() http.Header { func (c *ProjectsLocationsRegistriesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2846,7 +2842,7 @@ func (c *ProjectsLocationsRegistriesSetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsRegistriesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2989,7 +2985,7 @@ func (c *ProjectsLocationsRegistriesTestIamPermissionsCall) Header() http.Header func (c *ProjectsLocationsRegistriesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3131,7 +3127,7 @@ func (c *ProjectsLocationsRegistriesUnbindDeviceFromGatewayCall) Header() http.H func (c *ProjectsLocationsRegistriesUnbindDeviceFromGatewayCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3272,7 +3268,7 @@ func (c *ProjectsLocationsRegistriesDevicesCreateCall) Header() http.Header { func (c *ProjectsLocationsRegistriesDevicesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3411,7 +3407,7 @@ func (c *ProjectsLocationsRegistriesDevicesDeleteCall) Header() http.Header { func (c *ProjectsLocationsRegistriesDevicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3561,7 +3557,7 @@ func (c *ProjectsLocationsRegistriesDevicesGetCall) Header() http.Header { func (c *ProjectsLocationsRegistriesDevicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3797,7 +3793,7 @@ func (c *ProjectsLocationsRegistriesDevicesListCall) Header() http.Header { func (c *ProjectsLocationsRegistriesDevicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4011,7 +4007,7 @@ func (c *ProjectsLocationsRegistriesDevicesModifyCloudToDeviceConfigCall) Header func (c *ProjectsLocationsRegistriesDevicesModifyCloudToDeviceConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4162,7 +4158,7 @@ func (c *ProjectsLocationsRegistriesDevicesPatchCall) Header() http.Header { func (c *ProjectsLocationsRegistriesDevicesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4322,7 +4318,7 @@ func (c *ProjectsLocationsRegistriesDevicesSendCommandToDeviceCall) Header() htt func (c *ProjectsLocationsRegistriesDevicesSendCommandToDeviceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4482,7 +4478,7 @@ func (c *ProjectsLocationsRegistriesDevicesConfigVersionsListCall) Header() http func (c *ProjectsLocationsRegistriesDevicesConfigVersionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4643,7 +4639,7 @@ func (c *ProjectsLocationsRegistriesDevicesStatesListCall) Header() http.Header func (c *ProjectsLocationsRegistriesDevicesStatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4787,7 +4783,7 @@ func (c *ProjectsLocationsRegistriesGroupsGetIamPolicyCall) Header() http.Header func (c *ProjectsLocationsRegistriesGroupsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4929,7 +4925,7 @@ func (c *ProjectsLocationsRegistriesGroupsSetIamPolicyCall) Header() http.Header func (c *ProjectsLocationsRegistriesGroupsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5072,7 +5068,7 @@ func (c *ProjectsLocationsRegistriesGroupsTestIamPermissionsCall) Header() http. func (c *ProjectsLocationsRegistriesGroupsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5307,7 +5303,7 @@ func (c *ProjectsLocationsRegistriesGroupsDevicesListCall) Header() http.Header func (c *ProjectsLocationsRegistriesGroupsDevicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudkms/v1/cloudkms-api.json b/cloudkms/v1/cloudkms-api.json index f51957ede9c..b0ef7651f83 100644 --- a/cloudkms/v1/cloudkms-api.json +++ b/cloudkms/v1/cloudkms-api.json @@ -1259,7 +1259,7 @@ } } }, - "revision": "20200903", + "revision": "20201102", "rootUrl": "https://cloudkms.googleapis.com/", "schemas": { "AsymmetricDecryptRequest": { @@ -1394,7 +1394,6 @@ "id": "Binding", "properties": { "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", "type": "string" }, "condition": { diff --git a/cloudkms/v1/cloudkms-gen.go b/cloudkms/v1/cloudkms-gen.go index a80a7cb0e19..5e3ebfeb934 100644 --- a/cloudkms/v1/cloudkms-gen.go +++ b/cloudkms/v1/cloudkms-gen.go @@ -528,8 +528,6 @@ func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. BindingId string `json:"bindingId,omitempty"` // Condition: The condition that is associated with this binding. If the @@ -2367,7 +2365,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2534,7 +2532,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2715,7 +2713,7 @@ func (c *ProjectsLocationsKeyRingsCreateCall) Header() http.Header { func (c *ProjectsLocationsKeyRingsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2870,7 +2868,7 @@ func (c *ProjectsLocationsKeyRingsGetCall) Header() http.Header { func (c *ProjectsLocationsKeyRingsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3032,7 +3030,7 @@ func (c *ProjectsLocationsKeyRingsGetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsKeyRingsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3220,7 +3218,7 @@ func (c *ProjectsLocationsKeyRingsListCall) Header() http.Header { func (c *ProjectsLocationsKeyRingsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3400,7 +3398,7 @@ func (c *ProjectsLocationsKeyRingsSetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsKeyRingsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3546,7 +3544,7 @@ func (c *ProjectsLocationsKeyRingsTestIamPermissionsCall) Header() http.Header { func (c *ProjectsLocationsKeyRingsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3706,7 +3704,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysCreateCall) Header() http.Header { func (c *ProjectsLocationsKeyRingsCryptoKeysCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3858,7 +3856,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysDecryptCall) Header() http.Header { func (c *ProjectsLocationsKeyRingsCryptoKeysDecryptCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4000,7 +3998,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysEncryptCall) Header() http.Header { func (c *ProjectsLocationsKeyRingsCryptoKeysEncryptCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4151,7 +4149,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysGetCall) Header() http.Header { func (c *ProjectsLocationsKeyRingsCryptoKeysGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4313,7 +4311,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysGetIamPolicyCall) Header() http.Head func (c *ProjectsLocationsKeyRingsCryptoKeysGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4514,7 +4512,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysListCall) Header() http.Header { func (c *ProjectsLocationsKeyRingsCryptoKeysListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4712,7 +4710,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysPatchCall) Header() http.Header { func (c *ProjectsLocationsKeyRingsCryptoKeysPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4861,7 +4859,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysSetIamPolicyCall) Header() http.Head func (c *ProjectsLocationsKeyRingsCryptoKeysSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5007,7 +5005,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysTestIamPermissionsCall) Header() htt func (c *ProjectsLocationsKeyRingsCryptoKeysTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5149,7 +5147,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersionCall) Header() h func (c *ProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5292,7 +5290,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecryptCa func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecryptCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5435,7 +5433,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSignCall) func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSignCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5578,7 +5576,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreateCall) Header( func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5725,7 +5723,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroyCall) Header func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5875,7 +5873,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetCall) Header() h func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6021,7 +6019,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyCall) H func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6159,7 +6157,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsImportCall) Header( func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsImportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6359,7 +6357,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListCall) Header() func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6560,7 +6558,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatchCall) Header() func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6709,7 +6707,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestoreCall) Header func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestoreCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6859,7 +6857,7 @@ func (c *ProjectsLocationsKeyRingsImportJobsCreateCall) Header() http.Header { func (c *ProjectsLocationsKeyRingsImportJobsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7014,7 +7012,7 @@ func (c *ProjectsLocationsKeyRingsImportJobsGetCall) Header() http.Header { func (c *ProjectsLocationsKeyRingsImportJobsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7176,7 +7174,7 @@ func (c *ProjectsLocationsKeyRingsImportJobsGetIamPolicyCall) Header() http.Head func (c *ProjectsLocationsKeyRingsImportJobsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7364,7 +7362,7 @@ func (c *ProjectsLocationsKeyRingsImportJobsListCall) Header() http.Header { func (c *ProjectsLocationsKeyRingsImportJobsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7544,7 +7542,7 @@ func (c *ProjectsLocationsKeyRingsImportJobsSetIamPolicyCall) Header() http.Head func (c *ProjectsLocationsKeyRingsImportJobsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7690,7 +7688,7 @@ func (c *ProjectsLocationsKeyRingsImportJobsTestIamPermissionsCall) Header() htt func (c *ProjectsLocationsKeyRingsImportJobsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudprofiler/v2/cloudprofiler-gen.go b/cloudprofiler/v2/cloudprofiler-gen.go index 7a15c02715e..26d91d026f7 100644 --- a/cloudprofiler/v2/cloudprofiler-gen.go +++ b/cloudprofiler/v2/cloudprofiler-gen.go @@ -407,7 +407,7 @@ func (c *ProjectsProfilesCreateCall) Header() http.Header { func (c *ProjectsProfilesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -551,7 +551,7 @@ func (c *ProjectsProfilesCreateOfflineCall) Header() http.Header { func (c *ProjectsProfilesCreateOfflineCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -706,7 +706,7 @@ func (c *ProjectsProfilesPatchCall) Header() http.Header { func (c *ProjectsProfilesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudresourcemanager/v1/cloudresourcemanager-api.json b/cloudresourcemanager/v1/cloudresourcemanager-api.json index 9623b1b50e2..6694fb2a736 100644 --- a/cloudresourcemanager/v1/cloudresourcemanager-api.json +++ b/cloudresourcemanager/v1/cloudresourcemanager-api.json @@ -1171,7 +1171,7 @@ } } }, - "revision": "20200921", + "revision": "20201111", "rootUrl": "https://cloudresourcemanager.googleapis.com/", "schemas": { "Ancestor": { @@ -1237,10 +1237,6 @@ "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { - "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", - "type": "string" - }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." @@ -1292,6 +1288,72 @@ }, "type": "object" }, + "CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation": { + "description": "Metadata describing a long running folder operation", + "id": "CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation", + "properties": { + "destinationParent": { + "description": "The resource name of the folder or organization we are either creating the folder under or moving the folder to.", + "type": "string" + }, + "displayName": { + "description": "The display name of the folder.", + "type": "string" + }, + "operationType": { + "description": "The type of this operation.", + "enum": [ + "OPERATION_TYPE_UNSPECIFIED", + "CREATE", + "MOVE" + ], + "enumDescriptions": [ + "Operation type not specified.", + "A create folder operation.", + "A move folder operation." + ], + "type": "string" + }, + "sourceParent": { + "description": "The resource name of the folder's parent. Only applicable when the operation_type is MOVE.", + "type": "string" + } + }, + "type": "object" + }, + "CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation": { + "description": "Metadata describing a long running folder operation", + "id": "CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation", + "properties": { + "destinationParent": { + "description": "The resource name of the folder or organization we are either creating the folder under or moving the folder to.", + "type": "string" + }, + "displayName": { + "description": "The display name of the folder.", + "type": "string" + }, + "operationType": { + "description": "The type of this operation.", + "enum": [ + "OPERATION_TYPE_UNSPECIFIED", + "CREATE", + "MOVE" + ], + "enumDescriptions": [ + "Operation type not specified.", + "A create folder operation.", + "A move folder operation." + ], + "type": "string" + }, + "sourceParent": { + "description": "The resource name of the folder's parent. Only applicable when the operation_type is MOVE.", + "type": "string" + } + }, + "type": "object" + }, "Constraint": { "description": "A `Constraint` describes a way in which a resource's configuration can be restricted. For example, it controls which cloud services can be activated across an organization, or whether a Compute Engine instance can have serial port connections established. `Constraints` can be configured by the organization's policy administrator to fit the needs of the organzation by setting Policies for `Constraints` at different locations in the organization's resource hierarchy. Policies are inherited down the resource hierarchy from higher levels, but can also be overridden. For details about the inheritance rules please read about [Policies](/resource-manager/reference/rest/v1/Policy). `Constraints` have a default behavior determined by the `constraint_default` field, which is the enforcement behavior that is used in the absence of a `Policy` being defined or inherited for the resource in question.", "id": "Constraint", @@ -1338,6 +1400,83 @@ }, "type": "object" }, + "CreateFolderMetadata": { + "description": "Metadata pertaining to the Folder creation process.", + "id": "CreateFolderMetadata", + "properties": { + "displayName": { + "description": "The display name of the folder.", + "type": "string" + }, + "parent": { + "description": "The resource name of the folder or organization we are creating the folder under.", + "type": "string" + } + }, + "type": "object" + }, + "CreateProjectMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by CreateProject. It provides insight for when significant phases of Project creation have completed.", + "id": "CreateProjectMetadata", + "properties": { + "createTime": { + "description": "Creation time of the project creation workflow.", + "format": "google-datetime", + "type": "string" + }, + "gettable": { + "description": "True if the project can be retrieved using GetProject. No other operations on the project are guaranteed to work until the project creation is complete.", + "type": "boolean" + }, + "ready": { + "description": "True if the project creation process is complete.", + "type": "boolean" + } + }, + "type": "object" + }, + "CreateTagKeyMetadata": { + "description": "Runtime operation information for creating a TagKey.", + "id": "CreateTagKeyMetadata", + "properties": {}, + "type": "object" + }, + "CreateTagValueMetadata": { + "description": "Runtime operation information for creating a TagValue.", + "id": "CreateTagValueMetadata", + "properties": {}, + "type": "object" + }, + "DeleteFolderMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by DeleteFolder.", + "id": "DeleteFolderMetadata", + "properties": {}, + "type": "object" + }, + "DeleteOrganizationMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by DeleteOrganization.", + "id": "DeleteOrganizationMetadata", + "properties": {}, + "type": "object" + }, + "DeleteProjectMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by DeleteProject.", + "id": "DeleteProjectMetadata", + "properties": {}, + "type": "object" + }, + "DeleteTagKeyMetadata": { + "description": "Runtime operation information for deleting a TagKey.", + "id": "DeleteTagKeyMetadata", + "properties": {}, + "type": "object" + }, + "DeleteTagValueMetadata": { + "description": "Runtime operation information for deleting a TagValue.", + "id": "DeleteTagValueMetadata", + "properties": {}, + "type": "object" + }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", "id": "Empty", @@ -1697,6 +1836,31 @@ }, "type": "object" }, + "MoveFolderMetadata": { + "description": "Metadata pertaining to the Folder move process.", + "id": "MoveFolderMetadata", + "properties": { + "destinationParent": { + "description": "The resource name of the folder or organization to move the folder to.", + "type": "string" + }, + "displayName": { + "description": "The display name of the folder.", + "type": "string" + }, + "sourceParent": { + "description": "The resource name of the folder's parent.", + "type": "string" + } + }, + "type": "object" + }, + "MoveProjectMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by MoveProject.", + "id": "MoveProjectMetadata", + "properties": {}, + "type": "object" + }, "Operation": { "description": "This resource represents a long-running operation that is the result of a network API call.", "id": "Operation", @@ -2063,11 +2227,65 @@ }, "type": "object" }, + "UndeleteFolderMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by UndeleteFolder.", + "id": "UndeleteFolderMetadata", + "properties": {}, + "type": "object" + }, + "UndeleteOrganizationMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by UndeleteOrganization.", + "id": "UndeleteOrganizationMetadata", + "properties": {}, + "type": "object" + }, + "UndeleteProjectMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by UndeleteProject.", + "id": "UndeleteProjectMetadata", + "properties": {}, + "type": "object" + }, "UndeleteProjectRequest": { "description": "The request sent to the UndeleteProject method.", "id": "UndeleteProjectRequest", "properties": {}, "type": "object" + }, + "UndeleteTagKeyMetadata": { + "description": "Runtime operation information for undeleting a TagKey.", + "id": "UndeleteTagKeyMetadata", + "properties": {}, + "type": "object" + }, + "UndeleteTagValueMetadata": { + "description": "Runtime operation information for deleting a TagValue.", + "id": "UndeleteTagValueMetadata", + "properties": {}, + "type": "object" + }, + "UpdateFolderMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by UpdateFolder.", + "id": "UpdateFolderMetadata", + "properties": {}, + "type": "object" + }, + "UpdateProjectMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by UpdateProject.", + "id": "UpdateProjectMetadata", + "properties": {}, + "type": "object" + }, + "UpdateTagKeyMetadata": { + "description": "Runtime operation information for updating a TagKey.", + "id": "UpdateTagKeyMetadata", + "properties": {}, + "type": "object" + }, + "UpdateTagValueMetadata": { + "description": "Runtime operation information for updating a TagValue.", + "id": "UpdateTagValueMetadata", + "properties": {}, + "type": "object" } }, "servicePath": "", diff --git a/cloudresourcemanager/v1/cloudresourcemanager-gen.go b/cloudresourcemanager/v1/cloudresourcemanager-gen.go index e3c68f39335..c0fd448389f 100644 --- a/cloudresourcemanager/v1/cloudresourcemanager-gen.go +++ b/cloudresourcemanager/v1/cloudresourcemanager-gen.go @@ -327,10 +327,6 @@ func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. - BindingId string `json:"bindingId,omitempty"` - // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -380,7 +376,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "BindingId") to + // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -388,7 +384,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BindingId") to include in + // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -497,6 +493,98 @@ func (s *ClearOrgPolicyRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation: +// Metadata describing a long running folder operation +type CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation struct { + // DestinationParent: The resource name of the folder or organization we + // are either creating the folder under or moving the folder to. + DestinationParent string `json:"destinationParent,omitempty"` + + // DisplayName: The display name of the folder. + DisplayName string `json:"displayName,omitempty"` + + // OperationType: The type of this operation. + // + // Possible values: + // "OPERATION_TYPE_UNSPECIFIED" - Operation type not specified. + // "CREATE" - A create folder operation. + // "MOVE" - A move folder operation. + OperationType string `json:"operationType,omitempty"` + + // SourceParent: The resource name of the folder's parent. Only + // applicable when the operation_type is MOVE. + SourceParent string `json:"sourceParent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DestinationParent") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DestinationParent") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation) MarshalJSON() ([]byte, error) { + type NoMethod CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation: +// Metadata describing a long running folder operation +type CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation struct { + // DestinationParent: The resource name of the folder or organization we + // are either creating the folder under or moving the folder to. + DestinationParent string `json:"destinationParent,omitempty"` + + // DisplayName: The display name of the folder. + DisplayName string `json:"displayName,omitempty"` + + // OperationType: The type of this operation. + // + // Possible values: + // "OPERATION_TYPE_UNSPECIFIED" - Operation type not specified. + // "CREATE" - A create folder operation. + // "MOVE" - A move folder operation. + OperationType string `json:"operationType,omitempty"` + + // SourceParent: The resource name of the folder's parent. Only + // applicable when the operation_type is MOVE. + SourceParent string `json:"sourceParent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DestinationParent") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DestinationParent") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation) MarshalJSON() ([]byte, error) { + type NoMethod CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Constraint: A `Constraint` describes a way in which a resource's // configuration can be restricted. For example, it controls which cloud // services can be activated across an organization, or whether a @@ -570,6 +658,113 @@ func (s *Constraint) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CreateFolderMetadata: Metadata pertaining to the Folder creation +// process. +type CreateFolderMetadata struct { + // DisplayName: The display name of the folder. + DisplayName string `json:"displayName,omitempty"` + + // Parent: The resource name of the folder or organization we are + // creating the folder under. + Parent string `json:"parent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisplayName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CreateFolderMetadata) MarshalJSON() ([]byte, error) { + type NoMethod CreateFolderMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CreateProjectMetadata: A status object which is used as the +// `metadata` field for the Operation returned by CreateProject. It +// provides insight for when significant phases of Project creation have +// completed. +type CreateProjectMetadata struct { + // CreateTime: Creation time of the project creation workflow. + CreateTime string `json:"createTime,omitempty"` + + // Gettable: True if the project can be retrieved using GetProject. No + // other operations on the project are guaranteed to work until the + // project creation is complete. + Gettable bool `json:"gettable,omitempty"` + + // Ready: True if the project creation process is complete. + Ready bool `json:"ready,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CreateProjectMetadata) MarshalJSON() ([]byte, error) { + type NoMethod CreateProjectMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CreateTagKeyMetadata: Runtime operation information for creating a +// TagKey. +type CreateTagKeyMetadata struct { +} + +// CreateTagValueMetadata: Runtime operation information for creating a +// TagValue. +type CreateTagValueMetadata struct { +} + +// DeleteFolderMetadata: A status object which is used as the `metadata` +// field for the Operation returned by DeleteFolder. +type DeleteFolderMetadata struct { +} + +// DeleteOrganizationMetadata: A status object which is used as the +// `metadata` field for the Operation returned by DeleteOrganization. +type DeleteOrganizationMetadata struct { +} + +// DeleteProjectMetadata: A status object which is used as the +// `metadata` field for the Operation returned by DeleteProject. +type DeleteProjectMetadata struct { +} + +// DeleteTagKeyMetadata: Runtime operation information for deleting a +// TagKey. +type DeleteTagKeyMetadata struct { +} + +// DeleteTagValueMetadata: Runtime operation information for deleting a +// TagValue. +type DeleteTagValueMetadata struct { +} + // Empty: A generic empty message that you can re-use to avoid defining // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For @@ -1367,6 +1562,47 @@ func (s *ListProjectsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MoveFolderMetadata: Metadata pertaining to the Folder move process. +type MoveFolderMetadata struct { + // DestinationParent: The resource name of the folder or organization to + // move the folder to. + DestinationParent string `json:"destinationParent,omitempty"` + + // DisplayName: The display name of the folder. + DisplayName string `json:"displayName,omitempty"` + + // SourceParent: The resource name of the folder's parent. + SourceParent string `json:"sourceParent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DestinationParent") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DestinationParent") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *MoveFolderMetadata) MarshalJSON() ([]byte, error) { + type NoMethod MoveFolderMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MoveProjectMetadata: A status object which is used as the `metadata` +// field for the Operation returned by MoveProject. +type MoveProjectMetadata struct { +} + // Operation: This resource represents a long-running operation that is // the result of a network API call. type Operation struct { @@ -2130,11 +2366,56 @@ func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// UndeleteFolderMetadata: A status object which is used as the +// `metadata` field for the Operation returned by UndeleteFolder. +type UndeleteFolderMetadata struct { +} + +// UndeleteOrganizationMetadata: A status object which is used as the +// `metadata` field for the Operation returned by UndeleteOrganization. +type UndeleteOrganizationMetadata struct { +} + +// UndeleteProjectMetadata: A status object which is used as the +// `metadata` field for the Operation returned by UndeleteProject. +type UndeleteProjectMetadata struct { +} + // UndeleteProjectRequest: The request sent to the UndeleteProject // method. type UndeleteProjectRequest struct { } +// UndeleteTagKeyMetadata: Runtime operation information for undeleting +// a TagKey. +type UndeleteTagKeyMetadata struct { +} + +// UndeleteTagValueMetadata: Runtime operation information for deleting +// a TagValue. +type UndeleteTagValueMetadata struct { +} + +// UpdateFolderMetadata: A status object which is used as the `metadata` +// field for the Operation returned by UpdateFolder. +type UpdateFolderMetadata struct { +} + +// UpdateProjectMetadata: A status object which is used as the +// `metadata` field for the Operation returned by UpdateProject. +type UpdateProjectMetadata struct { +} + +// UpdateTagKeyMetadata: Runtime operation information for updating a +// TagKey. +type UpdateTagKeyMetadata struct { +} + +// UpdateTagValueMetadata: Runtime operation information for updating a +// TagValue. +type UpdateTagValueMetadata struct { +} + // method id "cloudresourcemanager.folders.clearOrgPolicy": type FoldersClearOrgPolicyCall struct { @@ -2181,7 +2462,7 @@ func (c *FoldersClearOrgPolicyCall) Header() http.Header { func (c *FoldersClearOrgPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2325,7 +2606,7 @@ func (c *FoldersGetEffectiveOrgPolicyCall) Header() http.Header { func (c *FoldersGetEffectiveOrgPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2470,7 +2751,7 @@ func (c *FoldersGetOrgPolicyCall) Header() http.Header { func (c *FoldersGetOrgPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2612,7 +2893,7 @@ func (c *FoldersListAvailableOrgPolicyConstraintsCall) Header() http.Header { func (c *FoldersListAvailableOrgPolicyConstraintsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2777,7 +3058,7 @@ func (c *FoldersListOrgPoliciesCall) Header() http.Header { func (c *FoldersListOrgPoliciesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2942,7 +3223,7 @@ func (c *FoldersSetOrgPolicyCall) Header() http.Header { func (c *FoldersSetOrgPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3084,7 +3365,7 @@ func (c *LiensCreateCall) Header() http.Header { func (c *LiensCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3213,7 +3494,7 @@ func (c *LiensDeleteCall) Header() http.Header { func (c *LiensDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3359,7 +3640,7 @@ func (c *LiensGetCall) Header() http.Header { func (c *LiensGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3530,7 +3811,7 @@ func (c *LiensListCall) Header() http.Header { func (c *LiensListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3702,7 +3983,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3838,7 +4119,7 @@ func (c *OrganizationsClearOrgPolicyCall) Header() http.Header { func (c *OrganizationsClearOrgPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3988,7 +4269,7 @@ func (c *OrganizationsGetCall) Header() http.Header { func (c *OrganizationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4128,7 +4409,7 @@ func (c *OrganizationsGetEffectiveOrgPolicyCall) Header() http.Header { func (c *OrganizationsGetEffectiveOrgPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4274,7 +4555,7 @@ func (c *OrganizationsGetIamPolicyCall) Header() http.Header { func (c *OrganizationsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4419,7 +4700,7 @@ func (c *OrganizationsGetOrgPolicyCall) Header() http.Header { func (c *OrganizationsGetOrgPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4561,7 +4842,7 @@ func (c *OrganizationsListAvailableOrgPolicyConstraintsCall) Header() http.Heade func (c *OrganizationsListAvailableOrgPolicyConstraintsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4726,7 +5007,7 @@ func (c *OrganizationsListOrgPoliciesCall) Header() http.Header { func (c *OrganizationsListOrgPoliciesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4890,7 +5171,7 @@ func (c *OrganizationsSearchCall) Header() http.Header { func (c *OrganizationsSearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5044,7 +5325,7 @@ func (c *OrganizationsSetIamPolicyCall) Header() http.Header { func (c *OrganizationsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5187,7 +5468,7 @@ func (c *OrganizationsSetOrgPolicyCall) Header() http.Header { func (c *OrganizationsSetOrgPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5330,7 +5611,7 @@ func (c *OrganizationsTestIamPermissionsCall) Header() http.Header { func (c *OrganizationsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5471,7 +5752,7 @@ func (c *ProjectsClearOrgPolicyCall) Header() http.Header { func (c *ProjectsClearOrgPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5620,7 +5901,7 @@ func (c *ProjectsCreateCall) Header() http.Header { func (c *ProjectsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5756,7 +6037,7 @@ func (c *ProjectsDeleteCall) Header() http.Header { func (c *ProjectsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5898,7 +6179,7 @@ func (c *ProjectsGetCall) Header() http.Header { func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6036,7 +6317,7 @@ func (c *ProjectsGetAncestryCall) Header() http.Header { func (c *ProjectsGetAncestryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6180,7 +6461,7 @@ func (c *ProjectsGetEffectiveOrgPolicyCall) Header() http.Header { func (c *ProjectsGetEffectiveOrgPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6327,7 +6608,7 @@ func (c *ProjectsGetIamPolicyCall) Header() http.Header { func (c *ProjectsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6471,7 +6752,7 @@ func (c *ProjectsGetOrgPolicyCall) Header() http.Header { func (c *ProjectsGetOrgPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6679,7 +6960,7 @@ func (c *ProjectsListCall) Header() http.Header { func (c *ProjectsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6841,7 +7122,7 @@ func (c *ProjectsListAvailableOrgPolicyConstraintsCall) Header() http.Header { func (c *ProjectsListAvailableOrgPolicyConstraintsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7006,7 +7287,7 @@ func (c *ProjectsListOrgPoliciesCall) Header() http.Header { func (c *ProjectsListOrgPoliciesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7204,7 +7485,7 @@ func (c *ProjectsSetIamPolicyCall) Header() http.Header { func (c *ProjectsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7346,7 +7627,7 @@ func (c *ProjectsSetOrgPolicyCall) Header() http.Header { func (c *ProjectsSetOrgPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7490,7 +7771,7 @@ func (c *ProjectsTestIamPermissionsCall) Header() http.Header { func (c *ProjectsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7634,7 +7915,7 @@ func (c *ProjectsUndeleteCall) Header() http.Header { func (c *ProjectsUndeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7775,7 +8056,7 @@ func (c *ProjectsUpdateCall) Header() http.Header { func (c *ProjectsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudresourcemanager/v1beta1/cloudresourcemanager-api.json b/cloudresourcemanager/v1beta1/cloudresourcemanager-api.json index c4e9cb483d3..72707b83367 100644 --- a/cloudresourcemanager/v1beta1/cloudresourcemanager-api.json +++ b/cloudresourcemanager/v1beta1/cloudresourcemanager-api.json @@ -566,7 +566,7 @@ } } }, - "revision": "20200921", + "revision": "20201111", "rootUrl": "https://cloudresourcemanager.googleapis.com/", "schemas": { "Ancestor": { @@ -632,10 +632,6 @@ "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { - "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", - "type": "string" - }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." @@ -654,6 +650,149 @@ }, "type": "object" }, + "CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation": { + "description": "Metadata describing a long running folder operation", + "id": "CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation", + "properties": { + "destinationParent": { + "description": "The resource name of the folder or organization we are either creating the folder under or moving the folder to.", + "type": "string" + }, + "displayName": { + "description": "The display name of the folder.", + "type": "string" + }, + "operationType": { + "description": "The type of this operation.", + "enum": [ + "OPERATION_TYPE_UNSPECIFIED", + "CREATE", + "MOVE" + ], + "enumDescriptions": [ + "Operation type not specified.", + "A create folder operation.", + "A move folder operation." + ], + "type": "string" + }, + "sourceParent": { + "description": "The resource name of the folder's parent. Only applicable when the operation_type is MOVE.", + "type": "string" + } + }, + "type": "object" + }, + "CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation": { + "description": "Metadata describing a long running folder operation", + "id": "CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation", + "properties": { + "destinationParent": { + "description": "The resource name of the folder or organization we are either creating the folder under or moving the folder to.", + "type": "string" + }, + "displayName": { + "description": "The display name of the folder.", + "type": "string" + }, + "operationType": { + "description": "The type of this operation.", + "enum": [ + "OPERATION_TYPE_UNSPECIFIED", + "CREATE", + "MOVE" + ], + "enumDescriptions": [ + "Operation type not specified.", + "A create folder operation.", + "A move folder operation." + ], + "type": "string" + }, + "sourceParent": { + "description": "The resource name of the folder's parent. Only applicable when the operation_type is MOVE.", + "type": "string" + } + }, + "type": "object" + }, + "CreateFolderMetadata": { + "description": "Metadata pertaining to the Folder creation process.", + "id": "CreateFolderMetadata", + "properties": { + "displayName": { + "description": "The display name of the folder.", + "type": "string" + }, + "parent": { + "description": "The resource name of the folder or organization we are creating the folder under.", + "type": "string" + } + }, + "type": "object" + }, + "CreateProjectMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by CreateProject. It provides insight for when significant phases of Project creation have completed.", + "id": "CreateProjectMetadata", + "properties": { + "createTime": { + "description": "Creation time of the project creation workflow.", + "format": "google-datetime", + "type": "string" + }, + "gettable": { + "description": "True if the project can be retrieved using GetProject. No other operations on the project are guaranteed to work until the project creation is complete.", + "type": "boolean" + }, + "ready": { + "description": "True if the project creation process is complete.", + "type": "boolean" + } + }, + "type": "object" + }, + "CreateTagKeyMetadata": { + "description": "Runtime operation information for creating a TagKey.", + "id": "CreateTagKeyMetadata", + "properties": {}, + "type": "object" + }, + "CreateTagValueMetadata": { + "description": "Runtime operation information for creating a TagValue.", + "id": "CreateTagValueMetadata", + "properties": {}, + "type": "object" + }, + "DeleteFolderMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by DeleteFolder.", + "id": "DeleteFolderMetadata", + "properties": {}, + "type": "object" + }, + "DeleteOrganizationMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by DeleteOrganization.", + "id": "DeleteOrganizationMetadata", + "properties": {}, + "type": "object" + }, + "DeleteProjectMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by DeleteProject.", + "id": "DeleteProjectMetadata", + "properties": {}, + "type": "object" + }, + "DeleteTagKeyMetadata": { + "description": "Runtime operation information for deleting a TagKey.", + "id": "DeleteTagKeyMetadata", + "properties": {}, + "type": "object" + }, + "DeleteTagValueMetadata": { + "description": "Runtime operation information for deleting a TagValue.", + "id": "DeleteTagValueMetadata", + "properties": {}, + "type": "object" + }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", "id": "Empty", @@ -830,6 +969,31 @@ }, "type": "object" }, + "MoveFolderMetadata": { + "description": "Metadata pertaining to the Folder move process.", + "id": "MoveFolderMetadata", + "properties": { + "destinationParent": { + "description": "The resource name of the folder or organization to move the folder to.", + "type": "string" + }, + "displayName": { + "description": "The display name of the folder.", + "type": "string" + }, + "sourceParent": { + "description": "The resource name of the folder's parent.", + "type": "string" + } + }, + "type": "object" + }, + "MoveProjectMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by MoveProject.", + "id": "MoveProjectMetadata", + "properties": {}, + "type": "object" + }, "Organization": { "description": "The root node in the resource hierarchy to which a particular entity's (e.g., company) resources belong.", "id": "Organization", @@ -1045,11 +1209,65 @@ }, "type": "object" }, + "UndeleteFolderMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by UndeleteFolder.", + "id": "UndeleteFolderMetadata", + "properties": {}, + "type": "object" + }, + "UndeleteOrganizationMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by UndeleteOrganization.", + "id": "UndeleteOrganizationMetadata", + "properties": {}, + "type": "object" + }, + "UndeleteProjectMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by UndeleteProject.", + "id": "UndeleteProjectMetadata", + "properties": {}, + "type": "object" + }, "UndeleteProjectRequest": { "description": "The request sent to the UndeleteProject method.", "id": "UndeleteProjectRequest", "properties": {}, "type": "object" + }, + "UndeleteTagKeyMetadata": { + "description": "Runtime operation information for undeleting a TagKey.", + "id": "UndeleteTagKeyMetadata", + "properties": {}, + "type": "object" + }, + "UndeleteTagValueMetadata": { + "description": "Runtime operation information for deleting a TagValue.", + "id": "UndeleteTagValueMetadata", + "properties": {}, + "type": "object" + }, + "UpdateFolderMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by UpdateFolder.", + "id": "UpdateFolderMetadata", + "properties": {}, + "type": "object" + }, + "UpdateProjectMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by UpdateProject.", + "id": "UpdateProjectMetadata", + "properties": {}, + "type": "object" + }, + "UpdateTagKeyMetadata": { + "description": "Runtime operation information for updating a TagKey.", + "id": "UpdateTagKeyMetadata", + "properties": {}, + "type": "object" + }, + "UpdateTagValueMetadata": { + "description": "Runtime operation information for updating a TagValue.", + "id": "UpdateTagValueMetadata", + "properties": {}, + "type": "object" } }, "servicePath": "", diff --git a/cloudresourcemanager/v1beta1/cloudresourcemanager-gen.go b/cloudresourcemanager/v1beta1/cloudresourcemanager-gen.go index b114803a78a..a7f4ba621bd 100644 --- a/cloudresourcemanager/v1beta1/cloudresourcemanager-gen.go +++ b/cloudresourcemanager/v1beta1/cloudresourcemanager-gen.go @@ -291,10 +291,6 @@ func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. - BindingId string `json:"bindingId,omitempty"` - // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -344,7 +340,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "BindingId") to + // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -352,7 +348,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BindingId") to include in + // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -367,6 +363,205 @@ func (s *Binding) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation: +// Metadata describing a long running folder operation +type CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation struct { + // DestinationParent: The resource name of the folder or organization we + // are either creating the folder under or moving the folder to. + DestinationParent string `json:"destinationParent,omitempty"` + + // DisplayName: The display name of the folder. + DisplayName string `json:"displayName,omitempty"` + + // OperationType: The type of this operation. + // + // Possible values: + // "OPERATION_TYPE_UNSPECIFIED" - Operation type not specified. + // "CREATE" - A create folder operation. + // "MOVE" - A move folder operation. + OperationType string `json:"operationType,omitempty"` + + // SourceParent: The resource name of the folder's parent. Only + // applicable when the operation_type is MOVE. + SourceParent string `json:"sourceParent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DestinationParent") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DestinationParent") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation) MarshalJSON() ([]byte, error) { + type NoMethod CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation: +// Metadata describing a long running folder operation +type CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation struct { + // DestinationParent: The resource name of the folder or organization we + // are either creating the folder under or moving the folder to. + DestinationParent string `json:"destinationParent,omitempty"` + + // DisplayName: The display name of the folder. + DisplayName string `json:"displayName,omitempty"` + + // OperationType: The type of this operation. + // + // Possible values: + // "OPERATION_TYPE_UNSPECIFIED" - Operation type not specified. + // "CREATE" - A create folder operation. + // "MOVE" - A move folder operation. + OperationType string `json:"operationType,omitempty"` + + // SourceParent: The resource name of the folder's parent. Only + // applicable when the operation_type is MOVE. + SourceParent string `json:"sourceParent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DestinationParent") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DestinationParent") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation) MarshalJSON() ([]byte, error) { + type NoMethod CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CreateFolderMetadata: Metadata pertaining to the Folder creation +// process. +type CreateFolderMetadata struct { + // DisplayName: The display name of the folder. + DisplayName string `json:"displayName,omitempty"` + + // Parent: The resource name of the folder or organization we are + // creating the folder under. + Parent string `json:"parent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisplayName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CreateFolderMetadata) MarshalJSON() ([]byte, error) { + type NoMethod CreateFolderMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CreateProjectMetadata: A status object which is used as the +// `metadata` field for the Operation returned by CreateProject. It +// provides insight for when significant phases of Project creation have +// completed. +type CreateProjectMetadata struct { + // CreateTime: Creation time of the project creation workflow. + CreateTime string `json:"createTime,omitempty"` + + // Gettable: True if the project can be retrieved using GetProject. No + // other operations on the project are guaranteed to work until the + // project creation is complete. + Gettable bool `json:"gettable,omitempty"` + + // Ready: True if the project creation process is complete. + Ready bool `json:"ready,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CreateProjectMetadata) MarshalJSON() ([]byte, error) { + type NoMethod CreateProjectMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CreateTagKeyMetadata: Runtime operation information for creating a +// TagKey. +type CreateTagKeyMetadata struct { +} + +// CreateTagValueMetadata: Runtime operation information for creating a +// TagValue. +type CreateTagValueMetadata struct { +} + +// DeleteFolderMetadata: A status object which is used as the `metadata` +// field for the Operation returned by DeleteFolder. +type DeleteFolderMetadata struct { +} + +// DeleteOrganizationMetadata: A status object which is used as the +// `metadata` field for the Operation returned by DeleteOrganization. +type DeleteOrganizationMetadata struct { +} + +// DeleteProjectMetadata: A status object which is used as the +// `metadata` field for the Operation returned by DeleteProject. +type DeleteProjectMetadata struct { +} + +// DeleteTagKeyMetadata: Runtime operation information for deleting a +// TagKey. +type DeleteTagKeyMetadata struct { +} + +// DeleteTagValueMetadata: Runtime operation information for deleting a +// TagValue. +type DeleteTagValueMetadata struct { +} + // Empty: A generic empty message that you can re-use to avoid defining // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For @@ -729,6 +924,47 @@ func (s *ListProjectsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MoveFolderMetadata: Metadata pertaining to the Folder move process. +type MoveFolderMetadata struct { + // DestinationParent: The resource name of the folder or organization to + // move the folder to. + DestinationParent string `json:"destinationParent,omitempty"` + + // DisplayName: The display name of the folder. + DisplayName string `json:"displayName,omitempty"` + + // SourceParent: The resource name of the folder's parent. + SourceParent string `json:"sourceParent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DestinationParent") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DestinationParent") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *MoveFolderMetadata) MarshalJSON() ([]byte, error) { + type NoMethod MoveFolderMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MoveProjectMetadata: A status object which is used as the `metadata` +// field for the Operation returned by MoveProject. +type MoveProjectMetadata struct { +} + // Organization: The root node in the resource hierarchy to which a // particular entity's (e.g., company) resources belong. type Organization struct { @@ -1194,11 +1430,56 @@ func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// UndeleteFolderMetadata: A status object which is used as the +// `metadata` field for the Operation returned by UndeleteFolder. +type UndeleteFolderMetadata struct { +} + +// UndeleteOrganizationMetadata: A status object which is used as the +// `metadata` field for the Operation returned by UndeleteOrganization. +type UndeleteOrganizationMetadata struct { +} + +// UndeleteProjectMetadata: A status object which is used as the +// `metadata` field for the Operation returned by UndeleteProject. +type UndeleteProjectMetadata struct { +} + // UndeleteProjectRequest: The request sent to the UndeleteProject // method. type UndeleteProjectRequest struct { } +// UndeleteTagKeyMetadata: Runtime operation information for undeleting +// a TagKey. +type UndeleteTagKeyMetadata struct { +} + +// UndeleteTagValueMetadata: Runtime operation information for deleting +// a TagValue. +type UndeleteTagValueMetadata struct { +} + +// UpdateFolderMetadata: A status object which is used as the `metadata` +// field for the Operation returned by UpdateFolder. +type UpdateFolderMetadata struct { +} + +// UpdateProjectMetadata: A status object which is used as the +// `metadata` field for the Operation returned by UpdateProject. +type UpdateProjectMetadata struct { +} + +// UpdateTagKeyMetadata: Runtime operation information for updating a +// TagKey. +type UpdateTagKeyMetadata struct { +} + +// UpdateTagValueMetadata: Runtime operation information for updating a +// TagValue. +type UpdateTagValueMetadata struct { +} + // method id "cloudresourcemanager.organizations.get": type OrganizationsGetCall struct { @@ -1263,7 +1544,7 @@ func (c *OrganizationsGetCall) Header() http.Header { func (c *OrganizationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1407,7 +1688,7 @@ func (c *OrganizationsGetIamPolicyCall) Header() http.Header { func (c *OrganizationsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1587,7 +1868,7 @@ func (c *OrganizationsListCall) Header() http.Header { func (c *OrganizationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1750,7 +2031,7 @@ func (c *OrganizationsSetIamPolicyCall) Header() http.Header { func (c *OrganizationsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1892,7 +2173,7 @@ func (c *OrganizationsTestIamPermissionsCall) Header() http.Header { func (c *OrganizationsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2034,7 +2315,7 @@ func (c *OrganizationsUpdateCall) Header() http.Header { func (c *OrganizationsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2188,7 +2469,7 @@ func (c *ProjectsCreateCall) Header() http.Header { func (c *ProjectsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2330,7 +2611,7 @@ func (c *ProjectsDeleteCall) Header() http.Header { func (c *ProjectsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2472,7 +2753,7 @@ func (c *ProjectsGetCall) Header() http.Header { func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2610,7 +2891,7 @@ func (c *ProjectsGetAncestryCall) Header() http.Header { func (c *ProjectsGetAncestryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2753,7 +3034,7 @@ func (c *ProjectsGetIamPolicyCall) Header() http.Header { func (c *ProjectsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2958,7 +3239,7 @@ func (c *ProjectsListCall) Header() http.Header { func (c *ProjectsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3149,7 +3430,7 @@ func (c *ProjectsSetIamPolicyCall) Header() http.Header { func (c *ProjectsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3289,7 +3570,7 @@ func (c *ProjectsTestIamPermissionsCall) Header() http.Header { func (c *ProjectsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3433,7 +3714,7 @@ func (c *ProjectsUndeleteCall) Header() http.Header { func (c *ProjectsUndeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3574,7 +3855,7 @@ func (c *ProjectsUpdateCall) Header() http.Header { func (c *ProjectsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudresourcemanager/v2/cloudresourcemanager-api.json b/cloudresourcemanager/v2/cloudresourcemanager-api.json index 7a12c30bfd6..d0ebae28dea 100644 --- a/cloudresourcemanager/v2/cloudresourcemanager-api.json +++ b/cloudresourcemanager/v2/cloudresourcemanager-api.json @@ -111,7 +111,7 @@ "folders": { "methods": { "create": { - "description": "Creates a Folder in the resource hierarchy. Returns an Operation which can be used to track the progress of the folder creation workflow. Upon success the Operation.response field will be populated with the created Folder. In order to succeed, the addition of this new Folder must not violate the Folder naming, height or fanout constraints. + The Folder's display_name must be distinct from all other Folder's that share its parent. + The addition of the Folder must not cause the active Folder hierarchy to exceed a height of 10. Note, the full active + deleted Folder hierarchy is allowed to reach a height of 20; this provides additional headroom when moving folders that contain deleted folders. + The addition of the Folder must not cause the total number of Folders under its parent to exceed 300. If the operation fails due to a folder constraint violation, some errors may be returned by the CreateFolder request, with status code FAILED_PRECONDITION and an error description. Other folder constraint violations will be communicated in the Operation, with the specific PreconditionFailure returned via the details list in the Operation.error field. The caller must have `resourcemanager.folders.create` permission on the identified parent.", + "description": "Creates a Folder in the resource hierarchy. Returns an Operation which can be used to track the progress of the folder creation workflow. Upon success the Operation.response field will be populated with the created Folder. In order to succeed, the addition of this new Folder must not violate the Folder naming, height or fanout constraints. + The Folder's display_name must be distinct from all other Folders that share its parent. + The addition of the Folder must not cause the active Folder hierarchy to exceed a height of 10. Note, the full active + deleted Folder hierarchy is allowed to reach a height of 20; this provides additional headroom when moving folders that contain deleted folders. + The addition of the Folder must not cause the total number of Folders under its parent to exceed 300. If the operation fails due to a folder constraint violation, some errors may be returned by the CreateFolder request, with status code FAILED_PRECONDITION and an error description. Other folder constraint violations will be communicated in the Operation, with the specific PreconditionFailure returned via the details list in the Operation.error field. The caller must have `resourcemanager.folders.create` permission on the identified parent.", "flatPath": "v2/folders", "httpMethod": "POST", "id": "cloudresourcemanager.folders.create", @@ -281,7 +281,7 @@ ] }, "patch": { - "description": "Updates a Folder, changing its display_name. Changes to the folder display_name will be rejected if they violate either the display_name formatting rules or naming constraints described in the CreateFolder documentation. The Folder's display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be no longer than 30 characters. This is captured by the regular expression: [\\p{L}\\p{N}]([\\p{L}\\p{N}_- ]{0,28}[\\p{L}\\p{N}])?. The caller must have `resourcemanager.folders.update` permission on the identified folder. If the update fails due to the unique name constraint then a PreconditionFailure explaining this violation will be returned in the Status.details field.", + "description": "Updates a Folder, changing its display_name. Changes to the folder display_name will be rejected if they violate either the display_name formatting rules or naming constraints described in the CreateFolder documentation. The Folder's display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be between 3 and 30 characters. This is captured by the regular expression: `\\p{L}\\p{N}{1,28}[\\p{L}\\p{N}]`. The caller must have `resourcemanager.folders.update` permission on the identified folder. If the update fails due to the unique name constraint then a PreconditionFailure explaining this violation will be returned in the Status.details field.", "flatPath": "v2/folders/{foldersId}", "httpMethod": "PATCH", "id": "cloudresourcemanager.folders.patch", @@ -450,7 +450,7 @@ } } }, - "revision": "20201019", + "revision": "20201111", "rootUrl": "https://cloudresourcemanager.googleapis.com/", "schemas": { "AuditConfig": { @@ -505,10 +505,6 @@ "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { - "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", - "type": "string" - }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." @@ -527,6 +523,149 @@ }, "type": "object" }, + "CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation": { + "description": "Metadata describing a long running folder operation", + "id": "CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation", + "properties": { + "destinationParent": { + "description": "The resource name of the folder or organization we are either creating the folder under or moving the folder to.", + "type": "string" + }, + "displayName": { + "description": "The display name of the folder.", + "type": "string" + }, + "operationType": { + "description": "The type of this operation.", + "enum": [ + "OPERATION_TYPE_UNSPECIFIED", + "CREATE", + "MOVE" + ], + "enumDescriptions": [ + "Operation type not specified.", + "A create folder operation.", + "A move folder operation." + ], + "type": "string" + }, + "sourceParent": { + "description": "The resource name of the folder's parent. Only applicable when the operation_type is MOVE.", + "type": "string" + } + }, + "type": "object" + }, + "CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation": { + "description": "Metadata describing a long running folder operation", + "id": "CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation", + "properties": { + "destinationParent": { + "description": "The resource name of the folder or organization we are either creating the folder under or moving the folder to.", + "type": "string" + }, + "displayName": { + "description": "The display name of the folder.", + "type": "string" + }, + "operationType": { + "description": "The type of this operation.", + "enum": [ + "OPERATION_TYPE_UNSPECIFIED", + "CREATE", + "MOVE" + ], + "enumDescriptions": [ + "Operation type not specified.", + "A create folder operation.", + "A move folder operation." + ], + "type": "string" + }, + "sourceParent": { + "description": "The resource name of the folder's parent. Only applicable when the operation_type is MOVE.", + "type": "string" + } + }, + "type": "object" + }, + "CreateFolderMetadata": { + "description": "Metadata pertaining to the Folder creation process.", + "id": "CreateFolderMetadata", + "properties": { + "displayName": { + "description": "The display name of the folder.", + "type": "string" + }, + "parent": { + "description": "The resource name of the folder or organization we are creating the folder under.", + "type": "string" + } + }, + "type": "object" + }, + "CreateProjectMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by CreateProject. It provides insight for when significant phases of Project creation have completed.", + "id": "CreateProjectMetadata", + "properties": { + "createTime": { + "description": "Creation time of the project creation workflow.", + "format": "google-datetime", + "type": "string" + }, + "gettable": { + "description": "True if the project can be retrieved using GetProject. No other operations on the project are guaranteed to work until the project creation is complete.", + "type": "boolean" + }, + "ready": { + "description": "True if the project creation process is complete.", + "type": "boolean" + } + }, + "type": "object" + }, + "CreateTagKeyMetadata": { + "description": "Runtime operation information for creating a TagKey.", + "id": "CreateTagKeyMetadata", + "properties": {}, + "type": "object" + }, + "CreateTagValueMetadata": { + "description": "Runtime operation information for creating a TagValue.", + "id": "CreateTagValueMetadata", + "properties": {}, + "type": "object" + }, + "DeleteFolderMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by DeleteFolder.", + "id": "DeleteFolderMetadata", + "properties": {}, + "type": "object" + }, + "DeleteOrganizationMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by DeleteOrganization.", + "id": "DeleteOrganizationMetadata", + "properties": {}, + "type": "object" + }, + "DeleteProjectMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by DeleteProject.", + "id": "DeleteProjectMetadata", + "properties": {}, + "type": "object" + }, + "DeleteTagKeyMetadata": { + "description": "Runtime operation information for deleting a TagKey.", + "id": "DeleteTagKeyMetadata", + "properties": {}, + "type": "object" + }, + "DeleteTagValueMetadata": { + "description": "Runtime operation information for deleting a TagValue.", + "id": "DeleteTagValueMetadata", + "properties": {}, + "type": "object" + }, "Expr": { "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", "id": "Expr", @@ -561,7 +700,7 @@ "type": "string" }, "displayName": { - "description": "The folder’s display name. A folder’s display name must be unique amongst its siblings, e.g. no two folders with the same parent can share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be no longer than 30 characters. This is captured by the regular expression: [\\p{L}\\p{N}]([\\p{L}\\p{N}_- ]{0,28}[\\p{L}\\p{N}])?.", + "description": "The folder's display name. A folder's display name must be unique amongst its siblings, e.g. no two folders with the same parent can share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be no longer than 30 characters. This is captured by the regular expression: `[\\p{L}\\p{N}]([\\p{L}\\p{N}_- ]{0,28}[\\p{L}\\p{N}])?`.", "type": "string" }, "lifecycleState": { @@ -585,7 +724,7 @@ "type": "string" }, "parent": { - "description": "Required. The Folder’s parent's resource name. Updates to the folder's parent must be performed via MoveFolder.", + "description": "Required. The Folder's parent's resource name. Updates to the folder's parent must be performed via MoveFolder.", "type": "string" } }, @@ -700,6 +839,25 @@ }, "type": "object" }, + "MoveFolderMetadata": { + "description": "Metadata pertaining to the Folder move process.", + "id": "MoveFolderMetadata", + "properties": { + "destinationParent": { + "description": "The resource name of the folder or organization to move the folder to.", + "type": "string" + }, + "displayName": { + "description": "The display name of the folder.", + "type": "string" + }, + "sourceParent": { + "description": "The resource name of the folder's parent.", + "type": "string" + } + }, + "type": "object" + }, "MoveFolderRequest": { "description": "The MoveFolder request message.", "id": "MoveFolderRequest", @@ -711,6 +869,12 @@ }, "type": "object" }, + "MoveProjectMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by MoveProject.", + "id": "MoveProjectMetadata", + "properties": {}, + "type": "object" + }, "Operation": { "description": "This resource represents a long-running operation that is the result of a network API call.", "id": "Operation", @@ -906,11 +1070,65 @@ }, "type": "object" }, + "UndeleteFolderMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by UndeleteFolder.", + "id": "UndeleteFolderMetadata", + "properties": {}, + "type": "object" + }, "UndeleteFolderRequest": { "description": "The UndeleteFolder request message.", "id": "UndeleteFolderRequest", "properties": {}, "type": "object" + }, + "UndeleteOrganizationMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by UndeleteOrganization.", + "id": "UndeleteOrganizationMetadata", + "properties": {}, + "type": "object" + }, + "UndeleteProjectMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by UndeleteProject.", + "id": "UndeleteProjectMetadata", + "properties": {}, + "type": "object" + }, + "UndeleteTagKeyMetadata": { + "description": "Runtime operation information for undeleting a TagKey.", + "id": "UndeleteTagKeyMetadata", + "properties": {}, + "type": "object" + }, + "UndeleteTagValueMetadata": { + "description": "Runtime operation information for deleting a TagValue.", + "id": "UndeleteTagValueMetadata", + "properties": {}, + "type": "object" + }, + "UpdateFolderMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by UpdateFolder.", + "id": "UpdateFolderMetadata", + "properties": {}, + "type": "object" + }, + "UpdateProjectMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by UpdateProject.", + "id": "UpdateProjectMetadata", + "properties": {}, + "type": "object" + }, + "UpdateTagKeyMetadata": { + "description": "Runtime operation information for updating a TagKey.", + "id": "UpdateTagKeyMetadata", + "properties": {}, + "type": "object" + }, + "UpdateTagValueMetadata": { + "description": "Runtime operation information for updating a TagValue.", + "id": "UpdateTagValueMetadata", + "properties": {}, + "type": "object" } }, "servicePath": "", diff --git a/cloudresourcemanager/v2/cloudresourcemanager-gen.go b/cloudresourcemanager/v2/cloudresourcemanager-gen.go index 37765ff060a..8a9ff317263 100644 --- a/cloudresourcemanager/v2/cloudresourcemanager-gen.go +++ b/cloudresourcemanager/v2/cloudresourcemanager-gen.go @@ -263,10 +263,6 @@ func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. - BindingId string `json:"bindingId,omitempty"` - // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -316,7 +312,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "BindingId") to + // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -324,7 +320,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BindingId") to include in + // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -339,6 +335,205 @@ func (s *Binding) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation: +// Metadata describing a long running folder operation +type CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation struct { + // DestinationParent: The resource name of the folder or organization we + // are either creating the folder under or moving the folder to. + DestinationParent string `json:"destinationParent,omitempty"` + + // DisplayName: The display name of the folder. + DisplayName string `json:"displayName,omitempty"` + + // OperationType: The type of this operation. + // + // Possible values: + // "OPERATION_TYPE_UNSPECIFIED" - Operation type not specified. + // "CREATE" - A create folder operation. + // "MOVE" - A move folder operation. + OperationType string `json:"operationType,omitempty"` + + // SourceParent: The resource name of the folder's parent. Only + // applicable when the operation_type is MOVE. + SourceParent string `json:"sourceParent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DestinationParent") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DestinationParent") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation) MarshalJSON() ([]byte, error) { + type NoMethod CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation: +// Metadata describing a long running folder operation +type CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation struct { + // DestinationParent: The resource name of the folder or organization we + // are either creating the folder under or moving the folder to. + DestinationParent string `json:"destinationParent,omitempty"` + + // DisplayName: The display name of the folder. + DisplayName string `json:"displayName,omitempty"` + + // OperationType: The type of this operation. + // + // Possible values: + // "OPERATION_TYPE_UNSPECIFIED" - Operation type not specified. + // "CREATE" - A create folder operation. + // "MOVE" - A move folder operation. + OperationType string `json:"operationType,omitempty"` + + // SourceParent: The resource name of the folder's parent. Only + // applicable when the operation_type is MOVE. + SourceParent string `json:"sourceParent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DestinationParent") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DestinationParent") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation) MarshalJSON() ([]byte, error) { + type NoMethod CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CreateFolderMetadata: Metadata pertaining to the Folder creation +// process. +type CreateFolderMetadata struct { + // DisplayName: The display name of the folder. + DisplayName string `json:"displayName,omitempty"` + + // Parent: The resource name of the folder or organization we are + // creating the folder under. + Parent string `json:"parent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisplayName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CreateFolderMetadata) MarshalJSON() ([]byte, error) { + type NoMethod CreateFolderMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CreateProjectMetadata: A status object which is used as the +// `metadata` field for the Operation returned by CreateProject. It +// provides insight for when significant phases of Project creation have +// completed. +type CreateProjectMetadata struct { + // CreateTime: Creation time of the project creation workflow. + CreateTime string `json:"createTime,omitempty"` + + // Gettable: True if the project can be retrieved using GetProject. No + // other operations on the project are guaranteed to work until the + // project creation is complete. + Gettable bool `json:"gettable,omitempty"` + + // Ready: True if the project creation process is complete. + Ready bool `json:"ready,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CreateProjectMetadata) MarshalJSON() ([]byte, error) { + type NoMethod CreateProjectMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CreateTagKeyMetadata: Runtime operation information for creating a +// TagKey. +type CreateTagKeyMetadata struct { +} + +// CreateTagValueMetadata: Runtime operation information for creating a +// TagValue. +type CreateTagValueMetadata struct { +} + +// DeleteFolderMetadata: A status object which is used as the `metadata` +// field for the Operation returned by DeleteFolder. +type DeleteFolderMetadata struct { +} + +// DeleteOrganizationMetadata: A status object which is used as the +// `metadata` field for the Operation returned by DeleteOrganization. +type DeleteOrganizationMetadata struct { +} + +// DeleteProjectMetadata: A status object which is used as the +// `metadata` field for the Operation returned by DeleteProject. +type DeleteProjectMetadata struct { +} + +// DeleteTagKeyMetadata: Runtime operation information for deleting a +// TagKey. +type DeleteTagKeyMetadata struct { +} + +// DeleteTagValueMetadata: Runtime operation information for deleting a +// TagValue. +type DeleteTagValueMetadata struct { +} + // Expr: Represents a textual expression in the Common Expression // Language (CEL) syntax. CEL is a C-like expression language. The // syntax and semantics of CEL are documented at @@ -406,13 +601,13 @@ type Folder struct { // Assigned by the server. CreateTime string `json:"createTime,omitempty"` - // DisplayName: The folder’s display name. A folder’s display name - // must be unique amongst its siblings, e.g. no two folders with the - // same parent can share the same display name. The display name must - // start and end with a letter or digit, may contain letters, digits, - // spaces, hyphens and underscores and can be no longer than 30 - // characters. This is captured by the regular expression: - // [\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?. + // DisplayName: The folder's display name. A folder's display name must + // be unique amongst its siblings, e.g. no two folders with the same + // parent can share the same display name. The display name must start + // and end with a letter or digit, may contain letters, digits, spaces, + // hyphens and underscores and can be no longer than 30 characters. This + // is captured by the regular expression: `[\p{L}\p{N}]([\p{L}\p{N}_- + // ]{0,28}[\p{L}\p{N}])?`. DisplayName string `json:"displayName,omitempty"` // LifecycleState: Output only. The lifecycle state of the folder. @@ -430,8 +625,8 @@ type Folder struct { // `folders/{folder_id}`, for example: "folders/1234". Name string `json:"name,omitempty"` - // Parent: Required. The Folder’s parent's resource name. Updates to - // the folder's parent must be performed via MoveFolder. + // Parent: Required. The Folder's parent's resource name. Updates to the + // folder's parent must be performed via MoveFolder. Parent string `json:"parent,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -661,6 +856,42 @@ func (s *ListFoldersResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MoveFolderMetadata: Metadata pertaining to the Folder move process. +type MoveFolderMetadata struct { + // DestinationParent: The resource name of the folder or organization to + // move the folder to. + DestinationParent string `json:"destinationParent,omitempty"` + + // DisplayName: The display name of the folder. + DisplayName string `json:"displayName,omitempty"` + + // SourceParent: The resource name of the folder's parent. + SourceParent string `json:"sourceParent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DestinationParent") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DestinationParent") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *MoveFolderMetadata) MarshalJSON() ([]byte, error) { + type NoMethod MoveFolderMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // MoveFolderRequest: The MoveFolder request message. type MoveFolderRequest struct { // DestinationParent: Required. The resource name of the Folder or @@ -692,6 +923,11 @@ func (s *MoveFolderRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MoveProjectMetadata: A status object which is used as the `metadata` +// field for the Operation returned by MoveProject. +type MoveProjectMetadata struct { +} + // Operation: This resource represents a long-running operation that is // the result of a network API call. type Operation struct { @@ -1132,10 +1368,55 @@ func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// UndeleteFolderMetadata: A status object which is used as the +// `metadata` field for the Operation returned by UndeleteFolder. +type UndeleteFolderMetadata struct { +} + // UndeleteFolderRequest: The UndeleteFolder request message. type UndeleteFolderRequest struct { } +// UndeleteOrganizationMetadata: A status object which is used as the +// `metadata` field for the Operation returned by UndeleteOrganization. +type UndeleteOrganizationMetadata struct { +} + +// UndeleteProjectMetadata: A status object which is used as the +// `metadata` field for the Operation returned by UndeleteProject. +type UndeleteProjectMetadata struct { +} + +// UndeleteTagKeyMetadata: Runtime operation information for undeleting +// a TagKey. +type UndeleteTagKeyMetadata struct { +} + +// UndeleteTagValueMetadata: Runtime operation information for deleting +// a TagValue. +type UndeleteTagValueMetadata struct { +} + +// UpdateFolderMetadata: A status object which is used as the `metadata` +// field for the Operation returned by UpdateFolder. +type UpdateFolderMetadata struct { +} + +// UpdateProjectMetadata: A status object which is used as the +// `metadata` field for the Operation returned by UpdateProject. +type UpdateProjectMetadata struct { +} + +// UpdateTagKeyMetadata: Runtime operation information for updating a +// TagKey. +type UpdateTagKeyMetadata struct { +} + +// UpdateTagValueMetadata: Runtime operation information for updating a +// TagValue. +type UpdateTagValueMetadata struct { +} + // method id "cloudresourcemanager.folders.create": type FoldersCreateCall struct { @@ -1152,17 +1433,17 @@ type FoldersCreateCall struct { // populated with the created Folder. In order to succeed, the addition // of this new Folder must not violate the Folder naming, height or // fanout constraints. + The Folder's display_name must be distinct from -// all other Folder's that share its parent. + The addition of the -// Folder must not cause the active Folder hierarchy to exceed a height -// of 10. Note, the full active + deleted Folder hierarchy is allowed to -// reach a height of 20; this provides additional headroom when moving -// folders that contain deleted folders. + The addition of the Folder -// must not cause the total number of Folders under its parent to exceed -// 300. If the operation fails due to a folder constraint violation, -// some errors may be returned by the CreateFolder request, with status -// code FAILED_PRECONDITION and an error description. Other folder -// constraint violations will be communicated in the Operation, with the -// specific PreconditionFailure returned via the details list in the +// all other Folders that share its parent. + The addition of the Folder +// must not cause the active Folder hierarchy to exceed a height of 10. +// Note, the full active + deleted Folder hierarchy is allowed to reach +// a height of 20; this provides additional headroom when moving folders +// that contain deleted folders. + The addition of the Folder must not +// cause the total number of Folders under its parent to exceed 300. If +// the operation fails due to a folder constraint violation, some errors +// may be returned by the CreateFolder request, with status code +// FAILED_PRECONDITION and an error description. Other folder constraint +// violations will be communicated in the Operation, with the specific +// PreconditionFailure returned via the details list in the // Operation.error field. The caller must have // `resourcemanager.folders.create` permission on the identified parent. func (r *FoldersService) Create(folder *Folder) *FoldersCreateCall { @@ -1206,7 +1487,7 @@ func (c *FoldersCreateCall) Header() http.Header { func (c *FoldersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1267,7 +1548,7 @@ func (c *FoldersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) } return ret, nil // { - // "description": "Creates a Folder in the resource hierarchy. Returns an Operation which can be used to track the progress of the folder creation workflow. Upon success the Operation.response field will be populated with the created Folder. In order to succeed, the addition of this new Folder must not violate the Folder naming, height or fanout constraints. + The Folder's display_name must be distinct from all other Folder's that share its parent. + The addition of the Folder must not cause the active Folder hierarchy to exceed a height of 10. Note, the full active + deleted Folder hierarchy is allowed to reach a height of 20; this provides additional headroom when moving folders that contain deleted folders. + The addition of the Folder must not cause the total number of Folders under its parent to exceed 300. If the operation fails due to a folder constraint violation, some errors may be returned by the CreateFolder request, with status code FAILED_PRECONDITION and an error description. Other folder constraint violations will be communicated in the Operation, with the specific PreconditionFailure returned via the details list in the Operation.error field. The caller must have `resourcemanager.folders.create` permission on the identified parent.", + // "description": "Creates a Folder in the resource hierarchy. Returns an Operation which can be used to track the progress of the folder creation workflow. Upon success the Operation.response field will be populated with the created Folder. In order to succeed, the addition of this new Folder must not violate the Folder naming, height or fanout constraints. + The Folder's display_name must be distinct from all other Folders that share its parent. + The addition of the Folder must not cause the active Folder hierarchy to exceed a height of 10. Note, the full active + deleted Folder hierarchy is allowed to reach a height of 20; this provides additional headroom when moving folders that contain deleted folders. + The addition of the Folder must not cause the total number of Folders under its parent to exceed 300. If the operation fails due to a folder constraint violation, some errors may be returned by the CreateFolder request, with status code FAILED_PRECONDITION and an error description. Other folder constraint violations will be communicated in the Operation, with the specific PreconditionFailure returned via the details list in the Operation.error field. The caller must have `resourcemanager.folders.create` permission on the identified parent.", // "flatPath": "v2/folders", // "httpMethod": "POST", // "id": "cloudresourcemanager.folders.create", @@ -1342,7 +1623,7 @@ func (c *FoldersDeleteCall) Header() http.Header { func (c *FoldersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1486,7 +1767,7 @@ func (c *FoldersGetCall) Header() http.Header { func (c *FoldersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1627,7 +1908,7 @@ func (c *FoldersGetIamPolicyCall) Header() http.Header { func (c *FoldersGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1814,7 +2095,7 @@ func (c *FoldersListCall) Header() http.Header { func (c *FoldersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1993,7 +2274,7 @@ func (c *FoldersMoveCall) Header() http.Header { func (c *FoldersMoveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2103,9 +2384,9 @@ type FoldersPatchCall struct { // display_name formatting rules or naming constraints described in the // CreateFolder documentation. The Folder's display name must start and // end with a letter or digit, may contain letters, digits, spaces, -// hyphens and underscores and can be no longer than 30 characters. This -// is captured by the regular expression: [\p{L}\p{N}]([\p{L}\p{N}_- -// ]{0,28}[\p{L}\p{N}])?. The caller must have +// hyphens and underscores and can be between 3 and 30 characters. This +// is captured by the regular expression: +// `\p{L}\p{N}{1,28}[\p{L}\p{N}]`. The caller must have // `resourcemanager.folders.update` permission on the identified folder. // If the update fails due to the unique name constraint then a // PreconditionFailure explaining this violation will be returned in the @@ -2151,7 +2432,7 @@ func (c *FoldersPatchCall) Header() http.Header { func (c *FoldersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2215,7 +2496,7 @@ func (c *FoldersPatchCall) Do(opts ...googleapi.CallOption) (*Folder, error) { } return ret, nil // { - // "description": "Updates a Folder, changing its display_name. Changes to the folder display_name will be rejected if they violate either the display_name formatting rules or naming constraints described in the CreateFolder documentation. The Folder's display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be no longer than 30 characters. This is captured by the regular expression: [\\p{L}\\p{N}]([\\p{L}\\p{N}_- ]{0,28}[\\p{L}\\p{N}])?. The caller must have `resourcemanager.folders.update` permission on the identified folder. If the update fails due to the unique name constraint then a PreconditionFailure explaining this violation will be returned in the Status.details field.", + // "description": "Updates a Folder, changing its display_name. Changes to the folder display_name will be rejected if they violate either the display_name formatting rules or naming constraints described in the CreateFolder documentation. The Folder's display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be between 3 and 30 characters. This is captured by the regular expression: `\\p{L}\\p{N}{1,28}[\\p{L}\\p{N}]`. The caller must have `resourcemanager.folders.update` permission on the identified folder. If the update fails due to the unique name constraint then a PreconditionFailure explaining this violation will be returned in the Status.details field.", // "flatPath": "v2/folders/{foldersId}", // "httpMethod": "PATCH", // "id": "cloudresourcemanager.folders.patch", @@ -2299,7 +2580,7 @@ func (c *FoldersSearchCall) Header() http.Header { func (c *FoldersSearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2452,7 +2733,7 @@ func (c *FoldersSetIamPolicyCall) Header() http.Header { func (c *FoldersSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2595,7 +2876,7 @@ func (c *FoldersTestIamPermissionsCall) Header() http.Header { func (c *FoldersTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2742,7 +3023,7 @@ func (c *FoldersUndeleteCall) Header() http.Header { func (c *FoldersUndeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2893,7 +3174,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudresourcemanager/v2beta1/cloudresourcemanager-api.json b/cloudresourcemanager/v2beta1/cloudresourcemanager-api.json index c2dfa0ac84e..ca183733c19 100644 --- a/cloudresourcemanager/v2beta1/cloudresourcemanager-api.json +++ b/cloudresourcemanager/v2beta1/cloudresourcemanager-api.json @@ -111,7 +111,7 @@ "folders": { "methods": { "create": { - "description": "Creates a Folder in the resource hierarchy. Returns an Operation which can be used to track the progress of the folder creation workflow. Upon success the Operation.response field will be populated with the created Folder. In order to succeed, the addition of this new Folder must not violate the Folder naming, height or fanout constraints. + The Folder's display_name must be distinct from all other Folder's that share its parent. + The addition of the Folder must not cause the active Folder hierarchy to exceed a height of 10. Note, the full active + deleted Folder hierarchy is allowed to reach a height of 20; this provides additional headroom when moving folders that contain deleted folders. + The addition of the Folder must not cause the total number of Folders under its parent to exceed 300. If the operation fails due to a folder constraint violation, some errors may be returned by the CreateFolder request, with status code FAILED_PRECONDITION and an error description. Other folder constraint violations will be communicated in the Operation, with the specific PreconditionFailure returned via the details list in the Operation.error field. The caller must have `resourcemanager.folders.create` permission on the identified parent.", + "description": "Creates a Folder in the resource hierarchy. Returns an Operation which can be used to track the progress of the folder creation workflow. Upon success the Operation.response field will be populated with the created Folder. In order to succeed, the addition of this new Folder must not violate the Folder naming, height or fanout constraints. + The Folder's display_name must be distinct from all other Folders that share its parent. + The addition of the Folder must not cause the active Folder hierarchy to exceed a height of 10. Note, the full active + deleted Folder hierarchy is allowed to reach a height of 20; this provides additional headroom when moving folders that contain deleted folders. + The addition of the Folder must not cause the total number of Folders under its parent to exceed 300. If the operation fails due to a folder constraint violation, some errors may be returned by the CreateFolder request, with status code FAILED_PRECONDITION and an error description. Other folder constraint violations will be communicated in the Operation, with the specific PreconditionFailure returned via the details list in the Operation.error field. The caller must have `resourcemanager.folders.create` permission on the identified parent.", "flatPath": "v2/folders", "httpMethod": "POST", "id": "cloudresourcemanager.folders.create", @@ -281,7 +281,7 @@ ] }, "patch": { - "description": "Updates a Folder, changing its display_name. Changes to the folder display_name will be rejected if they violate either the display_name formatting rules or naming constraints described in the CreateFolder documentation. The Folder's display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be no longer than 30 characters. This is captured by the regular expression: [\\p{L}\\p{N}]([\\p{L}\\p{N}_- ]{0,28}[\\p{L}\\p{N}])?. The caller must have `resourcemanager.folders.update` permission on the identified folder. If the update fails due to the unique name constraint then a PreconditionFailure explaining this violation will be returned in the Status.details field.", + "description": "Updates a Folder, changing its display_name. Changes to the folder display_name will be rejected if they violate either the display_name formatting rules or naming constraints described in the CreateFolder documentation. The Folder's display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be between 3 and 30 characters. This is captured by the regular expression: `\\p{L}\\p{N}{1,28}[\\p{L}\\p{N}]`. The caller must have `resourcemanager.folders.update` permission on the identified folder. If the update fails due to the unique name constraint then a PreconditionFailure explaining this violation will be returned in the Status.details field.", "flatPath": "v2/folders/{foldersId}", "httpMethod": "PATCH", "id": "cloudresourcemanager.folders.patch", @@ -450,7 +450,7 @@ } } }, - "revision": "20201019", + "revision": "20201111", "rootUrl": "https://cloudresourcemanager.googleapis.com/", "schemas": { "AuditConfig": { @@ -505,10 +505,6 @@ "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { - "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", - "type": "string" - }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." @@ -527,6 +523,149 @@ }, "type": "object" }, + "CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation": { + "description": "Metadata describing a long running folder operation", + "id": "CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation", + "properties": { + "destinationParent": { + "description": "The resource name of the folder or organization we are either creating the folder under or moving the folder to.", + "type": "string" + }, + "displayName": { + "description": "The display name of the folder.", + "type": "string" + }, + "operationType": { + "description": "The type of this operation.", + "enum": [ + "OPERATION_TYPE_UNSPECIFIED", + "CREATE", + "MOVE" + ], + "enumDescriptions": [ + "Operation type not specified.", + "A create folder operation.", + "A move folder operation." + ], + "type": "string" + }, + "sourceParent": { + "description": "The resource name of the folder's parent. Only applicable when the operation_type is MOVE.", + "type": "string" + } + }, + "type": "object" + }, + "CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation": { + "description": "Metadata describing a long running folder operation", + "id": "CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation", + "properties": { + "destinationParent": { + "description": "The resource name of the folder or organization we are either creating the folder under or moving the folder to.", + "type": "string" + }, + "displayName": { + "description": "The display name of the folder.", + "type": "string" + }, + "operationType": { + "description": "The type of this operation.", + "enum": [ + "OPERATION_TYPE_UNSPECIFIED", + "CREATE", + "MOVE" + ], + "enumDescriptions": [ + "Operation type not specified.", + "A create folder operation.", + "A move folder operation." + ], + "type": "string" + }, + "sourceParent": { + "description": "The resource name of the folder's parent. Only applicable when the operation_type is MOVE.", + "type": "string" + } + }, + "type": "object" + }, + "CreateFolderMetadata": { + "description": "Metadata pertaining to the Folder creation process.", + "id": "CreateFolderMetadata", + "properties": { + "displayName": { + "description": "The display name of the folder.", + "type": "string" + }, + "parent": { + "description": "The resource name of the folder or organization we are creating the folder under.", + "type": "string" + } + }, + "type": "object" + }, + "CreateProjectMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by CreateProject. It provides insight for when significant phases of Project creation have completed.", + "id": "CreateProjectMetadata", + "properties": { + "createTime": { + "description": "Creation time of the project creation workflow.", + "format": "google-datetime", + "type": "string" + }, + "gettable": { + "description": "True if the project can be retrieved using GetProject. No other operations on the project are guaranteed to work until the project creation is complete.", + "type": "boolean" + }, + "ready": { + "description": "True if the project creation process is complete.", + "type": "boolean" + } + }, + "type": "object" + }, + "CreateTagKeyMetadata": { + "description": "Runtime operation information for creating a TagKey.", + "id": "CreateTagKeyMetadata", + "properties": {}, + "type": "object" + }, + "CreateTagValueMetadata": { + "description": "Runtime operation information for creating a TagValue.", + "id": "CreateTagValueMetadata", + "properties": {}, + "type": "object" + }, + "DeleteFolderMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by DeleteFolder.", + "id": "DeleteFolderMetadata", + "properties": {}, + "type": "object" + }, + "DeleteOrganizationMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by DeleteOrganization.", + "id": "DeleteOrganizationMetadata", + "properties": {}, + "type": "object" + }, + "DeleteProjectMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by DeleteProject.", + "id": "DeleteProjectMetadata", + "properties": {}, + "type": "object" + }, + "DeleteTagKeyMetadata": { + "description": "Runtime operation information for deleting a TagKey.", + "id": "DeleteTagKeyMetadata", + "properties": {}, + "type": "object" + }, + "DeleteTagValueMetadata": { + "description": "Runtime operation information for deleting a TagValue.", + "id": "DeleteTagValueMetadata", + "properties": {}, + "type": "object" + }, "Expr": { "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", "id": "Expr", @@ -561,7 +700,7 @@ "type": "string" }, "displayName": { - "description": "The folder’s display name. A folder’s display name must be unique amongst its siblings, e.g. no two folders with the same parent can share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be no longer than 30 characters. This is captured by the regular expression: [\\p{L}\\p{N}]([\\p{L}\\p{N}_- ]{0,28}[\\p{L}\\p{N}])?.", + "description": "The folder's display name. A folder's display name must be unique amongst its siblings, e.g. no two folders with the same parent can share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be no longer than 30 characters. This is captured by the regular expression: `[\\p{L}\\p{N}]([\\p{L}\\p{N}_- ]{0,28}[\\p{L}\\p{N}])?`.", "type": "string" }, "lifecycleState": { @@ -585,7 +724,7 @@ "type": "string" }, "parent": { - "description": "Required. The Folder’s parent's resource name. Updates to the folder's parent must be performed via MoveFolder.", + "description": "Required. The Folder's parent's resource name. Updates to the folder's parent must be performed via MoveFolder.", "type": "string" } }, @@ -700,6 +839,25 @@ }, "type": "object" }, + "MoveFolderMetadata": { + "description": "Metadata pertaining to the Folder move process.", + "id": "MoveFolderMetadata", + "properties": { + "destinationParent": { + "description": "The resource name of the folder or organization to move the folder to.", + "type": "string" + }, + "displayName": { + "description": "The display name of the folder.", + "type": "string" + }, + "sourceParent": { + "description": "The resource name of the folder's parent.", + "type": "string" + } + }, + "type": "object" + }, "MoveFolderRequest": { "description": "The MoveFolder request message.", "id": "MoveFolderRequest", @@ -711,6 +869,12 @@ }, "type": "object" }, + "MoveProjectMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by MoveProject.", + "id": "MoveProjectMetadata", + "properties": {}, + "type": "object" + }, "Operation": { "description": "This resource represents a long-running operation that is the result of a network API call.", "id": "Operation", @@ -906,11 +1070,65 @@ }, "type": "object" }, + "UndeleteFolderMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by UndeleteFolder.", + "id": "UndeleteFolderMetadata", + "properties": {}, + "type": "object" + }, "UndeleteFolderRequest": { "description": "The UndeleteFolder request message.", "id": "UndeleteFolderRequest", "properties": {}, "type": "object" + }, + "UndeleteOrganizationMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by UndeleteOrganization.", + "id": "UndeleteOrganizationMetadata", + "properties": {}, + "type": "object" + }, + "UndeleteProjectMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by UndeleteProject.", + "id": "UndeleteProjectMetadata", + "properties": {}, + "type": "object" + }, + "UndeleteTagKeyMetadata": { + "description": "Runtime operation information for undeleting a TagKey.", + "id": "UndeleteTagKeyMetadata", + "properties": {}, + "type": "object" + }, + "UndeleteTagValueMetadata": { + "description": "Runtime operation information for deleting a TagValue.", + "id": "UndeleteTagValueMetadata", + "properties": {}, + "type": "object" + }, + "UpdateFolderMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by UpdateFolder.", + "id": "UpdateFolderMetadata", + "properties": {}, + "type": "object" + }, + "UpdateProjectMetadata": { + "description": "A status object which is used as the `metadata` field for the Operation returned by UpdateProject.", + "id": "UpdateProjectMetadata", + "properties": {}, + "type": "object" + }, + "UpdateTagKeyMetadata": { + "description": "Runtime operation information for updating a TagKey.", + "id": "UpdateTagKeyMetadata", + "properties": {}, + "type": "object" + }, + "UpdateTagValueMetadata": { + "description": "Runtime operation information for updating a TagValue.", + "id": "UpdateTagValueMetadata", + "properties": {}, + "type": "object" } }, "servicePath": "", diff --git a/cloudresourcemanager/v2beta1/cloudresourcemanager-gen.go b/cloudresourcemanager/v2beta1/cloudresourcemanager-gen.go index 07dc6f7dece..2046096fe50 100644 --- a/cloudresourcemanager/v2beta1/cloudresourcemanager-gen.go +++ b/cloudresourcemanager/v2beta1/cloudresourcemanager-gen.go @@ -263,10 +263,6 @@ func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. - BindingId string `json:"bindingId,omitempty"` - // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -316,7 +312,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "BindingId") to + // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -324,7 +320,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BindingId") to include in + // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -339,6 +335,205 @@ func (s *Binding) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation: +// Metadata describing a long running folder operation +type CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation struct { + // DestinationParent: The resource name of the folder or organization we + // are either creating the folder under or moving the folder to. + DestinationParent string `json:"destinationParent,omitempty"` + + // DisplayName: The display name of the folder. + DisplayName string `json:"displayName,omitempty"` + + // OperationType: The type of this operation. + // + // Possible values: + // "OPERATION_TYPE_UNSPECIFIED" - Operation type not specified. + // "CREATE" - A create folder operation. + // "MOVE" - A move folder operation. + OperationType string `json:"operationType,omitempty"` + + // SourceParent: The resource name of the folder's parent. Only + // applicable when the operation_type is MOVE. + SourceParent string `json:"sourceParent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DestinationParent") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DestinationParent") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation) MarshalJSON() ([]byte, error) { + type NoMethod CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation: +// Metadata describing a long running folder operation +type CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation struct { + // DestinationParent: The resource name of the folder or organization we + // are either creating the folder under or moving the folder to. + DestinationParent string `json:"destinationParent,omitempty"` + + // DisplayName: The display name of the folder. + DisplayName string `json:"displayName,omitempty"` + + // OperationType: The type of this operation. + // + // Possible values: + // "OPERATION_TYPE_UNSPECIFIED" - Operation type not specified. + // "CREATE" - A create folder operation. + // "MOVE" - A move folder operation. + OperationType string `json:"operationType,omitempty"` + + // SourceParent: The resource name of the folder's parent. Only + // applicable when the operation_type is MOVE. + SourceParent string `json:"sourceParent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DestinationParent") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DestinationParent") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation) MarshalJSON() ([]byte, error) { + type NoMethod CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CreateFolderMetadata: Metadata pertaining to the Folder creation +// process. +type CreateFolderMetadata struct { + // DisplayName: The display name of the folder. + DisplayName string `json:"displayName,omitempty"` + + // Parent: The resource name of the folder or organization we are + // creating the folder under. + Parent string `json:"parent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisplayName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CreateFolderMetadata) MarshalJSON() ([]byte, error) { + type NoMethod CreateFolderMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CreateProjectMetadata: A status object which is used as the +// `metadata` field for the Operation returned by CreateProject. It +// provides insight for when significant phases of Project creation have +// completed. +type CreateProjectMetadata struct { + // CreateTime: Creation time of the project creation workflow. + CreateTime string `json:"createTime,omitempty"` + + // Gettable: True if the project can be retrieved using GetProject. No + // other operations on the project are guaranteed to work until the + // project creation is complete. + Gettable bool `json:"gettable,omitempty"` + + // Ready: True if the project creation process is complete. + Ready bool `json:"ready,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CreateProjectMetadata) MarshalJSON() ([]byte, error) { + type NoMethod CreateProjectMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CreateTagKeyMetadata: Runtime operation information for creating a +// TagKey. +type CreateTagKeyMetadata struct { +} + +// CreateTagValueMetadata: Runtime operation information for creating a +// TagValue. +type CreateTagValueMetadata struct { +} + +// DeleteFolderMetadata: A status object which is used as the `metadata` +// field for the Operation returned by DeleteFolder. +type DeleteFolderMetadata struct { +} + +// DeleteOrganizationMetadata: A status object which is used as the +// `metadata` field for the Operation returned by DeleteOrganization. +type DeleteOrganizationMetadata struct { +} + +// DeleteProjectMetadata: A status object which is used as the +// `metadata` field for the Operation returned by DeleteProject. +type DeleteProjectMetadata struct { +} + +// DeleteTagKeyMetadata: Runtime operation information for deleting a +// TagKey. +type DeleteTagKeyMetadata struct { +} + +// DeleteTagValueMetadata: Runtime operation information for deleting a +// TagValue. +type DeleteTagValueMetadata struct { +} + // Expr: Represents a textual expression in the Common Expression // Language (CEL) syntax. CEL is a C-like expression language. The // syntax and semantics of CEL are documented at @@ -406,13 +601,13 @@ type Folder struct { // Assigned by the server. CreateTime string `json:"createTime,omitempty"` - // DisplayName: The folder’s display name. A folder’s display name - // must be unique amongst its siblings, e.g. no two folders with the - // same parent can share the same display name. The display name must - // start and end with a letter or digit, may contain letters, digits, - // spaces, hyphens and underscores and can be no longer than 30 - // characters. This is captured by the regular expression: - // [\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?. + // DisplayName: The folder's display name. A folder's display name must + // be unique amongst its siblings, e.g. no two folders with the same + // parent can share the same display name. The display name must start + // and end with a letter or digit, may contain letters, digits, spaces, + // hyphens and underscores and can be no longer than 30 characters. This + // is captured by the regular expression: `[\p{L}\p{N}]([\p{L}\p{N}_- + // ]{0,28}[\p{L}\p{N}])?`. DisplayName string `json:"displayName,omitempty"` // LifecycleState: Output only. The lifecycle state of the folder. @@ -430,8 +625,8 @@ type Folder struct { // `folders/{folder_id}`, for example: "folders/1234". Name string `json:"name,omitempty"` - // Parent: Required. The Folder’s parent's resource name. Updates to - // the folder's parent must be performed via MoveFolder. + // Parent: Required. The Folder's parent's resource name. Updates to the + // folder's parent must be performed via MoveFolder. Parent string `json:"parent,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -661,6 +856,42 @@ func (s *ListFoldersResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MoveFolderMetadata: Metadata pertaining to the Folder move process. +type MoveFolderMetadata struct { + // DestinationParent: The resource name of the folder or organization to + // move the folder to. + DestinationParent string `json:"destinationParent,omitempty"` + + // DisplayName: The display name of the folder. + DisplayName string `json:"displayName,omitempty"` + + // SourceParent: The resource name of the folder's parent. + SourceParent string `json:"sourceParent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DestinationParent") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DestinationParent") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *MoveFolderMetadata) MarshalJSON() ([]byte, error) { + type NoMethod MoveFolderMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // MoveFolderRequest: The MoveFolder request message. type MoveFolderRequest struct { // DestinationParent: Required. The resource name of the Folder or @@ -692,6 +923,11 @@ func (s *MoveFolderRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MoveProjectMetadata: A status object which is used as the `metadata` +// field for the Operation returned by MoveProject. +type MoveProjectMetadata struct { +} + // Operation: This resource represents a long-running operation that is // the result of a network API call. type Operation struct { @@ -1132,10 +1368,55 @@ func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// UndeleteFolderMetadata: A status object which is used as the +// `metadata` field for the Operation returned by UndeleteFolder. +type UndeleteFolderMetadata struct { +} + // UndeleteFolderRequest: The UndeleteFolder request message. type UndeleteFolderRequest struct { } +// UndeleteOrganizationMetadata: A status object which is used as the +// `metadata` field for the Operation returned by UndeleteOrganization. +type UndeleteOrganizationMetadata struct { +} + +// UndeleteProjectMetadata: A status object which is used as the +// `metadata` field for the Operation returned by UndeleteProject. +type UndeleteProjectMetadata struct { +} + +// UndeleteTagKeyMetadata: Runtime operation information for undeleting +// a TagKey. +type UndeleteTagKeyMetadata struct { +} + +// UndeleteTagValueMetadata: Runtime operation information for deleting +// a TagValue. +type UndeleteTagValueMetadata struct { +} + +// UpdateFolderMetadata: A status object which is used as the `metadata` +// field for the Operation returned by UpdateFolder. +type UpdateFolderMetadata struct { +} + +// UpdateProjectMetadata: A status object which is used as the +// `metadata` field for the Operation returned by UpdateProject. +type UpdateProjectMetadata struct { +} + +// UpdateTagKeyMetadata: Runtime operation information for updating a +// TagKey. +type UpdateTagKeyMetadata struct { +} + +// UpdateTagValueMetadata: Runtime operation information for updating a +// TagValue. +type UpdateTagValueMetadata struct { +} + // method id "cloudresourcemanager.folders.create": type FoldersCreateCall struct { @@ -1152,17 +1433,17 @@ type FoldersCreateCall struct { // populated with the created Folder. In order to succeed, the addition // of this new Folder must not violate the Folder naming, height or // fanout constraints. + The Folder's display_name must be distinct from -// all other Folder's that share its parent. + The addition of the -// Folder must not cause the active Folder hierarchy to exceed a height -// of 10. Note, the full active + deleted Folder hierarchy is allowed to -// reach a height of 20; this provides additional headroom when moving -// folders that contain deleted folders. + The addition of the Folder -// must not cause the total number of Folders under its parent to exceed -// 300. If the operation fails due to a folder constraint violation, -// some errors may be returned by the CreateFolder request, with status -// code FAILED_PRECONDITION and an error description. Other folder -// constraint violations will be communicated in the Operation, with the -// specific PreconditionFailure returned via the details list in the +// all other Folders that share its parent. + The addition of the Folder +// must not cause the active Folder hierarchy to exceed a height of 10. +// Note, the full active + deleted Folder hierarchy is allowed to reach +// a height of 20; this provides additional headroom when moving folders +// that contain deleted folders. + The addition of the Folder must not +// cause the total number of Folders under its parent to exceed 300. If +// the operation fails due to a folder constraint violation, some errors +// may be returned by the CreateFolder request, with status code +// FAILED_PRECONDITION and an error description. Other folder constraint +// violations will be communicated in the Operation, with the specific +// PreconditionFailure returned via the details list in the // Operation.error field. The caller must have // `resourcemanager.folders.create` permission on the identified parent. func (r *FoldersService) Create(folder *Folder) *FoldersCreateCall { @@ -1206,7 +1487,7 @@ func (c *FoldersCreateCall) Header() http.Header { func (c *FoldersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1267,7 +1548,7 @@ func (c *FoldersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) } return ret, nil // { - // "description": "Creates a Folder in the resource hierarchy. Returns an Operation which can be used to track the progress of the folder creation workflow. Upon success the Operation.response field will be populated with the created Folder. In order to succeed, the addition of this new Folder must not violate the Folder naming, height or fanout constraints. + The Folder's display_name must be distinct from all other Folder's that share its parent. + The addition of the Folder must not cause the active Folder hierarchy to exceed a height of 10. Note, the full active + deleted Folder hierarchy is allowed to reach a height of 20; this provides additional headroom when moving folders that contain deleted folders. + The addition of the Folder must not cause the total number of Folders under its parent to exceed 300. If the operation fails due to a folder constraint violation, some errors may be returned by the CreateFolder request, with status code FAILED_PRECONDITION and an error description. Other folder constraint violations will be communicated in the Operation, with the specific PreconditionFailure returned via the details list in the Operation.error field. The caller must have `resourcemanager.folders.create` permission on the identified parent.", + // "description": "Creates a Folder in the resource hierarchy. Returns an Operation which can be used to track the progress of the folder creation workflow. Upon success the Operation.response field will be populated with the created Folder. In order to succeed, the addition of this new Folder must not violate the Folder naming, height or fanout constraints. + The Folder's display_name must be distinct from all other Folders that share its parent. + The addition of the Folder must not cause the active Folder hierarchy to exceed a height of 10. Note, the full active + deleted Folder hierarchy is allowed to reach a height of 20; this provides additional headroom when moving folders that contain deleted folders. + The addition of the Folder must not cause the total number of Folders under its parent to exceed 300. If the operation fails due to a folder constraint violation, some errors may be returned by the CreateFolder request, with status code FAILED_PRECONDITION and an error description. Other folder constraint violations will be communicated in the Operation, with the specific PreconditionFailure returned via the details list in the Operation.error field. The caller must have `resourcemanager.folders.create` permission on the identified parent.", // "flatPath": "v2/folders", // "httpMethod": "POST", // "id": "cloudresourcemanager.folders.create", @@ -1342,7 +1623,7 @@ func (c *FoldersDeleteCall) Header() http.Header { func (c *FoldersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1486,7 +1767,7 @@ func (c *FoldersGetCall) Header() http.Header { func (c *FoldersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1627,7 +1908,7 @@ func (c *FoldersGetIamPolicyCall) Header() http.Header { func (c *FoldersGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1814,7 +2095,7 @@ func (c *FoldersListCall) Header() http.Header { func (c *FoldersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1993,7 +2274,7 @@ func (c *FoldersMoveCall) Header() http.Header { func (c *FoldersMoveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2103,9 +2384,9 @@ type FoldersPatchCall struct { // display_name formatting rules or naming constraints described in the // CreateFolder documentation. The Folder's display name must start and // end with a letter or digit, may contain letters, digits, spaces, -// hyphens and underscores and can be no longer than 30 characters. This -// is captured by the regular expression: [\p{L}\p{N}]([\p{L}\p{N}_- -// ]{0,28}[\p{L}\p{N}])?. The caller must have +// hyphens and underscores and can be between 3 and 30 characters. This +// is captured by the regular expression: +// `\p{L}\p{N}{1,28}[\p{L}\p{N}]`. The caller must have // `resourcemanager.folders.update` permission on the identified folder. // If the update fails due to the unique name constraint then a // PreconditionFailure explaining this violation will be returned in the @@ -2151,7 +2432,7 @@ func (c *FoldersPatchCall) Header() http.Header { func (c *FoldersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2215,7 +2496,7 @@ func (c *FoldersPatchCall) Do(opts ...googleapi.CallOption) (*Folder, error) { } return ret, nil // { - // "description": "Updates a Folder, changing its display_name. Changes to the folder display_name will be rejected if they violate either the display_name formatting rules or naming constraints described in the CreateFolder documentation. The Folder's display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be no longer than 30 characters. This is captured by the regular expression: [\\p{L}\\p{N}]([\\p{L}\\p{N}_- ]{0,28}[\\p{L}\\p{N}])?. The caller must have `resourcemanager.folders.update` permission on the identified folder. If the update fails due to the unique name constraint then a PreconditionFailure explaining this violation will be returned in the Status.details field.", + // "description": "Updates a Folder, changing its display_name. Changes to the folder display_name will be rejected if they violate either the display_name formatting rules or naming constraints described in the CreateFolder documentation. The Folder's display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be between 3 and 30 characters. This is captured by the regular expression: `\\p{L}\\p{N}{1,28}[\\p{L}\\p{N}]`. The caller must have `resourcemanager.folders.update` permission on the identified folder. If the update fails due to the unique name constraint then a PreconditionFailure explaining this violation will be returned in the Status.details field.", // "flatPath": "v2/folders/{foldersId}", // "httpMethod": "PATCH", // "id": "cloudresourcemanager.folders.patch", @@ -2299,7 +2580,7 @@ func (c *FoldersSearchCall) Header() http.Header { func (c *FoldersSearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2452,7 +2733,7 @@ func (c *FoldersSetIamPolicyCall) Header() http.Header { func (c *FoldersSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2595,7 +2876,7 @@ func (c *FoldersTestIamPermissionsCall) Header() http.Header { func (c *FoldersTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2742,7 +3023,7 @@ func (c *FoldersUndeleteCall) Header() http.Header { func (c *FoldersUndeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2893,7 +3174,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudscheduler/v1/cloudscheduler-gen.go b/cloudscheduler/v1/cloudscheduler-gen.go index 2293e61c1d0..0fbc9e83de5 100644 --- a/cloudscheduler/v1/cloudscheduler-gen.go +++ b/cloudscheduler/v1/cloudscheduler-gen.go @@ -1061,7 +1061,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1227,7 +1227,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1399,7 +1399,7 @@ func (c *ProjectsLocationsJobsCreateCall) Header() http.Header { func (c *ProjectsLocationsJobsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1537,7 +1537,7 @@ func (c *ProjectsLocationsJobsDeleteCall) Header() http.Header { func (c *ProjectsLocationsJobsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1678,7 +1678,7 @@ func (c *ProjectsLocationsJobsGetCall) Header() http.Header { func (c *ProjectsLocationsJobsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1842,7 +1842,7 @@ func (c *ProjectsLocationsJobsListCall) Header() http.Header { func (c *ProjectsLocationsJobsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2021,7 +2021,7 @@ func (c *ProjectsLocationsJobsPatchCall) Header() http.Header { func (c *ProjectsLocationsJobsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2170,7 +2170,7 @@ func (c *ProjectsLocationsJobsPauseCall) Header() http.Header { func (c *ProjectsLocationsJobsPauseCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2313,7 +2313,7 @@ func (c *ProjectsLocationsJobsResumeCall) Header() http.Header { func (c *ProjectsLocationsJobsResumeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2454,7 +2454,7 @@ func (c *ProjectsLocationsJobsRunCall) Header() http.Header { func (c *ProjectsLocationsJobsRunCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudscheduler/v1beta1/cloudscheduler-gen.go b/cloudscheduler/v1beta1/cloudscheduler-gen.go index 27eb1c19595..f353cb0d8ce 100644 --- a/cloudscheduler/v1beta1/cloudscheduler-gen.go +++ b/cloudscheduler/v1beta1/cloudscheduler-gen.go @@ -1061,7 +1061,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1227,7 +1227,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1399,7 +1399,7 @@ func (c *ProjectsLocationsJobsCreateCall) Header() http.Header { func (c *ProjectsLocationsJobsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1537,7 +1537,7 @@ func (c *ProjectsLocationsJobsDeleteCall) Header() http.Header { func (c *ProjectsLocationsJobsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1678,7 +1678,7 @@ func (c *ProjectsLocationsJobsGetCall) Header() http.Header { func (c *ProjectsLocationsJobsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1842,7 +1842,7 @@ func (c *ProjectsLocationsJobsListCall) Header() http.Header { func (c *ProjectsLocationsJobsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2021,7 +2021,7 @@ func (c *ProjectsLocationsJobsPatchCall) Header() http.Header { func (c *ProjectsLocationsJobsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2170,7 +2170,7 @@ func (c *ProjectsLocationsJobsPauseCall) Header() http.Header { func (c *ProjectsLocationsJobsPauseCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2313,7 +2313,7 @@ func (c *ProjectsLocationsJobsResumeCall) Header() http.Header { func (c *ProjectsLocationsJobsResumeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2454,7 +2454,7 @@ func (c *ProjectsLocationsJobsRunCall) Header() http.Header { func (c *ProjectsLocationsJobsRunCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudsearch/v1/cloudsearch-api.json b/cloudsearch/v1/cloudsearch-api.json index 18843c82ff6..422b9be20c3 100644 --- a/cloudsearch/v1/cloudsearch-api.json +++ b/cloudsearch/v1/cloudsearch-api.json @@ -1870,7 +1870,7 @@ } } }, - "revision": "20200929", + "revision": "20201110", "rootUrl": "https://cloudsearch.googleapis.com/", "schemas": { "BooleanOperatorOptions": { @@ -2011,7 +2011,7 @@ "id": "DataSource", "properties": { "disableModifications": { - "description": "If true, Indexing API rejects any modification calls to this datasource such as create, update, and delete. Disabling this does not imply halting process of previously accepted data.", + "description": "If true, sets the datasource to read-only mode. In read-only mode, the Indexing API rejects any requests to index or delete items in this source. Enabling read-only mode does not stop the processing of previously accepted data.", "type": "boolean" }, "disableServing": { @@ -2987,7 +2987,7 @@ "type": "object" }, "ItemContent": { - "description": "Content of an item to be indexed and surfaced by Cloud Search.", + "description": "Content of an item to be indexed and surfaced by Cloud Search. Only UTF-8 encoded strings are allowed as inlineContent. If the content is uploaded and not binary, it must be UTF-8 encoded.", "id": "ItemContent", "properties": { "contentDataRef": { diff --git a/cloudsearch/v1/cloudsearch-gen.go b/cloudsearch/v1/cloudsearch-gen.go index cc11ffa5fc7..5f430031546 100644 --- a/cloudsearch/v1/cloudsearch-gen.go +++ b/cloudsearch/v1/cloudsearch-gen.go @@ -765,10 +765,10 @@ func (s *CustomerUserStats) MarshalJSON() ([]byte, error) { // indexed. All items must belong to a datasource. This is the // prerequisite before items can be indexed into Cloud Search. type DataSource struct { - // DisableModifications: If true, Indexing API rejects any modification - // calls to this datasource such as create, update, and delete. - // Disabling this does not imply halting process of previously accepted - // data. + // DisableModifications: If true, sets the datasource to read-only mode. + // In read-only mode, the Indexing API rejects any requests to index or + // delete items in this source. Enabling read-only mode does not stop + // the processing of previously accepted data. DisableModifications bool `json:"disableModifications,omitempty"` // DisableServing: Disable serving any search or assist results. @@ -2747,7 +2747,8 @@ func (s *ItemAcl) MarshalJSON() ([]byte, error) { } // ItemContent: Content of an item to be indexed and surfaced by Cloud -// Search. +// Search. Only UTF-8 encoded strings are allowed as inlineContent. If +// the content is uploaded and not binary, it must be UTF-8 encoded. type ItemContent struct { // ContentDataRef: Upload reference ID of a previously uploaded content // via write method. @@ -6532,7 +6533,7 @@ func (c *DebugDatasourcesItemsCheckAccessCall) Header() http.Header { func (c *DebugDatasourcesItemsCheckAccessCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6680,7 +6681,7 @@ func (c *DebugDatasourcesItemsSearchByViewUrlCall) Header() http.Header { func (c *DebugDatasourcesItemsSearchByViewUrlCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6874,7 +6875,7 @@ func (c *DebugDatasourcesItemsUnmappedidsListCall) Header() http.Header { func (c *DebugDatasourcesItemsUnmappedidsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7092,7 +7093,7 @@ func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) Header() http.Hea func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7328,7 +7329,7 @@ func (c *DebugIdentitysourcesUnmappedidsListCall) Header() http.Header { func (c *DebugIdentitysourcesUnmappedidsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7529,7 +7530,7 @@ func (c *IndexingDatasourcesDeleteSchemaCall) Header() http.Header { func (c *IndexingDatasourcesDeleteSchemaCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7686,7 +7687,7 @@ func (c *IndexingDatasourcesGetSchemaCall) Header() http.Header { func (c *IndexingDatasourcesGetSchemaCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7831,7 +7832,7 @@ func (c *IndexingDatasourcesUpdateSchemaCall) Header() http.Header { func (c *IndexingDatasourcesUpdateSchemaCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8016,7 +8017,7 @@ func (c *IndexingDatasourcesItemsDeleteCall) Header() http.Header { func (c *IndexingDatasourcesItemsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8183,7 +8184,7 @@ func (c *IndexingDatasourcesItemsDeleteQueueItemsCall) Header() http.Header { func (c *IndexingDatasourcesItemsDeleteQueueItemsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8351,7 +8352,7 @@ func (c *IndexingDatasourcesItemsGetCall) Header() http.Header { func (c *IndexingDatasourcesItemsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8502,7 +8503,7 @@ func (c *IndexingDatasourcesItemsIndexCall) Header() http.Header { func (c *IndexingDatasourcesItemsIndexCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8698,7 +8699,7 @@ func (c *IndexingDatasourcesItemsListCall) Header() http.Header { func (c *IndexingDatasourcesItemsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8892,7 +8893,7 @@ func (c *IndexingDatasourcesItemsPollCall) Header() http.Header { func (c *IndexingDatasourcesItemsPollCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9035,7 +9036,7 @@ func (c *IndexingDatasourcesItemsPushCall) Header() http.Header { func (c *IndexingDatasourcesItemsPushCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9180,7 +9181,7 @@ func (c *IndexingDatasourcesItemsUnreserveCall) Header() http.Header { func (c *IndexingDatasourcesItemsUnreserveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9325,7 +9326,7 @@ func (c *IndexingDatasourcesItemsUploadCall) Header() http.Header { func (c *IndexingDatasourcesItemsUploadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9522,7 +9523,7 @@ func (c *MediaUploadCall) Header() http.Header { func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9714,7 +9715,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9893,7 +9894,7 @@ func (c *OperationsLroListCall) Header() http.Header { func (c *OperationsLroListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10076,7 +10077,7 @@ func (c *QuerySearchCall) Header() http.Header { func (c *QuerySearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10207,7 +10208,7 @@ func (c *QuerySuggestCall) Header() http.Header { func (c *QuerySuggestCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10403,7 +10404,7 @@ func (c *QuerySourcesListCall) Header() http.Header { func (c *QuerySourcesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10572,7 +10573,7 @@ func (c *SettingsDatasourcesCreateCall) Header() http.Header { func (c *SettingsDatasourcesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10708,7 +10709,7 @@ func (c *SettingsDatasourcesDeleteCall) Header() http.Header { func (c *SettingsDatasourcesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10865,7 +10866,7 @@ func (c *SettingsDatasourcesGetCall) Header() http.Header { func (c *SettingsDatasourcesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11038,7 +11039,7 @@ func (c *SettingsDatasourcesListCall) Header() http.Header { func (c *SettingsDatasourcesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11201,7 +11202,7 @@ func (c *SettingsDatasourcesUpdateCall) Header() http.Header { func (c *SettingsDatasourcesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11342,7 +11343,7 @@ func (c *SettingsSearchapplicationsCreateCall) Header() http.Header { func (c *SettingsSearchapplicationsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11478,7 +11479,7 @@ func (c *SettingsSearchapplicationsDeleteCall) Header() http.Header { func (c *SettingsSearchapplicationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11635,7 +11636,7 @@ func (c *SettingsSearchapplicationsGetCall) Header() http.Header { func (c *SettingsSearchapplicationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11808,7 +11809,7 @@ func (c *SettingsSearchapplicationsListCall) Header() http.Header { func (c *SettingsSearchapplicationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11972,7 +11973,7 @@ func (c *SettingsSearchapplicationsResetCall) Header() http.Header { func (c *SettingsSearchapplicationsResetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12115,7 +12116,7 @@ func (c *SettingsSearchapplicationsUpdateCall) Header() http.Header { func (c *SettingsSearchapplicationsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12309,7 +12310,7 @@ func (c *StatsGetIndexCall) Header() http.Header { func (c *StatsGetIndexCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12520,7 +12521,7 @@ func (c *StatsGetQueryCall) Header() http.Header { func (c *StatsGetQueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12732,7 +12733,7 @@ func (c *StatsGetSessionCall) Header() http.Header { func (c *StatsGetSessionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12943,7 +12944,7 @@ func (c *StatsGetUserCall) Header() http.Header { func (c *StatsGetUserCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13156,7 +13157,7 @@ func (c *StatsIndexDatasourcesGetCall) Header() http.Header { func (c *StatsIndexDatasourcesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13381,7 +13382,7 @@ func (c *StatsQuerySearchapplicationsGetCall) Header() http.Header { func (c *StatsQuerySearchapplicationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13608,7 +13609,7 @@ func (c *StatsSessionSearchapplicationsGetCall) Header() http.Header { func (c *StatsSessionSearchapplicationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13835,7 +13836,7 @@ func (c *StatsUserSearchapplicationsGetCall) Header() http.Header { func (c *StatsUserSearchapplicationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudshell/v1/cloudshell-gen.go b/cloudshell/v1/cloudshell-gen.go index 389ec3fe995..d7b36461289 100644 --- a/cloudshell/v1/cloudshell-gen.go +++ b/cloudshell/v1/cloudshell-gen.go @@ -740,7 +740,7 @@ func (c *OperationsCancelCall) Header() http.Header { func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -881,7 +881,7 @@ func (c *OperationsDeleteCall) Header() http.Header { func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1024,7 +1024,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1198,7 +1198,7 @@ func (c *OperationsListCall) Header() http.Header { func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1373,7 +1373,7 @@ func (c *UsersEnvironmentsAddPublicKeyCall) Header() http.Header { func (c *UsersEnvironmentsAddPublicKeyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1516,7 +1516,7 @@ func (c *UsersEnvironmentsAuthorizeCall) Header() http.Header { func (c *UsersEnvironmentsAuthorizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1666,7 +1666,7 @@ func (c *UsersEnvironmentsGetCall) Header() http.Header { func (c *UsersEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1804,7 +1804,7 @@ func (c *UsersEnvironmentsRemovePublicKeyCall) Header() http.Header { func (c *UsersEnvironmentsRemovePublicKeyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1950,7 +1950,7 @@ func (c *UsersEnvironmentsStartCall) Header() http.Header { func (c *UsersEnvironmentsStartCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudshell/v1alpha1/cloudshell-gen.go b/cloudshell/v1alpha1/cloudshell-gen.go index a342a9ff5df..6bd84498fbd 100644 --- a/cloudshell/v1alpha1/cloudshell-gen.go +++ b/cloudshell/v1alpha1/cloudshell-gen.go @@ -677,7 +677,7 @@ func (c *UsersEnvironmentsAuthorizeCall) Header() http.Header { func (c *UsersEnvironmentsAuthorizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -827,7 +827,7 @@ func (c *UsersEnvironmentsGetCall) Header() http.Header { func (c *UsersEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -969,7 +969,7 @@ func (c *UsersEnvironmentsPatchCall) Header() http.Header { func (c *UsersEnvironmentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1121,7 +1121,7 @@ func (c *UsersEnvironmentsStartCall) Header() http.Header { func (c *UsersEnvironmentsStartCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1264,7 +1264,7 @@ func (c *UsersEnvironmentsPublicKeysCreateCall) Header() http.Header { func (c *UsersEnvironmentsPublicKeysCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1404,7 +1404,7 @@ func (c *UsersEnvironmentsPublicKeysDeleteCall) Header() http.Header { func (c *UsersEnvironmentsPublicKeysDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudtasks/v2/cloudtasks-api.json b/cloudtasks/v2/cloudtasks-api.json index 3dd63fcdd8e..164171911a5 100644 --- a/cloudtasks/v2/cloudtasks-api.json +++ b/cloudtasks/v2/cloudtasks-api.json @@ -685,7 +685,7 @@ } } }, - "revision": "20200909", + "revision": "20201111", "rootUrl": "https://cloudtasks.googleapis.com/", "schemas": { "AppEngineHttpRequest": { @@ -792,10 +792,6 @@ "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { - "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", - "type": "string" - }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." diff --git a/cloudtasks/v2/cloudtasks-gen.go b/cloudtasks/v2/cloudtasks-gen.go index e48e75999b8..5ef40ba3fc3 100644 --- a/cloudtasks/v2/cloudtasks-gen.go +++ b/cloudtasks/v2/cloudtasks-gen.go @@ -443,10 +443,6 @@ func (s *Attempt) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. - BindingId string `json:"bindingId,omitempty"` - // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -496,7 +492,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "BindingId") to + // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -504,7 +500,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BindingId") to include in + // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -1897,7 +1893,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2063,7 +2059,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2242,7 +2238,7 @@ func (c *ProjectsLocationsQueuesCreateCall) Header() http.Header { func (c *ProjectsLocationsQueuesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2387,7 +2383,7 @@ func (c *ProjectsLocationsQueuesDeleteCall) Header() http.Header { func (c *ProjectsLocationsQueuesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2528,7 +2524,7 @@ func (c *ProjectsLocationsQueuesGetCall) Header() http.Header { func (c *ProjectsLocationsQueuesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2667,7 +2663,7 @@ func (c *ProjectsLocationsQueuesGetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsQueuesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2850,7 +2846,7 @@ func (c *ProjectsLocationsQueuesListCall) Header() http.Header { func (c *ProjectsLocationsQueuesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3039,7 +3035,7 @@ func (c *ProjectsLocationsQueuesPatchCall) Header() http.Header { func (c *ProjectsLocationsQueuesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3188,7 +3184,7 @@ func (c *ProjectsLocationsQueuesPauseCall) Header() http.Header { func (c *ProjectsLocationsQueuesPauseCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3331,7 +3327,7 @@ func (c *ProjectsLocationsQueuesPurgeCall) Header() http.Header { func (c *ProjectsLocationsQueuesPurgeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3477,7 +3473,7 @@ func (c *ProjectsLocationsQueuesResumeCall) Header() http.Header { func (c *ProjectsLocationsQueuesResumeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3622,7 +3618,7 @@ func (c *ProjectsLocationsQueuesSetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsQueuesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3767,7 +3763,7 @@ func (c *ProjectsLocationsQueuesTestIamPermissionsCall) Header() http.Header { func (c *ProjectsLocationsQueuesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3909,7 +3905,7 @@ func (c *ProjectsLocationsQueuesTasksCreateCall) Header() http.Header { func (c *ProjectsLocationsQueuesTasksCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4049,7 +4045,7 @@ func (c *ProjectsLocationsQueuesTasksDeleteCall) Header() http.Header { func (c *ProjectsLocationsQueuesTasksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4214,7 +4210,7 @@ func (c *ProjectsLocationsQueuesTasksGetCall) Header() http.Header { func (c *ProjectsLocationsQueuesTasksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4421,7 +4417,7 @@ func (c *ProjectsLocationsQueuesTasksListCall) Header() http.Header { func (c *ProjectsLocationsQueuesTasksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4616,7 +4612,7 @@ func (c *ProjectsLocationsQueuesTasksRunCall) Header() http.Header { func (c *ProjectsLocationsQueuesTasksRunCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudtasks/v2beta2/cloudtasks-api.json b/cloudtasks/v2beta2/cloudtasks-api.json index 5e0e5cb7a9f..f8930fad704 100644 --- a/cloudtasks/v2beta2/cloudtasks-api.json +++ b/cloudtasks/v2beta2/cloudtasks-api.json @@ -249,7 +249,7 @@ "type": "string" }, "readMask": { - "description": "Optional. Read mask is used for a more granular control over what the API returns. By it includes all fields in Queue except for stats.", + "description": "Optional. Read mask is used for a more granular control over what the API returns. If the mask is not present all fields will be returned except [Queue.stats], if the mask is set to \"*\" all fields including [Queue.stats] will be returned, otherwise only the fields explicitly specified in the mask will be returned.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -322,6 +322,12 @@ "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" + }, + "readMask": { + "description": "Optional. Read mask is used for a more granular control over what the API returns. If the mask is not present all fields will be returned except [Queue.stats], if the mask is set to \"*\" all fields including [Queue.stats] will be returned, otherwise only the fields explicitly specified in the mask will be returned.", + "format": "google-fieldmask", + "location": "query", + "type": "string" } }, "path": "v2beta2/{+parent}/queues", @@ -803,7 +809,7 @@ } } }, - "revision": "20200909", + "revision": "20201111", "rootUrl": "https://cloudtasks.googleapis.com/", "schemas": { "AcknowledgeTaskRequest": { @@ -929,10 +935,6 @@ "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { - "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", - "type": "string" - }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." diff --git a/cloudtasks/v2beta2/cloudtasks-gen.go b/cloudtasks/v2beta2/cloudtasks-gen.go index fe61c48bb00..ccfd2b3cced 100644 --- a/cloudtasks/v2beta2/cloudtasks-gen.go +++ b/cloudtasks/v2beta2/cloudtasks-gen.go @@ -529,10 +529,6 @@ func (s *AttemptStatus) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. - BindingId string `json:"bindingId,omitempty"` - // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -582,7 +578,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "BindingId") to + // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -590,7 +586,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BindingId") to include in + // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -2043,7 +2039,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2209,7 +2205,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2388,7 +2384,7 @@ func (c *ProjectsLocationsQueuesCreateCall) Header() http.Header { func (c *ProjectsLocationsQueuesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2533,7 +2529,7 @@ func (c *ProjectsLocationsQueuesDeleteCall) Header() http.Header { func (c *ProjectsLocationsQueuesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2638,8 +2634,11 @@ func (r *ProjectsLocationsQueuesService) Get(name string) *ProjectsLocationsQueu } // ReadMask sets the optional parameter "readMask": Read mask is used -// for a more granular control over what the API returns. By it includes -// all fields in Queue except for stats. +// for a more granular control over what the API returns. If the mask is +// not present all fields will be returned except [Queue.stats], if the +// mask is set to "*" all fields including [Queue.stats] will be +// returned, otherwise only the fields explicitly specified in the mask +// will be returned. func (c *ProjectsLocationsQueuesGetCall) ReadMask(readMask string) *ProjectsLocationsQueuesGetCall { c.urlParams_.Set("readMask", readMask) return c @@ -2682,7 +2681,7 @@ func (c *ProjectsLocationsQueuesGetCall) Header() http.Header { func (c *ProjectsLocationsQueuesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2760,7 +2759,7 @@ func (c *ProjectsLocationsQueuesGetCall) Do(opts ...googleapi.CallOption) (*Queu // "type": "string" // }, // "readMask": { - // "description": "Optional. Read mask is used for a more granular control over what the API returns. By it includes all fields in Queue except for stats.", + // "description": "Optional. Read mask is used for a more granular control over what the API returns. If the mask is not present all fields will be returned except [Queue.stats], if the mask is set to \"*\" all fields including [Queue.stats] will be returned, otherwise only the fields explicitly specified in the mask will be returned.", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -2827,7 +2826,7 @@ func (c *ProjectsLocationsQueuesGetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsQueuesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2973,6 +2972,17 @@ func (c *ProjectsLocationsQueuesListCall) PageToken(pageToken string) *ProjectsL return c } +// ReadMask sets the optional parameter "readMask": Read mask is used +// for a more granular control over what the API returns. If the mask is +// not present all fields will be returned except [Queue.stats], if the +// mask is set to "*" all fields including [Queue.stats] will be +// returned, otherwise only the fields explicitly specified in the mask +// will be returned. +func (c *ProjectsLocationsQueuesListCall) ReadMask(readMask string) *ProjectsLocationsQueuesListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -3010,7 +3020,7 @@ func (c *ProjectsLocationsQueuesListCall) Header() http.Header { func (c *ProjectsLocationsQueuesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3102,6 +3112,12 @@ func (c *ProjectsLocationsQueuesListCall) Do(opts ...googleapi.CallOption) (*Lis // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" + // }, + // "readMask": { + // "description": "Optional. Read mask is used for a more granular control over what the API returns. If the mask is not present all fields will be returned except [Queue.stats], if the mask is set to \"*\" all fields including [Queue.stats] will be returned, otherwise only the fields explicitly specified in the mask will be returned.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, // "path": "v2beta2/{+parent}/queues", @@ -3199,7 +3215,7 @@ func (c *ProjectsLocationsQueuesPatchCall) Header() http.Header { func (c *ProjectsLocationsQueuesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3348,7 +3364,7 @@ func (c *ProjectsLocationsQueuesPauseCall) Header() http.Header { func (c *ProjectsLocationsQueuesPauseCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3491,7 +3507,7 @@ func (c *ProjectsLocationsQueuesPurgeCall) Header() http.Header { func (c *ProjectsLocationsQueuesPurgeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3637,7 +3653,7 @@ func (c *ProjectsLocationsQueuesResumeCall) Header() http.Header { func (c *ProjectsLocationsQueuesResumeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3782,7 +3798,7 @@ func (c *ProjectsLocationsQueuesSetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsQueuesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3927,7 +3943,7 @@ func (c *ProjectsLocationsQueuesTestIamPermissionsCall) Header() http.Header { func (c *ProjectsLocationsQueuesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4073,7 +4089,7 @@ func (c *ProjectsLocationsQueuesTasksAcknowledgeCall) Header() http.Header { func (c *ProjectsLocationsQueuesTasksAcknowledgeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4216,7 +4232,7 @@ func (c *ProjectsLocationsQueuesTasksCancelLeaseCall) Header() http.Header { func (c *ProjectsLocationsQueuesTasksCancelLeaseCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4359,7 +4375,7 @@ func (c *ProjectsLocationsQueuesTasksCreateCall) Header() http.Header { func (c *ProjectsLocationsQueuesTasksCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4499,7 +4515,7 @@ func (c *ProjectsLocationsQueuesTasksDeleteCall) Header() http.Header { func (c *ProjectsLocationsQueuesTasksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4665,7 +4681,7 @@ func (c *ProjectsLocationsQueuesTasksGetCall) Header() http.Header { func (c *ProjectsLocationsQueuesTasksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4824,7 +4840,7 @@ func (c *ProjectsLocationsQueuesTasksLeaseCall) Header() http.Header { func (c *ProjectsLocationsQueuesTasksLeaseCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5022,7 +5038,7 @@ func (c *ProjectsLocationsQueuesTasksListCall) Header() http.Header { func (c *ProjectsLocationsQueuesTasksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5206,7 +5222,7 @@ func (c *ProjectsLocationsQueuesTasksRenewLeaseCall) Header() http.Header { func (c *ProjectsLocationsQueuesTasksRenewLeaseCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5359,7 +5375,7 @@ func (c *ProjectsLocationsQueuesTasksRunCall) Header() http.Header { func (c *ProjectsLocationsQueuesTasksRunCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudtasks/v2beta3/cloudtasks-api.json b/cloudtasks/v2beta3/cloudtasks-api.json index fed4fc0253d..72abcfe7968 100644 --- a/cloudtasks/v2beta3/cloudtasks-api.json +++ b/cloudtasks/v2beta3/cloudtasks-api.json @@ -685,7 +685,7 @@ } } }, - "revision": "20200909", + "revision": "20201111", "rootUrl": "https://cloudtasks.googleapis.com/", "schemas": { "AppEngineHttpQueue": { @@ -803,10 +803,6 @@ "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { - "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", - "type": "string" - }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." diff --git a/cloudtasks/v2beta3/cloudtasks-gen.go b/cloudtasks/v2beta3/cloudtasks-gen.go index b35f039d614..2fa64031345 100644 --- a/cloudtasks/v2beta3/cloudtasks-gen.go +++ b/cloudtasks/v2beta3/cloudtasks-gen.go @@ -479,10 +479,6 @@ func (s *Attempt) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. - BindingId string `json:"bindingId,omitempty"` - // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -532,7 +528,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "BindingId") to + // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -540,7 +536,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BindingId") to include in + // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -1940,7 +1936,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2106,7 +2102,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2285,7 +2281,7 @@ func (c *ProjectsLocationsQueuesCreateCall) Header() http.Header { func (c *ProjectsLocationsQueuesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2430,7 +2426,7 @@ func (c *ProjectsLocationsQueuesDeleteCall) Header() http.Header { func (c *ProjectsLocationsQueuesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2571,7 +2567,7 @@ func (c *ProjectsLocationsQueuesGetCall) Header() http.Header { func (c *ProjectsLocationsQueuesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2710,7 +2706,7 @@ func (c *ProjectsLocationsQueuesGetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsQueuesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2893,7 +2889,7 @@ func (c *ProjectsLocationsQueuesListCall) Header() http.Header { func (c *ProjectsLocationsQueuesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3082,7 +3078,7 @@ func (c *ProjectsLocationsQueuesPatchCall) Header() http.Header { func (c *ProjectsLocationsQueuesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3231,7 +3227,7 @@ func (c *ProjectsLocationsQueuesPauseCall) Header() http.Header { func (c *ProjectsLocationsQueuesPauseCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3374,7 +3370,7 @@ func (c *ProjectsLocationsQueuesPurgeCall) Header() http.Header { func (c *ProjectsLocationsQueuesPurgeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3520,7 +3516,7 @@ func (c *ProjectsLocationsQueuesResumeCall) Header() http.Header { func (c *ProjectsLocationsQueuesResumeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3665,7 +3661,7 @@ func (c *ProjectsLocationsQueuesSetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsQueuesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3810,7 +3806,7 @@ func (c *ProjectsLocationsQueuesTestIamPermissionsCall) Header() http.Header { func (c *ProjectsLocationsQueuesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3952,7 +3948,7 @@ func (c *ProjectsLocationsQueuesTasksCreateCall) Header() http.Header { func (c *ProjectsLocationsQueuesTasksCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4092,7 +4088,7 @@ func (c *ProjectsLocationsQueuesTasksDeleteCall) Header() http.Header { func (c *ProjectsLocationsQueuesTasksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4257,7 +4253,7 @@ func (c *ProjectsLocationsQueuesTasksGetCall) Header() http.Header { func (c *ProjectsLocationsQueuesTasksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4464,7 +4460,7 @@ func (c *ProjectsLocationsQueuesTasksListCall) Header() http.Header { func (c *ProjectsLocationsQueuesTasksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4659,7 +4655,7 @@ func (c *ProjectsLocationsQueuesTasksRunCall) Header() http.Header { func (c *ProjectsLocationsQueuesTasksRunCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudtrace/v1/cloudtrace-gen.go b/cloudtrace/v1/cloudtrace-gen.go index 5d3116cfc68..fab411c1b7f 100644 --- a/cloudtrace/v1/cloudtrace-gen.go +++ b/cloudtrace/v1/cloudtrace-gen.go @@ -419,7 +419,7 @@ func (c *ProjectsPatchTracesCall) Header() http.Header { func (c *ProjectsPatchTracesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -570,7 +570,7 @@ func (c *ProjectsTracesGetCall) Header() http.Header { func (c *ProjectsTracesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -813,7 +813,7 @@ func (c *ProjectsTracesListCall) Header() http.Header { func (c *ProjectsTracesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudtrace/v2/cloudtrace-gen.go b/cloudtrace/v2/cloudtrace-gen.go index a644af8a857..11b032f9c2b 100644 --- a/cloudtrace/v2/cloudtrace-gen.go +++ b/cloudtrace/v2/cloudtrace-gen.go @@ -947,7 +947,7 @@ func (c *ProjectsTracesBatchWriteCall) Header() http.Header { func (c *ProjectsTracesBatchWriteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1088,7 +1088,7 @@ func (c *ProjectsTracesSpansCreateSpanCall) Header() http.Header { func (c *ProjectsTracesSpansCreateSpanCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/cloudtrace/v2beta1/cloudtrace-gen.go b/cloudtrace/v2beta1/cloudtrace-gen.go index bc50e66caa6..650fa267be7 100644 --- a/cloudtrace/v2beta1/cloudtrace-gen.go +++ b/cloudtrace/v2beta1/cloudtrace-gen.go @@ -353,7 +353,7 @@ func (c *ProjectsTraceSinksCreateCall) Header() http.Header { func (c *ProjectsTraceSinksCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -492,7 +492,7 @@ func (c *ProjectsTraceSinksDeleteCall) Header() http.Header { func (c *ProjectsTraceSinksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -635,7 +635,7 @@ func (c *ProjectsTraceSinksGetCall) Header() http.Header { func (c *ProjectsTraceSinksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -799,7 +799,7 @@ func (c *ProjectsTraceSinksListCall) Header() http.Header { func (c *ProjectsTraceSinksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -982,7 +982,7 @@ func (c *ProjectsTraceSinksPatchCall) Header() http.Header { func (c *ProjectsTraceSinksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/composer/v1/composer-gen.go b/composer/v1/composer-gen.go index aa0bfb64051..aa42d306af4 100644 --- a/composer/v1/composer-gen.go +++ b/composer/v1/composer-gen.go @@ -1056,7 +1056,7 @@ func (c *ProjectsLocationsEnvironmentsCreateCall) Header() http.Header { func (c *ProjectsLocationsEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1194,7 +1194,7 @@ func (c *ProjectsLocationsEnvironmentsDeleteCall) Header() http.Header { func (c *ProjectsLocationsEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1335,7 +1335,7 @@ func (c *ProjectsLocationsEnvironmentsGetCall) Header() http.Header { func (c *ProjectsLocationsEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1493,7 +1493,7 @@ func (c *ProjectsLocationsEnvironmentsListCall) Header() http.Header { func (c *ProjectsLocationsEnvironmentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1732,7 +1732,7 @@ func (c *ProjectsLocationsEnvironmentsPatchCall) Header() http.Header { func (c *ProjectsLocationsEnvironmentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1901,7 +1901,7 @@ func (c *ProjectsLocationsImageVersionsListCall) Header() http.Header { func (c *ProjectsLocationsImageVersionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2069,7 +2069,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2212,7 +2212,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2386,7 +2386,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/composer/v1beta1/composer-gen.go b/composer/v1beta1/composer-gen.go index c13234fc31f..86c170bcf17 100644 --- a/composer/v1beta1/composer-gen.go +++ b/composer/v1beta1/composer-gen.go @@ -1208,7 +1208,7 @@ func (c *ProjectsLocationsEnvironmentsCreateCall) Header() http.Header { func (c *ProjectsLocationsEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1346,7 +1346,7 @@ func (c *ProjectsLocationsEnvironmentsDeleteCall) Header() http.Header { func (c *ProjectsLocationsEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1487,7 +1487,7 @@ func (c *ProjectsLocationsEnvironmentsGetCall) Header() http.Header { func (c *ProjectsLocationsEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1645,7 +1645,7 @@ func (c *ProjectsLocationsEnvironmentsListCall) Header() http.Header { func (c *ProjectsLocationsEnvironmentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1899,7 +1899,7 @@ func (c *ProjectsLocationsEnvironmentsPatchCall) Header() http.Header { func (c *ProjectsLocationsEnvironmentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2068,7 +2068,7 @@ func (c *ProjectsLocationsImageVersionsListCall) Header() http.Header { func (c *ProjectsLocationsImageVersionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2236,7 +2236,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2379,7 +2379,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2553,7 +2553,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/compute/v0.alpha/compute-api.json b/compute/v0.alpha/compute-api.json index 739b21de009..4f3745249b6 100644 --- a/compute/v0.alpha/compute-api.json +++ b/compute/v0.alpha/compute-api.json @@ -29,7 +29,7 @@ "description": "Creates and runs virtual machines on Google Cloud Platform.", "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/compute/docs/reference/latest/", - "etag": "\"-2NioU2H8y8siEzrBOV_qzRI6kQ/XD27oxKM8_o-p7tt2_RX1-WnTjg\"", + "etag": "\"-2NioU2H8y8siEzrBOV_qzRI6kQ/N2RdLSld28K6AbRrUK_kSZIlMkM\"", "icons": { "x16": "https://www.google.com/images/icons/product/compute_engine-16.png", "x32": "https://www.google.com/images/icons/product/compute_engine-32.png" @@ -1320,6 +1320,46 @@ "https://www.googleapis.com/auth/compute" ] }, + "setEdgeSecurityPolicy": { + "description": "Sets the edge security policy for the specified backend bucket.", + "httpMethod": "POST", + "id": "compute.backendBuckets.setEdgeSecurityPolicy", + "parameterOrder": [ + "project", + "backendBucket" + ], + "parameters": { + "backendBucket": { + "description": "Name of the BackendService resource to which the security policy should be set. The name should conform to RFC1035.", + "location": "path", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.\n\nFor example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.\n\nThe request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "projects/{project}/global/backendBuckets/{backendBucket}/setEdgeSecurityPolicy", + "request": { + "$ref": "SecurityPolicyReference" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "setIamPolicy": { "description": "Sets the access control policy on the specified resource. Replaces any existing policy.", "httpMethod": "POST", @@ -1817,6 +1857,46 @@ "https://www.googleapis.com/auth/compute" ] }, + "setEdgeSecurityPolicy": { + "description": "Sets the edge security policy for the specified backend service.", + "httpMethod": "POST", + "id": "compute.backendServices.setEdgeSecurityPolicy", + "parameterOrder": [ + "project", + "backendService" + ], + "parameters": { + "backendService": { + "description": "Name of the BackendService resource to which the edge security policy should be set. The name should conform to RFC1035.", + "location": "path", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.\n\nFor example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.\n\nThe request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "projects/{project}/global/backendServices/{backendService}/setEdgeSecurityPolicy", + "request": { + "$ref": "SecurityPolicyReference" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "setSecurityPolicy": { "description": "Sets the security policy for the specified backend service.", "httpMethod": "POST", @@ -7488,7 +7568,7 @@ ] }, "setInstanceTemplate": { - "description": "Specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you recreate them.", + "description": "Specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE.", "httpMethod": "POST", "id": "compute.instanceGroupManagers.setInstanceTemplate", "parameterOrder": [ @@ -15849,7 +15929,7 @@ ], "parameters": { "replaceExistingAssociation": { - "description": "Indicates whether or not to replace it if an association of the attachment already exists. This is false by default, in which case an error will be returned if an assocation already exists.", + "description": "Indicates whether or not to replace it if an association of the attachment already exists. This is false by default, in which case an error will be returned if an association already exists.", "location": "query", "type": "boolean" }, @@ -21858,6 +21938,55 @@ "https://www.googleapis.com/auth/compute" ] }, + "export": { + "description": "Export the changed blocks between two instant snapshots to a customer?s bucket in the user specified format.", + "httpMethod": "POST", + "id": "compute.regionInstantSnapshots.export", + "parameterOrder": [ + "project", + "region", + "instantSnapshot" + ], + "parameters": { + "instantSnapshot": { + "description": "Name of the instant snapshot to export.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "The name of the zone for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.\n\nFor example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.\n\nThe request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}/export", + "request": { + "$ref": "InstantSnapshotExportParams" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "get": { "description": "Returns the specified InstantSnapshot resource in the specified region.", "httpMethod": "GET", @@ -23807,7 +23936,7 @@ ] }, "invalidateCache": { - "description": "Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap.", + "description": "Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap.\n\nFor more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content).", "httpMethod": "POST", "id": "compute.regionUrlMaps.invalidateCache", "parameterOrder": [ @@ -28885,6 +29014,47 @@ "https://www.googleapis.com/auth/compute.readonly" ] }, + "patch": { + "description": "Patches the specified TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. (== suppress_warning http-rest-shadowed ==)", + "httpMethod": "PATCH", + "id": "compute.targetHttpsProxies.patch", + "parameterOrder": [ + "project", + "targetHttpsProxy" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.\n\nFor example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.\n\nThe request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "targetHttpsProxy": { + "description": "Name of the TargetHttpsProxy resource to patch.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}", + "request": { + "$ref": "TargetHttpsProxy" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "setCertificateMap": { "description": "Changes the Certificate Map for TargetHttpsProxy.", "httpMethod": "POST", @@ -31220,7 +31390,7 @@ ] }, "invalidateCache": { - "description": "Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap.", + "description": "Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap.\n\nFor more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content).", "httpMethod": "POST", "id": "compute.urlMaps.invalidateCache", "parameterOrder": [ @@ -32638,6 +32808,55 @@ "https://www.googleapis.com/auth/compute" ] }, + "export": { + "description": "Export the changed blocks between two instant snapshots to a customer?s bucket in the user specified format.", + "httpMethod": "POST", + "id": "compute.zoneInstantSnapshots.export", + "parameterOrder": [ + "project", + "zone", + "instantSnapshot" + ], + "parameters": { + "instantSnapshot": { + "description": "Name of the instant snapshot to export.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.\n\nFor example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.\n\nThe request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "zone": { + "description": "The name of the zone for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}/export", + "request": { + "$ref": "InstantSnapshotExportParams" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "get": { "description": "Returns the specified InstantSnapshot resource in the specified zone.", "httpMethod": "GET", @@ -33252,7 +33471,7 @@ } } }, - "revision": "20201005", + "revision": "20201022", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -33371,6 +33590,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -33412,6 +33632,7 @@ "", "", "", + "", "" ], "type": "string" @@ -33485,6 +33706,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -33526,6 +33748,7 @@ "", "", "", + "", "" ], "type": "string" @@ -33581,6 +33804,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -33622,6 +33846,7 @@ "", "", "", + "", "" ], "type": "string" @@ -33682,11 +33907,15 @@ "networkTier": { "description": "This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD.\n\nIf an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier.\n\nIf an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP.", "enum": [ + "FIXED_STANDARD", "PREMIUM", "SELECT", - "STANDARD" + "STANDARD", + "STANDARD_OVERRIDES_FIXED_STANDARD" ], "enumDescriptions": [ + "", + "", "", "", "" @@ -33810,11 +34039,15 @@ "networkTier": { "description": "This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM or STANDARD. Global forwarding rules can only be Premium Tier. Regional forwarding rules can be either Premium or Standard Tier. Standard Tier addresses applied to regional forwarding rules can be used with any external load balancer. Regional forwarding rules in Premium Tier can only be used with a network load balancer.\n\nIf this field is not specified, it is assumed to be PREMIUM.", "enum": [ + "FIXED_STANDARD", "PREMIUM", "SELECT", - "STANDARD" + "STANDARD", + "STANDARD_OVERRIDES_FIXED_STANDARD" ], "enumDescriptions": [ + "", + "", "", "", "" @@ -33827,7 +34060,7 @@ "type": "integer" }, "purpose": { - "description": "The purpose of this resource, which can be one of the following values: \n- `GCE_ENDPOINT` for addresses that are used by VM instances, alias IP ranges, internal load balancers, and similar resources. \n- `DNS_RESOLVER` for a DNS resolver address in a subnetwork \n- `VPC_PEERING` for addresses that are reserved for VPC peer networks. \n- `NAT_AUTO` for addresses that are external IP addresses automatically reserved for Cloud NAT. \n- `IPSEC_INTERCONNECT` for addresses created from a private IP range reserved for a VLAN attachment in an IPsec over Interconnect configuration. These addresses are regional resources.", + "description": "The purpose of this resource, which can be one of the following values: \n- `GCE_ENDPOINT` for addresses that are used by VM instances, alias IP ranges, internal load balancers, and similar resources. \n- `DNS_RESOLVER` for a DNS resolver address in a subnetwork \n- `VPC_PEERING` for addresses that are reserved for VPC peer networks. \n- `NAT_AUTO` for addresses that are external IP addresses automatically reserved for Cloud NAT. \n- `IPSEC_INTERCONNECT` for addresses created from a private IP range that are reserved for a VLAN attachment in an IPsec encrypted Interconnect configuration. These addresses are regional resources.", "enum": [ "DNS_RESOLVER", "GCE_ENDPOINT", @@ -33939,6 +34172,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -33980,6 +34214,7 @@ "", "", "", + "", "" ], "type": "string" @@ -34053,6 +34288,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -34094,6 +34330,7 @@ "", "", "", + "", "" ], "type": "string" @@ -34149,6 +34386,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -34190,6 +34428,7 @@ "", "", "", + "", "" ], "type": "string" @@ -34252,6 +34491,24 @@ }, "type": "object" }, + "AllocationShareSettings": { + "id": "AllocationShareSettings", + "properties": { + "shareType": { + "description": "Type of sharing for this shared-reservation", + "enum": [ + "ORGANIZATION", + "SHARE_TYPE_UNSPECIFIED" + ], + "enumDescriptions": [ + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, "AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk": { "id": "AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk", "properties": { @@ -34371,6 +34628,10 @@ "format": "int64", "type": "string" }, + "forceAttach": { + "description": "[Input Only] Whether to force attach the regional disk even if it's currently attached to another instance. If you try to force attach a zonal disk to an instance, you will receive an error.", + "type": "boolean" + }, "guestOsFeatures": { "description": "A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.", "items": { @@ -34696,7 +34957,7 @@ "type": "object" }, "Autoscaler": { - "description": "Represents an Autoscaler resource.\n\nGoogle Compute Engine has two Autoscaler resources:\n\n* [Global](/compute/docs/reference/rest/{$api_version}/autoscalers) * [Regional](/compute/docs/reference/rest/{$api_version}/regionAutoscalers)\n\nUse autoscalers to automatically add or delete instances from a managed instance group according to your defined autoscaling policy. For more information, read Autoscaling Groups of Instances.\n\nFor zonal managed instance groups resource, use the autoscaler resource.\n\nFor regional managed instance groups, use the regionAutoscalers resource. (== resource_for {$api_version}.autoscalers ==) (== resource_for {$api_version}.regionAutoscalers ==)", + "description": "Represents an Autoscaler resource.\n\nGoogle Compute Engine has two Autoscaler resources:\n\n* [Zonal](/compute/docs/reference/rest/{$api_version}/autoscalers) * [Regional](/compute/docs/reference/rest/{$api_version}/regionAutoscalers)\n\nUse autoscalers to automatically add or delete instances from a managed instance group according to your defined autoscaling policy. For more information, read Autoscaling Groups of Instances.\n\nFor zonal managed instance groups resource, use the autoscaler resource.\n\nFor regional managed instance groups, use the regionAutoscalers resource. (== resource_for {$api_version}.autoscalers ==) (== resource_for {$api_version}.regionAutoscalers ==)", "id": "Autoscaler", "properties": { "autoscalingPolicy": { @@ -34838,6 +35099,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -34879,6 +35141,7 @@ "", "", "", + "", "" ], "type": "string" @@ -34952,6 +35215,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -34993,6 +35257,7 @@ "", "", "", + "", "" ], "type": "string" @@ -35102,6 +35367,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -35143,6 +35409,7 @@ "", "", "", + "", "" ], "type": "string" @@ -35484,6 +35751,10 @@ "description": "An optional textual description of the resource; provided by the client when the resource is created.", "type": "string" }, + "edgeSecurityPolicy": { + "description": "[Output Only] The resource URL for the edge security policy associated with this backend bucket.", + "type": "string" + }, "enableCdn": { "description": "If true, enable Cloud CDN for this BackendBucket.", "type": "boolean" @@ -35557,7 +35828,7 @@ "type": "integer" }, "negativeCaching": { - "description": "Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. This can reduce the load on your origin and improve end-user experience by reducing response latency. By default, Cloud CDN will apply the following default TTLs to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), 421 (Misdirected Request), 501 (Not Implemented): 60s These defaults can be overridden in negative_caching_policy", + "description": "Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. This can reduce the load on your origin and improve end-user experience by reducing response latency. When the cache mode is set to CACHE_ALL_STATIC or USE_ORIGIN_HEADERS, negative caching applies to responses with the specified response code that lack any Cache-Control, Expires, or Pragma: no-cache directives. When the cache mode is set to FORCE_CACHE_ALL, negative caching applies to all responses with the specified response code, and override any caching headers. By default, Cloud CDN will apply the following default TTLs to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), 421 (Misdirected Request), 501 (Not Implemented): 60s. These defaults can be overridden in negative_caching_policy.", "type": "boolean" }, "negativeCachingPolicy": { @@ -35612,7 +35883,7 @@ "type": "integer" }, "ttl": { - "description": "The TTL (in seconds) to cache responses with the corresponding status code for. The maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be evicted from the cache before the defined TTL.", + "description": "The TTL (in seconds) for which to cache responses with the corresponding status code. The maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be evicted from the cache before the defined TTL.", "format": "int32", "type": "integer" } @@ -35661,6 +35932,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -35702,6 +35974,7 @@ "", "", "", + "", "" ], "type": "string" @@ -35760,6 +36033,9 @@ "connectionDraining": { "$ref": "ConnectionDraining" }, + "connectionTrackingPolicy": { + "$ref": "BackendServiceConnectionTrackingPolicy" + }, "consistentHash": { "$ref": "ConsistentHashLoadBalancerSettings", "description": "Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. This load balancing policy is applicable only for HTTP connections. The affinity to a particular destination host will be lost when one or more hosts are added/removed from the destination service. This field specifies parameters that control consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or RING_HASH.\n\nThis field is applicable to either: \n- A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. \n- A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED. \n\nNot supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true." @@ -35786,6 +36062,10 @@ "description": "An optional description of this resource. Provide this property when you create the resource.", "type": "string" }, + "edgeSecurityPolicy": { + "description": "[Output Only] The resource URL for the edge security policy associated with this backend service.", + "type": "string" + }, "enableCDN": { "description": "If true, enables Cloud CDN for the backend service. Only applicable if the loadBalancingScheme is EXTERNAL and the protocol is HTTP or HTTPS.", "type": "boolean" @@ -35824,6 +36104,7 @@ "description": "Specifies the load balancer type. Choose EXTERNAL for load balancers that receive traffic from external clients. Choose INTERNAL for Internal TCP/UDP Load Balancing. Choose INTERNAL_MANAGED for Internal HTTP(S) Load Balancing. Choose INTERNAL_SELF_MANAGED for Traffic Director. A backend service created for one type of load balancing cannot be used with another. For more information, refer to Choosing a load balancer.", "enum": [ "EXTERNAL", + "EXTERNAL_MANAGED", "INTERNAL", "INTERNAL_MANAGED", "INTERNAL_SELF_MANAGED", @@ -35834,6 +36115,7 @@ "", "", "", + "", "" ], "type": "string" @@ -36015,6 +36297,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -36056,6 +36339,7 @@ "", "", "", + "", "" ], "type": "string" @@ -36134,7 +36418,7 @@ "type": "integer" }, "negativeCaching": { - "description": "Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. This can reduce the load on your origin and improve end-user experience by reducing response latency. By default, Cloud CDN will apply the following default TTLs to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), 421 (Misdirected Request), 501 (Not Implemented): 60s These defaults can be overridden in negative_caching_policy", + "description": "Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. This can reduce the load on your origin and improve end-user experience by reducing response latency. When the cache mode is set to CACHE_ALL_STATIC or USE_ORIGIN_HEADERS, negative caching applies to responses with the specified response code that lack any Cache-Control, Expires, or Pragma: no-cache directives. When the cache mode is set to FORCE_CACHE_ALL, negative caching applies to all responses with the specified response code, and override any caching headers. By default, Cloud CDN will apply the following default TTLs to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), 421 (Misdirected Request), 501 (Not Implemented): 60s. These defaults can be overridden in negative_caching_policy.", "type": "boolean" }, "negativeCachingPolicy": { @@ -36189,13 +36473,34 @@ "type": "integer" }, "ttl": { - "description": "The TTL (in seconds) to cache responses with the corresponding status code for. The maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be evicted from the cache before the defined TTL.", + "description": "The TTL (in seconds) for which to cache responses with the corresponding status code. The maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be evicted from the cache before the defined TTL.", "format": "int32", "type": "integer" } }, "type": "object" }, + "BackendServiceConnectionTrackingPolicy": { + "description": "Connection Tracking configuration for this BackendService.", + "id": "BackendServiceConnectionTrackingPolicy", + "properties": { + "connectionPersistenceOnUnhealthyBackends": { + "description": "Specifies connection persistence when backends are unhealthy. The default value is DEFAULT_FOR_PROTOCOL.\n\nIf set to DEFAULT_FOR_PROTOCOL, the existing connections persist on unhealthy backends only for connection-oriented protocols (TCP and SCTP) and only if the Tracking Mode is PER_CONNECTION (default tracking mode) or the Session Affinity is configured for 5-tuple. They do not persist for UDP.\n\nIf set to NEVER_PERSIST, after a backend becomes unhealthy, the existing connections on the unhealthy backend are never persisted on the unhealthy backend. They are always diverted to newly selected healthy backends (unless all backends are unhealthy).\n\nIf set to ALWAYS_PERSIST, existing connections always persist on unhealthy backends regardless of protocol and session affinity. It is generally not recommended to use this mode overriding the default.", + "enum": [ + "ALWAYS_PERSIST", + "DEFAULT_FOR_PROTOCOL", + "NEVER_PERSIST" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, "BackendServiceFailoverPolicy": { "description": "Applicable only to Failover for Internal TCP/UDP Load Balancing. On failover or failback, this field indicates whether connection draining will be honored. GCP has a fixed connection draining timeout of 10 minutes. A setting of true terminates existing TCP connections to the active pool during failover and failback, immediately draining traffic. A setting of false allows existing TCP connections to persist, even on VMs no longer in the active pool, for up to the duration of the connection draining timeout (10 minutes).", "id": "BackendServiceFailoverPolicy", @@ -36328,6 +36633,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -36369,6 +36675,7 @@ "", "", "", + "", "" ], "type": "string" @@ -36449,6 +36756,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -36490,6 +36798,7 @@ "", "", "", + "", "" ], "type": "string" @@ -36820,17 +37129,25 @@ "type": "string" }, "instance": { - "$ref": "Instance" + "$ref": "Instance", + "description": "The instance defining the VM instances to be created." }, "instanceProperties": { "$ref": "InstanceProperties", - "description": "The instance properties for the request. Required if sourceInstanceTemplate is not provided." + "description": "The instance properties defining the VM instances to be created. Required if sourceInstanceTemplate is not provided." + }, + "locationPolicy": { + "$ref": "LocationPolicy" }, "minCount": { "description": "The minimum number of instances to create. If no min_count is specified then count is used as the default value. If min_count instances cannot be created, then no instances will be created.", "format": "int64", "type": "string" }, + "namePattern": { + "description": "Instance name pattern. Name pattern includes a parameter to specify the auto-incrementing portion of the name, in a form of consecutive hash (#) chars, each of them corresponding to one digit of an instance name. For example: name_pattern = inst-####-prod will generate names starting with inst-0001-prod, inst-0002-prod, up to required count. If there exist instances matching the name pattern in the same project and zone, the initial instance number will be equal to the maximum existing instance number + 1 (e.g. if there exists an instance with name inst-0030-prod, then the generated names will start with inst-0031-prod). The name pattern placeholder #...# can contain up to 18 characters.", + "type": "string" + }, "predefinedNames": { "description": "List of predefined names. The number of names provided must be equal to count.", "items": { @@ -37204,6 +37521,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -37245,6 +37563,7 @@ "", "", "", + "", "" ], "type": "string" @@ -37318,6 +37637,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -37359,6 +37679,7 @@ "", "", "", + "", "" ], "type": "string" @@ -37414,6 +37735,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -37455,6 +37777,7 @@ "", "", "", + "", "" ], "type": "string" @@ -38067,6 +38390,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -38108,6 +38432,7 @@ "", "", "", + "", "" ], "type": "string" @@ -38222,6 +38547,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -38263,6 +38589,7 @@ "", "", "", + "", "" ], "type": "string" @@ -38416,6 +38743,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -38457,6 +38785,7 @@ "", "", "", + "", "" ], "type": "string" @@ -38530,6 +38859,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -38571,6 +38901,7 @@ "", "", "", + "", "" ], "type": "string" @@ -38626,6 +38957,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -38667,6 +38999,7 @@ "", "", "", + "", "" ], "type": "string" @@ -38759,6 +39092,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -38800,6 +39134,7 @@ "", "", "", + "", "" ], "type": "string" @@ -38860,7 +39195,7 @@ "type": "string" }, "zones": { - "description": "Zones where the regional managed instance group will create and manage instances.", + "description": "Zones where the regional managed instance group will create and manage its instances.", "items": { "$ref": "DistributionPolicyZoneConfiguration" }, @@ -38980,6 +39315,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -39021,6 +39357,7 @@ "", "", "", + "", "" ], "type": "string" @@ -39208,6 +39545,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -39249,6 +39587,7 @@ "", "", "", + "", "" ], "type": "string" @@ -39506,6 +39845,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -39547,6 +39887,7 @@ "", "", "", + "", "" ], "type": "string" @@ -39730,6 +40071,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -39771,6 +40113,7 @@ "", "", "", + "", "" ], "type": "string" @@ -39958,7 +40301,7 @@ "id": "ForwardingRule", "properties": { "IPAddress": { - "description": "IP address that this forwarding rule serves. When a client sends traffic to this IP address, the forwarding rule directs the traffic to the target that you specify in the forwarding rule.\n\nIf you don't specify a reserved IP address, an ephemeral IP address is assigned. Methods for specifying an IP address:\n\n* IPv4 dotted decimal, as in `100.1.2.3` * Full URL, as in https://www.googleapis.com/compute/v1/projects/project_id/regions/region/addresses/address-name * Partial URL or by name, as in: * projects/project_id/regions/region/addresses/address-name * regions/region/addresses/address-name * global/addresses/address-name * address-name \n\nThe loadBalancingScheme and the forwarding rule's target determine the type of IP address that you can use. For detailed information, refer to [IP address specifications](/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications).\n\nMust be set to `0.0.0.0` when the target is targetGrpcProxy that has validateForProxyless field set to true.", + "description": "IP address that this forwarding rule serves. When a client sends traffic to this IP address, the forwarding rule directs the traffic to the target that you specify in the forwarding rule.\n\nIf you don't specify a reserved IP address, an ephemeral IP address is assigned. Methods for specifying an IP address:\n\n* IPv4 dotted decimal, as in `100.1.2.3` * Full URL, as in https://www.googleapis.com/compute/v1/projects/project_id/regions/region/addresses/address-name * Partial URL or by name, as in: * projects/project_id/regions/region/addresses/address-name * regions/region/addresses/address-name * global/addresses/address-name * address-name \n\nThe loadBalancingScheme and the forwarding rule's target determine the type of IP address that you can use. For detailed information, refer to [IP address specifications](/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications).\n\nMust be set to `0.0.0.0` when the target is targetGrpcProxy that has validateForProxyless field set to true.\n\nFor Private Service Connect forwarding rules that forward traffic to Google APIs, IP address must be provided.", "type": "string" }, "IPProtocol": { @@ -40052,6 +40395,7 @@ "description": "Specifies the forwarding rule type.\n\n \n- EXTERNAL is used for: \n- Classic Cloud VPN gateways \n- Protocol forwarding to VMs from an external IP address \n- The following load balancers: HTTP(S), SSL Proxy, TCP Proxy, and Network TCP/UDP \n- INTERNAL is used for: \n- Protocol forwarding to VMs from an internal IP address \n- Internal TCP/UDP load balancers \n- INTERNAL_MANAGED is used for: \n- Internal HTTP(S) load balancers \n- INTERNAL_SELF_MANAGED is used for: \n- Traffic Director \n\nFor more information about forwarding rules, refer to Forwarding rule concepts.", "enum": [ "EXTERNAL", + "EXTERNAL_MANAGED", "INTERNAL", "INTERNAL_MANAGED", "INTERNAL_SELF_MANAGED", @@ -40062,6 +40406,7 @@ "", "", "", + "", "" ], "type": "string" @@ -40079,17 +40424,21 @@ "type": "string" }, "network": { - "description": "This field is not used for external load balancing.\n\nFor internal load balancing, this field identifies the network that the load balanced IP should belong to for this Forwarding Rule. If this field is not specified, the default network will be used.", + "description": "This field is not used for external load balancing.\n\nFor internal load balancing, this field identifies the network that the load balanced IP should belong to for this Forwarding Rule. If this field is not specified, the default network will be used.\n\nFor Private Service Connect forwarding rules that forward traffic to Google APIs, a network must be provided.", "type": "string" }, "networkTier": { "description": "This signifies the networking tier used for configuring this load balancer and can only take the following values: PREMIUM, STANDARD.\n\nFor regional ForwardingRule, the valid values are PREMIUM and STANDARD. For GlobalForwardingRule, the valid value is PREMIUM.\n\nIf this field is not specified, it is assumed to be PREMIUM. If IPAddress is specified, this value must be equal to the networkTier of the Address.", "enum": [ + "FIXED_STANDARD", "PREMIUM", "SELECT", - "STANDARD" + "STANDARD", + "STANDARD_OVERRIDES_FIXED_STANDARD" ], "enumDescriptions": [ + "", + "", "", "", "" @@ -40140,7 +40489,7 @@ "type": "string" }, "target": { - "description": "The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must be in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object. For more information, see the \"Target\" column in [Port specifications](/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications).", + "description": "The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must be in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object. For more information, see the \"Target\" column in [Port specifications](/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications).\n\nFor Private Service Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported Google API bundle. Currently, the supported Google API bundles include:\n\n \n- vpc-sc - GCP APIs that support VPC Service Controls. For more information about which APIs support VPC Service Controls, refer to VPC-SC supported products and limitations. \n- all-apis - All GCP APIs. For more information about which APIs are supported with this bundle, refer to Private Google Access-specific domains and VIPs.", "type": "string" } }, @@ -40195,6 +40544,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -40236,6 +40586,7 @@ "", "", "", + "", "" ], "type": "string" @@ -40309,6 +40660,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -40350,6 +40702,7 @@ "", "", "", + "", "" ], "type": "string" @@ -40429,6 +40782,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -40470,6 +40824,7 @@ "", "", "", + "", "" ], "type": "string" @@ -41038,6 +41393,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -41079,6 +41435,7 @@ "", "", "", + "", "" ], "type": "string" @@ -41274,6 +41631,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -41315,6 +41673,7 @@ "", "", "", + "", "" ], "type": "string" @@ -41395,6 +41754,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -41436,6 +41796,7 @@ "", "", "", + "", "" ], "type": "string" @@ -41491,6 +41852,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -41532,6 +41894,7 @@ "", "", "", + "", "" ], "type": "string" @@ -41934,6 +42297,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -41975,6 +42339,7 @@ "", "", "", + "", "" ], "type": "string" @@ -42344,6 +42709,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -42385,6 +42751,7 @@ "", "", "", + "", "" ], "type": "string" @@ -42661,6 +43028,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -42702,6 +43070,7 @@ "", "", "", + "", "" ], "type": "string" @@ -42866,6 +43235,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -42907,6 +43277,7 @@ "", "", "", + "", "" ], "type": "string" @@ -43300,6 +43671,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -43341,6 +43713,7 @@ "", "", "", + "", "" ], "type": "string" @@ -43497,6 +43870,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -43538,6 +43912,7 @@ "", "", "", + "", "" ], "type": "string" @@ -43611,6 +43986,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -43652,6 +44028,7 @@ "", "", "", + "", "" ], "type": "string" @@ -43718,7 +44095,7 @@ }, "distributionPolicy": { "$ref": "DistributionPolicy", - "description": "Policy specifying intended distribution of instances in regional managed instance group." + "description": "Policy specifying the intended distribution of managed instances across zones in a regional managed instance group." }, "failoverAction": { "description": "The action to perform in case of zone failure. Only one value is supported, NO_FAILOVER. The default is NO_FAILOVER.", @@ -43747,7 +44124,7 @@ "type": "string" }, "instanceTemplate": { - "description": "The URL of the instance template that is specified for this managed instance group. The group uses this template to create all new instances in the managed instance group.", + "description": "The URL of the instance template that is specified for this managed instance group. The group uses this template to create all new instances in the managed instance group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE.", "type": "string" }, "kind": { @@ -43831,7 +44208,7 @@ "type": "array" }, "zone": { - "description": "[Output Only] The URL of the zone where the managed instance group is located (for zonal resources).", + "description": "[Output Only] The URL of a zone where the managed instance group is located (for zonal resources).", "type": "string" } }, @@ -43937,6 +44314,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -43978,6 +44356,7 @@ "", "", "", + "", "" ], "type": "string" @@ -44071,6 +44450,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -44112,6 +44492,7 @@ "", "", "", + "", "" ], "type": "string" @@ -44304,7 +44685,7 @@ "id": "InstanceGroupManagerVersion", "properties": { "instanceTemplate": { - "description": "The URL of the instance template that is specified for this managed instance group. The group uses this template to create new instances in the managed instance group until the `targetSize` for this version is reached.", + "description": "The URL of the instance template that is specified for this managed instance group. The group uses this template to create new instances in the managed instance group until the `targetSize` for this version is reached. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE; in those cases, existing instances are updated until the `targetSize` for this version is reached.", "type": "string" }, "name": { @@ -44504,6 +44885,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -44545,6 +44927,7 @@ "", "", "", + "", "" ], "type": "string" @@ -44642,6 +45025,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -44683,6 +45067,7 @@ "", "", "", + "", "" ], "type": "string" @@ -44730,7 +45115,7 @@ "id": "InstanceGroupManagersSetInstanceTemplateRequest", "properties": { "instanceTemplate": { - "description": "The URL of the instance template that is specified for this managed instance group. The group uses this template to create all new instances in the managed instance group.", + "description": "The URL of the instance template that is specified for this managed instance group. The group uses this template to create all new instances in the managed instance group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE.", "type": "string" } }, @@ -44822,6 +45207,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -44863,6 +45249,7 @@ "", "", "", + "", "" ], "type": "string" @@ -44949,6 +45336,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -44990,6 +45378,7 @@ "", "", "", + "", "" ], "type": "string" @@ -45081,6 +45470,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -45122,6 +45512,7 @@ "", "", "", + "", "" ], "type": "string" @@ -45195,6 +45586,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -45236,6 +45628,7 @@ "", "", "", + "", "" ], "type": "string" @@ -45593,6 +45986,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -45634,6 +46028,7 @@ "", "", "", + "", "" ], "type": "string" @@ -45816,6 +46211,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -45857,6 +46253,7 @@ "", "", "", + "", "" ], "type": "string" @@ -46077,6 +46474,42 @@ }, "type": "object" }, + "InstantSnapshotExportParams": { + "id": "InstantSnapshotExportParams", + "properties": { + "baseInstantSnapshot": { + "description": "An optional base instant snapshot that this resource is compared against. If not specified, all blocks of this resource are exported. The base instant snapshot and this resource must be created from the same disk. The base instant snapshot must be created earlier in time than this resource.", + "type": "string" + }, + "bucketName": { + "description": "The name of an existing bucket in Cloud Storage where the changed blocks will be stored. The Google Service Account must have read and write access to this bucket. The bucket has to be in the same region as this resource.", + "type": "string" + }, + "encryptionKey": { + "$ref": "CustomerEncryptionKey", + "description": "Encryption key used to encrypt the instant snapshot." + }, + "objectName": { + "description": "Name of the output Bigstore object storing the changed blocks. Object name must be less than 1024 bytes in length.", + "type": "string" + }, + "outputType": { + "description": "The format of the output file.", + "enum": [ + "INVALID", + "METADATA_AND_DATA", + "METADATA_ONLY" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, "InstantSnapshotList": { "description": "Contains a list of InstantSnapshot resources.", "id": "InstantSnapshotList", @@ -46119,6 +46552,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -46160,6 +46594,7 @@ "", "", "", + "", "" ], "type": "string" @@ -46431,6 +46866,11 @@ "description": "[Output Only] IPv4 address + prefix length to be configured on the customer router subinterface for this interconnect attachment.", "type": "string" }, + "dataplaneVersion": { + "description": "[Output Only] Dataplane version for this InterconnectAttachment.", + "format": "int32", + "type": "integer" + }, "description": { "description": "An optional description of this resource.", "type": "string" @@ -46646,6 +47086,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -46687,6 +47128,7 @@ "", "", "", + "", "" ], "type": "string" @@ -46760,6 +47202,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -46801,6 +47244,7 @@ "", "", "", + "", "" ], "type": "string" @@ -46887,6 +47331,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -46928,6 +47373,7 @@ "", "", "", + "", "" ], "type": "string" @@ -47147,6 +47593,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -47188,6 +47635,7 @@ "", "", "", + "", "" ], "type": "string" @@ -47369,6 +47817,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -47410,6 +47859,7 @@ "", "", "", + "", "" ], "type": "string" @@ -47667,6 +48117,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -47708,6 +48159,7 @@ "", "", "", + "", "" ], "type": "string" @@ -47781,6 +48233,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -47822,6 +48275,7 @@ "", "", "", + "", "" ], "type": "string" @@ -48117,6 +48571,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -48158,6 +48613,7 @@ "", "", "", + "", "" ], "type": "string" @@ -48209,6 +48665,39 @@ }, "type": "object" }, + "LocationPolicy": { + "description": "Configuration for location policy among multiple possible locations (e.g. preferences for zone selection among zones in a single region).", + "id": "LocationPolicy", + "properties": { + "locations": { + "additionalProperties": { + "$ref": "LocationPolicyLocation" + }, + "description": "Location configurations mapped by location name. Currently only zone names are supported and must be represented as valid internal URLs, like: zones/us-central1-a.", + "type": "object" + } + }, + "type": "object" + }, + "LocationPolicyLocation": { + "id": "LocationPolicyLocation", + "properties": { + "preference": { + "enum": [ + "ALLOW", + "DENY", + "PREFERENCE_UNSPECIFIED" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, "LogConfig": { "description": "Specifies what kind of log the caller must write", "id": "LogConfig", @@ -48447,6 +48936,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -48488,6 +48978,7 @@ "", "", "", + "", "" ], "type": "string" @@ -48656,6 +49147,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -48697,6 +49189,7 @@ "", "", "", + "", "" ], "type": "string" @@ -48770,6 +49263,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -48811,6 +49305,7 @@ "", "", "", + "", "" ], "type": "string" @@ -48866,6 +49361,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -48907,6 +49403,7 @@ "", "", "", + "", "" ], "type": "string" @@ -49550,6 +50047,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -49591,6 +50089,7 @@ "", "", "", + "", "" ], "type": "string" @@ -49740,6 +50239,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -49781,6 +50281,7 @@ "", "", "", + "", "" ], "type": "string" @@ -49909,6 +50410,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -49950,6 +50452,7 @@ "", "", "", + "", "" ], "type": "string" @@ -50005,6 +50508,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -50046,6 +50550,7 @@ "", "", "", + "", "" ], "type": "string" @@ -50165,7 +50670,7 @@ "type": "string" }, "queueCount": { - "description": "The networking queue count for the network interface. Both Rx and Tx queues will be set to this number. If it's not specified by the user, a default number of queues will be assigned. For Virtio-net, each interface will get (min(#vCPU, 32) / #vNIC) queues. For gVNIC, each interface will get (min(#vCPU / 2, 16) / #vNIC) qeueus.", + "description": "The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It'll be empty if not specified by the users.", "format": "int32", "type": "integer" }, @@ -50232,6 +50737,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -50273,6 +50779,7 @@ "", "", "", + "", "" ], "type": "string" @@ -50625,6 +51132,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -50666,6 +51174,7 @@ "", "", "", + "", "" ], "type": "string" @@ -50771,6 +51280,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -50812,6 +51322,7 @@ "", "", "", + "", "" ], "type": "string" @@ -51001,6 +51512,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -51042,6 +51554,7 @@ "", "", "", + "", "" ], "type": "string" @@ -51097,6 +51610,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -51138,6 +51652,7 @@ "", "", "", + "", "" ], "type": "string" @@ -51334,6 +51849,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -51375,6 +51891,7 @@ "", "", "", + "", "" ], "type": "string" @@ -51448,6 +51965,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -51489,6 +52007,7 @@ "", "", "", + "", "" ], "type": "string" @@ -51559,6 +52078,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -51600,6 +52120,7 @@ "", "", "", + "", "" ], "type": "string" @@ -51745,6 +52266,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -51786,6 +52308,7 @@ "", "", "", + "", "" ], "type": "string" @@ -51859,6 +52382,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -51900,6 +52424,7 @@ "", "", "", + "", "" ], "type": "string" @@ -51955,6 +52480,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -51996,6 +52522,7 @@ "", "", "", + "", "" ], "type": "string" @@ -52138,6 +52665,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -52179,6 +52707,7 @@ "", "", "", + "", "" ], "type": "string" @@ -52355,6 +52884,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -52396,6 +52926,7 @@ "", "", "", + "", "" ], "type": "string" @@ -52482,6 +53013,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -52523,6 +53055,7 @@ "", "", "", + "", "" ], "type": "string" @@ -52596,6 +53129,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -52637,6 +53171,7 @@ "", "", "", + "", "" ], "type": "string" @@ -52692,6 +53227,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -52733,6 +53269,7 @@ "", "", "", + "", "" ], "type": "string" @@ -53046,6 +53583,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -53087,6 +53625,7 @@ "", "", "", + "", "" ], "type": "string" @@ -53208,6 +53747,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -53249,6 +53789,7 @@ "", "", "", + "", "" ], "type": "string" @@ -53373,6 +53914,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -53414,6 +53956,7 @@ "", "", "", + "", "" ], "type": "string" @@ -53853,11 +54396,15 @@ "defaultNetworkTier": { "description": "This signifies the default network tier used for configuring resources of the project and can only take the following values: PREMIUM, STANDARD. Initially the default network tier is PREMIUM.", "enum": [ + "FIXED_STANDARD", "PREMIUM", "SELECT", - "STANDARD" + "STANDARD", + "STANDARD_OVERRIDES_FIXED_STANDARD" ], "enumDescriptions": [ + "", + "", "", "", "" @@ -53981,11 +54528,15 @@ "networkTier": { "description": "Default network tier to be set.", "enum": [ + "FIXED_STANDARD", "PREMIUM", "SELECT", - "STANDARD" + "STANDARD", + "STANDARD_OVERRIDES_FIXED_STANDARD" ], "enumDescriptions": [ + "", + "", "", "", "" @@ -54135,6 +54686,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -54176,6 +54728,7 @@ "", "", "", + "", "" ], "type": "string" @@ -54362,6 +54915,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -54403,6 +54957,7 @@ "", "", "", + "", "" ], "type": "string" @@ -54475,6 +55030,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -54516,6 +55072,7 @@ "", "", "", + "", "" ], "type": "string" @@ -54614,6 +55171,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -54655,6 +55213,7 @@ "", "", "", + "", "" ], "type": "string" @@ -55112,6 +55671,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -55153,6 +55713,7 @@ "", "", "", + "", "" ], "type": "string" @@ -55238,6 +55799,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -55279,6 +55841,7 @@ "", "", "", + "", "" ], "type": "string" @@ -55389,6 +55952,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -55430,6 +55994,7 @@ "", "", "", + "", "" ], "type": "string" @@ -55517,6 +56082,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -55558,6 +56124,7 @@ "", "", "", + "", "" ], "type": "string" @@ -55768,6 +56335,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -55809,6 +56377,7 @@ "", "", "", + "", "" ], "type": "string" @@ -55951,6 +56520,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -55992,6 +56562,7 @@ "", "", "", + "", "" ], "type": "string" @@ -56106,6 +56677,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -56147,6 +56719,7 @@ "", "", "", + "", "" ], "type": "string" @@ -56296,6 +56869,10 @@ "description": "[Output Only] Server-defined URL for this resource with the resource id.", "type": "string" }, + "shareSettings": { + "$ref": "AllocationShareSettings", + "description": "Share-settings for shared-reservation" + }, "specificReservation": { "$ref": "AllocationSpecificSKUReservation", "description": "Reservation for instances with specific machine shapes." @@ -56415,6 +56992,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -56456,6 +57034,7 @@ "", "", "", + "", "" ], "type": "string" @@ -56528,6 +57107,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -56569,6 +57149,7 @@ "", "", "", + "", "" ], "type": "string" @@ -56635,6 +57216,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -56676,6 +57258,7 @@ "", "", "", + "", "" ], "type": "string" @@ -56775,6 +57358,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -56816,6 +57400,7 @@ "", "", "", + "", "" ], "type": "string" @@ -56860,7 +57445,7 @@ }, "groupPlacementPolicy": { "$ref": "ResourcePolicyGroupPlacementPolicy", - "description": "Resource policy for instacnes for placement configuration." + "description": "Resource policy for instances for placement configuration." }, "id": { "description": "[Output Only] The unique identifier for the resource. This identifier is defined by the server.", @@ -56977,6 +57562,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -57018,6 +57604,7 @@ "", "", "", + "", "" ], "type": "string" @@ -57234,6 +57821,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -57275,6 +57863,7 @@ "", "", "", + "", "" ], "type": "string" @@ -57551,7 +58140,7 @@ "type": "string" }, "nextHopIlb": { - "description": "The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets. You can only specify the forwarding rule as a partial or full URL. For example, the following are all valid URLs: \n- https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule \n- regions/region/forwardingRules/forwardingRule", + "description": "The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets or the IP address of the forwarding Rule. For example, the following are all valid URLs: \n- 10.128.0.56 \n- https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule \n- regions/region/forwardingRules/forwardingRule", "type": "string" }, "nextHopInstance": { @@ -57623,6 +58212,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -57664,6 +58254,7 @@ "", "", "", + "", "" ], "type": "string" @@ -57739,6 +58330,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -57780,6 +58372,7 @@ "", "", "", + "", "" ], "type": "string" @@ -57962,6 +58555,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -58003,6 +58597,7 @@ "", "", "", + "", "" ], "type": "string" @@ -58191,7 +58786,7 @@ "type": "string" }, "routerApplianceInstance": { - "description": "URI of the VM instance that is used as third party router appliances such as Next Gen Firewalls, Virtual Routers, SD-WAN. The VM instance must live in zones contained in the same region as this Cloud Router. The VM instance is the peer side of the BGP session.", + "description": "URI of the VM instance that is used as third-party router appliances such as Next Gen Firewalls, Virtual Routers, or Router Appliances. The VM instance must be located in zones contained in the same region as this Cloud Router. The VM instance is the peer side of the BGP session.", "type": "string" } }, @@ -58301,16 +58896,16 @@ "type": "string" }, "privateIpAddress": { - "description": "The regional private internal IP address that will be used to establish BGP session to a VM instance, which is used as third party router appliances such as Next Gen Firewalls, Virtual Routers, SD-WAN.", + "description": "The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance, such as a Next Gen Firewall, a Virtual Router, or an SD-WAN VM.", "type": "string" }, "redundantInterface": { - "description": "Name of the interface that will be redundant with the current interface you are creating. The redundantInterface must belong to the same Cloud Router as the interface here. To establish the BGP session to SD-WAN VM, you must create two BGP peers, and the two BGP peers need to be attached to two separate interfaces that are redundant with each other. The redundant_interface must be 1-63 characters long, and comply with RFC1035. Specifically, the redundant_interface must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.", + "description": "Name of the interface that will be redundant with the current interface you are creating. The redundantInterface must belong to the same Cloud Router as the interface here. To establish the BGP session to a Router Appliance VM, you must create two BGP peers. The two BGP peers must be attached to two separate interfaces that are redundant with each other. The redundant_interface must be 1-63 characters long, and comply with RFC1035. Specifically, the redundant_interface must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.", "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", "type": "string" }, "subnetwork": { - "description": "The URL of the subnetwork resource this interface belongs to, it must be in the same region as the router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here.", + "description": "The URL of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here.", "type": "string" } }, @@ -58358,6 +58953,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -58399,6 +58995,7 @@ "", "", "", + "", "" ], "type": "string" @@ -58882,6 +59479,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -58923,6 +59521,7 @@ "", "", "", + "", "" ], "type": "string" @@ -59200,9 +59799,11 @@ "enum": [ "ACTIVE", "DISABLED", - "OBSOLETE" + "OBSOLETE", + "READY" ], "enumDescriptions": [ + "", "", "", "" @@ -59352,7 +59953,7 @@ "type": "object" }, "SecurityPolicy": { - "description": "Represents a Cloud Armor Security Policy resource.\n\nOnly external backend services that use load balancers can reference a Security Policy. For more information, read Cloud Armor Security Policy Concepts. (== resource_for {$api_version}.securityPolicies ==)", + "description": "Represents a Google Cloud Armor security policy resource.\n\nOnly external backend services that use load balancers can reference a security policy. For more information, see Google Cloud Armor security policy overview. (== resource_for {$api_version}.securityPolicies ==)", "id": "SecurityPolicy", "properties": { "associations": { @@ -59438,9 +60039,11 @@ "description": "The type indicates the intended use of the security policy. CLOUD_ARMOR policies apply to backend services. FIREWALL policies apply to organizations.", "enum": [ "CLOUD_ARMOR", + "CLOUD_ARMOR_EDGE", "FIREWALL" ], "enumDescriptions": [ + "", "", "" ], @@ -59519,6 +60122,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -59560,6 +60164,7 @@ "", "", "", + "", "" ], "type": "string" @@ -60105,6 +60710,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -60146,6 +60752,7 @@ "", "", "", + "", "" ], "type": "string" @@ -60526,6 +61133,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -60567,6 +61175,7 @@ "", "", "", + "", "" ], "type": "string" @@ -60832,6 +61441,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -60873,6 +61483,7 @@ "", "", "", + "", "" ], "type": "string" @@ -60946,6 +61557,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -60987,6 +61599,7 @@ "", "", "", + "", "" ], "type": "string" @@ -61116,6 +61729,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -61157,6 +61771,7 @@ "", "", "", + "", "" ], "type": "string" @@ -61229,6 +61844,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -61270,6 +61886,7 @@ "", "", "", + "", "" ], "type": "string" @@ -61314,7 +61931,7 @@ "type": "object" }, "SslPolicy": { - "description": "Represents a Cloud Armor Security Policy resource.\n\nOnly external backend services used by HTTP or HTTPS load balancers can reference a Security Policy. For more information, read read Cloud Armor Security Policy Concepts. (== resource_for {$api_version}.sslPolicies ==)", + "description": "Represents an SSL Policy resource.\n\nUse SSL policies to control the SSL features, such as versions and cipher suites, offered by an HTTPS or SSL Proxy load balancer. For more information, read SSL Policy Concepts. (== resource_for {$api_version}.sslPolicies ==)", "id": "SslPolicy", "properties": { "creationTimestamp": { @@ -61416,6 +62033,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -61457,6 +62075,7 @@ "", "", "", + "", "" ], "type": "string" @@ -61814,6 +62433,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -61855,6 +62475,7 @@ "", "", "", + "", "" ], "type": "string" @@ -61928,6 +62549,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -61969,6 +62591,7 @@ "", "", "", + "", "" ], "type": "string" @@ -62110,6 +62733,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -62151,6 +62775,7 @@ "", "", "", + "", "" ], "type": "string" @@ -62374,6 +62999,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -62415,6 +63041,7 @@ "", "", "", + "", "" ], "type": "string" @@ -62470,6 +63097,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -62511,6 +63139,7 @@ "", "", "", + "", "" ], "type": "string" @@ -62582,7 +63211,7 @@ "type": "string" }, "proxyBind": { - "description": "This field only applies when the loadBalancingScheme is INTERNAL_SELF_MANAGED. When set to true the Envoy binds on the IP address specified by the forwarding rule. Default is false.", + "description": "This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.\n\nWhen this field is set to true, Envoy proxies set up inbound traffic interception and bind to the IP address and port specified in the forwarding rule. This is generally useful when using Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy proxy listens for inbound requests and handles requests when it receives them.\n\nThe default is false.", "type": "boolean" }, "region": { @@ -62653,6 +63282,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -62694,6 +63324,7 @@ "", "", "", + "", "" ], "type": "string" @@ -62767,6 +63398,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -62808,6 +63440,7 @@ "", "", "", + "", "" ], "type": "string" @@ -62863,6 +63496,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -62904,6 +63538,7 @@ "", "", "", + "", "" ], "type": "string" @@ -63006,6 +63641,11 @@ "description": "An optional description of this resource. Provide this property when you create the resource.", "type": "string" }, + "fingerprint": { + "description": "Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a TargetHttpsProxy. An up-to-date fingerprint must be provided in order to patch the TargetHttpsProxy; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the TargetHttpsProxy.", + "format": "byte", + "type": "string" + }, "httpFilters": { "description": "URLs to networkservices.HttpFilter resources enabled for xDS clients using this configuration. For example, https://networkservices.googleapis.com/beta/projects/project/locations/locationhttpFilters/httpFilter Only filters that handle outbound connection and stream events may be specified. These filters work in conjunction with a default set of HTTP filters that may already be configured by Traffic Director. Traffic Director will determine the final location of these filters within xDS configuration based on the name of the HTTP filter. If Traffic Director positions multiple filters at the same location, those filters will be in the same order as specified in this list.\nhttpFilters only applies for loadbalancers with loadBalancingScheme set to INTERNAL_SELF_MANAGED. See ForwardingRule for more details.", "items": { @@ -63029,7 +63669,7 @@ "type": "string" }, "proxyBind": { - "description": "This field only applies when the loadBalancingScheme is INTERNAL_SELF_MANAGED. When set to true the Envoy binds on the IP address specified by the forwarding rule. Default is false.", + "description": "This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.\n\nWhen this field is set to true, Envoy proxies set up inbound traffic interception and bind to the IP address and port specified in the forwarding rule. This is generally useful when using Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy proxy listens for inbound requests and handles requests when it receives them.\n\nThe default is false.", "type": "boolean" }, "quicOverride": { @@ -63129,6 +63769,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -63170,6 +63811,7 @@ "", "", "", + "", "" ], "type": "string" @@ -63243,6 +63885,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -63284,6 +63927,7 @@ "", "", "", + "", "" ], "type": "string" @@ -63424,6 +64068,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -63465,6 +64110,7 @@ "", "", "", + "", "" ], "type": "string" @@ -63538,6 +64184,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -63579,6 +64226,7 @@ "", "", "", + "", "" ], "type": "string" @@ -63634,6 +64282,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -63675,6 +64324,7 @@ "", "", "", + "", "" ], "type": "string" @@ -63711,7 +64361,7 @@ "id": "TargetPool", "properties": { "backupPool": { - "description": "This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its failoverRatio field is properly set to a value between [0, 1].\n\nbackupPool and failoverRatio together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below failoverRatio, traffic arriving at the load-balanced IP will be directed to the backup pool.\n\nIn case where failoverRatio and backupPool are not set, or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the \"force\" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy.", + "description": "The server-defined URL for the resource. This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its failoverRatio field is properly set to a value between [0, 1].\n\nbackupPool and failoverRatio together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below failoverRatio, traffic arriving at the load-balanced IP will be directed to the backup pool.\n\nIn case where failoverRatio and backupPool are not set, or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the \"force\" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy.", "type": "string" }, "creationTimestamp": { @@ -63844,6 +64494,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -63885,6 +64536,7 @@ "", "", "", + "", "" ], "type": "string" @@ -63975,6 +64627,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -64016,6 +64669,7 @@ "", "", "", + "", "" ], "type": "string" @@ -64123,6 +64777,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -64164,6 +64819,7 @@ "", "", "", + "", "" ], "type": "string" @@ -64362,6 +65018,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -64403,6 +65060,7 @@ "", "", "", + "", "" ], "type": "string" @@ -64489,6 +65147,10 @@ "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", "type": "string" }, + "proxyBind": { + "description": "This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.\n\nWhen this field is set to true, Envoy proxies set up inbound traffic interception and bind to the IP address and port specified in the forwarding rule. This is generally useful when using Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy proxy listens for inbound requests and handles requests when it receives them.\n\nThe default is false.", + "type": "boolean" + }, "proxyHeader": { "description": "Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.", "enum": [ @@ -64554,6 +65216,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -64595,6 +65258,7 @@ "", "", "", + "", "" ], "type": "string" @@ -64769,6 +65433,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -64810,6 +65475,7 @@ "", "", "", + "", "" ], "type": "string" @@ -64883,6 +65549,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -64924,6 +65591,7 @@ "", "", "", + "", "" ], "type": "string" @@ -64979,6 +65647,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -65020,6 +65689,7 @@ "", "", "", + "", "" ], "type": "string" @@ -65361,6 +66031,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -65402,6 +66073,7 @@ "", "", "", + "", "" ], "type": "string" @@ -65550,6 +66222,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -65591,6 +66264,7 @@ "", "", "", + "", "" ], "type": "string" @@ -65646,6 +66320,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -65687,6 +66362,7 @@ "", "", "", + "", "" ], "type": "string" @@ -65834,6 +66510,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -65875,6 +66552,7 @@ "", "", "", + "", "" ], "type": "string" @@ -66062,6 +66740,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -66103,6 +66782,7 @@ "", "", "", + "", "" ], "type": "string" @@ -66254,6 +66934,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -66295,6 +66976,7 @@ "", "", "", + "", "" ], "type": "string" @@ -66368,6 +67050,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -66409,6 +67092,7 @@ "", "", "", + "", "" ], "type": "string" @@ -66582,6 +67266,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -66623,6 +67308,7 @@ "", "", "", + "", "" ], "type": "string" @@ -66857,6 +67543,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -66898,6 +67585,7 @@ "", "", "", + "", "" ], "type": "string" @@ -66971,6 +67659,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -67012,6 +67701,7 @@ "", "", "", + "", "" ], "type": "string" @@ -67067,6 +67757,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -67108,6 +67799,7 @@ "", "", "", + "", "" ], "type": "string" @@ -67234,6 +67926,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -67275,6 +67968,7 @@ "", "", "", + "", "" ], "type": "string" @@ -67435,6 +68129,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -67476,6 +68171,7 @@ "", "", "", + "", "" ], "type": "string" diff --git a/compute/v0.alpha/compute-gen.go b/compute/v0.alpha/compute-gen.go index efefeafd89f..074dfba48f4 100644 --- a/compute/v0.alpha/compute-gen.go +++ b/compute/v0.alpha/compute-gen.go @@ -1387,6 +1387,7 @@ type AcceleratorTypeAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -1544,6 +1545,7 @@ type AcceleratorTypeListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -1680,6 +1682,7 @@ type AcceleratorTypesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -1809,9 +1812,11 @@ type AccessConfig struct { // resource owning that IP. // // Possible values: + // "FIXED_STANDARD" // "PREMIUM" // "SELECT" // "STANDARD" + // "STANDARD_OVERRIDES_FIXED_STANDARD" NetworkTier string `json:"networkTier,omitempty"` // PublicDnsName: [Output Only] The public DNS domain name for the @@ -1969,9 +1974,11 @@ type Address struct { // If this field is not specified, it is assumed to be PREMIUM. // // Possible values: + // "FIXED_STANDARD" // "PREMIUM" // "SELECT" // "STANDARD" + // "STANDARD_OVERRIDES_FIXED_STANDARD" NetworkTier string `json:"networkTier,omitempty"` // PrefixLength: The prefix length if the resource reprensents an IP @@ -1988,8 +1995,8 @@ type Address struct { // - `NAT_AUTO` for addresses that are external IP addresses // automatically reserved for Cloud NAT. // - `IPSEC_INTERCONNECT` for addresses created from a private IP range - // reserved for a VLAN attachment in an IPsec over Interconnect - // configuration. These addresses are regional resources. + // that are reserved for a VLAN attachment in an IPsec encrypted + // Interconnect configuration. These addresses are regional resources. // // Possible values: // "DNS_RESOLVER" @@ -2135,6 +2142,7 @@ type AddressAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -2291,6 +2299,7 @@ type AddressListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -2425,6 +2434,7 @@ type AddressesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -2593,6 +2603,37 @@ func (s *AliasIpRange) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type AllocationShareSettings struct { + // ShareType: Type of sharing for this shared-reservation + // + // Possible values: + // "ORGANIZATION" + // "SHARE_TYPE_UNSPECIFIED" + ShareType string `json:"shareType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ShareType") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ShareType") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AllocationShareSettings) MarshalJSON() ([]byte, error) { + type NoMethod AllocationShareSettings + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk struct { // DiskSizeGb: Specifies the size of the disk in base-2 GB. DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` @@ -2778,6 +2819,11 @@ type AttachedDisk struct { // DiskSizeGb: The size of the disk in GB. DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` + // ForceAttach: [Input Only] Whether to force attach the regional disk + // even if it's currently attached to another instance. If you try to + // force attach a zonal disk to an instance, you will receive an error. + ForceAttach bool `json:"forceAttach,omitempty"` + // GuestOsFeatures: A list of features to enable on the guest operating // system. Applicable only for bootable images. Read Enabling guest // operating system features to see a list of available options. @@ -3299,7 +3345,7 @@ func (s *AuthorizationLoggingOptions) MarshalJSON() ([]byte, error) { // // Google Compute Engine has two Autoscaler resources: // -// * [Global](/compute/docs/reference/rest/{$api_version}/autoscalers) * +// * [Zonal](/compute/docs/reference/rest/{$api_version}/autoscalers) * // [Regional](/compute/docs/reference/rest/{$api_version}/regionAutoscale // rs) // @@ -3501,6 +3547,7 @@ type AutoscalerAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -3657,6 +3704,7 @@ type AutoscalerListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -3885,6 +3933,7 @@ type AutoscalersScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -4687,6 +4736,10 @@ type BackendBucket struct { // provided by the client when the resource is created. Description string `json:"description,omitempty"` + // EdgeSecurityPolicy: [Output Only] The resource URL for the edge + // security policy associated with this backend bucket. + EdgeSecurityPolicy string `json:"edgeSecurityPolicy,omitempty"` + // EnableCdn: If true, enable Cloud CDN for this BackendBucket. EnableCdn bool `json:"enableCdn,omitempty"` @@ -4806,13 +4859,18 @@ type BackendBucketCdnPolicy struct { // NegativeCaching: Negative caching allows per-status code TTLs to be // set, in order to apply fine-grained caching for common errors or // redirects. This can reduce the load on your origin and improve - // end-user experience by reducing response latency. By default, Cloud - // CDN will apply the following default TTLs to these status codes: HTTP - // 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 - // (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s - // HTTP 405 (Method Not Found), 421 (Misdirected Request), 501 (Not - // Implemented): 60s These defaults can be overridden in - // negative_caching_policy + // end-user experience by reducing response latency. When the cache mode + // is set to CACHE_ALL_STATIC or USE_ORIGIN_HEADERS, negative caching + // applies to responses with the specified response code that lack any + // Cache-Control, Expires, or Pragma: no-cache directives. When the + // cache mode is set to FORCE_CACHE_ALL, negative caching applies to all + // responses with the specified response code, and override any caching + // headers. By default, Cloud CDN will apply the following default TTLs + // to these status codes: HTTP 300 (Multiple Choice), 301, 308 + // (Permanent Redirects): 10m HTTP 404 (Not Found), 410 (Gone), 451 + // (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), + // 421 (Misdirected Request), 501 (Not Implemented): 60s. These defaults + // can be overridden in negative_caching_policy. NegativeCaching bool `json:"negativeCaching,omitempty"` // NegativeCachingPolicy: Sets a cache TTL for the specified HTTP status @@ -4922,10 +4980,10 @@ type BackendBucketCdnPolicyNegativeCachingPolicy struct { // once. Code int64 `json:"code,omitempty"` - // Ttl: The TTL (in seconds) to cache responses with the corresponding - // status code for. The maximum allowed value is 1800s (30 minutes), - // noting that infrequently accessed objects may be evicted from the - // cache before the defined TTL. + // Ttl: The TTL (in seconds) for which to cache responses with the + // corresponding status code. The maximum allowed value is 1800s (30 + // minutes), noting that infrequently accessed objects may be evicted + // from the cache before the defined TTL. Ttl int64 `json:"ttl,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") to @@ -5020,6 +5078,7 @@ type BackendBucketListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -5168,6 +5227,8 @@ type BackendService struct { ConnectionDraining *ConnectionDraining `json:"connectionDraining,omitempty"` + ConnectionTrackingPolicy *BackendServiceConnectionTrackingPolicy `json:"connectionTrackingPolicy,omitempty"` + // ConsistentHash: Consistent Hash-based load balancing can be used to // provide soft session affinity based on HTTP headers, cookies or other // properties. This load balancing policy is applicable only for HTTP @@ -5205,6 +5266,10 @@ type BackendService struct { // property when you create the resource. Description string `json:"description,omitempty"` + // EdgeSecurityPolicy: [Output Only] The resource URL for the edge + // security policy associated with this backend service. + EdgeSecurityPolicy string `json:"edgeSecurityPolicy,omitempty"` + // EnableCDN: If true, enables Cloud CDN for the backend service. Only // applicable if the loadBalancingScheme is EXTERNAL and the protocol is // HTTP or HTTPS. @@ -5256,6 +5321,7 @@ type BackendService struct { // // Possible values: // "EXTERNAL" + // "EXTERNAL_MANAGED" // "INTERNAL" // "INTERNAL_MANAGED" // "INTERNAL_SELF_MANAGED" @@ -5549,6 +5615,7 @@ type BackendServiceAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -5705,13 +5772,18 @@ type BackendServiceCdnPolicy struct { // NegativeCaching: Negative caching allows per-status code TTLs to be // set, in order to apply fine-grained caching for common errors or // redirects. This can reduce the load on your origin and improve - // end-user experience by reducing response latency. By default, Cloud - // CDN will apply the following default TTLs to these status codes: HTTP - // 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 - // (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s - // HTTP 405 (Method Not Found), 421 (Misdirected Request), 501 (Not - // Implemented): 60s These defaults can be overridden in - // negative_caching_policy + // end-user experience by reducing response latency. When the cache mode + // is set to CACHE_ALL_STATIC or USE_ORIGIN_HEADERS, negative caching + // applies to responses with the specified response code that lack any + // Cache-Control, Expires, or Pragma: no-cache directives. When the + // cache mode is set to FORCE_CACHE_ALL, negative caching applies to all + // responses with the specified response code, and override any caching + // headers. By default, Cloud CDN will apply the following default TTLs + // to these status codes: HTTP 300 (Multiple Choice), 301, 308 + // (Permanent Redirects): 10m HTTP 404 (Not Found), 410 (Gone), 451 + // (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), + // 421 (Misdirected Request), 501 (Not Implemented): 60s. These defaults + // can be overridden in negative_caching_policy. NegativeCaching bool `json:"negativeCaching,omitempty"` // NegativeCachingPolicy: Sets a cache TTL for the specified HTTP status @@ -5821,10 +5893,10 @@ type BackendServiceCdnPolicyNegativeCachingPolicy struct { // once. Code int64 `json:"code,omitempty"` - // Ttl: The TTL (in seconds) to cache responses with the corresponding - // status code for. The maximum allowed value is 1800s (30 minutes), - // noting that infrequently accessed objects may be evicted from the - // cache before the defined TTL. + // Ttl: The TTL (in seconds) for which to cache responses with the + // corresponding status code. The maximum allowed value is 1800s (30 + // minutes), noting that infrequently accessed objects may be evicted + // from the cache before the defined TTL. Ttl int64 `json:"ttl,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") to @@ -5850,6 +5922,59 @@ func (s *BackendServiceCdnPolicyNegativeCachingPolicy) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// BackendServiceConnectionTrackingPolicy: Connection Tracking +// configuration for this BackendService. +type BackendServiceConnectionTrackingPolicy struct { + // ConnectionPersistenceOnUnhealthyBackends: Specifies connection + // persistence when backends are unhealthy. The default value is + // DEFAULT_FOR_PROTOCOL. + // + // If set to DEFAULT_FOR_PROTOCOL, the existing connections persist on + // unhealthy backends only for connection-oriented protocols (TCP and + // SCTP) and only if the Tracking Mode is PER_CONNECTION (default + // tracking mode) or the Session Affinity is configured for 5-tuple. + // They do not persist for UDP. + // + // If set to NEVER_PERSIST, after a backend becomes unhealthy, the + // existing connections on the unhealthy backend are never persisted on + // the unhealthy backend. They are always diverted to newly selected + // healthy backends (unless all backends are unhealthy). + // + // If set to ALWAYS_PERSIST, existing connections always persist on + // unhealthy backends regardless of protocol and session affinity. It is + // generally not recommended to use this mode overriding the default. + // + // Possible values: + // "ALWAYS_PERSIST" + // "DEFAULT_FOR_PROTOCOL" + // "NEVER_PERSIST" + ConnectionPersistenceOnUnhealthyBackends string `json:"connectionPersistenceOnUnhealthyBackends,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ConnectionPersistenceOnUnhealthyBackends") to unconditionally + // include in API requests. By default, fields with empty values are + // omitted from API requests. However, any non-pointer, non-interface + // field appearing in ForceSendFields will be sent to the server + // regardless of whether the field is empty or not. This may be used to + // include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "ConnectionPersistenceOnUnhealthyBackends") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *BackendServiceConnectionTrackingPolicy) MarshalJSON() ([]byte, error) { + type NoMethod BackendServiceConnectionTrackingPolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // BackendServiceFailoverPolicy: Applicable only to Failover for // Internal TCP/UDP Load Balancing. On failover or failback, this field // indicates whether connection draining will be honored. GCP has a @@ -6117,6 +6242,7 @@ type BackendServiceListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -6330,6 +6456,7 @@ type BackendServicesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -6778,17 +6905,33 @@ type BulkInsertInstanceResource struct { // Count: The maximum number of instances to create. Count int64 `json:"count,omitempty,string"` + // Instance: The instance defining the VM instances to be created. Instance *Instance `json:"instance,omitempty"` - // InstanceProperties: The instance properties for the request. Required - // if sourceInstanceTemplate is not provided. + // InstanceProperties: The instance properties defining the VM instances + // to be created. Required if sourceInstanceTemplate is not provided. InstanceProperties *InstanceProperties `json:"instanceProperties,omitempty"` + LocationPolicy *LocationPolicy `json:"locationPolicy,omitempty"` + // MinCount: The minimum number of instances to create. If no min_count // is specified then count is used as the default value. If min_count // instances cannot be created, then no instances will be created. MinCount int64 `json:"minCount,omitempty,string"` + // NamePattern: Instance name pattern. Name pattern includes a parameter + // to specify the auto-incrementing portion of the name, in a form of + // consecutive hash (#) chars, each of them corresponding to one digit + // of an instance name. For example: name_pattern = inst-####-prod will + // generate names starting with inst-0001-prod, inst-0002-prod, up to + // required count. If there exist instances matching the name pattern in + // the same project and zone, the initial instance number will be equal + // to the maximum existing instance number + 1 (e.g. if there exists an + // instance with name inst-0030-prod, then the generated names will + // start with inst-0031-prod). The name pattern placeholder #...# can + // contain up to 18 characters. + NamePattern string `json:"namePattern,omitempty"` + // PredefinedNames: List of predefined names. The number of names // provided must be equal to count. PredefinedNames []string `json:"predefinedNames,omitempty"` @@ -7326,6 +7469,7 @@ type CommitmentAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -7482,6 +7626,7 @@ type CommitmentListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -7617,6 +7762,7 @@ type CommitmentsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -8567,6 +8713,7 @@ type DiskAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -8788,6 +8935,7 @@ type DiskListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -9086,6 +9234,7 @@ type DiskTypeAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -9242,6 +9391,7 @@ type DiskTypeListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -9377,6 +9527,7 @@ type DiskTypesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -9596,6 +9747,7 @@ type DisksScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -9728,7 +9880,7 @@ type DistributionPolicy struct { TargetShape string `json:"targetShape,omitempty"` // Zones: Zones where the regional managed instance group will create - // and manage instances. + // and manage its instances. Zones []*DistributionPolicyZoneConfiguration `json:"zones,omitempty"` // ForceSendFields is a list of field names (e.g. "TargetShape") to @@ -9940,6 +10092,7 @@ type ExchangedPeeringRoutesListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -10312,6 +10465,7 @@ type ExternalVpnGatewayListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -10763,6 +10917,7 @@ type FirewallListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -11093,6 +11248,7 @@ type FirewallPolicyListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -11443,6 +11599,9 @@ type ForwardingRule struct { // // Must be set to `0.0.0.0` when the target is targetGrpcProxy that has // validateForProxyless field set to true. + // + // For Private Service Connect forwarding rules that forward traffic to + // Google APIs, IP address must be provided. IPAddress string `json:"IPAddress,omitempty"` // IPProtocol: The IP protocol to which this rule applies. For protocol @@ -11573,6 +11732,7 @@ type ForwardingRule struct { // // Possible values: // "EXTERNAL" + // "EXTERNAL_MANAGED" // "INTERNAL" // "INTERNAL_MANAGED" // "INTERNAL_SELF_MANAGED" @@ -11614,6 +11774,9 @@ type ForwardingRule struct { // For internal load balancing, this field identifies the network that // the load balanced IP should belong to for this Forwarding Rule. If // this field is not specified, the default network will be used. + // + // For Private Service Connect forwarding rules that forward traffic to + // Google APIs, a network must be provided. Network string `json:"network,omitempty"` // NetworkTier: This signifies the networking tier used for configuring @@ -11628,9 +11791,11 @@ type ForwardingRule struct { // of the Address. // // Possible values: + // "FIXED_STANDARD" // "PREMIUM" // "SELECT" // "STANDARD" + // "STANDARD_OVERRIDES_FIXED_STANDARD" NetworkTier string `json:"networkTier,omitempty"` // PortRange: When the load balancing scheme is EXTERNAL, @@ -11732,6 +11897,18 @@ type ForwardingRule struct { // information, see the "Target" column in [Port // specifications](/load-balancing/docs/forwarding-rule-concepts#ip_addre // ss_specifications). + // + // For Private Service Connect forwarding rules that forward traffic to + // Google APIs, provide the name of a supported Google API bundle. + // Currently, the supported Google API bundles include: + // + // + // - vpc-sc - GCP APIs that support VPC Service Controls. For more + // information about which APIs support VPC Service Controls, refer to + // VPC-SC supported products and limitations. + // - all-apis - All GCP APIs. For more information about which APIs are + // supported with this bundle, refer to Private Google Access-specific + // domains and VIPs. Target string `json:"target,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -11833,6 +12010,7 @@ type ForwardingRuleAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -11989,6 +12167,7 @@ type ForwardingRuleListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -12187,6 +12366,7 @@ type ForwardingRulesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -13135,6 +13315,7 @@ type HealthCheckListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -13524,6 +13705,7 @@ type HealthCheckServicesListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -13682,6 +13864,7 @@ type HealthChecksAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -13816,6 +13999,7 @@ type HealthChecksScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -14570,6 +14754,7 @@ type HttpHealthCheckListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -15314,6 +15499,7 @@ type HttpsHealthCheckListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -15733,6 +15919,7 @@ type ImageListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -16015,6 +16202,7 @@ type InPlaceSnapshotListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -16530,6 +16718,7 @@ type InstanceAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -16806,6 +16995,7 @@ type InstanceGroupAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -16963,6 +17153,7 @@ type InstanceGroupListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -17087,8 +17278,8 @@ type InstanceGroupManager struct { // property when you create the resource. Description string `json:"description,omitempty"` - // DistributionPolicy: Policy specifying intended distribution of - // instances in regional managed instance group. + // DistributionPolicy: Policy specifying the intended distribution of + // managed instances across zones in a regional managed instance group. DistributionPolicy *DistributionPolicy `json:"distributionPolicy,omitempty"` // FailoverAction: The action to perform in case of zone failure. Only @@ -17118,7 +17309,10 @@ type InstanceGroupManager struct { // InstanceTemplate: The URL of the instance template that is specified // for this managed instance group. The group uses this template to - // create all new instances in the managed instance group. + // create all new instances in the managed instance group. The templates + // for existing instances in the group do not change unless you run + // recreateInstances, run applyUpdatesToInstances, or set the group's + // updatePolicy.type to PROACTIVE. InstanceTemplate string `json:"instanceTemplate,omitempty"` // Kind: [Output Only] The resource type, which is always @@ -17192,7 +17386,7 @@ type InstanceGroupManager struct { // remaining instances. For more information, read about canary updates. Versions []*InstanceGroupManagerVersion `json:"versions,omitempty"` - // Zone: [Output Only] The URL of the zone where the managed instance + // Zone: [Output Only] The URL of a zone where the managed instance // group is located (for zonal resources). Zone string `json:"zone,omitempty"` @@ -17377,6 +17571,7 @@ type InstanceGroupManagerAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -17588,6 +17783,7 @@ type InstanceGroupManagerListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -17989,7 +18185,11 @@ type InstanceGroupManagerVersion struct { // InstanceTemplate: The URL of the instance template that is specified // for this managed instance group. The group uses this template to // create new instances in the managed instance group until the - // `targetSize` for this version is reached. + // `targetSize` for this version is reached. The templates for existing + // instances in the group do not change unless you run + // recreateInstances, run applyUpdatesToInstances, or set the group's + // updatePolicy.type to PROACTIVE; in those cases, existing instances + // are updated until the `targetSize` for this version is reached. InstanceTemplate string `json:"instanceTemplate,omitempty"` // Name: Name of the version. Unique among all versions in the scope of @@ -18374,6 +18574,7 @@ type InstanceGroupManagersListPerInstanceConfigsRespWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -18626,6 +18827,7 @@ type InstanceGroupManagersScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -18743,7 +18945,10 @@ func (s *InstanceGroupManagersSetAutoHealingRequest) MarshalJSON() ([]byte, erro type InstanceGroupManagersSetInstanceTemplateRequest struct { // InstanceTemplate: The URL of the instance template that is specified // for this managed instance group. The group uses this template to - // create all new instances in the managed instance group. + // create all new instances in the managed instance group. The templates + // for existing instances in the group do not change unless you run + // recreateInstances, run applyUpdatesToInstances, or set the group's + // updatePolicy.type to PROACTIVE. InstanceTemplate string `json:"instanceTemplate,omitempty"` // ForceSendFields is a list of field names (e.g. "InstanceTemplate") to @@ -18937,6 +19142,7 @@ type InstanceGroupsListInstancesWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -19135,6 +19341,7 @@ type InstanceGroupsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -19328,6 +19535,7 @@ type InstanceListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -19485,6 +19693,7 @@ type InstanceListReferrersWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -20042,6 +20251,7 @@ type InstanceTemplateListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -20389,6 +20599,7 @@ type InstancesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -20827,6 +21038,59 @@ func (s *InstantSnapshot) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type InstantSnapshotExportParams struct { + // BaseInstantSnapshot: An optional base instant snapshot that this + // resource is compared against. If not specified, all blocks of this + // resource are exported. The base instant snapshot and this resource + // must be created from the same disk. The base instant snapshot must be + // created earlier in time than this resource. + BaseInstantSnapshot string `json:"baseInstantSnapshot,omitempty"` + + // BucketName: The name of an existing bucket in Cloud Storage where the + // changed blocks will be stored. The Google Service Account must have + // read and write access to this bucket. The bucket has to be in the + // same region as this resource. + BucketName string `json:"bucketName,omitempty"` + + // EncryptionKey: Encryption key used to encrypt the instant snapshot. + EncryptionKey *CustomerEncryptionKey `json:"encryptionKey,omitempty"` + + // ObjectName: Name of the output Bigstore object storing the changed + // blocks. Object name must be less than 1024 bytes in length. + ObjectName string `json:"objectName,omitempty"` + + // OutputType: The format of the output file. + // + // Possible values: + // "INVALID" + // "METADATA_AND_DATA" + // "METADATA_ONLY" + OutputType string `json:"outputType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BaseInstantSnapshot") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BaseInstantSnapshot") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *InstantSnapshotExportParams) MarshalJSON() ([]byte, error) { + type NoMethod InstantSnapshotExportParams + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // InstantSnapshotList: Contains a list of InstantSnapshot resources. type InstantSnapshotList struct { // Id: [Output Only] Unique identifier for the resource; defined by the @@ -20896,6 +21160,7 @@ type InstantSnapshotListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -21284,6 +21549,10 @@ type InterconnectAttachment struct { // interconnect attachment. CustomerRouterIpAddress string `json:"customerRouterIpAddress,omitempty"` + // DataplaneVersion: [Output Only] Dataplane version for this + // InterconnectAttachment. + DataplaneVersion int64 `json:"dataplaneVersion,omitempty"` + // Description: An optional description of this resource. Description string `json:"description,omitempty"` @@ -21589,6 +21858,7 @@ type InterconnectAttachmentAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -21748,6 +22018,7 @@ type InterconnectAttachmentListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -21962,6 +22233,7 @@ type InterconnectAttachmentsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -22387,6 +22659,7 @@ type InterconnectListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -22669,6 +22942,7 @@ type InterconnectLocationListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -23069,6 +23343,7 @@ type IpAddressesListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -23225,6 +23500,7 @@ type IpOwnerListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -23732,6 +24008,7 @@ type LicensesListResponseWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -23855,6 +24132,68 @@ func (s *LocalDisk) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// LocationPolicy: Configuration for location policy among multiple +// possible locations (e.g. preferences for zone selection among zones +// in a single region). +type LocationPolicy struct { + // Locations: Location configurations mapped by location name. Currently + // only zone names are supported and must be represented as valid + // internal URLs, like: zones/us-central1-a. + Locations map[string]LocationPolicyLocation `json:"locations,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Locations") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Locations") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *LocationPolicy) MarshalJSON() ([]byte, error) { + type NoMethod LocationPolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LocationPolicyLocation struct { + // Possible values: + // "ALLOW" + // "DENY" + // "PREFERENCE_UNSPECIFIED" + Preference string `json:"preference,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Preference") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Preference") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *LocationPolicyLocation) MarshalJSON() ([]byte, error) { + type NoMethod LocationPolicyLocation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // LogConfig: Specifies what kind of log the caller must write type LogConfig struct { // CloudAudit: Cloud audit options. @@ -24248,6 +24587,7 @@ type MachineImageListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -24533,6 +24873,7 @@ type MachineTypeAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -24689,6 +25030,7 @@ type MachineTypeListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -24824,6 +25166,7 @@ type MachineTypesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -25856,6 +26199,7 @@ type NetworkEndpointGroupAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -26224,6 +26568,7 @@ type NetworkEndpointGroupListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -26502,6 +26847,7 @@ type NetworkEndpointGroupsListNetworkEndpointsWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -26640,6 +26986,7 @@ type NetworkEndpointGroupsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -26829,12 +27176,9 @@ type NetworkInterface struct { // "VIRTIO_NET" NicType string `json:"nicType,omitempty"` - // QueueCount: The networking queue count for the network interface. - // Both Rx and Tx queues will be set to this number. If it's not - // specified by the user, a default number of queues will be assigned. - // For Virtio-net, each interface will get (min(#vCPU, 32) / #vNIC) - // queues. For gVNIC, each interface will get (min(#vCPU / 2, 16) / - // #vNIC) qeueus. + // QueueCount: The networking queue count that's specified by users for + // the network interface. Both Rx and Tx queues will be set to this + // number. It'll be empty if not specified by the users. QueueCount int64 `json:"queueCount,omitempty"` // StackType: The stack type for this network interface to identify @@ -26954,6 +27298,7 @@ type NetworkListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -27547,6 +27892,7 @@ type NodeGroupAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -27744,6 +28090,7 @@ type NodeGroupListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -28058,6 +28405,7 @@ type NodeGroupsListNodesWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -28193,6 +28541,7 @@ type NodeGroupsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -28503,6 +28852,7 @@ type NodeTemplateAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -28659,6 +29009,7 @@ type NodeTemplateListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -28824,6 +29175,7 @@ type NodeTemplatesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -29068,6 +29420,7 @@ type NodeTypeAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -29224,6 +29577,7 @@ type NodeTypeListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -29359,6 +29713,7 @@ type NodeTypesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -29642,6 +29997,7 @@ type NotificationEndpointListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -29964,6 +30320,7 @@ type OperationWarnings struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -30123,6 +30480,7 @@ type OperationAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -30279,6 +30637,7 @@ type OperationListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -30414,6 +30773,7 @@ type OperationsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -30904,6 +31264,7 @@ type PacketMirroringAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -31139,6 +31500,7 @@ type PacketMirroringListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -31415,6 +31777,7 @@ type PacketMirroringsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -32176,9 +32539,11 @@ type Project struct { // PREMIUM. // // Possible values: + // "FIXED_STANDARD" // "PREMIUM" // "SELECT" // "STANDARD" + // "STANDARD_OVERRIDES_FIXED_STANDARD" DefaultNetworkTier string `json:"defaultNetworkTier,omitempty"` // DefaultServiceAccount: [Output Only] Default service account used by @@ -32384,9 +32749,11 @@ type ProjectsSetDefaultNetworkTierRequest struct { // NetworkTier: Default network tier to be set. // // Possible values: + // "FIXED_STANDARD" // "PREMIUM" // "SELECT" // "STANDARD" + // "STANDARD_OVERRIDES_FIXED_STANDARD" NetworkTier string `json:"networkTier,omitempty"` // ForceSendFields is a list of field names (e.g. "NetworkTier") to @@ -32612,6 +32979,7 @@ type PublicAdvertisedPrefixListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -32920,6 +33288,7 @@ type PublicDelegatedPrefixAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -33076,6 +33445,7 @@ type PublicDelegatedPrefixListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -33271,6 +33641,7 @@ type PublicDelegatedPrefixesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -33754,6 +34125,7 @@ type RegionAutoscalerListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -33938,6 +34310,7 @@ type RegionDiskTypeListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -34178,6 +34551,7 @@ type RegionInstanceGroupListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -34367,6 +34741,7 @@ type RegionInstanceGroupManagerListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -34782,6 +35157,7 @@ type RegionInstanceGroupManagersListInstanceConfigsRespWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -35096,6 +35472,7 @@ type RegionInstanceGroupsListInstancesWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -35325,6 +35702,7 @@ type RegionListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -35620,6 +35998,9 @@ type Reservation struct { // with the resource id. SelfLinkWithId string `json:"selfLinkWithId,omitempty"` + // ShareSettings: Share-settings for shared-reservation + ShareSettings *AllocationShareSettings `json:"shareSettings,omitempty"` + // SpecificReservation: Reservation for instances with specific machine // shapes. SpecificReservation *AllocationSpecificSKUReservation `json:"specificReservation,omitempty"` @@ -35793,6 +36174,7 @@ type ReservationAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -35948,6 +36330,7 @@ type ReservationListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -36111,6 +36494,7 @@ type ReservationsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -36322,6 +36706,7 @@ type ResourcePoliciesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -36422,7 +36807,7 @@ type ResourcePolicy struct { Description string `json:"description,omitempty"` - // GroupPlacementPolicy: Resource policy for instacnes for placement + // GroupPlacementPolicy: Resource policy for instances for placement // configuration. GroupPlacementPolicy *ResourcePolicyGroupPlacementPolicy `json:"groupPlacementPolicy,omitempty"` @@ -36577,6 +36962,7 @@ type ResourcePolicyAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -36950,6 +37336,7 @@ type ResourcePolicyListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -37420,9 +37807,10 @@ type Route struct { NextHopGateway string `json:"nextHopGateway,omitempty"` // NextHopIlb: The URL to a forwarding rule of type - // loadBalancingScheme=INTERNAL that should handle matching packets. You - // can only specify the forwarding rule as a partial or full URL. For - // example, the following are all valid URLs: + // loadBalancingScheme=INTERNAL that should handle matching packets or + // the IP address of the forwarding Rule. For example, the following are + // all valid URLs: + // - 10.128.0.56 // - // https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule // - regions/region/forwardingRules/forwardingRule @@ -37521,6 +37909,7 @@ type RouteWarnings struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -37676,6 +38065,7 @@ type RouteListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -37962,6 +38352,7 @@ type RouterAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -38214,11 +38605,11 @@ type RouterBgpPeer struct { // Platform. Only IPv4 is supported. PeerIpAddress string `json:"peerIpAddress,omitempty"` - // RouterApplianceInstance: URI of the VM instance that is used as third - // party router appliances such as Next Gen Firewalls, Virtual Routers, - // SD-WAN. The VM instance must live in zones contained in the same - // region as this Cloud Router. The VM instance is the peer side of the - // BGP session. + // RouterApplianceInstance: URI of the VM instance that is used as + // third-party router appliances such as Next Gen Firewalls, Virtual + // Routers, or Router Appliances. The VM instance must be located in + // zones contained in the same region as this Cloud Router. The VM + // instance is the peer side of the BGP session. RouterApplianceInstance string `json:"routerApplianceInstance,omitempty"` // ForceSendFields is a list of field names (e.g. "AdvertiseMode") to @@ -38389,19 +38780,19 @@ type RouterInterface struct { // be a dash. Name string `json:"name,omitempty"` - // PrivateIpAddress: The regional private internal IP address that will - // be used to establish BGP session to a VM instance, which is used as - // third party router appliances such as Next Gen Firewalls, Virtual - // Routers, SD-WAN. + // PrivateIpAddress: The regional private internal IP address that is + // used to establish BGP sessions to a VM instance acting as a + // third-party Router Appliance, such as a Next Gen Firewall, a Virtual + // Router, or an SD-WAN VM. PrivateIpAddress string `json:"privateIpAddress,omitempty"` // RedundantInterface: Name of the interface that will be redundant with // the current interface you are creating. The redundantInterface must // belong to the same Cloud Router as the interface here. To establish - // the BGP session to SD-WAN VM, you must create two BGP peers, and the - // two BGP peers need to be attached to two separate interfaces that are - // redundant with each other. The redundant_interface must be 1-63 - // characters long, and comply with RFC1035. Specifically, the + // the BGP session to a Router Appliance VM, you must create two BGP + // peers. The two BGP peers must be attached to two separate interfaces + // that are redundant with each other. The redundant_interface must be + // 1-63 characters long, and comply with RFC1035. Specifically, the // redundant_interface must be 1-63 characters long and match the // regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first // character must be a lowercase letter, and all following characters @@ -38409,10 +38800,11 @@ type RouterInterface struct { // character, which cannot be a dash. RedundantInterface string `json:"redundantInterface,omitempty"` - // Subnetwork: The URL of the subnetwork resource this interface belongs - // to, it must be in the same region as the router. When you establish a - // BGP session to a VM instance using this interface, the VM instance - // must belong to the same subnetwork as the subnetwork specified here. + // Subnetwork: The URL of the subnetwork resource that this interface + // belongs to, which must be in the same region as the Cloud Router. + // When you establish a BGP session to a VM instance using this + // interface, the VM instance must belong to the same subnetwork as the + // subnetwork specified here. Subnetwork string `json:"subnetwork,omitempty"` // ForceSendFields is a list of field names (e.g. "IpRange") to @@ -38507,6 +38899,7 @@ type RouterListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -39203,6 +39596,7 @@ type RoutersScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -39550,6 +39944,7 @@ type ScalingScheduleStatus struct { // "ACTIVE" // "DISABLED" // "OBSOLETE" + // "READY" State string `json:"state,omitempty"` // ForceSendFields is a list of field names (e.g. "LastStartTime") to @@ -39829,12 +40224,13 @@ func (s *SecurityPoliciesWafConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SecurityPolicy: Represents a Cloud Armor Security Policy +// SecurityPolicy: Represents a Google Cloud Armor security policy // resource. // // Only external backend services that use load balancers can reference -// a Security Policy. For more information, read Cloud Armor Security -// Policy Concepts. (== resource_for {$api_version}.securityPolicies ==) +// a security policy. For more information, see Google Cloud Armor +// security policy overview. (== resource_for +// {$api_version}.securityPolicies ==) type SecurityPolicy struct { // Associations: A list of associations that belong to this policy. Associations []*SecurityPolicyAssociation `json:"associations,omitempty"` @@ -39931,6 +40327,7 @@ type SecurityPolicy struct { // // Possible values: // "CLOUD_ARMOR" + // "CLOUD_ARMOR_EDGE" // "FIREWALL" Type string `json:"type,omitempty"` @@ -40098,6 +40495,7 @@ type SecurityPolicyListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -41019,6 +41417,7 @@ type ServiceAttachmentListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -41682,6 +42081,7 @@ type SnapshotListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -42131,6 +42531,7 @@ type SslCertificateAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -42287,6 +42688,7 @@ type SslCertificateListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -42502,6 +42904,7 @@ type SslCertificatesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -42657,6 +43060,7 @@ type SslPoliciesListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -42774,11 +43178,11 @@ func (s *SslPoliciesListAvailableFeaturesResponse) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SslPolicy: Represents a Cloud Armor Security Policy resource. +// SslPolicy: Represents an SSL Policy resource. // -// Only external backend services used by HTTP or HTTPS load balancers -// can reference a Security Policy. For more information, read read -// Cloud Armor Security Policy Concepts. (== resource_for +// Use SSL policies to control the SSL features, such as versions and +// cipher suites, offered by an HTTPS or SSL Proxy load balancer. For +// more information, read SSL Policy Concepts. (== resource_for // {$api_version}.sslPolicies ==) type SslPolicy struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text @@ -42908,6 +43312,7 @@ type SslPolicyWarnings struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -43485,6 +43890,7 @@ type SubnetworkAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -43641,6 +44047,7 @@ type SubnetworkListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -43935,6 +44342,7 @@ type SubnetworksScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -44356,6 +44764,7 @@ type TargetGrpcProxyListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -44492,6 +44901,7 @@ type TargetHttpProxiesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -44642,9 +45052,18 @@ type TargetHttpProxy struct { // last character, which cannot be a dash. Name string `json:"name,omitempty"` - // ProxyBind: This field only applies when the loadBalancingScheme is - // INTERNAL_SELF_MANAGED. When set to true the Envoy binds on the IP - // address specified by the forwarding rule. Default is false. + // ProxyBind: This field only applies when the forwarding rule that + // references this target proxy has a loadBalancingScheme set to + // INTERNAL_SELF_MANAGED. + // + // When this field is set to true, Envoy proxies set up inbound traffic + // interception and bind to the IP address and port specified in the + // forwarding rule. This is generally useful when using Traffic Director + // to configure Envoy as a gateway or middle proxy (in other words, not + // a sidecar proxy). The Envoy proxy listens for inbound requests and + // handles requests when it receives them. + // + // The default is false. ProxyBind bool `json:"proxyBind,omitempty"` // Region: [Output Only] URL of the region where the regional Target @@ -44764,6 +45183,7 @@ type TargetHttpProxyAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -44921,6 +45341,7 @@ type TargetHttpProxyListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -45057,6 +45478,7 @@ type TargetHttpsProxiesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -45289,6 +45711,15 @@ type TargetHttpsProxy struct { // property when you create the resource. Description string `json:"description,omitempty"` + // Fingerprint: Fingerprint of this resource. A hash of the contents + // stored in this object. This field is used in optimistic locking. This + // field will be ignored when inserting a TargetHttpsProxy. An + // up-to-date fingerprint must be provided in order to patch the + // TargetHttpsProxy; otherwise, the request will fail with error 412 + // conditionNotMet. To see the latest fingerprint, make a get() request + // to retrieve the TargetHttpsProxy. + Fingerprint string `json:"fingerprint,omitempty"` + // HttpFilters: URLs to networkservices.HttpFilter resources enabled for // xDS clients using this configuration. For example, // https://networkservices.googleapis.com/beta/projects/project/locations/locationhttpFilters/httpFilter Only filters that handle outbound connection and stream events may be specified. These filters work in conjunction with a default set of HTTP filters that may already be configured by Traffic Director. Traffic Director will determine the final location of these filters within xDS configuration based on the name of the HTTP filter. If Traffic Director positions multiple filters at the same location, those filters will be in the same order as specified in this list. @@ -45313,9 +45744,18 @@ type TargetHttpsProxy struct { // last character, which cannot be a dash. Name string `json:"name,omitempty"` - // ProxyBind: This field only applies when the loadBalancingScheme is - // INTERNAL_SELF_MANAGED. When set to true the Envoy binds on the IP - // address specified by the forwarding rule. Default is false. + // ProxyBind: This field only applies when the forwarding rule that + // references this target proxy has a loadBalancingScheme set to + // INTERNAL_SELF_MANAGED. + // + // When this field is set to true, Envoy proxies set up inbound traffic + // interception and bind to the IP address and port specified in the + // forwarding rule. This is generally useful when using Traffic Director + // to configure Envoy as a gateway or middle proxy (in other words, not + // a sidecar proxy). The Envoy proxy listens for inbound requests and + // handles requests when it receives them. + // + // The default is false. ProxyBind bool `json:"proxyBind,omitempty"` // QuicOverride: Specifies the QUIC override policy for this @@ -45480,6 +45920,7 @@ type TargetHttpsProxyAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -45637,6 +46078,7 @@ type TargetHttpsProxyListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -45890,6 +46332,7 @@ type TargetInstanceAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -46046,6 +46489,7 @@ type TargetInstanceListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -46181,6 +46625,7 @@ type TargetInstancesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -46276,10 +46721,10 @@ func (s *TargetInstancesScopedListWarningData) MarshalJSON() ([]byte, error) { // more information, read Using target pools. (== resource_for // {$api_version}.targetPools ==) type TargetPool struct { - // BackupPool: This field is applicable only when the containing target - // pool is serving a forwarding rule as the primary pool, and its - // failoverRatio field is properly set to a value between [0, - // 1]. + // BackupPool: The server-defined URL for the resource. This field is + // applicable only when the containing target pool is serving a + // forwarding rule as the primary pool, and its failoverRatio field is + // properly set to a value between [0, 1]. // // backupPool and failoverRatio together define the fallback behavior of // the primary target pool: if the ratio of the healthy instances in the @@ -46495,6 +46940,7 @@ type TargetPoolAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -46686,6 +47132,7 @@ type TargetPoolListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -46939,6 +47386,7 @@ type TargetPoolsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -47333,6 +47781,7 @@ type TargetSslProxyListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -47513,6 +47962,20 @@ type TargetTcpProxy struct { // last character, which cannot be a dash. Name string `json:"name,omitempty"` + // ProxyBind: This field only applies when the forwarding rule that + // references this target proxy has a loadBalancingScheme set to + // INTERNAL_SELF_MANAGED. + // + // When this field is set to true, Envoy proxies set up inbound traffic + // interception and bind to the IP address and port specified in the + // forwarding rule. This is generally useful when using Traffic Director + // to configure Envoy as a gateway or middle proxy (in other words, not + // a sidecar proxy). The Envoy proxy listens for inbound requests and + // handles requests when it receives them. + // + // The default is false. + ProxyBind bool `json:"proxyBind,omitempty"` + // ProxyHeader: Specifies the type of proxy header to append before // sending data to the backend, either NONE or PROXY_V1. The default is // NONE. @@ -47625,6 +48088,7 @@ type TargetTcpProxyListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -47892,6 +48356,7 @@ type TargetVpnGatewayAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -48049,6 +48514,7 @@ type TargetVpnGatewayListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -48185,6 +48651,7 @@ type TargetVpnGatewaysScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -48850,6 +49317,7 @@ type UrlMapListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -49125,6 +49593,7 @@ type UrlMapsAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -49259,6 +49728,7 @@ type UrlMapsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -49586,6 +50056,7 @@ type UsableSubnetworksAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -49934,6 +50405,7 @@ type VmEndpointNatMappingsListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -50186,6 +50658,7 @@ type VpnGatewayAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -50342,6 +50815,7 @@ type VpnGatewayListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -50702,6 +51176,7 @@ type VpnGatewaysScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -51058,6 +51533,7 @@ type VpnTunnelAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -51214,6 +51690,7 @@ type VpnTunnelListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -51348,6 +51825,7 @@ type VpnTunnelsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -51629,6 +52107,7 @@ type XpnHostListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -51900,6 +52379,7 @@ type ZoneListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -52203,7 +52683,7 @@ func (c *AcceleratorTypesAggregatedListCall) Header() http.Header { func (c *AcceleratorTypesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -52406,7 +52886,7 @@ func (c *AcceleratorTypesGetCall) Header() http.Header { func (c *AcceleratorTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -52646,7 +53126,7 @@ func (c *AcceleratorTypesListCall) Header() http.Header { func (c *AcceleratorTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -52937,7 +53417,7 @@ func (c *AddressesAggregatedListCall) Header() http.Header { func (c *AddressesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -53149,7 +53629,7 @@ func (c *AddressesDeleteCall) Header() http.Header { func (c *AddressesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -53318,7 +53798,7 @@ func (c *AddressesGetCall) Header() http.Header { func (c *AddressesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -53495,7 +53975,7 @@ func (c *AddressesInsertCall) Header() http.Header { func (c *AddressesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -53736,7 +54216,7 @@ func (c *AddressesListCall) Header() http.Header { func (c *AddressesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -53954,7 +54434,7 @@ func (c *AddressesSetLabelsCall) Header() http.Header { func (c *AddressesSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -54122,7 +54602,7 @@ func (c *AddressesTestIamPermissionsCall) Header() http.Header { func (c *AddressesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -54377,7 +54857,7 @@ func (c *AutoscalersAggregatedListCall) Header() http.Header { func (c *AutoscalersAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -54588,7 +55068,7 @@ func (c *AutoscalersDeleteCall) Header() http.Header { func (c *AutoscalersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -54757,7 +55237,7 @@ func (c *AutoscalersGetCall) Header() http.Header { func (c *AutoscalersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -54933,7 +55413,7 @@ func (c *AutoscalersInsertCall) Header() http.Header { func (c *AutoscalersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -55173,7 +55653,7 @@ func (c *AutoscalersListCall) Header() http.Header { func (c *AutoscalersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -55397,7 +55877,7 @@ func (c *AutoscalersPatchCall) Header() http.Header { func (c *AutoscalersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -55562,7 +56042,7 @@ func (c *AutoscalersTestIamPermissionsCall) Header() http.Header { func (c *AutoscalersTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -55750,7 +56230,7 @@ func (c *AutoscalersUpdateCall) Header() http.Header { func (c *AutoscalersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -55932,7 +56412,7 @@ func (c *BackendBucketsAddSignedUrlKeyCall) Header() http.Header { func (c *BackendBucketsAddSignedUrlKeyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -56104,7 +56584,7 @@ func (c *BackendBucketsDeleteCall) Header() http.Header { func (c *BackendBucketsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -56271,7 +56751,7 @@ func (c *BackendBucketsDeleteSignedUrlKeyCall) Header() http.Header { func (c *BackendBucketsDeleteSignedUrlKeyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -56435,7 +56915,7 @@ func (c *BackendBucketsGetCall) Header() http.Header { func (c *BackendBucketsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -56599,7 +57079,7 @@ func (c *BackendBucketsGetIamPolicyCall) Header() http.Header { func (c *BackendBucketsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -56770,7 +57250,7 @@ func (c *BackendBucketsInsertCall) Header() http.Header { func (c *BackendBucketsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -56999,7 +57479,7 @@ func (c *BackendBucketsListCall) Header() http.Header { func (c *BackendBucketsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -57207,7 +57687,7 @@ func (c *BackendBucketsPatchCall) Header() http.Header { func (c *BackendBucketsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -57315,6 +57795,181 @@ func (c *BackendBucketsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, } +// method id "compute.backendBuckets.setEdgeSecurityPolicy": + +type BackendBucketsSetEdgeSecurityPolicyCall struct { + s *Service + project string + backendBucket string + securitypolicyreference *SecurityPolicyReference + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetEdgeSecurityPolicy: Sets the edge security policy for the +// specified backend bucket. +func (r *BackendBucketsService) SetEdgeSecurityPolicy(project string, backendBucket string, securitypolicyreference *SecurityPolicyReference) *BackendBucketsSetEdgeSecurityPolicyCall { + c := &BackendBucketsSetEdgeSecurityPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.backendBucket = backendBucket + c.securitypolicyreference = securitypolicyreference + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. +// +// For example, consider a situation where you make an initial request +// and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the +// same request ID was received, and if so, will ignore the second +// request. This prevents clients from accidentally creating duplicate +// commitments. +// +// The request ID must be a valid UUID with the exception that zero UUID +// is not supported (00000000-0000-0000-0000-000000000000). +func (c *BackendBucketsSetEdgeSecurityPolicyCall) RequestId(requestId string) *BackendBucketsSetEdgeSecurityPolicyCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *BackendBucketsSetEdgeSecurityPolicyCall) Fields(s ...googleapi.Field) *BackendBucketsSetEdgeSecurityPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *BackendBucketsSetEdgeSecurityPolicyCall) Context(ctx context.Context) *BackendBucketsSetEdgeSecurityPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *BackendBucketsSetEdgeSecurityPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *BackendBucketsSetEdgeSecurityPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.securitypolicyreference) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/backendBuckets/{backendBucket}/setEdgeSecurityPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "backendBucket": c.backendBucket, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.backendBuckets.setEdgeSecurityPolicy" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *BackendBucketsSetEdgeSecurityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Sets the edge security policy for the specified backend bucket.", + // "httpMethod": "POST", + // "id": "compute.backendBuckets.setEdgeSecurityPolicy", + // "parameterOrder": [ + // "project", + // "backendBucket" + // ], + // "parameters": { + // "backendBucket": { + // "description": "Name of the BackendService resource to which the security policy should be set. The name should conform to RFC1035.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.\n\nFor example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.\n\nThe request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "projects/{project}/global/backendBuckets/{backendBucket}/setEdgeSecurityPolicy", + // "request": { + // "$ref": "SecurityPolicyReference" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + // method id "compute.backendBuckets.setIamPolicy": type BackendBucketsSetIamPolicyCall struct { @@ -57364,7 +58019,7 @@ func (c *BackendBucketsSetIamPolicyCall) Header() http.Header { func (c *BackendBucketsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -57516,7 +58171,7 @@ func (c *BackendBucketsTestIamPermissionsCall) Header() http.Header { func (c *BackendBucketsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -57688,7 +58343,7 @@ func (c *BackendBucketsUpdateCall) Header() http.Header { func (c *BackendBucketsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -57864,7 +58519,7 @@ func (c *BackendServicesAddSignedUrlKeyCall) Header() http.Header { func (c *BackendServicesAddSignedUrlKeyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -58114,7 +58769,7 @@ func (c *BackendServicesAggregatedListCall) Header() http.Header { func (c *BackendServicesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -58324,7 +58979,7 @@ func (c *BackendServicesDeleteCall) Header() http.Header { func (c *BackendServicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -58491,7 +59146,7 @@ func (c *BackendServicesDeleteSignedUrlKeyCall) Header() http.Header { func (c *BackendServicesDeleteSignedUrlKeyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -58656,7 +59311,7 @@ func (c *BackendServicesGetCall) Header() http.Header { func (c *BackendServicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -58809,7 +59464,7 @@ func (c *BackendServicesGetHealthCall) Header() http.Header { func (c *BackendServicesGetHealthCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -58980,7 +59635,7 @@ func (c *BackendServicesInsertCall) Header() http.Header { func (c *BackendServicesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -59210,7 +59865,7 @@ func (c *BackendServicesListCall) Header() http.Header { func (c *BackendServicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -59420,7 +60075,7 @@ func (c *BackendServicesPatchCall) Header() http.Header { func (c *BackendServicesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -59528,6 +60183,181 @@ func (c *BackendServicesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, } +// method id "compute.backendServices.setEdgeSecurityPolicy": + +type BackendServicesSetEdgeSecurityPolicyCall struct { + s *Service + project string + backendService string + securitypolicyreference *SecurityPolicyReference + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetEdgeSecurityPolicy: Sets the edge security policy for the +// specified backend service. +func (r *BackendServicesService) SetEdgeSecurityPolicy(project string, backendService string, securitypolicyreference *SecurityPolicyReference) *BackendServicesSetEdgeSecurityPolicyCall { + c := &BackendServicesSetEdgeSecurityPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.backendService = backendService + c.securitypolicyreference = securitypolicyreference + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. +// +// For example, consider a situation where you make an initial request +// and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the +// same request ID was received, and if so, will ignore the second +// request. This prevents clients from accidentally creating duplicate +// commitments. +// +// The request ID must be a valid UUID with the exception that zero UUID +// is not supported (00000000-0000-0000-0000-000000000000). +func (c *BackendServicesSetEdgeSecurityPolicyCall) RequestId(requestId string) *BackendServicesSetEdgeSecurityPolicyCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *BackendServicesSetEdgeSecurityPolicyCall) Fields(s ...googleapi.Field) *BackendServicesSetEdgeSecurityPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *BackendServicesSetEdgeSecurityPolicyCall) Context(ctx context.Context) *BackendServicesSetEdgeSecurityPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *BackendServicesSetEdgeSecurityPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *BackendServicesSetEdgeSecurityPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.securitypolicyreference) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/backendServices/{backendService}/setEdgeSecurityPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "backendService": c.backendService, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.backendServices.setEdgeSecurityPolicy" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *BackendServicesSetEdgeSecurityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Sets the edge security policy for the specified backend service.", + // "httpMethod": "POST", + // "id": "compute.backendServices.setEdgeSecurityPolicy", + // "parameterOrder": [ + // "project", + // "backendService" + // ], + // "parameters": { + // "backendService": { + // "description": "Name of the BackendService resource to which the edge security policy should be set. The name should conform to RFC1035.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.\n\nFor example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.\n\nThe request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "projects/{project}/global/backendServices/{backendService}/setEdgeSecurityPolicy", + // "request": { + // "$ref": "SecurityPolicyReference" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + // method id "compute.backendServices.setSecurityPolicy": type BackendServicesSetSecurityPolicyCall struct { @@ -59596,7 +60426,7 @@ func (c *BackendServicesSetSecurityPolicyCall) Header() http.Header { func (c *BackendServicesSetSecurityPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -59752,7 +60582,7 @@ func (c *BackendServicesTestIamPermissionsCall) Header() http.Header { func (c *BackendServicesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -59926,7 +60756,7 @@ func (c *BackendServicesUpdateCall) Header() http.Header { func (c *BackendServicesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -60177,7 +61007,7 @@ func (c *DiskTypesAggregatedListCall) Header() http.Header { func (c *DiskTypesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -60382,7 +61212,7 @@ func (c *DiskTypesGetCall) Header() http.Header { func (c *DiskTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -60623,7 +61453,7 @@ func (c *DiskTypesListCall) Header() http.Header { func (c *DiskTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -60842,7 +61672,7 @@ func (c *DisksAddResourcePoliciesCall) Header() http.Header { func (c *DisksAddResourcePoliciesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -61102,7 +61932,7 @@ func (c *DisksAggregatedListCall) Header() http.Header { func (c *DisksAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -61325,7 +62155,7 @@ func (c *DisksCreateSnapshotCall) Header() http.Header { func (c *DisksCreateSnapshotCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -61518,7 +62348,7 @@ func (c *DisksDeleteCall) Header() http.Header { func (c *DisksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -61687,7 +62517,7 @@ func (c *DisksGetCall) Header() http.Header { func (c *DisksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -61862,7 +62692,7 @@ func (c *DisksGetIamPolicyCall) Header() http.Header { func (c *DisksGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -62056,7 +62886,7 @@ func (c *DisksInsertCall) Header() http.Header { func (c *DisksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -62302,7 +63132,7 @@ func (c *DisksListCall) Header() http.Header { func (c *DisksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -62519,7 +63349,7 @@ func (c *DisksRemoveResourcePoliciesCall) Header() http.Header { func (c *DisksRemoveResourcePoliciesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -62706,7 +63536,7 @@ func (c *DisksResizeCall) Header() http.Header { func (c *DisksResizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -62874,7 +63704,7 @@ func (c *DisksSetIamPolicyCall) Header() http.Header { func (c *DisksSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -63056,7 +63886,7 @@ func (c *DisksSetLabelsCall) Header() http.Header { func (c *DisksSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -63224,7 +64054,7 @@ func (c *DisksTestIamPermissionsCall) Header() http.Header { func (c *DisksTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -63416,7 +64246,7 @@ func (c *DisksUpdateCall) Header() http.Header { func (c *DisksUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -63604,7 +64434,7 @@ func (c *ExternalVpnGatewaysDeleteCall) Header() http.Header { func (c *ExternalVpnGatewaysDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -63762,7 +64592,7 @@ func (c *ExternalVpnGatewaysGetCall) Header() http.Header { func (c *ExternalVpnGatewaysGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -63927,7 +64757,7 @@ func (c *ExternalVpnGatewaysInsertCall) Header() http.Header { func (c *ExternalVpnGatewaysInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -64156,7 +64986,7 @@ func (c *ExternalVpnGatewaysListCall) Header() http.Header { func (c *ExternalVpnGatewaysListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -64344,7 +65174,7 @@ func (c *ExternalVpnGatewaysSetLabelsCall) Header() http.Header { func (c *ExternalVpnGatewaysSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -64496,7 +65326,7 @@ func (c *ExternalVpnGatewaysTestIamPermissionsCall) Header() http.Header { func (c *ExternalVpnGatewaysTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -64666,7 +65496,7 @@ func (c *FirewallsDeleteCall) Header() http.Header { func (c *FirewallsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -64824,7 +65654,7 @@ func (c *FirewallsGetCall) Header() http.Header { func (c *FirewallsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -64990,7 +65820,7 @@ func (c *FirewallsInsertCall) Header() http.Header { func (c *FirewallsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -65220,7 +66050,7 @@ func (c *FirewallsListCall) Header() http.Header { func (c *FirewallsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -65429,7 +66259,7 @@ func (c *FirewallsPatchCall) Header() http.Header { func (c *FirewallsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -65586,7 +66416,7 @@ func (c *FirewallsTestIamPermissionsCall) Header() http.Header { func (c *FirewallsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -65761,7 +66591,7 @@ func (c *FirewallsUpdateCall) Header() http.Header { func (c *FirewallsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -66012,7 +66842,7 @@ func (c *ForwardingRulesAggregatedListCall) Header() http.Header { func (c *ForwardingRulesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -66224,7 +67054,7 @@ func (c *ForwardingRulesDeleteCall) Header() http.Header { func (c *ForwardingRulesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -66393,7 +67223,7 @@ func (c *ForwardingRulesGetCall) Header() http.Header { func (c *ForwardingRulesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -66570,7 +67400,7 @@ func (c *ForwardingRulesInsertCall) Header() http.Header { func (c *ForwardingRulesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -66811,7 +67641,7 @@ func (c *ForwardingRulesListCall) Header() http.Header { func (c *ForwardingRulesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -67031,7 +67861,7 @@ func (c *ForwardingRulesPatchCall) Header() http.Header { func (c *ForwardingRulesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -67218,7 +68048,7 @@ func (c *ForwardingRulesSetLabelsCall) Header() http.Header { func (c *ForwardingRulesSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -67406,7 +68236,7 @@ func (c *ForwardingRulesSetTargetCall) Header() http.Header { func (c *ForwardingRulesSetTargetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -67574,7 +68404,7 @@ func (c *ForwardingRulesTestIamPermissionsCall) Header() http.Header { func (c *ForwardingRulesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -67753,7 +68583,7 @@ func (c *GlobalAddressesDeleteCall) Header() http.Header { func (c *GlobalAddressesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -67912,7 +68742,7 @@ func (c *GlobalAddressesGetCall) Header() http.Header { func (c *GlobalAddressesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -68074,7 +68904,7 @@ func (c *GlobalAddressesGetOwnerInstanceCall) Header() http.Header { func (c *GlobalAddressesGetOwnerInstanceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -68235,7 +69065,7 @@ func (c *GlobalAddressesInsertCall) Header() http.Header { func (c *GlobalAddressesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -68464,7 +69294,7 @@ func (c *GlobalAddressesListCall) Header() http.Header { func (c *GlobalAddressesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -68652,7 +69482,7 @@ func (c *GlobalAddressesSetLabelsCall) Header() http.Header { func (c *GlobalAddressesSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -68804,7 +69634,7 @@ func (c *GlobalAddressesTestIamPermissionsCall) Header() http.Header { func (c *GlobalAddressesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -68974,7 +69804,7 @@ func (c *GlobalForwardingRulesDeleteCall) Header() http.Header { func (c *GlobalForwardingRulesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -69133,7 +69963,7 @@ func (c *GlobalForwardingRulesGetCall) Header() http.Header { func (c *GlobalForwardingRulesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -69299,7 +70129,7 @@ func (c *GlobalForwardingRulesInsertCall) Header() http.Header { func (c *GlobalForwardingRulesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -69529,7 +70359,7 @@ func (c *GlobalForwardingRulesListCall) Header() http.Header { func (c *GlobalForwardingRulesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -69738,7 +70568,7 @@ func (c *GlobalForwardingRulesPatchCall) Header() http.Header { func (c *GlobalForwardingRulesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -69895,7 +70725,7 @@ func (c *GlobalForwardingRulesSetLabelsCall) Header() http.Header { func (c *GlobalForwardingRulesSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -70067,7 +70897,7 @@ func (c *GlobalForwardingRulesSetTargetCall) Header() http.Header { func (c *GlobalForwardingRulesSetTargetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -70224,7 +71054,7 @@ func (c *GlobalForwardingRulesTestIamPermissionsCall) Header() http.Header { func (c *GlobalForwardingRulesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -70396,7 +71226,7 @@ func (c *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) Header() http.He func (c *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -70569,7 +71399,7 @@ func (c *GlobalNetworkEndpointGroupsDeleteCall) Header() http.Header { func (c *GlobalNetworkEndpointGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -70736,7 +71566,7 @@ func (c *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) Header() http.He func (c *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -70901,7 +71731,7 @@ func (c *GlobalNetworkEndpointGroupsGetCall) Header() http.Header { func (c *GlobalNetworkEndpointGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -71065,7 +71895,7 @@ func (c *GlobalNetworkEndpointGroupsInsertCall) Header() http.Header { func (c *GlobalNetworkEndpointGroupsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -71294,7 +72124,7 @@ func (c *GlobalNetworkEndpointGroupsListCall) Header() http.Header { func (c *GlobalNetworkEndpointGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -71554,7 +72384,7 @@ func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Header() http.Head func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -71843,7 +72673,7 @@ func (c *GlobalOperationsAggregatedListCall) Header() http.Header { func (c *GlobalOperationsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -72034,7 +72864,7 @@ func (c *GlobalOperationsDeleteCall) Header() http.Header { func (c *GlobalOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -72160,7 +72990,7 @@ func (c *GlobalOperationsGetCall) Header() http.Header { func (c *GlobalOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -72390,7 +73220,7 @@ func (c *GlobalOperationsListCall) Header() http.Header { func (c *GlobalOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -72588,7 +73418,7 @@ func (c *GlobalOperationsWaitCall) Header() http.Header { func (c *GlobalOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -72735,7 +73565,7 @@ func (c *GlobalOrganizationOperationsDeleteCall) Header() http.Header { func (c *GlobalOrganizationOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -72861,7 +73691,7 @@ func (c *GlobalOrganizationOperationsGetCall) Header() http.Header { func (c *GlobalOrganizationOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -73091,7 +73921,7 @@ func (c *GlobalOrganizationOperationsListCall) Header() http.Header { func (c *GlobalOrganizationOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -73287,7 +74117,7 @@ func (c *GlobalPublicDelegatedPrefixesDeleteCall) Header() http.Header { func (c *GlobalPublicDelegatedPrefixesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -73444,7 +74274,7 @@ func (c *GlobalPublicDelegatedPrefixesGetCall) Header() http.Header { func (c *GlobalPublicDelegatedPrefixesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -73609,7 +74439,7 @@ func (c *GlobalPublicDelegatedPrefixesInsertCall) Header() http.Header { func (c *GlobalPublicDelegatedPrefixesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -73837,7 +74667,7 @@ func (c *GlobalPublicDelegatedPrefixesListCall) Header() http.Header { func (c *GlobalPublicDelegatedPrefixesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -74045,7 +74875,7 @@ func (c *GlobalPublicDelegatedPrefixesPatchCall) Header() http.Header { func (c *GlobalPublicDelegatedPrefixesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -74296,7 +75126,7 @@ func (c *HealthChecksAggregatedListCall) Header() http.Header { func (c *HealthChecksAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -74505,7 +75335,7 @@ func (c *HealthChecksDeleteCall) Header() http.Header { func (c *HealthChecksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -74663,7 +75493,7 @@ func (c *HealthChecksGetCall) Header() http.Header { func (c *HealthChecksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -74828,7 +75658,7 @@ func (c *HealthChecksInsertCall) Header() http.Header { func (c *HealthChecksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -75057,7 +75887,7 @@ func (c *HealthChecksListCall) Header() http.Header { func (c *HealthChecksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -75265,7 +76095,7 @@ func (c *HealthChecksPatchCall) Header() http.Header { func (c *HealthChecksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -75422,7 +76252,7 @@ func (c *HealthChecksTestIamPermissionsCall) Header() http.Header { func (c *HealthChecksTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -75594,7 +76424,7 @@ func (c *HealthChecksUpdateCall) Header() http.Header { func (c *HealthChecksUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -75768,7 +76598,7 @@ func (c *HttpHealthChecksDeleteCall) Header() http.Header { func (c *HttpHealthChecksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -75927,7 +76757,7 @@ func (c *HttpHealthChecksGetCall) Header() http.Header { func (c *HttpHealthChecksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -76093,7 +76923,7 @@ func (c *HttpHealthChecksInsertCall) Header() http.Header { func (c *HttpHealthChecksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -76323,7 +77153,7 @@ func (c *HttpHealthChecksListCall) Header() http.Header { func (c *HttpHealthChecksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -76532,7 +77362,7 @@ func (c *HttpHealthChecksPatchCall) Header() http.Header { func (c *HttpHealthChecksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -76689,7 +77519,7 @@ func (c *HttpHealthChecksTestIamPermissionsCall) Header() http.Header { func (c *HttpHealthChecksTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -76862,7 +77692,7 @@ func (c *HttpHealthChecksUpdateCall) Header() http.Header { func (c *HttpHealthChecksUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -77035,7 +77865,7 @@ func (c *HttpsHealthChecksDeleteCall) Header() http.Header { func (c *HttpsHealthChecksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -77193,7 +78023,7 @@ func (c *HttpsHealthChecksGetCall) Header() http.Header { func (c *HttpsHealthChecksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -77358,7 +78188,7 @@ func (c *HttpsHealthChecksInsertCall) Header() http.Header { func (c *HttpsHealthChecksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -77587,7 +78417,7 @@ func (c *HttpsHealthChecksListCall) Header() http.Header { func (c *HttpsHealthChecksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -77795,7 +78625,7 @@ func (c *HttpsHealthChecksPatchCall) Header() http.Header { func (c *HttpsHealthChecksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -77952,7 +78782,7 @@ func (c *HttpsHealthChecksTestIamPermissionsCall) Header() http.Header { func (c *HttpsHealthChecksTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -78124,7 +78954,7 @@ func (c *HttpsHealthChecksUpdateCall) Header() http.Header { func (c *HttpsHealthChecksUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -78298,7 +79128,7 @@ func (c *ImagesDeleteCall) Header() http.Header { func (c *ImagesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -78469,7 +79299,7 @@ func (c *ImagesDeprecateCall) Header() http.Header { func (c *ImagesDeprecateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -78636,7 +79466,7 @@ func (c *ImagesGetCall) Header() http.Header { func (c *ImagesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -78793,7 +79623,7 @@ func (c *ImagesGetFromFamilyCall) Header() http.Header { func (c *ImagesGetFromFamilyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -78957,7 +79787,7 @@ func (c *ImagesGetIamPolicyCall) Header() http.Header { func (c *ImagesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -79136,7 +79966,7 @@ func (c *ImagesInsertCall) Header() http.Header { func (c *ImagesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -79379,7 +80209,7 @@ func (c *ImagesListCall) Header() http.Header { func (c *ImagesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -79587,7 +80417,7 @@ func (c *ImagesPatchCall) Header() http.Header { func (c *ImagesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -79744,7 +80574,7 @@ func (c *ImagesSetIamPolicyCall) Header() http.Header { func (c *ImagesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -79896,7 +80726,7 @@ func (c *ImagesSetLabelsCall) Header() http.Header { func (c *ImagesSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -80048,7 +80878,7 @@ func (c *ImagesTestIamPermissionsCall) Header() http.Header { func (c *ImagesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -80237,7 +81067,7 @@ func (c *InstanceGroupManagersAbandonInstancesCall) Header() http.Header { func (c *InstanceGroupManagersAbandonInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -80495,7 +81325,7 @@ func (c *InstanceGroupManagersAggregatedListCall) Header() http.Header { func (c *InstanceGroupManagersAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -80692,7 +81522,7 @@ func (c *InstanceGroupManagersApplyUpdatesToInstancesCall) Header() http.Header func (c *InstanceGroupManagersApplyUpdatesToInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -80875,7 +81705,7 @@ func (c *InstanceGroupManagersCreateInstancesCall) Header() http.Header { func (c *InstanceGroupManagersCreateInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -81060,7 +81890,7 @@ func (c *InstanceGroupManagersDeleteCall) Header() http.Header { func (c *InstanceGroupManagersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -81251,7 +82081,7 @@ func (c *InstanceGroupManagersDeleteInstancesCall) Header() http.Header { func (c *InstanceGroupManagersDeleteInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -81417,7 +82247,7 @@ func (c *InstanceGroupManagersDeletePerInstanceConfigsCall) Header() http.Header func (c *InstanceGroupManagersDeletePerInstanceConfigsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -81588,7 +82418,7 @@ func (c *InstanceGroupManagersGetCall) Header() http.Header { func (c *InstanceGroupManagersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -81770,7 +82600,7 @@ func (c *InstanceGroupManagersInsertCall) Header() http.Header { func (c *InstanceGroupManagersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -82009,7 +82839,7 @@ func (c *InstanceGroupManagersListCall) Header() http.Header { func (c *InstanceGroupManagersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -82291,7 +83121,7 @@ func (c *InstanceGroupManagersListErrorsCall) Header() http.Header { func (c *InstanceGroupManagersListErrorsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -82575,7 +83405,7 @@ func (c *InstanceGroupManagersListManagedInstancesCall) Header() http.Header { func (c *InstanceGroupManagersListManagedInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -82853,7 +83683,7 @@ func (c *InstanceGroupManagersListPerInstanceConfigsCall) Header() http.Header { func (c *InstanceGroupManagersListPerInstanceConfigsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -83082,7 +83912,7 @@ func (c *InstanceGroupManagersPatchCall) Header() http.Header { func (c *InstanceGroupManagersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -83268,7 +84098,7 @@ func (c *InstanceGroupManagersPatchPerInstanceConfigsCall) Header() http.Header func (c *InstanceGroupManagersPatchPerInstanceConfigsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -83466,7 +84296,7 @@ func (c *InstanceGroupManagersRecreateInstancesCall) Header() http.Header { func (c *InstanceGroupManagersRecreateInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -83669,7 +84499,7 @@ func (c *InstanceGroupManagersResizeCall) Header() http.Header { func (c *InstanceGroupManagersResizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -83867,7 +84697,7 @@ func (c *InstanceGroupManagersResizeAdvancedCall) Header() http.Header { func (c *InstanceGroupManagersResizeAdvancedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -84052,7 +84882,7 @@ func (c *InstanceGroupManagersSetAutoHealingPoliciesCall) Header() http.Header { func (c *InstanceGroupManagersSetAutoHealingPoliciesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -84182,7 +85012,9 @@ type InstanceGroupManagersSetInstanceTemplateCall struct { // SetInstanceTemplate: Specifies the instance template to use when // creating new instances in this group. The templates for existing -// instances in the group do not change unless you recreate them. +// instances in the group do not change unless you run +// recreateInstances, run applyUpdatesToInstances, or set the group's +// updatePolicy.type to PROACTIVE. func (r *InstanceGroupManagersService) SetInstanceTemplate(project string, zone string, instanceGroupManager string, instancegroupmanagerssetinstancetemplaterequest *InstanceGroupManagersSetInstanceTemplateRequest) *InstanceGroupManagersSetInstanceTemplateCall { c := &InstanceGroupManagersSetInstanceTemplateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -84238,7 +85070,7 @@ func (c *InstanceGroupManagersSetInstanceTemplateCall) Header() http.Header { func (c *InstanceGroupManagersSetInstanceTemplateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -84304,7 +85136,7 @@ func (c *InstanceGroupManagersSetInstanceTemplateCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you recreate them.", + // "description": "Specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE.", // "httpMethod": "POST", // "id": "compute.instanceGroupManagers.setInstanceTemplate", // "parameterOrder": [ @@ -84428,7 +85260,7 @@ func (c *InstanceGroupManagersSetTargetPoolsCall) Header() http.Header { func (c *InstanceGroupManagersSetTargetPoolsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -84594,7 +85426,7 @@ func (c *InstanceGroupManagersTestIamPermissionsCall) Header() http.Header { func (c *InstanceGroupManagersTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -84780,7 +85612,7 @@ func (c *InstanceGroupManagersUpdateCall) Header() http.Header { func (c *InstanceGroupManagersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -84966,7 +85798,7 @@ func (c *InstanceGroupManagersUpdatePerInstanceConfigsCall) Header() http.Header func (c *InstanceGroupManagersUpdatePerInstanceConfigsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -85152,7 +85984,7 @@ func (c *InstanceGroupsAddInstancesCall) Header() http.Header { func (c *InstanceGroupsAddInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -85410,7 +86242,7 @@ func (c *InstanceGroupsAggregatedListCall) Header() http.Header { func (c *InstanceGroupsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -85624,7 +86456,7 @@ func (c *InstanceGroupsDeleteCall) Header() http.Header { func (c *InstanceGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -85794,7 +86626,7 @@ func (c *InstanceGroupsGetCall) Header() http.Header { func (c *InstanceGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -85968,7 +86800,7 @@ func (c *InstanceGroupsInsertCall) Header() http.Header { func (c *InstanceGroupsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -86210,7 +87042,7 @@ func (c *InstanceGroupsListCall) Header() http.Header { func (c *InstanceGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -86482,7 +87314,7 @@ func (c *InstanceGroupsListInstancesCall) Header() http.Header { func (c *InstanceGroupsListInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -86716,7 +87548,7 @@ func (c *InstanceGroupsRemoveInstancesCall) Header() http.Header { func (c *InstanceGroupsRemoveInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -86900,7 +87732,7 @@ func (c *InstanceGroupsSetNamedPortsCall) Header() http.Header { func (c *InstanceGroupsSetNamedPortsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -87066,7 +87898,7 @@ func (c *InstanceGroupsTestIamPermissionsCall) Header() http.Header { func (c *InstanceGroupsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -87247,7 +88079,7 @@ func (c *InstanceTemplatesDeleteCall) Header() http.Header { func (c *InstanceTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -87406,7 +88238,7 @@ func (c *InstanceTemplatesGetCall) Header() http.Header { func (c *InstanceTemplatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -87570,7 +88402,7 @@ func (c *InstanceTemplatesGetIamPolicyCall) Header() http.Header { func (c *InstanceTemplatesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -87745,7 +88577,7 @@ func (c *InstanceTemplatesInsertCall) Header() http.Header { func (c *InstanceTemplatesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -87975,7 +88807,7 @@ func (c *InstanceTemplatesListCall) Header() http.Header { func (c *InstanceTemplatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -88163,7 +88995,7 @@ func (c *InstanceTemplatesSetIamPolicyCall) Header() http.Header { func (c *InstanceTemplatesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -88315,7 +89147,7 @@ func (c *InstanceTemplatesTestIamPermissionsCall) Header() http.Header { func (c *InstanceTemplatesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -88491,7 +89323,7 @@ func (c *InstancesAddAccessConfigCall) Header() http.Header { func (c *InstancesAddAccessConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -88686,7 +89518,7 @@ func (c *InstancesAddResourcePoliciesCall) Header() http.Header { func (c *InstancesAddResourcePoliciesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -88947,7 +89779,7 @@ func (c *InstancesAggregatedListCall) Header() http.Header { func (c *InstancesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -89173,7 +90005,7 @@ func (c *InstancesAttachDiskCall) Header() http.Header { func (c *InstancesAttachDiskCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -89363,7 +90195,7 @@ func (c *InstancesBulkInsertCall) Header() http.Header { func (c *InstancesBulkInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -89540,7 +90372,7 @@ func (c *InstancesDeleteCall) Header() http.Header { func (c *InstancesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -89720,7 +90552,7 @@ func (c *InstancesDeleteAccessConfigCall) Header() http.Header { func (c *InstancesDeleteAccessConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -89912,7 +90744,7 @@ func (c *InstancesDetachDiskCall) Header() http.Header { func (c *InstancesDetachDiskCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -90089,7 +90921,7 @@ func (c *InstancesGetCall) Header() http.Header { func (c *InstancesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -90258,7 +91090,7 @@ func (c *InstancesGetEffectiveFirewallsCall) Header() http.Header { func (c *InstancesGetEffectiveFirewallsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -90447,7 +91279,7 @@ func (c *InstancesGetGuestAttributesCall) Header() http.Header { func (c *InstancesGetGuestAttributesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -90632,7 +91464,7 @@ func (c *InstancesGetIamPolicyCall) Header() http.Header { func (c *InstancesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -90805,7 +91637,7 @@ func (c *InstancesGetScreenshotCall) Header() http.Header { func (c *InstancesGetScreenshotCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -91003,7 +91835,7 @@ func (c *InstancesGetSerialPortOutputCall) Header() http.Header { func (c *InstancesGetSerialPortOutputCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -91186,7 +92018,7 @@ func (c *InstancesGetShieldedInstanceIdentityCall) Header() http.Header { func (c *InstancesGetShieldedInstanceIdentityCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -91354,7 +92186,7 @@ func (c *InstancesGetShieldedVmIdentityCall) Header() http.Header { func (c *InstancesGetShieldedVmIdentityCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -91560,7 +92392,7 @@ func (c *InstancesInsertCall) Header() http.Header { func (c *InstancesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -91811,7 +92643,7 @@ func (c *InstancesListCall) Header() http.Header { func (c *InstancesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -92096,7 +92928,7 @@ func (c *InstancesListReferrersCall) Header() http.Header { func (c *InstancesListReferrersCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -92322,7 +93154,7 @@ func (c *InstancesRemoveResourcePoliciesCall) Header() http.Header { func (c *InstancesRemoveResourcePoliciesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -92509,7 +93341,7 @@ func (c *InstancesResetCall) Header() http.Header { func (c *InstancesResetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -92688,7 +93520,7 @@ func (c *InstancesResumeCall) Header() http.Header { func (c *InstancesResumeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -92879,7 +93711,7 @@ func (c *InstancesSetDeletionProtectionCall) Header() http.Header { func (c *InstancesSetDeletionProtectionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -93065,7 +93897,7 @@ func (c *InstancesSetDiskAutoDeleteCall) Header() http.Header { func (c *InstancesSetDiskAutoDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -93240,7 +94072,7 @@ func (c *InstancesSetIamPolicyCall) Header() http.Header { func (c *InstancesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -93422,7 +94254,7 @@ func (c *InstancesSetLabelsCall) Header() http.Header { func (c *InstancesSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -93609,7 +94441,7 @@ func (c *InstancesSetMachineResourcesCall) Header() http.Header { func (c *InstancesSetMachineResourcesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -93796,7 +94628,7 @@ func (c *InstancesSetMachineTypeCall) Header() http.Header { func (c *InstancesSetMachineTypeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -93984,7 +94816,7 @@ func (c *InstancesSetMetadataCall) Header() http.Header { func (c *InstancesSetMetadataCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -94173,7 +95005,7 @@ func (c *InstancesSetMinCpuPlatformCall) Header() http.Header { func (c *InstancesSetMinCpuPlatformCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -94359,7 +95191,7 @@ func (c *InstancesSetNameCall) Header() http.Header { func (c *InstancesSetNameCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -94549,7 +95381,7 @@ func (c *InstancesSetSchedulingCall) Header() http.Header { func (c *InstancesSetSchedulingCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -94737,7 +95569,7 @@ func (c *InstancesSetServiceAccountCall) Header() http.Header { func (c *InstancesSetServiceAccountCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -94926,7 +95758,7 @@ func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) Header() http.Header { func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -95115,7 +95947,7 @@ func (c *InstancesSetShieldedVmIntegrityPolicyCall) Header() http.Header { func (c *InstancesSetShieldedVmIntegrityPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -95303,7 +96135,7 @@ func (c *InstancesSetTagsCall) Header() http.Header { func (c *InstancesSetTagsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -95469,7 +96301,7 @@ func (c *InstancesSimulateMaintenanceEventCall) Header() http.Header { func (c *InstancesSimulateMaintenanceEventCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -95642,7 +96474,7 @@ func (c *InstancesStartCall) Header() http.Header { func (c *InstancesStartCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -95822,7 +96654,7 @@ func (c *InstancesStartWithEncryptionKeyCall) Header() http.Header { func (c *InstancesStartWithEncryptionKeyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -96020,7 +96852,7 @@ func (c *InstancesStopCall) Header() http.Header { func (c *InstancesStopCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -96214,7 +97046,7 @@ func (c *InstancesSuspendCall) Header() http.Header { func (c *InstancesSuspendCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -96379,7 +97211,7 @@ func (c *InstancesTestIamPermissionsCall) Header() http.Header { func (c *InstancesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -96596,7 +97428,7 @@ func (c *InstancesUpdateCall) Header() http.Header { func (c *InstancesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -96820,7 +97652,7 @@ func (c *InstancesUpdateAccessConfigCall) Header() http.Header { func (c *InstancesUpdateAccessConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -97016,7 +97848,7 @@ func (c *InstancesUpdateDisplayDeviceCall) Header() http.Header { func (c *InstancesUpdateDisplayDeviceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -97204,7 +98036,7 @@ func (c *InstancesUpdateNetworkInterfaceCall) Header() http.Header { func (c *InstancesUpdateNetworkInterfaceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -97400,7 +98232,7 @@ func (c *InstancesUpdateShieldedInstanceConfigCall) Header() http.Header { func (c *InstancesUpdateShieldedInstanceConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -97589,7 +98421,7 @@ func (c *InstancesUpdateShieldedVmConfigCall) Header() http.Header { func (c *InstancesUpdateShieldedVmConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -97849,7 +98681,7 @@ func (c *InterconnectAttachmentsAggregatedListCall) Header() http.Header { func (c *InterconnectAttachmentsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -98061,7 +98893,7 @@ func (c *InterconnectAttachmentsDeleteCall) Header() http.Header { func (c *InterconnectAttachmentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -98229,7 +99061,7 @@ func (c *InterconnectAttachmentsGetCall) Header() http.Header { func (c *InterconnectAttachmentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -98404,7 +99236,7 @@ func (c *InterconnectAttachmentsGetIamPolicyCall) Header() http.Header { func (c *InterconnectAttachmentsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -98593,7 +99425,7 @@ func (c *InterconnectAttachmentsInsertCall) Header() http.Header { func (c *InterconnectAttachmentsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -98838,7 +99670,7 @@ func (c *InterconnectAttachmentsListCall) Header() http.Header { func (c *InterconnectAttachmentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -99057,7 +99889,7 @@ func (c *InterconnectAttachmentsPatchCall) Header() http.Header { func (c *InterconnectAttachmentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -99225,7 +100057,7 @@ func (c *InterconnectAttachmentsSetIamPolicyCall) Header() http.Header { func (c *InterconnectAttachmentsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -99407,7 +100239,7 @@ func (c *InterconnectAttachmentsSetLabelsCall) Header() http.Header { func (c *InterconnectAttachmentsSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -99575,7 +100407,7 @@ func (c *InterconnectAttachmentsTestIamPermissionsCall) Header() http.Header { func (c *InterconnectAttachmentsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -99747,7 +100579,7 @@ func (c *InterconnectLocationsGetCall) Header() http.Header { func (c *InterconnectLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -99976,7 +100808,7 @@ func (c *InterconnectLocationsListCall) Header() http.Header { func (c *InterconnectLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -100164,7 +100996,7 @@ func (c *InterconnectLocationsTestIamPermissionsCall) Header() http.Header { func (c *InterconnectLocationsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -100333,7 +101165,7 @@ func (c *InterconnectsDeleteCall) Header() http.Header { func (c *InterconnectsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -100491,7 +101323,7 @@ func (c *InterconnectsGetCall) Header() http.Header { func (c *InterconnectsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -100648,7 +101480,7 @@ func (c *InterconnectsGetDiagnosticsCall) Header() http.Header { func (c *InterconnectsGetDiagnosticsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -100813,7 +101645,7 @@ func (c *InterconnectsGetIamPolicyCall) Header() http.Header { func (c *InterconnectsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -100984,7 +101816,7 @@ func (c *InterconnectsInsertCall) Header() http.Header { func (c *InterconnectsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -101213,7 +102045,7 @@ func (c *InterconnectsListCall) Header() http.Header { func (c *InterconnectsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -101421,7 +102253,7 @@ func (c *InterconnectsPatchCall) Header() http.Header { func (c *InterconnectsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -101578,7 +102410,7 @@ func (c *InterconnectsSetIamPolicyCall) Header() http.Header { func (c *InterconnectsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -101730,7 +102562,7 @@ func (c *InterconnectsSetLabelsCall) Header() http.Header { func (c *InterconnectsSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -101882,7 +102714,7 @@ func (c *InterconnectsTestIamPermissionsCall) Header() http.Header { func (c *InterconnectsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -102046,7 +102878,7 @@ func (c *LicenseCodesGetCall) Header() http.Header { func (c *LicenseCodesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -102212,7 +103044,7 @@ func (c *LicenseCodesGetIamPolicyCall) Header() http.Header { func (c *LicenseCodesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -102368,7 +103200,7 @@ func (c *LicenseCodesSetIamPolicyCall) Header() http.Header { func (c *LicenseCodesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -102521,7 +103353,7 @@ func (c *LicenseCodesTestIamPermissionsCall) Header() http.Header { func (c *LicenseCodesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -102692,7 +103524,7 @@ func (c *LicensesDeleteCall) Header() http.Header { func (c *LicensesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -102852,7 +103684,7 @@ func (c *LicensesGetCall) Header() http.Header { func (c *LicensesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -103018,7 +103850,7 @@ func (c *LicensesGetIamPolicyCall) Header() http.Header { func (c *LicensesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -103190,7 +104022,7 @@ func (c *LicensesInsertCall) Header() http.Header { func (c *LicensesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -103428,7 +104260,7 @@ func (c *LicensesListCall) Header() http.Header { func (c *LicensesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -103618,7 +104450,7 @@ func (c *LicensesSetIamPolicyCall) Header() http.Header { func (c *LicensesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -103771,7 +104603,7 @@ func (c *LicensesTestIamPermissionsCall) Header() http.Header { func (c *LicensesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -103941,7 +104773,7 @@ func (c *MachineImagesDeleteCall) Header() http.Header { func (c *MachineImagesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -104099,7 +104931,7 @@ func (c *MachineImagesGetCall) Header() http.Header { func (c *MachineImagesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -104263,7 +105095,7 @@ func (c *MachineImagesGetIamPolicyCall) Header() http.Header { func (c *MachineImagesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -104445,7 +105277,7 @@ func (c *MachineImagesInsertCall) Header() http.Header { func (c *MachineImagesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -104679,7 +105511,7 @@ func (c *MachineImagesListCall) Header() http.Header { func (c *MachineImagesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -104867,7 +105699,7 @@ func (c *MachineImagesSetIamPolicyCall) Header() http.Header { func (c *MachineImagesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -105019,7 +105851,7 @@ func (c *MachineImagesTestIamPermissionsCall) Header() http.Header { func (c *MachineImagesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -105266,7 +106098,7 @@ func (c *MachineTypesAggregatedListCall) Header() http.Header { func (c *MachineTypesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -105471,7 +106303,7 @@ func (c *MachineTypesGetCall) Header() http.Header { func (c *MachineTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -105712,7 +106544,7 @@ func (c *MachineTypesListCall) Header() http.Header { func (c *MachineTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -106003,7 +106835,7 @@ func (c *NetworkEndpointGroupsAggregatedListCall) Header() http.Header { func (c *NetworkEndpointGroupsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -106218,7 +107050,7 @@ func (c *NetworkEndpointGroupsAttachNetworkEndpointsCall) Header() http.Header { func (c *NetworkEndpointGroupsAttachNetworkEndpointsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -106403,7 +107235,7 @@ func (c *NetworkEndpointGroupsDeleteCall) Header() http.Header { func (c *NetworkEndpointGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -106580,7 +107412,7 @@ func (c *NetworkEndpointGroupsDetachNetworkEndpointsCall) Header() http.Header { func (c *NetworkEndpointGroupsDetachNetworkEndpointsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -106755,7 +107587,7 @@ func (c *NetworkEndpointGroupsGetCall) Header() http.Header { func (c *NetworkEndpointGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -106929,7 +107761,7 @@ func (c *NetworkEndpointGroupsInsertCall) Header() http.Header { func (c *NetworkEndpointGroupsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -107168,7 +108000,7 @@ func (c *NetworkEndpointGroupsListCall) Header() http.Header { func (c *NetworkEndpointGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -107440,7 +108272,7 @@ func (c *NetworkEndpointGroupsListNetworkEndpointsCall) Header() http.Header { func (c *NetworkEndpointGroupsListNetworkEndpointsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -107653,7 +108485,7 @@ func (c *NetworkEndpointGroupsTestIamPermissionsCall) Header() http.Header { func (c *NetworkEndpointGroupsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -107844,7 +108676,7 @@ func (c *NetworkFirewallPoliciesAddAssociationCall) Header() http.Header { func (c *NetworkFirewallPoliciesAddAssociationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -108005,7 +108837,7 @@ func (c *NetworkFirewallPoliciesAddRuleCall) Header() http.Header { func (c *NetworkFirewallPoliciesAddRuleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -108180,7 +109012,7 @@ func (c *NetworkFirewallPoliciesCloneRulesCall) Header() http.Header { func (c *NetworkFirewallPoliciesCloneRulesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -108350,7 +109182,7 @@ func (c *NetworkFirewallPoliciesDeleteCall) Header() http.Header { func (c *NetworkFirewallPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -108507,7 +109339,7 @@ func (c *NetworkFirewallPoliciesGetCall) Header() http.Header { func (c *NetworkFirewallPoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -108670,7 +109502,7 @@ func (c *NetworkFirewallPoliciesGetAssociationCall) Header() http.Header { func (c *NetworkFirewallPoliciesGetAssociationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -108839,7 +109671,7 @@ func (c *NetworkFirewallPoliciesGetIamPolicyCall) Header() http.Header { func (c *NetworkFirewallPoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -109008,7 +109840,7 @@ func (c *NetworkFirewallPoliciesGetRuleCall) Header() http.Header { func (c *NetworkFirewallPoliciesGetRuleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -109179,7 +110011,7 @@ func (c *NetworkFirewallPoliciesInsertCall) Header() http.Header { func (c *NetworkFirewallPoliciesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -109408,7 +110240,7 @@ func (c *NetworkFirewallPoliciesListCall) Header() http.Header { func (c *NetworkFirewallPoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -109615,7 +110447,7 @@ func (c *NetworkFirewallPoliciesPatchCall) Header() http.Header { func (c *NetworkFirewallPoliciesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -109778,7 +110610,7 @@ func (c *NetworkFirewallPoliciesPatchRuleCall) Header() http.Header { func (c *NetworkFirewallPoliciesPatchRuleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -109960,7 +110792,7 @@ func (c *NetworkFirewallPoliciesRemoveAssociationCall) Header() http.Header { func (c *NetworkFirewallPoliciesRemoveAssociationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -110118,7 +110950,7 @@ func (c *NetworkFirewallPoliciesRemoveRuleCall) Header() http.Header { func (c *NetworkFirewallPoliciesRemoveRuleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -110268,7 +111100,7 @@ func (c *NetworkFirewallPoliciesSetIamPolicyCall) Header() http.Header { func (c *NetworkFirewallPoliciesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -110420,7 +111252,7 @@ func (c *NetworkFirewallPoliciesTestIamPermissionsCall) Header() http.Header { func (c *NetworkFirewallPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -110591,7 +111423,7 @@ func (c *NetworksAddPeeringCall) Header() http.Header { func (c *NetworksAddPeeringCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -110765,7 +111597,7 @@ func (c *NetworksDeleteCall) Header() http.Header { func (c *NetworksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -110924,7 +111756,7 @@ func (c *NetworksGetCall) Header() http.Header { func (c *NetworksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -111081,7 +111913,7 @@ func (c *NetworksGetEffectiveFirewallsCall) Header() http.Header { func (c *NetworksGetEffectiveFirewallsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -111248,7 +112080,7 @@ func (c *NetworksInsertCall) Header() http.Header { func (c *NetworksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -111478,7 +112310,7 @@ func (c *NetworksListCall) Header() http.Header { func (c *NetworksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -111757,7 +112589,7 @@ func (c *NetworksListIpAddressesCall) Header() http.Header { func (c *NetworksListIpAddressesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -112076,7 +112908,7 @@ func (c *NetworksListIpOwnersCall) Header() http.Header { func (c *NetworksListIpOwnersCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -112409,7 +113241,7 @@ func (c *NetworksListPeeringRoutesCall) Header() http.Header { func (c *NetworksListPeeringRoutesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -112649,7 +113481,7 @@ func (c *NetworksPatchCall) Header() http.Header { func (c *NetworksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -112824,7 +113656,7 @@ func (c *NetworksRemovePeeringCall) Header() http.Header { func (c *NetworksRemovePeeringCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -112998,7 +113830,7 @@ func (c *NetworksSwitchToCustomModeCall) Header() http.Header { func (c *NetworksSwitchToCustomModeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -113147,7 +113979,7 @@ func (c *NetworksTestIamPermissionsCall) Header() http.Header { func (c *NetworksTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -113321,7 +114153,7 @@ func (c *NetworksUpdatePeeringCall) Header() http.Header { func (c *NetworksUpdatePeeringCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -113498,7 +114330,7 @@ func (c *NodeGroupsAddNodesCall) Header() http.Header { func (c *NodeGroupsAddNodesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -113758,7 +114590,7 @@ func (c *NodeGroupsAggregatedListCall) Header() http.Header { func (c *NodeGroupsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -113969,7 +114801,7 @@ func (c *NodeGroupsDeleteCall) Header() http.Header { func (c *NodeGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -114147,7 +114979,7 @@ func (c *NodeGroupsDeleteNodesCall) Header() http.Header { func (c *NodeGroupsDeleteNodesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -114325,7 +115157,7 @@ func (c *NodeGroupsGetCall) Header() http.Header { func (c *NodeGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -114500,7 +115332,7 @@ func (c *NodeGroupsGetIamPolicyCall) Header() http.Header { func (c *NodeGroupsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -114683,7 +115515,7 @@ func (c *NodeGroupsInsertCall) Header() http.Header { func (c *NodeGroupsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -114932,7 +115764,7 @@ func (c *NodeGroupsListCall) Header() http.Header { func (c *NodeGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -115202,7 +116034,7 @@ func (c *NodeGroupsListNodesCall) Header() http.Header { func (c *NodeGroupsListNodesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -115425,7 +116257,7 @@ func (c *NodeGroupsPatchCall) Header() http.Header { func (c *NodeGroupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -115593,7 +116425,7 @@ func (c *NodeGroupsSetIamPolicyCall) Header() http.Header { func (c *NodeGroupsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -115774,7 +116606,7 @@ func (c *NodeGroupsSetNodeTemplateCall) Header() http.Header { func (c *NodeGroupsSetNodeTemplateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -115942,7 +116774,7 @@ func (c *NodeGroupsTestIamPermissionsCall) Header() http.Header { func (c *NodeGroupsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -116197,7 +117029,7 @@ func (c *NodeTemplatesAggregatedListCall) Header() http.Header { func (c *NodeTemplatesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -116408,7 +117240,7 @@ func (c *NodeTemplatesDeleteCall) Header() http.Header { func (c *NodeTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -116577,7 +117409,7 @@ func (c *NodeTemplatesGetCall) Header() http.Header { func (c *NodeTemplatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -116752,7 +117584,7 @@ func (c *NodeTemplatesGetIamPolicyCall) Header() http.Header { func (c *NodeTemplatesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -116934,7 +117766,7 @@ func (c *NodeTemplatesInsertCall) Header() http.Header { func (c *NodeTemplatesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -117174,7 +118006,7 @@ func (c *NodeTemplatesListCall) Header() http.Header { func (c *NodeTemplatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -117373,7 +118205,7 @@ func (c *NodeTemplatesSetIamPolicyCall) Header() http.Header { func (c *NodeTemplatesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -117536,7 +118368,7 @@ func (c *NodeTemplatesTestIamPermissionsCall) Header() http.Header { func (c *NodeTemplatesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -117791,7 +118623,7 @@ func (c *NodeTypesAggregatedListCall) Header() http.Header { func (c *NodeTypesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -117995,7 +118827,7 @@ func (c *NodeTypesGetCall) Header() http.Header { func (c *NodeTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -118235,7 +119067,7 @@ func (c *NodeTypesListCall) Header() http.Header { func (c *NodeTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -118406,7 +119238,7 @@ func (r *OrganizationSecurityPoliciesService) AddAssociation(securityPolicy stri // ReplaceExistingAssociation sets the optional parameter // "replaceExistingAssociation": Indicates whether or not to replace it // if an association of the attachment already exists. This is false by -// default, in which case an error will be returned if an assocation +// default, in which case an error will be returned if an association // already exists. func (c *OrganizationSecurityPoliciesAddAssociationCall) ReplaceExistingAssociation(replaceExistingAssociation bool) *OrganizationSecurityPoliciesAddAssociationCall { c.urlParams_.Set("replaceExistingAssociation", fmt.Sprint(replaceExistingAssociation)) @@ -118459,7 +119291,7 @@ func (c *OrganizationSecurityPoliciesAddAssociationCall) Header() http.Header { func (c *OrganizationSecurityPoliciesAddAssociationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -118531,7 +119363,7 @@ func (c *OrganizationSecurityPoliciesAddAssociationCall) Do(opts ...googleapi.Ca // ], // "parameters": { // "replaceExistingAssociation": { - // "description": "Indicates whether or not to replace it if an association of the attachment already exists. This is false by default, in which case an error will be returned if an assocation already exists.", + // "description": "Indicates whether or not to replace it if an association of the attachment already exists. This is false by default, in which case an error will be returned if an association already exists.", // "location": "query", // "type": "boolean" // }, @@ -118628,7 +119460,7 @@ func (c *OrganizationSecurityPoliciesAddRuleCall) Header() http.Header { func (c *OrganizationSecurityPoliciesAddRuleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -118797,7 +119629,7 @@ func (c *OrganizationSecurityPoliciesCopyRulesCall) Header() http.Header { func (c *OrganizationSecurityPoliciesCopyRulesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -118956,7 +119788,7 @@ func (c *OrganizationSecurityPoliciesDeleteCall) Header() http.Header { func (c *OrganizationSecurityPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -119103,7 +119935,7 @@ func (c *OrganizationSecurityPoliciesGetCall) Header() http.Header { func (c *OrganizationSecurityPoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -119255,7 +120087,7 @@ func (c *OrganizationSecurityPoliciesGetAssociationCall) Header() http.Header { func (c *OrganizationSecurityPoliciesGetAssociationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -119412,7 +120244,7 @@ func (c *OrganizationSecurityPoliciesGetRuleCall) Header() http.Header { func (c *OrganizationSecurityPoliciesGetRuleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -119581,7 +120413,7 @@ func (c *OrganizationSecurityPoliciesInsertCall) Header() http.Header { func (c *OrganizationSecurityPoliciesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -119807,7 +120639,7 @@ func (c *OrganizationSecurityPoliciesListCall) Header() http.Header { func (c *OrganizationSecurityPoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -120000,7 +120832,7 @@ func (c *OrganizationSecurityPoliciesListAssociationsCall) Header() http.Header func (c *OrganizationSecurityPoliciesListAssociationsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -120153,7 +120985,7 @@ func (c *OrganizationSecurityPoliciesMoveCall) Header() http.Header { func (c *OrganizationSecurityPoliciesMoveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -120315,7 +121147,7 @@ func (c *OrganizationSecurityPoliciesPatchCall) Header() http.Header { func (c *OrganizationSecurityPoliciesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -120486,7 +121318,7 @@ func (c *OrganizationSecurityPoliciesPatchRuleCall) Header() http.Header { func (c *OrganizationSecurityPoliciesPatchRuleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -120662,7 +121494,7 @@ func (c *OrganizationSecurityPoliciesRemoveAssociationCall) Header() http.Header func (c *OrganizationSecurityPoliciesRemoveAssociationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -120828,7 +121660,7 @@ func (c *OrganizationSecurityPoliciesRemoveRuleCall) Header() http.Header { func (c *OrganizationSecurityPoliciesRemoveRuleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -121067,7 +121899,7 @@ func (c *PacketMirroringsAggregatedListCall) Header() http.Header { func (c *PacketMirroringsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -121278,7 +122110,7 @@ func (c *PacketMirroringsDeleteCall) Header() http.Header { func (c *PacketMirroringsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -121446,7 +122278,7 @@ func (c *PacketMirroringsGetCall) Header() http.Header { func (c *PacketMirroringsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -121622,7 +122454,7 @@ func (c *PacketMirroringsInsertCall) Header() http.Header { func (c *PacketMirroringsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -121862,7 +122694,7 @@ func (c *PacketMirroringsListCall) Header() http.Header { func (c *PacketMirroringsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -122081,7 +122913,7 @@ func (c *PacketMirroringsPatchCall) Header() http.Header { func (c *PacketMirroringsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -122249,7 +123081,7 @@ func (c *PacketMirroringsTestIamPermissionsCall) Header() http.Header { func (c *PacketMirroringsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -122425,7 +123257,7 @@ func (c *ProjectsDisableXpnHostCall) Header() http.Header { func (c *ProjectsDisableXpnHostCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -122582,7 +123414,7 @@ func (c *ProjectsDisableXpnResourceCall) Header() http.Header { func (c *ProjectsDisableXpnResourceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -122744,7 +123576,7 @@ func (c *ProjectsEnableXpnHostCall) Header() http.Header { func (c *ProjectsEnableXpnHostCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -122902,7 +123734,7 @@ func (c *ProjectsEnableXpnResourceCall) Header() http.Header { func (c *ProjectsEnableXpnResourceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -123057,7 +123889,7 @@ func (c *ProjectsGetCall) Header() http.Header { func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -123203,7 +124035,7 @@ func (c *ProjectsGetXpnHostCall) Header() http.Header { func (c *ProjectsGetXpnHostCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -123422,7 +124254,7 @@ func (c *ProjectsGetXpnResourcesCall) Header() http.Header { func (c *ProjectsGetXpnResourcesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -123681,7 +124513,7 @@ func (c *ProjectsListXpnHostsCall) Header() http.Header { func (c *ProjectsListXpnHostsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -123889,7 +124721,7 @@ func (c *ProjectsMoveDiskCall) Header() http.Header { func (c *ProjectsMoveDiskCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -124054,7 +124886,7 @@ func (c *ProjectsMoveInstanceCall) Header() http.Header { func (c *ProjectsMoveInstanceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -124220,7 +125052,7 @@ func (c *ProjectsSetCommonInstanceMetadataCall) Header() http.Header { func (c *ProjectsSetCommonInstanceMetadataCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -124387,7 +125219,7 @@ func (c *ProjectsSetDefaultNetworkTierCall) Header() http.Header { func (c *ProjectsSetDefaultNetworkTierCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -124553,7 +125385,7 @@ func (c *ProjectsSetDefaultServiceAccountCall) Header() http.Header { func (c *ProjectsSetDefaultServiceAccountCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -124721,7 +125553,7 @@ func (c *ProjectsSetUsageExportBucketCall) Header() http.Header { func (c *ProjectsSetUsageExportBucketCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -124888,7 +125720,7 @@ func (c *PublicAdvertisedPrefixesDeleteCall) Header() http.Header { func (c *PublicAdvertisedPrefixesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -125045,7 +125877,7 @@ func (c *PublicAdvertisedPrefixesGetCall) Header() http.Header { func (c *PublicAdvertisedPrefixesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -125210,7 +126042,7 @@ func (c *PublicAdvertisedPrefixesInsertCall) Header() http.Header { func (c *PublicAdvertisedPrefixesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -125438,7 +126270,7 @@ func (c *PublicAdvertisedPrefixesListCall) Header() http.Header { func (c *PublicAdvertisedPrefixesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -125646,7 +126478,7 @@ func (c *PublicAdvertisedPrefixesPatchCall) Header() http.Header { func (c *PublicAdvertisedPrefixesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -125897,7 +126729,7 @@ func (c *PublicDelegatedPrefixesAggregatedListCall) Header() http.Header { func (c *PublicDelegatedPrefixesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -126110,7 +126942,7 @@ func (c *PublicDelegatedPrefixesDeleteCall) Header() http.Header { func (c *PublicDelegatedPrefixesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -126279,7 +127111,7 @@ func (c *PublicDelegatedPrefixesGetCall) Header() http.Header { func (c *PublicDelegatedPrefixesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -126456,7 +127288,7 @@ func (c *PublicDelegatedPrefixesInsertCall) Header() http.Header { func (c *PublicDelegatedPrefixesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -126696,7 +127528,7 @@ func (c *PublicDelegatedPrefixesListCall) Header() http.Header { func (c *PublicDelegatedPrefixesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -126915,7 +127747,7 @@ func (c *PublicDelegatedPrefixesPatchCall) Header() http.Header { func (c *PublicDelegatedPrefixesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -127099,7 +127931,7 @@ func (c *RegionAutoscalersDeleteCall) Header() http.Header { func (c *RegionAutoscalersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -127267,7 +128099,7 @@ func (c *RegionAutoscalersGetCall) Header() http.Header { func (c *RegionAutoscalersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -127443,7 +128275,7 @@ func (c *RegionAutoscalersInsertCall) Header() http.Header { func (c *RegionAutoscalersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -127683,7 +128515,7 @@ func (c *RegionAutoscalersListCall) Header() http.Header { func (c *RegionAutoscalersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -127907,7 +128739,7 @@ func (c *RegionAutoscalersPatchCall) Header() http.Header { func (c *RegionAutoscalersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -128072,7 +128904,7 @@ func (c *RegionAutoscalersTestIamPermissionsCall) Header() http.Header { func (c *RegionAutoscalersTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -128260,7 +129092,7 @@ func (c *RegionAutoscalersUpdateCall) Header() http.Header { func (c *RegionAutoscalersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -128441,7 +129273,7 @@ func (c *RegionBackendServicesDeleteCall) Header() http.Header { func (c *RegionBackendServicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -128609,7 +129441,7 @@ func (c *RegionBackendServicesGetCall) Header() http.Header { func (c *RegionBackendServicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -128768,7 +129600,7 @@ func (c *RegionBackendServicesGetHealthCall) Header() http.Header { func (c *RegionBackendServicesGetHealthCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -128949,7 +129781,7 @@ func (c *RegionBackendServicesInsertCall) Header() http.Header { func (c *RegionBackendServicesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -129189,7 +130021,7 @@ func (c *RegionBackendServicesListCall) Header() http.Header { func (c *RegionBackendServicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -129409,7 +130241,7 @@ func (c *RegionBackendServicesPatchCall) Header() http.Header { func (c *RegionBackendServicesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -129577,7 +130409,7 @@ func (c *RegionBackendServicesTestIamPermissionsCall) Header() http.Header { func (c *RegionBackendServicesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -129761,7 +130593,7 @@ func (c *RegionBackendServicesUpdateCall) Header() http.Header { func (c *RegionBackendServicesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -130020,7 +130852,7 @@ func (c *RegionCommitmentsAggregatedListCall) Header() http.Header { func (c *RegionCommitmentsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -130224,7 +131056,7 @@ func (c *RegionCommitmentsGetCall) Header() http.Header { func (c *RegionCommitmentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -130400,7 +131232,7 @@ func (c *RegionCommitmentsInsertCall) Header() http.Header { func (c *RegionCommitmentsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -130640,7 +131472,7 @@ func (c *RegionCommitmentsListCall) Header() http.Header { func (c *RegionCommitmentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -130839,7 +131671,7 @@ func (c *RegionCommitmentsTestIamPermissionsCall) Header() http.Header { func (c *RegionCommitmentsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -131022,7 +131854,7 @@ func (c *RegionCommitmentsUpdateReservationsCall) Header() http.Header { func (c *RegionCommitmentsUpdateReservationsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -131199,7 +132031,7 @@ func (c *RegionDiskTypesGetCall) Header() http.Header { func (c *RegionDiskTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -131439,7 +132271,7 @@ func (c *RegionDiskTypesListCall) Header() http.Header { func (c *RegionDiskTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -131658,7 +132490,7 @@ func (c *RegionDisksAddResourcePoliciesCall) Header() http.Header { func (c *RegionDisksAddResourcePoliciesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -131853,7 +132685,7 @@ func (c *RegionDisksCreateSnapshotCall) Header() http.Header { func (c *RegionDisksCreateSnapshotCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -132045,7 +132877,7 @@ func (c *RegionDisksDeleteCall) Header() http.Header { func (c *RegionDisksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -132212,7 +133044,7 @@ func (c *RegionDisksGetCall) Header() http.Header { func (c *RegionDisksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -132387,7 +133219,7 @@ func (c *RegionDisksGetIamPolicyCall) Header() http.Header { func (c *RegionDisksGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -132576,7 +133408,7 @@ func (c *RegionDisksInsertCall) Header() http.Header { func (c *RegionDisksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -132821,7 +133653,7 @@ func (c *RegionDisksListCall) Header() http.Header { func (c *RegionDisksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -133039,7 +133871,7 @@ func (c *RegionDisksRemoveResourcePoliciesCall) Header() http.Header { func (c *RegionDisksRemoveResourcePoliciesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -133225,7 +134057,7 @@ func (c *RegionDisksResizeCall) Header() http.Header { func (c *RegionDisksResizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -133393,7 +134225,7 @@ func (c *RegionDisksSetIamPolicyCall) Header() http.Header { func (c *RegionDisksSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -133574,7 +134406,7 @@ func (c *RegionDisksSetLabelsCall) Header() http.Header { func (c *RegionDisksSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -133742,7 +134574,7 @@ func (c *RegionDisksTestIamPermissionsCall) Header() http.Header { func (c *RegionDisksTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -133922,7 +134754,7 @@ func (c *RegionHealthCheckServicesDeleteCall) Header() http.Header { func (c *RegionHealthCheckServicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -134089,7 +134921,7 @@ func (c *RegionHealthCheckServicesGetCall) Header() http.Header { func (c *RegionHealthCheckServicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -134264,7 +135096,7 @@ func (c *RegionHealthCheckServicesInsertCall) Header() http.Header { func (c *RegionHealthCheckServicesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -134504,7 +135336,7 @@ func (c *RegionHealthCheckServicesListCall) Header() http.Header { func (c *RegionHealthCheckServicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -134723,7 +135555,7 @@ func (c *RegionHealthCheckServicesPatchCall) Header() http.Header { func (c *RegionHealthCheckServicesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -134890,7 +135722,7 @@ func (c *RegionHealthCheckServicesTestIamPermissionsCall) Header() http.Header { func (c *RegionHealthCheckServicesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -135070,7 +135902,7 @@ func (c *RegionHealthChecksDeleteCall) Header() http.Header { func (c *RegionHealthChecksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -135239,7 +136071,7 @@ func (c *RegionHealthChecksGetCall) Header() http.Header { func (c *RegionHealthChecksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -135415,7 +136247,7 @@ func (c *RegionHealthChecksInsertCall) Header() http.Header { func (c *RegionHealthChecksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -135655,7 +136487,7 @@ func (c *RegionHealthChecksListCall) Header() http.Header { func (c *RegionHealthChecksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -135874,7 +136706,7 @@ func (c *RegionHealthChecksPatchCall) Header() http.Header { func (c *RegionHealthChecksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -136042,7 +136874,7 @@ func (c *RegionHealthChecksTestIamPermissionsCall) Header() http.Header { func (c *RegionHealthChecksTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -136225,7 +137057,7 @@ func (c *RegionHealthChecksUpdateCall) Header() http.Header { func (c *RegionHealthChecksUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -136416,7 +137248,7 @@ func (c *RegionInPlaceSnapshotsDeleteCall) Header() http.Header { func (c *RegionInPlaceSnapshotsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -136585,7 +137417,7 @@ func (c *RegionInPlaceSnapshotsGetCall) Header() http.Header { func (c *RegionInPlaceSnapshotsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -136760,7 +137592,7 @@ func (c *RegionInPlaceSnapshotsGetIamPolicyCall) Header() http.Header { func (c *RegionInPlaceSnapshotsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -136941,7 +137773,7 @@ func (c *RegionInPlaceSnapshotsInsertCall) Header() http.Header { func (c *RegionInPlaceSnapshotsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -137181,7 +138013,7 @@ func (c *RegionInPlaceSnapshotsListCall) Header() http.Header { func (c *RegionInPlaceSnapshotsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -137380,7 +138212,7 @@ func (c *RegionInPlaceSnapshotsSetIamPolicyCall) Header() http.Header { func (c *RegionInPlaceSnapshotsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -137563,7 +138395,7 @@ func (c *RegionInPlaceSnapshotsSetLabelsCall) Header() http.Header { func (c *RegionInPlaceSnapshotsSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -137731,7 +138563,7 @@ func (c *RegionInPlaceSnapshotsTestIamPermissionsCall) Header() http.Header { func (c *RegionInPlaceSnapshotsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -137929,7 +138761,7 @@ func (c *RegionInstanceGroupManagersAbandonInstancesCall) Header() http.Header { func (c *RegionInstanceGroupManagersAbandonInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -138095,7 +138927,7 @@ func (c *RegionInstanceGroupManagersApplyUpdatesToInstancesCall) Header() http.H func (c *RegionInstanceGroupManagersApplyUpdatesToInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -138278,7 +139110,7 @@ func (c *RegionInstanceGroupManagersCreateInstancesCall) Header() http.Header { func (c *RegionInstanceGroupManagersCreateInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -138461,7 +139293,7 @@ func (c *RegionInstanceGroupManagersDeleteCall) Header() http.Header { func (c *RegionInstanceGroupManagersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -138653,7 +139485,7 @@ func (c *RegionInstanceGroupManagersDeleteInstancesCall) Header() http.Header { func (c *RegionInstanceGroupManagersDeleteInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -138819,7 +139651,7 @@ func (c *RegionInstanceGroupManagersDeletePerInstanceConfigsCall) Header() http. func (c *RegionInstanceGroupManagersDeletePerInstanceConfigsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -138989,7 +139821,7 @@ func (c *RegionInstanceGroupManagersGetCall) Header() http.Header { func (c *RegionInstanceGroupManagersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -139170,7 +140002,7 @@ func (c *RegionInstanceGroupManagersInsertCall) Header() http.Header { func (c *RegionInstanceGroupManagersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -139409,7 +140241,7 @@ func (c *RegionInstanceGroupManagersListCall) Header() http.Header { func (c *RegionInstanceGroupManagersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -139691,7 +140523,7 @@ func (c *RegionInstanceGroupManagersListErrorsCall) Header() http.Header { func (c *RegionInstanceGroupManagersListErrorsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -139973,7 +140805,7 @@ func (c *RegionInstanceGroupManagersListManagedInstancesCall) Header() http.Head func (c *RegionInstanceGroupManagersListManagedInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -140251,7 +141083,7 @@ func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) Header() http.He func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -140480,7 +141312,7 @@ func (c *RegionInstanceGroupManagersPatchCall) Header() http.Header { func (c *RegionInstanceGroupManagersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -140667,7 +141499,7 @@ func (c *RegionInstanceGroupManagersPatchPerInstanceConfigsCall) Header() http.H func (c *RegionInstanceGroupManagersPatchPerInstanceConfigsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -140865,7 +141697,7 @@ func (c *RegionInstanceGroupManagersRecreateInstancesCall) Header() http.Header func (c *RegionInstanceGroupManagersRecreateInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -141060,7 +141892,7 @@ func (c *RegionInstanceGroupManagersResizeCall) Header() http.Header { func (c *RegionInstanceGroupManagersResizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -141247,7 +142079,7 @@ func (c *RegionInstanceGroupManagersSetAutoHealingPoliciesCall) Header() http.He func (c *RegionInstanceGroupManagersSetAutoHealingPoliciesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -141433,7 +142265,7 @@ func (c *RegionInstanceGroupManagersSetInstanceTemplateCall) Header() http.Heade func (c *RegionInstanceGroupManagersSetInstanceTemplateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -141619,7 +142451,7 @@ func (c *RegionInstanceGroupManagersSetTargetPoolsCall) Header() http.Header { func (c *RegionInstanceGroupManagersSetTargetPoolsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -141785,7 +142617,7 @@ func (c *RegionInstanceGroupManagersTestIamPermissionsCall) Header() http.Header func (c *RegionInstanceGroupManagersTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -141971,7 +142803,7 @@ func (c *RegionInstanceGroupManagersUpdateCall) Header() http.Header { func (c *RegionInstanceGroupManagersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -142158,7 +142990,7 @@ func (c *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) Header() http. func (c *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -142332,7 +143164,7 @@ func (c *RegionInstanceGroupsGetCall) Header() http.Header { func (c *RegionInstanceGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -142570,7 +143402,7 @@ func (c *RegionInstanceGroupsListCall) Header() http.Header { func (c *RegionInstanceGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -142845,7 +143677,7 @@ func (c *RegionInstanceGroupsListInstancesCall) Header() http.Header { func (c *RegionInstanceGroupsListInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -143076,7 +143908,7 @@ func (c *RegionInstanceGroupsSetNamedPortsCall) Header() http.Header { func (c *RegionInstanceGroupsSetNamedPortsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -143242,7 +144074,7 @@ func (c *RegionInstanceGroupsTestIamPermissionsCall) Header() http.Header { func (c *RegionInstanceGroupsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -143423,7 +144255,7 @@ func (c *RegionInstancesBulkInsertCall) Header() http.Header { func (c *RegionInstancesBulkInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -143605,7 +144437,7 @@ func (c *RegionInstantSnapshotsDeleteCall) Header() http.Header { func (c *RegionInstantSnapshotsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -143714,6 +144546,193 @@ func (c *RegionInstantSnapshotsDeleteCall) Do(opts ...googleapi.CallOption) (*Op } +// method id "compute.regionInstantSnapshots.export": + +type RegionInstantSnapshotsExportCall struct { + s *Service + project string + region string + instantSnapshot string + instantsnapshotexportparams *InstantSnapshotExportParams + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Export: Export the changed blocks between two instant snapshots to a +// customer?s bucket in the user specified format. +func (r *RegionInstantSnapshotsService) Export(project string, region string, instantSnapshot string, instantsnapshotexportparams *InstantSnapshotExportParams) *RegionInstantSnapshotsExportCall { + c := &RegionInstantSnapshotsExportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.instantSnapshot = instantSnapshot + c.instantsnapshotexportparams = instantsnapshotexportparams + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. +// +// For example, consider a situation where you make an initial request +// and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the +// same request ID was received, and if so, will ignore the second +// request. This prevents clients from accidentally creating duplicate +// commitments. +// +// The request ID must be a valid UUID with the exception that zero UUID +// is not supported (00000000-0000-0000-0000-000000000000). +func (c *RegionInstantSnapshotsExportCall) RequestId(requestId string) *RegionInstantSnapshotsExportCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *RegionInstantSnapshotsExportCall) Fields(s ...googleapi.Field) *RegionInstantSnapshotsExportCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *RegionInstantSnapshotsExportCall) Context(ctx context.Context) *RegionInstantSnapshotsExportCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *RegionInstantSnapshotsExportCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionInstantSnapshotsExportCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.instantsnapshotexportparams) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}/export") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + "instantSnapshot": c.instantSnapshot, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.regionInstantSnapshots.export" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *RegionInstantSnapshotsExportCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Export the changed blocks between two instant snapshots to a customer?s bucket in the user specified format.", + // "httpMethod": "POST", + // "id": "compute.regionInstantSnapshots.export", + // "parameterOrder": [ + // "project", + // "region", + // "instantSnapshot" + // ], + // "parameters": { + // "instantSnapshot": { + // "description": "Name of the instant snapshot to export.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + // "required": true, + // "type": "string" + // }, + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "region": { + // "description": "The name of the zone for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.\n\nFor example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.\n\nThe request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}/export", + // "request": { + // "$ref": "InstantSnapshotExportParams" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + // method id "compute.regionInstantSnapshots.get": type RegionInstantSnapshotsGetCall struct { @@ -143774,7 +144793,7 @@ func (c *RegionInstantSnapshotsGetCall) Header() http.Header { func (c *RegionInstantSnapshotsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -143949,7 +144968,7 @@ func (c *RegionInstantSnapshotsGetIamPolicyCall) Header() http.Header { func (c *RegionInstantSnapshotsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -144130,7 +145149,7 @@ func (c *RegionInstantSnapshotsInsertCall) Header() http.Header { func (c *RegionInstantSnapshotsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -144370,7 +145389,7 @@ func (c *RegionInstantSnapshotsListCall) Header() http.Header { func (c *RegionInstantSnapshotsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -144569,7 +145588,7 @@ func (c *RegionInstantSnapshotsSetIamPolicyCall) Header() http.Header { func (c *RegionInstantSnapshotsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -144752,7 +145771,7 @@ func (c *RegionInstantSnapshotsSetLabelsCall) Header() http.Header { func (c *RegionInstantSnapshotsSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -144920,7 +145939,7 @@ func (c *RegionInstantSnapshotsTestIamPermissionsCall) Header() http.Header { func (c *RegionInstantSnapshotsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -145102,7 +146121,7 @@ func (c *RegionNetworkEndpointGroupsDeleteCall) Header() http.Header { func (c *RegionNetworkEndpointGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -145269,7 +146288,7 @@ func (c *RegionNetworkEndpointGroupsGetCall) Header() http.Header { func (c *RegionNetworkEndpointGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -145443,7 +146462,7 @@ func (c *RegionNetworkEndpointGroupsInsertCall) Header() http.Header { func (c *RegionNetworkEndpointGroupsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -145682,7 +146701,7 @@ func (c *RegionNetworkEndpointGroupsListCall) Header() http.Header { func (c *RegionNetworkEndpointGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -145897,7 +146916,7 @@ func (c *RegionNotificationEndpointsDeleteCall) Header() http.Header { func (c *RegionNotificationEndpointsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -146066,7 +147085,7 @@ func (c *RegionNotificationEndpointsGetCall) Header() http.Header { func (c *RegionNotificationEndpointsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -146242,7 +147261,7 @@ func (c *RegionNotificationEndpointsInsertCall) Header() http.Header { func (c *RegionNotificationEndpointsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -146482,7 +147501,7 @@ func (c *RegionNotificationEndpointsListCall) Header() http.Header { func (c *RegionNotificationEndpointsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -146681,7 +147700,7 @@ func (c *RegionNotificationEndpointsTestIamPermissionsCall) Header() http.Header func (c *RegionNotificationEndpointsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -146843,7 +147862,7 @@ func (c *RegionOperationsDeleteCall) Header() http.Header { func (c *RegionOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -146979,7 +147998,7 @@ func (c *RegionOperationsGetCall) Header() http.Header { func (c *RegionOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -147220,7 +148239,7 @@ func (c *RegionOperationsListCall) Header() http.Header { func (c *RegionOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -147429,7 +148448,7 @@ func (c *RegionOperationsWaitCall) Header() http.Header { func (c *RegionOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -147601,7 +148620,7 @@ func (c *RegionSslCertificatesDeleteCall) Header() http.Header { func (c *RegionSslCertificatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -147771,7 +148790,7 @@ func (c *RegionSslCertificatesGetCall) Header() http.Header { func (c *RegionSslCertificatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -147947,7 +148966,7 @@ func (c *RegionSslCertificatesInsertCall) Header() http.Header { func (c *RegionSslCertificatesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -148187,7 +149206,7 @@ func (c *RegionSslCertificatesListCall) Header() http.Header { func (c *RegionSslCertificatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -148386,7 +149405,7 @@ func (c *RegionSslCertificatesTestIamPermissionsCall) Header() http.Header { func (c *RegionSslCertificatesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -148566,7 +149585,7 @@ func (c *RegionTargetHttpProxiesDeleteCall) Header() http.Header { func (c *RegionTargetHttpProxiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -148736,7 +149755,7 @@ func (c *RegionTargetHttpProxiesGetCall) Header() http.Header { func (c *RegionTargetHttpProxiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -148912,7 +149931,7 @@ func (c *RegionTargetHttpProxiesInsertCall) Header() http.Header { func (c *RegionTargetHttpProxiesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -149152,7 +150171,7 @@ func (c *RegionTargetHttpProxiesListCall) Header() http.Header { func (c *RegionTargetHttpProxiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -149369,7 +150388,7 @@ func (c *RegionTargetHttpProxiesSetUrlMapCall) Header() http.Header { func (c *RegionTargetHttpProxiesSetUrlMapCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -149537,7 +150556,7 @@ func (c *RegionTargetHttpProxiesTestIamPermissionsCall) Header() http.Header { func (c *RegionTargetHttpProxiesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -149717,7 +150736,7 @@ func (c *RegionTargetHttpsProxiesDeleteCall) Header() http.Header { func (c *RegionTargetHttpsProxiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -149887,7 +150906,7 @@ func (c *RegionTargetHttpsProxiesGetCall) Header() http.Header { func (c *RegionTargetHttpsProxiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -150063,7 +151082,7 @@ func (c *RegionTargetHttpsProxiesInsertCall) Header() http.Header { func (c *RegionTargetHttpsProxiesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -150303,7 +151322,7 @@ func (c *RegionTargetHttpsProxiesListCall) Header() http.Header { func (c *RegionTargetHttpsProxiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -150520,7 +151539,7 @@ func (c *RegionTargetHttpsProxiesSetSslCertificatesCall) Header() http.Header { func (c *RegionTargetHttpsProxiesSetSslCertificatesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -150706,7 +151725,7 @@ func (c *RegionTargetHttpsProxiesSetUrlMapCall) Header() http.Header { func (c *RegionTargetHttpsProxiesSetUrlMapCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -150874,7 +151893,7 @@ func (c *RegionTargetHttpsProxiesTestIamPermissionsCall) Header() http.Header { func (c *RegionTargetHttpsProxiesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -151042,7 +152061,7 @@ func (c *RegionUrlMapsDeleteCall) Header() http.Header { func (c *RegionUrlMapsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -151211,7 +152230,7 @@ func (c *RegionUrlMapsGetCall) Header() http.Header { func (c *RegionUrlMapsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -151375,7 +152394,7 @@ func (c *RegionUrlMapsInsertCall) Header() http.Header { func (c *RegionUrlMapsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -151498,6 +152517,9 @@ type RegionUrlMapsInvalidateCacheCall struct { // InvalidateCache: Initiates a cache invalidation operation, // invalidating the specified path, scoped to the specified UrlMap. +// +// For more information, see [Invalidating cached +// content](/cdn/docs/invalidating-cached-content). func (r *RegionUrlMapsService) InvalidateCache(project string, region string, urlMap string, cacheinvalidationrule *CacheInvalidationRule) *RegionUrlMapsInvalidateCacheCall { c := &RegionUrlMapsInvalidateCacheCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -151541,7 +152563,7 @@ func (c *RegionUrlMapsInvalidateCacheCall) Header() http.Header { func (c *RegionUrlMapsInvalidateCacheCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -151607,7 +152629,7 @@ func (c *RegionUrlMapsInvalidateCacheCall) Do(opts ...googleapi.CallOption) (*Op } return ret, nil // { - // "description": "Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap.", + // "description": "Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap.\n\nFor more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content).", // "httpMethod": "POST", // "id": "compute.regionUrlMaps.invalidateCache", // "parameterOrder": [ @@ -151790,7 +152812,7 @@ func (c *RegionUrlMapsListCall) Header() http.Header { func (c *RegionUrlMapsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -151997,7 +153019,7 @@ func (c *RegionUrlMapsPatchCall) Header() http.Header { func (c *RegionUrlMapsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -152165,7 +153187,7 @@ func (c *RegionUrlMapsTestIamPermissionsCall) Header() http.Header { func (c *RegionUrlMapsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -152336,7 +153358,7 @@ func (c *RegionUrlMapsUpdateCall) Header() http.Header { func (c *RegionUrlMapsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -152505,7 +153527,7 @@ func (c *RegionUrlMapsValidateCall) Header() http.Header { func (c *RegionUrlMapsValidateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -152676,7 +153698,7 @@ func (c *RegionsGetCall) Header() http.Header { func (c *RegionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -152906,7 +153928,7 @@ func (c *RegionsListCall) Header() http.Header { func (c *RegionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -153187,7 +154209,7 @@ func (c *ReservationsAggregatedListCall) Header() http.Header { func (c *ReservationsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -153398,7 +154420,7 @@ func (c *ReservationsDeleteCall) Header() http.Header { func (c *ReservationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -153566,7 +154588,7 @@ func (c *ReservationsGetCall) Header() http.Header { func (c *ReservationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -153741,7 +154763,7 @@ func (c *ReservationsGetIamPolicyCall) Header() http.Header { func (c *ReservationsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -153923,7 +154945,7 @@ func (c *ReservationsInsertCall) Header() http.Header { func (c *ReservationsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -154163,7 +155185,7 @@ func (c *ReservationsListCall) Header() http.Header { func (c *ReservationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -154382,7 +155404,7 @@ func (c *ReservationsResizeCall) Header() http.Header { func (c *ReservationsResizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -154550,7 +155572,7 @@ func (c *ReservationsSetIamPolicyCall) Header() http.Header { func (c *ReservationsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -154713,7 +155735,7 @@ func (c *ReservationsTestIamPermissionsCall) Header() http.Header { func (c *ReservationsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -154968,7 +155990,7 @@ func (c *ResourcePoliciesAggregatedListCall) Header() http.Header { func (c *ResourcePoliciesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -155179,7 +156201,7 @@ func (c *ResourcePoliciesDeleteCall) Header() http.Header { func (c *ResourcePoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -155347,7 +156369,7 @@ func (c *ResourcePoliciesGetCall) Header() http.Header { func (c *ResourcePoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -155522,7 +156544,7 @@ func (c *ResourcePoliciesGetIamPolicyCall) Header() http.Header { func (c *ResourcePoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -155703,7 +156725,7 @@ func (c *ResourcePoliciesInsertCall) Header() http.Header { func (c *ResourcePoliciesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -155943,7 +156965,7 @@ func (c *ResourcePoliciesListCall) Header() http.Header { func (c *ResourcePoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -156142,7 +157164,7 @@ func (c *ResourcePoliciesSetIamPolicyCall) Header() http.Header { func (c *ResourcePoliciesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -156305,7 +157327,7 @@ func (c *ResourcePoliciesTestIamPermissionsCall) Header() http.Header { func (c *ResourcePoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -156560,7 +157582,7 @@ func (c *RoutersAggregatedListCall) Header() http.Header { func (c *RoutersAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -156771,7 +157793,7 @@ func (c *RoutersDeleteCall) Header() http.Header { func (c *RoutersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -156940,7 +157962,7 @@ func (c *RoutersGetCall) Header() http.Header { func (c *RoutersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -157191,7 +158213,7 @@ func (c *RoutersGetNatMappingInfoCall) Header() http.Header { func (c *RoutersGetNatMappingInfoCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -157413,7 +158435,7 @@ func (c *RoutersGetRouterStatusCall) Header() http.Header { func (c *RoutersGetRouterStatusCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -157589,7 +158611,7 @@ func (c *RoutersInsertCall) Header() http.Header { func (c *RoutersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -157829,7 +158851,7 @@ func (c *RoutersListCall) Header() http.Header { func (c *RoutersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -158048,7 +159070,7 @@ func (c *RoutersPatchCall) Header() http.Header { func (c *RoutersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -158217,7 +159239,7 @@ func (c *RoutersPreviewCall) Header() http.Header { func (c *RoutersPreviewCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -158381,7 +159403,7 @@ func (c *RoutersTestIamPermissionsCall) Header() http.Header { func (c *RoutersTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -158567,7 +159589,7 @@ func (c *RoutersUpdateCall) Header() http.Header { func (c *RoutersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -158750,7 +159772,7 @@ func (c *RoutesDeleteCall) Header() http.Header { func (c *RoutesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -158909,7 +159931,7 @@ func (c *RoutesGetCall) Header() http.Header { func (c *RoutesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -159075,7 +160097,7 @@ func (c *RoutesInsertCall) Header() http.Header { func (c *RoutesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -159305,7 +160327,7 @@ func (c *RoutesListCall) Header() http.Header { func (c *RoutesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -159493,7 +160515,7 @@ func (c *RoutesTestIamPermissionsCall) Header() http.Header { func (c *RoutesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -159652,7 +160674,7 @@ func (c *SecurityPoliciesAddRuleCall) Header() http.Header { func (c *SecurityPoliciesAddRuleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -159825,7 +160847,7 @@ func (c *SecurityPoliciesDeleteCall) Header() http.Header { func (c *SecurityPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -159983,7 +161005,7 @@ func (c *SecurityPoliciesGetCall) Header() http.Header { func (c *SecurityPoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -160146,7 +161168,7 @@ func (c *SecurityPoliciesGetRuleCall) Header() http.Header { func (c *SecurityPoliciesGetRuleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -160324,7 +161346,7 @@ func (c *SecurityPoliciesInsertCall) Header() http.Header { func (c *SecurityPoliciesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -160558,7 +161580,7 @@ func (c *SecurityPoliciesListCall) Header() http.Header { func (c *SecurityPoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -160827,7 +161849,7 @@ func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) Header() http.Head func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -161015,7 +162037,7 @@ func (c *SecurityPoliciesPatchCall) Header() http.Header { func (c *SecurityPoliciesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -161185,7 +162207,7 @@ func (c *SecurityPoliciesPatchRuleCall) Header() http.Header { func (c *SecurityPoliciesPatchRuleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -161352,7 +162374,7 @@ func (c *SecurityPoliciesRemoveRuleCall) Header() http.Header { func (c *SecurityPoliciesRemoveRuleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -161502,7 +162524,7 @@ func (c *SecurityPoliciesSetLabelsCall) Header() http.Header { func (c *SecurityPoliciesSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -161654,7 +162676,7 @@ func (c *SecurityPoliciesTestIamPermissionsCall) Header() http.Header { func (c *SecurityPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -161825,7 +162847,7 @@ func (c *ServiceAttachmentsDeleteCall) Header() http.Header { func (c *ServiceAttachmentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -161994,7 +163016,7 @@ func (c *ServiceAttachmentsGetCall) Header() http.Header { func (c *ServiceAttachmentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -162169,7 +163191,7 @@ func (c *ServiceAttachmentsGetIamPolicyCall) Header() http.Header { func (c *ServiceAttachmentsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -162351,7 +163373,7 @@ func (c *ServiceAttachmentsInsertCall) Header() http.Header { func (c *ServiceAttachmentsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -162590,7 +163612,7 @@ func (c *ServiceAttachmentsListCall) Header() http.Header { func (c *ServiceAttachmentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -162789,7 +163811,7 @@ func (c *ServiceAttachmentsSetIamPolicyCall) Header() http.Header { func (c *ServiceAttachmentsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -162952,7 +163974,7 @@ func (c *ServiceAttachmentsTestIamPermissionsCall) Header() http.Header { func (c *ServiceAttachmentsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -163137,7 +164159,7 @@ func (c *SnapshotsDeleteCall) Header() http.Header { func (c *SnapshotsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -163296,7 +164318,7 @@ func (c *SnapshotsGetCall) Header() http.Header { func (c *SnapshotsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -163460,7 +164482,7 @@ func (c *SnapshotsGetIamPolicyCall) Header() http.Header { func (c *SnapshotsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -163631,7 +164653,7 @@ func (c *SnapshotsInsertCall) Header() http.Header { func (c *SnapshotsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -163861,7 +164883,7 @@ func (c *SnapshotsListCall) Header() http.Header { func (c *SnapshotsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -164049,7 +165071,7 @@ func (c *SnapshotsSetIamPolicyCall) Header() http.Header { func (c *SnapshotsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -164201,7 +165223,7 @@ func (c *SnapshotsSetLabelsCall) Header() http.Header { func (c *SnapshotsSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -164353,7 +165375,7 @@ func (c *SnapshotsTestIamPermissionsCall) Header() http.Header { func (c *SnapshotsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -164600,7 +165622,7 @@ func (c *SslCertificatesAggregatedListCall) Header() http.Header { func (c *SslCertificatesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -164809,7 +165831,7 @@ func (c *SslCertificatesDeleteCall) Header() http.Header { func (c *SslCertificatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -164967,7 +165989,7 @@ func (c *SslCertificatesGetCall) Header() http.Header { func (c *SslCertificatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -165132,7 +166154,7 @@ func (c *SslCertificatesInsertCall) Header() http.Header { func (c *SslCertificatesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -165361,7 +166383,7 @@ func (c *SslCertificatesListCall) Header() http.Header { func (c *SslCertificatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -165549,7 +166571,7 @@ func (c *SslCertificatesTestIamPermissionsCall) Header() http.Header { func (c *SslCertificatesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -165720,7 +166742,7 @@ func (c *SslPoliciesDeleteCall) Header() http.Header { func (c *SslPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -165877,7 +166899,7 @@ func (c *SslPoliciesGetCall) Header() http.Header { func (c *SslPoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -166041,7 +167063,7 @@ func (c *SslPoliciesInsertCall) Header() http.Header { func (c *SslPoliciesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -166270,7 +167292,7 @@ func (c *SslPoliciesListCall) Header() http.Header { func (c *SslPoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -166539,7 +167561,7 @@ func (c *SslPoliciesListAvailableFeaturesCall) Header() http.Header { func (c *SslPoliciesListAvailableFeaturesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -166727,7 +167749,7 @@ func (c *SslPoliciesPatchCall) Header() http.Header { func (c *SslPoliciesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -166883,7 +167905,7 @@ func (c *SslPoliciesTestIamPermissionsCall) Header() http.Header { func (c *SslPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -167129,7 +168151,7 @@ func (c *SubnetworksAggregatedListCall) Header() http.Header { func (c *SubnetworksAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -167340,7 +168362,7 @@ func (c *SubnetworksDeleteCall) Header() http.Header { func (c *SubnetworksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -167519,7 +168541,7 @@ func (c *SubnetworksExpandIpCidrRangeCall) Header() http.Header { func (c *SubnetworksExpandIpCidrRangeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -167696,7 +168718,7 @@ func (c *SubnetworksGetCall) Header() http.Header { func (c *SubnetworksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -167871,7 +168893,7 @@ func (c *SubnetworksGetIamPolicyCall) Header() http.Header { func (c *SubnetworksGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -168053,7 +169075,7 @@ func (c *SubnetworksInsertCall) Header() http.Header { func (c *SubnetworksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -168293,7 +169315,7 @@ func (c *SubnetworksListCall) Header() http.Header { func (c *SubnetworksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -168571,7 +169593,7 @@ func (c *SubnetworksListUsableCall) Header() http.Header { func (c *SubnetworksListUsableCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -168797,7 +169819,7 @@ func (c *SubnetworksPatchCall) Header() http.Header { func (c *SubnetworksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -168971,7 +169993,7 @@ func (c *SubnetworksSetIamPolicyCall) Header() http.Header { func (c *SubnetworksSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -169154,7 +170176,7 @@ func (c *SubnetworksSetPrivateIpGoogleAccessCall) Header() http.Header { func (c *SubnetworksSetPrivateIpGoogleAccessCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -169322,7 +170344,7 @@ func (c *SubnetworksTestIamPermissionsCall) Header() http.Header { func (c *SubnetworksTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -169500,7 +170522,7 @@ func (c *TargetGrpcProxiesDeleteCall) Header() http.Header { func (c *TargetGrpcProxiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -169658,7 +170680,7 @@ func (c *TargetGrpcProxiesGetCall) Header() http.Header { func (c *TargetGrpcProxiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -169823,7 +170845,7 @@ func (c *TargetGrpcProxiesInsertCall) Header() http.Header { func (c *TargetGrpcProxiesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -170051,7 +171073,7 @@ func (c *TargetGrpcProxiesListCall) Header() http.Header { func (c *TargetGrpcProxiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -170259,7 +171281,7 @@ func (c *TargetGrpcProxiesPatchCall) Header() http.Header { func (c *TargetGrpcProxiesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -170416,7 +171438,7 @@ func (c *TargetGrpcProxiesTestIamPermissionsCall) Header() http.Header { func (c *TargetGrpcProxiesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -170663,7 +171685,7 @@ func (c *TargetHttpProxiesAggregatedListCall) Header() http.Header { func (c *TargetHttpProxiesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -170873,7 +171895,7 @@ func (c *TargetHttpProxiesDeleteCall) Header() http.Header { func (c *TargetHttpProxiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -171032,7 +172054,7 @@ func (c *TargetHttpProxiesGetCall) Header() http.Header { func (c *TargetHttpProxiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -171198,7 +172220,7 @@ func (c *TargetHttpProxiesInsertCall) Header() http.Header { func (c *TargetHttpProxiesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -171428,7 +172450,7 @@ func (c *TargetHttpProxiesListCall) Header() http.Header { func (c *TargetHttpProxiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -171637,7 +172659,7 @@ func (c *TargetHttpProxiesPatchCall) Header() http.Header { func (c *TargetHttpProxiesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -171813,7 +172835,7 @@ func (c *TargetHttpProxiesSetUrlMapCall) Header() http.Header { func (c *TargetHttpProxiesSetUrlMapCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -171970,7 +172992,7 @@ func (c *TargetHttpProxiesTestIamPermissionsCall) Header() http.Header { func (c *TargetHttpProxiesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -172217,7 +173239,7 @@ func (c *TargetHttpsProxiesAggregatedListCall) Header() http.Header { func (c *TargetHttpsProxiesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -172426,7 +173448,7 @@ func (c *TargetHttpsProxiesDeleteCall) Header() http.Header { func (c *TargetHttpsProxiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -172584,7 +173606,7 @@ func (c *TargetHttpsProxiesGetCall) Header() http.Header { func (c *TargetHttpsProxiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -172749,7 +173771,7 @@ func (c *TargetHttpsProxiesInsertCall) Header() http.Header { func (c *TargetHttpsProxiesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -172978,7 +174000,7 @@ func (c *TargetHttpsProxiesListCall) Header() http.Header { func (c *TargetHttpsProxiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -173117,6 +174139,184 @@ func (c *TargetHttpsProxiesListCall) Pages(ctx context.Context, f func(*TargetHt } } +// method id "compute.targetHttpsProxies.patch": + +type TargetHttpsProxiesPatchCall struct { + s *Service + project string + targetHttpsProxy string + targethttpsproxy *TargetHttpsProxy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Patches the specified TargetHttpsProxy resource with the data +// included in the request. This method supports PATCH semantics and +// uses JSON merge patch format and processing rules. (== +// suppress_warning http-rest-shadowed ==) +func (r *TargetHttpsProxiesService) Patch(project string, targetHttpsProxy string, targethttpsproxy *TargetHttpsProxy) *TargetHttpsProxiesPatchCall { + c := &TargetHttpsProxiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.targetHttpsProxy = targetHttpsProxy + c.targethttpsproxy = targethttpsproxy + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. +// +// For example, consider a situation where you make an initial request +// and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the +// same request ID was received, and if so, will ignore the second +// request. This prevents clients from accidentally creating duplicate +// commitments. +// +// The request ID must be a valid UUID with the exception that zero UUID +// is not supported (00000000-0000-0000-0000-000000000000). +func (c *TargetHttpsProxiesPatchCall) RequestId(requestId string) *TargetHttpsProxiesPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *TargetHttpsProxiesPatchCall) Fields(s ...googleapi.Field) *TargetHttpsProxiesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *TargetHttpsProxiesPatchCall) Context(ctx context.Context) *TargetHttpsProxiesPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *TargetHttpsProxiesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *TargetHttpsProxiesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.targethttpsproxy) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "targetHttpsProxy": c.targetHttpsProxy, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.targetHttpsProxies.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *TargetHttpsProxiesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Patches the specified TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. (== suppress_warning http-rest-shadowed ==)", + // "httpMethod": "PATCH", + // "id": "compute.targetHttpsProxies.patch", + // "parameterOrder": [ + // "project", + // "targetHttpsProxy" + // ], + // "parameters": { + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.\n\nFor example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.\n\nThe request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "targetHttpsProxy": { + // "description": "Name of the TargetHttpsProxy resource to patch.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}", + // "request": { + // "$ref": "TargetHttpsProxy" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + // method id "compute.targetHttpsProxies.setCertificateMap": type TargetHttpsProxiesSetCertificateMapCall struct { @@ -173184,7 +174384,7 @@ func (c *TargetHttpsProxiesSetCertificateMapCall) Header() http.Header { func (c *TargetHttpsProxiesSetCertificateMapCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -173358,7 +174558,7 @@ func (c *TargetHttpsProxiesSetQuicOverrideCall) Header() http.Header { func (c *TargetHttpsProxiesSetQuicOverrideCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -173532,7 +174732,7 @@ func (c *TargetHttpsProxiesSetSslCertificatesCall) Header() http.Header { func (c *TargetHttpsProxiesSetSslCertificatesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -173711,7 +174911,7 @@ func (c *TargetHttpsProxiesSetSslPolicyCall) Header() http.Header { func (c *TargetHttpsProxiesSetSslPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -173885,7 +175085,7 @@ func (c *TargetHttpsProxiesSetUrlMapCall) Header() http.Header { func (c *TargetHttpsProxiesSetUrlMapCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -174042,7 +175242,7 @@ func (c *TargetHttpsProxiesTestIamPermissionsCall) Header() http.Header { func (c *TargetHttpsProxiesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -174289,7 +175489,7 @@ func (c *TargetInstancesAggregatedListCall) Header() http.Header { func (c *TargetInstancesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -174501,7 +175701,7 @@ func (c *TargetInstancesDeleteCall) Header() http.Header { func (c *TargetInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -174671,7 +175871,7 @@ func (c *TargetInstancesGetCall) Header() http.Header { func (c *TargetInstancesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -174848,7 +176048,7 @@ func (c *TargetInstancesInsertCall) Header() http.Header { func (c *TargetInstancesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -175089,7 +176289,7 @@ func (c *TargetInstancesListCall) Header() http.Header { func (c *TargetInstancesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -175288,7 +176488,7 @@ func (c *TargetInstancesTestIamPermissionsCall) Header() http.Header { func (c *TargetInstancesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -175471,7 +176671,7 @@ func (c *TargetPoolsAddHealthCheckCall) Header() http.Header { func (c *TargetPoolsAddHealthCheckCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -175658,7 +176858,7 @@ func (c *TargetPoolsAddInstanceCall) Header() http.Header { func (c *TargetPoolsAddInstanceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -175918,7 +177118,7 @@ func (c *TargetPoolsAggregatedListCall) Header() http.Header { func (c *TargetPoolsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -176130,7 +177330,7 @@ func (c *TargetPoolsDeleteCall) Header() http.Header { func (c *TargetPoolsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -176300,7 +177500,7 @@ func (c *TargetPoolsGetCall) Header() http.Header { func (c *TargetPoolsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -176460,7 +177660,7 @@ func (c *TargetPoolsGetHealthCall) Header() http.Header { func (c *TargetPoolsGetHealthCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -176642,7 +177842,7 @@ func (c *TargetPoolsInsertCall) Header() http.Header { func (c *TargetPoolsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -176883,7 +178083,7 @@ func (c *TargetPoolsListCall) Header() http.Header { func (c *TargetPoolsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -177101,7 +178301,7 @@ func (c *TargetPoolsRemoveHealthCheckCall) Header() http.Header { func (c *TargetPoolsRemoveHealthCheckCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -177288,7 +178488,7 @@ func (c *TargetPoolsRemoveInstanceCall) Header() http.Header { func (c *TargetPoolsRemoveInstanceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -177482,7 +178682,7 @@ func (c *TargetPoolsSetBackupCall) Header() http.Header { func (c *TargetPoolsSetBackupCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -177656,7 +178856,7 @@ func (c *TargetPoolsTestIamPermissionsCall) Header() http.Header { func (c *TargetPoolsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -177834,7 +179034,7 @@ func (c *TargetSslProxiesDeleteCall) Header() http.Header { func (c *TargetSslProxiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -177992,7 +179192,7 @@ func (c *TargetSslProxiesGetCall) Header() http.Header { func (c *TargetSslProxiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -178157,7 +179357,7 @@ func (c *TargetSslProxiesInsertCall) Header() http.Header { func (c *TargetSslProxiesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -178386,7 +179586,7 @@ func (c *TargetSslProxiesListCall) Header() http.Header { func (c *TargetSslProxiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -178592,7 +179792,7 @@ func (c *TargetSslProxiesSetBackendServiceCall) Header() http.Header { func (c *TargetSslProxiesSetBackendServiceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -178767,7 +179967,7 @@ func (c *TargetSslProxiesSetCertificateMapCall) Header() http.Header { func (c *TargetSslProxiesSetCertificateMapCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -178941,7 +180141,7 @@ func (c *TargetSslProxiesSetProxyHeaderCall) Header() http.Header { func (c *TargetSslProxiesSetProxyHeaderCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -179116,7 +180316,7 @@ func (c *TargetSslProxiesSetSslCertificatesCall) Header() http.Header { func (c *TargetSslProxiesSetSslCertificatesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -179294,7 +180494,7 @@ func (c *TargetSslProxiesSetSslPolicyCall) Header() http.Header { func (c *TargetSslProxiesSetSslPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -179450,7 +180650,7 @@ func (c *TargetSslProxiesTestIamPermissionsCall) Header() http.Header { func (c *TargetSslProxiesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -179619,7 +180819,7 @@ func (c *TargetTcpProxiesDeleteCall) Header() http.Header { func (c *TargetTcpProxiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -179777,7 +180977,7 @@ func (c *TargetTcpProxiesGetCall) Header() http.Header { func (c *TargetTcpProxiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -179942,7 +181142,7 @@ func (c *TargetTcpProxiesInsertCall) Header() http.Header { func (c *TargetTcpProxiesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -180171,7 +181371,7 @@ func (c *TargetTcpProxiesListCall) Header() http.Header { func (c *TargetTcpProxiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -180377,7 +181577,7 @@ func (c *TargetTcpProxiesSetBackendServiceCall) Header() http.Header { func (c *TargetTcpProxiesSetBackendServiceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -180552,7 +181752,7 @@ func (c *TargetTcpProxiesSetProxyHeaderCall) Header() http.Header { func (c *TargetTcpProxiesSetProxyHeaderCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -180709,7 +181909,7 @@ func (c *TargetTcpProxiesTestIamPermissionsCall) Header() http.Header { func (c *TargetTcpProxiesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -180955,7 +182155,7 @@ func (c *TargetVpnGatewaysAggregatedListCall) Header() http.Header { func (c *TargetVpnGatewaysAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -181166,7 +182366,7 @@ func (c *TargetVpnGatewaysDeleteCall) Header() http.Header { func (c *TargetVpnGatewaysDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -181335,7 +182535,7 @@ func (c *TargetVpnGatewaysGetCall) Header() http.Header { func (c *TargetVpnGatewaysGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -181511,7 +182711,7 @@ func (c *TargetVpnGatewaysInsertCall) Header() http.Header { func (c *TargetVpnGatewaysInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -181751,7 +182951,7 @@ func (c *TargetVpnGatewaysListCall) Header() http.Header { func (c *TargetVpnGatewaysListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -181969,7 +183169,7 @@ func (c *TargetVpnGatewaysSetLabelsCall) Header() http.Header { func (c *TargetVpnGatewaysSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -182137,7 +183337,7 @@ func (c *TargetVpnGatewaysTestIamPermissionsCall) Header() http.Header { func (c *TargetVpnGatewaysTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -182393,7 +183593,7 @@ func (c *UrlMapsAggregatedListCall) Header() http.Header { func (c *UrlMapsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -182603,7 +183803,7 @@ func (c *UrlMapsDeleteCall) Header() http.Header { func (c *UrlMapsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -182762,7 +183962,7 @@ func (c *UrlMapsGetCall) Header() http.Header { func (c *UrlMapsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -182928,7 +184128,7 @@ func (c *UrlMapsInsertCall) Header() http.Header { func (c *UrlMapsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -183041,6 +184241,9 @@ type UrlMapsInvalidateCacheCall struct { // InvalidateCache: Initiates a cache invalidation operation, // invalidating the specified path, scoped to the specified UrlMap. +// +// For more information, see [Invalidating cached +// content](/cdn/docs/invalidating-cached-content). func (r *UrlMapsService) InvalidateCache(project string, urlMap string, cacheinvalidationrule *CacheInvalidationRule) *UrlMapsInvalidateCacheCall { c := &UrlMapsInvalidateCacheCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -183095,7 +184298,7 @@ func (c *UrlMapsInvalidateCacheCall) Header() http.Header { func (c *UrlMapsInvalidateCacheCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -183160,7 +184363,7 @@ func (c *UrlMapsInvalidateCacheCall) Do(opts ...googleapi.CallOption) (*Operatio } return ret, nil // { - // "description": "Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap.", + // "description": "Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap.\n\nFor more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content).", // "httpMethod": "POST", // "id": "compute.urlMaps.invalidateCache", // "parameterOrder": [ @@ -183334,7 +184537,7 @@ func (c *UrlMapsListCall) Header() http.Header { func (c *UrlMapsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -183543,7 +184746,7 @@ func (c *UrlMapsPatchCall) Header() http.Header { func (c *UrlMapsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -183700,7 +184903,7 @@ func (c *UrlMapsTestIamPermissionsCall) Header() http.Header { func (c *UrlMapsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -183873,7 +185076,7 @@ func (c *UrlMapsUpdateCall) Header() http.Header { func (c *UrlMapsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -184032,7 +185235,7 @@ func (c *UrlMapsValidateCall) Header() http.Header { func (c *UrlMapsValidateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -184277,7 +185480,7 @@ func (c *VpnGatewaysAggregatedListCall) Header() http.Header { func (c *VpnGatewaysAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -184488,7 +185691,7 @@ func (c *VpnGatewaysDeleteCall) Header() http.Header { func (c *VpnGatewaysDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -184657,7 +185860,7 @@ func (c *VpnGatewaysGetCall) Header() http.Header { func (c *VpnGatewaysGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -184824,7 +186027,7 @@ func (c *VpnGatewaysGetStatusCall) Header() http.Header { func (c *VpnGatewaysGetStatusCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -185000,7 +186203,7 @@ func (c *VpnGatewaysInsertCall) Header() http.Header { func (c *VpnGatewaysInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -185240,7 +186443,7 @@ func (c *VpnGatewaysListCall) Header() http.Header { func (c *VpnGatewaysListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -185458,7 +186661,7 @@ func (c *VpnGatewaysSetLabelsCall) Header() http.Header { func (c *VpnGatewaysSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -185626,7 +186829,7 @@ func (c *VpnGatewaysTestIamPermissionsCall) Header() http.Header { func (c *VpnGatewaysTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -185881,7 +187084,7 @@ func (c *VpnTunnelsAggregatedListCall) Header() http.Header { func (c *VpnTunnelsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -186092,7 +187295,7 @@ func (c *VpnTunnelsDeleteCall) Header() http.Header { func (c *VpnTunnelsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -186261,7 +187464,7 @@ func (c *VpnTunnelsGetCall) Header() http.Header { func (c *VpnTunnelsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -186437,7 +187640,7 @@ func (c *VpnTunnelsInsertCall) Header() http.Header { func (c *VpnTunnelsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -186677,7 +187880,7 @@ func (c *VpnTunnelsListCall) Header() http.Header { func (c *VpnTunnelsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -186895,7 +188098,7 @@ func (c *VpnTunnelsSetLabelsCall) Header() http.Header { func (c *VpnTunnelsSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -187063,7 +188266,7 @@ func (c *VpnTunnelsTestIamPermissionsCall) Header() http.Header { func (c *VpnTunnelsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -187250,7 +188453,7 @@ func (c *ZoneInPlaceSnapshotsDeleteCall) Header() http.Header { func (c *ZoneInPlaceSnapshotsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -187419,7 +188622,7 @@ func (c *ZoneInPlaceSnapshotsGetCall) Header() http.Header { func (c *ZoneInPlaceSnapshotsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -187594,7 +188797,7 @@ func (c *ZoneInPlaceSnapshotsGetIamPolicyCall) Header() http.Header { func (c *ZoneInPlaceSnapshotsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -187775,7 +188978,7 @@ func (c *ZoneInPlaceSnapshotsInsertCall) Header() http.Header { func (c *ZoneInPlaceSnapshotsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -188015,7 +189218,7 @@ func (c *ZoneInPlaceSnapshotsListCall) Header() http.Header { func (c *ZoneInPlaceSnapshotsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -188214,7 +189417,7 @@ func (c *ZoneInPlaceSnapshotsSetIamPolicyCall) Header() http.Header { func (c *ZoneInPlaceSnapshotsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -188396,7 +189599,7 @@ func (c *ZoneInPlaceSnapshotsSetLabelsCall) Header() http.Header { func (c *ZoneInPlaceSnapshotsSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -188564,7 +189767,7 @@ func (c *ZoneInPlaceSnapshotsTestIamPermissionsCall) Header() http.Header { func (c *ZoneInPlaceSnapshotsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -188751,7 +189954,7 @@ func (c *ZoneInstantSnapshotsDeleteCall) Header() http.Header { func (c *ZoneInstantSnapshotsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -188860,6 +190063,193 @@ func (c *ZoneInstantSnapshotsDeleteCall) Do(opts ...googleapi.CallOption) (*Oper } +// method id "compute.zoneInstantSnapshots.export": + +type ZoneInstantSnapshotsExportCall struct { + s *Service + project string + zone string + instantSnapshot string + instantsnapshotexportparams *InstantSnapshotExportParams + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Export: Export the changed blocks between two instant snapshots to a +// customer?s bucket in the user specified format. +func (r *ZoneInstantSnapshotsService) Export(project string, zone string, instantSnapshot string, instantsnapshotexportparams *InstantSnapshotExportParams) *ZoneInstantSnapshotsExportCall { + c := &ZoneInstantSnapshotsExportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.zone = zone + c.instantSnapshot = instantSnapshot + c.instantsnapshotexportparams = instantsnapshotexportparams + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. +// +// For example, consider a situation where you make an initial request +// and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the +// same request ID was received, and if so, will ignore the second +// request. This prevents clients from accidentally creating duplicate +// commitments. +// +// The request ID must be a valid UUID with the exception that zero UUID +// is not supported (00000000-0000-0000-0000-000000000000). +func (c *ZoneInstantSnapshotsExportCall) RequestId(requestId string) *ZoneInstantSnapshotsExportCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ZoneInstantSnapshotsExportCall) Fields(s ...googleapi.Field) *ZoneInstantSnapshotsExportCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ZoneInstantSnapshotsExportCall) Context(ctx context.Context) *ZoneInstantSnapshotsExportCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ZoneInstantSnapshotsExportCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ZoneInstantSnapshotsExportCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.instantsnapshotexportparams) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}/export") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "zone": c.zone, + "instantSnapshot": c.instantSnapshot, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.zoneInstantSnapshots.export" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ZoneInstantSnapshotsExportCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Export the changed blocks between two instant snapshots to a customer?s bucket in the user specified format.", + // "httpMethod": "POST", + // "id": "compute.zoneInstantSnapshots.export", + // "parameterOrder": [ + // "project", + // "zone", + // "instantSnapshot" + // ], + // "parameters": { + // "instantSnapshot": { + // "description": "Name of the instant snapshot to export.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + // "required": true, + // "type": "string" + // }, + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.\n\nFor example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.\n\nThe request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "zone": { + // "description": "The name of the zone for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}/export", + // "request": { + // "$ref": "InstantSnapshotExportParams" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + // method id "compute.zoneInstantSnapshots.get": type ZoneInstantSnapshotsGetCall struct { @@ -188920,7 +190310,7 @@ func (c *ZoneInstantSnapshotsGetCall) Header() http.Header { func (c *ZoneInstantSnapshotsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -189095,7 +190485,7 @@ func (c *ZoneInstantSnapshotsGetIamPolicyCall) Header() http.Header { func (c *ZoneInstantSnapshotsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -189276,7 +190666,7 @@ func (c *ZoneInstantSnapshotsInsertCall) Header() http.Header { func (c *ZoneInstantSnapshotsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -189516,7 +190906,7 @@ func (c *ZoneInstantSnapshotsListCall) Header() http.Header { func (c *ZoneInstantSnapshotsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -189715,7 +191105,7 @@ func (c *ZoneInstantSnapshotsSetIamPolicyCall) Header() http.Header { func (c *ZoneInstantSnapshotsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -189897,7 +191287,7 @@ func (c *ZoneInstantSnapshotsSetLabelsCall) Header() http.Header { func (c *ZoneInstantSnapshotsSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -190065,7 +191455,7 @@ func (c *ZoneInstantSnapshotsTestIamPermissionsCall) Header() http.Header { func (c *ZoneInstantSnapshotsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -190227,7 +191617,7 @@ func (c *ZoneOperationsDeleteCall) Header() http.Header { func (c *ZoneOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -190363,7 +191753,7 @@ func (c *ZoneOperationsGetCall) Header() http.Header { func (c *ZoneOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -190604,7 +191994,7 @@ func (c *ZoneOperationsListCall) Header() http.Header { func (c *ZoneOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -190813,7 +192203,7 @@ func (c *ZoneOperationsWaitCall) Header() http.Header { func (c *ZoneOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -190977,7 +192367,7 @@ func (c *ZonesGetCall) Header() http.Header { func (c *ZonesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -191207,7 +192597,7 @@ func (c *ZonesListCall) Header() http.Header { func (c *ZonesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/compute/v0.beta/compute-api.json b/compute/v0.beta/compute-api.json index 20ac9090eb8..ed12922eec4 100644 --- a/compute/v0.beta/compute-api.json +++ b/compute/v0.beta/compute-api.json @@ -29,7 +29,7 @@ "description": "Creates and runs virtual machines on Google Cloud Platform.", "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/compute/docs/reference/latest/", - "etag": "\"-2NioU2H8y8siEzrBOV_qzRI6kQ/7qFYEdDGEr7kH07mQRXzm61qaUA\"", + "etag": "\"-2NioU2H8y8siEzrBOV_qzRI6kQ/-Gs2EgxWEoiGeb9-urct8Ip59iU\"", "icons": { "x16": "https://www.google.com/images/icons/product/compute_engine-16.png", "x32": "https://www.google.com/images/icons/product/compute_engine-32.png" @@ -7086,7 +7086,7 @@ ] }, "setInstanceTemplate": { - "description": "Specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you recreate them.", + "description": "Specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE.", "httpMethod": "POST", "id": "compute.instanceGroupManagers.setInstanceTemplate", "parameterOrder": [ @@ -14245,7 +14245,7 @@ ], "parameters": { "replaceExistingAssociation": { - "description": "Indicates whether or not to replace it if an association of the attachment already exists. This is false by default, in which case an error will be returned if an assocation already exists.", + "description": "Indicates whether or not to replace it if an association of the attachment already exists. This is false by default, in which case an error will be returned if an association already exists.", "location": "query", "type": "boolean" }, @@ -20536,7 +20536,7 @@ ] }, "invalidateCache": { - "description": "Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap.", + "description": "Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap.\n\nFor more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content).", "httpMethod": "POST", "id": "compute.regionUrlMaps.invalidateCache", "parameterOrder": [ @@ -27418,7 +27418,7 @@ ] }, "invalidateCache": { - "description": "Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap.", + "description": "Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap.\n\nFor more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content).", "httpMethod": "POST", "id": "compute.urlMaps.invalidateCache", "parameterOrder": [ @@ -28643,7 +28643,7 @@ } } }, - "revision": "20201005", + "revision": "20201022", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -28758,6 +28758,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -28799,6 +28800,7 @@ "", "", "", + "", "" ], "type": "string" @@ -28872,6 +28874,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -28913,6 +28916,7 @@ "", "", "", + "", "" ], "type": "string" @@ -28968,6 +28972,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -29009,6 +29014,7 @@ "", "", "", + "", "" ], "type": "string" @@ -29189,11 +29195,12 @@ "type": "integer" }, "purpose": { - "description": "The purpose of this resource, which can be one of the following values: \n- `GCE_ENDPOINT` for addresses that are used by VM instances, alias IP ranges, internal load balancers, and similar resources. \n- `DNS_RESOLVER` for a DNS resolver address in a subnetwork \n- `VPC_PEERING` for addresses that are reserved for VPC peer networks. \n- `NAT_AUTO` for addresses that are external IP addresses automatically reserved for Cloud NAT. \n- `IPSEC_INTERCONNECT` for addresses created from a private IP range reserved for a VLAN attachment in an IPsec over Interconnect configuration. These addresses are regional resources.", + "description": "The purpose of this resource, which can be one of the following values: \n- `GCE_ENDPOINT` for addresses that are used by VM instances, alias IP ranges, internal load balancers, and similar resources. \n- `DNS_RESOLVER` for a DNS resolver address in a subnetwork \n- `VPC_PEERING` for addresses that are reserved for VPC peer networks. \n- `NAT_AUTO` for addresses that are external IP addresses automatically reserved for Cloud NAT. \n- `IPSEC_INTERCONNECT` for addresses created from a private IP range that are reserved for a VLAN attachment in an IPsec encrypted Interconnect configuration. These addresses are regional resources.", "enum": [ "DNS_RESOLVER", "GCE_ENDPOINT", "NAT_AUTO", + "PRIVATE_SERVICE_CONNECT", "SHARED_LOADBALANCER_VIP", "VPC_PEERING" ], @@ -29202,6 +29209,7 @@ "", "", "", + "", "" ], "type": "string" @@ -29291,6 +29299,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -29332,6 +29341,7 @@ "", "", "", + "", "" ], "type": "string" @@ -29405,6 +29415,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -29446,6 +29457,7 @@ "", "", "", + "", "" ], "type": "string" @@ -29501,6 +29513,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -29542,6 +29555,7 @@ "", "", "", + "", "" ], "type": "string" @@ -29925,7 +29939,7 @@ "type": "object" }, "Autoscaler": { - "description": "Represents an Autoscaler resource.\n\nGoogle Compute Engine has two Autoscaler resources:\n\n* [Global](/compute/docs/reference/rest/{$api_version}/autoscalers) * [Regional](/compute/docs/reference/rest/{$api_version}/regionAutoscalers)\n\nUse autoscalers to automatically add or delete instances from a managed instance group according to your defined autoscaling policy. For more information, read Autoscaling Groups of Instances.\n\nFor zonal managed instance groups resource, use the autoscaler resource.\n\nFor regional managed instance groups, use the regionAutoscalers resource. (== resource_for {$api_version}.autoscalers ==) (== resource_for {$api_version}.regionAutoscalers ==)", + "description": "Represents an Autoscaler resource.\n\nGoogle Compute Engine has two Autoscaler resources:\n\n* [Zonal](/compute/docs/reference/rest/{$api_version}/autoscalers) * [Regional](/compute/docs/reference/rest/{$api_version}/regionAutoscalers)\n\nUse autoscalers to automatically add or delete instances from a managed instance group according to your defined autoscaling policy. For more information, read Autoscaling Groups of Instances.\n\nFor zonal managed instance groups resource, use the autoscaler resource.\n\nFor regional managed instance groups, use the regionAutoscalers resource. (== resource_for {$api_version}.autoscalers ==) (== resource_for {$api_version}.regionAutoscalers ==)", "id": "Autoscaler", "properties": { "autoscalingPolicy": { @@ -29969,6 +29983,13 @@ "description": "[Output Only] URL of the region where the instance group resides (for autoscalers living in regional scope).", "type": "string" }, + "scalingScheduleStatus": { + "additionalProperties": { + "$ref": "ScalingScheduleStatus" + }, + "description": "[Output Only] Status information of existing scaling schedules.", + "type": "object" + }, "selfLink": { "description": "[Output Only] Server-defined URL for the resource.", "type": "string" @@ -30056,6 +30077,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -30097,6 +30119,7 @@ "", "", "", + "", "" ], "type": "string" @@ -30170,6 +30193,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -30211,6 +30235,7 @@ "", "", "", + "", "" ], "type": "string" @@ -30320,6 +30345,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -30361,6 +30387,7 @@ "", "", "", + "", "" ], "type": "string" @@ -30447,6 +30474,13 @@ }, "scaleInControl": { "$ref": "AutoscalingPolicyScaleInControl" + }, + "scalingSchedules": { + "additionalProperties": { + "$ref": "AutoscalingPolicyScalingSchedule" + }, + "description": "Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler and they can overlap. During overlapping periods the greatest min_required_replicas of all scaling schedules will be applied. Up to 128 scaling schedules are allowed.", + "type": "object" } }, "type": "object" @@ -30560,6 +30594,39 @@ }, "type": "object" }, + "AutoscalingPolicyScalingSchedule": { + "description": "Scaling based on user-defined schedule. The message describes a single scaling schedule. A scaling schedule changes the minimum number of VM instances an autoscaler can recommend, which can trigger scaling out.", + "id": "AutoscalingPolicyScalingSchedule", + "properties": { + "description": { + "description": "A description of a scaling schedule.", + "type": "string" + }, + "disabled": { + "description": "A boolean value that specifies if a scaling schedule can influence autoscaler recommendations. If set to true, then a scaling schedule has no effect. This field is optional and its value is false by default.", + "type": "boolean" + }, + "durationSec": { + "description": "The duration of time intervals (in seconds) for which this scaling schedule will be running. The minimum allowed value is 300. This field is required.", + "format": "int32", + "type": "integer" + }, + "minRequiredReplicas": { + "description": "Minimum number of VM instances that autoscaler will recommend in time intervals starting according to schedule. This field is required.", + "format": "int32", + "type": "integer" + }, + "schedule": { + "description": "The start timestamps of time intervals when this scaling schedule should provide a scaling signal. This field uses the extended cron format (with an optional year field). The expression may describe a single timestamp if the optional year is set, in which case a scaling schedule will run once. schedule is interpreted with respect to time_zone. This field is required. NOTE: these timestamps only describe when autoscaler will start providing the scaling signal. The VMs will need additional time to become serving.", + "type": "string" + }, + "timeZone": { + "description": "The time zone to be used when interpreting the schedule. The value of this field must be a time zone name from the tz database: http://en.wikipedia.org/wiki/Tz_database. This field will be assigned a default value of ?UTC? if left empty.", + "type": "string" + } + }, + "type": "object" + }, "Backend": { "description": "Message containing information of one individual backend.", "id": "Backend", @@ -30729,7 +30796,7 @@ "type": "integer" }, "negativeCaching": { - "description": "Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. This can reduce the load on your origin and improve end-user experience by reducing response latency. By default, Cloud CDN will apply the following default TTLs to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), 421 (Misdirected Request), 501 (Not Implemented): 60s These defaults can be overridden in negative_caching_policy", + "description": "Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. This can reduce the load on your origin and improve end-user experience by reducing response latency. When the cache mode is set to CACHE_ALL_STATIC or USE_ORIGIN_HEADERS, negative caching applies to responses with the specified response code that lack any Cache-Control, Expires, or Pragma: no-cache directives. When the cache mode is set to FORCE_CACHE_ALL, negative caching applies to all responses with the specified response code, and override any caching headers. By default, Cloud CDN will apply the following default TTLs to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), 421 (Misdirected Request), 501 (Not Implemented): 60s. These defaults can be overridden in negative_caching_policy.", "type": "boolean" }, "negativeCachingPolicy": { @@ -30780,7 +30847,7 @@ "type": "integer" }, "ttl": { - "description": "The TTL (in seconds) to cache responses with the corresponding status code for. The maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be evicted from the cache before the defined TTL.", + "description": "The TTL (in seconds) for which to cache responses with the corresponding status code. The maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be evicted from the cache before the defined TTL.", "format": "int32", "type": "integer" } @@ -30829,6 +30896,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -30870,6 +30938,7 @@ "", "", "", + "", "" ], "type": "string" @@ -30928,6 +30997,9 @@ "connectionDraining": { "$ref": "ConnectionDraining" }, + "connectionTrackingPolicy": { + "$ref": "BackendServiceConnectionTrackingPolicy" + }, "consistentHash": { "$ref": "ConsistentHashLoadBalancerSettings", "description": "Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. This load balancing policy is applicable only for HTTP connections. The affinity to a particular destination host will be lost when one or more hosts are added/removed from the destination service. This field specifies parameters that control consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or RING_HASH.\n\nThis field is applicable to either: \n- A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. \n- A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED. \n\nNot supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true." @@ -31172,6 +31244,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -31213,6 +31286,7 @@ "", "", "", + "", "" ], "type": "string" @@ -31291,7 +31365,7 @@ "type": "integer" }, "negativeCaching": { - "description": "Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. This can reduce the load on your origin and improve end-user experience by reducing response latency. By default, Cloud CDN will apply the following default TTLs to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), 421 (Misdirected Request), 501 (Not Implemented): 60s These defaults can be overridden in negative_caching_policy", + "description": "Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. This can reduce the load on your origin and improve end-user experience by reducing response latency. When the cache mode is set to CACHE_ALL_STATIC or USE_ORIGIN_HEADERS, negative caching applies to responses with the specified response code that lack any Cache-Control, Expires, or Pragma: no-cache directives. When the cache mode is set to FORCE_CACHE_ALL, negative caching applies to all responses with the specified response code, and override any caching headers. By default, Cloud CDN will apply the following default TTLs to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), 421 (Misdirected Request), 501 (Not Implemented): 60s. These defaults can be overridden in negative_caching_policy.", "type": "boolean" }, "negativeCachingPolicy": { @@ -31342,13 +31416,34 @@ "type": "integer" }, "ttl": { - "description": "The TTL (in seconds) to cache responses with the corresponding status code for. The maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be evicted from the cache before the defined TTL.", + "description": "The TTL (in seconds) for which to cache responses with the corresponding status code. The maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be evicted from the cache before the defined TTL.", "format": "int32", "type": "integer" } }, "type": "object" }, + "BackendServiceConnectionTrackingPolicy": { + "description": "Connection Tracking configuration for this BackendService.", + "id": "BackendServiceConnectionTrackingPolicy", + "properties": { + "connectionPersistenceOnUnhealthyBackends": { + "description": "Specifies connection persistence when backends are unhealthy. The default value is DEFAULT_FOR_PROTOCOL.\n\nIf set to DEFAULT_FOR_PROTOCOL, the existing connections persist on unhealthy backends only for connection-oriented protocols (TCP and SCTP) and only if the Tracking Mode is PER_CONNECTION (default tracking mode) or the Session Affinity is configured for 5-tuple. They do not persist for UDP.\n\nIf set to NEVER_PERSIST, after a backend becomes unhealthy, the existing connections on the unhealthy backend are never persisted on the unhealthy backend. They are always diverted to newly selected healthy backends (unless all backends are unhealthy).\n\nIf set to ALWAYS_PERSIST, existing connections always persist on unhealthy backends regardless of protocol and session affinity. It is generally not recommended to use this mode overriding the default.", + "enum": [ + "ALWAYS_PERSIST", + "DEFAULT_FOR_PROTOCOL", + "NEVER_PERSIST" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, "BackendServiceFailoverPolicy": { "description": "Applicable only to Failover for Internal TCP/UDP Load Balancing. On failover or failback, this field indicates whether connection draining will be honored. GCP has a fixed connection draining timeout of 10 minutes. A setting of true terminates existing TCP connections to the active pool during failover and failback, immediately draining traffic. A setting of false allows existing TCP connections to persist, even on VMs no longer in the active pool, for up to the duration of the connection draining timeout (10 minutes).", "id": "BackendServiceFailoverPolicy", @@ -31459,6 +31554,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -31500,6 +31596,7 @@ "", "", "", + "", "" ], "type": "string" @@ -31580,6 +31677,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -31621,6 +31719,7 @@ "", "", "", + "", "" ], "type": "string" @@ -32189,6 +32288,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -32230,6 +32330,7 @@ "", "", "", + "", "" ], "type": "string" @@ -32303,6 +32404,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -32344,6 +32446,7 @@ "", "", "", + "", "" ], "type": "string" @@ -32399,6 +32502,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -32440,6 +32544,7 @@ "", "", "", + "", "" ], "type": "string" @@ -33016,6 +33121,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -33057,6 +33163,7 @@ "", "", "", + "", "" ], "type": "string" @@ -33171,6 +33278,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -33212,6 +33320,7 @@ "", "", "", + "", "" ], "type": "string" @@ -33361,6 +33470,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -33402,6 +33512,7 @@ "", "", "", + "", "" ], "type": "string" @@ -33475,6 +33586,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -33516,6 +33628,7 @@ "", "", "", + "", "" ], "type": "string" @@ -33571,6 +33684,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -33612,6 +33726,7 @@ "", "", "", + "", "" ], "type": "string" @@ -33704,6 +33819,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -33745,6 +33861,7 @@ "", "", "", + "", "" ], "type": "string" @@ -33790,8 +33907,22 @@ "DistributionPolicy": { "id": "DistributionPolicy", "properties": { + "targetShape": { + "description": "The shape to which the group converges either proactively or on resize events (depending on the value set in updatePolicy.instanceRedistributionType). The possible values are EVEN and ANY. For EVEN the group attempts to preserve a balanced number of instances across zones. For ANY the group creates new instances where resources are available to fulfill the request; as a result, instances may be distributed unevenly across zones in this mode. The default value is EVEN.", + "enum": [ + "ANY", + "BALANCED", + "EVEN" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + }, "zones": { - "description": "Zones where the regional managed instance group will create and manage instances.", + "description": "Zones where the regional managed instance group will create and manage its instances.", "items": { "$ref": "DistributionPolicyZoneConfiguration" }, @@ -33911,6 +34042,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -33952,6 +34084,7 @@ "", "", "", + "", "" ], "type": "string" @@ -34139,6 +34272,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -34180,6 +34314,7 @@ "", "", "", + "", "" ], "type": "string" @@ -34433,6 +34568,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -34474,6 +34610,7 @@ "", "", "", + "", "" ], "type": "string" @@ -34555,7 +34692,7 @@ "id": "ForwardingRule", "properties": { "IPAddress": { - "description": "IP address that this forwarding rule serves. When a client sends traffic to this IP address, the forwarding rule directs the traffic to the target that you specify in the forwarding rule.\n\nIf you don't specify a reserved IP address, an ephemeral IP address is assigned. Methods for specifying an IP address:\n\n* IPv4 dotted decimal, as in `100.1.2.3` * Full URL, as in https://www.googleapis.com/compute/v1/projects/project_id/regions/region/addresses/address-name * Partial URL or by name, as in: * projects/project_id/regions/region/addresses/address-name * regions/region/addresses/address-name * global/addresses/address-name * address-name \n\nThe loadBalancingScheme and the forwarding rule's target determine the type of IP address that you can use. For detailed information, refer to [IP address specifications](/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications).\n\nMust be set to `0.0.0.0` when the target is targetGrpcProxy that has validateForProxyless field set to true.", + "description": "IP address that this forwarding rule serves. When a client sends traffic to this IP address, the forwarding rule directs the traffic to the target that you specify in the forwarding rule.\n\nIf you don't specify a reserved IP address, an ephemeral IP address is assigned. Methods for specifying an IP address:\n\n* IPv4 dotted decimal, as in `100.1.2.3` * Full URL, as in https://www.googleapis.com/compute/v1/projects/project_id/regions/region/addresses/address-name * Partial URL or by name, as in: * projects/project_id/regions/region/addresses/address-name * regions/region/addresses/address-name * global/addresses/address-name * address-name \n\nThe loadBalancingScheme and the forwarding rule's target determine the type of IP address that you can use. For detailed information, refer to [IP address specifications](/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications).\n\nMust be set to `0.0.0.0` when the target is targetGrpcProxy that has validateForProxyless field set to true.\n\nFor Private Service Connect forwarding rules that forward traffic to Google APIs, IP address must be provided.", "type": "string" }, "IPProtocol": { @@ -34674,7 +34811,7 @@ "type": "string" }, "network": { - "description": "This field is not used for external load balancing.\n\nFor internal load balancing, this field identifies the network that the load balanced IP should belong to for this Forwarding Rule. If this field is not specified, the default network will be used.", + "description": "This field is not used for external load balancing.\n\nFor internal load balancing, this field identifies the network that the load balanced IP should belong to for this Forwarding Rule. If this field is not specified, the default network will be used.\n\nFor Private Service Connect forwarding rules that forward traffic to Google APIs, a network must be provided.", "type": "string" }, "networkTier": { @@ -34729,7 +34866,7 @@ "type": "string" }, "target": { - "description": "The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must be in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object. For more information, see the \"Target\" column in [Port specifications](/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications).", + "description": "The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must be in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object. For more information, see the \"Target\" column in [Port specifications](/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications).\n\nFor Private Service Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported Google API bundle. Currently, the supported Google API bundles include:\n\n \n- vpc-sc - GCP APIs that support VPC Service Controls. For more information about which APIs support VPC Service Controls, refer to VPC-SC supported products and limitations. \n- all-apis - All GCP APIs. For more information about which APIs are supported with this bundle, refer to Private Google Access-specific domains and VIPs.", "type": "string" } }, @@ -34784,6 +34921,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -34825,6 +34963,7 @@ "", "", "", + "", "" ], "type": "string" @@ -34898,6 +35037,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -34939,6 +35079,7 @@ "", "", "", + "", "" ], "type": "string" @@ -35018,6 +35159,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -35059,6 +35201,7 @@ "", "", "", + "", "" ], "type": "string" @@ -35587,6 +35730,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -35628,6 +35772,7 @@ "", "", "", + "", "" ], "type": "string" @@ -35819,6 +35964,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -35860,6 +36006,7 @@ "", "", "", + "", "" ], "type": "string" @@ -35940,6 +36087,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -35981,6 +36129,7 @@ "", "", "", + "", "" ], "type": "string" @@ -36036,6 +36185,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -36077,6 +36227,7 @@ "", "", "", + "", "" ], "type": "string" @@ -36475,6 +36626,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -36516,6 +36668,7 @@ "", "", "", + "", "" ], "type": "string" @@ -36881,6 +37034,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -36922,6 +37076,7 @@ "", "", "", + "", "" ], "type": "string" @@ -37194,6 +37349,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -37235,6 +37391,7 @@ "", "", "", + "", "" ], "type": "string" @@ -37582,6 +37739,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -37623,6 +37781,7 @@ "", "", "", + "", "" ], "type": "string" @@ -37775,6 +37934,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -37816,6 +37976,7 @@ "", "", "", + "", "" ], "type": "string" @@ -37889,6 +38050,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -37930,6 +38092,7 @@ "", "", "", + "", "" ], "type": "string" @@ -37996,7 +38159,7 @@ }, "distributionPolicy": { "$ref": "DistributionPolicy", - "description": "Policy specifying intended distribution of instances in regional managed instance group." + "description": "Policy specifying the intended distribution of managed instances across zones in a regional managed instance group." }, "failoverAction": { "description": "The action to perform in case of zone failure. Only one value is supported, NO_FAILOVER. The default is NO_FAILOVER.", @@ -38025,7 +38188,7 @@ "type": "string" }, "instanceTemplate": { - "description": "The URL of the instance template that is specified for this managed instance group. The group uses this template to create all new instances in the managed instance group.", + "description": "The URL of the instance template that is specified for this managed instance group. The group uses this template to create all new instances in the managed instance group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE.", "type": "string" }, "kind": { @@ -38105,7 +38268,7 @@ "type": "array" }, "zone": { - "description": "[Output Only] The URL of the zone where the managed instance group is located (for zonal resources).", + "description": "[Output Only] The URL of a zone where the managed instance group is located (for zonal resources).", "type": "string" } }, @@ -38211,6 +38374,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -38252,6 +38416,7 @@ "", "", "", + "", "" ], "type": "string" @@ -38341,6 +38506,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -38382,6 +38548,7 @@ "", "", "", + "", "" ], "type": "string" @@ -38574,7 +38741,7 @@ "id": "InstanceGroupManagerVersion", "properties": { "instanceTemplate": { - "description": "The URL of the instance template that is specified for this managed instance group. The group uses this template to create new instances in the managed instance group until the `targetSize` for this version is reached.", + "description": "The URL of the instance template that is specified for this managed instance group. The group uses this template to create new instances in the managed instance group until the `targetSize` for this version is reached. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE; in those cases, existing instances are updated until the `targetSize` for this version is reached.", "type": "string" }, "name": { @@ -38754,6 +38921,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -38795,6 +38963,7 @@ "", "", "", + "", "" ], "type": "string" @@ -38892,6 +39061,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -38933,6 +39103,7 @@ "", "", "", + "", "" ], "type": "string" @@ -38980,7 +39151,7 @@ "id": "InstanceGroupManagersSetInstanceTemplateRequest", "properties": { "instanceTemplate": { - "description": "The URL of the instance template that is specified for this managed instance group. The group uses this template to create all new instances in the managed instance group.", + "description": "The URL of the instance template that is specified for this managed instance group. The group uses this template to create all new instances in the managed instance group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE.", "type": "string" } }, @@ -39072,6 +39243,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -39113,6 +39285,7 @@ "", "", "", + "", "" ], "type": "string" @@ -39199,6 +39372,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -39240,6 +39414,7 @@ "", "", "", + "", "" ], "type": "string" @@ -39331,6 +39506,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -39372,6 +39548,7 @@ "", "", "", + "", "" ], "type": "string" @@ -39445,6 +39622,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -39486,6 +39664,7 @@ "", "", "", + "", "" ], "type": "string" @@ -39821,6 +40000,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -39862,6 +40042,7 @@ "", "", "", + "", "" ], "type": "string" @@ -40044,6 +40225,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -40085,6 +40267,7 @@ "", "", "", + "", "" ], "type": "string" @@ -40633,6 +40816,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -40674,6 +40858,7 @@ "", "", "", + "", "" ], "type": "string" @@ -40747,6 +40932,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -40788,6 +40974,7 @@ "", "", "", + "", "" ], "type": "string" @@ -40874,6 +41061,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -40915,6 +41103,7 @@ "", "", "", + "", "" ], "type": "string" @@ -41134,6 +41323,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -41175,6 +41365,7 @@ "", "", "", + "", "" ], "type": "string" @@ -41352,6 +41543,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -41393,6 +41585,7 @@ "", "", "", + "", "" ], "type": "string" @@ -41753,6 +41946,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -41794,6 +41988,7 @@ "", "", "", + "", "" ], "type": "string" @@ -42079,6 +42274,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -42120,6 +42316,7 @@ "", "", "", + "", "" ], "type": "string" @@ -42284,6 +42481,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -42325,6 +42523,7 @@ "", "", "", + "", "" ], "type": "string" @@ -42398,6 +42597,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -42439,6 +42639,7 @@ "", "", "", + "", "" ], "type": "string" @@ -42494,6 +42695,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -42535,6 +42737,7 @@ "", "", "", + "", "" ], "type": "string" @@ -43096,6 +43299,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -43137,6 +43341,7 @@ "", "", "", + "", "" ], "type": "string" @@ -43286,6 +43491,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -43327,6 +43533,7 @@ "", "", "", + "", "" ], "type": "string" @@ -43455,6 +43662,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -43496,6 +43704,7 @@ "", "", "", + "", "" ], "type": "string" @@ -43551,6 +43760,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -43592,6 +43802,7 @@ "", "", "", + "", "" ], "type": "string" @@ -43733,6 +43944,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -43774,6 +43986,7 @@ "", "", "", + "", "" ], "type": "string" @@ -44103,6 +44316,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -44144,6 +44358,7 @@ "", "", "", + "", "" ], "type": "string" @@ -44249,6 +44464,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -44290,6 +44506,7 @@ "", "", "", + "", "" ], "type": "string" @@ -44460,6 +44677,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -44501,6 +44719,7 @@ "", "", "", + "", "" ], "type": "string" @@ -44556,6 +44775,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -44597,6 +44817,7 @@ "", "", "", + "", "" ], "type": "string" @@ -44789,6 +45010,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -44830,6 +45052,7 @@ "", "", "", + "", "" ], "type": "string" @@ -44903,6 +45126,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -44944,6 +45168,7 @@ "", "", "", + "", "" ], "type": "string" @@ -45014,6 +45239,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -45055,6 +45281,7 @@ "", "", "", + "", "" ], "type": "string" @@ -45196,6 +45423,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -45237,6 +45465,7 @@ "", "", "", + "", "" ], "type": "string" @@ -45310,6 +45539,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -45351,6 +45581,7 @@ "", "", "", + "", "" ], "type": "string" @@ -45406,6 +45637,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -45447,6 +45679,7 @@ "", "", "", + "", "" ], "type": "string" @@ -45589,6 +45822,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -45630,6 +45864,7 @@ "", "", "", + "", "" ], "type": "string" @@ -45802,6 +46037,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -45843,6 +46079,7 @@ "", "", "", + "", "" ], "type": "string" @@ -45929,6 +46166,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -45970,6 +46208,7 @@ "", "", "", + "", "" ], "type": "string" @@ -46043,6 +46282,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -46084,6 +46324,7 @@ "", "", "", + "", "" ], "type": "string" @@ -46139,6 +46380,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -46180,6 +46422,7 @@ "", "", "", + "", "" ], "type": "string" @@ -46479,6 +46722,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -46520,6 +46764,7 @@ "", "", "", + "", "" ], "type": "string" @@ -46567,6 +46812,20 @@ "type": "string" }, "type": "array" + }, + "direction": { + "description": "Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH.", + "enum": [ + "BOTH", + "EGRESS", + "INGRESS" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" } }, "type": "object" @@ -46627,6 +46886,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -46668,6 +46928,7 @@ "", "", "", + "", "" ], "type": "string" @@ -46792,6 +47053,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -46833,6 +47095,7 @@ "", "", "", + "", "" ], "type": "string" @@ -47355,7 +47618,8 @@ "TARGET_VPN_GATEWAYS", "URL_MAPS", "VPN_GATEWAYS", - "VPN_TUNNELS" + "VPN_TUNNELS", + "XPN_SERVICE_PROJECTS" ], "enumDescriptions": [ "", @@ -47464,6 +47728,7 @@ "", "", "", + "", "" ], "type": "string" @@ -47609,6 +47874,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -47650,6 +47916,7 @@ "", "", "", + "", "" ], "type": "string" @@ -47735,6 +48002,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -47776,6 +48044,7 @@ "", "", "", + "", "" ], "type": "string" @@ -47886,6 +48155,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -47927,6 +48197,7 @@ "", "", "", + "", "" ], "type": "string" @@ -48014,6 +48285,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -48055,6 +48327,7 @@ "", "", "", + "", "" ], "type": "string" @@ -48249,6 +48522,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -48290,6 +48564,7 @@ "", "", "", + "", "" ], "type": "string" @@ -48432,6 +48707,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -48473,6 +48749,7 @@ "", "", "", + "", "" ], "type": "string" @@ -48587,6 +48864,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -48628,6 +48906,7 @@ "", "", "", + "", "" ], "type": "string" @@ -48892,6 +49171,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -48933,6 +49213,7 @@ "", "", "", + "", "" ], "type": "string" @@ -49005,6 +49286,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -49046,6 +49328,7 @@ "", "", "", + "", "" ], "type": "string" @@ -49112,6 +49395,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -49153,6 +49437,7 @@ "", "", "", + "", "" ], "type": "string" @@ -49252,6 +49537,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -49293,6 +49579,7 @@ "", "", "", + "", "" ], "type": "string" @@ -49337,7 +49624,7 @@ }, "groupPlacementPolicy": { "$ref": "ResourcePolicyGroupPlacementPolicy", - "description": "Resource policy for instacnes for placement configuration." + "description": "Resource policy for instances for placement configuration." }, "id": { "description": "[Output Only] The unique identifier for the resource. This identifier is defined by the server.", @@ -49442,6 +49729,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -49483,6 +49771,7 @@ "", "", "", + "", "" ], "type": "string" @@ -49627,6 +49916,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -49668,6 +49958,7 @@ "", "", "", + "", "" ], "type": "string" @@ -49896,7 +50187,7 @@ "type": "string" }, "nextHopIlb": { - "description": "The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets. You can only specify the forwarding rule as a partial or full URL. For example, the following are all valid URLs: \n- https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule \n- regions/region/forwardingRules/forwardingRule", + "description": "The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets or the IP address of the forwarding Rule. For example, the following are all valid URLs: \n- 10.128.0.56 \n- https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule \n- regions/region/forwardingRules/forwardingRule", "type": "string" }, "nextHopInstance": { @@ -49964,6 +50255,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -50005,6 +50297,7 @@ "", "", "", + "", "" ], "type": "string" @@ -50080,6 +50373,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -50121,6 +50415,7 @@ "", "", "", + "", "" ], "type": "string" @@ -50295,6 +50590,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -50336,6 +50632,7 @@ "", "", "", + "", "" ], "type": "string" @@ -50635,6 +50932,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -50676,6 +50974,7 @@ "", "", "", + "", "" ], "type": "string" @@ -50718,6 +51017,9 @@ }, "type": "array" }, + "enableEndpointIndependentMapping": { + "type": "boolean" + }, "icmpIdleTimeoutSec": { "description": "Timeout (in seconds) for ICMP connections. Defaults to 30s if not set.", "format": "int32", @@ -51058,6 +51360,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -51099,6 +51402,7 @@ "", "", "", + "", "" ], "type": "string" @@ -51358,6 +51662,36 @@ }, "type": "object" }, + "ScalingScheduleStatus": { + "id": "ScalingScheduleStatus", + "properties": { + "lastStartTime": { + "description": "[Output Only] The last time the scaling schedule became active. Note: this is a timestamp when a schedule actually became active, not when it was planned to do so. The timestamp is an RFC3339 string in RFC3339 text format.", + "type": "string" + }, + "nextStartTime": { + "description": "[Output Only] The next time the scaling schedule will become active. Note: this is a timestamp when a schedule is planned to run, but the actual time might be slightly different. The timestamp is an RFC3339 string in RFC3339 text format.", + "type": "string" + }, + "state": { + "description": "[Output Only] The current state of a scaling schedule.", + "enum": [ + "ACTIVE", + "DISABLED", + "OBSOLETE", + "READY" + ], + "enumDescriptions": [ + "", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, "Scheduling": { "description": "Sets the scheduling options for an Instance. NextID: 13", "id": "Scheduling", @@ -51464,7 +51798,7 @@ "type": "object" }, "SecurityPolicy": { - "description": "Represents a Cloud Armor Security Policy resource.\n\nOnly external backend services that use load balancers can reference a Security Policy. For more information, read Cloud Armor Security Policy Concepts. (== resource_for {$api_version}.securityPolicies ==)", + "description": "Represents a Google Cloud Armor security policy resource.\n\nOnly external backend services that use load balancers can reference a security policy. For more information, see Google Cloud Armor security policy overview. (== resource_for {$api_version}.securityPolicies ==)", "id": "SecurityPolicy", "properties": { "associations": { @@ -51617,6 +51951,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -51658,6 +51993,7 @@ "", "", "", + "", "" ], "type": "string" @@ -52260,6 +52596,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -52301,6 +52638,7 @@ "", "", "", + "", "" ], "type": "string" @@ -52562,6 +52900,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -52603,6 +52942,7 @@ "", "", "", + "", "" ], "type": "string" @@ -52676,6 +53016,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -52717,6 +53058,7 @@ "", "", "", + "", "" ], "type": "string" @@ -52846,6 +53188,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -52887,6 +53230,7 @@ "", "", "", + "", "" ], "type": "string" @@ -52959,6 +53303,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -53000,6 +53345,7 @@ "", "", "", + "", "" ], "type": "string" @@ -53044,7 +53390,7 @@ "type": "object" }, "SslPolicy": { - "description": "Represents a Cloud Armor Security Policy resource.\n\nOnly external backend services used by HTTP or HTTPS load balancers can reference a Security Policy. For more information, read read Cloud Armor Security Policy Concepts. (== resource_for {$api_version}.sslPolicies ==)", + "description": "Represents an SSL Policy resource.\n\nUse SSL policies to control the SSL features, such as versions and cipher suites, offered by an HTTPS or SSL Proxy load balancer. For more information, read SSL Policy Concepts. (== resource_for {$api_version}.sslPolicies ==)", "id": "SslPolicy", "properties": { "creationTimestamp": { @@ -53138,6 +53484,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -53179,6 +53526,7 @@ "", "", "", + "", "" ], "type": "string" @@ -53446,6 +53794,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -53487,6 +53836,7 @@ "", "", "", + "", "" ], "type": "string" @@ -53560,6 +53910,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -53601,6 +53952,7 @@ "", "", "", + "", "" ], "type": "string" @@ -53742,6 +54094,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -53783,6 +54136,7 @@ "", "", "", + "", "" ], "type": "string" @@ -53988,6 +54342,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -54029,6 +54384,7 @@ "", "", "", + "", "" ], "type": "string" @@ -54084,6 +54440,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -54125,6 +54482,7 @@ "", "", "", + "", "" ], "type": "string" @@ -54196,7 +54554,7 @@ "type": "string" }, "proxyBind": { - "description": "This field only applies when the loadBalancingScheme is INTERNAL_SELF_MANAGED. When set to true the Envoy binds on the IP address specified by the forwarding rule. Default is false.", + "description": "This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.\n\nWhen this field is set to true, Envoy proxies set up inbound traffic interception and bind to the IP address and port specified in the forwarding rule. This is generally useful when using Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy proxy listens for inbound requests and handles requests when it receives them.\n\nThe default is false.", "type": "boolean" }, "region": { @@ -54263,6 +54621,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -54304,6 +54663,7 @@ "", "", "", + "", "" ], "type": "string" @@ -54377,6 +54737,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -54418,6 +54779,7 @@ "", "", "", + "", "" ], "type": "string" @@ -54473,6 +54835,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -54514,6 +54877,7 @@ "", "", "", + "", "" ], "type": "string" @@ -54625,7 +54989,7 @@ "type": "string" }, "proxyBind": { - "description": "This field only applies when the loadBalancingScheme is INTERNAL_SELF_MANAGED. When set to true the Envoy binds on the IP address specified by the forwarding rule. Default is false.", + "description": "This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.\n\nWhen this field is set to true, Envoy proxies set up inbound traffic interception and bind to the IP address and port specified in the forwarding rule. This is generally useful when using Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy proxy listens for inbound requests and handles requests when it receives them.\n\nThe default is false.", "type": "boolean" }, "quicOverride": { @@ -54721,6 +55085,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -54762,6 +55127,7 @@ "", "", "", + "", "" ], "type": "string" @@ -54835,6 +55201,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -54876,6 +55243,7 @@ "", "", "", + "", "" ], "type": "string" @@ -55012,6 +55380,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -55053,6 +55422,7 @@ "", "", "", + "", "" ], "type": "string" @@ -55126,6 +55496,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -55167,6 +55538,7 @@ "", "", "", + "", "" ], "type": "string" @@ -55222,6 +55594,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -55263,6 +55636,7 @@ "", "", "", + "", "" ], "type": "string" @@ -55299,7 +55673,7 @@ "id": "TargetPool", "properties": { "backupPool": { - "description": "This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its failoverRatio field is properly set to a value between [0, 1].\n\nbackupPool and failoverRatio together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below failoverRatio, traffic arriving at the load-balanced IP will be directed to the backup pool.\n\nIn case where failoverRatio and backupPool are not set, or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the \"force\" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy.", + "description": "The server-defined URL for the resource. This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its failoverRatio field is properly set to a value between [0, 1].\n\nbackupPool and failoverRatio together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below failoverRatio, traffic arriving at the load-balanced IP will be directed to the backup pool.\n\nIn case where failoverRatio and backupPool are not set, or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the \"force\" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy.", "type": "string" }, "creationTimestamp": { @@ -55426,6 +55800,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -55467,6 +55842,7 @@ "", "", "", + "", "" ], "type": "string" @@ -55557,6 +55933,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -55598,6 +55975,7 @@ "", "", "", + "", "" ], "type": "string" @@ -55705,6 +56083,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -55746,6 +56125,7 @@ "", "", "", + "", "" ], "type": "string" @@ -55930,6 +56310,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -55971,6 +56352,7 @@ "", "", "", + "", "" ], "type": "string" @@ -56057,6 +56439,10 @@ "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", "type": "string" }, + "proxyBind": { + "description": "This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.\n\nWhen this field is set to true, Envoy proxies set up inbound traffic interception and bind to the IP address and port specified in the forwarding rule. This is generally useful when using Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy proxy listens for inbound requests and handles requests when it receives them.\n\nThe default is false.", + "type": "boolean" + }, "proxyHeader": { "description": "Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.", "enum": [ @@ -56122,6 +56508,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -56163,6 +56550,7 @@ "", "", "", + "", "" ], "type": "string" @@ -56337,6 +56725,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -56378,6 +56767,7 @@ "", "", "", + "", "" ], "type": "string" @@ -56451,6 +56841,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -56492,6 +56883,7 @@ "", "", "", + "", "" ], "type": "string" @@ -56547,6 +56939,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -56588,6 +56981,7 @@ "", "", "", + "", "" ], "type": "string" @@ -56789,6 +57183,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -56830,6 +57225,7 @@ "", "", "", + "", "" ], "type": "string" @@ -56969,6 +57365,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -57010,6 +57407,7 @@ "", "", "", + "", "" ], "type": "string" @@ -57065,6 +57463,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -57106,6 +57505,7 @@ "", "", "", + "", "" ], "type": "string" @@ -57253,6 +57653,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -57294,6 +57695,7 @@ "", "", "", + "", "" ], "type": "string" @@ -57438,6 +57840,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -57479,6 +57882,7 @@ "", "", "", + "", "" ], "type": "string" @@ -57630,6 +58034,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -57671,6 +58076,7 @@ "", "", "", + "", "" ], "type": "string" @@ -57744,6 +58150,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -57785,6 +58192,7 @@ "", "", "", + "", "" ], "type": "string" @@ -57954,6 +58362,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -57995,6 +58404,7 @@ "", "", "", + "", "" ], "type": "string" @@ -58229,6 +58639,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -58270,6 +58681,7 @@ "", "", "", + "", "" ], "type": "string" @@ -58343,6 +58755,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -58384,6 +58797,7 @@ "", "", "", + "", "" ], "type": "string" @@ -58439,6 +58853,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -58480,6 +58895,7 @@ "", "", "", + "", "" ], "type": "string" @@ -58606,6 +59022,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -58647,6 +59064,7 @@ "", "", "", + "", "" ], "type": "string" @@ -58803,6 +59221,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -58844,6 +59263,7 @@ "", "", "", + "", "" ], "type": "string" diff --git a/compute/v0.beta/compute-gen.go b/compute/v0.beta/compute-gen.go index b4198a217a3..0938a8010f0 100644 --- a/compute/v0.beta/compute-gen.go +++ b/compute/v0.beta/compute-gen.go @@ -1263,6 +1263,7 @@ type AcceleratorTypeAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -1420,6 +1421,7 @@ type AcceleratorTypeListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -1556,6 +1558,7 @@ type AcceleratorTypesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -1841,13 +1844,14 @@ type Address struct { // - `NAT_AUTO` for addresses that are external IP addresses // automatically reserved for Cloud NAT. // - `IPSEC_INTERCONNECT` for addresses created from a private IP range - // reserved for a VLAN attachment in an IPsec over Interconnect - // configuration. These addresses are regional resources. + // that are reserved for a VLAN attachment in an IPsec encrypted + // Interconnect configuration. These addresses are regional resources. // // Possible values: // "DNS_RESOLVER" // "GCE_ENDPOINT" // "NAT_AUTO" + // "PRIVATE_SERVICE_CONNECT" // "SHARED_LOADBALANCER_VIP" // "VPC_PEERING" Purpose string `json:"purpose,omitempty"` @@ -1981,6 +1985,7 @@ type AddressAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -2137,6 +2142,7 @@ type AddressListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -2271,6 +2277,7 @@ type AddressesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -2965,7 +2972,7 @@ func (s *AuthorizationLoggingOptions) MarshalJSON() ([]byte, error) { // // Google Compute Engine has two Autoscaler resources: // -// * [Global](/compute/docs/reference/rest/{$api_version}/autoscalers) * +// * [Zonal](/compute/docs/reference/rest/{$api_version}/autoscalers) * // [Regional](/compute/docs/reference/rest/{$api_version}/regionAutoscale // rs) // @@ -3025,6 +3032,10 @@ type Autoscaler struct { // resides (for autoscalers living in regional scope). Region string `json:"region,omitempty"` + // ScalingScheduleStatus: [Output Only] Status information of existing + // scaling schedules. + ScalingScheduleStatus map[string]ScalingScheduleStatus `json:"scalingScheduleStatus,omitempty"` + // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` @@ -3159,6 +3170,7 @@ type AutoscalerAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -3315,6 +3327,7 @@ type AutoscalerListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -3543,6 +3556,7 @@ type AutoscalersScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -3683,6 +3697,13 @@ type AutoscalingPolicy struct { ScaleInControl *AutoscalingPolicyScaleInControl `json:"scaleInControl,omitempty"` + // ScalingSchedules: Scaling schedules defined for an autoscaler. + // Multiple schedules can be set on an autoscaler and they can overlap. + // During overlapping periods the greatest min_required_replicas of all + // scaling schedules will be applied. Up to 128 scaling schedules are + // allowed. + ScalingSchedules map[string]AutoscalingPolicyScalingSchedule `json:"scalingSchedules,omitempty"` + // ForceSendFields is a list of field names (e.g. "CoolDownPeriodSec") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, @@ -4025,6 +4046,69 @@ func (s *AutoscalingPolicyScaleInControl) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AutoscalingPolicyScalingSchedule: Scaling based on user-defined +// schedule. The message describes a single scaling schedule. A scaling +// schedule changes the minimum number of VM instances an autoscaler can +// recommend, which can trigger scaling out. +type AutoscalingPolicyScalingSchedule struct { + // Description: A description of a scaling schedule. + Description string `json:"description,omitempty"` + + // Disabled: A boolean value that specifies if a scaling schedule can + // influence autoscaler recommendations. If set to true, then a scaling + // schedule has no effect. This field is optional and its value is false + // by default. + Disabled bool `json:"disabled,omitempty"` + + // DurationSec: The duration of time intervals (in seconds) for which + // this scaling schedule will be running. The minimum allowed value is + // 300. This field is required. + DurationSec int64 `json:"durationSec,omitempty"` + + // MinRequiredReplicas: Minimum number of VM instances that autoscaler + // will recommend in time intervals starting according to schedule. This + // field is required. + MinRequiredReplicas int64 `json:"minRequiredReplicas,omitempty"` + + // Schedule: The start timestamps of time intervals when this scaling + // schedule should provide a scaling signal. This field uses the + // extended cron format (with an optional year field). The expression + // may describe a single timestamp if the optional year is set, in which + // case a scaling schedule will run once. schedule is interpreted with + // respect to time_zone. This field is required. NOTE: these timestamps + // only describe when autoscaler will start providing the scaling + // signal. The VMs will need additional time to become serving. + Schedule string `json:"schedule,omitempty"` + + // TimeZone: The time zone to be used when interpreting the schedule. + // The value of this field must be a time zone name from the tz + // database: http://en.wikipedia.org/wiki/Tz_database. This field will + // be assigned a default value of ?UTC? if left empty. + TimeZone string `json:"timeZone,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Description") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AutoscalingPolicyScalingSchedule) MarshalJSON() ([]byte, error) { + type NoMethod AutoscalingPolicyScalingSchedule + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Backend: Message containing information of one individual backend. type Backend struct { // BalancingMode: Specifies the balancing mode for the backend. @@ -4389,13 +4473,18 @@ type BackendBucketCdnPolicy struct { // NegativeCaching: Negative caching allows per-status code TTLs to be // set, in order to apply fine-grained caching for common errors or // redirects. This can reduce the load on your origin and improve - // end-user experience by reducing response latency. By default, Cloud - // CDN will apply the following default TTLs to these status codes: HTTP - // 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 - // (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s - // HTTP 405 (Method Not Found), 421 (Misdirected Request), 501 (Not - // Implemented): 60s These defaults can be overridden in - // negative_caching_policy + // end-user experience by reducing response latency. When the cache mode + // is set to CACHE_ALL_STATIC or USE_ORIGIN_HEADERS, negative caching + // applies to responses with the specified response code that lack any + // Cache-Control, Expires, or Pragma: no-cache directives. When the + // cache mode is set to FORCE_CACHE_ALL, negative caching applies to all + // responses with the specified response code, and override any caching + // headers. By default, Cloud CDN will apply the following default TTLs + // to these status codes: HTTP 300 (Multiple Choice), 301, 308 + // (Permanent Redirects): 10m HTTP 404 (Not Found), 410 (Gone), 451 + // (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), + // 421 (Misdirected Request), 501 (Not Implemented): 60s. These defaults + // can be overridden in negative_caching_policy. NegativeCaching bool `json:"negativeCaching,omitempty"` // NegativeCachingPolicy: Sets a cache TTL for the specified HTTP status @@ -4500,10 +4589,10 @@ type BackendBucketCdnPolicyNegativeCachingPolicy struct { // once. Code int64 `json:"code,omitempty"` - // Ttl: The TTL (in seconds) to cache responses with the corresponding - // status code for. The maximum allowed value is 1800s (30 minutes), - // noting that infrequently accessed objects may be evicted from the - // cache before the defined TTL. + // Ttl: The TTL (in seconds) for which to cache responses with the + // corresponding status code. The maximum allowed value is 1800s (30 + // minutes), noting that infrequently accessed objects may be evicted + // from the cache before the defined TTL. Ttl int64 `json:"ttl,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") to @@ -4598,6 +4687,7 @@ type BackendBucketListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -4746,6 +4836,8 @@ type BackendService struct { ConnectionDraining *ConnectionDraining `json:"connectionDraining,omitempty"` + ConnectionTrackingPolicy *BackendServiceConnectionTrackingPolicy `json:"connectionTrackingPolicy,omitempty"` + // ConsistentHash: Consistent Hash-based load balancing can be used to // provide soft session affinity based on HTTP headers, cookies or other // properties. This load balancing policy is applicable only for HTTP @@ -5119,6 +5211,7 @@ type BackendServiceAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -5275,13 +5368,18 @@ type BackendServiceCdnPolicy struct { // NegativeCaching: Negative caching allows per-status code TTLs to be // set, in order to apply fine-grained caching for common errors or // redirects. This can reduce the load on your origin and improve - // end-user experience by reducing response latency. By default, Cloud - // CDN will apply the following default TTLs to these status codes: HTTP - // 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 - // (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s - // HTTP 405 (Method Not Found), 421 (Misdirected Request), 501 (Not - // Implemented): 60s These defaults can be overridden in - // negative_caching_policy + // end-user experience by reducing response latency. When the cache mode + // is set to CACHE_ALL_STATIC or USE_ORIGIN_HEADERS, negative caching + // applies to responses with the specified response code that lack any + // Cache-Control, Expires, or Pragma: no-cache directives. When the + // cache mode is set to FORCE_CACHE_ALL, negative caching applies to all + // responses with the specified response code, and override any caching + // headers. By default, Cloud CDN will apply the following default TTLs + // to these status codes: HTTP 300 (Multiple Choice), 301, 308 + // (Permanent Redirects): 10m HTTP 404 (Not Found), 410 (Gone), 451 + // (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), + // 421 (Misdirected Request), 501 (Not Implemented): 60s. These defaults + // can be overridden in negative_caching_policy. NegativeCaching bool `json:"negativeCaching,omitempty"` // NegativeCachingPolicy: Sets a cache TTL for the specified HTTP status @@ -5386,10 +5484,10 @@ type BackendServiceCdnPolicyNegativeCachingPolicy struct { // once. Code int64 `json:"code,omitempty"` - // Ttl: The TTL (in seconds) to cache responses with the corresponding - // status code for. The maximum allowed value is 1800s (30 minutes), - // noting that infrequently accessed objects may be evicted from the - // cache before the defined TTL. + // Ttl: The TTL (in seconds) for which to cache responses with the + // corresponding status code. The maximum allowed value is 1800s (30 + // minutes), noting that infrequently accessed objects may be evicted + // from the cache before the defined TTL. Ttl int64 `json:"ttl,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") to @@ -5415,6 +5513,59 @@ func (s *BackendServiceCdnPolicyNegativeCachingPolicy) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// BackendServiceConnectionTrackingPolicy: Connection Tracking +// configuration for this BackendService. +type BackendServiceConnectionTrackingPolicy struct { + // ConnectionPersistenceOnUnhealthyBackends: Specifies connection + // persistence when backends are unhealthy. The default value is + // DEFAULT_FOR_PROTOCOL. + // + // If set to DEFAULT_FOR_PROTOCOL, the existing connections persist on + // unhealthy backends only for connection-oriented protocols (TCP and + // SCTP) and only if the Tracking Mode is PER_CONNECTION (default + // tracking mode) or the Session Affinity is configured for 5-tuple. + // They do not persist for UDP. + // + // If set to NEVER_PERSIST, after a backend becomes unhealthy, the + // existing connections on the unhealthy backend are never persisted on + // the unhealthy backend. They are always diverted to newly selected + // healthy backends (unless all backends are unhealthy). + // + // If set to ALWAYS_PERSIST, existing connections always persist on + // unhealthy backends regardless of protocol and session affinity. It is + // generally not recommended to use this mode overriding the default. + // + // Possible values: + // "ALWAYS_PERSIST" + // "DEFAULT_FOR_PROTOCOL" + // "NEVER_PERSIST" + ConnectionPersistenceOnUnhealthyBackends string `json:"connectionPersistenceOnUnhealthyBackends,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ConnectionPersistenceOnUnhealthyBackends") to unconditionally + // include in API requests. By default, fields with empty values are + // omitted from API requests. However, any non-pointer, non-interface + // field appearing in ForceSendFields will be sent to the server + // regardless of whether the field is empty or not. This may be used to + // include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "ConnectionPersistenceOnUnhealthyBackends") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *BackendServiceConnectionTrackingPolicy) MarshalJSON() ([]byte, error) { + type NoMethod BackendServiceConnectionTrackingPolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // BackendServiceFailoverPolicy: Applicable only to Failover for // Internal TCP/UDP Load Balancing. On failover or failback, this field // indicates whether connection draining will be honored. GCP has a @@ -5642,6 +5793,7 @@ type BackendServiceListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -5855,6 +6007,7 @@ type BackendServicesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -6632,6 +6785,7 @@ type CommitmentAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -6788,6 +6942,7 @@ type CommitmentListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -6923,6 +7078,7 @@ type CommitmentsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -7817,6 +7973,7 @@ type DiskAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -8038,6 +8195,7 @@ type DiskListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -8332,6 +8490,7 @@ type DiskTypeAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -8488,6 +8647,7 @@ type DiskTypeListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -8623,6 +8783,7 @@ type DiskTypesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -8842,6 +9003,7 @@ type DisksScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -8958,11 +9120,26 @@ func (s *DisplayDevice) MarshalJSON() ([]byte, error) { } type DistributionPolicy struct { + // TargetShape: The shape to which the group converges either + // proactively or on resize events (depending on the value set in + // updatePolicy.instanceRedistributionType). The possible values are + // EVEN and ANY. For EVEN the group attempts to preserve a balanced + // number of instances across zones. For ANY the group creates new + // instances where resources are available to fulfill the request; as a + // result, instances may be distributed unevenly across zones in this + // mode. The default value is EVEN. + // + // Possible values: + // "ANY" + // "BALANCED" + // "EVEN" + TargetShape string `json:"targetShape,omitempty"` + // Zones: Zones where the regional managed instance group will create - // and manage instances. + // and manage its instances. Zones []*DistributionPolicyZoneConfiguration `json:"zones,omitempty"` - // ForceSendFields is a list of field names (e.g. "Zones") to + // ForceSendFields is a list of field names (e.g. "TargetShape") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -8970,10 +9147,10 @@ type DistributionPolicy struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Zones") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "TargetShape") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` @@ -9171,6 +9348,7 @@ type ExchangedPeeringRoutesListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -9543,6 +9721,7 @@ type ExternalVpnGatewayListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -9990,6 +10169,7 @@ type FirewallListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -10202,6 +10382,9 @@ type ForwardingRule struct { // // Must be set to `0.0.0.0` when the target is targetGrpcProxy that has // validateForProxyless field set to true. + // + // For Private Service Connect forwarding rules that forward traffic to + // Google APIs, IP address must be provided. IPAddress string `json:"IPAddress,omitempty"` // IPProtocol: The IP protocol to which this rule applies. For protocol @@ -10372,6 +10555,9 @@ type ForwardingRule struct { // For internal load balancing, this field identifies the network that // the load balanced IP should belong to for this Forwarding Rule. If // this field is not specified, the default network will be used. + // + // For Private Service Connect forwarding rules that forward traffic to + // Google APIs, a network must be provided. Network string `json:"network,omitempty"` // NetworkTier: This signifies the networking tier used for configuring @@ -10485,6 +10671,18 @@ type ForwardingRule struct { // information, see the "Target" column in [Port // specifications](/load-balancing/docs/forwarding-rule-concepts#ip_addre // ss_specifications). + // + // For Private Service Connect forwarding rules that forward traffic to + // Google APIs, provide the name of a supported Google API bundle. + // Currently, the supported Google API bundles include: + // + // + // - vpc-sc - GCP APIs that support VPC Service Controls. For more + // information about which APIs support VPC Service Controls, refer to + // VPC-SC supported products and limitations. + // - all-apis - All GCP APIs. For more information about which APIs are + // supported with this bundle, refer to Private Google Access-specific + // domains and VIPs. Target string `json:"target,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -10586,6 +10784,7 @@ type ForwardingRuleAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -10742,6 +10941,7 @@ type ForwardingRuleListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -10940,6 +11140,7 @@ type ForwardingRulesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -11813,6 +12014,7 @@ type HealthCheckListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -12198,6 +12400,7 @@ type HealthCheckServicesListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -12356,6 +12559,7 @@ type HealthChecksAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -12490,6 +12694,7 @@ type HealthChecksScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -13240,6 +13445,7 @@ type HttpHealthCheckListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -13980,6 +14186,7 @@ type HttpsHealthCheckListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -14395,6 +14602,7 @@ type ImageListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -14854,6 +15062,7 @@ type InstanceAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -15126,6 +15335,7 @@ type InstanceGroupAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -15283,6 +15493,7 @@ type InstanceGroupListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -15407,8 +15618,8 @@ type InstanceGroupManager struct { // property when you create the resource. Description string `json:"description,omitempty"` - // DistributionPolicy: Policy specifying intended distribution of - // instances in regional managed instance group. + // DistributionPolicy: Policy specifying the intended distribution of + // managed instances across zones in a regional managed instance group. DistributionPolicy *DistributionPolicy `json:"distributionPolicy,omitempty"` // FailoverAction: The action to perform in case of zone failure. Only @@ -15438,7 +15649,10 @@ type InstanceGroupManager struct { // InstanceTemplate: The URL of the instance template that is specified // for this managed instance group. The group uses this template to - // create all new instances in the managed instance group. + // create all new instances in the managed instance group. The templates + // for existing instances in the group do not change unless you run + // recreateInstances, run applyUpdatesToInstances, or set the group's + // updatePolicy.type to PROACTIVE. InstanceTemplate string `json:"instanceTemplate,omitempty"` // Kind: [Output Only] The resource type, which is always @@ -15508,7 +15722,7 @@ type InstanceGroupManager struct { // remaining instances. For more information, read about canary updates. Versions []*InstanceGroupManagerVersion `json:"versions,omitempty"` - // Zone: [Output Only] The URL of the zone where the managed instance + // Zone: [Output Only] The URL of a zone where the managed instance // group is located (for zonal resources). Zone string `json:"zone,omitempty"` @@ -15693,6 +15907,7 @@ type InstanceGroupManagerAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -15888,6 +16103,7 @@ type InstanceGroupManagerListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -16289,7 +16505,11 @@ type InstanceGroupManagerVersion struct { // InstanceTemplate: The URL of the instance template that is specified // for this managed instance group. The group uses this template to // create new instances in the managed instance group until the - // `targetSize` for this version is reached. + // `targetSize` for this version is reached. The templates for existing + // instances in the group do not change unless you run + // recreateInstances, run applyUpdatesToInstances, or set the group's + // updatePolicy.type to PROACTIVE; in those cases, existing instances + // are updated until the `targetSize` for this version is reached. InstanceTemplate string `json:"instanceTemplate,omitempty"` // Name: Name of the version. Unique among all versions in the scope of @@ -16658,6 +16878,7 @@ type InstanceGroupManagersListPerInstanceConfigsRespWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -16910,6 +17131,7 @@ type InstanceGroupManagersScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -17027,7 +17249,10 @@ func (s *InstanceGroupManagersSetAutoHealingRequest) MarshalJSON() ([]byte, erro type InstanceGroupManagersSetInstanceTemplateRequest struct { // InstanceTemplate: The URL of the instance template that is specified // for this managed instance group. The group uses this template to - // create all new instances in the managed instance group. + // create all new instances in the managed instance group. The templates + // for existing instances in the group do not change unless you run + // recreateInstances, run applyUpdatesToInstances, or set the group's + // updatePolicy.type to PROACTIVE. InstanceTemplate string `json:"instanceTemplate,omitempty"` // ForceSendFields is a list of field names (e.g. "InstanceTemplate") to @@ -17221,6 +17446,7 @@ type InstanceGroupsListInstancesWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -17419,6 +17645,7 @@ type InstanceGroupsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -17612,6 +17839,7 @@ type InstanceListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -17769,6 +17997,7 @@ type InstanceListReferrersWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -18307,6 +18536,7 @@ type InstanceTemplateListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -18654,6 +18884,7 @@ type InstancesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -19519,6 +19750,7 @@ type InterconnectAttachmentAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -19678,6 +19910,7 @@ type InterconnectAttachmentListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -19892,6 +20125,7 @@ type InterconnectAttachmentsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -20317,6 +20551,7 @@ type InterconnectListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -20595,6 +20830,7 @@ type InterconnectLocationListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -21159,6 +21395,7 @@ type LicensesListResponseWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -21671,6 +21908,7 @@ type MachineImageListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -21952,6 +22190,7 @@ type MachineTypeAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -22108,6 +22347,7 @@ type MachineTypeListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -22243,6 +22483,7 @@ type MachineTypesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -23164,6 +23405,7 @@ type NetworkEndpointGroupAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -23532,6 +23774,7 @@ type NetworkEndpointGroupListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -23810,6 +24053,7 @@ type NetworkEndpointGroupsListNetworkEndpointsWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -23948,6 +24192,7 @@ type NetworkEndpointGroupsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -24222,6 +24467,7 @@ type NetworkListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -24788,6 +25034,7 @@ type NodeGroupAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -24985,6 +25232,7 @@ type NodeGroupListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -25259,6 +25507,7 @@ type NodeGroupsListNodesWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -25394,6 +25643,7 @@ type NodeGroupsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -25700,6 +25950,7 @@ type NodeTemplateAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -25856,6 +26107,7 @@ type NodeTemplateListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -26021,6 +26273,7 @@ type NodeTemplatesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -26261,6 +26514,7 @@ type NodeTypeAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -26417,6 +26671,7 @@ type NodeTypeListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -26552,6 +26807,7 @@ type NodeTypesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -26835,6 +27091,7 @@ type NotificationEndpointListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -27153,6 +27410,7 @@ type OperationWarnings struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -27312,6 +27570,7 @@ type OperationAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -27468,6 +27727,7 @@ type OperationListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -27603,6 +27863,7 @@ type OperationsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -28060,6 +28321,7 @@ type PacketMirroringAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -28161,6 +28423,15 @@ type PacketMirroringFilter struct { // IPProtocols is specified, all traffic is mirrored. CidrRanges []string `json:"cidrRanges,omitempty"` + // Direction: Direction of traffic to mirror, either INGRESS, EGRESS, or + // BOTH. The default is BOTH. + // + // Possible values: + // "BOTH" + // "EGRESS" + // "INGRESS" + Direction string `json:"direction,omitempty"` + // ForceSendFields is a list of field names (e.g. "IPProtocols") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, @@ -28286,6 +28557,7 @@ type PacketMirroringListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -28562,6 +28834,7 @@ type PacketMirroringsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -29493,6 +29766,7 @@ type Quota struct { // "URL_MAPS" // "VPN_GATEWAYS" // "VPN_TUNNELS" + // "XPN_SERVICE_PROJECTS" Metric string `json:"metric,omitempty"` // Owner: [Output Only] Owning resource. This is the resource on which @@ -29723,6 +29997,7 @@ type RegionAutoscalerListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -29907,6 +30182,7 @@ type RegionDiskTypeListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -30147,6 +30423,7 @@ type RegionInstanceGroupListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -30336,6 +30613,7 @@ type RegionInstanceGroupManagerListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -30740,6 +31018,7 @@ type RegionInstanceGroupManagersListInstanceConfigsRespWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -31054,6 +31333,7 @@ type RegionInstanceGroupsListInstancesWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -31283,6 +31563,7 @@ type RegionListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -31747,6 +32028,7 @@ type ReservationAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -31902,6 +32184,7 @@ type ReservationListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -32065,6 +32348,7 @@ type ReservationsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -32276,6 +32560,7 @@ type ResourcePoliciesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -32376,7 +32661,7 @@ type ResourcePolicy struct { Description string `json:"description,omitempty"` - // GroupPlacementPolicy: Resource policy for instacnes for placement + // GroupPlacementPolicy: Resource policy for instances for placement // configuration. GroupPlacementPolicy *ResourcePolicyGroupPlacementPolicy `json:"groupPlacementPolicy,omitempty"` @@ -32519,6 +32804,7 @@ type ResourcePolicyAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -32799,6 +33085,7 @@ type ResourcePolicyListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -33163,9 +33450,10 @@ type Route struct { NextHopGateway string `json:"nextHopGateway,omitempty"` // NextHopIlb: The URL to a forwarding rule of type - // loadBalancingScheme=INTERNAL that should handle matching packets. You - // can only specify the forwarding rule as a partial or full URL. For - // example, the following are all valid URLs: + // loadBalancingScheme=INTERNAL that should handle matching packets or + // the IP address of the forwarding Rule. For example, the following are + // all valid URLs: + // - 10.128.0.56 // - // https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule // - regions/region/forwardingRules/forwardingRule @@ -33260,6 +33548,7 @@ type RouteWarnings struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -33415,6 +33704,7 @@ type RouteListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -33692,6 +33982,7 @@ type RouterAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -34164,6 +34455,7 @@ type RouterListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -34263,6 +34555,8 @@ type RouterNat struct { // NAT. These IPs should be used for updating/patching a NAT only. DrainNatIps []string `json:"drainNatIps,omitempty"` + EnableEndpointIndependentMapping bool `json:"enableEndpointIndependentMapping,omitempty"` + // IcmpIdleTimeoutSec: Timeout (in seconds) for ICMP connections. // Defaults to 30s if not set. IcmpIdleTimeoutSec int64 `json:"icmpIdleTimeoutSec,omitempty"` @@ -34718,6 +35012,7 @@ type RoutersScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -35045,6 +35340,51 @@ func (s *SavedAttachedDisk) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type ScalingScheduleStatus struct { + // LastStartTime: [Output Only] The last time the scaling schedule + // became active. Note: this is a timestamp when a schedule actually + // became active, not when it was planned to do so. The timestamp is an + // RFC3339 string in RFC3339 text format. + LastStartTime string `json:"lastStartTime,omitempty"` + + // NextStartTime: [Output Only] The next time the scaling schedule will + // become active. Note: this is a timestamp when a schedule is planned + // to run, but the actual time might be slightly different. The + // timestamp is an RFC3339 string in RFC3339 text format. + NextStartTime string `json:"nextStartTime,omitempty"` + + // State: [Output Only] The current state of a scaling schedule. + // + // Possible values: + // "ACTIVE" + // "DISABLED" + // "OBSOLETE" + // "READY" + State string `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LastStartTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "LastStartTime") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ScalingScheduleStatus) MarshalJSON() ([]byte, error) { + type NoMethod ScalingScheduleStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Scheduling: Sets the scheduling options for an Instance. NextID: 13 type Scheduling struct { // AutomaticRestart: Specifies whether the instance should be @@ -35242,12 +35582,13 @@ func (s *SecurityPoliciesWafConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SecurityPolicy: Represents a Cloud Armor Security Policy +// SecurityPolicy: Represents a Google Cloud Armor security policy // resource. // // Only external backend services that use load balancers can reference -// a Security Policy. For more information, read Cloud Armor Security -// Policy Concepts. (== resource_for {$api_version}.securityPolicies ==) +// a security policy. For more information, see Google Cloud Armor +// security policy overview. (== resource_for +// {$api_version}.securityPolicies ==) type SecurityPolicy struct { // Associations: A list of associations that belong to this policy. Associations []*SecurityPolicyAssociation `json:"associations,omitempty"` @@ -35480,6 +35821,7 @@ type SecurityPolicyListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -36550,6 +36892,7 @@ type SnapshotListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -36995,6 +37338,7 @@ type SslCertificateAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -37151,6 +37495,7 @@ type SslCertificateListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -37366,6 +37711,7 @@ type SslCertificatesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -37521,6 +37867,7 @@ type SslPoliciesListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -37638,11 +37985,11 @@ func (s *SslPoliciesListAvailableFeaturesResponse) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SslPolicy: Represents a Cloud Armor Security Policy resource. +// SslPolicy: Represents an SSL Policy resource. // -// Only external backend services used by HTTP or HTTPS load balancers -// can reference a Security Policy. For more information, read read -// Cloud Armor Security Policy Concepts. (== resource_for +// Use SSL policies to control the SSL features, such as versions and +// cipher suites, offered by an HTTPS or SSL Proxy load balancer. For +// more information, read SSL Policy Concepts. (== resource_for // {$api_version}.sslPolicies ==) type SslPolicy struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text @@ -37763,6 +38110,7 @@ type SslPolicyWarnings struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -38241,6 +38589,7 @@ type SubnetworkAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -38397,6 +38746,7 @@ type SubnetworkListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -38691,6 +39041,7 @@ type SubnetworksScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -39081,6 +39432,7 @@ type TargetGrpcProxyListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -39217,6 +39569,7 @@ type TargetHttpProxiesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -39367,9 +39720,18 @@ type TargetHttpProxy struct { // last character, which cannot be a dash. Name string `json:"name,omitempty"` - // ProxyBind: This field only applies when the loadBalancingScheme is - // INTERNAL_SELF_MANAGED. When set to true the Envoy binds on the IP - // address specified by the forwarding rule. Default is false. + // ProxyBind: This field only applies when the forwarding rule that + // references this target proxy has a loadBalancingScheme set to + // INTERNAL_SELF_MANAGED. + // + // When this field is set to true, Envoy proxies set up inbound traffic + // interception and bind to the IP address and port specified in the + // forwarding rule. This is generally useful when using Traffic Director + // to configure Envoy as a gateway or middle proxy (in other words, not + // a sidecar proxy). The Envoy proxy listens for inbound requests and + // handles requests when it receives them. + // + // The default is false. ProxyBind bool `json:"proxyBind,omitempty"` // Region: [Output Only] URL of the region where the regional Target @@ -39485,6 +39847,7 @@ type TargetHttpProxyAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -39642,6 +40005,7 @@ type TargetHttpProxyListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -39778,6 +40142,7 @@ type TargetHttpsProxiesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -39999,9 +40364,18 @@ type TargetHttpsProxy struct { // last character, which cannot be a dash. Name string `json:"name,omitempty"` - // ProxyBind: This field only applies when the loadBalancingScheme is - // INTERNAL_SELF_MANAGED. When set to true the Envoy binds on the IP - // address specified by the forwarding rule. Default is false. + // ProxyBind: This field only applies when the forwarding rule that + // references this target proxy has a loadBalancingScheme set to + // INTERNAL_SELF_MANAGED. + // + // When this field is set to true, Envoy proxies set up inbound traffic + // interception and bind to the IP address and port specified in the + // forwarding rule. This is generally useful when using Traffic Director + // to configure Envoy as a gateway or middle proxy (in other words, not + // a sidecar proxy). The Envoy proxy listens for inbound requests and + // handles requests when it receives them. + // + // The default is false. ProxyBind bool `json:"proxyBind,omitempty"` // QuicOverride: Specifies the QUIC override policy for this @@ -40162,6 +40536,7 @@ type TargetHttpsProxyAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -40319,6 +40694,7 @@ type TargetHttpsProxyListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -40568,6 +40944,7 @@ type TargetInstanceAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -40724,6 +41101,7 @@ type TargetInstanceListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -40859,6 +41237,7 @@ type TargetInstancesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -40954,10 +41333,10 @@ func (s *TargetInstancesScopedListWarningData) MarshalJSON() ([]byte, error) { // more information, read Using target pools. (== resource_for // {$api_version}.targetPools ==) type TargetPool struct { - // BackupPool: This field is applicable only when the containing target - // pool is serving a forwarding rule as the primary pool, and its - // failoverRatio field is properly set to a value between [0, - // 1]. + // BackupPool: The server-defined URL for the resource. This field is + // applicable only when the containing target pool is serving a + // forwarding rule as the primary pool, and its failoverRatio field is + // properly set to a value between [0, 1]. // // backupPool and failoverRatio together define the fallback behavior of // the primary target pool: if the ratio of the healthy instances in the @@ -41168,6 +41547,7 @@ type TargetPoolAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -41359,6 +41739,7 @@ type TargetPoolListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -41612,6 +41993,7 @@ type TargetPoolsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -41971,6 +42353,7 @@ type TargetSslProxyListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -42151,6 +42534,20 @@ type TargetTcpProxy struct { // last character, which cannot be a dash. Name string `json:"name,omitempty"` + // ProxyBind: This field only applies when the forwarding rule that + // references this target proxy has a loadBalancingScheme set to + // INTERNAL_SELF_MANAGED. + // + // When this field is set to true, Envoy proxies set up inbound traffic + // interception and bind to the IP address and port specified in the + // forwarding rule. This is generally useful when using Traffic Director + // to configure Envoy as a gateway or middle proxy (in other words, not + // a sidecar proxy). The Envoy proxy listens for inbound requests and + // handles requests when it receives them. + // + // The default is false. + ProxyBind bool `json:"proxyBind,omitempty"` + // ProxyHeader: Specifies the type of proxy header to append before // sending data to the backend, either NONE or PROXY_V1. The default is // NONE. @@ -42263,6 +42660,7 @@ type TargetTcpProxyListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -42530,6 +42928,7 @@ type TargetVpnGatewayAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -42687,6 +43086,7 @@ type TargetVpnGatewayListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -42823,6 +43223,7 @@ type TargetVpnGatewaysScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -43240,6 +43641,7 @@ type UrlMapListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -43503,6 +43905,7 @@ type UrlMapsAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -43637,6 +44040,7 @@ type UrlMapsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -43964,6 +44368,7 @@ type UsableSubnetworksAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -44255,6 +44660,7 @@ type VmEndpointNatMappingsListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -44507,6 +44913,7 @@ type VpnGatewayAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -44663,6 +45070,7 @@ type VpnGatewayListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -45016,6 +45424,7 @@ type VpnGatewaysScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -45372,6 +45781,7 @@ type VpnTunnelAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -45528,6 +45938,7 @@ type VpnTunnelListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -45662,6 +46073,7 @@ type VpnTunnelsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -45943,6 +46355,7 @@ type XpnHostListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -46211,6 +46624,7 @@ type ZoneListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -46514,7 +46928,7 @@ func (c *AcceleratorTypesAggregatedListCall) Header() http.Header { func (c *AcceleratorTypesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -46717,7 +47131,7 @@ func (c *AcceleratorTypesGetCall) Header() http.Header { func (c *AcceleratorTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -46957,7 +47371,7 @@ func (c *AcceleratorTypesListCall) Header() http.Header { func (c *AcceleratorTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -47248,7 +47662,7 @@ func (c *AddressesAggregatedListCall) Header() http.Header { func (c *AddressesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -47460,7 +47874,7 @@ func (c *AddressesDeleteCall) Header() http.Header { func (c *AddressesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -47629,7 +48043,7 @@ func (c *AddressesGetCall) Header() http.Header { func (c *AddressesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -47806,7 +48220,7 @@ func (c *AddressesInsertCall) Header() http.Header { func (c *AddressesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -48047,7 +48461,7 @@ func (c *AddressesListCall) Header() http.Header { func (c *AddressesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -48265,7 +48679,7 @@ func (c *AddressesSetLabelsCall) Header() http.Header { func (c *AddressesSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -48433,7 +48847,7 @@ func (c *AddressesTestIamPermissionsCall) Header() http.Header { func (c *AddressesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -48688,7 +49102,7 @@ func (c *AutoscalersAggregatedListCall) Header() http.Header { func (c *AutoscalersAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -48899,7 +49313,7 @@ func (c *AutoscalersDeleteCall) Header() http.Header { func (c *AutoscalersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -49068,7 +49482,7 @@ func (c *AutoscalersGetCall) Header() http.Header { func (c *AutoscalersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -49244,7 +49658,7 @@ func (c *AutoscalersInsertCall) Header() http.Header { func (c *AutoscalersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -49484,7 +49898,7 @@ func (c *AutoscalersListCall) Header() http.Header { func (c *AutoscalersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -49708,7 +50122,7 @@ func (c *AutoscalersPatchCall) Header() http.Header { func (c *AutoscalersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -49873,7 +50287,7 @@ func (c *AutoscalersTestIamPermissionsCall) Header() http.Header { func (c *AutoscalersTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -50061,7 +50475,7 @@ func (c *AutoscalersUpdateCall) Header() http.Header { func (c *AutoscalersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -50243,7 +50657,7 @@ func (c *BackendBucketsAddSignedUrlKeyCall) Header() http.Header { func (c *BackendBucketsAddSignedUrlKeyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -50415,7 +50829,7 @@ func (c *BackendBucketsDeleteCall) Header() http.Header { func (c *BackendBucketsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -50582,7 +50996,7 @@ func (c *BackendBucketsDeleteSignedUrlKeyCall) Header() http.Header { func (c *BackendBucketsDeleteSignedUrlKeyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -50746,7 +51160,7 @@ func (c *BackendBucketsGetCall) Header() http.Header { func (c *BackendBucketsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -50911,7 +51325,7 @@ func (c *BackendBucketsInsertCall) Header() http.Header { func (c *BackendBucketsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -51140,7 +51554,7 @@ func (c *BackendBucketsListCall) Header() http.Header { func (c *BackendBucketsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -51348,7 +51762,7 @@ func (c *BackendBucketsPatchCall) Header() http.Header { func (c *BackendBucketsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -51524,7 +51938,7 @@ func (c *BackendBucketsUpdateCall) Header() http.Header { func (c *BackendBucketsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -51700,7 +52114,7 @@ func (c *BackendServicesAddSignedUrlKeyCall) Header() http.Header { func (c *BackendServicesAddSignedUrlKeyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -51950,7 +52364,7 @@ func (c *BackendServicesAggregatedListCall) Header() http.Header { func (c *BackendServicesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -52160,7 +52574,7 @@ func (c *BackendServicesDeleteCall) Header() http.Header { func (c *BackendServicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -52327,7 +52741,7 @@ func (c *BackendServicesDeleteSignedUrlKeyCall) Header() http.Header { func (c *BackendServicesDeleteSignedUrlKeyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -52492,7 +52906,7 @@ func (c *BackendServicesGetCall) Header() http.Header { func (c *BackendServicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -52645,7 +53059,7 @@ func (c *BackendServicesGetHealthCall) Header() http.Header { func (c *BackendServicesGetHealthCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -52816,7 +53230,7 @@ func (c *BackendServicesInsertCall) Header() http.Header { func (c *BackendServicesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -53046,7 +53460,7 @@ func (c *BackendServicesListCall) Header() http.Header { func (c *BackendServicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -53256,7 +53670,7 @@ func (c *BackendServicesPatchCall) Header() http.Header { func (c *BackendServicesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -53432,7 +53846,7 @@ func (c *BackendServicesSetSecurityPolicyCall) Header() http.Header { func (c *BackendServicesSetSecurityPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -53588,7 +54002,7 @@ func (c *BackendServicesTestIamPermissionsCall) Header() http.Header { func (c *BackendServicesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -53762,7 +54176,7 @@ func (c *BackendServicesUpdateCall) Header() http.Header { func (c *BackendServicesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -54013,7 +54427,7 @@ func (c *DiskTypesAggregatedListCall) Header() http.Header { func (c *DiskTypesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -54218,7 +54632,7 @@ func (c *DiskTypesGetCall) Header() http.Header { func (c *DiskTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -54459,7 +54873,7 @@ func (c *DiskTypesListCall) Header() http.Header { func (c *DiskTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -54678,7 +55092,7 @@ func (c *DisksAddResourcePoliciesCall) Header() http.Header { func (c *DisksAddResourcePoliciesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -54938,7 +55352,7 @@ func (c *DisksAggregatedListCall) Header() http.Header { func (c *DisksAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -55161,7 +55575,7 @@ func (c *DisksCreateSnapshotCall) Header() http.Header { func (c *DisksCreateSnapshotCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -55354,7 +55768,7 @@ func (c *DisksDeleteCall) Header() http.Header { func (c *DisksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -55523,7 +55937,7 @@ func (c *DisksGetCall) Header() http.Header { func (c *DisksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -55698,7 +56112,7 @@ func (c *DisksGetIamPolicyCall) Header() http.Header { func (c *DisksGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -55892,7 +56306,7 @@ func (c *DisksInsertCall) Header() http.Header { func (c *DisksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -56138,7 +56552,7 @@ func (c *DisksListCall) Header() http.Header { func (c *DisksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -56355,7 +56769,7 @@ func (c *DisksRemoveResourcePoliciesCall) Header() http.Header { func (c *DisksRemoveResourcePoliciesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -56542,7 +56956,7 @@ func (c *DisksResizeCall) Header() http.Header { func (c *DisksResizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -56710,7 +57124,7 @@ func (c *DisksSetIamPolicyCall) Header() http.Header { func (c *DisksSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -56892,7 +57306,7 @@ func (c *DisksSetLabelsCall) Header() http.Header { func (c *DisksSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -57060,7 +57474,7 @@ func (c *DisksTestIamPermissionsCall) Header() http.Header { func (c *DisksTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -57238,7 +57652,7 @@ func (c *ExternalVpnGatewaysDeleteCall) Header() http.Header { func (c *ExternalVpnGatewaysDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -57396,7 +57810,7 @@ func (c *ExternalVpnGatewaysGetCall) Header() http.Header { func (c *ExternalVpnGatewaysGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -57561,7 +57975,7 @@ func (c *ExternalVpnGatewaysInsertCall) Header() http.Header { func (c *ExternalVpnGatewaysInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -57790,7 +58204,7 @@ func (c *ExternalVpnGatewaysListCall) Header() http.Header { func (c *ExternalVpnGatewaysListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -57978,7 +58392,7 @@ func (c *ExternalVpnGatewaysSetLabelsCall) Header() http.Header { func (c *ExternalVpnGatewaysSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -58130,7 +58544,7 @@ func (c *ExternalVpnGatewaysTestIamPermissionsCall) Header() http.Header { func (c *ExternalVpnGatewaysTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -58300,7 +58714,7 @@ func (c *FirewallsDeleteCall) Header() http.Header { func (c *FirewallsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -58458,7 +58872,7 @@ func (c *FirewallsGetCall) Header() http.Header { func (c *FirewallsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -58624,7 +59038,7 @@ func (c *FirewallsInsertCall) Header() http.Header { func (c *FirewallsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -58854,7 +59268,7 @@ func (c *FirewallsListCall) Header() http.Header { func (c *FirewallsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -59063,7 +59477,7 @@ func (c *FirewallsPatchCall) Header() http.Header { func (c *FirewallsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -59220,7 +59634,7 @@ func (c *FirewallsTestIamPermissionsCall) Header() http.Header { func (c *FirewallsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -59395,7 +59809,7 @@ func (c *FirewallsUpdateCall) Header() http.Header { func (c *FirewallsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -59646,7 +60060,7 @@ func (c *ForwardingRulesAggregatedListCall) Header() http.Header { func (c *ForwardingRulesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -59858,7 +60272,7 @@ func (c *ForwardingRulesDeleteCall) Header() http.Header { func (c *ForwardingRulesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -60027,7 +60441,7 @@ func (c *ForwardingRulesGetCall) Header() http.Header { func (c *ForwardingRulesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -60204,7 +60618,7 @@ func (c *ForwardingRulesInsertCall) Header() http.Header { func (c *ForwardingRulesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -60445,7 +60859,7 @@ func (c *ForwardingRulesListCall) Header() http.Header { func (c *ForwardingRulesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -60665,7 +61079,7 @@ func (c *ForwardingRulesPatchCall) Header() http.Header { func (c *ForwardingRulesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -60852,7 +61266,7 @@ func (c *ForwardingRulesSetLabelsCall) Header() http.Header { func (c *ForwardingRulesSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -61040,7 +61454,7 @@ func (c *ForwardingRulesSetTargetCall) Header() http.Header { func (c *ForwardingRulesSetTargetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -61208,7 +61622,7 @@ func (c *ForwardingRulesTestIamPermissionsCall) Header() http.Header { func (c *ForwardingRulesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -61387,7 +61801,7 @@ func (c *GlobalAddressesDeleteCall) Header() http.Header { func (c *GlobalAddressesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -61546,7 +61960,7 @@ func (c *GlobalAddressesGetCall) Header() http.Header { func (c *GlobalAddressesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -61712,7 +62126,7 @@ func (c *GlobalAddressesInsertCall) Header() http.Header { func (c *GlobalAddressesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -61941,7 +62355,7 @@ func (c *GlobalAddressesListCall) Header() http.Header { func (c *GlobalAddressesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -62129,7 +62543,7 @@ func (c *GlobalAddressesSetLabelsCall) Header() http.Header { func (c *GlobalAddressesSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -62281,7 +62695,7 @@ func (c *GlobalAddressesTestIamPermissionsCall) Header() http.Header { func (c *GlobalAddressesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -62451,7 +62865,7 @@ func (c *GlobalForwardingRulesDeleteCall) Header() http.Header { func (c *GlobalForwardingRulesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -62610,7 +63024,7 @@ func (c *GlobalForwardingRulesGetCall) Header() http.Header { func (c *GlobalForwardingRulesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -62776,7 +63190,7 @@ func (c *GlobalForwardingRulesInsertCall) Header() http.Header { func (c *GlobalForwardingRulesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -63006,7 +63420,7 @@ func (c *GlobalForwardingRulesListCall) Header() http.Header { func (c *GlobalForwardingRulesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -63215,7 +63629,7 @@ func (c *GlobalForwardingRulesPatchCall) Header() http.Header { func (c *GlobalForwardingRulesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -63372,7 +63786,7 @@ func (c *GlobalForwardingRulesSetLabelsCall) Header() http.Header { func (c *GlobalForwardingRulesSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -63544,7 +63958,7 @@ func (c *GlobalForwardingRulesSetTargetCall) Header() http.Header { func (c *GlobalForwardingRulesSetTargetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -63701,7 +64115,7 @@ func (c *GlobalForwardingRulesTestIamPermissionsCall) Header() http.Header { func (c *GlobalForwardingRulesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -63873,7 +64287,7 @@ func (c *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) Header() http.He func (c *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -64046,7 +64460,7 @@ func (c *GlobalNetworkEndpointGroupsDeleteCall) Header() http.Header { func (c *GlobalNetworkEndpointGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -64213,7 +64627,7 @@ func (c *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) Header() http.He func (c *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -64378,7 +64792,7 @@ func (c *GlobalNetworkEndpointGroupsGetCall) Header() http.Header { func (c *GlobalNetworkEndpointGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -64542,7 +64956,7 @@ func (c *GlobalNetworkEndpointGroupsInsertCall) Header() http.Header { func (c *GlobalNetworkEndpointGroupsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -64771,7 +65185,7 @@ func (c *GlobalNetworkEndpointGroupsListCall) Header() http.Header { func (c *GlobalNetworkEndpointGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -65031,7 +65445,7 @@ func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Header() http.Head func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -65320,7 +65734,7 @@ func (c *GlobalOperationsAggregatedListCall) Header() http.Header { func (c *GlobalOperationsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -65511,7 +65925,7 @@ func (c *GlobalOperationsDeleteCall) Header() http.Header { func (c *GlobalOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -65637,7 +66051,7 @@ func (c *GlobalOperationsGetCall) Header() http.Header { func (c *GlobalOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -65867,7 +66281,7 @@ func (c *GlobalOperationsListCall) Header() http.Header { func (c *GlobalOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -66065,7 +66479,7 @@ func (c *GlobalOperationsWaitCall) Header() http.Header { func (c *GlobalOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -66212,7 +66626,7 @@ func (c *GlobalOrganizationOperationsDeleteCall) Header() http.Header { func (c *GlobalOrganizationOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -66338,7 +66752,7 @@ func (c *GlobalOrganizationOperationsGetCall) Header() http.Header { func (c *GlobalOrganizationOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -66568,7 +66982,7 @@ func (c *GlobalOrganizationOperationsListCall) Header() http.Header { func (c *GlobalOrganizationOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -66842,7 +67256,7 @@ func (c *HealthChecksAggregatedListCall) Header() http.Header { func (c *HealthChecksAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -67051,7 +67465,7 @@ func (c *HealthChecksDeleteCall) Header() http.Header { func (c *HealthChecksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -67209,7 +67623,7 @@ func (c *HealthChecksGetCall) Header() http.Header { func (c *HealthChecksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -67374,7 +67788,7 @@ func (c *HealthChecksInsertCall) Header() http.Header { func (c *HealthChecksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -67603,7 +68017,7 @@ func (c *HealthChecksListCall) Header() http.Header { func (c *HealthChecksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -67811,7 +68225,7 @@ func (c *HealthChecksPatchCall) Header() http.Header { func (c *HealthChecksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -67968,7 +68382,7 @@ func (c *HealthChecksTestIamPermissionsCall) Header() http.Header { func (c *HealthChecksTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -68140,7 +68554,7 @@ func (c *HealthChecksUpdateCall) Header() http.Header { func (c *HealthChecksUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -68314,7 +68728,7 @@ func (c *HttpHealthChecksDeleteCall) Header() http.Header { func (c *HttpHealthChecksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -68473,7 +68887,7 @@ func (c *HttpHealthChecksGetCall) Header() http.Header { func (c *HttpHealthChecksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -68639,7 +69053,7 @@ func (c *HttpHealthChecksInsertCall) Header() http.Header { func (c *HttpHealthChecksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -68869,7 +69283,7 @@ func (c *HttpHealthChecksListCall) Header() http.Header { func (c *HttpHealthChecksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -69078,7 +69492,7 @@ func (c *HttpHealthChecksPatchCall) Header() http.Header { func (c *HttpHealthChecksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -69235,7 +69649,7 @@ func (c *HttpHealthChecksTestIamPermissionsCall) Header() http.Header { func (c *HttpHealthChecksTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -69408,7 +69822,7 @@ func (c *HttpHealthChecksUpdateCall) Header() http.Header { func (c *HttpHealthChecksUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -69581,7 +69995,7 @@ func (c *HttpsHealthChecksDeleteCall) Header() http.Header { func (c *HttpsHealthChecksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -69739,7 +70153,7 @@ func (c *HttpsHealthChecksGetCall) Header() http.Header { func (c *HttpsHealthChecksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -69904,7 +70318,7 @@ func (c *HttpsHealthChecksInsertCall) Header() http.Header { func (c *HttpsHealthChecksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -70133,7 +70547,7 @@ func (c *HttpsHealthChecksListCall) Header() http.Header { func (c *HttpsHealthChecksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -70341,7 +70755,7 @@ func (c *HttpsHealthChecksPatchCall) Header() http.Header { func (c *HttpsHealthChecksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -70498,7 +70912,7 @@ func (c *HttpsHealthChecksTestIamPermissionsCall) Header() http.Header { func (c *HttpsHealthChecksTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -70670,7 +71084,7 @@ func (c *HttpsHealthChecksUpdateCall) Header() http.Header { func (c *HttpsHealthChecksUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -70844,7 +71258,7 @@ func (c *ImagesDeleteCall) Header() http.Header { func (c *ImagesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -71015,7 +71429,7 @@ func (c *ImagesDeprecateCall) Header() http.Header { func (c *ImagesDeprecateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -71182,7 +71596,7 @@ func (c *ImagesGetCall) Header() http.Header { func (c *ImagesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -71339,7 +71753,7 @@ func (c *ImagesGetFromFamilyCall) Header() http.Header { func (c *ImagesGetFromFamilyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -71503,7 +71917,7 @@ func (c *ImagesGetIamPolicyCall) Header() http.Header { func (c *ImagesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -71682,7 +72096,7 @@ func (c *ImagesInsertCall) Header() http.Header { func (c *ImagesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -71925,7 +72339,7 @@ func (c *ImagesListCall) Header() http.Header { func (c *ImagesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -72133,7 +72547,7 @@ func (c *ImagesPatchCall) Header() http.Header { func (c *ImagesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -72290,7 +72704,7 @@ func (c *ImagesSetIamPolicyCall) Header() http.Header { func (c *ImagesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -72442,7 +72856,7 @@ func (c *ImagesSetLabelsCall) Header() http.Header { func (c *ImagesSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -72594,7 +73008,7 @@ func (c *ImagesTestIamPermissionsCall) Header() http.Header { func (c *ImagesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -72783,7 +73197,7 @@ func (c *InstanceGroupManagersAbandonInstancesCall) Header() http.Header { func (c *InstanceGroupManagersAbandonInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -73041,7 +73455,7 @@ func (c *InstanceGroupManagersAggregatedListCall) Header() http.Header { func (c *InstanceGroupManagersAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -73238,7 +73652,7 @@ func (c *InstanceGroupManagersApplyUpdatesToInstancesCall) Header() http.Header func (c *InstanceGroupManagersApplyUpdatesToInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -73421,7 +73835,7 @@ func (c *InstanceGroupManagersCreateInstancesCall) Header() http.Header { func (c *InstanceGroupManagersCreateInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -73606,7 +74020,7 @@ func (c *InstanceGroupManagersDeleteCall) Header() http.Header { func (c *InstanceGroupManagersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -73797,7 +74211,7 @@ func (c *InstanceGroupManagersDeleteInstancesCall) Header() http.Header { func (c *InstanceGroupManagersDeleteInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -73963,7 +74377,7 @@ func (c *InstanceGroupManagersDeletePerInstanceConfigsCall) Header() http.Header func (c *InstanceGroupManagersDeletePerInstanceConfigsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -74134,7 +74548,7 @@ func (c *InstanceGroupManagersGetCall) Header() http.Header { func (c *InstanceGroupManagersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -74316,7 +74730,7 @@ func (c *InstanceGroupManagersInsertCall) Header() http.Header { func (c *InstanceGroupManagersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -74555,7 +74969,7 @@ func (c *InstanceGroupManagersListCall) Header() http.Header { func (c *InstanceGroupManagersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -74837,7 +75251,7 @@ func (c *InstanceGroupManagersListErrorsCall) Header() http.Header { func (c *InstanceGroupManagersListErrorsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -75121,7 +75535,7 @@ func (c *InstanceGroupManagersListManagedInstancesCall) Header() http.Header { func (c *InstanceGroupManagersListManagedInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -75399,7 +75813,7 @@ func (c *InstanceGroupManagersListPerInstanceConfigsCall) Header() http.Header { func (c *InstanceGroupManagersListPerInstanceConfigsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -75628,7 +76042,7 @@ func (c *InstanceGroupManagersPatchCall) Header() http.Header { func (c *InstanceGroupManagersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -75814,7 +76228,7 @@ func (c *InstanceGroupManagersPatchPerInstanceConfigsCall) Header() http.Header func (c *InstanceGroupManagersPatchPerInstanceConfigsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -76012,7 +76426,7 @@ func (c *InstanceGroupManagersRecreateInstancesCall) Header() http.Header { func (c *InstanceGroupManagersRecreateInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -76215,7 +76629,7 @@ func (c *InstanceGroupManagersResizeCall) Header() http.Header { func (c *InstanceGroupManagersResizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -76413,7 +76827,7 @@ func (c *InstanceGroupManagersResizeAdvancedCall) Header() http.Header { func (c *InstanceGroupManagersResizeAdvancedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -76598,7 +77012,7 @@ func (c *InstanceGroupManagersSetAutoHealingPoliciesCall) Header() http.Header { func (c *InstanceGroupManagersSetAutoHealingPoliciesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -76728,7 +77142,9 @@ type InstanceGroupManagersSetInstanceTemplateCall struct { // SetInstanceTemplate: Specifies the instance template to use when // creating new instances in this group. The templates for existing -// instances in the group do not change unless you recreate them. +// instances in the group do not change unless you run +// recreateInstances, run applyUpdatesToInstances, or set the group's +// updatePolicy.type to PROACTIVE. func (r *InstanceGroupManagersService) SetInstanceTemplate(project string, zone string, instanceGroupManager string, instancegroupmanagerssetinstancetemplaterequest *InstanceGroupManagersSetInstanceTemplateRequest) *InstanceGroupManagersSetInstanceTemplateCall { c := &InstanceGroupManagersSetInstanceTemplateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -76784,7 +77200,7 @@ func (c *InstanceGroupManagersSetInstanceTemplateCall) Header() http.Header { func (c *InstanceGroupManagersSetInstanceTemplateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -76850,7 +77266,7 @@ func (c *InstanceGroupManagersSetInstanceTemplateCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you recreate them.", + // "description": "Specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE.", // "httpMethod": "POST", // "id": "compute.instanceGroupManagers.setInstanceTemplate", // "parameterOrder": [ @@ -76974,7 +77390,7 @@ func (c *InstanceGroupManagersSetTargetPoolsCall) Header() http.Header { func (c *InstanceGroupManagersSetTargetPoolsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -77140,7 +77556,7 @@ func (c *InstanceGroupManagersTestIamPermissionsCall) Header() http.Header { func (c *InstanceGroupManagersTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -77326,7 +77742,7 @@ func (c *InstanceGroupManagersUpdateCall) Header() http.Header { func (c *InstanceGroupManagersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -77512,7 +77928,7 @@ func (c *InstanceGroupManagersUpdatePerInstanceConfigsCall) Header() http.Header func (c *InstanceGroupManagersUpdatePerInstanceConfigsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -77698,7 +78114,7 @@ func (c *InstanceGroupsAddInstancesCall) Header() http.Header { func (c *InstanceGroupsAddInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -77956,7 +78372,7 @@ func (c *InstanceGroupsAggregatedListCall) Header() http.Header { func (c *InstanceGroupsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -78170,7 +78586,7 @@ func (c *InstanceGroupsDeleteCall) Header() http.Header { func (c *InstanceGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -78340,7 +78756,7 @@ func (c *InstanceGroupsGetCall) Header() http.Header { func (c *InstanceGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -78514,7 +78930,7 @@ func (c *InstanceGroupsInsertCall) Header() http.Header { func (c *InstanceGroupsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -78756,7 +79172,7 @@ func (c *InstanceGroupsListCall) Header() http.Header { func (c *InstanceGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -79028,7 +79444,7 @@ func (c *InstanceGroupsListInstancesCall) Header() http.Header { func (c *InstanceGroupsListInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -79262,7 +79678,7 @@ func (c *InstanceGroupsRemoveInstancesCall) Header() http.Header { func (c *InstanceGroupsRemoveInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -79446,7 +79862,7 @@ func (c *InstanceGroupsSetNamedPortsCall) Header() http.Header { func (c *InstanceGroupsSetNamedPortsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -79612,7 +80028,7 @@ func (c *InstanceGroupsTestIamPermissionsCall) Header() http.Header { func (c *InstanceGroupsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -79793,7 +80209,7 @@ func (c *InstanceTemplatesDeleteCall) Header() http.Header { func (c *InstanceTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -79952,7 +80368,7 @@ func (c *InstanceTemplatesGetCall) Header() http.Header { func (c *InstanceTemplatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -80116,7 +80532,7 @@ func (c *InstanceTemplatesGetIamPolicyCall) Header() http.Header { func (c *InstanceTemplatesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -80291,7 +80707,7 @@ func (c *InstanceTemplatesInsertCall) Header() http.Header { func (c *InstanceTemplatesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -80521,7 +80937,7 @@ func (c *InstanceTemplatesListCall) Header() http.Header { func (c *InstanceTemplatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -80709,7 +81125,7 @@ func (c *InstanceTemplatesSetIamPolicyCall) Header() http.Header { func (c *InstanceTemplatesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -80861,7 +81277,7 @@ func (c *InstanceTemplatesTestIamPermissionsCall) Header() http.Header { func (c *InstanceTemplatesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -81037,7 +81453,7 @@ func (c *InstancesAddAccessConfigCall) Header() http.Header { func (c *InstancesAddAccessConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -81232,7 +81648,7 @@ func (c *InstancesAddResourcePoliciesCall) Header() http.Header { func (c *InstancesAddResourcePoliciesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -81493,7 +81909,7 @@ func (c *InstancesAggregatedListCall) Header() http.Header { func (c *InstancesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -81719,7 +82135,7 @@ func (c *InstancesAttachDiskCall) Header() http.Header { func (c *InstancesAttachDiskCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -81910,7 +82326,7 @@ func (c *InstancesDeleteCall) Header() http.Header { func (c *InstancesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -82090,7 +82506,7 @@ func (c *InstancesDeleteAccessConfigCall) Header() http.Header { func (c *InstancesDeleteAccessConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -82282,7 +82698,7 @@ func (c *InstancesDetachDiskCall) Header() http.Header { func (c *InstancesDetachDiskCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -82459,7 +82875,7 @@ func (c *InstancesGetCall) Header() http.Header { func (c *InstancesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -82628,7 +83044,7 @@ func (c *InstancesGetEffectiveFirewallsCall) Header() http.Header { func (c *InstancesGetEffectiveFirewallsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -82817,7 +83233,7 @@ func (c *InstancesGetGuestAttributesCall) Header() http.Header { func (c *InstancesGetGuestAttributesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -83002,7 +83418,7 @@ func (c *InstancesGetIamPolicyCall) Header() http.Header { func (c *InstancesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -83175,7 +83591,7 @@ func (c *InstancesGetScreenshotCall) Header() http.Header { func (c *InstancesGetScreenshotCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -83373,7 +83789,7 @@ func (c *InstancesGetSerialPortOutputCall) Header() http.Header { func (c *InstancesGetSerialPortOutputCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -83556,7 +83972,7 @@ func (c *InstancesGetShieldedInstanceIdentityCall) Header() http.Header { func (c *InstancesGetShieldedInstanceIdentityCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -83724,7 +84140,7 @@ func (c *InstancesGetShieldedVmIdentityCall) Header() http.Header { func (c *InstancesGetShieldedVmIdentityCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -83930,7 +84346,7 @@ func (c *InstancesInsertCall) Header() http.Header { func (c *InstancesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -84181,7 +84597,7 @@ func (c *InstancesListCall) Header() http.Header { func (c *InstancesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -84466,7 +84882,7 @@ func (c *InstancesListReferrersCall) Header() http.Header { func (c *InstancesListReferrersCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -84692,7 +85108,7 @@ func (c *InstancesRemoveResourcePoliciesCall) Header() http.Header { func (c *InstancesRemoveResourcePoliciesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -84879,7 +85295,7 @@ func (c *InstancesResetCall) Header() http.Header { func (c *InstancesResetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -85058,7 +85474,7 @@ func (c *InstancesResumeCall) Header() http.Header { func (c *InstancesResumeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -85249,7 +85665,7 @@ func (c *InstancesSetDeletionProtectionCall) Header() http.Header { func (c *InstancesSetDeletionProtectionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -85435,7 +85851,7 @@ func (c *InstancesSetDiskAutoDeleteCall) Header() http.Header { func (c *InstancesSetDiskAutoDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -85610,7 +86026,7 @@ func (c *InstancesSetIamPolicyCall) Header() http.Header { func (c *InstancesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -85792,7 +86208,7 @@ func (c *InstancesSetLabelsCall) Header() http.Header { func (c *InstancesSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -85979,7 +86395,7 @@ func (c *InstancesSetMachineResourcesCall) Header() http.Header { func (c *InstancesSetMachineResourcesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -86166,7 +86582,7 @@ func (c *InstancesSetMachineTypeCall) Header() http.Header { func (c *InstancesSetMachineTypeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -86354,7 +86770,7 @@ func (c *InstancesSetMetadataCall) Header() http.Header { func (c *InstancesSetMetadataCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -86543,7 +86959,7 @@ func (c *InstancesSetMinCpuPlatformCall) Header() http.Header { func (c *InstancesSetMinCpuPlatformCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -86729,7 +87145,7 @@ func (c *InstancesSetNameCall) Header() http.Header { func (c *InstancesSetNameCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -86919,7 +87335,7 @@ func (c *InstancesSetSchedulingCall) Header() http.Header { func (c *InstancesSetSchedulingCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -87107,7 +87523,7 @@ func (c *InstancesSetServiceAccountCall) Header() http.Header { func (c *InstancesSetServiceAccountCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -87296,7 +87712,7 @@ func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) Header() http.Header { func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -87485,7 +87901,7 @@ func (c *InstancesSetShieldedVmIntegrityPolicyCall) Header() http.Header { func (c *InstancesSetShieldedVmIntegrityPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -87673,7 +88089,7 @@ func (c *InstancesSetTagsCall) Header() http.Header { func (c *InstancesSetTagsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -87839,7 +88255,7 @@ func (c *InstancesSimulateMaintenanceEventCall) Header() http.Header { func (c *InstancesSimulateMaintenanceEventCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -88012,7 +88428,7 @@ func (c *InstancesStartCall) Header() http.Header { func (c *InstancesStartCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -88192,7 +88608,7 @@ func (c *InstancesStartWithEncryptionKeyCall) Header() http.Header { func (c *InstancesStartWithEncryptionKeyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -88382,7 +88798,7 @@ func (c *InstancesStopCall) Header() http.Header { func (c *InstancesStopCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -88571,7 +88987,7 @@ func (c *InstancesSuspendCall) Header() http.Header { func (c *InstancesSuspendCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -88736,7 +89152,7 @@ func (c *InstancesTestIamPermissionsCall) Header() http.Header { func (c *InstancesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -88953,7 +89369,7 @@ func (c *InstancesUpdateCall) Header() http.Header { func (c *InstancesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -89177,7 +89593,7 @@ func (c *InstancesUpdateAccessConfigCall) Header() http.Header { func (c *InstancesUpdateAccessConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -89373,7 +89789,7 @@ func (c *InstancesUpdateDisplayDeviceCall) Header() http.Header { func (c *InstancesUpdateDisplayDeviceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -89561,7 +89977,7 @@ func (c *InstancesUpdateNetworkInterfaceCall) Header() http.Header { func (c *InstancesUpdateNetworkInterfaceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -89757,7 +90173,7 @@ func (c *InstancesUpdateShieldedInstanceConfigCall) Header() http.Header { func (c *InstancesUpdateShieldedInstanceConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -89946,7 +90362,7 @@ func (c *InstancesUpdateShieldedVmConfigCall) Header() http.Header { func (c *InstancesUpdateShieldedVmConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -90206,7 +90622,7 @@ func (c *InterconnectAttachmentsAggregatedListCall) Header() http.Header { func (c *InterconnectAttachmentsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -90418,7 +90834,7 @@ func (c *InterconnectAttachmentsDeleteCall) Header() http.Header { func (c *InterconnectAttachmentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -90586,7 +91002,7 @@ func (c *InterconnectAttachmentsGetCall) Header() http.Header { func (c *InterconnectAttachmentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -90769,7 +91185,7 @@ func (c *InterconnectAttachmentsInsertCall) Header() http.Header { func (c *InterconnectAttachmentsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -91014,7 +91430,7 @@ func (c *InterconnectAttachmentsListCall) Header() http.Header { func (c *InterconnectAttachmentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -91233,7 +91649,7 @@ func (c *InterconnectAttachmentsPatchCall) Header() http.Header { func (c *InterconnectAttachmentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -91420,7 +91836,7 @@ func (c *InterconnectAttachmentsSetLabelsCall) Header() http.Header { func (c *InterconnectAttachmentsSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -91588,7 +92004,7 @@ func (c *InterconnectAttachmentsTestIamPermissionsCall) Header() http.Header { func (c *InterconnectAttachmentsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -91760,7 +92176,7 @@ func (c *InterconnectLocationsGetCall) Header() http.Header { func (c *InterconnectLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -91989,7 +92405,7 @@ func (c *InterconnectLocationsListCall) Header() http.Header { func (c *InterconnectLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -92193,7 +92609,7 @@ func (c *InterconnectsDeleteCall) Header() http.Header { func (c *InterconnectsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -92351,7 +92767,7 @@ func (c *InterconnectsGetCall) Header() http.Header { func (c *InterconnectsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -92508,7 +92924,7 @@ func (c *InterconnectsGetDiagnosticsCall) Header() http.Header { func (c *InterconnectsGetDiagnosticsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -92674,7 +93090,7 @@ func (c *InterconnectsInsertCall) Header() http.Header { func (c *InterconnectsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -92903,7 +93319,7 @@ func (c *InterconnectsListCall) Header() http.Header { func (c *InterconnectsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -93111,7 +93527,7 @@ func (c *InterconnectsPatchCall) Header() http.Header { func (c *InterconnectsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -93268,7 +93684,7 @@ func (c *InterconnectsSetLabelsCall) Header() http.Header { func (c *InterconnectsSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -93420,7 +93836,7 @@ func (c *InterconnectsTestIamPermissionsCall) Header() http.Header { func (c *InterconnectsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -93584,7 +94000,7 @@ func (c *LicenseCodesGetCall) Header() http.Header { func (c *LicenseCodesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -93750,7 +94166,7 @@ func (c *LicensesDeleteCall) Header() http.Header { func (c *LicensesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -93910,7 +94326,7 @@ func (c *LicensesGetCall) Header() http.Header { func (c *LicensesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -94076,7 +94492,7 @@ func (c *LicensesGetIamPolicyCall) Header() http.Header { func (c *LicensesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -94248,7 +94664,7 @@ func (c *LicensesInsertCall) Header() http.Header { func (c *LicensesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -94486,7 +94902,7 @@ func (c *LicensesListCall) Header() http.Header { func (c *LicensesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -94676,7 +95092,7 @@ func (c *LicensesSetIamPolicyCall) Header() http.Header { func (c *LicensesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -94845,7 +95261,7 @@ func (c *MachineImagesDeleteCall) Header() http.Header { func (c *MachineImagesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -95003,7 +95419,7 @@ func (c *MachineImagesGetCall) Header() http.Header { func (c *MachineImagesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -95167,7 +95583,7 @@ func (c *MachineImagesGetIamPolicyCall) Header() http.Header { func (c *MachineImagesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -95349,7 +95765,7 @@ func (c *MachineImagesInsertCall) Header() http.Header { func (c *MachineImagesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -95583,7 +95999,7 @@ func (c *MachineImagesListCall) Header() http.Header { func (c *MachineImagesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -95771,7 +96187,7 @@ func (c *MachineImagesSetIamPolicyCall) Header() http.Header { func (c *MachineImagesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -95923,7 +96339,7 @@ func (c *MachineImagesTestIamPermissionsCall) Header() http.Header { func (c *MachineImagesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -96170,7 +96586,7 @@ func (c *MachineTypesAggregatedListCall) Header() http.Header { func (c *MachineTypesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -96375,7 +96791,7 @@ func (c *MachineTypesGetCall) Header() http.Header { func (c *MachineTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -96616,7 +97032,7 @@ func (c *MachineTypesListCall) Header() http.Header { func (c *MachineTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -96907,7 +97323,7 @@ func (c *NetworkEndpointGroupsAggregatedListCall) Header() http.Header { func (c *NetworkEndpointGroupsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -97122,7 +97538,7 @@ func (c *NetworkEndpointGroupsAttachNetworkEndpointsCall) Header() http.Header { func (c *NetworkEndpointGroupsAttachNetworkEndpointsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -97307,7 +97723,7 @@ func (c *NetworkEndpointGroupsDeleteCall) Header() http.Header { func (c *NetworkEndpointGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -97484,7 +97900,7 @@ func (c *NetworkEndpointGroupsDetachNetworkEndpointsCall) Header() http.Header { func (c *NetworkEndpointGroupsDetachNetworkEndpointsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -97659,7 +98075,7 @@ func (c *NetworkEndpointGroupsGetCall) Header() http.Header { func (c *NetworkEndpointGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -97833,7 +98249,7 @@ func (c *NetworkEndpointGroupsInsertCall) Header() http.Header { func (c *NetworkEndpointGroupsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -98072,7 +98488,7 @@ func (c *NetworkEndpointGroupsListCall) Header() http.Header { func (c *NetworkEndpointGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -98344,7 +98760,7 @@ func (c *NetworkEndpointGroupsListNetworkEndpointsCall) Header() http.Header { func (c *NetworkEndpointGroupsListNetworkEndpointsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -98557,7 +98973,7 @@ func (c *NetworkEndpointGroupsTestIamPermissionsCall) Header() http.Header { func (c *NetworkEndpointGroupsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -98737,7 +99153,7 @@ func (c *NetworksAddPeeringCall) Header() http.Header { func (c *NetworksAddPeeringCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -98911,7 +99327,7 @@ func (c *NetworksDeleteCall) Header() http.Header { func (c *NetworksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -99070,7 +99486,7 @@ func (c *NetworksGetCall) Header() http.Header { func (c *NetworksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -99227,7 +99643,7 @@ func (c *NetworksGetEffectiveFirewallsCall) Header() http.Header { func (c *NetworksGetEffectiveFirewallsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -99394,7 +99810,7 @@ func (c *NetworksInsertCall) Header() http.Header { func (c *NetworksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -99624,7 +100040,7 @@ func (c *NetworksListCall) Header() http.Header { func (c *NetworksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -99921,7 +100337,7 @@ func (c *NetworksListPeeringRoutesCall) Header() http.Header { func (c *NetworksListPeeringRoutesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -100161,7 +100577,7 @@ func (c *NetworksPatchCall) Header() http.Header { func (c *NetworksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -100336,7 +100752,7 @@ func (c *NetworksRemovePeeringCall) Header() http.Header { func (c *NetworksRemovePeeringCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -100510,7 +100926,7 @@ func (c *NetworksSwitchToCustomModeCall) Header() http.Header { func (c *NetworksSwitchToCustomModeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -100659,7 +101075,7 @@ func (c *NetworksTestIamPermissionsCall) Header() http.Header { func (c *NetworksTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -100833,7 +101249,7 @@ func (c *NetworksUpdatePeeringCall) Header() http.Header { func (c *NetworksUpdatePeeringCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -101010,7 +101426,7 @@ func (c *NodeGroupsAddNodesCall) Header() http.Header { func (c *NodeGroupsAddNodesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -101270,7 +101686,7 @@ func (c *NodeGroupsAggregatedListCall) Header() http.Header { func (c *NodeGroupsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -101481,7 +101897,7 @@ func (c *NodeGroupsDeleteCall) Header() http.Header { func (c *NodeGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -101659,7 +102075,7 @@ func (c *NodeGroupsDeleteNodesCall) Header() http.Header { func (c *NodeGroupsDeleteNodesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -101837,7 +102253,7 @@ func (c *NodeGroupsGetCall) Header() http.Header { func (c *NodeGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -102012,7 +102428,7 @@ func (c *NodeGroupsGetIamPolicyCall) Header() http.Header { func (c *NodeGroupsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -102195,7 +102611,7 @@ func (c *NodeGroupsInsertCall) Header() http.Header { func (c *NodeGroupsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -102444,7 +102860,7 @@ func (c *NodeGroupsListCall) Header() http.Header { func (c *NodeGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -102714,7 +103130,7 @@ func (c *NodeGroupsListNodesCall) Header() http.Header { func (c *NodeGroupsListNodesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -102937,7 +103353,7 @@ func (c *NodeGroupsPatchCall) Header() http.Header { func (c *NodeGroupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -103105,7 +103521,7 @@ func (c *NodeGroupsSetIamPolicyCall) Header() http.Header { func (c *NodeGroupsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -103286,7 +103702,7 @@ func (c *NodeGroupsSetNodeTemplateCall) Header() http.Header { func (c *NodeGroupsSetNodeTemplateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -103454,7 +103870,7 @@ func (c *NodeGroupsTestIamPermissionsCall) Header() http.Header { func (c *NodeGroupsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -103709,7 +104125,7 @@ func (c *NodeTemplatesAggregatedListCall) Header() http.Header { func (c *NodeTemplatesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -103920,7 +104336,7 @@ func (c *NodeTemplatesDeleteCall) Header() http.Header { func (c *NodeTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -104089,7 +104505,7 @@ func (c *NodeTemplatesGetCall) Header() http.Header { func (c *NodeTemplatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -104264,7 +104680,7 @@ func (c *NodeTemplatesGetIamPolicyCall) Header() http.Header { func (c *NodeTemplatesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -104446,7 +104862,7 @@ func (c *NodeTemplatesInsertCall) Header() http.Header { func (c *NodeTemplatesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -104686,7 +105102,7 @@ func (c *NodeTemplatesListCall) Header() http.Header { func (c *NodeTemplatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -104885,7 +105301,7 @@ func (c *NodeTemplatesSetIamPolicyCall) Header() http.Header { func (c *NodeTemplatesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -105048,7 +105464,7 @@ func (c *NodeTemplatesTestIamPermissionsCall) Header() http.Header { func (c *NodeTemplatesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -105303,7 +105719,7 @@ func (c *NodeTypesAggregatedListCall) Header() http.Header { func (c *NodeTypesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -105507,7 +105923,7 @@ func (c *NodeTypesGetCall) Header() http.Header { func (c *NodeTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -105747,7 +106163,7 @@ func (c *NodeTypesListCall) Header() http.Header { func (c *NodeTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -105918,7 +106334,7 @@ func (r *OrganizationSecurityPoliciesService) AddAssociation(securityPolicy stri // ReplaceExistingAssociation sets the optional parameter // "replaceExistingAssociation": Indicates whether or not to replace it // if an association of the attachment already exists. This is false by -// default, in which case an error will be returned if an assocation +// default, in which case an error will be returned if an association // already exists. func (c *OrganizationSecurityPoliciesAddAssociationCall) ReplaceExistingAssociation(replaceExistingAssociation bool) *OrganizationSecurityPoliciesAddAssociationCall { c.urlParams_.Set("replaceExistingAssociation", fmt.Sprint(replaceExistingAssociation)) @@ -105971,7 +106387,7 @@ func (c *OrganizationSecurityPoliciesAddAssociationCall) Header() http.Header { func (c *OrganizationSecurityPoliciesAddAssociationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -106043,7 +106459,7 @@ func (c *OrganizationSecurityPoliciesAddAssociationCall) Do(opts ...googleapi.Ca // ], // "parameters": { // "replaceExistingAssociation": { - // "description": "Indicates whether or not to replace it if an association of the attachment already exists. This is false by default, in which case an error will be returned if an assocation already exists.", + // "description": "Indicates whether or not to replace it if an association of the attachment already exists. This is false by default, in which case an error will be returned if an association already exists.", // "location": "query", // "type": "boolean" // }, @@ -106140,7 +106556,7 @@ func (c *OrganizationSecurityPoliciesAddRuleCall) Header() http.Header { func (c *OrganizationSecurityPoliciesAddRuleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -106309,7 +106725,7 @@ func (c *OrganizationSecurityPoliciesCopyRulesCall) Header() http.Header { func (c *OrganizationSecurityPoliciesCopyRulesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -106468,7 +106884,7 @@ func (c *OrganizationSecurityPoliciesDeleteCall) Header() http.Header { func (c *OrganizationSecurityPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -106615,7 +107031,7 @@ func (c *OrganizationSecurityPoliciesGetCall) Header() http.Header { func (c *OrganizationSecurityPoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -106767,7 +107183,7 @@ func (c *OrganizationSecurityPoliciesGetAssociationCall) Header() http.Header { func (c *OrganizationSecurityPoliciesGetAssociationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -106924,7 +107340,7 @@ func (c *OrganizationSecurityPoliciesGetRuleCall) Header() http.Header { func (c *OrganizationSecurityPoliciesGetRuleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -107093,7 +107509,7 @@ func (c *OrganizationSecurityPoliciesInsertCall) Header() http.Header { func (c *OrganizationSecurityPoliciesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -107319,7 +107735,7 @@ func (c *OrganizationSecurityPoliciesListCall) Header() http.Header { func (c *OrganizationSecurityPoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -107512,7 +107928,7 @@ func (c *OrganizationSecurityPoliciesListAssociationsCall) Header() http.Header func (c *OrganizationSecurityPoliciesListAssociationsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -107665,7 +108081,7 @@ func (c *OrganizationSecurityPoliciesMoveCall) Header() http.Header { func (c *OrganizationSecurityPoliciesMoveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -107827,7 +108243,7 @@ func (c *OrganizationSecurityPoliciesPatchCall) Header() http.Header { func (c *OrganizationSecurityPoliciesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -107998,7 +108414,7 @@ func (c *OrganizationSecurityPoliciesPatchRuleCall) Header() http.Header { func (c *OrganizationSecurityPoliciesPatchRuleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -108174,7 +108590,7 @@ func (c *OrganizationSecurityPoliciesRemoveAssociationCall) Header() http.Header func (c *OrganizationSecurityPoliciesRemoveAssociationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -108340,7 +108756,7 @@ func (c *OrganizationSecurityPoliciesRemoveRuleCall) Header() http.Header { func (c *OrganizationSecurityPoliciesRemoveRuleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -108579,7 +108995,7 @@ func (c *PacketMirroringsAggregatedListCall) Header() http.Header { func (c *PacketMirroringsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -108790,7 +109206,7 @@ func (c *PacketMirroringsDeleteCall) Header() http.Header { func (c *PacketMirroringsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -108958,7 +109374,7 @@ func (c *PacketMirroringsGetCall) Header() http.Header { func (c *PacketMirroringsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -109134,7 +109550,7 @@ func (c *PacketMirroringsInsertCall) Header() http.Header { func (c *PacketMirroringsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -109374,7 +109790,7 @@ func (c *PacketMirroringsListCall) Header() http.Header { func (c *PacketMirroringsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -109593,7 +110009,7 @@ func (c *PacketMirroringsPatchCall) Header() http.Header { func (c *PacketMirroringsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -109761,7 +110177,7 @@ func (c *PacketMirroringsTestIamPermissionsCall) Header() http.Header { func (c *PacketMirroringsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -109937,7 +110353,7 @@ func (c *ProjectsDisableXpnHostCall) Header() http.Header { func (c *ProjectsDisableXpnHostCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -110094,7 +110510,7 @@ func (c *ProjectsDisableXpnResourceCall) Header() http.Header { func (c *ProjectsDisableXpnResourceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -110256,7 +110672,7 @@ func (c *ProjectsEnableXpnHostCall) Header() http.Header { func (c *ProjectsEnableXpnHostCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -110414,7 +110830,7 @@ func (c *ProjectsEnableXpnResourceCall) Header() http.Header { func (c *ProjectsEnableXpnResourceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -110569,7 +110985,7 @@ func (c *ProjectsGetCall) Header() http.Header { func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -110715,7 +111131,7 @@ func (c *ProjectsGetXpnHostCall) Header() http.Header { func (c *ProjectsGetXpnHostCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -110934,7 +111350,7 @@ func (c *ProjectsGetXpnResourcesCall) Header() http.Header { func (c *ProjectsGetXpnResourcesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -111193,7 +111609,7 @@ func (c *ProjectsListXpnHostsCall) Header() http.Header { func (c *ProjectsListXpnHostsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -111401,7 +111817,7 @@ func (c *ProjectsMoveDiskCall) Header() http.Header { func (c *ProjectsMoveDiskCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -111566,7 +111982,7 @@ func (c *ProjectsMoveInstanceCall) Header() http.Header { func (c *ProjectsMoveInstanceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -111732,7 +112148,7 @@ func (c *ProjectsSetCommonInstanceMetadataCall) Header() http.Header { func (c *ProjectsSetCommonInstanceMetadataCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -111899,7 +112315,7 @@ func (c *ProjectsSetDefaultNetworkTierCall) Header() http.Header { func (c *ProjectsSetDefaultNetworkTierCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -112067,7 +112483,7 @@ func (c *ProjectsSetUsageExportBucketCall) Header() http.Header { func (c *ProjectsSetUsageExportBucketCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -112236,7 +112652,7 @@ func (c *RegionAutoscalersDeleteCall) Header() http.Header { func (c *RegionAutoscalersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -112404,7 +112820,7 @@ func (c *RegionAutoscalersGetCall) Header() http.Header { func (c *RegionAutoscalersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -112580,7 +112996,7 @@ func (c *RegionAutoscalersInsertCall) Header() http.Header { func (c *RegionAutoscalersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -112820,7 +113236,7 @@ func (c *RegionAutoscalersListCall) Header() http.Header { func (c *RegionAutoscalersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -113044,7 +113460,7 @@ func (c *RegionAutoscalersPatchCall) Header() http.Header { func (c *RegionAutoscalersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -113209,7 +113625,7 @@ func (c *RegionAutoscalersTestIamPermissionsCall) Header() http.Header { func (c *RegionAutoscalersTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -113397,7 +113813,7 @@ func (c *RegionAutoscalersUpdateCall) Header() http.Header { func (c *RegionAutoscalersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -113578,7 +113994,7 @@ func (c *RegionBackendServicesDeleteCall) Header() http.Header { func (c *RegionBackendServicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -113746,7 +114162,7 @@ func (c *RegionBackendServicesGetCall) Header() http.Header { func (c *RegionBackendServicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -113905,7 +114321,7 @@ func (c *RegionBackendServicesGetHealthCall) Header() http.Header { func (c *RegionBackendServicesGetHealthCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -114086,7 +114502,7 @@ func (c *RegionBackendServicesInsertCall) Header() http.Header { func (c *RegionBackendServicesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -114326,7 +114742,7 @@ func (c *RegionBackendServicesListCall) Header() http.Header { func (c *RegionBackendServicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -114546,7 +114962,7 @@ func (c *RegionBackendServicesPatchCall) Header() http.Header { func (c *RegionBackendServicesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -114714,7 +115130,7 @@ func (c *RegionBackendServicesTestIamPermissionsCall) Header() http.Header { func (c *RegionBackendServicesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -114898,7 +115314,7 @@ func (c *RegionBackendServicesUpdateCall) Header() http.Header { func (c *RegionBackendServicesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -115157,7 +115573,7 @@ func (c *RegionCommitmentsAggregatedListCall) Header() http.Header { func (c *RegionCommitmentsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -115361,7 +115777,7 @@ func (c *RegionCommitmentsGetCall) Header() http.Header { func (c *RegionCommitmentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -115537,7 +115953,7 @@ func (c *RegionCommitmentsInsertCall) Header() http.Header { func (c *RegionCommitmentsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -115777,7 +116193,7 @@ func (c *RegionCommitmentsListCall) Header() http.Header { func (c *RegionCommitmentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -115995,7 +116411,7 @@ func (c *RegionCommitmentsUpdateReservationsCall) Header() http.Header { func (c *RegionCommitmentsUpdateReservationsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -116172,7 +116588,7 @@ func (c *RegionDiskTypesGetCall) Header() http.Header { func (c *RegionDiskTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -116412,7 +116828,7 @@ func (c *RegionDiskTypesListCall) Header() http.Header { func (c *RegionDiskTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -116631,7 +117047,7 @@ func (c *RegionDisksAddResourcePoliciesCall) Header() http.Header { func (c *RegionDisksAddResourcePoliciesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -116817,7 +117233,7 @@ func (c *RegionDisksCreateSnapshotCall) Header() http.Header { func (c *RegionDisksCreateSnapshotCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -117004,7 +117420,7 @@ func (c *RegionDisksDeleteCall) Header() http.Header { func (c *RegionDisksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -117171,7 +117587,7 @@ func (c *RegionDisksGetCall) Header() http.Header { func (c *RegionDisksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -117346,7 +117762,7 @@ func (c *RegionDisksGetIamPolicyCall) Header() http.Header { func (c *RegionDisksGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -117535,7 +117951,7 @@ func (c *RegionDisksInsertCall) Header() http.Header { func (c *RegionDisksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -117780,7 +118196,7 @@ func (c *RegionDisksListCall) Header() http.Header { func (c *RegionDisksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -117998,7 +118414,7 @@ func (c *RegionDisksRemoveResourcePoliciesCall) Header() http.Header { func (c *RegionDisksRemoveResourcePoliciesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -118184,7 +118600,7 @@ func (c *RegionDisksResizeCall) Header() http.Header { func (c *RegionDisksResizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -118352,7 +118768,7 @@ func (c *RegionDisksSetIamPolicyCall) Header() http.Header { func (c *RegionDisksSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -118533,7 +118949,7 @@ func (c *RegionDisksSetLabelsCall) Header() http.Header { func (c *RegionDisksSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -118701,7 +119117,7 @@ func (c *RegionDisksTestIamPermissionsCall) Header() http.Header { func (c *RegionDisksTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -118881,7 +119297,7 @@ func (c *RegionHealthCheckServicesDeleteCall) Header() http.Header { func (c *RegionHealthCheckServicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -119048,7 +119464,7 @@ func (c *RegionHealthCheckServicesGetCall) Header() http.Header { func (c *RegionHealthCheckServicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -119223,7 +119639,7 @@ func (c *RegionHealthCheckServicesInsertCall) Header() http.Header { func (c *RegionHealthCheckServicesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -119463,7 +119879,7 @@ func (c *RegionHealthCheckServicesListCall) Header() http.Header { func (c *RegionHealthCheckServicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -119682,7 +120098,7 @@ func (c *RegionHealthCheckServicesPatchCall) Header() http.Header { func (c *RegionHealthCheckServicesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -119865,7 +120281,7 @@ func (c *RegionHealthChecksDeleteCall) Header() http.Header { func (c *RegionHealthChecksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -120034,7 +120450,7 @@ func (c *RegionHealthChecksGetCall) Header() http.Header { func (c *RegionHealthChecksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -120210,7 +120626,7 @@ func (c *RegionHealthChecksInsertCall) Header() http.Header { func (c *RegionHealthChecksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -120450,7 +120866,7 @@ func (c *RegionHealthChecksListCall) Header() http.Header { func (c *RegionHealthChecksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -120669,7 +121085,7 @@ func (c *RegionHealthChecksPatchCall) Header() http.Header { func (c *RegionHealthChecksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -120856,7 +121272,7 @@ func (c *RegionHealthChecksUpdateCall) Header() http.Header { func (c *RegionHealthChecksUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -121058,7 +121474,7 @@ func (c *RegionInstanceGroupManagersAbandonInstancesCall) Header() http.Header { func (c *RegionInstanceGroupManagersAbandonInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -121224,7 +121640,7 @@ func (c *RegionInstanceGroupManagersApplyUpdatesToInstancesCall) Header() http.H func (c *RegionInstanceGroupManagersApplyUpdatesToInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -121407,7 +121823,7 @@ func (c *RegionInstanceGroupManagersCreateInstancesCall) Header() http.Header { func (c *RegionInstanceGroupManagersCreateInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -121590,7 +122006,7 @@ func (c *RegionInstanceGroupManagersDeleteCall) Header() http.Header { func (c *RegionInstanceGroupManagersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -121782,7 +122198,7 @@ func (c *RegionInstanceGroupManagersDeleteInstancesCall) Header() http.Header { func (c *RegionInstanceGroupManagersDeleteInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -121948,7 +122364,7 @@ func (c *RegionInstanceGroupManagersDeletePerInstanceConfigsCall) Header() http. func (c *RegionInstanceGroupManagersDeletePerInstanceConfigsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -122118,7 +122534,7 @@ func (c *RegionInstanceGroupManagersGetCall) Header() http.Header { func (c *RegionInstanceGroupManagersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -122299,7 +122715,7 @@ func (c *RegionInstanceGroupManagersInsertCall) Header() http.Header { func (c *RegionInstanceGroupManagersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -122538,7 +122954,7 @@ func (c *RegionInstanceGroupManagersListCall) Header() http.Header { func (c *RegionInstanceGroupManagersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -122820,7 +123236,7 @@ func (c *RegionInstanceGroupManagersListErrorsCall) Header() http.Header { func (c *RegionInstanceGroupManagersListErrorsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -123102,7 +123518,7 @@ func (c *RegionInstanceGroupManagersListManagedInstancesCall) Header() http.Head func (c *RegionInstanceGroupManagersListManagedInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -123380,7 +123796,7 @@ func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) Header() http.He func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -123609,7 +124025,7 @@ func (c *RegionInstanceGroupManagersPatchCall) Header() http.Header { func (c *RegionInstanceGroupManagersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -123796,7 +124212,7 @@ func (c *RegionInstanceGroupManagersPatchPerInstanceConfigsCall) Header() http.H func (c *RegionInstanceGroupManagersPatchPerInstanceConfigsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -123994,7 +124410,7 @@ func (c *RegionInstanceGroupManagersRecreateInstancesCall) Header() http.Header func (c *RegionInstanceGroupManagersRecreateInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -124189,7 +124605,7 @@ func (c *RegionInstanceGroupManagersResizeCall) Header() http.Header { func (c *RegionInstanceGroupManagersResizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -124376,7 +124792,7 @@ func (c *RegionInstanceGroupManagersSetAutoHealingPoliciesCall) Header() http.He func (c *RegionInstanceGroupManagersSetAutoHealingPoliciesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -124562,7 +124978,7 @@ func (c *RegionInstanceGroupManagersSetInstanceTemplateCall) Header() http.Heade func (c *RegionInstanceGroupManagersSetInstanceTemplateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -124748,7 +125164,7 @@ func (c *RegionInstanceGroupManagersSetTargetPoolsCall) Header() http.Header { func (c *RegionInstanceGroupManagersSetTargetPoolsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -124914,7 +125330,7 @@ func (c *RegionInstanceGroupManagersTestIamPermissionsCall) Header() http.Header func (c *RegionInstanceGroupManagersTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -125100,7 +125516,7 @@ func (c *RegionInstanceGroupManagersUpdateCall) Header() http.Header { func (c *RegionInstanceGroupManagersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -125287,7 +125703,7 @@ func (c *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) Header() http. func (c *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -125461,7 +125877,7 @@ func (c *RegionInstanceGroupsGetCall) Header() http.Header { func (c *RegionInstanceGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -125699,7 +126115,7 @@ func (c *RegionInstanceGroupsListCall) Header() http.Header { func (c *RegionInstanceGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -125974,7 +126390,7 @@ func (c *RegionInstanceGroupsListInstancesCall) Header() http.Header { func (c *RegionInstanceGroupsListInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -126205,7 +126621,7 @@ func (c *RegionInstanceGroupsSetNamedPortsCall) Header() http.Header { func (c *RegionInstanceGroupsSetNamedPortsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -126371,7 +126787,7 @@ func (c *RegionInstanceGroupsTestIamPermissionsCall) Header() http.Header { func (c *RegionInstanceGroupsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -126553,7 +126969,7 @@ func (c *RegionNetworkEndpointGroupsDeleteCall) Header() http.Header { func (c *RegionNetworkEndpointGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -126720,7 +127136,7 @@ func (c *RegionNetworkEndpointGroupsGetCall) Header() http.Header { func (c *RegionNetworkEndpointGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -126894,7 +127310,7 @@ func (c *RegionNetworkEndpointGroupsInsertCall) Header() http.Header { func (c *RegionNetworkEndpointGroupsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -127133,7 +127549,7 @@ func (c *RegionNetworkEndpointGroupsListCall) Header() http.Header { func (c *RegionNetworkEndpointGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -127348,7 +127764,7 @@ func (c *RegionNotificationEndpointsDeleteCall) Header() http.Header { func (c *RegionNotificationEndpointsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -127517,7 +127933,7 @@ func (c *RegionNotificationEndpointsGetCall) Header() http.Header { func (c *RegionNotificationEndpointsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -127693,7 +128109,7 @@ func (c *RegionNotificationEndpointsInsertCall) Header() http.Header { func (c *RegionNotificationEndpointsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -127933,7 +128349,7 @@ func (c *RegionNotificationEndpointsListCall) Header() http.Header { func (c *RegionNotificationEndpointsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -128130,7 +128546,7 @@ func (c *RegionOperationsDeleteCall) Header() http.Header { func (c *RegionOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -128266,7 +128682,7 @@ func (c *RegionOperationsGetCall) Header() http.Header { func (c *RegionOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -128507,7 +128923,7 @@ func (c *RegionOperationsListCall) Header() http.Header { func (c *RegionOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -128716,7 +129132,7 @@ func (c *RegionOperationsWaitCall) Header() http.Header { func (c *RegionOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -128888,7 +129304,7 @@ func (c *RegionSslCertificatesDeleteCall) Header() http.Header { func (c *RegionSslCertificatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -129058,7 +129474,7 @@ func (c *RegionSslCertificatesGetCall) Header() http.Header { func (c *RegionSslCertificatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -129234,7 +129650,7 @@ func (c *RegionSslCertificatesInsertCall) Header() http.Header { func (c *RegionSslCertificatesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -129474,7 +129890,7 @@ func (c *RegionSslCertificatesListCall) Header() http.Header { func (c *RegionSslCertificatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -129689,7 +130105,7 @@ func (c *RegionTargetHttpProxiesDeleteCall) Header() http.Header { func (c *RegionTargetHttpProxiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -129859,7 +130275,7 @@ func (c *RegionTargetHttpProxiesGetCall) Header() http.Header { func (c *RegionTargetHttpProxiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -130035,7 +130451,7 @@ func (c *RegionTargetHttpProxiesInsertCall) Header() http.Header { func (c *RegionTargetHttpProxiesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -130275,7 +130691,7 @@ func (c *RegionTargetHttpProxiesListCall) Header() http.Header { func (c *RegionTargetHttpProxiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -130492,7 +130908,7 @@ func (c *RegionTargetHttpProxiesSetUrlMapCall) Header() http.Header { func (c *RegionTargetHttpProxiesSetUrlMapCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -130676,7 +131092,7 @@ func (c *RegionTargetHttpsProxiesDeleteCall) Header() http.Header { func (c *RegionTargetHttpsProxiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -130846,7 +131262,7 @@ func (c *RegionTargetHttpsProxiesGetCall) Header() http.Header { func (c *RegionTargetHttpsProxiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -131022,7 +131438,7 @@ func (c *RegionTargetHttpsProxiesInsertCall) Header() http.Header { func (c *RegionTargetHttpsProxiesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -131262,7 +131678,7 @@ func (c *RegionTargetHttpsProxiesListCall) Header() http.Header { func (c *RegionTargetHttpsProxiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -131479,7 +131895,7 @@ func (c *RegionTargetHttpsProxiesSetSslCertificatesCall) Header() http.Header { func (c *RegionTargetHttpsProxiesSetSslCertificatesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -131665,7 +132081,7 @@ func (c *RegionTargetHttpsProxiesSetUrlMapCall) Header() http.Header { func (c *RegionTargetHttpsProxiesSetUrlMapCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -131837,7 +132253,7 @@ func (c *RegionUrlMapsDeleteCall) Header() http.Header { func (c *RegionUrlMapsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -132006,7 +132422,7 @@ func (c *RegionUrlMapsGetCall) Header() http.Header { func (c *RegionUrlMapsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -132170,7 +132586,7 @@ func (c *RegionUrlMapsInsertCall) Header() http.Header { func (c *RegionUrlMapsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -132293,6 +132709,9 @@ type RegionUrlMapsInvalidateCacheCall struct { // InvalidateCache: Initiates a cache invalidation operation, // invalidating the specified path, scoped to the specified UrlMap. +// +// For more information, see [Invalidating cached +// content](/cdn/docs/invalidating-cached-content). func (r *RegionUrlMapsService) InvalidateCache(project string, region string, urlMap string, cacheinvalidationrule *CacheInvalidationRule) *RegionUrlMapsInvalidateCacheCall { c := &RegionUrlMapsInvalidateCacheCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -132336,7 +132755,7 @@ func (c *RegionUrlMapsInvalidateCacheCall) Header() http.Header { func (c *RegionUrlMapsInvalidateCacheCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -132402,7 +132821,7 @@ func (c *RegionUrlMapsInvalidateCacheCall) Do(opts ...googleapi.CallOption) (*Op } return ret, nil // { - // "description": "Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap.", + // "description": "Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap.\n\nFor more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content).", // "httpMethod": "POST", // "id": "compute.regionUrlMaps.invalidateCache", // "parameterOrder": [ @@ -132585,7 +133004,7 @@ func (c *RegionUrlMapsListCall) Header() http.Header { func (c *RegionUrlMapsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -132792,7 +133211,7 @@ func (c *RegionUrlMapsPatchCall) Header() http.Header { func (c *RegionUrlMapsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -132967,7 +133386,7 @@ func (c *RegionUrlMapsUpdateCall) Header() http.Header { func (c *RegionUrlMapsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -133136,7 +133555,7 @@ func (c *RegionUrlMapsValidateCall) Header() http.Header { func (c *RegionUrlMapsValidateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -133307,7 +133726,7 @@ func (c *RegionsGetCall) Header() http.Header { func (c *RegionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -133537,7 +133956,7 @@ func (c *RegionsListCall) Header() http.Header { func (c *RegionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -133818,7 +134237,7 @@ func (c *ReservationsAggregatedListCall) Header() http.Header { func (c *ReservationsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -134029,7 +134448,7 @@ func (c *ReservationsDeleteCall) Header() http.Header { func (c *ReservationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -134197,7 +134616,7 @@ func (c *ReservationsGetCall) Header() http.Header { func (c *ReservationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -134372,7 +134791,7 @@ func (c *ReservationsGetIamPolicyCall) Header() http.Header { func (c *ReservationsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -134554,7 +134973,7 @@ func (c *ReservationsInsertCall) Header() http.Header { func (c *ReservationsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -134794,7 +135213,7 @@ func (c *ReservationsListCall) Header() http.Header { func (c *ReservationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -135013,7 +135432,7 @@ func (c *ReservationsResizeCall) Header() http.Header { func (c *ReservationsResizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -135181,7 +135600,7 @@ func (c *ReservationsSetIamPolicyCall) Header() http.Header { func (c *ReservationsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -135344,7 +135763,7 @@ func (c *ReservationsTestIamPermissionsCall) Header() http.Header { func (c *ReservationsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -135599,7 +136018,7 @@ func (c *ResourcePoliciesAggregatedListCall) Header() http.Header { func (c *ResourcePoliciesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -135810,7 +136229,7 @@ func (c *ResourcePoliciesDeleteCall) Header() http.Header { func (c *ResourcePoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -135978,7 +136397,7 @@ func (c *ResourcePoliciesGetCall) Header() http.Header { func (c *ResourcePoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -136153,7 +136572,7 @@ func (c *ResourcePoliciesGetIamPolicyCall) Header() http.Header { func (c *ResourcePoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -136334,7 +136753,7 @@ func (c *ResourcePoliciesInsertCall) Header() http.Header { func (c *ResourcePoliciesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -136574,7 +136993,7 @@ func (c *ResourcePoliciesListCall) Header() http.Header { func (c *ResourcePoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -136773,7 +137192,7 @@ func (c *ResourcePoliciesSetIamPolicyCall) Header() http.Header { func (c *ResourcePoliciesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -136936,7 +137355,7 @@ func (c *ResourcePoliciesTestIamPermissionsCall) Header() http.Header { func (c *ResourcePoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -137191,7 +137610,7 @@ func (c *RoutersAggregatedListCall) Header() http.Header { func (c *RoutersAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -137402,7 +137821,7 @@ func (c *RoutersDeleteCall) Header() http.Header { func (c *RoutersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -137571,7 +137990,7 @@ func (c *RoutersGetCall) Header() http.Header { func (c *RoutersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -137822,7 +138241,7 @@ func (c *RoutersGetNatMappingInfoCall) Header() http.Header { func (c *RoutersGetNatMappingInfoCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -138044,7 +138463,7 @@ func (c *RoutersGetRouterStatusCall) Header() http.Header { func (c *RoutersGetRouterStatusCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -138220,7 +138639,7 @@ func (c *RoutersInsertCall) Header() http.Header { func (c *RoutersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -138460,7 +138879,7 @@ func (c *RoutersListCall) Header() http.Header { func (c *RoutersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -138679,7 +139098,7 @@ func (c *RoutersPatchCall) Header() http.Header { func (c *RoutersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -138848,7 +139267,7 @@ func (c *RoutersPreviewCall) Header() http.Header { func (c *RoutersPreviewCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -139012,7 +139431,7 @@ func (c *RoutersTestIamPermissionsCall) Header() http.Header { func (c *RoutersTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -139198,7 +139617,7 @@ func (c *RoutersUpdateCall) Header() http.Header { func (c *RoutersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -139381,7 +139800,7 @@ func (c *RoutesDeleteCall) Header() http.Header { func (c *RoutesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -139540,7 +139959,7 @@ func (c *RoutesGetCall) Header() http.Header { func (c *RoutesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -139706,7 +140125,7 @@ func (c *RoutesInsertCall) Header() http.Header { func (c *RoutesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -139936,7 +140355,7 @@ func (c *RoutesListCall) Header() http.Header { func (c *RoutesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -140124,7 +140543,7 @@ func (c *RoutesTestIamPermissionsCall) Header() http.Header { func (c *RoutesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -140283,7 +140702,7 @@ func (c *SecurityPoliciesAddRuleCall) Header() http.Header { func (c *SecurityPoliciesAddRuleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -140456,7 +140875,7 @@ func (c *SecurityPoliciesDeleteCall) Header() http.Header { func (c *SecurityPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -140614,7 +141033,7 @@ func (c *SecurityPoliciesGetCall) Header() http.Header { func (c *SecurityPoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -140777,7 +141196,7 @@ func (c *SecurityPoliciesGetRuleCall) Header() http.Header { func (c *SecurityPoliciesGetRuleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -140955,7 +141374,7 @@ func (c *SecurityPoliciesInsertCall) Header() http.Header { func (c *SecurityPoliciesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -141189,7 +141608,7 @@ func (c *SecurityPoliciesListCall) Header() http.Header { func (c *SecurityPoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -141458,7 +141877,7 @@ func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) Header() http.Head func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -141646,7 +142065,7 @@ func (c *SecurityPoliciesPatchCall) Header() http.Header { func (c *SecurityPoliciesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -141816,7 +142235,7 @@ func (c *SecurityPoliciesPatchRuleCall) Header() http.Header { func (c *SecurityPoliciesPatchRuleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -141983,7 +142402,7 @@ func (c *SecurityPoliciesRemoveRuleCall) Header() http.Header { func (c *SecurityPoliciesRemoveRuleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -142133,7 +142552,7 @@ func (c *SecurityPoliciesSetLabelsCall) Header() http.Header { func (c *SecurityPoliciesSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -142285,7 +142704,7 @@ func (c *SecurityPoliciesTestIamPermissionsCall) Header() http.Header { func (c *SecurityPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -142461,7 +142880,7 @@ func (c *SnapshotsDeleteCall) Header() http.Header { func (c *SnapshotsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -142620,7 +143039,7 @@ func (c *SnapshotsGetCall) Header() http.Header { func (c *SnapshotsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -142784,7 +143203,7 @@ func (c *SnapshotsGetIamPolicyCall) Header() http.Header { func (c *SnapshotsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -142955,7 +143374,7 @@ func (c *SnapshotsInsertCall) Header() http.Header { func (c *SnapshotsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -143185,7 +143604,7 @@ func (c *SnapshotsListCall) Header() http.Header { func (c *SnapshotsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -143373,7 +143792,7 @@ func (c *SnapshotsSetIamPolicyCall) Header() http.Header { func (c *SnapshotsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -143525,7 +143944,7 @@ func (c *SnapshotsSetLabelsCall) Header() http.Header { func (c *SnapshotsSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -143677,7 +144096,7 @@ func (c *SnapshotsTestIamPermissionsCall) Header() http.Header { func (c *SnapshotsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -143924,7 +144343,7 @@ func (c *SslCertificatesAggregatedListCall) Header() http.Header { func (c *SslCertificatesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -144133,7 +144552,7 @@ func (c *SslCertificatesDeleteCall) Header() http.Header { func (c *SslCertificatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -144291,7 +144710,7 @@ func (c *SslCertificatesGetCall) Header() http.Header { func (c *SslCertificatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -144456,7 +144875,7 @@ func (c *SslCertificatesInsertCall) Header() http.Header { func (c *SslCertificatesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -144685,7 +145104,7 @@ func (c *SslCertificatesListCall) Header() http.Header { func (c *SslCertificatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -144873,7 +145292,7 @@ func (c *SslCertificatesTestIamPermissionsCall) Header() http.Header { func (c *SslCertificatesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -145044,7 +145463,7 @@ func (c *SslPoliciesDeleteCall) Header() http.Header { func (c *SslPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -145201,7 +145620,7 @@ func (c *SslPoliciesGetCall) Header() http.Header { func (c *SslPoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -145365,7 +145784,7 @@ func (c *SslPoliciesInsertCall) Header() http.Header { func (c *SslPoliciesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -145594,7 +146013,7 @@ func (c *SslPoliciesListCall) Header() http.Header { func (c *SslPoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -145863,7 +146282,7 @@ func (c *SslPoliciesListAvailableFeaturesCall) Header() http.Header { func (c *SslPoliciesListAvailableFeaturesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -146051,7 +146470,7 @@ func (c *SslPoliciesPatchCall) Header() http.Header { func (c *SslPoliciesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -146207,7 +146626,7 @@ func (c *SslPoliciesTestIamPermissionsCall) Header() http.Header { func (c *SslPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -146453,7 +146872,7 @@ func (c *SubnetworksAggregatedListCall) Header() http.Header { func (c *SubnetworksAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -146664,7 +147083,7 @@ func (c *SubnetworksDeleteCall) Header() http.Header { func (c *SubnetworksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -146843,7 +147262,7 @@ func (c *SubnetworksExpandIpCidrRangeCall) Header() http.Header { func (c *SubnetworksExpandIpCidrRangeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -147020,7 +147439,7 @@ func (c *SubnetworksGetCall) Header() http.Header { func (c *SubnetworksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -147195,7 +147614,7 @@ func (c *SubnetworksGetIamPolicyCall) Header() http.Header { func (c *SubnetworksGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -147377,7 +147796,7 @@ func (c *SubnetworksInsertCall) Header() http.Header { func (c *SubnetworksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -147617,7 +148036,7 @@ func (c *SubnetworksListCall) Header() http.Header { func (c *SubnetworksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -147895,7 +148314,7 @@ func (c *SubnetworksListUsableCall) Header() http.Header { func (c *SubnetworksListUsableCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -148121,7 +148540,7 @@ func (c *SubnetworksPatchCall) Header() http.Header { func (c *SubnetworksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -148295,7 +148714,7 @@ func (c *SubnetworksSetIamPolicyCall) Header() http.Header { func (c *SubnetworksSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -148478,7 +148897,7 @@ func (c *SubnetworksSetPrivateIpGoogleAccessCall) Header() http.Header { func (c *SubnetworksSetPrivateIpGoogleAccessCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -148646,7 +149065,7 @@ func (c *SubnetworksTestIamPermissionsCall) Header() http.Header { func (c *SubnetworksTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -148824,7 +149243,7 @@ func (c *TargetGrpcProxiesDeleteCall) Header() http.Header { func (c *TargetGrpcProxiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -148982,7 +149401,7 @@ func (c *TargetGrpcProxiesGetCall) Header() http.Header { func (c *TargetGrpcProxiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -149147,7 +149566,7 @@ func (c *TargetGrpcProxiesInsertCall) Header() http.Header { func (c *TargetGrpcProxiesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -149375,7 +149794,7 @@ func (c *TargetGrpcProxiesListCall) Header() http.Header { func (c *TargetGrpcProxiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -149583,7 +150002,7 @@ func (c *TargetGrpcProxiesPatchCall) Header() http.Header { func (c *TargetGrpcProxiesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -149834,7 +150253,7 @@ func (c *TargetHttpProxiesAggregatedListCall) Header() http.Header { func (c *TargetHttpProxiesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -150044,7 +150463,7 @@ func (c *TargetHttpProxiesDeleteCall) Header() http.Header { func (c *TargetHttpProxiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -150203,7 +150622,7 @@ func (c *TargetHttpProxiesGetCall) Header() http.Header { func (c *TargetHttpProxiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -150369,7 +150788,7 @@ func (c *TargetHttpProxiesInsertCall) Header() http.Header { func (c *TargetHttpProxiesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -150599,7 +151018,7 @@ func (c *TargetHttpProxiesListCall) Header() http.Header { func (c *TargetHttpProxiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -150808,7 +151227,7 @@ func (c *TargetHttpProxiesPatchCall) Header() http.Header { func (c *TargetHttpProxiesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -150984,7 +151403,7 @@ func (c *TargetHttpProxiesSetUrlMapCall) Header() http.Header { func (c *TargetHttpProxiesSetUrlMapCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -151141,7 +151560,7 @@ func (c *TargetHttpProxiesTestIamPermissionsCall) Header() http.Header { func (c *TargetHttpProxiesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -151388,7 +151807,7 @@ func (c *TargetHttpsProxiesAggregatedListCall) Header() http.Header { func (c *TargetHttpsProxiesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -151597,7 +152016,7 @@ func (c *TargetHttpsProxiesDeleteCall) Header() http.Header { func (c *TargetHttpsProxiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -151755,7 +152174,7 @@ func (c *TargetHttpsProxiesGetCall) Header() http.Header { func (c *TargetHttpsProxiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -151920,7 +152339,7 @@ func (c *TargetHttpsProxiesInsertCall) Header() http.Header { func (c *TargetHttpsProxiesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -152149,7 +152568,7 @@ func (c *TargetHttpsProxiesListCall) Header() http.Header { func (c *TargetHttpsProxiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -152355,7 +152774,7 @@ func (c *TargetHttpsProxiesSetQuicOverrideCall) Header() http.Header { func (c *TargetHttpsProxiesSetQuicOverrideCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -152529,7 +152948,7 @@ func (c *TargetHttpsProxiesSetSslCertificatesCall) Header() http.Header { func (c *TargetHttpsProxiesSetSslCertificatesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -152708,7 +153127,7 @@ func (c *TargetHttpsProxiesSetSslPolicyCall) Header() http.Header { func (c *TargetHttpsProxiesSetSslPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -152882,7 +153301,7 @@ func (c *TargetHttpsProxiesSetUrlMapCall) Header() http.Header { func (c *TargetHttpsProxiesSetUrlMapCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -153039,7 +153458,7 @@ func (c *TargetHttpsProxiesTestIamPermissionsCall) Header() http.Header { func (c *TargetHttpsProxiesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -153286,7 +153705,7 @@ func (c *TargetInstancesAggregatedListCall) Header() http.Header { func (c *TargetInstancesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -153498,7 +153917,7 @@ func (c *TargetInstancesDeleteCall) Header() http.Header { func (c *TargetInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -153668,7 +154087,7 @@ func (c *TargetInstancesGetCall) Header() http.Header { func (c *TargetInstancesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -153845,7 +154264,7 @@ func (c *TargetInstancesInsertCall) Header() http.Header { func (c *TargetInstancesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -154086,7 +154505,7 @@ func (c *TargetInstancesListCall) Header() http.Header { func (c *TargetInstancesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -154285,7 +154704,7 @@ func (c *TargetInstancesTestIamPermissionsCall) Header() http.Header { func (c *TargetInstancesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -154468,7 +154887,7 @@ func (c *TargetPoolsAddHealthCheckCall) Header() http.Header { func (c *TargetPoolsAddHealthCheckCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -154655,7 +155074,7 @@ func (c *TargetPoolsAddInstanceCall) Header() http.Header { func (c *TargetPoolsAddInstanceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -154915,7 +155334,7 @@ func (c *TargetPoolsAggregatedListCall) Header() http.Header { func (c *TargetPoolsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -155127,7 +155546,7 @@ func (c *TargetPoolsDeleteCall) Header() http.Header { func (c *TargetPoolsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -155297,7 +155716,7 @@ func (c *TargetPoolsGetCall) Header() http.Header { func (c *TargetPoolsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -155457,7 +155876,7 @@ func (c *TargetPoolsGetHealthCall) Header() http.Header { func (c *TargetPoolsGetHealthCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -155639,7 +156058,7 @@ func (c *TargetPoolsInsertCall) Header() http.Header { func (c *TargetPoolsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -155880,7 +156299,7 @@ func (c *TargetPoolsListCall) Header() http.Header { func (c *TargetPoolsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -156098,7 +156517,7 @@ func (c *TargetPoolsRemoveHealthCheckCall) Header() http.Header { func (c *TargetPoolsRemoveHealthCheckCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -156285,7 +156704,7 @@ func (c *TargetPoolsRemoveInstanceCall) Header() http.Header { func (c *TargetPoolsRemoveInstanceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -156479,7 +156898,7 @@ func (c *TargetPoolsSetBackupCall) Header() http.Header { func (c *TargetPoolsSetBackupCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -156653,7 +157072,7 @@ func (c *TargetPoolsTestIamPermissionsCall) Header() http.Header { func (c *TargetPoolsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -156831,7 +157250,7 @@ func (c *TargetSslProxiesDeleteCall) Header() http.Header { func (c *TargetSslProxiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -156989,7 +157408,7 @@ func (c *TargetSslProxiesGetCall) Header() http.Header { func (c *TargetSslProxiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -157154,7 +157573,7 @@ func (c *TargetSslProxiesInsertCall) Header() http.Header { func (c *TargetSslProxiesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -157383,7 +157802,7 @@ func (c *TargetSslProxiesListCall) Header() http.Header { func (c *TargetSslProxiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -157589,7 +158008,7 @@ func (c *TargetSslProxiesSetBackendServiceCall) Header() http.Header { func (c *TargetSslProxiesSetBackendServiceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -157764,7 +158183,7 @@ func (c *TargetSslProxiesSetProxyHeaderCall) Header() http.Header { func (c *TargetSslProxiesSetProxyHeaderCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -157939,7 +158358,7 @@ func (c *TargetSslProxiesSetSslCertificatesCall) Header() http.Header { func (c *TargetSslProxiesSetSslCertificatesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -158117,7 +158536,7 @@ func (c *TargetSslProxiesSetSslPolicyCall) Header() http.Header { func (c *TargetSslProxiesSetSslPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -158273,7 +158692,7 @@ func (c *TargetSslProxiesTestIamPermissionsCall) Header() http.Header { func (c *TargetSslProxiesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -158442,7 +158861,7 @@ func (c *TargetTcpProxiesDeleteCall) Header() http.Header { func (c *TargetTcpProxiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -158600,7 +159019,7 @@ func (c *TargetTcpProxiesGetCall) Header() http.Header { func (c *TargetTcpProxiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -158765,7 +159184,7 @@ func (c *TargetTcpProxiesInsertCall) Header() http.Header { func (c *TargetTcpProxiesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -158994,7 +159413,7 @@ func (c *TargetTcpProxiesListCall) Header() http.Header { func (c *TargetTcpProxiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -159200,7 +159619,7 @@ func (c *TargetTcpProxiesSetBackendServiceCall) Header() http.Header { func (c *TargetTcpProxiesSetBackendServiceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -159375,7 +159794,7 @@ func (c *TargetTcpProxiesSetProxyHeaderCall) Header() http.Header { func (c *TargetTcpProxiesSetProxyHeaderCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -159625,7 +160044,7 @@ func (c *TargetVpnGatewaysAggregatedListCall) Header() http.Header { func (c *TargetVpnGatewaysAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -159836,7 +160255,7 @@ func (c *TargetVpnGatewaysDeleteCall) Header() http.Header { func (c *TargetVpnGatewaysDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -160005,7 +160424,7 @@ func (c *TargetVpnGatewaysGetCall) Header() http.Header { func (c *TargetVpnGatewaysGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -160181,7 +160600,7 @@ func (c *TargetVpnGatewaysInsertCall) Header() http.Header { func (c *TargetVpnGatewaysInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -160421,7 +160840,7 @@ func (c *TargetVpnGatewaysListCall) Header() http.Header { func (c *TargetVpnGatewaysListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -160639,7 +161058,7 @@ func (c *TargetVpnGatewaysSetLabelsCall) Header() http.Header { func (c *TargetVpnGatewaysSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -160807,7 +161226,7 @@ func (c *TargetVpnGatewaysTestIamPermissionsCall) Header() http.Header { func (c *TargetVpnGatewaysTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -161063,7 +161482,7 @@ func (c *UrlMapsAggregatedListCall) Header() http.Header { func (c *UrlMapsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -161273,7 +161692,7 @@ func (c *UrlMapsDeleteCall) Header() http.Header { func (c *UrlMapsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -161432,7 +161851,7 @@ func (c *UrlMapsGetCall) Header() http.Header { func (c *UrlMapsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -161598,7 +162017,7 @@ func (c *UrlMapsInsertCall) Header() http.Header { func (c *UrlMapsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -161711,6 +162130,9 @@ type UrlMapsInvalidateCacheCall struct { // InvalidateCache: Initiates a cache invalidation operation, // invalidating the specified path, scoped to the specified UrlMap. +// +// For more information, see [Invalidating cached +// content](/cdn/docs/invalidating-cached-content). func (r *UrlMapsService) InvalidateCache(project string, urlMap string, cacheinvalidationrule *CacheInvalidationRule) *UrlMapsInvalidateCacheCall { c := &UrlMapsInvalidateCacheCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -161765,7 +162187,7 @@ func (c *UrlMapsInvalidateCacheCall) Header() http.Header { func (c *UrlMapsInvalidateCacheCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -161830,7 +162252,7 @@ func (c *UrlMapsInvalidateCacheCall) Do(opts ...googleapi.CallOption) (*Operatio } return ret, nil // { - // "description": "Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap.", + // "description": "Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap.\n\nFor more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content).", // "httpMethod": "POST", // "id": "compute.urlMaps.invalidateCache", // "parameterOrder": [ @@ -162004,7 +162426,7 @@ func (c *UrlMapsListCall) Header() http.Header { func (c *UrlMapsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -162213,7 +162635,7 @@ func (c *UrlMapsPatchCall) Header() http.Header { func (c *UrlMapsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -162370,7 +162792,7 @@ func (c *UrlMapsTestIamPermissionsCall) Header() http.Header { func (c *UrlMapsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -162543,7 +162965,7 @@ func (c *UrlMapsUpdateCall) Header() http.Header { func (c *UrlMapsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -162702,7 +163124,7 @@ func (c *UrlMapsValidateCall) Header() http.Header { func (c *UrlMapsValidateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -162947,7 +163369,7 @@ func (c *VpnGatewaysAggregatedListCall) Header() http.Header { func (c *VpnGatewaysAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -163158,7 +163580,7 @@ func (c *VpnGatewaysDeleteCall) Header() http.Header { func (c *VpnGatewaysDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -163327,7 +163749,7 @@ func (c *VpnGatewaysGetCall) Header() http.Header { func (c *VpnGatewaysGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -163494,7 +163916,7 @@ func (c *VpnGatewaysGetStatusCall) Header() http.Header { func (c *VpnGatewaysGetStatusCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -163670,7 +164092,7 @@ func (c *VpnGatewaysInsertCall) Header() http.Header { func (c *VpnGatewaysInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -163910,7 +164332,7 @@ func (c *VpnGatewaysListCall) Header() http.Header { func (c *VpnGatewaysListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -164128,7 +164550,7 @@ func (c *VpnGatewaysSetLabelsCall) Header() http.Header { func (c *VpnGatewaysSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -164387,7 +164809,7 @@ func (c *VpnTunnelsAggregatedListCall) Header() http.Header { func (c *VpnTunnelsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -164598,7 +165020,7 @@ func (c *VpnTunnelsDeleteCall) Header() http.Header { func (c *VpnTunnelsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -164767,7 +165189,7 @@ func (c *VpnTunnelsGetCall) Header() http.Header { func (c *VpnTunnelsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -164943,7 +165365,7 @@ func (c *VpnTunnelsInsertCall) Header() http.Header { func (c *VpnTunnelsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -165183,7 +165605,7 @@ func (c *VpnTunnelsListCall) Header() http.Header { func (c *VpnTunnelsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -165401,7 +165823,7 @@ func (c *VpnTunnelsSetLabelsCall) Header() http.Header { func (c *VpnTunnelsSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -165569,7 +165991,7 @@ func (c *VpnTunnelsTestIamPermissionsCall) Header() http.Header { func (c *VpnTunnelsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -165731,7 +166153,7 @@ func (c *ZoneOperationsDeleteCall) Header() http.Header { func (c *ZoneOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -165867,7 +166289,7 @@ func (c *ZoneOperationsGetCall) Header() http.Header { func (c *ZoneOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -166108,7 +166530,7 @@ func (c *ZoneOperationsListCall) Header() http.Header { func (c *ZoneOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -166317,7 +166739,7 @@ func (c *ZoneOperationsWaitCall) Header() http.Header { func (c *ZoneOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -166481,7 +166903,7 @@ func (c *ZonesGetCall) Header() http.Header { func (c *ZonesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -166711,7 +167133,7 @@ func (c *ZonesListCall) Header() http.Header { func (c *ZonesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/compute/v1/compute-api.json b/compute/v1/compute-api.json index c0a7f03a8d8..b968a552d3d 100644 --- a/compute/v1/compute-api.json +++ b/compute/v1/compute-api.json @@ -29,7 +29,7 @@ "description": "Creates and runs virtual machines on Google Cloud Platform.", "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/compute/docs/reference/latest/", - "etag": "\"-2NioU2H8y8siEzrBOV_qzRI6kQ/drpl5QU8sdQjJXHniWXSBCkBYhk\"", + "etag": "\"-2NioU2H8y8siEzrBOV_qzRI6kQ/IzoQxjVawMYvYrbRbXalwXGvUZI\"", "icons": { "x16": "https://www.google.com/images/icons/product/compute_engine-16.png", "x32": "https://www.google.com/images/icons/product/compute_engine-32.png" @@ -6317,7 +6317,7 @@ ] }, "setInstanceTemplate": { - "description": "Specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you recreate them.", + "description": "Specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE.", "httpMethod": "POST", "id": "compute.instanceGroupManagers.setInstanceTemplate", "parameterOrder": [ @@ -24271,7 +24271,7 @@ ] }, "invalidateCache": { - "description": "Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap.", + "description": "Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap.\n\nFor more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content).", "httpMethod": "POST", "id": "compute.urlMaps.invalidateCache", "parameterOrder": [ @@ -25410,7 +25410,7 @@ } } }, - "revision": "20201005", + "revision": "20201022", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -25525,6 +25525,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -25566,6 +25567,7 @@ "", "", "", + "", "" ], "type": "string" @@ -25639,6 +25641,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -25680,6 +25683,7 @@ "", "", "", + "", "" ], "type": "string" @@ -25735,6 +25739,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -25776,6 +25781,7 @@ "", "", "", + "", "" ], "type": "string" @@ -25944,7 +25950,7 @@ "type": "integer" }, "purpose": { - "description": "The purpose of this resource, which can be one of the following values: \n- `GCE_ENDPOINT` for addresses that are used by VM instances, alias IP ranges, internal load balancers, and similar resources. \n- `DNS_RESOLVER` for a DNS resolver address in a subnetwork \n- `VPC_PEERING` for addresses that are reserved for VPC peer networks. \n- `NAT_AUTO` for addresses that are external IP addresses automatically reserved for Cloud NAT. \n- `IPSEC_INTERCONNECT` for addresses created from a private IP range reserved for a VLAN attachment in an IPsec over Interconnect configuration. These addresses are regional resources.", + "description": "The purpose of this resource, which can be one of the following values: \n- `GCE_ENDPOINT` for addresses that are used by VM instances, alias IP ranges, internal load balancers, and similar resources. \n- `DNS_RESOLVER` for a DNS resolver address in a subnetwork \n- `VPC_PEERING` for addresses that are reserved for VPC peer networks. \n- `NAT_AUTO` for addresses that are external IP addresses automatically reserved for Cloud NAT. \n- `IPSEC_INTERCONNECT` for addresses created from a private IP range that are reserved for a VLAN attachment in an IPsec encrypted Interconnect configuration. These addresses are regional resources.", "enum": [ "DNS_RESOLVER", "GCE_ENDPOINT", @@ -26046,6 +26052,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -26087,6 +26094,7 @@ "", "", "", + "", "" ], "type": "string" @@ -26160,6 +26168,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -26201,6 +26210,7 @@ "", "", "", + "", "" ], "type": "string" @@ -26256,6 +26266,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -26297,6 +26308,7 @@ "", "", "", + "", "" ], "type": "string" @@ -26669,7 +26681,7 @@ "type": "object" }, "Autoscaler": { - "description": "Represents an Autoscaler resource.\n\nGoogle Compute Engine has two Autoscaler resources:\n\n* [Global](/compute/docs/reference/rest/{$api_version}/autoscalers) * [Regional](/compute/docs/reference/rest/{$api_version}/regionAutoscalers)\n\nUse autoscalers to automatically add or delete instances from a managed instance group according to your defined autoscaling policy. For more information, read Autoscaling Groups of Instances.\n\nFor zonal managed instance groups resource, use the autoscaler resource.\n\nFor regional managed instance groups, use the regionAutoscalers resource. (== resource_for {$api_version}.autoscalers ==) (== resource_for {$api_version}.regionAutoscalers ==)", + "description": "Represents an Autoscaler resource.\n\nGoogle Compute Engine has two Autoscaler resources:\n\n* [Zonal](/compute/docs/reference/rest/{$api_version}/autoscalers) * [Regional](/compute/docs/reference/rest/{$api_version}/regionAutoscalers)\n\nUse autoscalers to automatically add or delete instances from a managed instance group according to your defined autoscaling policy. For more information, read Autoscaling Groups of Instances.\n\nFor zonal managed instance groups resource, use the autoscaler resource.\n\nFor regional managed instance groups, use the regionAutoscalers resource. (== resource_for {$api_version}.autoscalers ==) (== resource_for {$api_version}.regionAutoscalers ==)", "id": "Autoscaler", "properties": { "autoscalingPolicy": { @@ -26800,6 +26812,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -26841,6 +26854,7 @@ "", "", "", + "", "" ], "type": "string" @@ -26914,6 +26928,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -26955,6 +26970,7 @@ "", "", "", + "", "" ], "type": "string" @@ -27064,6 +27080,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -27105,6 +27122,7 @@ "", "", "", + "", "" ], "type": "string" @@ -27208,10 +27226,19 @@ "description": "Custom utilization metric policy.", "id": "AutoscalingPolicyCustomMetricUtilization", "properties": { + "filter": { + "description": "A filter string, compatible with a Stackdriver Monitoring filter string for TimeSeries.list API call. This filter is used to select a specific TimeSeries for the purpose of autoscaling and to determine whether the metric is exporting per-instance or per-group data.\n\nFor the filter to be valid for autoscaling purposes, the following rules apply: \n- You can only use the AND operator for joining selectors. \n- You can only use direct equality comparison operator (=) without any functions for each selector. \n- You can specify the metric in both the filter string and in the metric field. However, if specified in both places, the metric must be identical. \n- The monitored resource type determines what kind of values are expected for the metric. If it is a gce_instance, the autoscaler expects the metric to include a separate TimeSeries for each instance in a group. In such a case, you cannot filter on resource labels.\nIf the resource type is any other value, the autoscaler expects this metric to contain values that apply to the entire autoscaled instance group and resource label filtering can be performed to point autoscaler at the correct TimeSeries to scale upon. This is called a per-group metric for the purpose of autoscaling.\n\nIf not specified, the type defaults to gce_instance. \n\nYou should provide a filter that is selective enough to pick just one TimeSeries for the autoscaled group or for each of the instances (if you are using gce_instance resource type). If multiple TimeSeries are returned upon the query execution, the autoscaler will sum their respective values to obtain its scaling value.", + "type": "string" + }, "metric": { "description": "The identifier (type) of the Stackdriver Monitoring metric. The metric cannot have negative values.\n\nThe metric must have a value type of INT64 or DOUBLE.", "type": "string" }, + "singleInstanceAssignment": { + "description": "If scaling is based on a per-group metric value that represents the total amount of work to be done or resource usage, set this value to an amount assigned for a single instance of the scaled group. Autoscaler will keep the number of instances proportional to the value of this metric, the metric itself should not change value due to group resizing.\n\nA good metric to use with the target is for example pubsub.googleapis.com/subscription/num_undelivered_messages or a custom metric exporting the total number of requests coming to your instances.\n\nA bad example would be a metric exporting an average or median latency, since this value can't include a chunk assignable to a single instance, it could be better used with utilization_target instead.", + "format": "double", + "type": "number" + }, "utilizationTarget": { "description": "The target value of the metric that autoscaler should maintain. This must be a positive value. A utilization metric scales number of virtual machines handling requests to increase or decrease proportionally to the metric.\n\nFor example, a good metric to use as a utilization_target is https://www.googleapis.com/compute/v1/instance/network/received_bytes_count. The autoscaler will work to keep this value constant for each of the instances.", "format": "double", @@ -27442,6 +27469,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -27483,6 +27511,7 @@ "", "", "", + "", "" ], "type": "string" @@ -27690,6 +27719,10 @@ "description": "[Output Only] The resource URL for the security policy associated with this backend service.", "type": "string" }, + "securitySettings": { + "$ref": "SecuritySettings", + "description": "This field specifies the security policy that applies to this backend service. This field is applicable to either: \n- A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. \n- A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED." + }, "selfLink": { "description": "[Output Only] Server-defined URL for the resource.", "type": "string" @@ -27774,6 +27807,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -27815,6 +27849,7 @@ "", "", "", + "", "" ], "type": "string" @@ -27979,6 +28014,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -28020,6 +28056,7 @@ "", "", "", + "", "" ], "type": "string" @@ -28100,6 +28137,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -28141,6 +28179,7 @@ "", "", "", + "", "" ], "type": "string" @@ -28437,6 +28476,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -28478,6 +28518,7 @@ "", "", "", + "", "" ], "type": "string" @@ -28551,6 +28592,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -28592,6 +28634,7 @@ "", "", "", + "", "" ], "type": "string" @@ -28647,6 +28690,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -28688,6 +28732,7 @@ "", "", "", + "", "" ], "type": "string" @@ -29222,6 +29267,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -29263,6 +29309,7 @@ "", "", "", + "", "" ], "type": "string" @@ -29377,6 +29424,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -29418,6 +29466,7 @@ "", "", "", + "", "" ], "type": "string" @@ -29567,6 +29616,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -29608,6 +29658,7 @@ "", "", "", + "", "" ], "type": "string" @@ -29681,6 +29732,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -29722,6 +29774,7 @@ "", "", "", + "", "" ], "type": "string" @@ -29777,6 +29830,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -29818,6 +29872,7 @@ "", "", "", + "", "" ], "type": "string" @@ -29910,6 +29965,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -29951,6 +30007,7 @@ "", "", "", + "", "" ], "type": "string" @@ -29997,7 +30054,7 @@ "id": "DistributionPolicy", "properties": { "zones": { - "description": "Zones where the regional managed instance group will create and manage instances.", + "description": "Zones where the regional managed instance group will create and manage its instances.", "items": { "$ref": "DistributionPolicyZoneConfiguration" }, @@ -30116,6 +30173,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -30157,6 +30215,7 @@ "", "", "", + "", "" ], "type": "string" @@ -30344,6 +30403,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -30385,6 +30445,7 @@ "", "", "", + "", "" ], "type": "string" @@ -30634,6 +30695,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -30675,6 +30737,7 @@ "", "", "", + "", "" ], "type": "string" @@ -30756,7 +30819,7 @@ "id": "ForwardingRule", "properties": { "IPAddress": { - "description": "IP address that this forwarding rule serves. When a client sends traffic to this IP address, the forwarding rule directs the traffic to the target that you specify in the forwarding rule.\n\nIf you don't specify a reserved IP address, an ephemeral IP address is assigned. Methods for specifying an IP address:\n\n* IPv4 dotted decimal, as in `100.1.2.3` * Full URL, as in https://www.googleapis.com/compute/v1/projects/project_id/regions/region/addresses/address-name * Partial URL or by name, as in: * projects/project_id/regions/region/addresses/address-name * regions/region/addresses/address-name * global/addresses/address-name * address-name \n\nThe loadBalancingScheme and the forwarding rule's target determine the type of IP address that you can use. For detailed information, refer to [IP address specifications](/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications).\n\nMust be set to `0.0.0.0` when the target is targetGrpcProxy that has validateForProxyless field set to true.", + "description": "IP address that this forwarding rule serves. When a client sends traffic to this IP address, the forwarding rule directs the traffic to the target that you specify in the forwarding rule.\n\nIf you don't specify a reserved IP address, an ephemeral IP address is assigned. Methods for specifying an IP address:\n\n* IPv4 dotted decimal, as in `100.1.2.3` * Full URL, as in https://www.googleapis.com/compute/v1/projects/project_id/regions/region/addresses/address-name * Partial URL or by name, as in: * projects/project_id/regions/region/addresses/address-name * regions/region/addresses/address-name * global/addresses/address-name * address-name \n\nThe loadBalancingScheme and the forwarding rule's target determine the type of IP address that you can use. For detailed information, refer to [IP address specifications](/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications).\n\nMust be set to `0.0.0.0` when the target is targetGrpcProxy that has validateForProxyless field set to true.\n\nFor Private Service Connect forwarding rules that forward traffic to Google APIs, IP address must be provided.", "type": "string" }, "IPProtocol": { @@ -30863,7 +30926,7 @@ "type": "string" }, "network": { - "description": "This field is not used for external load balancing.\n\nFor internal load balancing, this field identifies the network that the load balanced IP should belong to for this Forwarding Rule. If this field is not specified, the default network will be used.", + "description": "This field is not used for external load balancing.\n\nFor internal load balancing, this field identifies the network that the load balanced IP should belong to for this Forwarding Rule. If this field is not specified, the default network will be used.\n\nFor Private Service Connect forwarding rules that forward traffic to Google APIs, a network must be provided.", "type": "string" }, "networkTier": { @@ -30911,7 +30974,7 @@ "type": "string" }, "target": { - "description": "The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must be in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object. For more information, see the \"Target\" column in [Port specifications](/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications).", + "description": "The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must be in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object. For more information, see the \"Target\" column in [Port specifications](/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications).\n\nFor Private Service Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported Google API bundle. Currently, the supported Google API bundles include:\n\n \n- vpc-sc - GCP APIs that support VPC Service Controls. For more information about which APIs support VPC Service Controls, refer to VPC-SC supported products and limitations. \n- all-apis - All GCP APIs. For more information about which APIs are supported with this bundle, refer to Private Google Access-specific domains and VIPs.", "type": "string" } }, @@ -30966,6 +31029,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -31007,6 +31071,7 @@ "", "", "", + "", "" ], "type": "string" @@ -31080,6 +31145,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -31121,6 +31187,7 @@ "", "", "", + "", "" ], "type": "string" @@ -31185,6 +31252,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -31226,6 +31294,7 @@ "", "", "", + "", "" ], "type": "string" @@ -31652,6 +31721,10 @@ "description": "Type of the resource.", "type": "string" }, + "logConfig": { + "$ref": "HealthCheckLogConfig", + "description": "Configure logging on this health check." + }, "name": { "description": "Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.", "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", @@ -31748,6 +31821,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -31789,6 +31863,7 @@ "", "", "", + "", "" ], "type": "string" @@ -31820,6 +31895,17 @@ }, "type": "object" }, + "HealthCheckLogConfig": { + "description": "Configuration of logging on a health check. If logging is enabled, logs will be exported to Stackdriver.", + "id": "HealthCheckLogConfig", + "properties": { + "enable": { + "description": "Indicates whether or not to export logs. This is false by default, which means no health check logging will be done.", + "type": "boolean" + } + }, + "type": "object" + }, "HealthCheckReference": { "description": "A full or valid partial URL to a health check. For example, the following are valid URLs: \n- https://www.googleapis.com/compute/beta/projects/project-id/global/httpHealthChecks/health-check \n- projects/project-id/global/httpHealthChecks/health-check \n- global/httpHealthChecks/health-check", "id": "HealthCheckReference", @@ -31957,6 +32043,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -31998,6 +32085,7 @@ "", "", "", + "", "" ], "type": "string" @@ -32078,6 +32166,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -32119,6 +32208,7 @@ "", "", "", + "", "" ], "type": "string" @@ -32174,6 +32264,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -32215,6 +32306,7 @@ "", "", "", + "", "" ], "type": "string" @@ -32594,6 +32686,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -32635,6 +32728,7 @@ "", "", "", + "", "" ], "type": "string" @@ -32986,6 +33080,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -33027,6 +33122,7 @@ "", "", "", + "", "" ], "type": "string" @@ -33299,6 +33395,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -33340,6 +33437,7 @@ "", "", "", + "", "" ], "type": "string" @@ -33667,6 +33765,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -33708,6 +33807,7 @@ "", "", "", + "", "" ], "type": "string" @@ -33860,6 +33960,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -33901,6 +34002,7 @@ "", "", "", + "", "" ], "type": "string" @@ -33974,6 +34076,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -34015,6 +34118,7 @@ "", "", "", + "", "" ], "type": "string" @@ -34081,7 +34185,7 @@ }, "distributionPolicy": { "$ref": "DistributionPolicy", - "description": "Policy specifying intended distribution of instances in regional managed instance group." + "description": "Policy specifying the intended distribution of managed instances across zones in a regional managed instance group." }, "fingerprint": { "description": "Fingerprint of this resource. This field may be used in optimistic locking. It will be ignored when inserting an InstanceGroupManager. An up-to-date fingerprint must be provided in order to update the InstanceGroupManager, otherwise the request will fail with error 412 conditionNotMet.\n\nTo see the latest fingerprint, make a get() request to retrieve an InstanceGroupManager.", @@ -34098,7 +34202,7 @@ "type": "string" }, "instanceTemplate": { - "description": "The URL of the instance template that is specified for this managed instance group. The group uses this template to create all new instances in the managed instance group.", + "description": "The URL of the instance template that is specified for this managed instance group. The group uses this template to create all new instances in the managed instance group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE.", "type": "string" }, "kind": { @@ -34170,7 +34274,7 @@ "type": "array" }, "zone": { - "description": "[Output Only] The URL of the zone where the managed instance group is located (for zonal resources).", + "description": "[Output Only] The URL of a zone where the managed instance group is located (for zonal resources).", "type": "string" } }, @@ -34276,6 +34380,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -34317,6 +34422,7 @@ "", "", "", + "", "" ], "type": "string" @@ -34406,6 +34512,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -34447,6 +34554,7 @@ "", "", "", + "", "" ], "type": "string" @@ -34604,7 +34712,7 @@ "id": "InstanceGroupManagerVersion", "properties": { "instanceTemplate": { - "description": "The URL of the instance template that is specified for this managed instance group. The group uses this template to create new instances in the managed instance group until the `targetSize` for this version is reached.", + "description": "The URL of the instance template that is specified for this managed instance group. The group uses this template to create new instances in the managed instance group until the `targetSize` for this version is reached. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE; in those cases, existing instances are updated until the `targetSize` for this version is reached.", "type": "string" }, "name": { @@ -34635,6 +34743,10 @@ "description": "InstanceGroupManagers.applyUpdatesToInstances", "id": "InstanceGroupManagersApplyUpdatesRequest", "properties": { + "allInstances": { + "description": "Flag to update all instances instead of specified list of ?instances?. If the flag is set to true then the instances may not be specified in the request.", + "type": "boolean" + }, "instances": { "description": "The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].", "items": { @@ -34780,6 +34892,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -34821,6 +34934,7 @@ "", "", "", + "", "" ], "type": "string" @@ -34903,6 +35017,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -34944,6 +35059,7 @@ "", "", "", + "", "" ], "type": "string" @@ -34979,7 +35095,7 @@ "id": "InstanceGroupManagersSetInstanceTemplateRequest", "properties": { "instanceTemplate": { - "description": "The URL of the instance template that is specified for this managed instance group. The group uses this template to create all new instances in the managed instance group.", + "description": "The URL of the instance template that is specified for this managed instance group. The group uses this template to create all new instances in the managed instance group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE.", "type": "string" } }, @@ -35071,6 +35187,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -35112,6 +35229,7 @@ "", "", "", + "", "" ], "type": "string" @@ -35198,6 +35316,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -35239,6 +35358,7 @@ "", "", "", + "", "" ], "type": "string" @@ -35330,6 +35450,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -35371,6 +35492,7 @@ "", "", "", + "", "" ], "type": "string" @@ -35444,6 +35566,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -35485,6 +35608,7 @@ "", "", "", + "", "" ], "type": "string" @@ -35812,6 +35936,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -35853,6 +35978,7 @@ "", "", "", + "", "" ], "type": "string" @@ -35979,6 +36105,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -36020,6 +36147,7 @@ "", "", "", + "", "" ], "type": "string" @@ -36530,6 +36658,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -36571,6 +36700,7 @@ "", "", "", + "", "" ], "type": "string" @@ -36644,6 +36774,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -36685,6 +36816,7 @@ "", "", "", + "", "" ], "type": "string" @@ -36771,6 +36903,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -36812,6 +36945,7 @@ "", "", "", + "", "" ], "type": "string" @@ -37031,6 +37165,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -37072,6 +37207,7 @@ "", "", "", + "", "" ], "type": "string" @@ -37249,6 +37385,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -37290,6 +37427,7 @@ "", "", "", + "", "" ], "type": "string" @@ -37650,6 +37788,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -37691,6 +37830,7 @@ "", "", "", + "", "" ], "type": "string" @@ -37974,6 +38114,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -38015,6 +38156,7 @@ "", "", "", + "", "" ], "type": "string" @@ -38088,6 +38230,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -38129,6 +38272,7 @@ "", "", "", + "", "" ], "type": "string" @@ -38184,6 +38328,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -38225,6 +38370,7 @@ "", "", "", + "", "" ], "type": "string" @@ -38782,6 +38928,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -38823,6 +38970,7 @@ "", "", "", + "", "" ], "type": "string" @@ -38948,6 +39096,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -38989,6 +39138,7 @@ "", "", "", + "", "" ], "type": "string" @@ -39101,6 +39251,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -39142,6 +39293,7 @@ "", "", "", + "", "" ], "type": "string" @@ -39197,6 +39349,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -39238,6 +39391,7 @@ "", "", "", + "", "" ], "type": "string" @@ -39379,6 +39533,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -39420,6 +39575,7 @@ "", "", "", + "", "" ], "type": "string" @@ -39710,6 +39866,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -39751,6 +39908,7 @@ "", "", "", + "", "" ], "type": "string" @@ -39856,6 +40014,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -39897,6 +40056,7 @@ "", "", "", + "", "" ], "type": "string" @@ -40053,6 +40213,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -40094,6 +40255,7 @@ "", "", "", + "", "" ], "type": "string" @@ -40149,6 +40311,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -40190,6 +40353,7 @@ "", "", "", + "", "" ], "type": "string" @@ -40370,6 +40534,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -40411,6 +40576,7 @@ "", "", "", + "", "" ], "type": "string" @@ -40484,6 +40650,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -40525,6 +40692,7 @@ "", "", "", + "", "" ], "type": "string" @@ -40595,6 +40763,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -40636,6 +40805,7 @@ "", "", "", + "", "" ], "type": "string" @@ -40777,6 +40947,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -40818,6 +40989,7 @@ "", "", "", + "", "" ], "type": "string" @@ -40891,6 +41063,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -40932,6 +41105,7 @@ "", "", "", + "", "" ], "type": "string" @@ -40987,6 +41161,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -41028,6 +41203,7 @@ "", "", "", + "", "" ], "type": "string" @@ -41170,6 +41346,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -41211,6 +41388,7 @@ "", "", "", + "", "" ], "type": "string" @@ -41383,6 +41561,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -41424,6 +41603,7 @@ "", "", "", + "", "" ], "type": "string" @@ -41510,6 +41690,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -41551,6 +41732,7 @@ "", "", "", + "", "" ], "type": "string" @@ -41624,6 +41806,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -41665,6 +41848,7 @@ "", "", "", + "", "" ], "type": "string" @@ -41720,6 +41904,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -41761,6 +41946,7 @@ "", "", "", + "", "" ], "type": "string" @@ -41983,6 +42169,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -42024,6 +42211,7 @@ "", "", "", + "", "" ], "type": "string" @@ -42071,6 +42259,20 @@ "type": "string" }, "type": "array" + }, + "direction": { + "description": "Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH.", + "enum": [ + "BOTH", + "EGRESS", + "INGRESS" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" } }, "type": "object" @@ -42131,6 +42333,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -42172,6 +42375,7 @@ "", "", "", + "", "" ], "type": "string" @@ -42296,6 +42500,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -42337,6 +42542,7 @@ "", "", "", + "", "" ], "type": "string" @@ -42858,7 +43064,8 @@ "TARGET_VPN_GATEWAYS", "URL_MAPS", "VPN_GATEWAYS", - "VPN_TUNNELS" + "VPN_TUNNELS", + "XPN_SERVICE_PROJECTS" ], "enumDescriptions": [ "", @@ -42966,6 +43173,7 @@ "", "", "", + "", "" ], "type": "string" @@ -43111,6 +43319,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -43152,6 +43361,7 @@ "", "", "", + "", "" ], "type": "string" @@ -43224,6 +43434,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -43265,6 +43476,7 @@ "", "", "", + "", "" ], "type": "string" @@ -43375,6 +43587,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -43416,6 +43629,7 @@ "", "", "", + "", "" ], "type": "string" @@ -43503,6 +43717,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -43544,6 +43759,7 @@ "", "", "", + "", "" ], "type": "string" @@ -43620,6 +43836,10 @@ "description": "RegionInstanceGroupManagers.applyUpdatesToInstances", "id": "RegionInstanceGroupManagersApplyUpdatesRequest", "properties": { + "allInstances": { + "description": "Flag to update all instances instead of specified list of ?instances?. If the flag is set to true then the instances may not be specified in the request.", + "type": "boolean" + }, "instances": { "description": "The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].", "items": { @@ -43734,6 +43954,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -43775,6 +43996,7 @@ "", "", "", + "", "" ], "type": "string" @@ -43905,6 +44127,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -43946,6 +44169,7 @@ "", "", "", + "", "" ], "type": "string" @@ -44060,6 +44284,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -44101,6 +44326,7 @@ "", "", "", + "", "" ], "type": "string" @@ -44363,6 +44589,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -44404,6 +44631,7 @@ "", "", "", + "", "" ], "type": "string" @@ -44476,6 +44704,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -44517,6 +44746,7 @@ "", "", "", + "", "" ], "type": "string" @@ -44583,6 +44813,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -44624,6 +44855,7 @@ "", "", "", + "", "" ], "type": "string" @@ -44723,6 +44955,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -44764,6 +44997,7 @@ "", "", "", + "", "" ], "type": "string" @@ -44808,7 +45042,7 @@ }, "groupPlacementPolicy": { "$ref": "ResourcePolicyGroupPlacementPolicy", - "description": "Resource policy for instacnes for placement configuration." + "description": "Resource policy for instances for placement configuration." }, "id": { "description": "[Output Only] The unique identifier for the resource. This identifier is defined by the server.", @@ -44913,6 +45147,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -44954,6 +45189,7 @@ "", "", "", + "", "" ], "type": "string" @@ -45098,6 +45334,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -45139,6 +45376,7 @@ "", "", "", + "", "" ], "type": "string" @@ -45235,6 +45473,10 @@ "description": "Specified snapshot properties for scheduled snapshots created by this policy.", "id": "ResourcePolicySnapshotSchedulePolicySnapshotProperties", "properties": { + "chainName": { + "description": "Chain name that the snapshot is created in.", + "type": "string" + }, "guestFlush": { "description": "Indication to perform a 'guest aware' snapshot.", "type": "boolean" @@ -45363,7 +45605,7 @@ "type": "string" }, "nextHopIlb": { - "description": "The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets. You can only specify the forwarding rule as a partial or full URL. For example, the following are all valid URLs: \n- https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule \n- regions/region/forwardingRules/forwardingRule", + "description": "The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets or the IP address of the forwarding Rule. For example, the following are all valid URLs: \n- 10.128.0.56 \n- https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule \n- regions/region/forwardingRules/forwardingRule", "type": "string" }, "nextHopInstance": { @@ -45427,6 +45669,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -45468,6 +45711,7 @@ "", "", "", + "", "" ], "type": "string" @@ -45543,6 +45787,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -45584,6 +45829,7 @@ "", "", "", + "", "" ], "type": "string" @@ -45758,6 +46004,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -45799,6 +46046,7 @@ "", "", "", + "", "" ], "type": "string" @@ -46042,6 +46290,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -46083,6 +46332,7 @@ "", "", "", + "", "" ], "type": "string" @@ -46125,6 +46375,9 @@ }, "type": "array" }, + "enableEndpointIndependentMapping": { + "type": "boolean" + }, "icmpIdleTimeoutSec": { "description": "Timeout (in seconds) for ICMP connections. Defaults to 30s if not set.", "format": "int32", @@ -46462,6 +46715,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -46503,6 +46757,7 @@ "", "", "", + "", "" ], "type": "string" @@ -46755,7 +47010,7 @@ "type": "object" }, "SecurityPolicy": { - "description": "Represents a Cloud Armor Security Policy resource.\n\nOnly external backend services that use load balancers can reference a Security Policy. For more information, read Cloud Armor Security Policy Concepts. (== resource_for {$api_version}.securityPolicies ==)", + "description": "Represents a Google Cloud Armor security policy resource.\n\nOnly external backend services that use load balancers can reference a security policy. For more information, see Google Cloud Armor security policy overview. (== resource_for {$api_version}.securityPolicies ==)", "id": "SecurityPolicy", "properties": { "creationTimestamp": { @@ -46837,6 +47092,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -46878,6 +47134,7 @@ "", "", "", + "", "" ], "type": "string" @@ -46989,6 +47246,24 @@ }, "type": "object" }, + "SecuritySettings": { + "description": "The authentication and authorization settings for a BackendService.", + "id": "SecuritySettings", + "properties": { + "clientTlsPolicy": { + "description": "Optional. A URL referring to a networksecurity.ClientTlsPolicy resource that describes how clients should authenticate with this service's backends.\nclientTlsPolicy only applies to a global BackendService with the loadBalancingScheme set to INTERNAL_SELF_MANAGED.\nIf left blank, communications are not encrypted.\nNote: This field currently has no impact.", + "type": "string" + }, + "subjectAltNames": { + "description": "Optional. A list of Subject Alternative Names (SANs) that the client verifies during a mutual TLS handshake with an server/endpoint for this BackendService. When the server presents its X.509 certificate to the client, the client inspects the certificate's subjectAltName field. If the field contains one of the specified values, the communication continues. Otherwise, it fails. This additional check enables the client to verify that the server is authorized to run the requested service.\nNote that the contents of the server certificate's subjectAltName field are configured by the Public Key Infrastructure which provisions server identities.\nOnly applies to a global BackendService with loadBalancingScheme set to INTERNAL_SELF_MANAGED. Only applies when BackendService has an attached clientTlsPolicy with clientCertificate (mTLS mode).\nNote: This field currently has no impact.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "SerialPortOutput": { "description": "An instance's serial console output.", "id": "SerialPortOutput", @@ -47145,6 +47420,10 @@ "description": "[Output Only] Set to true if snapshots are automatically created by applying resource policy on the target disk.", "type": "boolean" }, + "chainName": { + "description": "Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for advanced service owners who needs to create separate snapshot chains, for example, for chargeback tracking. When you describe your snapshot resource, this field is visible only if it has a non-empty value.", + "type": "string" + }, "creationTimestamp": { "description": "[Output Only] Creation timestamp in RFC3339 text format.", "type": "string" @@ -47312,6 +47591,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -47353,6 +47633,7 @@ "", "", "", + "", "" ], "type": "string" @@ -47526,6 +47807,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -47567,6 +47849,7 @@ "", "", "", + "", "" ], "type": "string" @@ -47640,6 +47923,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -47681,6 +47965,7 @@ "", "", "", + "", "" ], "type": "string" @@ -47810,6 +48095,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -47851,6 +48137,7 @@ "", "", "", + "", "" ], "type": "string" @@ -47923,6 +48210,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -47964,6 +48252,7 @@ "", "", "", + "", "" ], "type": "string" @@ -48008,7 +48297,7 @@ "type": "object" }, "SslPolicy": { - "description": "Represents a Cloud Armor Security Policy resource.\n\nOnly external backend services used by HTTP or HTTPS load balancers can reference a Security Policy. For more information, read read Cloud Armor Security Policy Concepts. (== resource_for {$api_version}.sslPolicies ==)", + "description": "Represents an SSL Policy resource.\n\nUse SSL policies to control the SSL features, such as versions and cipher suites, offered by an HTTPS or SSL Proxy load balancer. For more information, read SSL Policy Concepts. (== resource_for {$api_version}.sslPolicies ==)", "id": "SslPolicy", "properties": { "creationTimestamp": { @@ -48102,6 +48391,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -48143,6 +48433,7 @@ "", "", "", + "", "" ], "type": "string" @@ -48406,6 +48697,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -48447,6 +48739,7 @@ "", "", "", + "", "" ], "type": "string" @@ -48520,6 +48813,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -48561,6 +48855,7 @@ "", "", "", + "", "" ], "type": "string" @@ -48702,6 +48997,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -48743,6 +49039,7 @@ "", "", "", + "", "" ], "type": "string" @@ -48948,6 +49245,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -48989,6 +49287,7 @@ "", "", "", + "", "" ], "type": "string" @@ -49044,6 +49343,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -49085,6 +49385,7 @@ "", "", "", + "", "" ], "type": "string" @@ -49148,6 +49449,10 @@ "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", "type": "string" }, + "proxyBind": { + "description": "This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.\n\nWhen this field is set to true, Envoy proxies set up inbound traffic interception and bind to the IP address and port specified in the forwarding rule. This is generally useful when using Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy proxy listens for inbound requests and handles requests when it receives them.\n\nThe default is false.", + "type": "boolean" + }, "region": { "description": "[Output Only] URL of the region where the regional Target HTTP Proxy resides. This field is not applicable to global Target HTTP Proxies.", "type": "string" @@ -49243,6 +49548,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -49284,6 +49590,7 @@ "", "", "", + "", "" ], "type": "string" @@ -49339,6 +49646,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -49380,6 +49688,7 @@ "", "", "", + "", "" ], "type": "string" @@ -49448,6 +49757,10 @@ "description": "Represents a Target HTTPS Proxy resource.\n\nGoogle Compute Engine has two Target HTTPS Proxy resources:\n\n* [Global](/compute/docs/reference/rest/{$api_version}/targetHttpsProxies) * [Regional](/compute/docs/reference/rest/{$api_version}/regionTargetHttpsProxies)\n\nA target HTTPS proxy is a component of GCP HTTPS load balancers.\n\n* targetHttpsProxies are used by external HTTPS load balancers. * regionTargetHttpsProxies are used by internal HTTPS load balancers.\n\nForwarding rules reference a target HTTPS proxy, and the target proxy then references a URL map. For more information, read Using Target Proxies and Forwarding rule concepts. (== resource_for {$api_version}.targetHttpsProxies ==) (== resource_for {$api_version}.regionTargetHttpsProxies ==)", "id": "TargetHttpsProxy", "properties": { + "authorizationPolicy": { + "description": "Optional. A URL referring to a networksecurity.AuthorizationPolicy resource that describes how the proxy should authorize inbound traffic. If left blank, access will not be restricted by an authorization policy.\nRefer to the AuthorizationPolicy resource for additional details.\nauthorizationPolicy only applies to a global TargetHttpsProxy attached to globalForwardingRules with the loadBalancingScheme set to INTERNAL_SELF_MANAGED.\nNote: This field currently has no impact.", + "type": "string" + }, "creationTimestamp": { "description": "[Output Only] Creation timestamp in RFC3339 text format.", "type": "string" @@ -49471,6 +49784,10 @@ "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", "type": "string" }, + "proxyBind": { + "description": "This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.\n\nWhen this field is set to true, Envoy proxies set up inbound traffic interception and bind to the IP address and port specified in the forwarding rule. This is generally useful when using Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy proxy listens for inbound requests and handles requests when it receives them.\n\nThe default is false.", + "type": "boolean" + }, "quicOverride": { "description": "Specifies the QUIC override policy for this TargetHttpsProxy resource. This setting determines whether the load balancer attempts to negotiate QUIC with clients. You can specify NONE, ENABLE, or DISABLE. \n- When quic-override is set to NONE, Google manages whether QUIC is used. \n- When quic-override is set to ENABLE, the load balancer uses QUIC when possible. \n- When quic-override is set to DISABLE, the load balancer doesn't use QUIC. \n- If the quic-override flag is not specified, NONE is implied.\n-", "enum": [ @@ -49493,6 +49810,10 @@ "description": "[Output Only] Server-defined URL for the resource.", "type": "string" }, + "serverTlsPolicy": { + "description": "Optional. A URL referring to a networksecurity.ServerTlsPolicy resource that describes how the proxy should authenticate inbound traffic.\nserverTlsPolicy only applies to a global TargetHttpsProxy attached to globalForwardingRules with the loadBalancingScheme set to INTERNAL_SELF_MANAGED.\nIf left blank, communications are not encrypted.\nNote: This field currently has no impact.", + "type": "string" + }, "sslCertificates": { "description": "URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates.", "items": { @@ -49560,6 +49881,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -49601,6 +49923,7 @@ "", "", "", + "", "" ], "type": "string" @@ -49674,6 +49997,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -49715,6 +50039,7 @@ "", "", "", + "", "" ], "type": "string" @@ -49847,6 +50172,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -49888,6 +50214,7 @@ "", "", "", + "", "" ], "type": "string" @@ -49961,6 +50288,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -50002,6 +50330,7 @@ "", "", "", + "", "" ], "type": "string" @@ -50057,6 +50386,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -50098,6 +50428,7 @@ "", "", "", + "", "" ], "type": "string" @@ -50134,7 +50465,7 @@ "id": "TargetPool", "properties": { "backupPool": { - "description": "This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its failoverRatio field is properly set to a value between [0, 1].\n\nbackupPool and failoverRatio together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below failoverRatio, traffic arriving at the load-balanced IP will be directed to the backup pool.\n\nIn case where failoverRatio and backupPool are not set, or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the \"force\" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy.", + "description": "The server-defined URL for the resource. This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its failoverRatio field is properly set to a value between [0, 1].\n\nbackupPool and failoverRatio together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below failoverRatio, traffic arriving at the load-balanced IP will be directed to the backup pool.\n\nIn case where failoverRatio and backupPool are not set, or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the \"force\" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy.", "type": "string" }, "creationTimestamp": { @@ -50261,6 +50592,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -50302,6 +50634,7 @@ "", "", "", + "", "" ], "type": "string" @@ -50392,6 +50725,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -50433,6 +50767,7 @@ "", "", "", + "", "" ], "type": "string" @@ -50540,6 +50875,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -50581,6 +50917,7 @@ "", "", "", + "", "" ], "type": "string" @@ -50765,6 +51102,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -50806,6 +51144,7 @@ "", "", "", + "", "" ], "type": "string" @@ -50957,6 +51296,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -50998,6 +51338,7 @@ "", "", "", + "", "" ], "type": "string" @@ -51160,6 +51501,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -51201,6 +51543,7 @@ "", "", "", + "", "" ], "type": "string" @@ -51274,6 +51617,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -51315,6 +51659,7 @@ "", "", "", + "", "" ], "type": "string" @@ -51370,6 +51715,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -51411,6 +51757,7 @@ "", "", "", + "", "" ], "type": "string" @@ -51612,6 +51959,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -51653,6 +52001,7 @@ "", "", "", + "", "" ], "type": "string" @@ -51792,6 +52141,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -51833,6 +52183,7 @@ "", "", "", + "", "" ], "type": "string" @@ -51888,6 +52239,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -51929,6 +52281,7 @@ "", "", "", + "", "" ], "type": "string" @@ -52076,6 +52429,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -52117,6 +52471,7 @@ "", "", "", + "", "" ], "type": "string" @@ -52261,6 +52616,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -52302,6 +52658,7 @@ "", "", "", + "", "" ], "type": "string" @@ -52453,6 +52810,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -52494,6 +52852,7 @@ "", "", "", + "", "" ], "type": "string" @@ -52567,6 +52926,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -52608,6 +52968,7 @@ "", "", "", + "", "" ], "type": "string" @@ -52777,6 +53138,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -52818,6 +53180,7 @@ "", "", "", + "", "" ], "type": "string" @@ -53040,6 +53403,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -53081,6 +53445,7 @@ "", "", "", + "", "" ], "type": "string" @@ -53154,6 +53519,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -53195,6 +53561,7 @@ "", "", "", + "", "" ], "type": "string" @@ -53250,6 +53617,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -53291,6 +53659,7 @@ "", "", "", + "", "" ], "type": "string" @@ -53417,6 +53786,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -53458,6 +53828,7 @@ "", "", "", + "", "" ], "type": "string" @@ -53614,6 +53985,7 @@ "EXTERNAL_API_WARNING", "FIELD_VALUE_OVERRIDEN", "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", "MISSING_TYPE_DEPENDENCY", "NEXT_HOP_ADDRESS_NOT_ASSIGNED", "NEXT_HOP_CANNOT_IP_FORWARD", @@ -53655,6 +54027,7 @@ "", "", "", + "", "" ], "type": "string" diff --git a/compute/v1/compute-gen.go b/compute/v1/compute-gen.go index 3e01744084e..2bb577008f0 100644 --- a/compute/v1/compute-gen.go +++ b/compute/v1/compute-gen.go @@ -1227,6 +1227,7 @@ type AcceleratorTypeAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -1384,6 +1385,7 @@ type AcceleratorTypeListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -1520,6 +1522,7 @@ type AcceleratorTypesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -1788,8 +1791,8 @@ type Address struct { // - `NAT_AUTO` for addresses that are external IP addresses // automatically reserved for Cloud NAT. // - `IPSEC_INTERCONNECT` for addresses created from a private IP range - // reserved for a VLAN attachment in an IPsec over Interconnect - // configuration. These addresses are regional resources. + // that are reserved for a VLAN attachment in an IPsec encrypted + // Interconnect configuration. These addresses are regional resources. // // Possible values: // "DNS_RESOLVER" @@ -1928,6 +1931,7 @@ type AddressAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -2084,6 +2088,7 @@ type AddressListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -2218,6 +2223,7 @@ type AddressesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -2900,7 +2906,7 @@ func (s *AuthorizationLoggingOptions) MarshalJSON() ([]byte, error) { // // Google Compute Engine has two Autoscaler resources: // -// * [Global](/compute/docs/reference/rest/{$api_version}/autoscalers) * +// * [Zonal](/compute/docs/reference/rest/{$api_version}/autoscalers) * // [Regional](/compute/docs/reference/rest/{$api_version}/regionAutoscale // rs) // @@ -3094,6 +3100,7 @@ type AutoscalerAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -3250,6 +3257,7 @@ type AutoscalerListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -3478,6 +3486,7 @@ type AutoscalersScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -3698,12 +3707,63 @@ func (s *AutoscalingPolicyCpuUtilization) UnmarshalJSON(data []byte) error { // AutoscalingPolicyCustomMetricUtilization: Custom utilization metric // policy. type AutoscalingPolicyCustomMetricUtilization struct { + // Filter: A filter string, compatible with a Stackdriver Monitoring + // filter string for TimeSeries.list API call. This filter is used to + // select a specific TimeSeries for the purpose of autoscaling and to + // determine whether the metric is exporting per-instance or per-group + // data. + // + // For the filter to be valid for autoscaling purposes, the following + // rules apply: + // - You can only use the AND operator for joining selectors. + // - You can only use direct equality comparison operator (=) without + // any functions for each selector. + // - You can specify the metric in both the filter string and in the + // metric field. However, if specified in both places, the metric must + // be identical. + // - The monitored resource type determines what kind of values are + // expected for the metric. If it is a gce_instance, the autoscaler + // expects the metric to include a separate TimeSeries for each instance + // in a group. In such a case, you cannot filter on resource labels. + // If the resource type is any other value, the autoscaler expects this + // metric to contain values that apply to the entire autoscaled instance + // group and resource label filtering can be performed to point + // autoscaler at the correct TimeSeries to scale upon. This is called a + // per-group metric for the purpose of autoscaling. + // + // If not specified, the type defaults to gce_instance. + // + // You should provide a filter that is selective enough to pick just one + // TimeSeries for the autoscaled group or for each of the instances (if + // you are using gce_instance resource type). If multiple TimeSeries are + // returned upon the query execution, the autoscaler will sum their + // respective values to obtain its scaling value. + Filter string `json:"filter,omitempty"` + // Metric: The identifier (type) of the Stackdriver Monitoring metric. // The metric cannot have negative values. // // The metric must have a value type of INT64 or DOUBLE. Metric string `json:"metric,omitempty"` + // SingleInstanceAssignment: If scaling is based on a per-group metric + // value that represents the total amount of work to be done or resource + // usage, set this value to an amount assigned for a single instance of + // the scaled group. Autoscaler will keep the number of instances + // proportional to the value of this metric, the metric itself should + // not change value due to group resizing. + // + // A good metric to use with the target is for example + // pubsub.googleapis.com/subscription/num_undelivered_messages or a + // custom metric exporting the total number of requests coming to your + // instances. + // + // A bad example would be a metric exporting an average or median + // latency, since this value can't include a chunk assignable to a + // single instance, it could be better used with utilization_target + // instead. + SingleInstanceAssignment float64 `json:"singleInstanceAssignment,omitempty"` + // UtilizationTarget: The target value of the metric that autoscaler // should maintain. This must be a positive value. A utilization metric // scales number of virtual machines handling requests to increase or @@ -3724,7 +3784,7 @@ type AutoscalingPolicyCustomMetricUtilization struct { // "GAUGE" UtilizationTargetType string `json:"utilizationTargetType,omitempty"` - // ForceSendFields is a list of field names (e.g. "Metric") to + // ForceSendFields is a list of field names (e.g. "Filter") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -3732,7 +3792,7 @@ type AutoscalingPolicyCustomMetricUtilization struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Metric") to include in API + // NullFields is a list of field names (e.g. "Filter") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -3750,13 +3810,15 @@ func (s *AutoscalingPolicyCustomMetricUtilization) MarshalJSON() ([]byte, error) func (s *AutoscalingPolicyCustomMetricUtilization) UnmarshalJSON(data []byte) error { type NoMethod AutoscalingPolicyCustomMetricUtilization var s1 struct { - UtilizationTarget gensupport.JSONFloat64 `json:"utilizationTarget"` + SingleInstanceAssignment gensupport.JSONFloat64 `json:"singleInstanceAssignment"` + UtilizationTarget gensupport.JSONFloat64 `json:"utilizationTarget"` *NoMethod } s1.NoMethod = (*NoMethod)(s) if err := json.Unmarshal(data, &s1); err != nil { return err } + s.SingleInstanceAssignment = float64(s1.SingleInstanceAssignment) s.UtilizationTarget = float64(s1.UtilizationTarget) return nil } @@ -4253,6 +4315,7 @@ type BackendBucketListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -4621,6 +4684,16 @@ type BackendService struct { // policy associated with this backend service. SecurityPolicy string `json:"securityPolicy,omitempty"` + // SecuritySettings: This field specifies the security policy that + // applies to this backend service. This field is applicable to either: + // + // - A regional backend service with the service_protocol set to HTTP, + // HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. + // + // - A global backend service with the load_balancing_scheme set to + // INTERNAL_SELF_MANAGED. + SecuritySettings *SecuritySettings `json:"securitySettings,omitempty"` + // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` @@ -4760,6 +4833,7 @@ type BackendServiceAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -5118,6 +5192,7 @@ type BackendServiceListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -5331,6 +5406,7 @@ type BackendServicesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -5842,6 +5918,7 @@ type CommitmentAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -5998,6 +6075,7 @@ type CommitmentListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -6133,6 +6211,7 @@ type CommitmentsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -6982,6 +7061,7 @@ type DiskAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -7203,6 +7283,7 @@ type DiskListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -7497,6 +7578,7 @@ type DiskTypeAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -7653,6 +7735,7 @@ type DiskTypeListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -7788,6 +7871,7 @@ type DiskTypesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -8007,6 +8091,7 @@ type DisksScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -8124,7 +8209,7 @@ func (s *DisplayDevice) MarshalJSON() ([]byte, error) { type DistributionPolicy struct { // Zones: Zones where the regional managed instance group will create - // and manage instances. + // and manage its instances. Zones []*DistributionPolicyZoneConfiguration `json:"zones,omitempty"` // ForceSendFields is a list of field names (e.g. "Zones") to @@ -8336,6 +8421,7 @@ type ExchangedPeeringRoutesListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -8708,6 +8794,7 @@ type ExternalVpnGatewayListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -9150,6 +9237,7 @@ type FirewallListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -9362,6 +9450,9 @@ type ForwardingRule struct { // // Must be set to `0.0.0.0` when the target is targetGrpcProxy that has // validateForProxyless field set to true. + // + // For Private Service Connect forwarding rules that forward traffic to + // Google APIs, IP address must be provided. IPAddress string `json:"IPAddress,omitempty"` // IPProtocol: The IP protocol to which this rule applies. For protocol @@ -9515,6 +9606,9 @@ type ForwardingRule struct { // For internal load balancing, this field identifies the network that // the load balanced IP should belong to for this Forwarding Rule. If // this field is not specified, the default network will be used. + // + // For Private Service Connect forwarding rules that forward traffic to + // Google APIs, a network must be provided. Network string `json:"network,omitempty"` // NetworkTier: This signifies the networking tier used for configuring @@ -9623,6 +9717,18 @@ type ForwardingRule struct { // information, see the "Target" column in [Port // specifications](/load-balancing/docs/forwarding-rule-concepts#ip_addre // ss_specifications). + // + // For Private Service Connect forwarding rules that forward traffic to + // Google APIs, provide the name of a supported Google API bundle. + // Currently, the supported Google API bundles include: + // + // + // - vpc-sc - GCP APIs that support VPC Service Controls. For more + // information about which APIs support VPC Service Controls, refer to + // VPC-SC supported products and limitations. + // - all-apis - All GCP APIs. For more information about which APIs are + // supported with this bundle, refer to Private Google Access-specific + // domains and VIPs. Target string `json:"target,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -9724,6 +9830,7 @@ type ForwardingRuleAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -9880,6 +9987,7 @@ type ForwardingRuleListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -10042,6 +10150,7 @@ type ForwardingRulesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -10770,6 +10879,9 @@ type HealthCheck struct { // Kind: Type of the resource. Kind string `json:"kind,omitempty"` + // LogConfig: Configure logging on this health check. + LogConfig *HealthCheckLogConfig `json:"logConfig,omitempty"` + // Name: Name of the resource. Provided by the client when the resource // is created. The name must be 1-63 characters long, and comply with // RFC1035. Specifically, the name must be 1-63 characters long and @@ -10911,6 +11023,7 @@ type HealthCheckListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -10998,6 +11111,36 @@ func (s *HealthCheckListWarningData) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// HealthCheckLogConfig: Configuration of logging on a health check. If +// logging is enabled, logs will be exported to Stackdriver. +type HealthCheckLogConfig struct { + // Enable: Indicates whether or not to export logs. This is false by + // default, which means no health check logging will be done. + Enable bool `json:"enable,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Enable") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Enable") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *HealthCheckLogConfig) MarshalJSON() ([]byte, error) { + type NoMethod HealthCheckLogConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // HealthCheckReference: A full or valid partial URL to a health check. // For example, the following are valid URLs: // - @@ -11249,6 +11392,7 @@ type HealthCheckServicesListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -11407,6 +11551,7 @@ type HealthChecksAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -11541,6 +11686,7 @@ type HealthChecksScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -12248,6 +12394,7 @@ type HttpHealthCheckListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -12968,6 +13115,7 @@ type HttpsHealthCheckListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -13383,6 +13531,7 @@ type ImageListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -13823,6 +13972,7 @@ type InstanceAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -14095,6 +14245,7 @@ type InstanceGroupAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -14252,6 +14403,7 @@ type InstanceGroupListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -14376,8 +14528,8 @@ type InstanceGroupManager struct { // property when you create the resource. Description string `json:"description,omitempty"` - // DistributionPolicy: Policy specifying intended distribution of - // instances in regional managed instance group. + // DistributionPolicy: Policy specifying the intended distribution of + // managed instances across zones in a regional managed instance group. DistributionPolicy *DistributionPolicy `json:"distributionPolicy,omitempty"` // Fingerprint: Fingerprint of this resource. This field may be used in @@ -14399,7 +14551,10 @@ type InstanceGroupManager struct { // InstanceTemplate: The URL of the instance template that is specified // for this managed instance group. The group uses this template to - // create all new instances in the managed instance group. + // create all new instances in the managed instance group. The templates + // for existing instances in the group do not change unless you run + // recreateInstances, run applyUpdatesToInstances, or set the group's + // updatePolicy.type to PROACTIVE. InstanceTemplate string `json:"instanceTemplate,omitempty"` // Kind: [Output Only] The resource type, which is always @@ -14454,7 +14609,7 @@ type InstanceGroupManager struct { // remaining instances. For more information, read about canary updates. Versions []*InstanceGroupManagerVersion `json:"versions,omitempty"` - // Zone: [Output Only] The URL of the zone where the managed instance + // Zone: [Output Only] The URL of a zone where the managed instance // group is located (for zonal resources). Zone string `json:"zone,omitempty"` @@ -14639,6 +14794,7 @@ type InstanceGroupManagerAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -14834,6 +14990,7 @@ type InstanceGroupManagerListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -15169,7 +15326,11 @@ type InstanceGroupManagerVersion struct { // InstanceTemplate: The URL of the instance template that is specified // for this managed instance group. The group uses this template to // create new instances in the managed instance group until the - // `targetSize` for this version is reached. + // `targetSize` for this version is reached. The templates for existing + // instances in the group do not change unless you run + // recreateInstances, run applyUpdatesToInstances, or set the group's + // updatePolicy.type to PROACTIVE; in those cases, existing instances + // are updated until the `targetSize` for this version is reached. InstanceTemplate string `json:"instanceTemplate,omitempty"` // Name: Name of the version. Unique among all versions in the scope of @@ -15244,6 +15405,11 @@ func (s *InstanceGroupManagersAbandonInstancesRequest) MarshalJSON() ([]byte, er // InstanceGroupManagersApplyUpdatesRequest: // InstanceGroupManagers.applyUpdatesToInstances type InstanceGroupManagersApplyUpdatesRequest struct { + // AllInstances: Flag to update all instances instead of specified list + // of ?instances?. If the flag is set to true then the instances may not + // be specified in the request. + AllInstances bool `json:"allInstances,omitempty"` + // Instances: The list of URLs of one or more instances for which you // want to apply updates. Each URL can be a full URL or a partial URL, // such as zones/[ZONE]/instances/[INSTANCE_NAME]. @@ -15283,7 +15449,7 @@ type InstanceGroupManagersApplyUpdatesRequest struct { // "RESTART" MostDisruptiveAllowedAction string `json:"mostDisruptiveAllowedAction,omitempty"` - // ForceSendFields is a list of field names (e.g. "Instances") to + // ForceSendFields is a list of field names (e.g. "AllInstances") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -15291,10 +15457,10 @@ type InstanceGroupManagersApplyUpdatesRequest struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Instances") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "AllInstances") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` @@ -15533,6 +15699,7 @@ type InstanceGroupManagersListPerInstanceConfigsRespWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -15731,6 +15898,7 @@ type InstanceGroupManagersScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -15821,7 +15989,10 @@ func (s *InstanceGroupManagersScopedListWarningData) MarshalJSON() ([]byte, erro type InstanceGroupManagersSetInstanceTemplateRequest struct { // InstanceTemplate: The URL of the instance template that is specified // for this managed instance group. The group uses this template to - // create all new instances in the managed instance group. + // create all new instances in the managed instance group. The templates + // for existing instances in the group do not change unless you run + // recreateInstances, run applyUpdatesToInstances, or set the group's + // updatePolicy.type to PROACTIVE. InstanceTemplate string `json:"instanceTemplate,omitempty"` // ForceSendFields is a list of field names (e.g. "InstanceTemplate") to @@ -16015,6 +16186,7 @@ type InstanceGroupsListInstancesWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -16213,6 +16385,7 @@ type InstanceGroupsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -16406,6 +16579,7 @@ type InstanceListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -16563,6 +16737,7 @@ type InstanceListReferrersWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -17093,6 +17268,7 @@ type InstanceTemplateListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -17329,6 +17505,7 @@ type InstancesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -18127,6 +18304,7 @@ type InterconnectAttachmentAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -18286,6 +18464,7 @@ type InterconnectAttachmentListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -18500,6 +18679,7 @@ type InterconnectAttachmentsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -18925,6 +19105,7 @@ type InterconnectListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -19203,6 +19384,7 @@ type InterconnectLocationListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -19767,6 +19949,7 @@ type LicensesListResponseWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -20277,6 +20460,7 @@ type MachineTypeAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -20433,6 +20617,7 @@ type MachineTypeListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -20568,6 +20753,7 @@ type MachineTypesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -21484,6 +21670,7 @@ type NetworkEndpointGroupAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -21808,6 +21995,7 @@ type NetworkEndpointGroupListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -22052,6 +22240,7 @@ type NetworkEndpointGroupsListNetworkEndpointsWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -22190,6 +22379,7 @@ type NetworkEndpointGroupsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -22464,6 +22654,7 @@ type NetworkListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -22961,6 +23152,7 @@ type NodeGroupAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -23158,6 +23350,7 @@ type NodeGroupListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -23427,6 +23620,7 @@ type NodeGroupsListNodesWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -23562,6 +23756,7 @@ type NodeGroupsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -23865,6 +24060,7 @@ type NodeTemplateAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -24021,6 +24217,7 @@ type NodeTemplateListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -24186,6 +24383,7 @@ type NodeTemplatesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -24426,6 +24624,7 @@ type NodeTypeAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -24582,6 +24781,7 @@ type NodeTypeListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -24717,6 +24917,7 @@ type NodeTypesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -25000,6 +25201,7 @@ type NotificationEndpointListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -25318,6 +25520,7 @@ type OperationWarnings struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -25477,6 +25680,7 @@ type OperationAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -25633,6 +25837,7 @@ type OperationListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -25768,6 +25973,7 @@ type OperationsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -26131,6 +26337,7 @@ type PacketMirroringAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -26232,6 +26439,15 @@ type PacketMirroringFilter struct { // IPProtocols is specified, all traffic is mirrored. CidrRanges []string `json:"cidrRanges,omitempty"` + // Direction: Direction of traffic to mirror, either INGRESS, EGRESS, or + // BOTH. The default is BOTH. + // + // Possible values: + // "BOTH" + // "EGRESS" + // "INGRESS" + Direction string `json:"direction,omitempty"` + // ForceSendFields is a list of field names (e.g. "IPProtocols") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, @@ -26357,6 +26573,7 @@ type PacketMirroringListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -26633,6 +26850,7 @@ type PacketMirroringsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -27563,6 +27781,7 @@ type Quota struct { // "URL_MAPS" // "VPN_GATEWAYS" // "VPN_TUNNELS" + // "XPN_SERVICE_PROJECTS" Metric string `json:"metric,omitempty"` // Owner: [Output Only] Owning resource. This is the resource on which @@ -27793,6 +28012,7 @@ type RegionAutoscalerListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -27949,6 +28169,7 @@ type RegionDiskTypeListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -28189,6 +28410,7 @@ type RegionInstanceGroupListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -28378,6 +28600,7 @@ type RegionInstanceGroupManagerListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -28559,6 +28782,11 @@ func (s *RegionInstanceGroupManagersAbandonInstancesRequest) MarshalJSON() ([]by // RegionInstanceGroupManagersApplyUpdatesRequest: // RegionInstanceGroupManagers.applyUpdatesToInstances type RegionInstanceGroupManagersApplyUpdatesRequest struct { + // AllInstances: Flag to update all instances instead of specified list + // of ?instances?. If the flag is set to true then the instances may not + // be specified in the request. + AllInstances bool `json:"allInstances,omitempty"` + // Instances: The list of URLs of one or more instances for which you // want to apply updates. Each URL can be a full URL or a partial URL, // such as zones/[ZONE]/instances/[INSTANCE_NAME]. @@ -28598,7 +28826,7 @@ type RegionInstanceGroupManagersApplyUpdatesRequest struct { // "RESTART" MostDisruptiveAllowedAction string `json:"mostDisruptiveAllowedAction,omitempty"` - // ForceSendFields is a list of field names (e.g. "Instances") to + // ForceSendFields is a list of field names (e.g. "AllInstances") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -28606,10 +28834,10 @@ type RegionInstanceGroupManagersApplyUpdatesRequest struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Instances") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "AllInstances") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` @@ -28777,6 +29005,7 @@ type RegionInstanceGroupManagersListInstanceConfigsRespWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -29064,6 +29293,7 @@ type RegionInstanceGroupsListInstancesWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -29293,6 +29523,7 @@ type RegionListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -29756,6 +29987,7 @@ type ReservationAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -29911,6 +30143,7 @@ type ReservationListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -30074,6 +30307,7 @@ type ReservationsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -30285,6 +30519,7 @@ type ResourcePoliciesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -30385,7 +30620,7 @@ type ResourcePolicy struct { Description string `json:"description,omitempty"` - // GroupPlacementPolicy: Resource policy for instacnes for placement + // GroupPlacementPolicy: Resource policy for instances for placement // configuration. GroupPlacementPolicy *ResourcePolicyGroupPlacementPolicy `json:"groupPlacementPolicy,omitempty"` @@ -30528,6 +30763,7 @@ type ResourcePolicyAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -30808,6 +31044,7 @@ type ResourcePolicyListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -31012,6 +31249,9 @@ func (s *ResourcePolicySnapshotSchedulePolicySchedule) MarshalJSON() ([]byte, er // ResourcePolicySnapshotSchedulePolicySnapshotProperties: Specified // snapshot properties for scheduled snapshots created by this policy. type ResourcePolicySnapshotSchedulePolicySnapshotProperties struct { + // ChainName: Chain name that the snapshot is created in. + ChainName string `json:"chainName,omitempty"` + // GuestFlush: Indication to perform a 'guest aware' snapshot. GuestFlush bool `json:"guestFlush,omitempty"` @@ -31023,7 +31263,7 @@ type ResourcePolicySnapshotSchedulePolicySnapshotProperties struct { // snapshot (regional or multi-regional). StorageLocations []string `json:"storageLocations,omitempty"` - // ForceSendFields is a list of field names (e.g. "GuestFlush") to + // ForceSendFields is a list of field names (e.g. "ChainName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -31031,7 +31271,7 @@ type ResourcePolicySnapshotSchedulePolicySnapshotProperties struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "GuestFlush") to include in + // NullFields is a list of field names (e.g. "ChainName") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -31169,9 +31409,10 @@ type Route struct { NextHopGateway string `json:"nextHopGateway,omitempty"` // NextHopIlb: The URL to a forwarding rule of type - // loadBalancingScheme=INTERNAL that should handle matching packets. You - // can only specify the forwarding rule as a partial or full URL. For - // example, the following are all valid URLs: + // loadBalancingScheme=INTERNAL that should handle matching packets or + // the IP address of the forwarding Rule. For example, the following are + // all valid URLs: + // - 10.128.0.56 // - // https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule // - regions/region/forwardingRules/forwardingRule @@ -31260,6 +31501,7 @@ type RouteWarnings struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -31415,6 +31657,7 @@ type RouteListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -31692,6 +31935,7 @@ type RouterAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -32070,6 +32314,7 @@ type RouterListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -32169,6 +32414,8 @@ type RouterNat struct { // NAT. These IPs should be used for updating/patching a NAT only. DrainNatIps []string `json:"drainNatIps,omitempty"` + EnableEndpointIndependentMapping bool `json:"enableEndpointIndependentMapping,omitempty"` + // IcmpIdleTimeoutSec: Timeout (in seconds) for ICMP connections. // Defaults to 30s if not set. IcmpIdleTimeoutSec int64 `json:"icmpIdleTimeoutSec,omitempty"` @@ -32622,6 +32869,7 @@ type RoutersScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -33040,12 +33288,13 @@ func (s *SecurityPoliciesWafConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SecurityPolicy: Represents a Cloud Armor Security Policy +// SecurityPolicy: Represents a Google Cloud Armor security policy // resource. // // Only external backend services that use load balancers can reference -// a Security Policy. For more information, read Cloud Armor Security -// Policy Concepts. (== resource_for {$api_version}.securityPolicies ==) +// a security policy. For more information, see Google Cloud Armor +// security policy overview. (== resource_for +// {$api_version}.securityPolicies ==) type SecurityPolicy struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text // format. @@ -33187,6 +33436,7 @@ type SecurityPolicyListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -33431,6 +33681,59 @@ func (s *SecurityPolicyRuleMatcherConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SecuritySettings: The authentication and authorization settings for a +// BackendService. +type SecuritySettings struct { + // ClientTlsPolicy: Optional. A URL referring to a + // networksecurity.ClientTlsPolicy resource that describes how clients + // should authenticate with this service's backends. + // clientTlsPolicy only applies to a global BackendService with the + // loadBalancingScheme set to INTERNAL_SELF_MANAGED. + // If left blank, communications are not encrypted. + // Note: This field currently has no impact. + ClientTlsPolicy string `json:"clientTlsPolicy,omitempty"` + + // SubjectAltNames: Optional. A list of Subject Alternative Names (SANs) + // that the client verifies during a mutual TLS handshake with an + // server/endpoint for this BackendService. When the server presents its + // X.509 certificate to the client, the client inspects the + // certificate's subjectAltName field. If the field contains one of the + // specified values, the communication continues. Otherwise, it fails. + // This additional check enables the client to verify that the server is + // authorized to run the requested service. + // Note that the contents of the server certificate's subjectAltName + // field are configured by the Public Key Infrastructure which + // provisions server identities. + // Only applies to a global BackendService with loadBalancingScheme set + // to INTERNAL_SELF_MANAGED. Only applies when BackendService has an + // attached clientTlsPolicy with clientCertificate (mTLS mode). + // Note: This field currently has no impact. + SubjectAltNames []string `json:"subjectAltNames,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ClientTlsPolicy") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ClientTlsPolicy") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *SecuritySettings) MarshalJSON() ([]byte, error) { + type NoMethod SecuritySettings + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SerialPortOutput: An instance's serial console output. type SerialPortOutput struct { // Contents: [Output Only] The contents of the console output. @@ -33739,6 +34042,14 @@ type Snapshot struct { // created by applying resource policy on the target disk. AutoCreated bool `json:"autoCreated,omitempty"` + // ChainName: Creates the new snapshot in the snapshot chain labeled + // with the specified name. The chain name must be 1-63 characters long + // and comply with RFC1035. This is an uncommon option only for advanced + // service owners who needs to create separate snapshot chains, for + // example, for chargeback tracking. When you describe your snapshot + // resource, this field is visible only if it has a non-empty value. + ChainName string `json:"chainName,omitempty"` + // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text // format. CreationTimestamp string `json:"creationTimestamp,omitempty"` @@ -33955,6 +34266,7 @@ type SnapshotListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -34270,6 +34582,7 @@ type SslCertificateAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -34426,6 +34739,7 @@ type SslCertificateListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -34641,6 +34955,7 @@ type SslCertificatesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -34796,6 +35111,7 @@ type SslPoliciesListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -34913,11 +35229,11 @@ func (s *SslPoliciesListAvailableFeaturesResponse) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SslPolicy: Represents a Cloud Armor Security Policy resource. +// SslPolicy: Represents an SSL Policy resource. // -// Only external backend services used by HTTP or HTTPS load balancers -// can reference a Security Policy. For more information, read read -// Cloud Armor Security Policy Concepts. (== resource_for +// Use SSL policies to control the SSL features, such as versions and +// cipher suites, offered by an HTTPS or SSL Proxy load balancer. For +// more information, read SSL Policy Concepts. (== resource_for // {$api_version}.sslPolicies ==) type SslPolicy struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text @@ -35038,6 +35354,7 @@ type SslPolicyWarnings struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -35498,6 +35815,7 @@ type SubnetworkAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -35654,6 +35972,7 @@ type SubnetworkListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -35948,6 +36267,7 @@ type SubnetworksScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -36338,6 +36658,7 @@ type TargetGrpcProxyListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -36474,6 +36795,7 @@ type TargetHttpProxiesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -36617,6 +36939,20 @@ type TargetHttpProxy struct { // last character, which cannot be a dash. Name string `json:"name,omitempty"` + // ProxyBind: This field only applies when the forwarding rule that + // references this target proxy has a loadBalancingScheme set to + // INTERNAL_SELF_MANAGED. + // + // When this field is set to true, Envoy proxies set up inbound traffic + // interception and bind to the IP address and port specified in the + // forwarding rule. This is generally useful when using Traffic Director + // to configure Envoy as a gateway or middle proxy (in other words, not + // a sidecar proxy). The Envoy proxy listens for inbound requests and + // handles requests when it receives them. + // + // The default is false. + ProxyBind bool `json:"proxyBind,omitempty"` + // Region: [Output Only] URL of the region where the regional Target // HTTP Proxy resides. This field is not applicable to global Target // HTTP Proxies. @@ -36781,6 +37117,7 @@ type TargetHttpProxyListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -36917,6 +37254,7 @@ type TargetHttpsProxiesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -37088,6 +37426,18 @@ func (s *TargetHttpsProxiesSetSslCertificatesRequest) MarshalJSON() ([]byte, err // {$api_version}.targetHttpsProxies ==) (== resource_for // {$api_version}.regionTargetHttpsProxies ==) type TargetHttpsProxy struct { + // AuthorizationPolicy: Optional. A URL referring to a + // networksecurity.AuthorizationPolicy resource that describes how the + // proxy should authorize inbound traffic. If left blank, access will + // not be restricted by an authorization policy. + // Refer to the AuthorizationPolicy resource for additional + // details. + // authorizationPolicy only applies to a global TargetHttpsProxy + // attached to globalForwardingRules with the loadBalancingScheme set to + // INTERNAL_SELF_MANAGED. + // Note: This field currently has no impact. + AuthorizationPolicy string `json:"authorizationPolicy,omitempty"` + // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text // format. CreationTimestamp string `json:"creationTimestamp,omitempty"` @@ -37113,6 +37463,20 @@ type TargetHttpsProxy struct { // last character, which cannot be a dash. Name string `json:"name,omitempty"` + // ProxyBind: This field only applies when the forwarding rule that + // references this target proxy has a loadBalancingScheme set to + // INTERNAL_SELF_MANAGED. + // + // When this field is set to true, Envoy proxies set up inbound traffic + // interception and bind to the IP address and port specified in the + // forwarding rule. This is generally useful when using Traffic Director + // to configure Envoy as a gateway or middle proxy (in other words, not + // a sidecar proxy). The Envoy proxy listens for inbound requests and + // handles requests when it receives them. + // + // The default is false. + ProxyBind bool `json:"proxyBind,omitempty"` + // QuicOverride: Specifies the QUIC override policy for this // TargetHttpsProxy resource. This setting determines whether the load // balancer attempts to negotiate QUIC with clients. You can specify @@ -37140,6 +37504,16 @@ type TargetHttpsProxy struct { // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` + // ServerTlsPolicy: Optional. A URL referring to a + // networksecurity.ServerTlsPolicy resource that describes how the proxy + // should authenticate inbound traffic. + // serverTlsPolicy only applies to a global TargetHttpsProxy attached to + // globalForwardingRules with the loadBalancingScheme set to + // INTERNAL_SELF_MANAGED. + // If left blank, communications are not encrypted. + // Note: This field currently has no impact. + ServerTlsPolicy string `json:"serverTlsPolicy,omitempty"` + // SslCertificates: URLs to SslCertificate resources that are used to // authenticate connections between users and the load balancer. At // least one SSL certificate must be specified. Currently, you may @@ -37164,7 +37538,7 @@ type TargetHttpsProxy struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreationTimestamp") + // ForceSendFields is a list of field names (e.g. "AuthorizationPolicy") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -37172,7 +37546,7 @@ type TargetHttpsProxy struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreationTimestamp") to + // NullFields is a list of field names (e.g. "AuthorizationPolicy") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -37261,6 +37635,7 @@ type TargetHttpsProxyAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -37418,6 +37793,7 @@ type TargetHttpsProxyListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -37662,6 +38038,7 @@ type TargetInstanceAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -37818,6 +38195,7 @@ type TargetInstanceListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -37953,6 +38331,7 @@ type TargetInstancesScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -38048,10 +38427,10 @@ func (s *TargetInstancesScopedListWarningData) MarshalJSON() ([]byte, error) { // more information, read Using target pools. (== resource_for // {$api_version}.targetPools ==) type TargetPool struct { - // BackupPool: This field is applicable only when the containing target - // pool is serving a forwarding rule as the primary pool, and its - // failoverRatio field is properly set to a value between [0, - // 1]. + // BackupPool: The server-defined URL for the resource. This field is + // applicable only when the containing target pool is serving a + // forwarding rule as the primary pool, and its failoverRatio field is + // properly set to a value between [0, 1]. // // backupPool and failoverRatio together define the fallback behavior of // the primary target pool: if the ratio of the healthy instances in the @@ -38262,6 +38641,7 @@ type TargetPoolAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -38453,6 +38833,7 @@ type TargetPoolListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -38706,6 +39087,7 @@ type TargetPoolsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -39065,6 +39447,7 @@ type TargetSslProxyListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -39357,6 +39740,7 @@ type TargetTcpProxyListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -39607,6 +39991,7 @@ type TargetVpnGatewayAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -39764,6 +40149,7 @@ type TargetVpnGatewayListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -39900,6 +40286,7 @@ type TargetVpnGatewaysScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -40317,6 +40704,7 @@ type UrlMapListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -40580,6 +40968,7 @@ type UrlMapsAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -40714,6 +41103,7 @@ type UrlMapsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -41041,6 +41431,7 @@ type UsableSubnetworksAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -41332,6 +41723,7 @@ type VmEndpointNatMappingsListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -41584,6 +41976,7 @@ type VpnGatewayAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -41740,6 +42133,7 @@ type VpnGatewayListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -42093,6 +42487,7 @@ type VpnGatewaysScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -42432,6 +42827,7 @@ type VpnTunnelAggregatedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -42588,6 +42984,7 @@ type VpnTunnelListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -42722,6 +43119,7 @@ type VpnTunnelsScopedListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -43003,6 +43401,7 @@ type XpnHostListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -43271,6 +43670,7 @@ type ZoneListWarning struct { // "EXTERNAL_API_WARNING" // "FIELD_VALUE_OVERRIDEN" // "INJECTED_KERNELS_DEPRECATED" + // "LARGE_DEPLOYMENT_WARNING" // "MISSING_TYPE_DEPENDENCY" // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" // "NEXT_HOP_CANNOT_IP_FORWARD" @@ -43574,7 +43974,7 @@ func (c *AcceleratorTypesAggregatedListCall) Header() http.Header { func (c *AcceleratorTypesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -43777,7 +44177,7 @@ func (c *AcceleratorTypesGetCall) Header() http.Header { func (c *AcceleratorTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -44017,7 +44417,7 @@ func (c *AcceleratorTypesListCall) Header() http.Header { func (c *AcceleratorTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -44308,7 +44708,7 @@ func (c *AddressesAggregatedListCall) Header() http.Header { func (c *AddressesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -44520,7 +44920,7 @@ func (c *AddressesDeleteCall) Header() http.Header { func (c *AddressesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -44689,7 +45089,7 @@ func (c *AddressesGetCall) Header() http.Header { func (c *AddressesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -44866,7 +45266,7 @@ func (c *AddressesInsertCall) Header() http.Header { func (c *AddressesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -45107,7 +45507,7 @@ func (c *AddressesListCall) Header() http.Header { func (c *AddressesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -45397,7 +45797,7 @@ func (c *AutoscalersAggregatedListCall) Header() http.Header { func (c *AutoscalersAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -45608,7 +46008,7 @@ func (c *AutoscalersDeleteCall) Header() http.Header { func (c *AutoscalersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -45777,7 +46177,7 @@ func (c *AutoscalersGetCall) Header() http.Header { func (c *AutoscalersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -45953,7 +46353,7 @@ func (c *AutoscalersInsertCall) Header() http.Header { func (c *AutoscalersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -46193,7 +46593,7 @@ func (c *AutoscalersListCall) Header() http.Header { func (c *AutoscalersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -46417,7 +46817,7 @@ func (c *AutoscalersPatchCall) Header() http.Header { func (c *AutoscalersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -46606,7 +47006,7 @@ func (c *AutoscalersUpdateCall) Header() http.Header { func (c *AutoscalersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -46788,7 +47188,7 @@ func (c *BackendBucketsAddSignedUrlKeyCall) Header() http.Header { func (c *BackendBucketsAddSignedUrlKeyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -46960,7 +47360,7 @@ func (c *BackendBucketsDeleteCall) Header() http.Header { func (c *BackendBucketsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -47127,7 +47527,7 @@ func (c *BackendBucketsDeleteSignedUrlKeyCall) Header() http.Header { func (c *BackendBucketsDeleteSignedUrlKeyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -47291,7 +47691,7 @@ func (c *BackendBucketsGetCall) Header() http.Header { func (c *BackendBucketsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -47456,7 +47856,7 @@ func (c *BackendBucketsInsertCall) Header() http.Header { func (c *BackendBucketsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -47685,7 +48085,7 @@ func (c *BackendBucketsListCall) Header() http.Header { func (c *BackendBucketsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -47893,7 +48293,7 @@ func (c *BackendBucketsPatchCall) Header() http.Header { func (c *BackendBucketsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -48069,7 +48469,7 @@ func (c *BackendBucketsUpdateCall) Header() http.Header { func (c *BackendBucketsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -48245,7 +48645,7 @@ func (c *BackendServicesAddSignedUrlKeyCall) Header() http.Header { func (c *BackendServicesAddSignedUrlKeyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -48495,7 +48895,7 @@ func (c *BackendServicesAggregatedListCall) Header() http.Header { func (c *BackendServicesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -48705,7 +49105,7 @@ func (c *BackendServicesDeleteCall) Header() http.Header { func (c *BackendServicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -48872,7 +49272,7 @@ func (c *BackendServicesDeleteSignedUrlKeyCall) Header() http.Header { func (c *BackendServicesDeleteSignedUrlKeyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -49037,7 +49437,7 @@ func (c *BackendServicesGetCall) Header() http.Header { func (c *BackendServicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -49190,7 +49590,7 @@ func (c *BackendServicesGetHealthCall) Header() http.Header { func (c *BackendServicesGetHealthCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -49361,7 +49761,7 @@ func (c *BackendServicesInsertCall) Header() http.Header { func (c *BackendServicesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -49591,7 +49991,7 @@ func (c *BackendServicesListCall) Header() http.Header { func (c *BackendServicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -49801,7 +50201,7 @@ func (c *BackendServicesPatchCall) Header() http.Header { func (c *BackendServicesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -49977,7 +50377,7 @@ func (c *BackendServicesSetSecurityPolicyCall) Header() http.Header { func (c *BackendServicesSetSecurityPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -50154,7 +50554,7 @@ func (c *BackendServicesUpdateCall) Header() http.Header { func (c *BackendServicesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -50405,7 +50805,7 @@ func (c *DiskTypesAggregatedListCall) Header() http.Header { func (c *DiskTypesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -50610,7 +51010,7 @@ func (c *DiskTypesGetCall) Header() http.Header { func (c *DiskTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -50851,7 +51251,7 @@ func (c *DiskTypesListCall) Header() http.Header { func (c *DiskTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -51070,7 +51470,7 @@ func (c *DisksAddResourcePoliciesCall) Header() http.Header { func (c *DisksAddResourcePoliciesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -51330,7 +51730,7 @@ func (c *DisksAggregatedListCall) Header() http.Header { func (c *DisksAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -51553,7 +51953,7 @@ func (c *DisksCreateSnapshotCall) Header() http.Header { func (c *DisksCreateSnapshotCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -51746,7 +52146,7 @@ func (c *DisksDeleteCall) Header() http.Header { func (c *DisksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -51915,7 +52315,7 @@ func (c *DisksGetCall) Header() http.Header { func (c *DisksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -52090,7 +52490,7 @@ func (c *DisksGetIamPolicyCall) Header() http.Header { func (c *DisksGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -52284,7 +52684,7 @@ func (c *DisksInsertCall) Header() http.Header { func (c *DisksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -52530,7 +52930,7 @@ func (c *DisksListCall) Header() http.Header { func (c *DisksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -52747,7 +53147,7 @@ func (c *DisksRemoveResourcePoliciesCall) Header() http.Header { func (c *DisksRemoveResourcePoliciesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -52934,7 +53334,7 @@ func (c *DisksResizeCall) Header() http.Header { func (c *DisksResizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -53102,7 +53502,7 @@ func (c *DisksSetIamPolicyCall) Header() http.Header { func (c *DisksSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -53284,7 +53684,7 @@ func (c *DisksSetLabelsCall) Header() http.Header { func (c *DisksSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -53452,7 +53852,7 @@ func (c *DisksTestIamPermissionsCall) Header() http.Header { func (c *DisksTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -53630,7 +54030,7 @@ func (c *ExternalVpnGatewaysDeleteCall) Header() http.Header { func (c *ExternalVpnGatewaysDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -53788,7 +54188,7 @@ func (c *ExternalVpnGatewaysGetCall) Header() http.Header { func (c *ExternalVpnGatewaysGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -53953,7 +54353,7 @@ func (c *ExternalVpnGatewaysInsertCall) Header() http.Header { func (c *ExternalVpnGatewaysInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -54182,7 +54582,7 @@ func (c *ExternalVpnGatewaysListCall) Header() http.Header { func (c *ExternalVpnGatewaysListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -54370,7 +54770,7 @@ func (c *ExternalVpnGatewaysSetLabelsCall) Header() http.Header { func (c *ExternalVpnGatewaysSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -54522,7 +54922,7 @@ func (c *ExternalVpnGatewaysTestIamPermissionsCall) Header() http.Header { func (c *ExternalVpnGatewaysTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -54692,7 +55092,7 @@ func (c *FirewallsDeleteCall) Header() http.Header { func (c *FirewallsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -54850,7 +55250,7 @@ func (c *FirewallsGetCall) Header() http.Header { func (c *FirewallsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -55016,7 +55416,7 @@ func (c *FirewallsInsertCall) Header() http.Header { func (c *FirewallsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -55246,7 +55646,7 @@ func (c *FirewallsListCall) Header() http.Header { func (c *FirewallsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -55455,7 +55855,7 @@ func (c *FirewallsPatchCall) Header() http.Header { func (c *FirewallsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -55634,7 +56034,7 @@ func (c *FirewallsUpdateCall) Header() http.Header { func (c *FirewallsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -55885,7 +56285,7 @@ func (c *ForwardingRulesAggregatedListCall) Header() http.Header { func (c *ForwardingRulesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -56097,7 +56497,7 @@ func (c *ForwardingRulesDeleteCall) Header() http.Header { func (c *ForwardingRulesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -56266,7 +56666,7 @@ func (c *ForwardingRulesGetCall) Header() http.Header { func (c *ForwardingRulesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -56443,7 +56843,7 @@ func (c *ForwardingRulesInsertCall) Header() http.Header { func (c *ForwardingRulesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -56684,7 +57084,7 @@ func (c *ForwardingRulesListCall) Header() http.Header { func (c *ForwardingRulesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -56904,7 +57304,7 @@ func (c *ForwardingRulesPatchCall) Header() http.Header { func (c *ForwardingRulesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -57092,7 +57492,7 @@ func (c *ForwardingRulesSetTargetCall) Header() http.Header { func (c *ForwardingRulesSetTargetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -57275,7 +57675,7 @@ func (c *GlobalAddressesDeleteCall) Header() http.Header { func (c *GlobalAddressesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -57434,7 +57834,7 @@ func (c *GlobalAddressesGetCall) Header() http.Header { func (c *GlobalAddressesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -57600,7 +58000,7 @@ func (c *GlobalAddressesInsertCall) Header() http.Header { func (c *GlobalAddressesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -57829,7 +58229,7 @@ func (c *GlobalAddressesListCall) Header() http.Header { func (c *GlobalAddressesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -58034,7 +58434,7 @@ func (c *GlobalForwardingRulesDeleteCall) Header() http.Header { func (c *GlobalForwardingRulesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -58193,7 +58593,7 @@ func (c *GlobalForwardingRulesGetCall) Header() http.Header { func (c *GlobalForwardingRulesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -58359,7 +58759,7 @@ func (c *GlobalForwardingRulesInsertCall) Header() http.Header { func (c *GlobalForwardingRulesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -58589,7 +58989,7 @@ func (c *GlobalForwardingRulesListCall) Header() http.Header { func (c *GlobalForwardingRulesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -58798,7 +59198,7 @@ func (c *GlobalForwardingRulesPatchCall) Header() http.Header { func (c *GlobalForwardingRulesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -58975,7 +59375,7 @@ func (c *GlobalForwardingRulesSetTargetCall) Header() http.Header { func (c *GlobalForwardingRulesSetTargetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -59151,7 +59551,7 @@ func (c *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) Header() http.He func (c *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -59324,7 +59724,7 @@ func (c *GlobalNetworkEndpointGroupsDeleteCall) Header() http.Header { func (c *GlobalNetworkEndpointGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -59491,7 +59891,7 @@ func (c *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) Header() http.He func (c *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -59656,7 +60056,7 @@ func (c *GlobalNetworkEndpointGroupsGetCall) Header() http.Header { func (c *GlobalNetworkEndpointGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -59820,7 +60220,7 @@ func (c *GlobalNetworkEndpointGroupsInsertCall) Header() http.Header { func (c *GlobalNetworkEndpointGroupsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -60049,7 +60449,7 @@ func (c *GlobalNetworkEndpointGroupsListCall) Header() http.Header { func (c *GlobalNetworkEndpointGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -60309,7 +60709,7 @@ func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) Header() http.Head func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -60598,7 +60998,7 @@ func (c *GlobalOperationsAggregatedListCall) Header() http.Header { func (c *GlobalOperationsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -60789,7 +61189,7 @@ func (c *GlobalOperationsDeleteCall) Header() http.Header { func (c *GlobalOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -60915,7 +61315,7 @@ func (c *GlobalOperationsGetCall) Header() http.Header { func (c *GlobalOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -61145,7 +61545,7 @@ func (c *GlobalOperationsListCall) Header() http.Header { func (c *GlobalOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -61343,7 +61743,7 @@ func (c *GlobalOperationsWaitCall) Header() http.Header { func (c *GlobalOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -61582,7 +61982,7 @@ func (c *HealthChecksAggregatedListCall) Header() http.Header { func (c *HealthChecksAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -61791,7 +62191,7 @@ func (c *HealthChecksDeleteCall) Header() http.Header { func (c *HealthChecksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -61949,7 +62349,7 @@ func (c *HealthChecksGetCall) Header() http.Header { func (c *HealthChecksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -62114,7 +62514,7 @@ func (c *HealthChecksInsertCall) Header() http.Header { func (c *HealthChecksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -62343,7 +62743,7 @@ func (c *HealthChecksListCall) Header() http.Header { func (c *HealthChecksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -62551,7 +62951,7 @@ func (c *HealthChecksPatchCall) Header() http.Header { func (c *HealthChecksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -62727,7 +63127,7 @@ func (c *HealthChecksUpdateCall) Header() http.Header { func (c *HealthChecksUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -62901,7 +63301,7 @@ func (c *HttpHealthChecksDeleteCall) Header() http.Header { func (c *HttpHealthChecksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -63060,7 +63460,7 @@ func (c *HttpHealthChecksGetCall) Header() http.Header { func (c *HttpHealthChecksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -63226,7 +63626,7 @@ func (c *HttpHealthChecksInsertCall) Header() http.Header { func (c *HttpHealthChecksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -63456,7 +63856,7 @@ func (c *HttpHealthChecksListCall) Header() http.Header { func (c *HttpHealthChecksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -63665,7 +64065,7 @@ func (c *HttpHealthChecksPatchCall) Header() http.Header { func (c *HttpHealthChecksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -63842,7 +64242,7 @@ func (c *HttpHealthChecksUpdateCall) Header() http.Header { func (c *HttpHealthChecksUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -64015,7 +64415,7 @@ func (c *HttpsHealthChecksDeleteCall) Header() http.Header { func (c *HttpsHealthChecksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -64173,7 +64573,7 @@ func (c *HttpsHealthChecksGetCall) Header() http.Header { func (c *HttpsHealthChecksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -64338,7 +64738,7 @@ func (c *HttpsHealthChecksInsertCall) Header() http.Header { func (c *HttpsHealthChecksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -64567,7 +64967,7 @@ func (c *HttpsHealthChecksListCall) Header() http.Header { func (c *HttpsHealthChecksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -64775,7 +65175,7 @@ func (c *HttpsHealthChecksPatchCall) Header() http.Header { func (c *HttpsHealthChecksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -64951,7 +65351,7 @@ func (c *HttpsHealthChecksUpdateCall) Header() http.Header { func (c *HttpsHealthChecksUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -65125,7 +65525,7 @@ func (c *ImagesDeleteCall) Header() http.Header { func (c *ImagesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -65296,7 +65696,7 @@ func (c *ImagesDeprecateCall) Header() http.Header { func (c *ImagesDeprecateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -65463,7 +65863,7 @@ func (c *ImagesGetCall) Header() http.Header { func (c *ImagesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -65620,7 +66020,7 @@ func (c *ImagesGetFromFamilyCall) Header() http.Header { func (c *ImagesGetFromFamilyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -65784,7 +66184,7 @@ func (c *ImagesGetIamPolicyCall) Header() http.Header { func (c *ImagesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -65963,7 +66363,7 @@ func (c *ImagesInsertCall) Header() http.Header { func (c *ImagesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -66206,7 +66606,7 @@ func (c *ImagesListCall) Header() http.Header { func (c *ImagesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -66414,7 +66814,7 @@ func (c *ImagesPatchCall) Header() http.Header { func (c *ImagesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -66571,7 +66971,7 @@ func (c *ImagesSetIamPolicyCall) Header() http.Header { func (c *ImagesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -66723,7 +67123,7 @@ func (c *ImagesSetLabelsCall) Header() http.Header { func (c *ImagesSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -66875,7 +67275,7 @@ func (c *ImagesTestIamPermissionsCall) Header() http.Header { func (c *ImagesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -67064,7 +67464,7 @@ func (c *InstanceGroupManagersAbandonInstancesCall) Header() http.Header { func (c *InstanceGroupManagersAbandonInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -67322,7 +67722,7 @@ func (c *InstanceGroupManagersAggregatedListCall) Header() http.Header { func (c *InstanceGroupManagersAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -67519,7 +67919,7 @@ func (c *InstanceGroupManagersApplyUpdatesToInstancesCall) Header() http.Header func (c *InstanceGroupManagersApplyUpdatesToInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -67702,7 +68102,7 @@ func (c *InstanceGroupManagersCreateInstancesCall) Header() http.Header { func (c *InstanceGroupManagersCreateInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -67887,7 +68287,7 @@ func (c *InstanceGroupManagersDeleteCall) Header() http.Header { func (c *InstanceGroupManagersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -68078,7 +68478,7 @@ func (c *InstanceGroupManagersDeleteInstancesCall) Header() http.Header { func (c *InstanceGroupManagersDeleteInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -68244,7 +68644,7 @@ func (c *InstanceGroupManagersDeletePerInstanceConfigsCall) Header() http.Header func (c *InstanceGroupManagersDeletePerInstanceConfigsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -68415,7 +68815,7 @@ func (c *InstanceGroupManagersGetCall) Header() http.Header { func (c *InstanceGroupManagersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -68597,7 +68997,7 @@ func (c *InstanceGroupManagersInsertCall) Header() http.Header { func (c *InstanceGroupManagersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -68836,7 +69236,7 @@ func (c *InstanceGroupManagersListCall) Header() http.Header { func (c *InstanceGroupManagersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -69118,7 +69518,7 @@ func (c *InstanceGroupManagersListErrorsCall) Header() http.Header { func (c *InstanceGroupManagersListErrorsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -69402,7 +69802,7 @@ func (c *InstanceGroupManagersListManagedInstancesCall) Header() http.Header { func (c *InstanceGroupManagersListManagedInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -69680,7 +70080,7 @@ func (c *InstanceGroupManagersListPerInstanceConfigsCall) Header() http.Header { func (c *InstanceGroupManagersListPerInstanceConfigsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -69909,7 +70309,7 @@ func (c *InstanceGroupManagersPatchCall) Header() http.Header { func (c *InstanceGroupManagersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -70095,7 +70495,7 @@ func (c *InstanceGroupManagersPatchPerInstanceConfigsCall) Header() http.Header func (c *InstanceGroupManagersPatchPerInstanceConfigsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -70293,7 +70693,7 @@ func (c *InstanceGroupManagersRecreateInstancesCall) Header() http.Header { func (c *InstanceGroupManagersRecreateInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -70496,7 +70896,7 @@ func (c *InstanceGroupManagersResizeCall) Header() http.Header { func (c *InstanceGroupManagersResizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -70626,7 +71026,9 @@ type InstanceGroupManagersSetInstanceTemplateCall struct { // SetInstanceTemplate: Specifies the instance template to use when // creating new instances in this group. The templates for existing -// instances in the group do not change unless you recreate them. +// instances in the group do not change unless you run +// recreateInstances, run applyUpdatesToInstances, or set the group's +// updatePolicy.type to PROACTIVE. func (r *InstanceGroupManagersService) SetInstanceTemplate(project string, zone string, instanceGroupManager string, instancegroupmanagerssetinstancetemplaterequest *InstanceGroupManagersSetInstanceTemplateRequest) *InstanceGroupManagersSetInstanceTemplateCall { c := &InstanceGroupManagersSetInstanceTemplateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -70682,7 +71084,7 @@ func (c *InstanceGroupManagersSetInstanceTemplateCall) Header() http.Header { func (c *InstanceGroupManagersSetInstanceTemplateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -70748,7 +71150,7 @@ func (c *InstanceGroupManagersSetInstanceTemplateCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you recreate them.", + // "description": "Specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE.", // "httpMethod": "POST", // "id": "compute.instanceGroupManagers.setInstanceTemplate", // "parameterOrder": [ @@ -70872,7 +71274,7 @@ func (c *InstanceGroupManagersSetTargetPoolsCall) Header() http.Header { func (c *InstanceGroupManagersSetTargetPoolsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -71058,7 +71460,7 @@ func (c *InstanceGroupManagersUpdatePerInstanceConfigsCall) Header() http.Header func (c *InstanceGroupManagersUpdatePerInstanceConfigsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -71244,7 +71646,7 @@ func (c *InstanceGroupsAddInstancesCall) Header() http.Header { func (c *InstanceGroupsAddInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -71502,7 +71904,7 @@ func (c *InstanceGroupsAggregatedListCall) Header() http.Header { func (c *InstanceGroupsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -71716,7 +72118,7 @@ func (c *InstanceGroupsDeleteCall) Header() http.Header { func (c *InstanceGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -71886,7 +72288,7 @@ func (c *InstanceGroupsGetCall) Header() http.Header { func (c *InstanceGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -72060,7 +72462,7 @@ func (c *InstanceGroupsInsertCall) Header() http.Header { func (c *InstanceGroupsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -72302,7 +72704,7 @@ func (c *InstanceGroupsListCall) Header() http.Header { func (c *InstanceGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -72574,7 +72976,7 @@ func (c *InstanceGroupsListInstancesCall) Header() http.Header { func (c *InstanceGroupsListInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -72808,7 +73210,7 @@ func (c *InstanceGroupsRemoveInstancesCall) Header() http.Header { func (c *InstanceGroupsRemoveInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -72992,7 +73394,7 @@ func (c *InstanceGroupsSetNamedPortsCall) Header() http.Header { func (c *InstanceGroupsSetNamedPortsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -73175,7 +73577,7 @@ func (c *InstanceTemplatesDeleteCall) Header() http.Header { func (c *InstanceTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -73334,7 +73736,7 @@ func (c *InstanceTemplatesGetCall) Header() http.Header { func (c *InstanceTemplatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -73498,7 +73900,7 @@ func (c *InstanceTemplatesGetIamPolicyCall) Header() http.Header { func (c *InstanceTemplatesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -73673,7 +74075,7 @@ func (c *InstanceTemplatesInsertCall) Header() http.Header { func (c *InstanceTemplatesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -73903,7 +74305,7 @@ func (c *InstanceTemplatesListCall) Header() http.Header { func (c *InstanceTemplatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -74091,7 +74493,7 @@ func (c *InstanceTemplatesSetIamPolicyCall) Header() http.Header { func (c *InstanceTemplatesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -74243,7 +74645,7 @@ func (c *InstanceTemplatesTestIamPermissionsCall) Header() http.Header { func (c *InstanceTemplatesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -74419,7 +74821,7 @@ func (c *InstancesAddAccessConfigCall) Header() http.Header { func (c *InstancesAddAccessConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -74614,7 +75016,7 @@ func (c *InstancesAddResourcePoliciesCall) Header() http.Header { func (c *InstancesAddResourcePoliciesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -74875,7 +75277,7 @@ func (c *InstancesAggregatedListCall) Header() http.Header { func (c *InstancesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -75101,7 +75503,7 @@ func (c *InstancesAttachDiskCall) Header() http.Header { func (c *InstancesAttachDiskCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -75292,7 +75694,7 @@ func (c *InstancesDeleteCall) Header() http.Header { func (c *InstancesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -75472,7 +75874,7 @@ func (c *InstancesDeleteAccessConfigCall) Header() http.Header { func (c *InstancesDeleteAccessConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -75664,7 +76066,7 @@ func (c *InstancesDetachDiskCall) Header() http.Header { func (c *InstancesDetachDiskCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -75841,7 +76243,7 @@ func (c *InstancesGetCall) Header() http.Header { func (c *InstancesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -76022,7 +76424,7 @@ func (c *InstancesGetGuestAttributesCall) Header() http.Header { func (c *InstancesGetGuestAttributesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -76207,7 +76609,7 @@ func (c *InstancesGetIamPolicyCall) Header() http.Header { func (c *InstancesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -76380,7 +76782,7 @@ func (c *InstancesGetScreenshotCall) Header() http.Header { func (c *InstancesGetScreenshotCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -76578,7 +76980,7 @@ func (c *InstancesGetSerialPortOutputCall) Header() http.Header { func (c *InstancesGetSerialPortOutputCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -76761,7 +77163,7 @@ func (c *InstancesGetShieldedInstanceIdentityCall) Header() http.Header { func (c *InstancesGetShieldedInstanceIdentityCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -76953,7 +77355,7 @@ func (c *InstancesInsertCall) Header() http.Header { func (c *InstancesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -77199,7 +77601,7 @@ func (c *InstancesListCall) Header() http.Header { func (c *InstancesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -77484,7 +77886,7 @@ func (c *InstancesListReferrersCall) Header() http.Header { func (c *InstancesListReferrersCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -77710,7 +78112,7 @@ func (c *InstancesRemoveResourcePoliciesCall) Header() http.Header { func (c *InstancesRemoveResourcePoliciesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -77897,7 +78299,7 @@ func (c *InstancesResetCall) Header() http.Header { func (c *InstancesResetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -78080,7 +78482,7 @@ func (c *InstancesSetDeletionProtectionCall) Header() http.Header { func (c *InstancesSetDeletionProtectionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -78266,7 +78668,7 @@ func (c *InstancesSetDiskAutoDeleteCall) Header() http.Header { func (c *InstancesSetDiskAutoDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -78441,7 +78843,7 @@ func (c *InstancesSetIamPolicyCall) Header() http.Header { func (c *InstancesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -78623,7 +79025,7 @@ func (c *InstancesSetLabelsCall) Header() http.Header { func (c *InstancesSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -78810,7 +79212,7 @@ func (c *InstancesSetMachineResourcesCall) Header() http.Header { func (c *InstancesSetMachineResourcesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -78997,7 +79399,7 @@ func (c *InstancesSetMachineTypeCall) Header() http.Header { func (c *InstancesSetMachineTypeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -79185,7 +79587,7 @@ func (c *InstancesSetMetadataCall) Header() http.Header { func (c *InstancesSetMetadataCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -79374,7 +79776,7 @@ func (c *InstancesSetMinCpuPlatformCall) Header() http.Header { func (c *InstancesSetMinCpuPlatformCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -79564,7 +79966,7 @@ func (c *InstancesSetSchedulingCall) Header() http.Header { func (c *InstancesSetSchedulingCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -79752,7 +80154,7 @@ func (c *InstancesSetServiceAccountCall) Header() http.Header { func (c *InstancesSetServiceAccountCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -79941,7 +80343,7 @@ func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) Header() http.Header { func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -80129,7 +80531,7 @@ func (c *InstancesSetTagsCall) Header() http.Header { func (c *InstancesSetTagsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -80295,7 +80697,7 @@ func (c *InstancesSimulateMaintenanceEventCall) Header() http.Header { func (c *InstancesSimulateMaintenanceEventCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -80468,7 +80870,7 @@ func (c *InstancesStartCall) Header() http.Header { func (c *InstancesStartCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -80648,7 +81050,7 @@ func (c *InstancesStartWithEncryptionKeyCall) Header() http.Header { func (c *InstancesStartWithEncryptionKeyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -80838,7 +81240,7 @@ func (c *InstancesStopCall) Header() http.Header { func (c *InstancesStopCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -80998,7 +81400,7 @@ func (c *InstancesTestIamPermissionsCall) Header() http.Header { func (c *InstancesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -81215,7 +81617,7 @@ func (c *InstancesUpdateCall) Header() http.Header { func (c *InstancesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -81439,7 +81841,7 @@ func (c *InstancesUpdateAccessConfigCall) Header() http.Header { func (c *InstancesUpdateAccessConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -81635,7 +82037,7 @@ func (c *InstancesUpdateDisplayDeviceCall) Header() http.Header { func (c *InstancesUpdateDisplayDeviceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -81823,7 +82225,7 @@ func (c *InstancesUpdateNetworkInterfaceCall) Header() http.Header { func (c *InstancesUpdateNetworkInterfaceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -82019,7 +82421,7 @@ func (c *InstancesUpdateShieldedInstanceConfigCall) Header() http.Header { func (c *InstancesUpdateShieldedInstanceConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -82279,7 +82681,7 @@ func (c *InterconnectAttachmentsAggregatedListCall) Header() http.Header { func (c *InterconnectAttachmentsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -82491,7 +82893,7 @@ func (c *InterconnectAttachmentsDeleteCall) Header() http.Header { func (c *InterconnectAttachmentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -82659,7 +83061,7 @@ func (c *InterconnectAttachmentsGetCall) Header() http.Header { func (c *InterconnectAttachmentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -82842,7 +83244,7 @@ func (c *InterconnectAttachmentsInsertCall) Header() http.Header { func (c *InterconnectAttachmentsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -83087,7 +83489,7 @@ func (c *InterconnectAttachmentsListCall) Header() http.Header { func (c *InterconnectAttachmentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -83306,7 +83708,7 @@ func (c *InterconnectAttachmentsPatchCall) Header() http.Header { func (c *InterconnectAttachmentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -83482,7 +83884,7 @@ func (c *InterconnectLocationsGetCall) Header() http.Header { func (c *InterconnectLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -83711,7 +84113,7 @@ func (c *InterconnectLocationsListCall) Header() http.Header { func (c *InterconnectLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -83915,7 +84317,7 @@ func (c *InterconnectsDeleteCall) Header() http.Header { func (c *InterconnectsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -84073,7 +84475,7 @@ func (c *InterconnectsGetCall) Header() http.Header { func (c *InterconnectsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -84230,7 +84632,7 @@ func (c *InterconnectsGetDiagnosticsCall) Header() http.Header { func (c *InterconnectsGetDiagnosticsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -84396,7 +84798,7 @@ func (c *InterconnectsInsertCall) Header() http.Header { func (c *InterconnectsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -84625,7 +85027,7 @@ func (c *InterconnectsListCall) Header() http.Header { func (c *InterconnectsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -84833,7 +85235,7 @@ func (c *InterconnectsPatchCall) Header() http.Header { func (c *InterconnectsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -85001,7 +85403,7 @@ func (c *LicenseCodesGetCall) Header() http.Header { func (c *LicenseCodesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -85150,7 +85552,7 @@ func (c *LicenseCodesTestIamPermissionsCall) Header() http.Header { func (c *LicenseCodesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -85321,7 +85723,7 @@ func (c *LicensesDeleteCall) Header() http.Header { func (c *LicensesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -85481,7 +85883,7 @@ func (c *LicensesGetCall) Header() http.Header { func (c *LicensesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -85647,7 +86049,7 @@ func (c *LicensesGetIamPolicyCall) Header() http.Header { func (c *LicensesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -85819,7 +86221,7 @@ func (c *LicensesInsertCall) Header() http.Header { func (c *LicensesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -86057,7 +86459,7 @@ func (c *LicensesListCall) Header() http.Header { func (c *LicensesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -86247,7 +86649,7 @@ func (c *LicensesSetIamPolicyCall) Header() http.Header { func (c *LicensesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -86400,7 +86802,7 @@ func (c *LicensesTestIamPermissionsCall) Header() http.Header { func (c *LicensesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -86647,7 +87049,7 @@ func (c *MachineTypesAggregatedListCall) Header() http.Header { func (c *MachineTypesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -86852,7 +87254,7 @@ func (c *MachineTypesGetCall) Header() http.Header { func (c *MachineTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -87093,7 +87495,7 @@ func (c *MachineTypesListCall) Header() http.Header { func (c *MachineTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -87384,7 +87786,7 @@ func (c *NetworkEndpointGroupsAggregatedListCall) Header() http.Header { func (c *NetworkEndpointGroupsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -87599,7 +88001,7 @@ func (c *NetworkEndpointGroupsAttachNetworkEndpointsCall) Header() http.Header { func (c *NetworkEndpointGroupsAttachNetworkEndpointsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -87784,7 +88186,7 @@ func (c *NetworkEndpointGroupsDeleteCall) Header() http.Header { func (c *NetworkEndpointGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -87961,7 +88363,7 @@ func (c *NetworkEndpointGroupsDetachNetworkEndpointsCall) Header() http.Header { func (c *NetworkEndpointGroupsDetachNetworkEndpointsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -88136,7 +88538,7 @@ func (c *NetworkEndpointGroupsGetCall) Header() http.Header { func (c *NetworkEndpointGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -88310,7 +88712,7 @@ func (c *NetworkEndpointGroupsInsertCall) Header() http.Header { func (c *NetworkEndpointGroupsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -88549,7 +88951,7 @@ func (c *NetworkEndpointGroupsListCall) Header() http.Header { func (c *NetworkEndpointGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -88821,7 +89223,7 @@ func (c *NetworkEndpointGroupsListNetworkEndpointsCall) Header() http.Header { func (c *NetworkEndpointGroupsListNetworkEndpointsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -89034,7 +89436,7 @@ func (c *NetworkEndpointGroupsTestIamPermissionsCall) Header() http.Header { func (c *NetworkEndpointGroupsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -89214,7 +89616,7 @@ func (c *NetworksAddPeeringCall) Header() http.Header { func (c *NetworksAddPeeringCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -89388,7 +89790,7 @@ func (c *NetworksDeleteCall) Header() http.Header { func (c *NetworksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -89547,7 +89949,7 @@ func (c *NetworksGetCall) Header() http.Header { func (c *NetworksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -89713,7 +90115,7 @@ func (c *NetworksInsertCall) Header() http.Header { func (c *NetworksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -89943,7 +90345,7 @@ func (c *NetworksListCall) Header() http.Header { func (c *NetworksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -90240,7 +90642,7 @@ func (c *NetworksListPeeringRoutesCall) Header() http.Header { func (c *NetworksListPeeringRoutesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -90480,7 +90882,7 @@ func (c *NetworksPatchCall) Header() http.Header { func (c *NetworksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -90655,7 +91057,7 @@ func (c *NetworksRemovePeeringCall) Header() http.Header { func (c *NetworksRemovePeeringCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -90829,7 +91231,7 @@ func (c *NetworksSwitchToCustomModeCall) Header() http.Header { func (c *NetworksSwitchToCustomModeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -90999,7 +91401,7 @@ func (c *NetworksUpdatePeeringCall) Header() http.Header { func (c *NetworksUpdatePeeringCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -91176,7 +91578,7 @@ func (c *NodeGroupsAddNodesCall) Header() http.Header { func (c *NodeGroupsAddNodesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -91436,7 +91838,7 @@ func (c *NodeGroupsAggregatedListCall) Header() http.Header { func (c *NodeGroupsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -91647,7 +92049,7 @@ func (c *NodeGroupsDeleteCall) Header() http.Header { func (c *NodeGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -91825,7 +92227,7 @@ func (c *NodeGroupsDeleteNodesCall) Header() http.Header { func (c *NodeGroupsDeleteNodesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -92003,7 +92405,7 @@ func (c *NodeGroupsGetCall) Header() http.Header { func (c *NodeGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -92178,7 +92580,7 @@ func (c *NodeGroupsGetIamPolicyCall) Header() http.Header { func (c *NodeGroupsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -92361,7 +92763,7 @@ func (c *NodeGroupsInsertCall) Header() http.Header { func (c *NodeGroupsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -92610,7 +93012,7 @@ func (c *NodeGroupsListCall) Header() http.Header { func (c *NodeGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -92880,7 +93282,7 @@ func (c *NodeGroupsListNodesCall) Header() http.Header { func (c *NodeGroupsListNodesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -93103,7 +93505,7 @@ func (c *NodeGroupsPatchCall) Header() http.Header { func (c *NodeGroupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -93271,7 +93673,7 @@ func (c *NodeGroupsSetIamPolicyCall) Header() http.Header { func (c *NodeGroupsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -93452,7 +93854,7 @@ func (c *NodeGroupsSetNodeTemplateCall) Header() http.Header { func (c *NodeGroupsSetNodeTemplateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -93620,7 +94022,7 @@ func (c *NodeGroupsTestIamPermissionsCall) Header() http.Header { func (c *NodeGroupsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -93875,7 +94277,7 @@ func (c *NodeTemplatesAggregatedListCall) Header() http.Header { func (c *NodeTemplatesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -94086,7 +94488,7 @@ func (c *NodeTemplatesDeleteCall) Header() http.Header { func (c *NodeTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -94255,7 +94657,7 @@ func (c *NodeTemplatesGetCall) Header() http.Header { func (c *NodeTemplatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -94430,7 +94832,7 @@ func (c *NodeTemplatesGetIamPolicyCall) Header() http.Header { func (c *NodeTemplatesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -94612,7 +95014,7 @@ func (c *NodeTemplatesInsertCall) Header() http.Header { func (c *NodeTemplatesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -94852,7 +95254,7 @@ func (c *NodeTemplatesListCall) Header() http.Header { func (c *NodeTemplatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -95051,7 +95453,7 @@ func (c *NodeTemplatesSetIamPolicyCall) Header() http.Header { func (c *NodeTemplatesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -95214,7 +95616,7 @@ func (c *NodeTemplatesTestIamPermissionsCall) Header() http.Header { func (c *NodeTemplatesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -95469,7 +95871,7 @@ func (c *NodeTypesAggregatedListCall) Header() http.Header { func (c *NodeTypesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -95673,7 +96075,7 @@ func (c *NodeTypesGetCall) Header() http.Header { func (c *NodeTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -95913,7 +96315,7 @@ func (c *NodeTypesListCall) Header() http.Header { func (c *NodeTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -96203,7 +96605,7 @@ func (c *PacketMirroringsAggregatedListCall) Header() http.Header { func (c *PacketMirroringsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -96414,7 +96816,7 @@ func (c *PacketMirroringsDeleteCall) Header() http.Header { func (c *PacketMirroringsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -96582,7 +96984,7 @@ func (c *PacketMirroringsGetCall) Header() http.Header { func (c *PacketMirroringsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -96758,7 +97160,7 @@ func (c *PacketMirroringsInsertCall) Header() http.Header { func (c *PacketMirroringsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -96998,7 +97400,7 @@ func (c *PacketMirroringsListCall) Header() http.Header { func (c *PacketMirroringsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -97217,7 +97619,7 @@ func (c *PacketMirroringsPatchCall) Header() http.Header { func (c *PacketMirroringsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -97385,7 +97787,7 @@ func (c *PacketMirroringsTestIamPermissionsCall) Header() http.Header { func (c *PacketMirroringsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -97561,7 +97963,7 @@ func (c *ProjectsDisableXpnHostCall) Header() http.Header { func (c *ProjectsDisableXpnHostCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -97718,7 +98120,7 @@ func (c *ProjectsDisableXpnResourceCall) Header() http.Header { func (c *ProjectsDisableXpnResourceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -97880,7 +98282,7 @@ func (c *ProjectsEnableXpnHostCall) Header() http.Header { func (c *ProjectsEnableXpnHostCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -98038,7 +98440,7 @@ func (c *ProjectsEnableXpnResourceCall) Header() http.Header { func (c *ProjectsEnableXpnResourceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -98193,7 +98595,7 @@ func (c *ProjectsGetCall) Header() http.Header { func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -98339,7 +98741,7 @@ func (c *ProjectsGetXpnHostCall) Header() http.Header { func (c *ProjectsGetXpnHostCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -98558,7 +98960,7 @@ func (c *ProjectsGetXpnResourcesCall) Header() http.Header { func (c *ProjectsGetXpnResourcesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -98817,7 +99219,7 @@ func (c *ProjectsListXpnHostsCall) Header() http.Header { func (c *ProjectsListXpnHostsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -99025,7 +99427,7 @@ func (c *ProjectsMoveDiskCall) Header() http.Header { func (c *ProjectsMoveDiskCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -99190,7 +99592,7 @@ func (c *ProjectsMoveInstanceCall) Header() http.Header { func (c *ProjectsMoveInstanceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -99356,7 +99758,7 @@ func (c *ProjectsSetCommonInstanceMetadataCall) Header() http.Header { func (c *ProjectsSetCommonInstanceMetadataCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -99523,7 +99925,7 @@ func (c *ProjectsSetDefaultNetworkTierCall) Header() http.Header { func (c *ProjectsSetDefaultNetworkTierCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -99691,7 +100093,7 @@ func (c *ProjectsSetUsageExportBucketCall) Header() http.Header { func (c *ProjectsSetUsageExportBucketCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -99860,7 +100262,7 @@ func (c *RegionAutoscalersDeleteCall) Header() http.Header { func (c *RegionAutoscalersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -100028,7 +100430,7 @@ func (c *RegionAutoscalersGetCall) Header() http.Header { func (c *RegionAutoscalersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -100204,7 +100606,7 @@ func (c *RegionAutoscalersInsertCall) Header() http.Header { func (c *RegionAutoscalersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -100444,7 +100846,7 @@ func (c *RegionAutoscalersListCall) Header() http.Header { func (c *RegionAutoscalersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -100668,7 +101070,7 @@ func (c *RegionAutoscalersPatchCall) Header() http.Header { func (c *RegionAutoscalersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -100857,7 +101259,7 @@ func (c *RegionAutoscalersUpdateCall) Header() http.Header { func (c *RegionAutoscalersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -101038,7 +101440,7 @@ func (c *RegionBackendServicesDeleteCall) Header() http.Header { func (c *RegionBackendServicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -101206,7 +101608,7 @@ func (c *RegionBackendServicesGetCall) Header() http.Header { func (c *RegionBackendServicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -101365,7 +101767,7 @@ func (c *RegionBackendServicesGetHealthCall) Header() http.Header { func (c *RegionBackendServicesGetHealthCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -101546,7 +101948,7 @@ func (c *RegionBackendServicesInsertCall) Header() http.Header { func (c *RegionBackendServicesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -101786,7 +102188,7 @@ func (c *RegionBackendServicesListCall) Header() http.Header { func (c *RegionBackendServicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -102006,7 +102408,7 @@ func (c *RegionBackendServicesPatchCall) Header() http.Header { func (c *RegionBackendServicesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -102194,7 +102596,7 @@ func (c *RegionBackendServicesUpdateCall) Header() http.Header { func (c *RegionBackendServicesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -102453,7 +102855,7 @@ func (c *RegionCommitmentsAggregatedListCall) Header() http.Header { func (c *RegionCommitmentsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -102657,7 +103059,7 @@ func (c *RegionCommitmentsGetCall) Header() http.Header { func (c *RegionCommitmentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -102833,7 +103235,7 @@ func (c *RegionCommitmentsInsertCall) Header() http.Header { func (c *RegionCommitmentsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -103073,7 +103475,7 @@ func (c *RegionCommitmentsListCall) Header() http.Header { func (c *RegionCommitmentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -103281,7 +103683,7 @@ func (c *RegionDiskTypesGetCall) Header() http.Header { func (c *RegionDiskTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -103521,7 +103923,7 @@ func (c *RegionDiskTypesListCall) Header() http.Header { func (c *RegionDiskTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -103740,7 +104142,7 @@ func (c *RegionDisksAddResourcePoliciesCall) Header() http.Header { func (c *RegionDisksAddResourcePoliciesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -103926,7 +104328,7 @@ func (c *RegionDisksCreateSnapshotCall) Header() http.Header { func (c *RegionDisksCreateSnapshotCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -104113,7 +104515,7 @@ func (c *RegionDisksDeleteCall) Header() http.Header { func (c *RegionDisksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -104280,7 +104682,7 @@ func (c *RegionDisksGetCall) Header() http.Header { func (c *RegionDisksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -104455,7 +104857,7 @@ func (c *RegionDisksGetIamPolicyCall) Header() http.Header { func (c *RegionDisksGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -104644,7 +105046,7 @@ func (c *RegionDisksInsertCall) Header() http.Header { func (c *RegionDisksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -104889,7 +105291,7 @@ func (c *RegionDisksListCall) Header() http.Header { func (c *RegionDisksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -105107,7 +105509,7 @@ func (c *RegionDisksRemoveResourcePoliciesCall) Header() http.Header { func (c *RegionDisksRemoveResourcePoliciesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -105293,7 +105695,7 @@ func (c *RegionDisksResizeCall) Header() http.Header { func (c *RegionDisksResizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -105461,7 +105863,7 @@ func (c *RegionDisksSetIamPolicyCall) Header() http.Header { func (c *RegionDisksSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -105642,7 +106044,7 @@ func (c *RegionDisksSetLabelsCall) Header() http.Header { func (c *RegionDisksSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -105810,7 +106212,7 @@ func (c *RegionDisksTestIamPermissionsCall) Header() http.Header { func (c *RegionDisksTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -105990,7 +106392,7 @@ func (c *RegionHealthCheckServicesDeleteCall) Header() http.Header { func (c *RegionHealthCheckServicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -106157,7 +106559,7 @@ func (c *RegionHealthCheckServicesGetCall) Header() http.Header { func (c *RegionHealthCheckServicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -106332,7 +106734,7 @@ func (c *RegionHealthCheckServicesInsertCall) Header() http.Header { func (c *RegionHealthCheckServicesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -106572,7 +106974,7 @@ func (c *RegionHealthCheckServicesListCall) Header() http.Header { func (c *RegionHealthCheckServicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -106791,7 +107193,7 @@ func (c *RegionHealthCheckServicesPatchCall) Header() http.Header { func (c *RegionHealthCheckServicesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -106974,7 +107376,7 @@ func (c *RegionHealthChecksDeleteCall) Header() http.Header { func (c *RegionHealthChecksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -107143,7 +107545,7 @@ func (c *RegionHealthChecksGetCall) Header() http.Header { func (c *RegionHealthChecksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -107319,7 +107721,7 @@ func (c *RegionHealthChecksInsertCall) Header() http.Header { func (c *RegionHealthChecksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -107559,7 +107961,7 @@ func (c *RegionHealthChecksListCall) Header() http.Header { func (c *RegionHealthChecksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -107778,7 +108180,7 @@ func (c *RegionHealthChecksPatchCall) Header() http.Header { func (c *RegionHealthChecksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -107965,7 +108367,7 @@ func (c *RegionHealthChecksUpdateCall) Header() http.Header { func (c *RegionHealthChecksUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -108167,7 +108569,7 @@ func (c *RegionInstanceGroupManagersAbandonInstancesCall) Header() http.Header { func (c *RegionInstanceGroupManagersAbandonInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -108333,7 +108735,7 @@ func (c *RegionInstanceGroupManagersApplyUpdatesToInstancesCall) Header() http.H func (c *RegionInstanceGroupManagersApplyUpdatesToInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -108516,7 +108918,7 @@ func (c *RegionInstanceGroupManagersCreateInstancesCall) Header() http.Header { func (c *RegionInstanceGroupManagersCreateInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -108699,7 +109101,7 @@ func (c *RegionInstanceGroupManagersDeleteCall) Header() http.Header { func (c *RegionInstanceGroupManagersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -108891,7 +109293,7 @@ func (c *RegionInstanceGroupManagersDeleteInstancesCall) Header() http.Header { func (c *RegionInstanceGroupManagersDeleteInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -109057,7 +109459,7 @@ func (c *RegionInstanceGroupManagersDeletePerInstanceConfigsCall) Header() http. func (c *RegionInstanceGroupManagersDeletePerInstanceConfigsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -109227,7 +109629,7 @@ func (c *RegionInstanceGroupManagersGetCall) Header() http.Header { func (c *RegionInstanceGroupManagersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -109408,7 +109810,7 @@ func (c *RegionInstanceGroupManagersInsertCall) Header() http.Header { func (c *RegionInstanceGroupManagersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -109647,7 +110049,7 @@ func (c *RegionInstanceGroupManagersListCall) Header() http.Header { func (c *RegionInstanceGroupManagersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -109929,7 +110331,7 @@ func (c *RegionInstanceGroupManagersListErrorsCall) Header() http.Header { func (c *RegionInstanceGroupManagersListErrorsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -110211,7 +110613,7 @@ func (c *RegionInstanceGroupManagersListManagedInstancesCall) Header() http.Head func (c *RegionInstanceGroupManagersListManagedInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -110489,7 +110891,7 @@ func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) Header() http.He func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -110718,7 +111120,7 @@ func (c *RegionInstanceGroupManagersPatchCall) Header() http.Header { func (c *RegionInstanceGroupManagersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -110905,7 +111307,7 @@ func (c *RegionInstanceGroupManagersPatchPerInstanceConfigsCall) Header() http.H func (c *RegionInstanceGroupManagersPatchPerInstanceConfigsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -111103,7 +111505,7 @@ func (c *RegionInstanceGroupManagersRecreateInstancesCall) Header() http.Header func (c *RegionInstanceGroupManagersRecreateInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -111298,7 +111700,7 @@ func (c *RegionInstanceGroupManagersResizeCall) Header() http.Header { func (c *RegionInstanceGroupManagersResizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -111485,7 +111887,7 @@ func (c *RegionInstanceGroupManagersSetInstanceTemplateCall) Header() http.Heade func (c *RegionInstanceGroupManagersSetInstanceTemplateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -111671,7 +112073,7 @@ func (c *RegionInstanceGroupManagersSetTargetPoolsCall) Header() http.Header { func (c *RegionInstanceGroupManagersSetTargetPoolsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -111858,7 +112260,7 @@ func (c *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) Header() http. func (c *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -112032,7 +112434,7 @@ func (c *RegionInstanceGroupsGetCall) Header() http.Header { func (c *RegionInstanceGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -112270,7 +112672,7 @@ func (c *RegionInstanceGroupsListCall) Header() http.Header { func (c *RegionInstanceGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -112545,7 +112947,7 @@ func (c *RegionInstanceGroupsListInstancesCall) Header() http.Header { func (c *RegionInstanceGroupsListInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -112776,7 +113178,7 @@ func (c *RegionInstanceGroupsSetNamedPortsCall) Header() http.Header { func (c *RegionInstanceGroupsSetNamedPortsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -112960,7 +113362,7 @@ func (c *RegionNetworkEndpointGroupsDeleteCall) Header() http.Header { func (c *RegionNetworkEndpointGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -113127,7 +113529,7 @@ func (c *RegionNetworkEndpointGroupsGetCall) Header() http.Header { func (c *RegionNetworkEndpointGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -113301,7 +113703,7 @@ func (c *RegionNetworkEndpointGroupsInsertCall) Header() http.Header { func (c *RegionNetworkEndpointGroupsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -113540,7 +113942,7 @@ func (c *RegionNetworkEndpointGroupsListCall) Header() http.Header { func (c *RegionNetworkEndpointGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -113755,7 +114157,7 @@ func (c *RegionNotificationEndpointsDeleteCall) Header() http.Header { func (c *RegionNotificationEndpointsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -113924,7 +114326,7 @@ func (c *RegionNotificationEndpointsGetCall) Header() http.Header { func (c *RegionNotificationEndpointsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -114100,7 +114502,7 @@ func (c *RegionNotificationEndpointsInsertCall) Header() http.Header { func (c *RegionNotificationEndpointsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -114340,7 +114742,7 @@ func (c *RegionNotificationEndpointsListCall) Header() http.Header { func (c *RegionNotificationEndpointsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -114537,7 +114939,7 @@ func (c *RegionOperationsDeleteCall) Header() http.Header { func (c *RegionOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -114673,7 +115075,7 @@ func (c *RegionOperationsGetCall) Header() http.Header { func (c *RegionOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -114914,7 +115316,7 @@ func (c *RegionOperationsListCall) Header() http.Header { func (c *RegionOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -115123,7 +115525,7 @@ func (c *RegionOperationsWaitCall) Header() http.Header { func (c *RegionOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -115295,7 +115697,7 @@ func (c *RegionSslCertificatesDeleteCall) Header() http.Header { func (c *RegionSslCertificatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -115465,7 +115867,7 @@ func (c *RegionSslCertificatesGetCall) Header() http.Header { func (c *RegionSslCertificatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -115641,7 +116043,7 @@ func (c *RegionSslCertificatesInsertCall) Header() http.Header { func (c *RegionSslCertificatesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -115881,7 +116283,7 @@ func (c *RegionSslCertificatesListCall) Header() http.Header { func (c *RegionSslCertificatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -116096,7 +116498,7 @@ func (c *RegionTargetHttpProxiesDeleteCall) Header() http.Header { func (c *RegionTargetHttpProxiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -116266,7 +116668,7 @@ func (c *RegionTargetHttpProxiesGetCall) Header() http.Header { func (c *RegionTargetHttpProxiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -116442,7 +116844,7 @@ func (c *RegionTargetHttpProxiesInsertCall) Header() http.Header { func (c *RegionTargetHttpProxiesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -116682,7 +117084,7 @@ func (c *RegionTargetHttpProxiesListCall) Header() http.Header { func (c *RegionTargetHttpProxiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -116899,7 +117301,7 @@ func (c *RegionTargetHttpProxiesSetUrlMapCall) Header() http.Header { func (c *RegionTargetHttpProxiesSetUrlMapCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -117083,7 +117485,7 @@ func (c *RegionTargetHttpsProxiesDeleteCall) Header() http.Header { func (c *RegionTargetHttpsProxiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -117253,7 +117655,7 @@ func (c *RegionTargetHttpsProxiesGetCall) Header() http.Header { func (c *RegionTargetHttpsProxiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -117429,7 +117831,7 @@ func (c *RegionTargetHttpsProxiesInsertCall) Header() http.Header { func (c *RegionTargetHttpsProxiesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -117669,7 +118071,7 @@ func (c *RegionTargetHttpsProxiesListCall) Header() http.Header { func (c *RegionTargetHttpsProxiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -117886,7 +118288,7 @@ func (c *RegionTargetHttpsProxiesSetSslCertificatesCall) Header() http.Header { func (c *RegionTargetHttpsProxiesSetSslCertificatesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -118072,7 +118474,7 @@ func (c *RegionTargetHttpsProxiesSetUrlMapCall) Header() http.Header { func (c *RegionTargetHttpsProxiesSetUrlMapCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -118244,7 +118646,7 @@ func (c *RegionUrlMapsDeleteCall) Header() http.Header { func (c *RegionUrlMapsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -118413,7 +118815,7 @@ func (c *RegionUrlMapsGetCall) Header() http.Header { func (c *RegionUrlMapsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -118577,7 +118979,7 @@ func (c *RegionUrlMapsInsertCall) Header() http.Header { func (c *RegionUrlMapsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -118817,7 +119219,7 @@ func (c *RegionUrlMapsListCall) Header() http.Header { func (c *RegionUrlMapsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -119024,7 +119426,7 @@ func (c *RegionUrlMapsPatchCall) Header() http.Header { func (c *RegionUrlMapsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -119199,7 +119601,7 @@ func (c *RegionUrlMapsUpdateCall) Header() http.Header { func (c *RegionUrlMapsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -119368,7 +119770,7 @@ func (c *RegionUrlMapsValidateCall) Header() http.Header { func (c *RegionUrlMapsValidateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -119539,7 +119941,7 @@ func (c *RegionsGetCall) Header() http.Header { func (c *RegionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -119769,7 +120171,7 @@ func (c *RegionsListCall) Header() http.Header { func (c *RegionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -120050,7 +120452,7 @@ func (c *ReservationsAggregatedListCall) Header() http.Header { func (c *ReservationsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -120261,7 +120663,7 @@ func (c *ReservationsDeleteCall) Header() http.Header { func (c *ReservationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -120429,7 +120831,7 @@ func (c *ReservationsGetCall) Header() http.Header { func (c *ReservationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -120604,7 +121006,7 @@ func (c *ReservationsGetIamPolicyCall) Header() http.Header { func (c *ReservationsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -120786,7 +121188,7 @@ func (c *ReservationsInsertCall) Header() http.Header { func (c *ReservationsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -121026,7 +121428,7 @@ func (c *ReservationsListCall) Header() http.Header { func (c *ReservationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -121245,7 +121647,7 @@ func (c *ReservationsResizeCall) Header() http.Header { func (c *ReservationsResizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -121413,7 +121815,7 @@ func (c *ReservationsSetIamPolicyCall) Header() http.Header { func (c *ReservationsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -121576,7 +121978,7 @@ func (c *ReservationsTestIamPermissionsCall) Header() http.Header { func (c *ReservationsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -121831,7 +122233,7 @@ func (c *ResourcePoliciesAggregatedListCall) Header() http.Header { func (c *ResourcePoliciesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -122042,7 +122444,7 @@ func (c *ResourcePoliciesDeleteCall) Header() http.Header { func (c *ResourcePoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -122210,7 +122612,7 @@ func (c *ResourcePoliciesGetCall) Header() http.Header { func (c *ResourcePoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -122385,7 +122787,7 @@ func (c *ResourcePoliciesGetIamPolicyCall) Header() http.Header { func (c *ResourcePoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -122566,7 +122968,7 @@ func (c *ResourcePoliciesInsertCall) Header() http.Header { func (c *ResourcePoliciesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -122806,7 +123208,7 @@ func (c *ResourcePoliciesListCall) Header() http.Header { func (c *ResourcePoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -123005,7 +123407,7 @@ func (c *ResourcePoliciesSetIamPolicyCall) Header() http.Header { func (c *ResourcePoliciesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -123168,7 +123570,7 @@ func (c *ResourcePoliciesTestIamPermissionsCall) Header() http.Header { func (c *ResourcePoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -123423,7 +123825,7 @@ func (c *RoutersAggregatedListCall) Header() http.Header { func (c *RoutersAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -123634,7 +124036,7 @@ func (c *RoutersDeleteCall) Header() http.Header { func (c *RoutersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -123803,7 +124205,7 @@ func (c *RoutersGetCall) Header() http.Header { func (c *RoutersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -124045,7 +124447,7 @@ func (c *RoutersGetNatMappingInfoCall) Header() http.Header { func (c *RoutersGetNatMappingInfoCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -124262,7 +124664,7 @@ func (c *RoutersGetRouterStatusCall) Header() http.Header { func (c *RoutersGetRouterStatusCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -124438,7 +124840,7 @@ func (c *RoutersInsertCall) Header() http.Header { func (c *RoutersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -124678,7 +125080,7 @@ func (c *RoutersListCall) Header() http.Header { func (c *RoutersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -124897,7 +125299,7 @@ func (c *RoutersPatchCall) Header() http.Header { func (c *RoutersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -125066,7 +125468,7 @@ func (c *RoutersPreviewCall) Header() http.Header { func (c *RoutersPreviewCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -125252,7 +125654,7 @@ func (c *RoutersUpdateCall) Header() http.Header { func (c *RoutersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -125435,7 +125837,7 @@ func (c *RoutesDeleteCall) Header() http.Header { func (c *RoutesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -125594,7 +125996,7 @@ func (c *RoutesGetCall) Header() http.Header { func (c *RoutesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -125760,7 +126162,7 @@ func (c *RoutesInsertCall) Header() http.Header { func (c *RoutesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -125990,7 +126392,7 @@ func (c *RoutesListCall) Header() http.Header { func (c *RoutesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -126177,7 +126579,7 @@ func (c *SecurityPoliciesAddRuleCall) Header() http.Header { func (c *SecurityPoliciesAddRuleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -126345,7 +126747,7 @@ func (c *SecurityPoliciesDeleteCall) Header() http.Header { func (c *SecurityPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -126503,7 +126905,7 @@ func (c *SecurityPoliciesGetCall) Header() http.Header { func (c *SecurityPoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -126666,7 +127068,7 @@ func (c *SecurityPoliciesGetRuleCall) Header() http.Header { func (c *SecurityPoliciesGetRuleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -126837,7 +127239,7 @@ func (c *SecurityPoliciesInsertCall) Header() http.Header { func (c *SecurityPoliciesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -127066,7 +127468,7 @@ func (c *SecurityPoliciesListCall) Header() http.Header { func (c *SecurityPoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -127335,7 +127737,7 @@ func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) Header() http.Head func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -127523,7 +127925,7 @@ func (c *SecurityPoliciesPatchCall) Header() http.Header { func (c *SecurityPoliciesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -127686,7 +128088,7 @@ func (c *SecurityPoliciesPatchRuleCall) Header() http.Header { func (c *SecurityPoliciesPatchRuleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -127848,7 +128250,7 @@ func (c *SecurityPoliciesRemoveRuleCall) Header() http.Header { func (c *SecurityPoliciesRemoveRuleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -128021,7 +128423,7 @@ func (c *SnapshotsDeleteCall) Header() http.Header { func (c *SnapshotsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -128180,7 +128582,7 @@ func (c *SnapshotsGetCall) Header() http.Header { func (c *SnapshotsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -128344,7 +128746,7 @@ func (c *SnapshotsGetIamPolicyCall) Header() http.Header { func (c *SnapshotsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -128580,7 +128982,7 @@ func (c *SnapshotsListCall) Header() http.Header { func (c *SnapshotsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -128768,7 +129170,7 @@ func (c *SnapshotsSetIamPolicyCall) Header() http.Header { func (c *SnapshotsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -128920,7 +129322,7 @@ func (c *SnapshotsSetLabelsCall) Header() http.Header { func (c *SnapshotsSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -129072,7 +129474,7 @@ func (c *SnapshotsTestIamPermissionsCall) Header() http.Header { func (c *SnapshotsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -129319,7 +129721,7 @@ func (c *SslCertificatesAggregatedListCall) Header() http.Header { func (c *SslCertificatesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -129528,7 +129930,7 @@ func (c *SslCertificatesDeleteCall) Header() http.Header { func (c *SslCertificatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -129686,7 +130088,7 @@ func (c *SslCertificatesGetCall) Header() http.Header { func (c *SslCertificatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -129851,7 +130253,7 @@ func (c *SslCertificatesInsertCall) Header() http.Header { func (c *SslCertificatesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -130080,7 +130482,7 @@ func (c *SslCertificatesListCall) Header() http.Header { func (c *SslCertificatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -130286,7 +130688,7 @@ func (c *SslPoliciesDeleteCall) Header() http.Header { func (c *SslPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -130443,7 +130845,7 @@ func (c *SslPoliciesGetCall) Header() http.Header { func (c *SslPoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -130607,7 +131009,7 @@ func (c *SslPoliciesInsertCall) Header() http.Header { func (c *SslPoliciesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -130836,7 +131238,7 @@ func (c *SslPoliciesListCall) Header() http.Header { func (c *SslPoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -131105,7 +131507,7 @@ func (c *SslPoliciesListAvailableFeaturesCall) Header() http.Header { func (c *SslPoliciesListAvailableFeaturesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -131293,7 +131695,7 @@ func (c *SslPoliciesPatchCall) Header() http.Header { func (c *SslPoliciesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -131542,7 +131944,7 @@ func (c *SubnetworksAggregatedListCall) Header() http.Header { func (c *SubnetworksAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -131753,7 +132155,7 @@ func (c *SubnetworksDeleteCall) Header() http.Header { func (c *SubnetworksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -131932,7 +132334,7 @@ func (c *SubnetworksExpandIpCidrRangeCall) Header() http.Header { func (c *SubnetworksExpandIpCidrRangeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -132109,7 +132511,7 @@ func (c *SubnetworksGetCall) Header() http.Header { func (c *SubnetworksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -132284,7 +132686,7 @@ func (c *SubnetworksGetIamPolicyCall) Header() http.Header { func (c *SubnetworksGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -132466,7 +132868,7 @@ func (c *SubnetworksInsertCall) Header() http.Header { func (c *SubnetworksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -132706,7 +133108,7 @@ func (c *SubnetworksListCall) Header() http.Header { func (c *SubnetworksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -132984,7 +133386,7 @@ func (c *SubnetworksListUsableCall) Header() http.Header { func (c *SubnetworksListUsableCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -133210,7 +133612,7 @@ func (c *SubnetworksPatchCall) Header() http.Header { func (c *SubnetworksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -133384,7 +133786,7 @@ func (c *SubnetworksSetIamPolicyCall) Header() http.Header { func (c *SubnetworksSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -133567,7 +133969,7 @@ func (c *SubnetworksSetPrivateIpGoogleAccessCall) Header() http.Header { func (c *SubnetworksSetPrivateIpGoogleAccessCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -133735,7 +134137,7 @@ func (c *SubnetworksTestIamPermissionsCall) Header() http.Header { func (c *SubnetworksTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -133913,7 +134315,7 @@ func (c *TargetGrpcProxiesDeleteCall) Header() http.Header { func (c *TargetGrpcProxiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -134071,7 +134473,7 @@ func (c *TargetGrpcProxiesGetCall) Header() http.Header { func (c *TargetGrpcProxiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -134236,7 +134638,7 @@ func (c *TargetGrpcProxiesInsertCall) Header() http.Header { func (c *TargetGrpcProxiesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -134464,7 +134866,7 @@ func (c *TargetGrpcProxiesListCall) Header() http.Header { func (c *TargetGrpcProxiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -134672,7 +135074,7 @@ func (c *TargetGrpcProxiesPatchCall) Header() http.Header { func (c *TargetGrpcProxiesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -134923,7 +135325,7 @@ func (c *TargetHttpProxiesAggregatedListCall) Header() http.Header { func (c *TargetHttpProxiesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -135133,7 +135535,7 @@ func (c *TargetHttpProxiesDeleteCall) Header() http.Header { func (c *TargetHttpProxiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -135292,7 +135694,7 @@ func (c *TargetHttpProxiesGetCall) Header() http.Header { func (c *TargetHttpProxiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -135458,7 +135860,7 @@ func (c *TargetHttpProxiesInsertCall) Header() http.Header { func (c *TargetHttpProxiesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -135688,7 +136090,7 @@ func (c *TargetHttpProxiesListCall) Header() http.Header { func (c *TargetHttpProxiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -135897,7 +136299,7 @@ func (c *TargetHttpProxiesPatchCall) Header() http.Header { func (c *TargetHttpProxiesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -136073,7 +136475,7 @@ func (c *TargetHttpProxiesSetUrlMapCall) Header() http.Header { func (c *TargetHttpProxiesSetUrlMapCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -136324,7 +136726,7 @@ func (c *TargetHttpsProxiesAggregatedListCall) Header() http.Header { func (c *TargetHttpsProxiesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -136533,7 +136935,7 @@ func (c *TargetHttpsProxiesDeleteCall) Header() http.Header { func (c *TargetHttpsProxiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -136691,7 +137093,7 @@ func (c *TargetHttpsProxiesGetCall) Header() http.Header { func (c *TargetHttpsProxiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -136856,7 +137258,7 @@ func (c *TargetHttpsProxiesInsertCall) Header() http.Header { func (c *TargetHttpsProxiesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -137085,7 +137487,7 @@ func (c *TargetHttpsProxiesListCall) Header() http.Header { func (c *TargetHttpsProxiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -137291,7 +137693,7 @@ func (c *TargetHttpsProxiesSetQuicOverrideCall) Header() http.Header { func (c *TargetHttpsProxiesSetQuicOverrideCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -137465,7 +137867,7 @@ func (c *TargetHttpsProxiesSetSslCertificatesCall) Header() http.Header { func (c *TargetHttpsProxiesSetSslCertificatesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -137644,7 +138046,7 @@ func (c *TargetHttpsProxiesSetSslPolicyCall) Header() http.Header { func (c *TargetHttpsProxiesSetSslPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -137818,7 +138220,7 @@ func (c *TargetHttpsProxiesSetUrlMapCall) Header() http.Header { func (c *TargetHttpsProxiesSetUrlMapCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -138069,7 +138471,7 @@ func (c *TargetInstancesAggregatedListCall) Header() http.Header { func (c *TargetInstancesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -138281,7 +138683,7 @@ func (c *TargetInstancesDeleteCall) Header() http.Header { func (c *TargetInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -138451,7 +138853,7 @@ func (c *TargetInstancesGetCall) Header() http.Header { func (c *TargetInstancesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -138628,7 +139030,7 @@ func (c *TargetInstancesInsertCall) Header() http.Header { func (c *TargetInstancesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -138869,7 +139271,7 @@ func (c *TargetInstancesListCall) Header() http.Header { func (c *TargetInstancesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -139087,7 +139489,7 @@ func (c *TargetPoolsAddHealthCheckCall) Header() http.Header { func (c *TargetPoolsAddHealthCheckCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -139274,7 +139676,7 @@ func (c *TargetPoolsAddInstanceCall) Header() http.Header { func (c *TargetPoolsAddInstanceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -139534,7 +139936,7 @@ func (c *TargetPoolsAggregatedListCall) Header() http.Header { func (c *TargetPoolsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -139746,7 +140148,7 @@ func (c *TargetPoolsDeleteCall) Header() http.Header { func (c *TargetPoolsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -139916,7 +140318,7 @@ func (c *TargetPoolsGetCall) Header() http.Header { func (c *TargetPoolsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -140076,7 +140478,7 @@ func (c *TargetPoolsGetHealthCall) Header() http.Header { func (c *TargetPoolsGetHealthCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -140258,7 +140660,7 @@ func (c *TargetPoolsInsertCall) Header() http.Header { func (c *TargetPoolsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -140499,7 +140901,7 @@ func (c *TargetPoolsListCall) Header() http.Header { func (c *TargetPoolsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -140717,7 +141119,7 @@ func (c *TargetPoolsRemoveHealthCheckCall) Header() http.Header { func (c *TargetPoolsRemoveHealthCheckCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -140904,7 +141306,7 @@ func (c *TargetPoolsRemoveInstanceCall) Header() http.Header { func (c *TargetPoolsRemoveInstanceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -141098,7 +141500,7 @@ func (c *TargetPoolsSetBackupCall) Header() http.Header { func (c *TargetPoolsSetBackupCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -141286,7 +141688,7 @@ func (c *TargetSslProxiesDeleteCall) Header() http.Header { func (c *TargetSslProxiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -141444,7 +141846,7 @@ func (c *TargetSslProxiesGetCall) Header() http.Header { func (c *TargetSslProxiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -141609,7 +142011,7 @@ func (c *TargetSslProxiesInsertCall) Header() http.Header { func (c *TargetSslProxiesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -141838,7 +142240,7 @@ func (c *TargetSslProxiesListCall) Header() http.Header { func (c *TargetSslProxiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -142044,7 +142446,7 @@ func (c *TargetSslProxiesSetBackendServiceCall) Header() http.Header { func (c *TargetSslProxiesSetBackendServiceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -142219,7 +142621,7 @@ func (c *TargetSslProxiesSetProxyHeaderCall) Header() http.Header { func (c *TargetSslProxiesSetProxyHeaderCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -142394,7 +142796,7 @@ func (c *TargetSslProxiesSetSslCertificatesCall) Header() http.Header { func (c *TargetSslProxiesSetSslCertificatesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -142572,7 +142974,7 @@ func (c *TargetSslProxiesSetSslPolicyCall) Header() http.Header { func (c *TargetSslProxiesSetSslPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -142744,7 +143146,7 @@ func (c *TargetTcpProxiesDeleteCall) Header() http.Header { func (c *TargetTcpProxiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -142902,7 +143304,7 @@ func (c *TargetTcpProxiesGetCall) Header() http.Header { func (c *TargetTcpProxiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -143067,7 +143469,7 @@ func (c *TargetTcpProxiesInsertCall) Header() http.Header { func (c *TargetTcpProxiesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -143296,7 +143698,7 @@ func (c *TargetTcpProxiesListCall) Header() http.Header { func (c *TargetTcpProxiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -143502,7 +143904,7 @@ func (c *TargetTcpProxiesSetBackendServiceCall) Header() http.Header { func (c *TargetTcpProxiesSetBackendServiceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -143677,7 +144079,7 @@ func (c *TargetTcpProxiesSetProxyHeaderCall) Header() http.Header { func (c *TargetTcpProxiesSetProxyHeaderCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -143927,7 +144329,7 @@ func (c *TargetVpnGatewaysAggregatedListCall) Header() http.Header { func (c *TargetVpnGatewaysAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -144138,7 +144540,7 @@ func (c *TargetVpnGatewaysDeleteCall) Header() http.Header { func (c *TargetVpnGatewaysDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -144307,7 +144709,7 @@ func (c *TargetVpnGatewaysGetCall) Header() http.Header { func (c *TargetVpnGatewaysGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -144483,7 +144885,7 @@ func (c *TargetVpnGatewaysInsertCall) Header() http.Header { func (c *TargetVpnGatewaysInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -144723,7 +145125,7 @@ func (c *TargetVpnGatewaysListCall) Header() http.Header { func (c *TargetVpnGatewaysListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -145014,7 +145416,7 @@ func (c *UrlMapsAggregatedListCall) Header() http.Header { func (c *UrlMapsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -145224,7 +145626,7 @@ func (c *UrlMapsDeleteCall) Header() http.Header { func (c *UrlMapsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -145383,7 +145785,7 @@ func (c *UrlMapsGetCall) Header() http.Header { func (c *UrlMapsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -145549,7 +145951,7 @@ func (c *UrlMapsInsertCall) Header() http.Header { func (c *UrlMapsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -145662,6 +146064,9 @@ type UrlMapsInvalidateCacheCall struct { // InvalidateCache: Initiates a cache invalidation operation, // invalidating the specified path, scoped to the specified UrlMap. +// +// For more information, see [Invalidating cached +// content](/cdn/docs/invalidating-cached-content). func (r *UrlMapsService) InvalidateCache(project string, urlMap string, cacheinvalidationrule *CacheInvalidationRule) *UrlMapsInvalidateCacheCall { c := &UrlMapsInvalidateCacheCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -145716,7 +146121,7 @@ func (c *UrlMapsInvalidateCacheCall) Header() http.Header { func (c *UrlMapsInvalidateCacheCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -145781,7 +146186,7 @@ func (c *UrlMapsInvalidateCacheCall) Do(opts ...googleapi.CallOption) (*Operatio } return ret, nil // { - // "description": "Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap.", + // "description": "Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap.\n\nFor more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content).", // "httpMethod": "POST", // "id": "compute.urlMaps.invalidateCache", // "parameterOrder": [ @@ -145955,7 +146360,7 @@ func (c *UrlMapsListCall) Header() http.Header { func (c *UrlMapsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -146164,7 +146569,7 @@ func (c *UrlMapsPatchCall) Header() http.Header { func (c *UrlMapsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -146341,7 +146746,7 @@ func (c *UrlMapsUpdateCall) Header() http.Header { func (c *UrlMapsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -146500,7 +146905,7 @@ func (c *UrlMapsValidateCall) Header() http.Header { func (c *UrlMapsValidateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -146745,7 +147150,7 @@ func (c *VpnGatewaysAggregatedListCall) Header() http.Header { func (c *VpnGatewaysAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -146956,7 +147361,7 @@ func (c *VpnGatewaysDeleteCall) Header() http.Header { func (c *VpnGatewaysDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -147125,7 +147530,7 @@ func (c *VpnGatewaysGetCall) Header() http.Header { func (c *VpnGatewaysGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -147292,7 +147697,7 @@ func (c *VpnGatewaysGetStatusCall) Header() http.Header { func (c *VpnGatewaysGetStatusCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -147468,7 +147873,7 @@ func (c *VpnGatewaysInsertCall) Header() http.Header { func (c *VpnGatewaysInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -147708,7 +148113,7 @@ func (c *VpnGatewaysListCall) Header() http.Header { func (c *VpnGatewaysListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -147926,7 +148331,7 @@ func (c *VpnGatewaysSetLabelsCall) Header() http.Header { func (c *VpnGatewaysSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -148094,7 +148499,7 @@ func (c *VpnGatewaysTestIamPermissionsCall) Header() http.Header { func (c *VpnGatewaysTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -148349,7 +148754,7 @@ func (c *VpnTunnelsAggregatedListCall) Header() http.Header { func (c *VpnTunnelsAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -148560,7 +148965,7 @@ func (c *VpnTunnelsDeleteCall) Header() http.Header { func (c *VpnTunnelsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -148729,7 +149134,7 @@ func (c *VpnTunnelsGetCall) Header() http.Header { func (c *VpnTunnelsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -148905,7 +149310,7 @@ func (c *VpnTunnelsInsertCall) Header() http.Header { func (c *VpnTunnelsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -149145,7 +149550,7 @@ func (c *VpnTunnelsListCall) Header() http.Header { func (c *VpnTunnelsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -149342,7 +149747,7 @@ func (c *ZoneOperationsDeleteCall) Header() http.Header { func (c *ZoneOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -149478,7 +149883,7 @@ func (c *ZoneOperationsGetCall) Header() http.Header { func (c *ZoneOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -149719,7 +150124,7 @@ func (c *ZoneOperationsListCall) Header() http.Header { func (c *ZoneOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -149928,7 +150333,7 @@ func (c *ZoneOperationsWaitCall) Header() http.Header { func (c *ZoneOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -150092,7 +150497,7 @@ func (c *ZonesGetCall) Header() http.Header { func (c *ZonesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -150322,7 +150727,7 @@ func (c *ZonesListCall) Header() http.Header { func (c *ZonesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/container/v1/container-gen.go b/container/v1/container-gen.go index 07dd3c3f4d8..601c10b9c12 100644 --- a/container/v1/container-gen.go +++ b/container/v1/container-gen.go @@ -5034,7 +5034,7 @@ func (c *ProjectsAggregatedUsableSubnetworksListCall) Header() http.Header { func (c *ProjectsAggregatedUsableSubnetworksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5235,7 +5235,7 @@ func (c *ProjectsLocationsGetServerConfigCall) Header() http.Header { func (c *ProjectsLocationsGetServerConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5380,7 +5380,7 @@ func (c *ProjectsLocationsClustersCompleteIpRotationCall) Header() http.Header { func (c *ProjectsLocationsClustersCompleteIpRotationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5528,7 +5528,7 @@ func (c *ProjectsLocationsClustersCreateCall) Header() http.Header { func (c *ProjectsLocationsClustersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5698,7 +5698,7 @@ func (c *ProjectsLocationsClustersDeleteCall) Header() http.Header { func (c *ProjectsLocationsClustersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5881,7 +5881,7 @@ func (c *ProjectsLocationsClustersGetCall) Header() http.Header { func (c *ProjectsLocationsClustersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6042,7 +6042,7 @@ func (c *ProjectsLocationsClustersGetJwksCall) Header() http.Header { func (c *ProjectsLocationsClustersGetJwksCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6203,7 +6203,7 @@ func (c *ProjectsLocationsClustersListCall) Header() http.Header { func (c *ProjectsLocationsClustersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6348,7 +6348,7 @@ func (c *ProjectsLocationsClustersSetAddonsCall) Header() http.Header { func (c *ProjectsLocationsClustersSetAddonsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6489,7 +6489,7 @@ func (c *ProjectsLocationsClustersSetLegacyAbacCall) Header() http.Header { func (c *ProjectsLocationsClustersSetLegacyAbacCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6633,7 +6633,7 @@ func (c *ProjectsLocationsClustersSetLocationsCall) Header() http.Header { func (c *ProjectsLocationsClustersSetLocationsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6773,7 +6773,7 @@ func (c *ProjectsLocationsClustersSetLoggingCall) Header() http.Header { func (c *ProjectsLocationsClustersSetLoggingCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6913,7 +6913,7 @@ func (c *ProjectsLocationsClustersSetMaintenancePolicyCall) Header() http.Header func (c *ProjectsLocationsClustersSetMaintenancePolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7055,7 +7055,7 @@ func (c *ProjectsLocationsClustersSetMasterAuthCall) Header() http.Header { func (c *ProjectsLocationsClustersSetMasterAuthCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7195,7 +7195,7 @@ func (c *ProjectsLocationsClustersSetMonitoringCall) Header() http.Header { func (c *ProjectsLocationsClustersSetMonitoringCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7335,7 +7335,7 @@ func (c *ProjectsLocationsClustersSetNetworkPolicyCall) Header() http.Header { func (c *ProjectsLocationsClustersSetNetworkPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7475,7 +7475,7 @@ func (c *ProjectsLocationsClustersSetResourceLabelsCall) Header() http.Header { func (c *ProjectsLocationsClustersSetResourceLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7615,7 +7615,7 @@ func (c *ProjectsLocationsClustersStartIpRotationCall) Header() http.Header { func (c *ProjectsLocationsClustersStartIpRotationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7755,7 +7755,7 @@ func (c *ProjectsLocationsClustersUpdateCall) Header() http.Header { func (c *ProjectsLocationsClustersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7895,7 +7895,7 @@ func (c *ProjectsLocationsClustersUpdateMasterCall) Header() http.Header { func (c *ProjectsLocationsClustersUpdateMasterCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8035,7 +8035,7 @@ func (c *ProjectsLocationsClustersNodePoolsCreateCall) Header() http.Header { func (c *ProjectsLocationsClustersNodePoolsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8208,7 +8208,7 @@ func (c *ProjectsLocationsClustersNodePoolsDeleteCall) Header() http.Header { func (c *ProjectsLocationsClustersNodePoolsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8404,7 +8404,7 @@ func (c *ProjectsLocationsClustersNodePoolsGetCall) Header() http.Header { func (c *ProjectsLocationsClustersNodePoolsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8595,7 +8595,7 @@ func (c *ProjectsLocationsClustersNodePoolsListCall) Header() http.Header { func (c *ProjectsLocationsClustersNodePoolsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8746,7 +8746,7 @@ func (c *ProjectsLocationsClustersNodePoolsRollbackCall) Header() http.Header { func (c *ProjectsLocationsClustersNodePoolsRollbackCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8887,7 +8887,7 @@ func (c *ProjectsLocationsClustersNodePoolsSetAutoscalingCall) Header() http.Hea func (c *ProjectsLocationsClustersNodePoolsSetAutoscalingCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9027,7 +9027,7 @@ func (c *ProjectsLocationsClustersNodePoolsSetManagementCall) Header() http.Head func (c *ProjectsLocationsClustersNodePoolsSetManagementCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9167,7 +9167,7 @@ func (c *ProjectsLocationsClustersNodePoolsSetSizeCall) Header() http.Header { func (c *ProjectsLocationsClustersNodePoolsSetSizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9308,7 +9308,7 @@ func (c *ProjectsLocationsClustersNodePoolsUpdateCall) Header() http.Header { func (c *ProjectsLocationsClustersNodePoolsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9461,7 +9461,7 @@ func (c *ProjectsLocationsClustersWellKnownGetOpenidConfigurationCall) Header() func (c *ProjectsLocationsClustersWellKnownGetOpenidConfigurationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9593,7 +9593,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9769,7 +9769,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9948,7 +9948,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10113,7 +10113,7 @@ func (c *ProjectsZonesGetServerconfigCall) Header() http.Header { func (c *ProjectsZonesGetServerconfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10264,7 +10264,7 @@ func (c *ProjectsZonesClustersAddonsCall) Header() http.Header { func (c *ProjectsZonesClustersAddonsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10423,7 +10423,7 @@ func (c *ProjectsZonesClustersCompleteIpRotationCall) Header() http.Header { func (c *ProjectsZonesClustersCompleteIpRotationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10588,7 +10588,7 @@ func (c *ProjectsZonesClustersCreateCall) Header() http.Header { func (c *ProjectsZonesClustersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10750,7 +10750,7 @@ func (c *ProjectsZonesClustersDeleteCall) Header() http.Header { func (c *ProjectsZonesClustersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10923,7 +10923,7 @@ func (c *ProjectsZonesClustersGetCall) Header() http.Header { func (c *ProjectsZonesClustersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11083,7 +11083,7 @@ func (c *ProjectsZonesClustersLegacyAbacCall) Header() http.Header { func (c *ProjectsZonesClustersLegacyAbacCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11259,7 +11259,7 @@ func (c *ProjectsZonesClustersListCall) Header() http.Header { func (c *ProjectsZonesClustersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11413,7 +11413,7 @@ func (c *ProjectsZonesClustersLocationsCall) Header() http.Header { func (c *ProjectsZonesClustersLocationsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11572,7 +11572,7 @@ func (c *ProjectsZonesClustersLoggingCall) Header() http.Header { func (c *ProjectsZonesClustersLoggingCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11731,7 +11731,7 @@ func (c *ProjectsZonesClustersMasterCall) Header() http.Header { func (c *ProjectsZonesClustersMasterCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11890,7 +11890,7 @@ func (c *ProjectsZonesClustersMonitoringCall) Header() http.Header { func (c *ProjectsZonesClustersMonitoringCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12049,7 +12049,7 @@ func (c *ProjectsZonesClustersResourceLabelsCall) Header() http.Header { func (c *ProjectsZonesClustersResourceLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12208,7 +12208,7 @@ func (c *ProjectsZonesClustersSetMaintenancePolicyCall) Header() http.Header { func (c *ProjectsZonesClustersSetMaintenancePolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12369,7 +12369,7 @@ func (c *ProjectsZonesClustersSetMasterAuthCall) Header() http.Header { func (c *ProjectsZonesClustersSetMasterAuthCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12528,7 +12528,7 @@ func (c *ProjectsZonesClustersSetNetworkPolicyCall) Header() http.Header { func (c *ProjectsZonesClustersSetNetworkPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12687,7 +12687,7 @@ func (c *ProjectsZonesClustersStartIpRotationCall) Header() http.Header { func (c *ProjectsZonesClustersStartIpRotationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12846,7 +12846,7 @@ func (c *ProjectsZonesClustersUpdateCall) Header() http.Header { func (c *ProjectsZonesClustersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13008,7 +13008,7 @@ func (c *ProjectsZonesClustersNodePoolsAutoscalingCall) Header() http.Header { func (c *ProjectsZonesClustersNodePoolsAutoscalingCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13175,7 +13175,7 @@ func (c *ProjectsZonesClustersNodePoolsCreateCall) Header() http.Header { func (c *ProjectsZonesClustersNodePoolsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13342,7 +13342,7 @@ func (c *ProjectsZonesClustersNodePoolsDeleteCall) Header() http.Header { func (c *ProjectsZonesClustersNodePoolsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13525,7 +13525,7 @@ func (c *ProjectsZonesClustersNodePoolsGetCall) Header() http.Header { func (c *ProjectsZonesClustersNodePoolsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13709,7 +13709,7 @@ func (c *ProjectsZonesClustersNodePoolsListCall) Header() http.Header { func (c *ProjectsZonesClustersNodePoolsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13871,7 +13871,7 @@ func (c *ProjectsZonesClustersNodePoolsRollbackCall) Header() http.Header { func (c *ProjectsZonesClustersNodePoolsRollbackCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14040,7 +14040,7 @@ func (c *ProjectsZonesClustersNodePoolsSetManagementCall) Header() http.Header { func (c *ProjectsZonesClustersNodePoolsSetManagementCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14209,7 +14209,7 @@ func (c *ProjectsZonesClustersNodePoolsSetSizeCall) Header() http.Header { func (c *ProjectsZonesClustersNodePoolsSetSizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14379,7 +14379,7 @@ func (c *ProjectsZonesClustersNodePoolsUpdateCall) Header() http.Header { func (c *ProjectsZonesClustersNodePoolsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14546,7 +14546,7 @@ func (c *ProjectsZonesOperationsCancelCall) Header() http.Header { func (c *ProjectsZonesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14722,7 +14722,7 @@ func (c *ProjectsZonesOperationsGetCall) Header() http.Header { func (c *ProjectsZonesOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14898,7 +14898,7 @@ func (c *ProjectsZonesOperationsListCall) Header() http.Header { func (c *ProjectsZonesOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/container/v1beta1/container-api.json b/container/v1beta1/container-api.json index b82423d9d2a..cd5b16bce66 100644 --- a/container/v1beta1/container-api.json +++ b/container/v1beta1/container-api.json @@ -2484,7 +2484,7 @@ } } }, - "revision": "20201007", + "revision": "20201029", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -3385,6 +3385,18 @@ "properties": {}, "type": "object" }, + "EphemeralStorageConfig": { + "description": "EphemeralStorageConfig contains configuration for the ephemeral storage filesystem.", + "id": "EphemeralStorageConfig", + "properties": { + "localSsdCount": { + "description": "Number of local SSDs to use to back ephemeral storage. Uses NVMe interfaces. Each local SSD is 375 GB in size. If zero, it means to disable using local SSDs as ephemeral storage.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "GcePersistentDiskCsiDriverConfig": { "description": "Configuration for the Compute Engine PD CSI driver. This option can only be enabled at cluster creation time.", "id": "GcePersistentDiskCsiDriverConfig", @@ -4041,6 +4053,10 @@ "description": "Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd') If unspecified, the default disk type is 'pd-standard'", "type": "string" }, + "ephemeralStorageConfig": { + "$ref": "EphemeralStorageConfig", + "description": "Parameters for the ephemeral storage filesystem. If unspecified, ephemeral storage is backed by the boot disk." + }, "imageType": { "description": "The image type to use for this node. Note that for a given image type, the latest version of it will be used.", "type": "string" diff --git a/container/v1beta1/container-gen.go b/container/v1beta1/container-gen.go index 91bd59a56b2..a8f67f62d14 100644 --- a/container/v1beta1/container-gen.go +++ b/container/v1beta1/container-gen.go @@ -1781,6 +1781,37 @@ type Empty struct { googleapi.ServerResponse `json:"-"` } +// EphemeralStorageConfig: EphemeralStorageConfig contains configuration +// for the ephemeral storage filesystem. +type EphemeralStorageConfig struct { + // LocalSsdCount: Number of local SSDs to use to back ephemeral storage. + // Uses NVMe interfaces. Each local SSD is 375 GB in size. If zero, it + // means to disable using local SSDs as ephemeral storage. + LocalSsdCount int64 `json:"localSsdCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LocalSsdCount") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "LocalSsdCount") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EphemeralStorageConfig) MarshalJSON() ([]byte, error) { + type NoMethod EphemeralStorageConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GcePersistentDiskCsiDriverConfig: Configuration for the Compute // Engine PD CSI driver. This option can only be enabled at cluster // creation time. @@ -3033,6 +3064,11 @@ type NodeConfig struct { // or 'pd-ssd') If unspecified, the default disk type is 'pd-standard' DiskType string `json:"diskType,omitempty"` + // EphemeralStorageConfig: Parameters for the ephemeral storage + // filesystem. If unspecified, ephemeral storage is backed by the boot + // disk. + EphemeralStorageConfig *EphemeralStorageConfig `json:"ephemeralStorageConfig,omitempty"` + // ImageType: The image type to use for this node. Note that for a given // image type, the latest version of it will be used. ImageType string `json:"imageType,omitempty"` @@ -5846,7 +5882,7 @@ func (c *ProjectsAggregatedUsableSubnetworksListCall) Header() http.Header { func (c *ProjectsAggregatedUsableSubnetworksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6047,7 +6083,7 @@ func (c *ProjectsLocationsGetServerConfigCall) Header() http.Header { func (c *ProjectsLocationsGetServerConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6201,7 +6237,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6336,7 +6372,7 @@ func (c *ProjectsLocationsClustersCompleteIpRotationCall) Header() http.Header { func (c *ProjectsLocationsClustersCompleteIpRotationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6484,7 +6520,7 @@ func (c *ProjectsLocationsClustersCreateCall) Header() http.Header { func (c *ProjectsLocationsClustersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6654,7 +6690,7 @@ func (c *ProjectsLocationsClustersDeleteCall) Header() http.Header { func (c *ProjectsLocationsClustersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6837,7 +6873,7 @@ func (c *ProjectsLocationsClustersGetCall) Header() http.Header { func (c *ProjectsLocationsClustersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6998,7 +7034,7 @@ func (c *ProjectsLocationsClustersGetJwksCall) Header() http.Header { func (c *ProjectsLocationsClustersGetJwksCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7159,7 +7195,7 @@ func (c *ProjectsLocationsClustersListCall) Header() http.Header { func (c *ProjectsLocationsClustersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7304,7 +7340,7 @@ func (c *ProjectsLocationsClustersSetAddonsCall) Header() http.Header { func (c *ProjectsLocationsClustersSetAddonsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7445,7 +7481,7 @@ func (c *ProjectsLocationsClustersSetLegacyAbacCall) Header() http.Header { func (c *ProjectsLocationsClustersSetLegacyAbacCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7589,7 +7625,7 @@ func (c *ProjectsLocationsClustersSetLocationsCall) Header() http.Header { func (c *ProjectsLocationsClustersSetLocationsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7729,7 +7765,7 @@ func (c *ProjectsLocationsClustersSetLoggingCall) Header() http.Header { func (c *ProjectsLocationsClustersSetLoggingCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7869,7 +7905,7 @@ func (c *ProjectsLocationsClustersSetMaintenancePolicyCall) Header() http.Header func (c *ProjectsLocationsClustersSetMaintenancePolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8011,7 +8047,7 @@ func (c *ProjectsLocationsClustersSetMasterAuthCall) Header() http.Header { func (c *ProjectsLocationsClustersSetMasterAuthCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8151,7 +8187,7 @@ func (c *ProjectsLocationsClustersSetMonitoringCall) Header() http.Header { func (c *ProjectsLocationsClustersSetMonitoringCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8291,7 +8327,7 @@ func (c *ProjectsLocationsClustersSetNetworkPolicyCall) Header() http.Header { func (c *ProjectsLocationsClustersSetNetworkPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8431,7 +8467,7 @@ func (c *ProjectsLocationsClustersSetResourceLabelsCall) Header() http.Header { func (c *ProjectsLocationsClustersSetResourceLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8571,7 +8607,7 @@ func (c *ProjectsLocationsClustersStartIpRotationCall) Header() http.Header { func (c *ProjectsLocationsClustersStartIpRotationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8711,7 +8747,7 @@ func (c *ProjectsLocationsClustersUpdateCall) Header() http.Header { func (c *ProjectsLocationsClustersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8851,7 +8887,7 @@ func (c *ProjectsLocationsClustersUpdateMasterCall) Header() http.Header { func (c *ProjectsLocationsClustersUpdateMasterCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8991,7 +9027,7 @@ func (c *ProjectsLocationsClustersNodePoolsCreateCall) Header() http.Header { func (c *ProjectsLocationsClustersNodePoolsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9164,7 +9200,7 @@ func (c *ProjectsLocationsClustersNodePoolsDeleteCall) Header() http.Header { func (c *ProjectsLocationsClustersNodePoolsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9360,7 +9396,7 @@ func (c *ProjectsLocationsClustersNodePoolsGetCall) Header() http.Header { func (c *ProjectsLocationsClustersNodePoolsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9551,7 +9587,7 @@ func (c *ProjectsLocationsClustersNodePoolsListCall) Header() http.Header { func (c *ProjectsLocationsClustersNodePoolsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9702,7 +9738,7 @@ func (c *ProjectsLocationsClustersNodePoolsRollbackCall) Header() http.Header { func (c *ProjectsLocationsClustersNodePoolsRollbackCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9843,7 +9879,7 @@ func (c *ProjectsLocationsClustersNodePoolsSetAutoscalingCall) Header() http.Hea func (c *ProjectsLocationsClustersNodePoolsSetAutoscalingCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9983,7 +10019,7 @@ func (c *ProjectsLocationsClustersNodePoolsSetManagementCall) Header() http.Head func (c *ProjectsLocationsClustersNodePoolsSetManagementCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10123,7 +10159,7 @@ func (c *ProjectsLocationsClustersNodePoolsSetSizeCall) Header() http.Header { func (c *ProjectsLocationsClustersNodePoolsSetSizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10264,7 +10300,7 @@ func (c *ProjectsLocationsClustersNodePoolsUpdateCall) Header() http.Header { func (c *ProjectsLocationsClustersNodePoolsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10417,7 +10453,7 @@ func (c *ProjectsLocationsClustersWellKnownGetOpenidConfigurationCall) Header() func (c *ProjectsLocationsClustersWellKnownGetOpenidConfigurationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10549,7 +10585,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10725,7 +10761,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10904,7 +10940,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11069,7 +11105,7 @@ func (c *ProjectsZonesGetServerconfigCall) Header() http.Header { func (c *ProjectsZonesGetServerconfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11220,7 +11256,7 @@ func (c *ProjectsZonesClustersAddonsCall) Header() http.Header { func (c *ProjectsZonesClustersAddonsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11379,7 +11415,7 @@ func (c *ProjectsZonesClustersCompleteIpRotationCall) Header() http.Header { func (c *ProjectsZonesClustersCompleteIpRotationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11544,7 +11580,7 @@ func (c *ProjectsZonesClustersCreateCall) Header() http.Header { func (c *ProjectsZonesClustersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11706,7 +11742,7 @@ func (c *ProjectsZonesClustersDeleteCall) Header() http.Header { func (c *ProjectsZonesClustersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11879,7 +11915,7 @@ func (c *ProjectsZonesClustersGetCall) Header() http.Header { func (c *ProjectsZonesClustersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12039,7 +12075,7 @@ func (c *ProjectsZonesClustersLegacyAbacCall) Header() http.Header { func (c *ProjectsZonesClustersLegacyAbacCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12215,7 +12251,7 @@ func (c *ProjectsZonesClustersListCall) Header() http.Header { func (c *ProjectsZonesClustersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12369,7 +12405,7 @@ func (c *ProjectsZonesClustersLocationsCall) Header() http.Header { func (c *ProjectsZonesClustersLocationsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12528,7 +12564,7 @@ func (c *ProjectsZonesClustersLoggingCall) Header() http.Header { func (c *ProjectsZonesClustersLoggingCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12687,7 +12723,7 @@ func (c *ProjectsZonesClustersMasterCall) Header() http.Header { func (c *ProjectsZonesClustersMasterCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12846,7 +12882,7 @@ func (c *ProjectsZonesClustersMonitoringCall) Header() http.Header { func (c *ProjectsZonesClustersMonitoringCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13005,7 +13041,7 @@ func (c *ProjectsZonesClustersResourceLabelsCall) Header() http.Header { func (c *ProjectsZonesClustersResourceLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13164,7 +13200,7 @@ func (c *ProjectsZonesClustersSetMaintenancePolicyCall) Header() http.Header { func (c *ProjectsZonesClustersSetMaintenancePolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13325,7 +13361,7 @@ func (c *ProjectsZonesClustersSetMasterAuthCall) Header() http.Header { func (c *ProjectsZonesClustersSetMasterAuthCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13484,7 +13520,7 @@ func (c *ProjectsZonesClustersSetNetworkPolicyCall) Header() http.Header { func (c *ProjectsZonesClustersSetNetworkPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13643,7 +13679,7 @@ func (c *ProjectsZonesClustersStartIpRotationCall) Header() http.Header { func (c *ProjectsZonesClustersStartIpRotationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13802,7 +13838,7 @@ func (c *ProjectsZonesClustersUpdateCall) Header() http.Header { func (c *ProjectsZonesClustersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13963,7 +13999,7 @@ func (c *ProjectsZonesClustersNodePoolsAutoscalingCall) Header() http.Header { func (c *ProjectsZonesClustersNodePoolsAutoscalingCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14130,7 +14166,7 @@ func (c *ProjectsZonesClustersNodePoolsCreateCall) Header() http.Header { func (c *ProjectsZonesClustersNodePoolsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14297,7 +14333,7 @@ func (c *ProjectsZonesClustersNodePoolsDeleteCall) Header() http.Header { func (c *ProjectsZonesClustersNodePoolsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14480,7 +14516,7 @@ func (c *ProjectsZonesClustersNodePoolsGetCall) Header() http.Header { func (c *ProjectsZonesClustersNodePoolsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14664,7 +14700,7 @@ func (c *ProjectsZonesClustersNodePoolsListCall) Header() http.Header { func (c *ProjectsZonesClustersNodePoolsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14826,7 +14862,7 @@ func (c *ProjectsZonesClustersNodePoolsRollbackCall) Header() http.Header { func (c *ProjectsZonesClustersNodePoolsRollbackCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14995,7 +15031,7 @@ func (c *ProjectsZonesClustersNodePoolsSetManagementCall) Header() http.Header { func (c *ProjectsZonesClustersNodePoolsSetManagementCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15164,7 +15200,7 @@ func (c *ProjectsZonesClustersNodePoolsSetSizeCall) Header() http.Header { func (c *ProjectsZonesClustersNodePoolsSetSizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15334,7 +15370,7 @@ func (c *ProjectsZonesClustersNodePoolsUpdateCall) Header() http.Header { func (c *ProjectsZonesClustersNodePoolsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15501,7 +15537,7 @@ func (c *ProjectsZonesOperationsCancelCall) Header() http.Header { func (c *ProjectsZonesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15677,7 +15713,7 @@ func (c *ProjectsZonesOperationsGetCall) Header() http.Header { func (c *ProjectsZonesOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15853,7 +15889,7 @@ func (c *ProjectsZonesOperationsListCall) Header() http.Header { func (c *ProjectsZonesOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/containeranalysis/v1alpha1/containeranalysis-api.json b/containeranalysis/v1alpha1/containeranalysis-api.json index aa0ec427b1d..7b765fb1c84 100644 --- a/containeranalysis/v1alpha1/containeranalysis-api.json +++ b/containeranalysis/v1alpha1/containeranalysis-api.json @@ -1217,7 +1217,7 @@ } } }, - "revision": "20200828", + "revision": "20201112", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "Artifact": { @@ -1296,10 +1296,6 @@ "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { - "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", - "type": "string" - }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." diff --git a/containeranalysis/v1alpha1/containeranalysis-gen.go b/containeranalysis/v1alpha1/containeranalysis-gen.go index e1e694a15d2..162311c842d 100644 --- a/containeranalysis/v1alpha1/containeranalysis-gen.go +++ b/containeranalysis/v1alpha1/containeranalysis-gen.go @@ -436,10 +436,6 @@ func (s *Basis) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. - BindingId string `json:"bindingId,omitempty"` - // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -489,7 +485,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "BindingId") to + // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -497,7 +493,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BindingId") to include in + // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -3351,7 +3347,7 @@ func (c *ProjectsNotesCreateCall) Header() http.Header { func (c *ProjectsNotesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3499,7 +3495,7 @@ func (c *ProjectsNotesDeleteCall) Header() http.Header { func (c *ProjectsNotesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3640,7 +3636,7 @@ func (c *ProjectsNotesGetCall) Header() http.Header { func (c *ProjectsNotesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3786,7 +3782,7 @@ func (c *ProjectsNotesGetIamPolicyCall) Header() http.Header { func (c *ProjectsNotesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3962,7 +3958,7 @@ func (c *ProjectsNotesListCall) Header() http.Header { func (c *ProjectsNotesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4146,7 +4142,7 @@ func (c *ProjectsNotesPatchCall) Header() http.Header { func (c *ProjectsNotesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4303,7 +4299,7 @@ func (c *ProjectsNotesSetIamPolicyCall) Header() http.Header { func (c *ProjectsNotesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4451,7 +4447,7 @@ func (c *ProjectsNotesTestIamPermissionsCall) Header() http.Header { func (c *ProjectsNotesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4622,7 +4618,7 @@ func (c *ProjectsNotesOccurrencesListCall) Header() http.Header { func (c *ProjectsNotesOccurrencesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4802,7 +4798,7 @@ func (c *ProjectsOccurrencesCreateCall) Header() http.Header { func (c *ProjectsOccurrencesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4946,7 +4942,7 @@ func (c *ProjectsOccurrencesDeleteCall) Header() http.Header { func (c *ProjectsOccurrencesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5087,7 +5083,7 @@ func (c *ProjectsOccurrencesGetCall) Header() http.Header { func (c *ProjectsOccurrencesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5233,7 +5229,7 @@ func (c *ProjectsOccurrencesGetIamPolicyCall) Header() http.Header { func (c *ProjectsOccurrencesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5382,7 +5378,7 @@ func (c *ProjectsOccurrencesGetNotesCall) Header() http.Header { func (c *ProjectsOccurrencesGetNotesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5533,7 +5529,7 @@ func (c *ProjectsOccurrencesGetVulnerabilitySummaryCall) Header() http.Header { func (c *ProjectsOccurrencesGetVulnerabilitySummaryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5733,7 +5729,7 @@ func (c *ProjectsOccurrencesListCall) Header() http.Header { func (c *ProjectsOccurrencesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5944,7 +5940,7 @@ func (c *ProjectsOccurrencesPatchCall) Header() http.Header { func (c *ProjectsOccurrencesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6101,7 +6097,7 @@ func (c *ProjectsOccurrencesSetIamPolicyCall) Header() http.Header { func (c *ProjectsOccurrencesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6249,7 +6245,7 @@ func (c *ProjectsOccurrencesTestIamPermissionsCall) Header() http.Header { func (c *ProjectsOccurrencesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6389,7 +6385,7 @@ func (c *ProjectsOperationsCreateCall) Header() http.Header { func (c *ProjectsOperationsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6531,7 +6527,7 @@ func (c *ProjectsOperationsPatchCall) Header() http.Header { func (c *ProjectsOperationsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6680,7 +6676,7 @@ func (c *ProjectsScanConfigsGetCall) Header() http.Header { func (c *ProjectsScanConfigsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6844,7 +6840,7 @@ func (c *ProjectsScanConfigsListCall) Header() http.Header { func (c *ProjectsScanConfigsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7023,7 +7019,7 @@ func (c *ProjectsScanConfigsPatchCall) Header() http.Header { func (c *ProjectsScanConfigsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7183,7 +7179,7 @@ func (c *ProvidersNotesCreateCall) Header() http.Header { func (c *ProvidersNotesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7331,7 +7327,7 @@ func (c *ProvidersNotesDeleteCall) Header() http.Header { func (c *ProvidersNotesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7472,7 +7468,7 @@ func (c *ProvidersNotesGetCall) Header() http.Header { func (c *ProvidersNotesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7618,7 +7614,7 @@ func (c *ProvidersNotesGetIamPolicyCall) Header() http.Header { func (c *ProvidersNotesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7794,7 +7790,7 @@ func (c *ProvidersNotesListCall) Header() http.Header { func (c *ProvidersNotesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7978,7 +7974,7 @@ func (c *ProvidersNotesPatchCall) Header() http.Header { func (c *ProvidersNotesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8135,7 +8131,7 @@ func (c *ProvidersNotesSetIamPolicyCall) Header() http.Header { func (c *ProvidersNotesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8283,7 +8279,7 @@ func (c *ProvidersNotesTestIamPermissionsCall) Header() http.Header { func (c *ProvidersNotesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8454,7 +8450,7 @@ func (c *ProvidersNotesOccurrencesListCall) Header() http.Header { func (c *ProvidersNotesOccurrencesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/containeranalysis/v1beta1/containeranalysis-api.json b/containeranalysis/v1beta1/containeranalysis-api.json index c6fbbb1bc28..5909ba23e0b 100644 --- a/containeranalysis/v1beta1/containeranalysis-api.json +++ b/containeranalysis/v1beta1/containeranalysis-api.json @@ -853,7 +853,7 @@ } } }, - "revision": "20200828", + "revision": "20201112", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AliasContext": { @@ -976,7 +976,7 @@ "additionalProperties": { "$ref": "Note" }, - "description": "Required. The notes to create. Max allowed length is 1000.", + "description": "Required. The notes to create, the key is expected to be the note ID. Max allowed length is 1000.", "type": "object" } }, @@ -1028,10 +1028,6 @@ "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { - "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", - "type": "string" - }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." diff --git a/containeranalysis/v1beta1/containeranalysis-gen.go b/containeranalysis/v1beta1/containeranalysis-gen.go index 3d10972f67d..ed96f7eaaf2 100644 --- a/containeranalysis/v1beta1/containeranalysis-gen.go +++ b/containeranalysis/v1beta1/containeranalysis-gen.go @@ -437,7 +437,8 @@ func (s *Basis) MarshalJSON() ([]byte, error) { // BatchCreateNotesRequest: Request to create notes in batch. type BatchCreateNotesRequest struct { - // Notes: Required. The notes to create. Max allowed length is 1000. + // Notes: Required. The notes to create, the key is expected to be the + // note ID. Max allowed length is 1000. Notes map[string]Note `json:"notes,omitempty"` // ForceSendFields is a list of field names (e.g. "Notes") to @@ -560,10 +561,6 @@ func (s *BatchCreateOccurrencesResponse) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. - BindingId string `json:"bindingId,omitempty"` - // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -613,7 +610,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "BindingId") to + // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -621,7 +618,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BindingId") to include in + // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -3906,7 +3903,7 @@ func (c *ProjectsNotesBatchCreateCall) Header() http.Header { func (c *ProjectsNotesBatchCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4053,7 +4050,7 @@ func (c *ProjectsNotesCreateCall) Header() http.Header { func (c *ProjectsNotesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4196,7 +4193,7 @@ func (c *ProjectsNotesDeleteCall) Header() http.Header { func (c *ProjectsNotesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4337,7 +4334,7 @@ func (c *ProjectsNotesGetCall) Header() http.Header { func (c *ProjectsNotesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4477,7 +4474,7 @@ func (c *ProjectsNotesGetIamPolicyCall) Header() http.Header { func (c *ProjectsNotesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4647,7 +4644,7 @@ func (c *ProjectsNotesListCall) Header() http.Header { func (c *ProjectsNotesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4826,7 +4823,7 @@ func (c *ProjectsNotesPatchCall) Header() http.Header { func (c *ProjectsNotesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4977,7 +4974,7 @@ func (c *ProjectsNotesSetIamPolicyCall) Header() http.Header { func (c *ProjectsNotesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5121,7 +5118,7 @@ func (c *ProjectsNotesTestIamPermissionsCall) Header() http.Header { func (c *ProjectsNotesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5292,7 +5289,7 @@ func (c *ProjectsNotesOccurrencesListCall) Header() http.Header { func (c *ProjectsNotesOccurrencesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5464,7 +5461,7 @@ func (c *ProjectsOccurrencesBatchCreateCall) Header() http.Header { func (c *ProjectsOccurrencesBatchCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5604,7 +5601,7 @@ func (c *ProjectsOccurrencesCreateCall) Header() http.Header { func (c *ProjectsOccurrencesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5744,7 +5741,7 @@ func (c *ProjectsOccurrencesDeleteCall) Header() http.Header { func (c *ProjectsOccurrencesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5885,7 +5882,7 @@ func (c *ProjectsOccurrencesGetCall) Header() http.Header { func (c *ProjectsOccurrencesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6025,7 +6022,7 @@ func (c *ProjectsOccurrencesGetIamPolicyCall) Header() http.Header { func (c *ProjectsOccurrencesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6176,7 +6173,7 @@ func (c *ProjectsOccurrencesGetNotesCall) Header() http.Header { func (c *ProjectsOccurrencesGetNotesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6327,7 +6324,7 @@ func (c *ProjectsOccurrencesGetVulnerabilitySummaryCall) Header() http.Header { func (c *ProjectsOccurrencesGetVulnerabilitySummaryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6497,7 +6494,7 @@ func (c *ProjectsOccurrencesListCall) Header() http.Header { func (c *ProjectsOccurrencesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6676,7 +6673,7 @@ func (c *ProjectsOccurrencesPatchCall) Header() http.Header { func (c *ProjectsOccurrencesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6827,7 +6824,7 @@ func (c *ProjectsOccurrencesSetIamPolicyCall) Header() http.Header { func (c *ProjectsOccurrencesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6971,7 +6968,7 @@ func (c *ProjectsOccurrencesTestIamPermissionsCall) Header() http.Header { func (c *ProjectsOccurrencesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7120,7 +7117,7 @@ func (c *ProjectsScanConfigsGetCall) Header() http.Header { func (c *ProjectsScanConfigsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7285,7 +7282,7 @@ func (c *ProjectsScanConfigsListCall) Header() http.Header { func (c *ProjectsScanConfigsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7457,7 +7454,7 @@ func (c *ProjectsScanConfigsUpdateCall) Header() http.Header { func (c *ProjectsScanConfigsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/content/v2.1/content-api.json b/content/v2.1/content-api.json index 0283cffc248..b9ad3d86177 100644 --- a/content/v2.1/content-api.json +++ b/content/v2.1/content-api.json @@ -1023,7 +1023,7 @@ ] }, "fetchnow": { - "description": "Invokes a fetch for the datafeed in your Merchant Center account.", + "description": "Invokes a fetch for the datafeed in your Merchant Center account. If you need to call this method more than once per day, we recommend you use the Products service to update your product data.", "flatPath": "content/v2.1/{merchantId}/datafeeds/{datafeedId}/fetchNow", "httpMethod": "POST", "id": "content.datafeeds.fetchnow", @@ -1435,7 +1435,8 @@ "id": "content.liasettings.requestgmbaccess", "parameterOrder": [ "merchantId", - "accountId" + "accountId", + "gmbEmail" ], "parameters": { "accountId": { @@ -1448,6 +1449,7 @@ "gmbEmail": { "description": "The email of the Google My Business account.", "location": "query", + "required": true, "type": "string" }, "merchantId": { @@ -1513,7 +1515,11 @@ "id": "content.liasettings.setinventoryverificationcontact", "parameterOrder": [ "merchantId", - "accountId" + "accountId", + "country", + "language", + "contactName", + "contactEmail" ], "parameters": { "accountId": { @@ -1526,21 +1532,25 @@ "contactEmail": { "description": "The email of the inventory verification contact.", "location": "query", + "required": true, "type": "string" }, "contactName": { "description": "The name of the inventory verification contact.", "location": "query", + "required": true, "type": "string" }, "country": { "description": "The country for which inventory verification is requested.", "location": "query", + "required": true, "type": "string" }, "language": { "description": "The language for which inventory verification is requested.", "location": "query", + "required": true, "type": "string" }, "merchantId": { @@ -1566,7 +1576,8 @@ "id": "content.liasettings.setposdataprovider", "parameterOrder": [ "merchantId", - "accountId" + "accountId", + "country" ], "parameters": { "accountId": { @@ -1579,6 +1590,7 @@ "country": { "description": "The country for which the POS data provider is selected.", "location": "query", + "required": true, "type": "string" }, "merchantId": { @@ -2936,6 +2948,38 @@ } } }, + "ordertrackingsignals": { + "methods": { + "create": { + "description": "Creates new order tracking signal.", + "flatPath": "content/v2.1/{merchantId}/ordertrackingsignals", + "httpMethod": "POST", + "id": "content.ordertrackingsignals.create", + "parameterOrder": [ + "merchantId" + ], + "parameters": { + "merchantId": { + "description": "The ID of the merchant for which the order signal is created.", + "format": "int64", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "content/v2.1/{merchantId}/ordertrackingsignals", + "request": { + "$ref": "OrderTrackingSignal" + }, + "response": { + "$ref": "OrderTrackingSignal" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + } + } + }, "pos": { "methods": { "custombatch": { @@ -3551,6 +3595,181 @@ } } }, + "regions": { + "methods": { + "create": { + "description": "Creates a region definition in your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/regions", + "httpMethod": "POST", + "id": "content.regions.create", + "parameterOrder": [ + "merchantId" + ], + "parameters": { + "merchantId": { + "description": "Required. The id of the merchant for which to create region definition.", + "format": "int64", + "location": "path", + "required": true, + "type": "string" + }, + "regionId": { + "description": "Required. The id of the region to create.", + "location": "query", + "type": "string" + } + }, + "path": "content/v2.1/{merchantId}/regions", + "request": { + "$ref": "Region" + }, + "response": { + "$ref": "Region" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + }, + "delete": { + "description": "Deletes a region definition from your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/regions/{regionId}", + "httpMethod": "DELETE", + "id": "content.regions.delete", + "parameterOrder": [ + "merchantId", + "regionId" + ], + "parameters": { + "merchantId": { + "description": "Required. The id of the merchant for which to delete region definition.", + "format": "int64", + "location": "path", + "required": true, + "type": "string" + }, + "regionId": { + "description": "Required. The id of the region to delete.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "content/v2.1/{merchantId}/regions/{regionId}", + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + }, + "get": { + "description": "Retrieves a region defined in your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/regions/{regionId}", + "httpMethod": "GET", + "id": "content.regions.get", + "parameterOrder": [ + "merchantId", + "regionId" + ], + "parameters": { + "merchantId": { + "description": "Required. The id of the merchant for which to retrieve region definition.", + "format": "int64", + "location": "path", + "required": true, + "type": "string" + }, + "regionId": { + "description": "Required. The id of the region to retrieve.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "content/v2.1/{merchantId}/regions/{regionId}", + "response": { + "$ref": "Region" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + }, + "list": { + "description": "Lists the regions in your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/regions", + "httpMethod": "GET", + "id": "content.regions.list", + "parameterOrder": [ + "merchantId" + ], + "parameters": { + "merchantId": { + "description": "Required. The id of the merchant for which to list region definitions.", + "format": "int64", + "location": "path", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The maximum number of regions to return. The service may return fewer than this value. If unspecified, at most 50 rules will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListRegions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRegions` must match the call that provided the page token.", + "location": "query", + "type": "string" + } + }, + "path": "content/v2.1/{merchantId}/regions", + "response": { + "$ref": "ListRegionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + }, + "patch": { + "description": "Updates a region definition in your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/regions/{regionId}", + "httpMethod": "PATCH", + "id": "content.regions.patch", + "parameterOrder": [ + "merchantId", + "regionId" + ], + "parameters": { + "merchantId": { + "description": "Required. The id of the merchant for which to update region definition.", + "format": "int64", + "location": "path", + "required": true, + "type": "string" + }, + "regionId": { + "description": "Required. The id of the region to update.", + "location": "path", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. The field mask indicating the fields to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "content/v2.1/{merchantId}/regions/{regionId}", + "request": { + "$ref": "Region" + }, + "response": { + "$ref": "Region" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + } + } + }, "repricingrules": { "methods": { "create": { @@ -4356,7 +4575,7 @@ } } }, - "revision": "20201014", + "revision": "20201113", "rootUrl": "https://shoppingcontent.googleapis.com/", "schemas": { "Account": { @@ -5921,6 +6140,57 @@ }, "type": "object" }, + "DateTime": { + "description": "Represents civil time (or occasionally physical time). This type can represent a civil time in one of a few possible ways: * When utc_offset is set and time_zone is unset: a civil time on a calendar day with a particular offset from UTC. * When time_zone is set and utc_offset is unset: a civil time on a calendar day in a particular time zone. * When neither time_zone nor utc_offset is set: a civil time on a calendar day in local time. The date is relative to the Proleptic Gregorian Calendar. If year is 0, the DateTime is considered not to have a specific year. month and day must have valid, non-zero values. This type may also be used to represent a physical time if all the date and time fields are set and either case of the `time_offset` oneof is set. Consider using `Timestamp` message for physical time instead. If your use case also would like to store the user's timezone, that can be done in another field. This type is more flexible than some applications may want. Make sure to document and validate your application's limitations.", + "id": "DateTime", + "properties": { + "day": { + "description": "Required. Day of month. Must be from 1 to 31 and valid for the year and month.", + "format": "int32", + "type": "integer" + }, + "hours": { + "description": "Required. Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + "format": "int32", + "type": "integer" + }, + "minutes": { + "description": "Required. Minutes of hour of day. Must be from 0 to 59.", + "format": "int32", + "type": "integer" + }, + "month": { + "description": "Required. Month of year. Must be from 1 to 12.", + "format": "int32", + "type": "integer" + }, + "nanos": { + "description": "Required. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.", + "format": "int32", + "type": "integer" + }, + "seconds": { + "description": "Required. Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.", + "format": "int32", + "type": "integer" + }, + "timeZone": { + "$ref": "TimeZone", + "description": "Time zone." + }, + "utcOffset": { + "description": "UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }.", + "format": "google-duration", + "type": "string" + }, + "year": { + "description": "Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "DeliveryTime": { "id": "DeliveryTime", "properties": { @@ -6620,6 +6890,24 @@ }, "type": "object" }, + "ListRegionsResponse": { + "description": "Response message for the `ListRegions` method.", + "id": "ListRegionsResponse", + "properties": { + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "regions": { + "description": "The regions from the specified merchant.", + "items": { + "$ref": "Region" + }, + "type": "array" + } + }, + "type": "object" + }, "ListRepricingRulesResponse": { "description": "Response message for the `ListRepricingRules` method.", "id": "ListRepricingRulesResponse", @@ -7121,7 +7409,7 @@ "type": "integer" }, "reason": { - "description": "The reason for the cancellation. Orders that are canceled with a noInventory reason will lead to the removal of the product from Shopping Actions until you make an update to that product. This will not affect your Shopping ads. Acceptable values are: - \"`autoPostInternal`\" - \"`autoPostInvalidBillingAddress`\" - \"`autoPostNoInventory`\" - \"`autoPostPriceError`\" - \"`autoPostUndeliverableShippingAddress`\" - \"`couponAbuse`\" - \"`customerCanceled`\" - \"`customerInitiatedCancel`\" - \"`customerSupportRequested`\" - \"`failToPushOrderGoogleError`\" - \"`failToPushOrderMerchantError`\" - \"`failToPushOrderMerchantFulfillmentError`\" - \"`failToPushOrderToMerchant`\" - \"`failToPushOrderToMerchantOutOfStock`\" - \"`invalidCoupon`\" - \"`malformedShippingAddress`\" - \"`merchantDidNotShipOnTime`\" - \"`noInventory`\" - \"`orderTimeout`\" - \"`other`\" - \"`paymentAbuse`\" - \"`paymentDeclined`\" - \"`priceError`\" - \"`returnRefundAbuse`\" - \"`shippingPriceError`\" - \"`taxError`\" - \"`undeliverableShippingAddress`\" - \"`unsupportedPoBoxAddress`\" ", + "description": "The reason for the cancellation. Orders that are canceled with a noInventory reason will lead to the removal of the product from Buy on Google until you make an update to that product. This will not affect your Shopping ads. Acceptable values are: - \"`autoPostInternal`\" - \"`autoPostInvalidBillingAddress`\" - \"`autoPostNoInventory`\" - \"`autoPostPriceError`\" - \"`autoPostUndeliverableShippingAddress`\" - \"`couponAbuse`\" - \"`customerCanceled`\" - \"`customerInitiatedCancel`\" - \"`customerSupportRequested`\" - \"`failToPushOrderGoogleError`\" - \"`failToPushOrderMerchantError`\" - \"`failToPushOrderMerchantFulfillmentError`\" - \"`failToPushOrderToMerchant`\" - \"`failToPushOrderToMerchantOutOfStock`\" - \"`invalidCoupon`\" - \"`malformedShippingAddress`\" - \"`merchantDidNotShipOnTime`\" - \"`noInventory`\" - \"`orderTimeout`\" - \"`other`\" - \"`paymentAbuse`\" - \"`paymentDeclined`\" - \"`priceError`\" - \"`returnRefundAbuse`\" - \"`shippingPriceError`\" - \"`taxError`\" - \"`undeliverableShippingAddress`\" - \"`unsupportedPoBoxAddress`\" ", "type": "string" }, "reasonText": { @@ -7139,7 +7427,7 @@ "type": "string" }, "invoiceReceivingEmail": { - "description": "Email address for the merchant to send value-added tax or invoice documentation of the order. Only the last document sent is made available to the customer. For more information, see About automated VAT invoicing for Shopping Actions.", + "description": "Email address for the merchant to send value-added tax or invoice documentation of the order. Only the last document sent is made available to the customer. For more information, see About automated VAT invoicing for Buy on Google.", "type": "string" }, "loyaltyInfo": { @@ -7837,6 +8125,174 @@ }, "type": "object" }, + "OrderTrackingSignal": { + "description": "Represents a merchant trade from which signals are extracted, e.g. shipping.", + "id": "OrderTrackingSignal", + "properties": { + "customerShippingFee": { + "$ref": "PriceAmount", + "description": "The shipping fee of the order; this value should be set to zero in the case of free shipping." + }, + "deliveryPostalCode": { + "description": "Required. The delivery postal code, as a continuous string without spaces or dashes, e.g. \"95016\".", + "type": "string" + }, + "deliveryRegionCode": { + "description": "Required. The [CLDR territory code] (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) for the shipping destination.", + "type": "string" + }, + "lineItems": { + "description": "Information about line items in the order.", + "items": { + "$ref": "OrderTrackingSignalLineItemDetails" + }, + "type": "array" + }, + "merchantId": { + "description": "The Google merchant ID of this order tracking signal. This value is optional. If left unset, the caller's merchant ID is used. You must request access in order to provide data on behalf of another merchant. For more information, see [Submitting Order Tracking Signals](/shopping-content/guides/order-tracking-signals).", + "format": "int64", + "type": "string" + }, + "orderCreatedTime": { + "$ref": "DateTime", + "description": "Required. The time when the order was created on the merchant side. Include the year and timezone string, if available." + }, + "orderId": { + "description": "Required. The ID of the order on the merchant side.", + "type": "string" + }, + "orderTrackingSignalId": { + "description": "Output only. The ID that uniquely identifies this order tracking signal.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "shipmentLineItemMapping": { + "description": "The mapping of the line items to the shipment information.", + "items": { + "$ref": "OrderTrackingSignalShipmentLineItemMapping" + }, + "type": "array" + }, + "shippingInfo": { + "description": "The shipping information for the order.", + "items": { + "$ref": "OrderTrackingSignalShippingInfo" + }, + "type": "array" + } + }, + "type": "object" + }, + "OrderTrackingSignalLineItemDetails": { + "description": "The line items of the order.", + "id": "OrderTrackingSignalLineItemDetails", + "properties": { + "gtin": { + "description": "The Global Trade Item Number.", + "type": "string" + }, + "lineItemId": { + "description": "Required. The ID for this line item.", + "type": "string" + }, + "mpn": { + "description": "The manufacturer part number.", + "type": "string" + }, + "productId": { + "description": "Required. The Content API REST ID of the product, in the form channel:contentLanguage:targetCountry:offerId.", + "type": "string" + }, + "quantity": { + "description": "Required. The quantity of the line item in the order.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "OrderTrackingSignalShipmentLineItemMapping": { + "description": "Represents how many items are in the shipment for the given shipment_id and line_item_id.", + "id": "OrderTrackingSignalShipmentLineItemMapping", + "properties": { + "lineItemId": { + "description": "Required. The line item ID.", + "type": "string" + }, + "quantity": { + "description": "Required. The line item quantity in the shipment.", + "format": "int64", + "type": "string" + }, + "shipmentId": { + "description": "Required. The shipment ID.", + "type": "string" + } + }, + "type": "object" + }, + "OrderTrackingSignalShippingInfo": { + "description": "The shipping information for the order.", + "id": "OrderTrackingSignalShippingInfo", + "properties": { + "actualDeliveryTime": { + "$ref": "DateTime", + "description": "The time when the shipment was actually delivered. Include the year and timezone string, if available. This field is required, if one of the following fields is absent: tracking_id or carrier_name." + }, + "carrierName": { + "description": "The name of the shipping carrier for the delivery. This field is required if one of the following fields is absent: earliest_delivery_promise_time, latest_delivery_promise_time, and actual_delivery_time.", + "type": "string" + }, + "carrierServiceName": { + "description": "The service type for fulfillment, e.g., GROUND, FIRST_CLASS, etc.", + "type": "string" + }, + "earliestDeliveryPromiseTime": { + "$ref": "DateTime", + "description": "The earliest delivery promised time. Include the year and timezone string, if available. This field is required, if one of the following fields is absent: tracking_id or carrier_name." + }, + "latestDeliveryPromiseTime": { + "$ref": "DateTime", + "description": "The latest delivery promised time. Include the year and timezone string, if available. This field is required, if one of the following fields is absent: tracking_id or carrier_name." + }, + "originPostalCode": { + "description": "The origin postal code, as a continuous string without spaces or dashes, e.g. \"95016\".", + "type": "string" + }, + "originRegionCode": { + "description": "The [CLDR territory code] (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) for the shipping origin.", + "type": "string" + }, + "shipmentId": { + "description": "Required. The shipment ID.", + "type": "string" + }, + "shippedTime": { + "$ref": "DateTime", + "description": "The time when the shipment was shipped. Include the year and timezone string, if available." + }, + "shippingStatus": { + "description": "The status of the shipment.", + "enum": [ + "SHIPPING_STATE_UNSPECIFIED", + "SHIPPED", + "DELIVERED" + ], + "enumDescriptions": [ + "The shipping status is not known to merchant.", + "All items are shipped.", + "The shipment is already delivered." + ], + "type": "string" + }, + "trackingId": { + "description": "The tracking ID of the shipment. This field is required if one of the following fields is absent: earliest_delivery_promise_time, latest_delivery_promise_time, and actual_delivery_time.", + "type": "string" + } + }, + "type": "object" + }, "OrderinvoicesCreateChargeInvoiceRequest": { "id": "OrderinvoicesCreateChargeInvoiceRequest", "properties": { @@ -9011,7 +9467,7 @@ }, "inventory": { "$ref": "PosInventory", - "description": "The inventory to submit. Set this only if the method is `inventory`." + "description": "The inventory to submit. This should be set only if the method is `inventory`." }, "merchantId": { "description": "The ID of the POS data provider.", @@ -9024,14 +9480,14 @@ }, "sale": { "$ref": "PosSale", - "description": "The sale information to submit. Set this only if the method is `sale`." + "description": "The sale information to submit. This should be set only if the method is `sale`." }, "store": { "$ref": "PosStore", - "description": "The store information to submit. Set this only if the method is `insert`." + "description": "The store information to submit. This should be set only if the method is `insert`." }, "storeCode": { - "description": "The store code. Set this only if the method is `delete` or `get`.", + "description": "The store code. This should be set only if the method is `delete` or `get`.", "type": "string" }, "targetMerchantId": { @@ -9474,6 +9930,21 @@ }, "type": "object" }, + "PriceAmount": { + "description": "The price represented as a number and currency.", + "id": "PriceAmount", + "properties": { + "currency": { + "description": "The currency of the price.", + "type": "string" + }, + "value": { + "description": "The price represented as a number.", + "type": "string" + } + }, + "type": "object" + }, "Product": { "description": " Required product attributes are primarily defined by the products data specification. See the Products Data Specification Help Center article for information. Some attributes are country-specific, so make sure you select the appropriate country in the drop-down selector at the top of the page. Product data. After inserting, updating, or deleting a product, it may take several minutes before changes take effect.", "id": "Product", @@ -9501,7 +9972,7 @@ "type": "string" }, "adult": { - "description": "Set to true if the item is targeted towards adults.", + "description": "Should be set to true if the item is targeted towards adults.", "type": "boolean" }, "ageGroup": { @@ -9545,7 +10016,7 @@ "description": "Cost of goods sold. Used for gross profit reporting." }, "customAttributes": { - "description": "A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the feed specification in its generic form (e.g., `{ \"name\": \"size type\", \"value\": \"regular\" }`). This is useful for submitting attributes not explicitly exposed by the API, such as additional attributes used for Shopping Actions.", + "description": "A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the feed specification in its generic form (e.g., `{ \"name\": \"size type\", \"value\": \"regular\" }`). This is useful for submitting attributes not explicitly exposed by the API, such as additional attributes used for Buy on Google (formerly known as Shopping Actions).", "items": { "$ref": "CustomAttribute" }, @@ -10123,7 +10594,7 @@ "type": "string" }, "taxShip": { - "description": "Set to true if tax is charged on shipping.", + "description": "Should be set to true if tax is charged on shipping.", "type": "boolean" } }, @@ -10451,6 +10922,94 @@ }, "type": "object" }, + "Region": { + "description": "Represents a geographic region that you can use as a target with both the `RegionalInventory` and `ShippingSettings` services. You can define regions as collections of either postal codes or, in some countries, using predefined geotargets.", + "id": "Region", + "properties": { + "displayName": { + "description": "The display name of the region.", + "type": "string" + }, + "geotargetArea": { + "$ref": "RegionGeoTargetArea", + "description": "A list of geotargets that defines the region area." + }, + "merchantId": { + "description": "Output only. Immutable. Merchant that owns the region.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "postalCodeArea": { + "$ref": "RegionPostalCodeArea", + "description": "A list of postal codes that defines the region area." + }, + "regionId": { + "description": "Output only. Immutable. The ID uniquely identifying each region.", + "readOnly": true, + "type": "string" + }, + "regionalInventoryEligible": { + "description": "Output only. Indicates if the region is eligible to use in the Regional Inventory configuration.", + "readOnly": true, + "type": "boolean" + }, + "shippingEligible": { + "description": "Output only. Indicates if the region is eligible to use in the Shipping Services configuration.", + "readOnly": true, + "type": "boolean" + } + }, + "type": "object" + }, + "RegionGeoTargetArea": { + "description": "A list of geotargets that defines the region area.", + "id": "RegionGeoTargetArea", + "properties": { + "geotargetCriteriaIds": { + "description": "Required. A non-empty list of [location IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting). They must all be of the same location type (e.g., state).", + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "RegionPostalCodeArea": { + "description": "A list of postal codes that defines the region area. Note: All regions defined using postal codes are accessible via the account's `ShippingSettings.postalCodeGroups` resource.", + "id": "RegionPostalCodeArea", + "properties": { + "postalCodes": { + "description": "Required. A range of postal codes.", + "items": { + "$ref": "RegionPostalCodeAreaPostalCodeRange" + }, + "type": "array" + }, + "regionCode": { + "description": "Required. CLDR territory code or the country the postal code group applies to.", + "type": "string" + } + }, + "type": "object" + }, + "RegionPostalCodeAreaPostalCodeRange": { + "description": "A range of postal codes that defines the region area.", + "id": "RegionPostalCodeAreaPostalCodeRange", + "properties": { + "begin": { + "description": "Required. A postal code or a pattern of the form prefix* denoting the inclusive lower bound of the range defining the area. Examples values: \"94108\", \"9410*\", \"9*\".", + "type": "string" + }, + "end": { + "description": "Optional. A postal code or a pattern of the form prefix* denoting the inclusive upper bound of the range defining the area. It must have the same length as postalCodeRangeBegin: if postalCodeRangeBegin is a postal code then postalCodeRangeEnd must be a postal code too; if postalCodeRangeBegin is a pattern then postalCodeRangeEnd must be a pattern with the same prefix length. Optional: if not set, then the area is defined as being all the postal codes matching postalCodeRangeBegin.", + "type": "string" + } + }, + "type": "object" + }, "RegionalInventory": { "description": "Regional inventory resource. contains the regional name and all attributes which are overridden for the specified region.", "id": "RegionalInventory", @@ -10729,12 +11288,12 @@ "id": "RepricingRuleRestrictionBoundary", "properties": { "percentageDelta": { - "description": "The percentage delta relative to the offer selling price. This field is signed. It must be negative in floor. When it is used in floor, it should be \u003e -100. If an offer is selling at $10 and this field is -30 in floor, the repricing rule only applies if the calculated new price is \u003e= $7.", + "description": "The percentage delta relative to the offer selling price. This field is signed. It must be negative in floor. When it is used in floor, it should be \u003e -100. For example, if an offer is selling at $10 and this field is -30 in floor, the repricing rule only applies if the calculated new price is \u003e= $7.", "format": "int32", "type": "integer" }, "priceDelta": { - "description": "The price micros relative to the offer selling price. This field is signed. It must be negative in floor. If an offer is selling at $10 and this field is -$2 in floor, the repricing rule only applies if the calculated new price is \u003e= $8.", + "description": "The price micros relative to the offer selling price. This field is signed. It must be negative in floor. For example, if an offer is selling at $10 and this field is -$2 in floor, the repricing rule only applies if the calculated new price is \u003e= $8.", "type": "string" } }, @@ -10985,10 +11544,10 @@ }, "returnAddress": { "$ref": "ReturnAddress", - "description": "The return address to submit. Set this only if the method is `insert`." + "description": "The return address to submit. This should be set only if the method is `insert`." }, "returnAddressId": { - "description": "The return address ID. Set this only if the method is `delete` or `get`.", + "description": "The return address ID. This should be set only if the method is `delete` or `get`.", "type": "string" } }, @@ -11086,10 +11645,10 @@ }, "returnPolicy": { "$ref": "ReturnPolicy", - "description": "The return policy to submit. Set this only if the method is `insert`." + "description": "The return policy to submit. This should be set only if the method is `insert`." }, "returnPolicyId": { - "description": "The return policy ID. Set this only if the method is `delete` or `get`.", + "description": "The return policy ID. This should be set only if the method is `delete` or `get`.", "type": "string" } }, @@ -11918,6 +12477,21 @@ }, "type": "object" }, + "TimeZone": { + "description": "Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones).", + "id": "TimeZone", + "properties": { + "id": { + "description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".", + "type": "string" + }, + "version": { + "description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".", + "type": "string" + } + }, + "type": "object" + }, "TransitTable": { "id": "TransitTable", "properties": { diff --git a/content/v2.1/content-gen.go b/content/v2.1/content-gen.go index 105f8167fef..edcd5b6697b 100644 --- a/content/v2.1/content-gen.go +++ b/content/v2.1/content-gen.go @@ -128,11 +128,13 @@ func New(client *http.Client) (*APIService, error) { s.Orderreports = NewOrderreportsService(s) s.Orderreturns = NewOrderreturnsService(s) s.Orders = NewOrdersService(s) + s.Ordertrackingsignals = NewOrdertrackingsignalsService(s) s.Pos = NewPosService(s) s.Products = NewProductsService(s) s.Productstatuses = NewProductstatusesService(s) s.Pubsubnotificationsettings = NewPubsubnotificationsettingsService(s) s.Regionalinventory = NewRegionalinventoryService(s) + s.Regions = NewRegionsService(s) s.Repricingrules = NewRepricingrulesService(s) s.Returnaddress = NewReturnaddressService(s) s.Returnpolicy = NewReturnpolicyService(s) @@ -171,6 +173,8 @@ type APIService struct { Orders *OrdersService + Ordertrackingsignals *OrdertrackingsignalsService + Pos *PosService Products *ProductsService @@ -181,6 +185,8 @@ type APIService struct { Regionalinventory *RegionalinventoryService + Regions *RegionsService + Repricingrules *RepricingrulesService Returnaddress *ReturnaddressService @@ -321,6 +327,15 @@ type OrdersService struct { s *APIService } +func NewOrdertrackingsignalsService(s *APIService) *OrdertrackingsignalsService { + rs := &OrdertrackingsignalsService{s: s} + return rs +} + +type OrdertrackingsignalsService struct { + s *APIService +} + func NewPosService(s *APIService) *PosService { rs := &PosService{s: s} return rs @@ -366,6 +381,15 @@ type RegionalinventoryService struct { s *APIService } +func NewRegionsService(s *APIService) *RegionsService { + rs := &RegionsService{s: s} + return rs +} + +type RegionsService struct { + s *APIService +} + func NewRepricingrulesService(s *APIService) *RepricingrulesService { rs := &RepricingrulesService{s: s} return rs @@ -3054,6 +3078,82 @@ func (s *DatafeedstatusesListResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DateTime: Represents civil time (or occasionally physical time). This +// type can represent a civil time in one of a few possible ways: * When +// utc_offset is set and time_zone is unset: a civil time on a calendar +// day with a particular offset from UTC. * When time_zone is set and +// utc_offset is unset: a civil time on a calendar day in a particular +// time zone. * When neither time_zone nor utc_offset is set: a civil +// time on a calendar day in local time. The date is relative to the +// Proleptic Gregorian Calendar. If year is 0, the DateTime is +// considered not to have a specific year. month and day must have +// valid, non-zero values. This type may also be used to represent a +// physical time if all the date and time fields are set and either case +// of the `time_offset` oneof is set. Consider using `Timestamp` message +// for physical time instead. If your use case also would like to store +// the user's timezone, that can be done in another field. This type is +// more flexible than some applications may want. Make sure to document +// and validate your application's limitations. +type DateTime struct { + // Day: Required. Day of month. Must be from 1 to 31 and valid for the + // year and month. + Day int64 `json:"day,omitempty"` + + // Hours: Required. Hours of day in 24 hour format. Should be from 0 to + // 23. An API may choose to allow the value "24:00:00" for scenarios + // like business closing time. + Hours int64 `json:"hours,omitempty"` + + // Minutes: Required. Minutes of hour of day. Must be from 0 to 59. + Minutes int64 `json:"minutes,omitempty"` + + // Month: Required. Month of year. Must be from 1 to 12. + Month int64 `json:"month,omitempty"` + + // Nanos: Required. Fractions of seconds in nanoseconds. Must be from 0 + // to 999,999,999. + Nanos int64 `json:"nanos,omitempty"` + + // Seconds: Required. Seconds of minutes of the time. Must normally be + // from 0 to 59. An API may allow the value 60 if it allows + // leap-seconds. + Seconds int64 `json:"seconds,omitempty"` + + // TimeZone: Time zone. + TimeZone *TimeZone `json:"timeZone,omitempty"` + + // UtcOffset: UTC offset. Must be whole seconds, between -18 hours and + // +18 hours. For example, a UTC offset of -4:00 would be represented as + // { seconds: -14400 }. + UtcOffset string `json:"utcOffset,omitempty"` + + // Year: Optional. Year of date. Must be from 1 to 9999, or 0 if + // specifying a datetime without a year. + Year int64 `json:"year,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Day") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Day") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DateTime) MarshalJSON() ([]byte, error) { + type NoMethod DateTime + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type DeliveryTime struct { // CutoffTime: Business days cutoff time definition. If not configured // the cutoff time will be defaulted to 8AM PST. @@ -4324,6 +4424,43 @@ func (s *ListCssesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListRegionsResponse: Response message for the `ListRegions` method. +type ListRegionsResponse struct { + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Regions: The regions from the specified merchant. + Regions []*Region `json:"regions,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListRegionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListRegionsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListRepricingRulesResponse: Response message for the // `ListRepricingRules` method. type ListRepricingRulesResponse struct { @@ -5094,7 +5231,7 @@ type OrderCancellation struct { // Reason: The reason for the cancellation. Orders that are canceled // with a noInventory reason will lead to the removal of the product - // from Shopping Actions until you make an update to that product. This + // from Buy on Google until you make an update to that product. This // will not affect your Shopping ads. Acceptable values are: - // "autoPostInternal" - "autoPostInvalidBillingAddress" - // "autoPostNoInventory" - "autoPostPriceError" - @@ -5145,7 +5282,7 @@ type OrderCustomer struct { // InvoiceReceivingEmail: Email address for the merchant to send // value-added tax or invoice documentation of the order. Only the last // document sent is made available to the customer. For more - // information, see About automated VAT invoicing for Shopping Actions. + // information, see About automated VAT invoicing for Buy on Google. InvoiceReceivingEmail string `json:"invoiceReceivingEmail,omitempty"` // LoyaltyInfo: Loyalty program information. @@ -6277,6 +6414,241 @@ func (s *OrderShipmentScheduledDeliveryDetails) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// OrderTrackingSignal: Represents a merchant trade from which signals +// are extracted, e.g. shipping. +type OrderTrackingSignal struct { + // CustomerShippingFee: The shipping fee of the order; this value should + // be set to zero in the case of free shipping. + CustomerShippingFee *PriceAmount `json:"customerShippingFee,omitempty"` + + // DeliveryPostalCode: Required. The delivery postal code, as a + // continuous string without spaces or dashes, e.g. "95016". + DeliveryPostalCode string `json:"deliveryPostalCode,omitempty"` + + // DeliveryRegionCode: Required. The [CLDR territory code] + // (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) + // for the shipping destination. + DeliveryRegionCode string `json:"deliveryRegionCode,omitempty"` + + // LineItems: Information about line items in the order. + LineItems []*OrderTrackingSignalLineItemDetails `json:"lineItems,omitempty"` + + // MerchantId: The Google merchant ID of this order tracking signal. + // This value is optional. If left unset, the caller's merchant ID is + // used. You must request access in order to provide data on behalf of + // another merchant. For more information, see [Submitting Order + // Tracking Signals](/shopping-content/guides/order-tracking-signals). + MerchantId int64 `json:"merchantId,omitempty,string"` + + // OrderCreatedTime: Required. The time when the order was created on + // the merchant side. Include the year and timezone string, if + // available. + OrderCreatedTime *DateTime `json:"orderCreatedTime,omitempty"` + + // OrderId: Required. The ID of the order on the merchant side. + OrderId string `json:"orderId,omitempty"` + + // OrderTrackingSignalId: Output only. The ID that uniquely identifies + // this order tracking signal. + OrderTrackingSignalId int64 `json:"orderTrackingSignalId,omitempty,string"` + + // ShipmentLineItemMapping: The mapping of the line items to the + // shipment information. + ShipmentLineItemMapping []*OrderTrackingSignalShipmentLineItemMapping `json:"shipmentLineItemMapping,omitempty"` + + // ShippingInfo: The shipping information for the order. + ShippingInfo []*OrderTrackingSignalShippingInfo `json:"shippingInfo,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CustomerShippingFee") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CustomerShippingFee") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *OrderTrackingSignal) MarshalJSON() ([]byte, error) { + type NoMethod OrderTrackingSignal + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// OrderTrackingSignalLineItemDetails: The line items of the order. +type OrderTrackingSignalLineItemDetails struct { + // Gtin: The Global Trade Item Number. + Gtin string `json:"gtin,omitempty"` + + // LineItemId: Required. The ID for this line item. + LineItemId string `json:"lineItemId,omitempty"` + + // Mpn: The manufacturer part number. + Mpn string `json:"mpn,omitempty"` + + // ProductId: Required. The Content API REST ID of the product, in the + // form channel:contentLanguage:targetCountry:offerId. + ProductId string `json:"productId,omitempty"` + + // Quantity: Required. The quantity of the line item in the order. + Quantity int64 `json:"quantity,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "Gtin") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Gtin") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *OrderTrackingSignalLineItemDetails) MarshalJSON() ([]byte, error) { + type NoMethod OrderTrackingSignalLineItemDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// OrderTrackingSignalShipmentLineItemMapping: Represents how many items +// are in the shipment for the given shipment_id and line_item_id. +type OrderTrackingSignalShipmentLineItemMapping struct { + // LineItemId: Required. The line item ID. + LineItemId string `json:"lineItemId,omitempty"` + + // Quantity: Required. The line item quantity in the shipment. + Quantity int64 `json:"quantity,omitempty,string"` + + // ShipmentId: Required. The shipment ID. + ShipmentId string `json:"shipmentId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LineItemId") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "LineItemId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *OrderTrackingSignalShipmentLineItemMapping) MarshalJSON() ([]byte, error) { + type NoMethod OrderTrackingSignalShipmentLineItemMapping + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// OrderTrackingSignalShippingInfo: The shipping information for the +// order. +type OrderTrackingSignalShippingInfo struct { + // ActualDeliveryTime: The time when the shipment was actually + // delivered. Include the year and timezone string, if available. This + // field is required, if one of the following fields is absent: + // tracking_id or carrier_name. + ActualDeliveryTime *DateTime `json:"actualDeliveryTime,omitempty"` + + // CarrierName: The name of the shipping carrier for the delivery. This + // field is required if one of the following fields is absent: + // earliest_delivery_promise_time, latest_delivery_promise_time, and + // actual_delivery_time. + CarrierName string `json:"carrierName,omitempty"` + + // CarrierServiceName: The service type for fulfillment, e.g., GROUND, + // FIRST_CLASS, etc. + CarrierServiceName string `json:"carrierServiceName,omitempty"` + + // EarliestDeliveryPromiseTime: The earliest delivery promised time. + // Include the year and timezone string, if available. This field is + // required, if one of the following fields is absent: tracking_id or + // carrier_name. + EarliestDeliveryPromiseTime *DateTime `json:"earliestDeliveryPromiseTime,omitempty"` + + // LatestDeliveryPromiseTime: The latest delivery promised time. Include + // the year and timezone string, if available. This field is required, + // if one of the following fields is absent: tracking_id or + // carrier_name. + LatestDeliveryPromiseTime *DateTime `json:"latestDeliveryPromiseTime,omitempty"` + + // OriginPostalCode: The origin postal code, as a continuous string + // without spaces or dashes, e.g. "95016". + OriginPostalCode string `json:"originPostalCode,omitempty"` + + // OriginRegionCode: The [CLDR territory code] + // (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) + // for the shipping origin. + OriginRegionCode string `json:"originRegionCode,omitempty"` + + // ShipmentId: Required. The shipment ID. + ShipmentId string `json:"shipmentId,omitempty"` + + // ShippedTime: The time when the shipment was shipped. Include the year + // and timezone string, if available. + ShippedTime *DateTime `json:"shippedTime,omitempty"` + + // ShippingStatus: The status of the shipment. + // + // Possible values: + // "SHIPPING_STATE_UNSPECIFIED" - The shipping status is not known to + // merchant. + // "SHIPPED" - All items are shipped. + // "DELIVERED" - The shipment is already delivered. + ShippingStatus string `json:"shippingStatus,omitempty"` + + // TrackingId: The tracking ID of the shipment. This field is required + // if one of the following fields is absent: + // earliest_delivery_promise_time, latest_delivery_promise_time, and + // actual_delivery_time. + TrackingId string `json:"trackingId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ActualDeliveryTime") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ActualDeliveryTime") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *OrderTrackingSignalShippingInfo) MarshalJSON() ([]byte, error) { + type NoMethod OrderTrackingSignalShippingInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type OrderinvoicesCreateChargeInvoiceRequest struct { // InvoiceId: [required] The ID of the invoice. InvoiceId string `json:"invoiceId,omitempty"` @@ -8686,8 +9058,8 @@ type PosCustomBatchRequestEntry struct { // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` - // Inventory: The inventory to submit. Set this only if the method is - // `inventory`. + // Inventory: The inventory to submit. This should be set only if the + // method is `inventory`. Inventory *PosInventory `json:"inventory,omitempty"` // MerchantId: The ID of the POS data provider. @@ -8697,16 +9069,16 @@ type PosCustomBatchRequestEntry struct { // "delete" - "get" - "insert" - "inventory" - "sale" Method string `json:"method,omitempty"` - // Sale: The sale information to submit. Set this only if the method is - // `sale`. + // Sale: The sale information to submit. This should be set only if the + // method is `sale`. Sale *PosSale `json:"sale,omitempty"` - // Store: The store information to submit. Set this only if the method - // is `insert`. + // Store: The store information to submit. This should be set only if + // the method is `insert`. Store *PosStore `json:"store,omitempty"` - // StoreCode: The store code. Set this only if the method is `delete` or - // `get`. + // StoreCode: The store code. This should be set only if the method is + // `delete` or `get`. StoreCode string `json:"storeCode,omitempty"` // TargetMerchantId: The ID of the account for which to get/submit data. @@ -9408,6 +9780,37 @@ func (s *Price) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// PriceAmount: The price represented as a number and currency. +type PriceAmount struct { + // Currency: The currency of the price. + Currency string `json:"currency,omitempty"` + + // Value: The price represented as a number. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Currency") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Currency") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *PriceAmount) MarshalJSON() ([]byte, error) { + type NoMethod PriceAmount + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Product: Required product attributes are primarily defined by the // products data specification. See the Products Data Specification Help // Center article for information. Some attributes are country-specific, @@ -9430,7 +9833,7 @@ type Product struct { // product is shown within the context of Product Ads. AdsRedirect string `json:"adsRedirect,omitempty"` - // Adult: Set to true if the item is targeted towards adults. + // Adult: Should be set to true if the item is targeted towards adults. Adult bool `json:"adult,omitempty"` // AgeGroup: Target age group of the item. @@ -9472,7 +9875,7 @@ type Product struct { // specification in its generic form (e.g., `{ "name": "size type", // "value": "regular" }`). This is useful for submitting attributes not // explicitly exposed by the API, such as additional attributes used for - // Shopping Actions. + // Buy on Google (formerly known as Shopping Actions). CustomAttributes []*CustomAttribute `json:"customAttributes,omitempty"` // CustomLabel0: Custom label 0 for custom grouping of items in a @@ -10188,7 +10591,7 @@ type ProductTax struct { // Region: The geographic region to which the tax rate applies. Region string `json:"region,omitempty"` - // TaxShip: Set to true if tax is charged on shipping. + // TaxShip: Should be set to true if tax is charged on shipping. TaxShip bool `json:"taxShip,omitempty"` // ForceSendFields is a list of field names (e.g. "Country") to @@ -10821,6 +11224,170 @@ func (s *RefundReason) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Region: Represents a geographic region that you can use as a target +// with both the `RegionalInventory` and `ShippingSettings` services. +// You can define regions as collections of either postal codes or, in +// some countries, using predefined geotargets. +type Region struct { + // DisplayName: The display name of the region. + DisplayName string `json:"displayName,omitempty"` + + // GeotargetArea: A list of geotargets that defines the region area. + GeotargetArea *RegionGeoTargetArea `json:"geotargetArea,omitempty"` + + // MerchantId: Output only. Immutable. Merchant that owns the region. + MerchantId int64 `json:"merchantId,omitempty,string"` + + // PostalCodeArea: A list of postal codes that defines the region area. + PostalCodeArea *RegionPostalCodeArea `json:"postalCodeArea,omitempty"` + + // RegionId: Output only. Immutable. The ID uniquely identifying each + // region. + RegionId string `json:"regionId,omitempty"` + + // RegionalInventoryEligible: Output only. Indicates if the region is + // eligible to use in the Regional Inventory configuration. + RegionalInventoryEligible bool `json:"regionalInventoryEligible,omitempty"` + + // ShippingEligible: Output only. Indicates if the region is eligible to + // use in the Shipping Services configuration. + ShippingEligible bool `json:"shippingEligible,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisplayName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Region) MarshalJSON() ([]byte, error) { + type NoMethod Region + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RegionGeoTargetArea: A list of geotargets that defines the region +// area. +type RegionGeoTargetArea struct { + // GeotargetCriteriaIds: Required. A non-empty list of [location + // IDs](https://developers.google.com/adwords/api/docs/appendix/geotarget + // ing). They must all be of the same location type (e.g., state). + GeotargetCriteriaIds googleapi.Int64s `json:"geotargetCriteriaIds,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "GeotargetCriteriaIds") to unconditionally include in API requests. + // By default, fields with empty values are omitted from API requests. + // However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GeotargetCriteriaIds") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *RegionGeoTargetArea) MarshalJSON() ([]byte, error) { + type NoMethod RegionGeoTargetArea + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RegionPostalCodeArea: A list of postal codes that defines the region +// area. Note: All regions defined using postal codes are accessible via +// the account's `ShippingSettings.postalCodeGroups` resource. +type RegionPostalCodeArea struct { + // PostalCodes: Required. A range of postal codes. + PostalCodes []*RegionPostalCodeAreaPostalCodeRange `json:"postalCodes,omitempty"` + + // RegionCode: Required. CLDR territory code or the country the postal + // code group applies to. + RegionCode string `json:"regionCode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PostalCodes") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PostalCodes") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RegionPostalCodeArea) MarshalJSON() ([]byte, error) { + type NoMethod RegionPostalCodeArea + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RegionPostalCodeAreaPostalCodeRange: A range of postal codes that +// defines the region area. +type RegionPostalCodeAreaPostalCodeRange struct { + // Begin: Required. A postal code or a pattern of the form prefix* + // denoting the inclusive lower bound of the range defining the area. + // Examples values: "94108", "9410*", "9*". + Begin string `json:"begin,omitempty"` + + // End: Optional. A postal code or a pattern of the form prefix* + // denoting the inclusive upper bound of the range defining the area. It + // must have the same length as postalCodeRangeBegin: if + // postalCodeRangeBegin is a postal code then postalCodeRangeEnd must be + // a postal code too; if postalCodeRangeBegin is a pattern then + // postalCodeRangeEnd must be a pattern with the same prefix length. + // Optional: if not set, then the area is defined as being all the + // postal codes matching postalCodeRangeBegin. + End string `json:"end,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Begin") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Begin") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RegionPostalCodeAreaPostalCodeRange) MarshalJSON() ([]byte, error) { + type NoMethod RegionPostalCodeAreaPostalCodeRange + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // RegionalInventory: Regional inventory resource. contains the regional // name and all attributes which are overridden for the specified // region. @@ -11302,15 +11869,15 @@ func (s *RepricingRuleRestriction) MarshalJSON() ([]byte, error) { type RepricingRuleRestrictionBoundary struct { // PercentageDelta: The percentage delta relative to the offer selling // price. This field is signed. It must be negative in floor. When it is - // used in floor, it should be > -100. If an offer is selling at $10 and - // this field is -30 in floor, the repricing rule only applies if the - // calculated new price is >= $7. + // used in floor, it should be > -100. For example, if an offer is + // selling at $10 and this field is -30 in floor, the repricing rule + // only applies if the calculated new price is >= $7. PercentageDelta int64 `json:"percentageDelta,omitempty"` // PriceDelta: The price micros relative to the offer selling price. - // This field is signed. It must be negative in floor. If an offer is - // selling at $10 and this field is -$2 in floor, the repricing rule - // only applies if the calculated new price is >= $8. + // This field is signed. It must be negative in floor. For example, if + // an offer is selling at $10 and this field is -$2 in floor, the + // repricing rule only applies if the calculated new price is >= $8. PriceDelta string `json:"priceDelta,omitempty"` // ForceSendFields is a list of field names (e.g. "PercentageDelta") to @@ -11722,12 +12289,12 @@ type ReturnaddressCustomBatchRequestEntry struct { // "delete" - "get" - "insert" Method string `json:"method,omitempty"` - // ReturnAddress: The return address to submit. Set this only if the - // method is `insert`. + // ReturnAddress: The return address to submit. This should be set only + // if the method is `insert`. ReturnAddress *ReturnAddress `json:"returnAddress,omitempty"` - // ReturnAddressId: The return address ID. Set this only if the method - // is `delete` or `get`. + // ReturnAddressId: The return address ID. This should be set only if + // the method is `delete` or `get`. ReturnAddressId string `json:"returnAddressId,omitempty"` // ForceSendFields is a list of field names (e.g. "BatchId") to @@ -11901,12 +12468,12 @@ type ReturnpolicyCustomBatchRequestEntry struct { // "delete" - "get" - "insert" Method string `json:"method,omitempty"` - // ReturnPolicy: The return policy to submit. Set this only if the - // method is `insert`. + // ReturnPolicy: The return policy to submit. This should be set only if + // the method is `insert`. ReturnPolicy *ReturnPolicy `json:"returnPolicy,omitempty"` - // ReturnPolicyId: The return policy ID. Set this only if the method is - // `delete` or `get`. + // ReturnPolicyId: The return policy ID. This should be set only if the + // method is `delete` or `get`. ReturnPolicyId string `json:"returnPolicyId,omitempty"` // ForceSendFields is a list of field names (e.g. "BatchId") to @@ -13325,6 +13892,39 @@ func (s *TestOrderPickupDetailsPickupPerson) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TimeZone: Represents a time zone from the [IANA Time Zone +// Database](https://www.iana.org/time-zones). +type TimeZone struct { + // Id: IANA Time Zone Database time zone, e.g. "America/New_York". + Id string `json:"id,omitempty"` + + // Version: Optional. IANA Time Zone Database version number, e.g. + // "2019a". + Version string `json:"version,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Id") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Id") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TimeZone) MarshalJSON() ([]byte, error) { + type NoMethod TimeZone + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type TransitTable struct { // PostalCodeGroupNames: A list of postal group names. The last value // can be "all other locations". Example: `["zone 1", "zone 2", "all @@ -13663,7 +14263,7 @@ func (c *AccountsAuthinfoCall) Header() http.Header { func (c *AccountsAuthinfoCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13794,7 +14394,7 @@ func (c *AccountsClaimwebsiteCall) Header() http.Header { func (c *AccountsClaimwebsiteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13939,7 +14539,7 @@ func (c *AccountsCustombatchCall) Header() http.Header { func (c *AccountsCustombatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14073,7 +14673,7 @@ func (c *AccountsDeleteCall) Header() http.Header { func (c *AccountsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14215,7 +14815,7 @@ func (c *AccountsGetCall) Header() http.Header { func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14372,7 +14972,7 @@ func (c *AccountsInsertCall) Header() http.Header { func (c *AccountsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14515,7 +15115,7 @@ func (c *AccountsLinkCall) Header() http.Header { func (c *AccountsLinkCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14706,7 +15306,7 @@ func (c *AccountsListCall) Header() http.Header { func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14918,7 +15518,7 @@ func (c *AccountsListlinksCall) Header() http.Header { func (c *AccountsListlinksCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15097,7 +15697,7 @@ func (c *AccountsUpdateCall) Header() http.Header { func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15249,7 +15849,7 @@ func (c *AccountsUpdatelabelsCall) Header() http.Header { func (c *AccountsUpdatelabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15398,7 +15998,7 @@ func (c *AccountsLabelsCreateCall) Header() http.Header { func (c *AccountsLabelsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15539,7 +16139,7 @@ func (c *AccountsLabelsDeleteCall) Header() http.Header { func (c *AccountsLabelsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15680,7 +16280,7 @@ func (c *AccountsLabelsListCall) Header() http.Header { func (c *AccountsLabelsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15849,7 +16449,7 @@ func (c *AccountsLabelsPatchCall) Header() http.Header { func (c *AccountsLabelsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15997,7 +16597,7 @@ func (c *AccountstatusesCustombatchCall) Header() http.Header { func (c *AccountstatusesCustombatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16145,7 +16745,7 @@ func (c *AccountstatusesGetCall) Header() http.Header { func (c *AccountstatusesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16328,7 +16928,7 @@ func (c *AccountstatusesListCall) Header() http.Header { func (c *AccountstatusesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16500,7 +17100,7 @@ func (c *AccounttaxCustombatchCall) Header() http.Header { func (c *AccounttaxCustombatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16638,7 +17238,7 @@ func (c *AccounttaxGetCall) Header() http.Header { func (c *AccounttaxGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16806,7 +17406,7 @@ func (c *AccounttaxListCall) Header() http.Header { func (c *AccounttaxListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16976,7 +17576,7 @@ func (c *AccounttaxUpdateCall) Header() http.Header { func (c *AccounttaxUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17136,7 +17736,7 @@ func (c *CssesGetCall) Header() http.Header { func (c *CssesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17307,7 +17907,7 @@ func (c *CssesListCall) Header() http.Header { func (c *CssesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17477,7 +18077,7 @@ func (c *CssesUpdatelabelsCall) Header() http.Header { func (c *CssesUpdatelabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17625,7 +18225,7 @@ func (c *DatafeedsCustombatchCall) Header() http.Header { func (c *DatafeedsCustombatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17753,7 +18353,7 @@ func (c *DatafeedsDeleteCall) Header() http.Header { func (c *DatafeedsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17832,7 +18432,8 @@ type DatafeedsFetchnowCall struct { } // Fetchnow: Invokes a fetch for the datafeed in your Merchant Center -// account. +// account. If you need to call this method more than once per day, we +// recommend you use the Products service to update your product data. func (r *DatafeedsService) Fetchnow(merchantId uint64, datafeedId uint64) *DatafeedsFetchnowCall { c := &DatafeedsFetchnowCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -17867,7 +18468,7 @@ func (c *DatafeedsFetchnowCall) Header() http.Header { func (c *DatafeedsFetchnowCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17927,7 +18528,7 @@ func (c *DatafeedsFetchnowCall) Do(opts ...googleapi.CallOption) (*DatafeedsFetc } return ret, nil // { - // "description": "Invokes a fetch for the datafeed in your Merchant Center account.", + // "description": "Invokes a fetch for the datafeed in your Merchant Center account. If you need to call this method more than once per day, we recommend you use the Products service to update your product data.", // "flatPath": "content/v2.1/{merchantId}/datafeeds/{datafeedId}/fetchNow", // "httpMethod": "POST", // "id": "content.datafeeds.fetchnow", @@ -18020,7 +18621,7 @@ func (c *DatafeedsGetCall) Header() http.Header { func (c *DatafeedsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18165,7 +18766,7 @@ func (c *DatafeedsInsertCall) Header() http.Header { func (c *DatafeedsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18329,7 +18930,7 @@ func (c *DatafeedsListCall) Header() http.Header { func (c *DatafeedsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18500,7 +19101,7 @@ func (c *DatafeedsUpdateCall) Header() http.Header { func (c *DatafeedsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18648,7 +19249,7 @@ func (c *DatafeedstatusesCustombatchCall) Header() http.Header { func (c *DatafeedstatusesCustombatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18808,7 +19409,7 @@ func (c *DatafeedstatusesGetCall) Header() http.Header { func (c *DatafeedstatusesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18986,7 +19587,7 @@ func (c *DatafeedstatusesListCall) Header() http.Header { func (c *DatafeedstatusesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19152,7 +19753,7 @@ func (c *LiasettingsCustombatchCall) Header() http.Header { func (c *LiasettingsCustombatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19290,7 +19891,7 @@ func (c *LiasettingsGetCall) Header() http.Header { func (c *LiasettingsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19446,7 +20047,7 @@ func (c *LiasettingsGetaccessiblegmbaccountsCall) Header() http.Header { func (c *LiasettingsGetaccessiblegmbaccountsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19616,7 +20217,7 @@ func (c *LiasettingsListCall) Header() http.Header { func (c *LiasettingsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19791,7 +20392,7 @@ func (c *LiasettingsListposdataprovidersCall) Header() http.Header { func (c *LiasettingsListposdataprovidersCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19881,16 +20482,10 @@ type LiasettingsRequestgmbaccessCall struct { // Requestgmbaccess: Requests access to a specified Google My Business // account. -func (r *LiasettingsService) Requestgmbaccess(merchantId uint64, accountId uint64) *LiasettingsRequestgmbaccessCall { +func (r *LiasettingsService) Requestgmbaccess(merchantId uint64, accountId uint64, gmbEmail string) *LiasettingsRequestgmbaccessCall { c := &LiasettingsRequestgmbaccessCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId c.accountId = accountId - return c -} - -// GmbEmail sets the optional parameter "gmbEmail": The email of the -// Google My Business account. -func (c *LiasettingsRequestgmbaccessCall) GmbEmail(gmbEmail string) *LiasettingsRequestgmbaccessCall { c.urlParams_.Set("gmbEmail", gmbEmail) return c } @@ -19922,7 +20517,7 @@ func (c *LiasettingsRequestgmbaccessCall) Header() http.Header { func (c *LiasettingsRequestgmbaccessCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19989,7 +20584,8 @@ func (c *LiasettingsRequestgmbaccessCall) Do(opts ...googleapi.CallOption) (*Lia // "id": "content.liasettings.requestgmbaccess", // "parameterOrder": [ // "merchantId", - // "accountId" + // "accountId", + // "gmbEmail" // ], // "parameters": { // "accountId": { @@ -20002,6 +20598,7 @@ func (c *LiasettingsRequestgmbaccessCall) Do(opts ...googleapi.CallOption) (*Lia // "gmbEmail": { // "description": "The email of the Google My Business account.", // "location": "query", + // "required": true, // "type": "string" // }, // "merchantId": { @@ -20072,7 +20669,7 @@ func (c *LiasettingsRequestinventoryverificationCall) Header() http.Header { func (c *LiasettingsRequestinventoryverificationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20190,38 +20787,14 @@ type LiasettingsSetinventoryverificationcontactCall struct { // Setinventoryverificationcontact: Sets the inventory verification // contract for the specified country. -func (r *LiasettingsService) Setinventoryverificationcontact(merchantId uint64, accountId uint64) *LiasettingsSetinventoryverificationcontactCall { +func (r *LiasettingsService) Setinventoryverificationcontact(merchantId uint64, accountId uint64, country string, language string, contactName string, contactEmail string) *LiasettingsSetinventoryverificationcontactCall { c := &LiasettingsSetinventoryverificationcontactCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId c.accountId = accountId - return c -} - -// ContactEmail sets the optional parameter "contactEmail": The email of -// the inventory verification contact. -func (c *LiasettingsSetinventoryverificationcontactCall) ContactEmail(contactEmail string) *LiasettingsSetinventoryverificationcontactCall { - c.urlParams_.Set("contactEmail", contactEmail) - return c -} - -// ContactName sets the optional parameter "contactName": The name of -// the inventory verification contact. -func (c *LiasettingsSetinventoryverificationcontactCall) ContactName(contactName string) *LiasettingsSetinventoryverificationcontactCall { - c.urlParams_.Set("contactName", contactName) - return c -} - -// Country sets the optional parameter "country": The country for which -// inventory verification is requested. -func (c *LiasettingsSetinventoryverificationcontactCall) Country(country string) *LiasettingsSetinventoryverificationcontactCall { c.urlParams_.Set("country", country) - return c -} - -// Language sets the optional parameter "language": The language for -// which inventory verification is requested. -func (c *LiasettingsSetinventoryverificationcontactCall) Language(language string) *LiasettingsSetinventoryverificationcontactCall { c.urlParams_.Set("language", language) + c.urlParams_.Set("contactName", contactName) + c.urlParams_.Set("contactEmail", contactEmail) return c } @@ -20252,7 +20825,7 @@ func (c *LiasettingsSetinventoryverificationcontactCall) Header() http.Header { func (c *LiasettingsSetinventoryverificationcontactCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20320,7 +20893,11 @@ func (c *LiasettingsSetinventoryverificationcontactCall) Do(opts ...googleapi.Ca // "id": "content.liasettings.setinventoryverificationcontact", // "parameterOrder": [ // "merchantId", - // "accountId" + // "accountId", + // "country", + // "language", + // "contactName", + // "contactEmail" // ], // "parameters": { // "accountId": { @@ -20333,21 +20910,25 @@ func (c *LiasettingsSetinventoryverificationcontactCall) Do(opts ...googleapi.Ca // "contactEmail": { // "description": "The email of the inventory verification contact.", // "location": "query", + // "required": true, // "type": "string" // }, // "contactName": { // "description": "The name of the inventory verification contact.", // "location": "query", + // "required": true, // "type": "string" // }, // "country": { // "description": "The country for which inventory verification is requested.", // "location": "query", + // "required": true, // "type": "string" // }, // "language": { // "description": "The language for which inventory verification is requested.", // "location": "query", + // "required": true, // "type": "string" // }, // "merchantId": { @@ -20382,16 +20963,10 @@ type LiasettingsSetposdataproviderCall struct { // Setposdataprovider: Sets the POS data provider for the specified // country. -func (r *LiasettingsService) Setposdataprovider(merchantId uint64, accountId uint64) *LiasettingsSetposdataproviderCall { +func (r *LiasettingsService) Setposdataprovider(merchantId uint64, accountId uint64, country string) *LiasettingsSetposdataproviderCall { c := &LiasettingsSetposdataproviderCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId c.accountId = accountId - return c -} - -// Country sets the optional parameter "country": The country for which -// the POS data provider is selected. -func (c *LiasettingsSetposdataproviderCall) Country(country string) *LiasettingsSetposdataproviderCall { c.urlParams_.Set("country", country) return c } @@ -20438,7 +21013,7 @@ func (c *LiasettingsSetposdataproviderCall) Header() http.Header { func (c *LiasettingsSetposdataproviderCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20505,7 +21080,8 @@ func (c *LiasettingsSetposdataproviderCall) Do(opts ...googleapi.CallOption) (*L // "id": "content.liasettings.setposdataprovider", // "parameterOrder": [ // "merchantId", - // "accountId" + // "accountId", + // "country" // ], // "parameters": { // "accountId": { @@ -20518,6 +21094,7 @@ func (c *LiasettingsSetposdataproviderCall) Do(opts ...googleapi.CallOption) (*L // "country": { // "description": "The country for which the POS data provider is selected.", // "location": "query", + // "required": true, // "type": "string" // }, // "merchantId": { @@ -20599,7 +21176,7 @@ func (c *LiasettingsUpdateCall) Header() http.Header { func (c *LiasettingsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20747,7 +21324,7 @@ func (c *LocalinventoryCustombatchCall) Header() http.Header { func (c *LocalinventoryCustombatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20878,7 +21455,7 @@ func (c *LocalinventoryInsertCall) Header() http.Header { func (c *LocalinventoryInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21029,7 +21606,7 @@ func (c *OrderinvoicesCreatechargeinvoiceCall) Header() http.Header { func (c *OrderinvoicesCreatechargeinvoiceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21185,7 +21762,7 @@ func (c *OrderinvoicesCreaterefundinvoiceCall) Header() http.Header { func (c *OrderinvoicesCreaterefundinvoiceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21375,7 +21952,7 @@ func (c *OrderreportsListdisbursementsCall) Header() http.Header { func (c *OrderreportsListdisbursementsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21595,7 +22172,7 @@ func (c *OrderreportsListtransactionsCall) Header() http.Header { func (c *OrderreportsListtransactionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21783,7 +22360,7 @@ func (c *OrderreturnsAcknowledgeCall) Header() http.Header { func (c *OrderreturnsAcknowledgeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21931,7 +22508,7 @@ func (c *OrderreturnsCreateorderreturnCall) Header() http.Header { func (c *OrderreturnsCreateorderreturnCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22083,7 +22660,7 @@ func (c *OrderreturnsGetCall) Header() http.Header { func (c *OrderreturnsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22360,7 +22937,7 @@ func (c *OrderreturnsListCall) Header() http.Header { func (c *OrderreturnsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22621,7 +23198,7 @@ func (c *OrderreturnsProcessCall) Header() http.Header { func (c *OrderreturnsProcessCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22771,7 +23348,7 @@ func (c *OrdersAcknowledgeCall) Header() http.Header { func (c *OrdersAcknowledgeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22920,7 +23497,7 @@ func (c *OrdersAdvancetestorderCall) Header() http.Header { func (c *OrdersAdvancetestorderCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23062,7 +23639,7 @@ func (c *OrdersCancelCall) Header() http.Header { func (c *OrdersCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23212,7 +23789,7 @@ func (c *OrdersCancellineitemCall) Header() http.Header { func (c *OrdersCancellineitemCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23363,7 +23940,7 @@ func (c *OrdersCanceltestorderbycustomerCall) Header() http.Header { func (c *OrdersCanceltestorderbycustomerCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23512,7 +24089,7 @@ func (c *OrdersCreatetestorderCall) Header() http.Header { func (c *OrdersCreatetestorderCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23654,7 +24231,7 @@ func (c *OrdersCreatetestreturnCall) Header() http.Header { func (c *OrdersCreatetestreturnCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23813,7 +24390,7 @@ func (c *OrdersGetCall) Header() http.Header { func (c *OrdersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23967,7 +24544,7 @@ func (c *OrdersGetbymerchantorderidCall) Header() http.Header { func (c *OrdersGetbymerchantorderidCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24130,7 +24707,7 @@ func (c *OrdersGettestordertemplateCall) Header() http.Header { func (c *OrdersGettestordertemplateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24306,7 +24883,7 @@ func (c *OrdersInstorerefundlineitemCall) Header() http.Header { func (c *OrdersInstorerefundlineitemCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24537,7 +25114,7 @@ func (c *OrdersListCall) Header() http.Header { func (c *OrdersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24758,7 +25335,7 @@ func (c *OrdersRefunditemCall) Header() http.Header { func (c *OrdersRefunditemCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24908,7 +25485,7 @@ func (c *OrdersRefundorderCall) Header() http.Header { func (c *OrdersRefundorderCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25058,7 +25635,7 @@ func (c *OrdersRejectreturnlineitemCall) Header() http.Header { func (c *OrdersRejectreturnlineitemCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25216,7 +25793,7 @@ func (c *OrdersReturnrefundlineitemCall) Header() http.Header { func (c *OrdersReturnrefundlineitemCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25372,7 +25949,7 @@ func (c *OrdersSetlineitemmetadataCall) Header() http.Header { func (c *OrdersSetlineitemmetadataCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25523,7 +26100,7 @@ func (c *OrdersShiplineitemsCall) Header() http.Header { func (c *OrdersShiplineitemsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25674,7 +26251,7 @@ func (c *OrdersUpdatelineitemshippingdetailsCall) Header() http.Header { func (c *OrdersUpdatelineitemshippingdetailsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25827,7 +26404,7 @@ func (c *OrdersUpdatemerchantorderidCall) Header() http.Header { func (c *OrdersUpdatemerchantorderidCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25979,7 +26556,7 @@ func (c *OrdersUpdateshipmentCall) Header() http.Header { func (c *OrdersUpdateshipmentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26081,27 +26658,29 @@ func (c *OrdersUpdateshipmentCall) Do(opts ...googleapi.CallOption) (*OrdersUpda } -// method id "content.pos.custombatch": +// method id "content.ordertrackingsignals.create": -type PosCustombatchCall struct { - s *APIService - poscustombatchrequest *PosCustomBatchRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrdertrackingsignalsCreateCall struct { + s *APIService + merchantId int64 + ordertrackingsignal *OrderTrackingSignal + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Custombatch: Batches multiple POS-related calls in a single request. -func (r *PosService) Custombatch(poscustombatchrequest *PosCustomBatchRequest) *PosCustombatchCall { - c := &PosCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.poscustombatchrequest = poscustombatchrequest +// Create: Creates new order tracking signal. +func (r *OrdertrackingsignalsService) Create(merchantId int64, ordertrackingsignal *OrderTrackingSignal) *OrdertrackingsignalsCreateCall { + c := &OrdertrackingsignalsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.merchantId = merchantId + c.ordertrackingsignal = ordertrackingsignal return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *PosCustombatchCall) Fields(s ...googleapi.Field) *PosCustombatchCall { +func (c *OrdertrackingsignalsCreateCall) Fields(s ...googleapi.Field) *OrdertrackingsignalsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -26109,53 +26688,56 @@ func (c *PosCustombatchCall) Fields(s ...googleapi.Field) *PosCustombatchCall { // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *PosCustombatchCall) Context(ctx context.Context) *PosCustombatchCall { +func (c *OrdertrackingsignalsCreateCall) Context(ctx context.Context) *OrdertrackingsignalsCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *PosCustombatchCall) Header() http.Header { +func (c *OrdertrackingsignalsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PosCustombatchCall) doRequest(alt string) (*http.Response, error) { +func (c *OrdertrackingsignalsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.poscustombatchrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordertrackingsignal) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2.1/pos/batch") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2.1/{merchantId}/ordertrackingsignals") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "merchantId": strconv.FormatInt(c.merchantId, 10), + }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "content.pos.custombatch" call. -// Exactly one of *PosCustomBatchResponse or error will be non-nil. Any +// Do executes the "content.ordertrackingsignals.create" call. +// Exactly one of *OrderTrackingSignal or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either -// *PosCustomBatchResponse.ServerResponse.Header or (if a response was +// *OrderTrackingSignal.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *PosCustombatchCall) Do(opts ...googleapi.CallOption) (*PosCustomBatchResponse, error) { +func (c *OrdertrackingsignalsCreateCall) Do(opts ...googleapi.CallOption) (*OrderTrackingSignal, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -26174,7 +26756,7 @@ func (c *PosCustombatchCall) Do(opts ...googleapi.CallOption) (*PosCustomBatchRe if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &PosCustomBatchResponse{ + ret := &OrderTrackingSignal{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -26186,18 +26768,28 @@ func (c *PosCustombatchCall) Do(opts ...googleapi.CallOption) (*PosCustomBatchRe } return ret, nil // { - // "description": "Batches multiple POS-related calls in a single request.", - // "flatPath": "content/v2.1/pos/batch", + // "description": "Creates new order tracking signal.", + // "flatPath": "content/v2.1/{merchantId}/ordertrackingsignals", // "httpMethod": "POST", - // "id": "content.pos.custombatch", - // "parameterOrder": [], - // "parameters": {}, - // "path": "content/v2.1/pos/batch", + // "id": "content.ordertrackingsignals.create", + // "parameterOrder": [ + // "merchantId" + // ], + // "parameters": { + // "merchantId": { + // "description": "The ID of the merchant for which the order signal is created.", + // "format": "int64", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "content/v2.1/{merchantId}/ordertrackingsignals", // "request": { - // "$ref": "PosCustomBatchRequest" + // "$ref": "OrderTrackingSignal" // }, // "response": { - // "$ref": "PosCustomBatchResponse" + // "$ref": "OrderTrackingSignal" // }, // "scopes": [ // "https://www.googleapis.com/auth/content" @@ -26206,31 +26798,27 @@ func (c *PosCustombatchCall) Do(opts ...googleapi.CallOption) (*PosCustomBatchRe } -// method id "content.pos.delete": +// method id "content.pos.custombatch": -type PosDeleteCall struct { - s *APIService - merchantId uint64 - targetMerchantId uint64 - storeCode string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type PosCustombatchCall struct { + s *APIService + poscustombatchrequest *PosCustomBatchRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a store for the given merchant. -func (r *PosService) Delete(merchantId uint64, targetMerchantId uint64, storeCode string) *PosDeleteCall { - c := &PosDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.merchantId = merchantId - c.targetMerchantId = targetMerchantId - c.storeCode = storeCode +// Custombatch: Batches multiple POS-related calls in a single request. +func (r *PosService) Custombatch(poscustombatchrequest *PosCustomBatchRequest) *PosCustombatchCall { + c := &PosCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.poscustombatchrequest = poscustombatchrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *PosDeleteCall) Fields(s ...googleapi.Field) *PosDeleteCall { +func (c *PosCustombatchCall) Fields(s ...googleapi.Field) *PosCustombatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -26238,90 +26826,96 @@ func (c *PosDeleteCall) Fields(s ...googleapi.Field) *PosDeleteCall { // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *PosDeleteCall) Context(ctx context.Context) *PosDeleteCall { +func (c *PosCustombatchCall) Context(ctx context.Context) *PosCustombatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *PosDeleteCall) Header() http.Header { +func (c *PosCustombatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PosDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *PosCustombatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.poscustombatchrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2.1/pos/batch") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "merchantId": strconv.FormatUint(c.merchantId, 10), - "targetMerchantId": strconv.FormatUint(c.targetMerchantId, 10), - "storeCode": c.storeCode, - }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "content.pos.delete" call. -func (c *PosDeleteCall) Do(opts ...googleapi.CallOption) error { +// Do executes the "content.pos.custombatch" call. +// Exactly one of *PosCustomBatchResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *PosCustomBatchResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *PosCustombatchCall) Do(opts ...googleapi.CallOption) (*PosCustomBatchResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } if err != nil { - return err + return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return nil, err } - return nil + ret := &PosCustomBatchResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil // { - // "description": "Deletes a store for the given merchant.", - // "flatPath": "content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}", - // "httpMethod": "DELETE", - // "id": "content.pos.delete", - // "parameterOrder": [ - // "merchantId", - // "targetMerchantId", - // "storeCode" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the POS or inventory data provider.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "storeCode": { - // "description": "A store code that is unique per merchant.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "targetMerchantId": { - // "description": "The ID of the target merchant.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } + // "description": "Batches multiple POS-related calls in a single request.", + // "flatPath": "content/v2.1/pos/batch", + // "httpMethod": "POST", + // "id": "content.pos.custombatch", + // "parameterOrder": [], + // "parameters": {}, + // "path": "content/v2.1/pos/batch", + // "request": { + // "$ref": "PosCustomBatchRequest" + // }, + // "response": { + // "$ref": "PosCustomBatchResponse" // }, - // "path": "content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}", // "scopes": [ // "https://www.googleapis.com/auth/content" // ] @@ -26329,22 +26923,21 @@ func (c *PosDeleteCall) Do(opts ...googleapi.CallOption) error { } -// method id "content.pos.get": +// method id "content.pos.delete": -type PosGetCall struct { +type PosDeleteCall struct { s *APIService merchantId uint64 targetMerchantId uint64 storeCode string urlParams_ gensupport.URLParams - ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Get: Retrieves information about the given store. -func (r *PosService) Get(merchantId uint64, targetMerchantId uint64, storeCode string) *PosGetCall { - c := &PosGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Delete: Deletes a store for the given merchant. +func (r *PosService) Delete(merchantId uint64, targetMerchantId uint64, storeCode string) *PosDeleteCall { + c := &PosDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId c.targetMerchantId = targetMerchantId c.storeCode = storeCode @@ -26354,54 +26947,41 @@ func (r *PosService) Get(merchantId uint64, targetMerchantId uint64, storeCode s // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *PosGetCall) Fields(s ...googleapi.Field) *PosGetCall { +func (c *PosDeleteCall) Fields(s ...googleapi.Field) *PosDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *PosGetCall) IfNoneMatch(entityTag string) *PosGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *PosGetCall) Context(ctx context.Context) *PosGetCall { +func (c *PosDeleteCall) Context(ctx context.Context) *PosDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *PosGetCall) Header() http.Header { +func (c *PosDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PosGetCall) doRequest(alt string) (*http.Response, error) { +func (c *PosDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -26414,48 +26994,185 @@ func (c *PosGetCall) doRequest(alt string) (*http.Response, error) { return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "content.pos.get" call. -// Exactly one of *PosStore or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *PosStore.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *PosGetCall) Do(opts ...googleapi.CallOption) (*PosStore, error) { +// Do executes the "content.pos.delete" call. +func (c *PosDeleteCall) Do(opts ...googleapi.CallOption) error { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, &googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - } - } if err != nil { - return nil, err + return err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - ret := &PosStore{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err + return err } - return ret, nil + return nil // { - // "description": "Retrieves information about the given store.", + // "description": "Deletes a store for the given merchant.", // "flatPath": "content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}", - // "httpMethod": "GET", - // "id": "content.pos.get", + // "httpMethod": "DELETE", + // "id": "content.pos.delete", + // "parameterOrder": [ + // "merchantId", + // "targetMerchantId", + // "storeCode" + // ], + // "parameters": { + // "merchantId": { + // "description": "The ID of the POS or inventory data provider.", + // "format": "uint64", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "storeCode": { + // "description": "A store code that is unique per merchant.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "targetMerchantId": { + // "description": "The ID of the target merchant.", + // "format": "uint64", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}", + // "scopes": [ + // "https://www.googleapis.com/auth/content" + // ] + // } + +} + +// method id "content.pos.get": + +type PosGetCall struct { + s *APIService + merchantId uint64 + targetMerchantId uint64 + storeCode string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Retrieves information about the given store. +func (r *PosService) Get(merchantId uint64, targetMerchantId uint64, storeCode string) *PosGetCall { + c := &PosGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.merchantId = merchantId + c.targetMerchantId = targetMerchantId + c.storeCode = storeCode + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *PosGetCall) Fields(s ...googleapi.Field) *PosGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *PosGetCall) IfNoneMatch(entityTag string) *PosGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *PosGetCall) Context(ctx context.Context) *PosGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *PosGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PosGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "merchantId": strconv.FormatUint(c.merchantId, 10), + "targetMerchantId": strconv.FormatUint(c.targetMerchantId, 10), + "storeCode": c.storeCode, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "content.pos.get" call. +// Exactly one of *PosStore or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *PosStore.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *PosGetCall) Do(opts ...googleapi.CallOption) (*PosStore, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &PosStore{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Retrieves information about the given store.", + // "flatPath": "content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}", + // "httpMethod": "GET", + // "id": "content.pos.get", // "parameterOrder": [ // "merchantId", // "targetMerchantId", @@ -26542,7 +27259,7 @@ func (c *PosInsertCall) Header() http.Header { func (c *PosInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26693,7 +27410,7 @@ func (c *PosInventoryCall) Header() http.Header { func (c *PosInventoryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26853,7 +27570,7 @@ func (c *PosListCall) Header() http.Header { func (c *PosListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26999,7 +27716,7 @@ func (c *PosSaleCall) Header() http.Header { func (c *PosSaleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27147,7 +27864,7 @@ func (c *ProductsCustombatchCall) Header() http.Header { func (c *ProductsCustombatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27281,7 +27998,7 @@ func (c *ProductsDeleteCall) Header() http.Header { func (c *ProductsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27410,7 +28127,7 @@ func (c *ProductsGetCall) Header() http.Header { func (c *ProductsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27562,7 +28279,7 @@ func (c *ProductsInsertCall) Header() http.Header { func (c *ProductsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27734,7 +28451,7 @@ func (c *ProductsListCall) Header() http.Header { func (c *ProductsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27900,7 +28617,7 @@ func (c *ProductstatusesCustombatchCall) Header() http.Header { func (c *ProductstatusesCustombatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28047,7 +28764,7 @@ func (c *ProductstatusesGetCall) Header() http.Header { func (c *ProductstatusesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28229,7 +28946,7 @@ func (c *ProductstatusesListCall) Header() http.Header { func (c *ProductstatusesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28412,7 +29129,7 @@ func (c *PubsubnotificationsettingsGetCall) Header() http.Header { func (c *PubsubnotificationsettingsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28549,7 +29266,7 @@ func (c *PubsubnotificationsettingsUpdateCall) Header() http.Header { func (c *PubsubnotificationsettingsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28688,7 +29405,7 @@ func (c *RegionalinventoryCustombatchCall) Header() http.Header { func (c *RegionalinventoryCustombatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28820,7 +29537,7 @@ func (c *RegionalinventoryInsertCall) Header() http.Header { func (c *RegionalinventoryInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28922,6 +29639,782 @@ func (c *RegionalinventoryInsertCall) Do(opts ...googleapi.CallOption) (*Regiona } +// method id "content.regions.create": + +type RegionsCreateCall struct { + s *APIService + merchantId int64 + region *Region + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a region definition in your Merchant Center account. +func (r *RegionsService) Create(merchantId int64, region *Region) *RegionsCreateCall { + c := &RegionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.merchantId = merchantId + c.region = region + return c +} + +// RegionId sets the optional parameter "regionId": Required. The id of +// the region to create. +func (c *RegionsCreateCall) RegionId(regionId string) *RegionsCreateCall { + c.urlParams_.Set("regionId", regionId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *RegionsCreateCall) Fields(s ...googleapi.Field) *RegionsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *RegionsCreateCall) Context(ctx context.Context) *RegionsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *RegionsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.region) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2.1/{merchantId}/regions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "merchantId": strconv.FormatInt(c.merchantId, 10), + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "content.regions.create" call. +// Exactly one of *Region or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Region.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *RegionsCreateCall) Do(opts ...googleapi.CallOption) (*Region, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Region{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a region definition in your Merchant Center account.", + // "flatPath": "content/v2.1/{merchantId}/regions", + // "httpMethod": "POST", + // "id": "content.regions.create", + // "parameterOrder": [ + // "merchantId" + // ], + // "parameters": { + // "merchantId": { + // "description": "Required. The id of the merchant for which to create region definition.", + // "format": "int64", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "regionId": { + // "description": "Required. The id of the region to create.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "content/v2.1/{merchantId}/regions", + // "request": { + // "$ref": "Region" + // }, + // "response": { + // "$ref": "Region" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/content" + // ] + // } + +} + +// method id "content.regions.delete": + +type RegionsDeleteCall struct { + s *APIService + merchantId int64 + regionId string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a region definition from your Merchant Center +// account. +func (r *RegionsService) Delete(merchantId int64, regionId string) *RegionsDeleteCall { + c := &RegionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.merchantId = merchantId + c.regionId = regionId + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *RegionsDeleteCall) Fields(s ...googleapi.Field) *RegionsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *RegionsDeleteCall) Context(ctx context.Context) *RegionsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *RegionsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2.1/{merchantId}/regions/{regionId}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "merchantId": strconv.FormatInt(c.merchantId, 10), + "regionId": c.regionId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "content.regions.delete" call. +func (c *RegionsDeleteCall) Do(opts ...googleapi.CallOption) error { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if err != nil { + return err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return err + } + return nil + // { + // "description": "Deletes a region definition from your Merchant Center account.", + // "flatPath": "content/v2.1/{merchantId}/regions/{regionId}", + // "httpMethod": "DELETE", + // "id": "content.regions.delete", + // "parameterOrder": [ + // "merchantId", + // "regionId" + // ], + // "parameters": { + // "merchantId": { + // "description": "Required. The id of the merchant for which to delete region definition.", + // "format": "int64", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "regionId": { + // "description": "Required. The id of the region to delete.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "content/v2.1/{merchantId}/regions/{regionId}", + // "scopes": [ + // "https://www.googleapis.com/auth/content" + // ] + // } + +} + +// method id "content.regions.get": + +type RegionsGetCall struct { + s *APIService + merchantId int64 + regionId string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Retrieves a region defined in your Merchant Center account. +func (r *RegionsService) Get(merchantId int64, regionId string) *RegionsGetCall { + c := &RegionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.merchantId = merchantId + c.regionId = regionId + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *RegionsGetCall) Fields(s ...googleapi.Field) *RegionsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *RegionsGetCall) IfNoneMatch(entityTag string) *RegionsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *RegionsGetCall) Context(ctx context.Context) *RegionsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *RegionsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2.1/{merchantId}/regions/{regionId}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "merchantId": strconv.FormatInt(c.merchantId, 10), + "regionId": c.regionId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "content.regions.get" call. +// Exactly one of *Region or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Region.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *RegionsGetCall) Do(opts ...googleapi.CallOption) (*Region, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Region{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Retrieves a region defined in your Merchant Center account.", + // "flatPath": "content/v2.1/{merchantId}/regions/{regionId}", + // "httpMethod": "GET", + // "id": "content.regions.get", + // "parameterOrder": [ + // "merchantId", + // "regionId" + // ], + // "parameters": { + // "merchantId": { + // "description": "Required. The id of the merchant for which to retrieve region definition.", + // "format": "int64", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "regionId": { + // "description": "Required. The id of the region to retrieve.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "content/v2.1/{merchantId}/regions/{regionId}", + // "response": { + // "$ref": "Region" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/content" + // ] + // } + +} + +// method id "content.regions.list": + +type RegionsListCall struct { + s *APIService + merchantId int64 + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the regions in your Merchant Center account. +func (r *RegionsService) List(merchantId int64) *RegionsListCall { + c := &RegionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.merchantId = merchantId + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of regions to return. The service may return fewer than this value. +// If unspecified, at most 50 rules will be returned. The maximum value +// is 1000; values above 1000 will be coerced to 1000. +func (c *RegionsListCall) PageSize(pageSize int64) *RegionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListRegions` call. Provide this to retrieve +// the subsequent page. When paginating, all other parameters provided +// to `ListRegions` must match the call that provided the page token. +func (c *RegionsListCall) PageToken(pageToken string) *RegionsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *RegionsListCall) Fields(s ...googleapi.Field) *RegionsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *RegionsListCall) IfNoneMatch(entityTag string) *RegionsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *RegionsListCall) Context(ctx context.Context) *RegionsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *RegionsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2.1/{merchantId}/regions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "merchantId": strconv.FormatInt(c.merchantId, 10), + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "content.regions.list" call. +// Exactly one of *ListRegionsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListRegionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*ListRegionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListRegionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists the regions in your Merchant Center account.", + // "flatPath": "content/v2.1/{merchantId}/regions", + // "httpMethod": "GET", + // "id": "content.regions.list", + // "parameterOrder": [ + // "merchantId" + // ], + // "parameters": { + // "merchantId": { + // "description": "Required. The id of the merchant for which to list region definitions.", + // "format": "int64", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of regions to return. The service may return fewer than this value. If unspecified, at most 50 rules will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `ListRegions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRegions` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "content/v2.1/{merchantId}/regions", + // "response": { + // "$ref": "ListRegionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/content" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *RegionsListCall) Pages(ctx context.Context, f func(*ListRegionsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "content.regions.patch": + +type RegionsPatchCall struct { + s *APIService + merchantId int64 + regionId string + region *Region + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a region definition in your Merchant Center account. +func (r *RegionsService) Patch(merchantId int64, regionId string, region *Region) *RegionsPatchCall { + c := &RegionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.merchantId = merchantId + c.regionId = regionId + c.region = region + return c +} + +// UpdateMask sets the optional parameter "updateMask": The field mask +// indicating the fields to update. +func (c *RegionsPatchCall) UpdateMask(updateMask string) *RegionsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *RegionsPatchCall) Fields(s ...googleapi.Field) *RegionsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *RegionsPatchCall) Context(ctx context.Context) *RegionsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *RegionsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.region) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2.1/{merchantId}/regions/{regionId}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "merchantId": strconv.FormatInt(c.merchantId, 10), + "regionId": c.regionId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "content.regions.patch" call. +// Exactly one of *Region or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Region.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *RegionsPatchCall) Do(opts ...googleapi.CallOption) (*Region, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Region{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a region definition in your Merchant Center account.", + // "flatPath": "content/v2.1/{merchantId}/regions/{regionId}", + // "httpMethod": "PATCH", + // "id": "content.regions.patch", + // "parameterOrder": [ + // "merchantId", + // "regionId" + // ], + // "parameters": { + // "merchantId": { + // "description": "Required. The id of the merchant for which to update region definition.", + // "format": "int64", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "regionId": { + // "description": "Required. The id of the region to update.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Optional. The field mask indicating the fields to update.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "content/v2.1/{merchantId}/regions/{regionId}", + // "request": { + // "$ref": "Region" + // }, + // "response": { + // "$ref": "Region" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/content" + // ] + // } + +} + // method id "content.repricingrules.create": type RepricingrulesCreateCall struct { @@ -28975,7 +30468,7 @@ func (c *RepricingrulesCreateCall) Header() http.Header { func (c *RepricingrulesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29120,7 +30613,7 @@ func (c *RepricingrulesDeleteCall) Header() http.Header { func (c *RepricingrulesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29243,7 +30736,7 @@ func (c *RepricingrulesGetCall) Header() http.Header { func (c *RepricingrulesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29429,7 +30922,7 @@ func (c *RepricingrulesListCall) Header() http.Header { func (c *RepricingrulesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29613,7 +31106,7 @@ func (c *RepricingrulesPatchCall) Header() http.Header { func (c *RepricingrulesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29760,7 +31253,7 @@ func (c *ReturnaddressCustombatchCall) Header() http.Header { func (c *ReturnaddressCustombatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29888,7 +31381,7 @@ func (c *ReturnaddressDeleteCall) Header() http.Header { func (c *ReturnaddressDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30011,7 +31504,7 @@ func (c *ReturnaddressGetCall) Header() http.Header { func (c *ReturnaddressGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30154,7 +31647,7 @@ func (c *ReturnaddressInsertCall) Header() http.Header { func (c *ReturnaddressInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30325,7 +31818,7 @@ func (c *ReturnaddressListCall) Header() http.Header { func (c *ReturnaddressListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30496,7 +31989,7 @@ func (c *ReturnpolicyCustombatchCall) Header() http.Header { func (c *ReturnpolicyCustombatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30624,7 +32117,7 @@ func (c *ReturnpolicyDeleteCall) Header() http.Header { func (c *ReturnpolicyDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30747,7 +32240,7 @@ func (c *ReturnpolicyGetCall) Header() http.Header { func (c *ReturnpolicyGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30890,7 +32383,7 @@ func (c *ReturnpolicyInsertCall) Header() http.Header { func (c *ReturnpolicyInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31039,7 +32532,7 @@ func (c *ReturnpolicyListCall) Header() http.Header { func (c *ReturnpolicyListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31185,7 +32678,7 @@ func (c *SettlementreportsGetCall) Header() http.Header { func (c *SettlementreportsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31370,7 +32863,7 @@ func (c *SettlementreportsListCall) Header() http.Header { func (c *SettlementreportsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31582,7 +33075,7 @@ func (c *SettlementtransactionsListCall) Header() http.Header { func (c *SettlementtransactionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31763,7 +33256,7 @@ func (c *ShippingsettingsCustombatchCall) Header() http.Header { func (c *ShippingsettingsCustombatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31902,7 +33395,7 @@ func (c *ShippingsettingsGetCall) Header() http.Header { func (c *ShippingsettingsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -32056,7 +33549,7 @@ func (c *ShippingsettingsGetsupportedcarriersCall) Header() http.Header { func (c *ShippingsettingsGetsupportedcarriersCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -32202,7 +33695,7 @@ func (c *ShippingsettingsGetsupportedholidaysCall) Header() http.Header { func (c *ShippingsettingsGetsupportedholidaysCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -32349,7 +33842,7 @@ func (c *ShippingsettingsGetsupportedpickupservicesCall) Header() http.Header { func (c *ShippingsettingsGetsupportedpickupservicesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -32511,7 +34004,7 @@ func (c *ShippingsettingsListCall) Header() http.Header { func (c *ShippingsettingsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -32681,7 +34174,7 @@ func (c *ShippingsettingsUpdateCall) Header() http.Header { func (c *ShippingsettingsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/content/v2/content-api.json b/content/v2/content-api.json index 12873d53a66..81ddccff2a1 100644 --- a/content/v2/content-api.json +++ b/content/v2/content-api.json @@ -8,36 +8,64 @@ } } }, - "basePath": "/content/v2/", - "baseUrl": "https://www.googleapis.com/content/v2/", - "batchPath": "batch/content/v2", + "basePath": "", + "baseUrl": "https://shoppingcontent.googleapis.com/", + "batchPath": "batch", "canonicalName": "Shopping Content", - "description": "Manages product items, inventory, and Merchant Center accounts for Google Shopping.", + "description": "Manage your product listings and accounts for Google Shopping", "discoveryVersion": "v1", - "documentationLink": "https://developers.google.com/shopping-content", - "etag": "\"-2NioU2H8y8siEzrBOV_qzRI6kQ/US5teTCwz_1yq1mPJZkDKBZMkOw\"", + "documentationLink": "https://developers.google.com/shopping-content/v2/", + "fullyEncodeReservedExpansion": true, "icons": { - "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", - "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" }, "id": "content:v2", "kind": "discovery#restDescription", + "mtlsRootUrl": "https://shoppingcontent.mtls.googleapis.com/", "name": "content", "ownerDomain": "google.com", "ownerName": "Google", "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, "alt": { "default": "json", - "description": "Data format for the response.", + "description": "Data format for response.", "enum": [ - "json" + "json", + "media", + "proto" ], "enumDescriptions": [ - "Responses with Content-Type of application/json" + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" ], "location": "query", "type": "string" }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, "fields": { "description": "Selector specifying which fields to include in a partial response.", "location": "query", @@ -60,12 +88,17 @@ "type": "boolean" }, "quotaUser": { - "description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.", + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", "location": "query", "type": "string" }, - "userIp": { - "description": "Deprecated. Please use quotaUser instead.", + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", "location": "query", "type": "string" } @@ -76,9 +109,12 @@ "methods": { "authinfo": { "description": "Returns information about the authenticated user.", + "flatPath": "content/v2/accounts/authinfo", "httpMethod": "GET", "id": "content.accounts.authinfo", - "path": "accounts/authinfo", + "parameterOrder": [], + "parameters": {}, + "path": "content/v2/accounts/authinfo", "response": { "$ref": "AccountsAuthInfoResponse" }, @@ -88,6 +124,7 @@ }, "claimwebsite": { "description": "Claims the website of a Merchant Center sub-account.", + "flatPath": "content/v2/{merchantId}/accounts/{accountId}/claimwebsite", "httpMethod": "POST", "id": "content.accounts.claimwebsite", "parameterOrder": [ @@ -115,7 +152,7 @@ "type": "boolean" } }, - "path": "{merchantId}/accounts/{accountId}/claimwebsite", + "path": "content/v2/{merchantId}/accounts/{accountId}/claimwebsite", "response": { "$ref": "AccountsClaimWebsiteResponse" }, @@ -125,8 +162,10 @@ }, "custombatch": { "description": "Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)accounts in a single request.", + "flatPath": "content/v2/accounts/batch", "httpMethod": "POST", "id": "content.accounts.custombatch", + "parameterOrder": [], "parameters": { "dryRun": { "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", @@ -134,7 +173,7 @@ "type": "boolean" } }, - "path": "accounts/batch", + "path": "content/v2/accounts/batch", "request": { "$ref": "AccountsCustomBatchRequest" }, @@ -147,6 +186,7 @@ }, "delete": { "description": "Deletes a Merchant Center sub-account.", + "flatPath": "content/v2/{merchantId}/accounts/{accountId}", "httpMethod": "DELETE", "id": "content.accounts.delete", "parameterOrder": [ @@ -180,13 +220,14 @@ "type": "string" } }, - "path": "{merchantId}/accounts/{accountId}", + "path": "content/v2/{merchantId}/accounts/{accountId}", "scopes": [ "https://www.googleapis.com/auth/content" ] }, "get": { "description": "Retrieves a Merchant Center account.", + "flatPath": "content/v2/{merchantId}/accounts/{accountId}", "httpMethod": "GET", "id": "content.accounts.get", "parameterOrder": [ @@ -209,7 +250,7 @@ "type": "string" } }, - "path": "{merchantId}/accounts/{accountId}", + "path": "content/v2/{merchantId}/accounts/{accountId}", "response": { "$ref": "Account" }, @@ -219,6 +260,7 @@ }, "insert": { "description": "Creates a Merchant Center sub-account.", + "flatPath": "content/v2/{merchantId}/accounts", "httpMethod": "POST", "id": "content.accounts.insert", "parameterOrder": [ @@ -238,7 +280,7 @@ "type": "string" } }, - "path": "{merchantId}/accounts", + "path": "content/v2/{merchantId}/accounts", "request": { "$ref": "Account" }, @@ -251,6 +293,7 @@ }, "link": { "description": "Performs an action on a link between two Merchant Center accounts, namely accountId and linkedAccountId.", + "flatPath": "content/v2/{merchantId}/accounts/{accountId}/link", "httpMethod": "POST", "id": "content.accounts.link", "parameterOrder": [ @@ -273,7 +316,7 @@ "type": "string" } }, - "path": "{merchantId}/accounts/{accountId}/link", + "path": "content/v2/{merchantId}/accounts/{accountId}/link", "request": { "$ref": "AccountsLinkRequest" }, @@ -286,6 +329,7 @@ }, "list": { "description": "Lists the sub-accounts in your Merchant Center account.", + "flatPath": "content/v2/{merchantId}/accounts", "httpMethod": "GET", "id": "content.accounts.list", "parameterOrder": [ @@ -311,7 +355,7 @@ "type": "string" } }, - "path": "{merchantId}/accounts", + "path": "content/v2/{merchantId}/accounts", "response": { "$ref": "AccountsListResponse" }, @@ -321,6 +365,7 @@ }, "update": { "description": "Updates a Merchant Center account. Any fields that are not provided are deleted from the resource.", + "flatPath": "content/v2/{merchantId}/accounts/{accountId}", "httpMethod": "PUT", "id": "content.accounts.update", "parameterOrder": [ @@ -348,7 +393,7 @@ "type": "string" } }, - "path": "{merchantId}/accounts/{accountId}", + "path": "content/v2/{merchantId}/accounts/{accountId}", "request": { "$ref": "Account" }, @@ -365,9 +410,12 @@ "methods": { "custombatch": { "description": "Retrieves multiple Merchant Center account statuses in a single request.", + "flatPath": "content/v2/accountstatuses/batch", "httpMethod": "POST", "id": "content.accountstatuses.custombatch", - "path": "accountstatuses/batch", + "parameterOrder": [], + "parameters": {}, + "path": "content/v2/accountstatuses/batch", "request": { "$ref": "AccountstatusesCustomBatchRequest" }, @@ -380,6 +428,7 @@ }, "get": { "description": "Retrieves the status of a Merchant Center account. No itemLevelIssues are returned for multi-client accounts.", + "flatPath": "content/v2/{merchantId}/accountstatuses/{accountId}", "httpMethod": "GET", "id": "content.accountstatuses.get", "parameterOrder": [ @@ -408,7 +457,7 @@ "type": "string" } }, - "path": "{merchantId}/accountstatuses/{accountId}", + "path": "content/v2/{merchantId}/accountstatuses/{accountId}", "response": { "$ref": "AccountStatus" }, @@ -418,6 +467,7 @@ }, "list": { "description": "Lists the statuses of the sub-accounts in your Merchant Center account.", + "flatPath": "content/v2/{merchantId}/accountstatuses", "httpMethod": "GET", "id": "content.accountstatuses.list", "parameterOrder": [ @@ -449,7 +499,7 @@ "type": "string" } }, - "path": "{merchantId}/accountstatuses", + "path": "content/v2/{merchantId}/accountstatuses", "response": { "$ref": "AccountstatusesListResponse" }, @@ -463,8 +513,10 @@ "methods": { "custombatch": { "description": "Retrieves and updates tax settings of multiple accounts in a single request.", + "flatPath": "content/v2/accounttax/batch", "httpMethod": "POST", "id": "content.accounttax.custombatch", + "parameterOrder": [], "parameters": { "dryRun": { "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", @@ -472,7 +524,7 @@ "type": "boolean" } }, - "path": "accounttax/batch", + "path": "content/v2/accounttax/batch", "request": { "$ref": "AccounttaxCustomBatchRequest" }, @@ -485,6 +537,7 @@ }, "get": { "description": "Retrieves the tax settings of the account.", + "flatPath": "content/v2/{merchantId}/accounttax/{accountId}", "httpMethod": "GET", "id": "content.accounttax.get", "parameterOrder": [ @@ -507,7 +560,7 @@ "type": "string" } }, - "path": "{merchantId}/accounttax/{accountId}", + "path": "content/v2/{merchantId}/accounttax/{accountId}", "response": { "$ref": "AccountTax" }, @@ -517,6 +570,7 @@ }, "list": { "description": "Lists the tax settings of the sub-accounts in your Merchant Center account.", + "flatPath": "content/v2/{merchantId}/accounttax", "httpMethod": "GET", "id": "content.accounttax.list", "parameterOrder": [ @@ -542,7 +596,7 @@ "type": "string" } }, - "path": "{merchantId}/accounttax", + "path": "content/v2/{merchantId}/accounttax", "response": { "$ref": "AccounttaxListResponse" }, @@ -552,6 +606,7 @@ }, "update": { "description": "Updates the tax settings of the account. Any fields that are not provided are deleted from the resource.", + "flatPath": "content/v2/{merchantId}/accounttax/{accountId}", "httpMethod": "PUT", "id": "content.accounttax.update", "parameterOrder": [ @@ -579,7 +634,7 @@ "type": "string" } }, - "path": "{merchantId}/accounttax/{accountId}", + "path": "content/v2/{merchantId}/accounttax/{accountId}", "request": { "$ref": "AccountTax" }, @@ -596,8 +651,10 @@ "methods": { "custombatch": { "description": "Deletes, fetches, gets, inserts and updates multiple datafeeds in a single request.", + "flatPath": "content/v2/datafeeds/batch", "httpMethod": "POST", "id": "content.datafeeds.custombatch", + "parameterOrder": [], "parameters": { "dryRun": { "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", @@ -605,7 +662,7 @@ "type": "boolean" } }, - "path": "datafeeds/batch", + "path": "content/v2/datafeeds/batch", "request": { "$ref": "DatafeedsCustomBatchRequest" }, @@ -618,6 +675,7 @@ }, "delete": { "description": "Deletes a datafeed configuration from your Merchant Center account.", + "flatPath": "content/v2/{merchantId}/datafeeds/{datafeedId}", "httpMethod": "DELETE", "id": "content.datafeeds.delete", "parameterOrder": [ @@ -645,13 +703,14 @@ "type": "string" } }, - "path": "{merchantId}/datafeeds/{datafeedId}", + "path": "content/v2/{merchantId}/datafeeds/{datafeedId}", "scopes": [ "https://www.googleapis.com/auth/content" ] }, "fetchnow": { - "description": "Invokes a fetch for the datafeed in your Merchant Center account.", + "description": "Invokes a fetch for the datafeed in your Merchant Center account. If you need to call this method more than once per day, we recommend you use the Products service to update your product data.", + "flatPath": "content/v2/{merchantId}/datafeeds/{datafeedId}/fetchNow", "httpMethod": "POST", "id": "content.datafeeds.fetchnow", "parameterOrder": [ @@ -679,7 +738,7 @@ "type": "string" } }, - "path": "{merchantId}/datafeeds/{datafeedId}/fetchNow", + "path": "content/v2/{merchantId}/datafeeds/{datafeedId}/fetchNow", "response": { "$ref": "DatafeedsFetchNowResponse" }, @@ -689,6 +748,7 @@ }, "get": { "description": "Retrieves a datafeed configuration from your Merchant Center account.", + "flatPath": "content/v2/{merchantId}/datafeeds/{datafeedId}", "httpMethod": "GET", "id": "content.datafeeds.get", "parameterOrder": [ @@ -711,7 +771,7 @@ "type": "string" } }, - "path": "{merchantId}/datafeeds/{datafeedId}", + "path": "content/v2/{merchantId}/datafeeds/{datafeedId}", "response": { "$ref": "Datafeed" }, @@ -721,6 +781,7 @@ }, "insert": { "description": "Registers a datafeed configuration with your Merchant Center account.", + "flatPath": "content/v2/{merchantId}/datafeeds", "httpMethod": "POST", "id": "content.datafeeds.insert", "parameterOrder": [ @@ -740,7 +801,7 @@ "type": "string" } }, - "path": "{merchantId}/datafeeds", + "path": "content/v2/{merchantId}/datafeeds", "request": { "$ref": "Datafeed" }, @@ -753,6 +814,7 @@ }, "list": { "description": "Lists the configurations for datafeeds in your Merchant Center account.", + "flatPath": "content/v2/{merchantId}/datafeeds", "httpMethod": "GET", "id": "content.datafeeds.list", "parameterOrder": [ @@ -778,7 +840,7 @@ "type": "string" } }, - "path": "{merchantId}/datafeeds", + "path": "content/v2/{merchantId}/datafeeds", "response": { "$ref": "DatafeedsListResponse" }, @@ -788,6 +850,7 @@ }, "update": { "description": "Updates a datafeed configuration of your Merchant Center account. Any fields that are not provided are deleted from the resource.", + "flatPath": "content/v2/{merchantId}/datafeeds/{datafeedId}", "httpMethod": "PUT", "id": "content.datafeeds.update", "parameterOrder": [ @@ -815,7 +878,7 @@ "type": "string" } }, - "path": "{merchantId}/datafeeds/{datafeedId}", + "path": "content/v2/{merchantId}/datafeeds/{datafeedId}", "request": { "$ref": "Datafeed" }, @@ -832,9 +895,12 @@ "methods": { "custombatch": { "description": "Gets multiple Merchant Center datafeed statuses in a single request.", + "flatPath": "content/v2/datafeedstatuses/batch", "httpMethod": "POST", "id": "content.datafeedstatuses.custombatch", - "path": "datafeedstatuses/batch", + "parameterOrder": [], + "parameters": {}, + "path": "content/v2/datafeedstatuses/batch", "request": { "$ref": "DatafeedstatusesCustomBatchRequest" }, @@ -847,6 +913,7 @@ }, "get": { "description": "Retrieves the status of a datafeed from your Merchant Center account.", + "flatPath": "content/v2/{merchantId}/datafeedstatuses/{datafeedId}", "httpMethod": "GET", "id": "content.datafeedstatuses.get", "parameterOrder": [ @@ -879,7 +946,7 @@ "type": "string" } }, - "path": "{merchantId}/datafeedstatuses/{datafeedId}", + "path": "content/v2/{merchantId}/datafeedstatuses/{datafeedId}", "response": { "$ref": "DatafeedStatus" }, @@ -889,6 +956,7 @@ }, "list": { "description": "Lists the statuses of the datafeeds in your Merchant Center account.", + "flatPath": "content/v2/{merchantId}/datafeedstatuses", "httpMethod": "GET", "id": "content.datafeedstatuses.list", "parameterOrder": [ @@ -914,7 +982,7 @@ "type": "string" } }, - "path": "{merchantId}/datafeedstatuses", + "path": "content/v2/{merchantId}/datafeedstatuses", "response": { "$ref": "DatafeedstatusesListResponse" }, @@ -928,8 +996,10 @@ "methods": { "custombatch": { "description": "Updates price and availability for multiple products or stores in a single request. This operation does not update the expiration date of the products.", + "flatPath": "content/v2/inventory/batch", "httpMethod": "POST", "id": "content.inventory.custombatch", + "parameterOrder": [], "parameters": { "dryRun": { "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", @@ -937,7 +1007,7 @@ "type": "boolean" } }, - "path": "inventory/batch", + "path": "content/v2/inventory/batch", "request": { "$ref": "InventoryCustomBatchRequest" }, @@ -950,6 +1020,7 @@ }, "set": { "description": "Updates price and availability of a product in your Merchant Center account.", + "flatPath": "content/v2/{merchantId}/inventory/{storeCode}/products/{productId}", "httpMethod": "POST", "id": "content.inventory.set", "parameterOrder": [ @@ -983,7 +1054,7 @@ "type": "string" } }, - "path": "{merchantId}/inventory/{storeCode}/products/{productId}", + "path": "content/v2/{merchantId}/inventory/{storeCode}/products/{productId}", "request": { "$ref": "InventorySetRequest" }, @@ -1000,8 +1071,10 @@ "methods": { "custombatch": { "description": "Retrieves and/or updates the LIA settings of multiple accounts in a single request.", + "flatPath": "content/v2/liasettings/batch", "httpMethod": "POST", "id": "content.liasettings.custombatch", + "parameterOrder": [], "parameters": { "dryRun": { "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", @@ -1009,7 +1082,7 @@ "type": "boolean" } }, - "path": "liasettings/batch", + "path": "content/v2/liasettings/batch", "request": { "$ref": "LiasettingsCustomBatchRequest" }, @@ -1022,6 +1095,7 @@ }, "get": { "description": "Retrieves the LIA settings of the account.", + "flatPath": "content/v2/{merchantId}/liasettings/{accountId}", "httpMethod": "GET", "id": "content.liasettings.get", "parameterOrder": [ @@ -1044,7 +1118,7 @@ "type": "string" } }, - "path": "{merchantId}/liasettings/{accountId}", + "path": "content/v2/{merchantId}/liasettings/{accountId}", "response": { "$ref": "LiaSettings" }, @@ -1054,6 +1128,7 @@ }, "getaccessiblegmbaccounts": { "description": "Retrieves the list of accessible Google My Business accounts.", + "flatPath": "content/v2/{merchantId}/liasettings/{accountId}/accessiblegmbaccounts", "httpMethod": "GET", "id": "content.liasettings.getaccessiblegmbaccounts", "parameterOrder": [ @@ -1076,7 +1151,7 @@ "type": "string" } }, - "path": "{merchantId}/liasettings/{accountId}/accessiblegmbaccounts", + "path": "content/v2/{merchantId}/liasettings/{accountId}/accessiblegmbaccounts", "response": { "$ref": "LiasettingsGetAccessibleGmbAccountsResponse" }, @@ -1086,6 +1161,7 @@ }, "list": { "description": "Lists the LIA settings of the sub-accounts in your Merchant Center account.", + "flatPath": "content/v2/{merchantId}/liasettings", "httpMethod": "GET", "id": "content.liasettings.list", "parameterOrder": [ @@ -1111,7 +1187,7 @@ "type": "string" } }, - "path": "{merchantId}/liasettings", + "path": "content/v2/{merchantId}/liasettings", "response": { "$ref": "LiasettingsListResponse" }, @@ -1121,9 +1197,12 @@ }, "listposdataproviders": { "description": "Retrieves the list of POS data providers that have active settings for the all eiligible countries.", + "flatPath": "content/v2/liasettings/posdataproviders", "httpMethod": "GET", "id": "content.liasettings.listposdataproviders", - "path": "liasettings/posdataproviders", + "parameterOrder": [], + "parameters": {}, + "path": "content/v2/liasettings/posdataproviders", "response": { "$ref": "LiasettingsListPosDataProvidersResponse" }, @@ -1133,6 +1212,7 @@ }, "requestgmbaccess": { "description": "Requests access to a specified Google My Business account.", + "flatPath": "content/v2/{merchantId}/liasettings/{accountId}/requestgmbaccess", "httpMethod": "POST", "id": "content.liasettings.requestgmbaccess", "parameterOrder": [ @@ -1162,7 +1242,7 @@ "type": "string" } }, - "path": "{merchantId}/liasettings/{accountId}/requestgmbaccess", + "path": "content/v2/{merchantId}/liasettings/{accountId}/requestgmbaccess", "response": { "$ref": "LiasettingsRequestGmbAccessResponse" }, @@ -1172,6 +1252,7 @@ }, "requestinventoryverification": { "description": "Requests inventory validation for the specified country.", + "flatPath": "content/v2/{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}", "httpMethod": "POST", "id": "content.liasettings.requestinventoryverification", "parameterOrder": [ @@ -1201,7 +1282,7 @@ "type": "string" } }, - "path": "{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}", + "path": "content/v2/{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}", "response": { "$ref": "LiasettingsRequestInventoryVerificationResponse" }, @@ -1211,15 +1292,16 @@ }, "setinventoryverificationcontact": { "description": "Sets the inventory verification contract for the specified country.", + "flatPath": "content/v2/{merchantId}/liasettings/{accountId}/setinventoryverificationcontact", "httpMethod": "POST", "id": "content.liasettings.setinventoryverificationcontact", "parameterOrder": [ "merchantId", "accountId", - "contactEmail", - "contactName", "country", - "language" + "language", + "contactName", + "contactEmail" ], "parameters": { "accountId": { @@ -1261,7 +1343,7 @@ "type": "string" } }, - "path": "{merchantId}/liasettings/{accountId}/setinventoryverificationcontact", + "path": "content/v2/{merchantId}/liasettings/{accountId}/setinventoryverificationcontact", "response": { "$ref": "LiasettingsSetInventoryVerificationContactResponse" }, @@ -1271,6 +1353,7 @@ }, "setposdataprovider": { "description": "Sets the POS data provider for the specified country.", + "flatPath": "content/v2/{merchantId}/liasettings/{accountId}/setposdataprovider", "httpMethod": "POST", "id": "content.liasettings.setposdataprovider", "parameterOrder": [ @@ -1311,7 +1394,7 @@ "type": "string" } }, - "path": "{merchantId}/liasettings/{accountId}/setposdataprovider", + "path": "content/v2/{merchantId}/liasettings/{accountId}/setposdataprovider", "response": { "$ref": "LiasettingsSetPosDataProviderResponse" }, @@ -1321,6 +1404,7 @@ }, "update": { "description": "Updates the LIA settings of the account. Any fields that are not provided are deleted from the resource.", + "flatPath": "content/v2/{merchantId}/liasettings/{accountId}", "httpMethod": "PUT", "id": "content.liasettings.update", "parameterOrder": [ @@ -1348,7 +1432,7 @@ "type": "string" } }, - "path": "{merchantId}/liasettings/{accountId}", + "path": "content/v2/{merchantId}/liasettings/{accountId}", "request": { "$ref": "LiaSettings" }, @@ -1365,6 +1449,7 @@ "methods": { "createchargeinvoice": { "description": "Creates a charge invoice for a shipment group, and triggers a charge capture for orderinvoice enabled orders.", + "flatPath": "content/v2/{merchantId}/orderinvoices/{orderId}/createChargeInvoice", "httpMethod": "POST", "id": "content.orderinvoices.createchargeinvoice", "parameterOrder": [ @@ -1386,7 +1471,7 @@ "type": "string" } }, - "path": "{merchantId}/orderinvoices/{orderId}/createChargeInvoice", + "path": "content/v2/{merchantId}/orderinvoices/{orderId}/createChargeInvoice", "request": { "$ref": "OrderinvoicesCreateChargeInvoiceRequest" }, @@ -1399,6 +1484,7 @@ }, "createrefundinvoice": { "description": "Creates a refund invoice for one or more shipment groups, and triggers a refund for orderinvoice enabled orders. This can only be used for line items that have previously been charged using `createChargeInvoice`. All amounts (except for the summary) are incremental with respect to the previous invoice.", + "flatPath": "content/v2/{merchantId}/orderinvoices/{orderId}/createRefundInvoice", "httpMethod": "POST", "id": "content.orderinvoices.createrefundinvoice", "parameterOrder": [ @@ -1420,7 +1506,7 @@ "type": "string" } }, - "path": "{merchantId}/orderinvoices/{orderId}/createRefundInvoice", + "path": "content/v2/{merchantId}/orderinvoices/{orderId}/createRefundInvoice", "request": { "$ref": "OrderinvoicesCreateRefundInvoiceRequest" }, @@ -1437,11 +1523,11 @@ "methods": { "listdisbursements": { "description": "Retrieves a report for disbursements from your Merchant Center account.", + "flatPath": "content/v2/{merchantId}/orderreports/disbursements", "httpMethod": "GET", "id": "content.orderreports.listdisbursements", "parameterOrder": [ - "merchantId", - "disbursementStartDate" + "merchantId" ], "parameters": { "disbursementEndDate": { @@ -1452,7 +1538,6 @@ "disbursementStartDate": { "description": "The first date which disbursements occurred. In ISO 8601 format.", "location": "query", - "required": true, "type": "string" }, "maxResults": { @@ -1474,7 +1559,7 @@ "type": "string" } }, - "path": "{merchantId}/orderreports/disbursements", + "path": "content/v2/{merchantId}/orderreports/disbursements", "response": { "$ref": "OrderreportsListDisbursementsResponse" }, @@ -1484,12 +1569,12 @@ }, "listtransactions": { "description": "Retrieves a list of transactions for a disbursement from your Merchant Center account.", + "flatPath": "content/v2/{merchantId}/orderreports/disbursements/{disbursementId}/transactions", "httpMethod": "GET", "id": "content.orderreports.listtransactions", "parameterOrder": [ "merchantId", - "disbursementId", - "transactionStartDate" + "disbursementId" ], "parameters": { "disbursementId": { @@ -1524,11 +1609,10 @@ "transactionStartDate": { "description": "The first date in which transaction occurred. In ISO 8601 format.", "location": "query", - "required": true, "type": "string" } }, - "path": "{merchantId}/orderreports/disbursements/{disbursementId}/transactions", + "path": "content/v2/{merchantId}/orderreports/disbursements/{disbursementId}/transactions", "response": { "$ref": "OrderreportsListTransactionsResponse" }, @@ -1542,6 +1626,7 @@ "methods": { "get": { "description": "Retrieves an order return from your Merchant Center account.", + "flatPath": "content/v2/{merchantId}/orderreturns/{returnId}", "httpMethod": "GET", "id": "content.orderreturns.get", "parameterOrder": [ @@ -1563,7 +1648,7 @@ "type": "string" } }, - "path": "{merchantId}/orderreturns/{returnId}", + "path": "content/v2/{merchantId}/orderreturns/{returnId}", "response": { "$ref": "MerchantOrderReturn" }, @@ -1573,6 +1658,7 @@ }, "list": { "description": "Lists order returns in your Merchant Center account.", + "flatPath": "content/v2/{merchantId}/orderreturns", "httpMethod": "GET", "id": "content.orderreturns.list", "parameterOrder": [ @@ -1605,8 +1691,8 @@ "orderBy": { "description": "Return the results in the specified order.", "enum": [ - "returnCreationTimeAsc", - "returnCreationTimeDesc" + "RETURN_CREATION_TIME_DESC", + "RETURN_CREATION_TIME_ASC" ], "enumDescriptions": [ "", @@ -1621,7 +1707,7 @@ "type": "string" } }, - "path": "{merchantId}/orderreturns", + "path": "content/v2/{merchantId}/orderreturns", "response": { "$ref": "OrderreturnsListResponse" }, @@ -1635,6 +1721,7 @@ "methods": { "acknowledge": { "description": "Marks an order as acknowledged.", + "flatPath": "content/v2/{merchantId}/orders/{orderId}/acknowledge", "httpMethod": "POST", "id": "content.orders.acknowledge", "parameterOrder": [ @@ -1656,7 +1743,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}/acknowledge", + "path": "content/v2/{merchantId}/orders/{orderId}/acknowledge", "request": { "$ref": "OrdersAcknowledgeRequest" }, @@ -1669,6 +1756,7 @@ }, "advancetestorder": { "description": "Sandbox only. Moves a test order from state \"`inProgress`\" to state \"`pendingShipment`\".", + "flatPath": "content/v2/{merchantId}/testorders/{orderId}/advance", "httpMethod": "POST", "id": "content.orders.advancetestorder", "parameterOrder": [ @@ -1690,7 +1778,7 @@ "type": "string" } }, - "path": "{merchantId}/testorders/{orderId}/advance", + "path": "content/v2/{merchantId}/testorders/{orderId}/advance", "response": { "$ref": "OrdersAdvanceTestOrderResponse" }, @@ -1700,6 +1788,7 @@ }, "cancel": { "description": "Cancels all line items in an order, making a full refund.", + "flatPath": "content/v2/{merchantId}/orders/{orderId}/cancel", "httpMethod": "POST", "id": "content.orders.cancel", "parameterOrder": [ @@ -1721,7 +1810,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}/cancel", + "path": "content/v2/{merchantId}/orders/{orderId}/cancel", "request": { "$ref": "OrdersCancelRequest" }, @@ -1734,6 +1823,7 @@ }, "cancellineitem": { "description": "Cancels a line item, making a full refund.", + "flatPath": "content/v2/{merchantId}/orders/{orderId}/cancelLineItem", "httpMethod": "POST", "id": "content.orders.cancellineitem", "parameterOrder": [ @@ -1755,7 +1845,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}/cancelLineItem", + "path": "content/v2/{merchantId}/orders/{orderId}/cancelLineItem", "request": { "$ref": "OrdersCancelLineItemRequest" }, @@ -1768,6 +1858,7 @@ }, "canceltestorderbycustomer": { "description": "Sandbox only. Cancels a test order for customer-initiated cancellation.", + "flatPath": "content/v2/{merchantId}/testorders/{orderId}/cancelByCustomer", "httpMethod": "POST", "id": "content.orders.canceltestorderbycustomer", "parameterOrder": [ @@ -1789,7 +1880,7 @@ "type": "string" } }, - "path": "{merchantId}/testorders/{orderId}/cancelByCustomer", + "path": "content/v2/{merchantId}/testorders/{orderId}/cancelByCustomer", "request": { "$ref": "OrdersCancelTestOrderByCustomerRequest" }, @@ -1802,6 +1893,7 @@ }, "createtestorder": { "description": "Sandbox only. Creates a test order.", + "flatPath": "content/v2/{merchantId}/testorders", "httpMethod": "POST", "id": "content.orders.createtestorder", "parameterOrder": [ @@ -1816,7 +1908,7 @@ "type": "string" } }, - "path": "{merchantId}/testorders", + "path": "content/v2/{merchantId}/testorders", "request": { "$ref": "OrdersCreateTestOrderRequest" }, @@ -1829,6 +1921,7 @@ }, "createtestreturn": { "description": "Sandbox only. Creates a test return.", + "flatPath": "content/v2/{merchantId}/orders/{orderId}/testreturn", "httpMethod": "POST", "id": "content.orders.createtestreturn", "parameterOrder": [ @@ -1850,7 +1943,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}/testreturn", + "path": "content/v2/{merchantId}/orders/{orderId}/testreturn", "request": { "$ref": "OrdersCreateTestReturnRequest" }, @@ -1863,9 +1956,12 @@ }, "custombatch": { "description": "Retrieves or modifies multiple orders in a single request.", + "flatPath": "content/v2/orders/batch", "httpMethod": "POST", "id": "content.orders.custombatch", - "path": "orders/batch", + "parameterOrder": [], + "parameters": {}, + "path": "content/v2/orders/batch", "request": { "$ref": "OrdersCustomBatchRequest" }, @@ -1878,6 +1974,7 @@ }, "get": { "description": "Retrieves an order from your Merchant Center account.", + "flatPath": "content/v2/{merchantId}/orders/{orderId}", "httpMethod": "GET", "id": "content.orders.get", "parameterOrder": [ @@ -1899,7 +1996,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}", + "path": "content/v2/{merchantId}/orders/{orderId}", "response": { "$ref": "Order" }, @@ -1909,6 +2006,7 @@ }, "getbymerchantorderid": { "description": "Retrieves an order using merchant order ID.", + "flatPath": "content/v2/{merchantId}/ordersbymerchantid/{merchantOrderId}", "httpMethod": "GET", "id": "content.orders.getbymerchantorderid", "parameterOrder": [ @@ -1930,7 +2028,7 @@ "type": "string" } }, - "path": "{merchantId}/ordersbymerchantid/{merchantOrderId}", + "path": "content/v2/{merchantId}/ordersbymerchantid/{merchantOrderId}", "response": { "$ref": "OrdersGetByMerchantOrderIdResponse" }, @@ -1940,6 +2038,7 @@ }, "gettestordertemplate": { "description": "Sandbox only. Retrieves an order template that can be used to quickly create a new order in sandbox.", + "flatPath": "content/v2/{merchantId}/testordertemplates/{templateName}", "httpMethod": "GET", "id": "content.orders.gettestordertemplate", "parameterOrder": [ @@ -1962,11 +2061,11 @@ "templateName": { "description": "The name of the template to retrieve.", "enum": [ - "template1", - "template1a", - "template1b", - "template2", - "template3" + "TEMPLATE1", + "TEMPLATE2", + "TEMPLATE1A", + "TEMPLATE1B", + "TEMPLATE3" ], "enumDescriptions": [ "", @@ -1980,7 +2079,7 @@ "type": "string" } }, - "path": "{merchantId}/testordertemplates/{templateName}", + "path": "content/v2/{merchantId}/testordertemplates/{templateName}", "response": { "$ref": "OrdersGetTestOrderTemplateResponse" }, @@ -1989,7 +2088,8 @@ ] }, "instorerefundlineitem": { - "description": "Deprecated. Notifies that item return and refund was handled directly by merchant outside of Google payments processing (e.g. cash refund done in store).\nNote: We recommend calling the returnrefundlineitem method to refund in-store returns. We will issue the refund directly to the customer. This helps to prevent possible differences arising between merchant and Google transaction records. We also recommend having the point of sale system communicate with Google to ensure that customers do not receive a double refund by first refunding via Google then via an in-store return.", + "description": "Deprecated. Notifies that item return and refund was handled directly by merchant outside of Google payments processing (e.g. cash refund done in store). Note: We recommend calling the returnrefundlineitem method to refund in-store returns. We will issue the refund directly to the customer. This helps to prevent possible differences arising between merchant and Google transaction records. We also recommend having the point of sale system communicate with Google to ensure that customers do not receive a double refund by first refunding via Google then via an in-store return.", + "flatPath": "content/v2/{merchantId}/orders/{orderId}/inStoreRefundLineItem", "httpMethod": "POST", "id": "content.orders.instorerefundlineitem", "parameterOrder": [ @@ -2011,7 +2111,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}/inStoreRefundLineItem", + "path": "content/v2/{merchantId}/orders/{orderId}/inStoreRefundLineItem", "request": { "$ref": "OrdersInStoreRefundLineItemRequest" }, @@ -2024,6 +2124,7 @@ }, "list": { "description": "Lists the orders in your Merchant Center account.", + "flatPath": "content/v2/{merchantId}/orders", "httpMethod": "GET", "id": "content.orders.list", "parameterOrder": [ @@ -2031,7 +2132,7 @@ ], "parameters": { "acknowledged": { - "description": "Obtains orders that match the acknowledgement status. When set to true, obtains orders that have been acknowledged. When false, obtains orders that have not been acknowledged.\nWe recommend using this filter set to `false`, in conjunction with the `acknowledge` call, such that only un-acknowledged orders are returned.", + "description": "Obtains orders that match the acknowledgement status. When set to true, obtains orders that have been acknowledged. When false, obtains orders that have not been acknowledged. We recommend using this filter set to `false`, in conjunction with the `acknowledge` call, such that only un-acknowledged orders are returned. ", "location": "query", "type": "boolean" }, @@ -2049,7 +2150,7 @@ "type": "string" }, "orderBy": { - "description": "Order results by placement date in descending or ascending order.\n\nAcceptable values are:\n- placedDateAsc\n- placedDateDesc", + "description": "Order results by placement date in descending or ascending order. Acceptable values are: - placedDateAsc - placedDateDesc ", "location": "query", "type": "string" }, @@ -2071,17 +2172,17 @@ "statuses": { "description": "Obtains orders that match any of the specified statuses. Please note that `active` is a shortcut for `pendingShipment` and `partiallyShipped`, and `completed` is a shortcut for `shipped`, `partiallyDelivered`, `delivered`, `partiallyReturned`, `returned`, and `canceled`.", "enum": [ - "active", - "canceled", - "completed", - "delivered", - "inProgress", - "partiallyDelivered", - "partiallyReturned", - "partiallyShipped", - "pendingShipment", - "returned", - "shipped" + "ACTIVE", + "COMPLETED", + "CANCELED", + "IN_PROGRESS", + "PENDING_SHIPMENT", + "PARTIALLY_SHIPPED", + "SHIPPED", + "PARTIALLY_DELIVERED", + "DELIVERED", + "PARTIALLY_RETURNED", + "RETURNED" ], "enumDescriptions": [ "", @@ -2101,7 +2202,7 @@ "type": "string" } }, - "path": "{merchantId}/orders", + "path": "content/v2/{merchantId}/orders", "response": { "$ref": "OrdersListResponse" }, @@ -2111,6 +2212,7 @@ }, "refund": { "description": "Deprecated, please use returnRefundLineItem instead.", + "flatPath": "content/v2/{merchantId}/orders/{orderId}/refund", "httpMethod": "POST", "id": "content.orders.refund", "parameterOrder": [ @@ -2132,7 +2234,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}/refund", + "path": "content/v2/{merchantId}/orders/{orderId}/refund", "request": { "$ref": "OrdersRefundRequest" }, @@ -2145,6 +2247,7 @@ }, "rejectreturnlineitem": { "description": "Rejects return on an line item.", + "flatPath": "content/v2/{merchantId}/orders/{orderId}/rejectReturnLineItem", "httpMethod": "POST", "id": "content.orders.rejectreturnlineitem", "parameterOrder": [ @@ -2166,7 +2269,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}/rejectReturnLineItem", + "path": "content/v2/{merchantId}/orders/{orderId}/rejectReturnLineItem", "request": { "$ref": "OrdersRejectReturnLineItemRequest" }, @@ -2179,6 +2282,7 @@ }, "returnlineitem": { "description": "Returns a line item.", + "flatPath": "content/v2/{merchantId}/orders/{orderId}/returnLineItem", "httpMethod": "POST", "id": "content.orders.returnlineitem", "parameterOrder": [ @@ -2200,7 +2304,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}/returnLineItem", + "path": "content/v2/{merchantId}/orders/{orderId}/returnLineItem", "request": { "$ref": "OrdersReturnLineItemRequest" }, @@ -2213,6 +2317,7 @@ }, "returnrefundlineitem": { "description": "Returns and refunds a line item. Note that this method can only be called on fully shipped orders. Please also note that the Orderreturns API is the preferred way to handle returns after you receive a return from a customer. You can use Orderreturns.list or Orderreturns.get to search for the return, and then use Orderreturns.processreturn to issue the refund. If the return cannot be found, then we recommend using this API to issue a refund.", + "flatPath": "content/v2/{merchantId}/orders/{orderId}/returnRefundLineItem", "httpMethod": "POST", "id": "content.orders.returnrefundlineitem", "parameterOrder": [ @@ -2234,7 +2339,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}/returnRefundLineItem", + "path": "content/v2/{merchantId}/orders/{orderId}/returnRefundLineItem", "request": { "$ref": "OrdersReturnRefundLineItemRequest" }, @@ -2247,6 +2352,7 @@ }, "setlineitemmetadata": { "description": "Sets (or overrides if it already exists) merchant provided annotations in the form of key-value pairs. A common use case would be to supply us with additional structured information about a line item that cannot be provided via other methods. Submitted key-value pairs can be retrieved as part of the orders resource.", + "flatPath": "content/v2/{merchantId}/orders/{orderId}/setLineItemMetadata", "httpMethod": "POST", "id": "content.orders.setlineitemmetadata", "parameterOrder": [ @@ -2268,7 +2374,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}/setLineItemMetadata", + "path": "content/v2/{merchantId}/orders/{orderId}/setLineItemMetadata", "request": { "$ref": "OrdersSetLineItemMetadataRequest" }, @@ -2281,6 +2387,7 @@ }, "shiplineitems": { "description": "Marks line item(s) as shipped.", + "flatPath": "content/v2/{merchantId}/orders/{orderId}/shipLineItems", "httpMethod": "POST", "id": "content.orders.shiplineitems", "parameterOrder": [ @@ -2302,7 +2409,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}/shipLineItems", + "path": "content/v2/{merchantId}/orders/{orderId}/shipLineItems", "request": { "$ref": "OrdersShipLineItemsRequest" }, @@ -2315,6 +2422,7 @@ }, "updatelineitemshippingdetails": { "description": "Updates ship by and delivery by dates for a line item.", + "flatPath": "content/v2/{merchantId}/orders/{orderId}/updateLineItemShippingDetails", "httpMethod": "POST", "id": "content.orders.updatelineitemshippingdetails", "parameterOrder": [ @@ -2336,7 +2444,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}/updateLineItemShippingDetails", + "path": "content/v2/{merchantId}/orders/{orderId}/updateLineItemShippingDetails", "request": { "$ref": "OrdersUpdateLineItemShippingDetailsRequest" }, @@ -2349,6 +2457,7 @@ }, "updatemerchantorderid": { "description": "Updates the merchant order ID for a given order.", + "flatPath": "content/v2/{merchantId}/orders/{orderId}/updateMerchantOrderId", "httpMethod": "POST", "id": "content.orders.updatemerchantorderid", "parameterOrder": [ @@ -2370,7 +2479,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}/updateMerchantOrderId", + "path": "content/v2/{merchantId}/orders/{orderId}/updateMerchantOrderId", "request": { "$ref": "OrdersUpdateMerchantOrderIdRequest" }, @@ -2383,6 +2492,7 @@ }, "updateshipment": { "description": "Updates a shipment's status, carrier, and/or tracking ID.", + "flatPath": "content/v2/{merchantId}/orders/{orderId}/updateShipment", "httpMethod": "POST", "id": "content.orders.updateshipment", "parameterOrder": [ @@ -2404,7 +2514,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}/updateShipment", + "path": "content/v2/{merchantId}/orders/{orderId}/updateShipment", "request": { "$ref": "OrdersUpdateShipmentRequest" }, @@ -2421,8 +2531,10 @@ "methods": { "custombatch": { "description": "Batches multiple POS-related calls in a single request.", + "flatPath": "content/v2/pos/batch", "httpMethod": "POST", "id": "content.pos.custombatch", + "parameterOrder": [], "parameters": { "dryRun": { "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", @@ -2430,7 +2542,7 @@ "type": "boolean" } }, - "path": "pos/batch", + "path": "content/v2/pos/batch", "request": { "$ref": "PosCustomBatchRequest" }, @@ -2443,6 +2555,7 @@ }, "delete": { "description": "Deletes a store for the given merchant.", + "flatPath": "content/v2/{merchantId}/pos/{targetMerchantId}/store/{storeCode}", "httpMethod": "DELETE", "id": "content.pos.delete", "parameterOrder": [ @@ -2477,13 +2590,14 @@ "type": "string" } }, - "path": "{merchantId}/pos/{targetMerchantId}/store/{storeCode}", + "path": "content/v2/{merchantId}/pos/{targetMerchantId}/store/{storeCode}", "scopes": [ "https://www.googleapis.com/auth/content" ] }, "get": { "description": "Retrieves information about the given store.", + "flatPath": "content/v2/{merchantId}/pos/{targetMerchantId}/store/{storeCode}", "httpMethod": "GET", "id": "content.pos.get", "parameterOrder": [ @@ -2513,7 +2627,7 @@ "type": "string" } }, - "path": "{merchantId}/pos/{targetMerchantId}/store/{storeCode}", + "path": "content/v2/{merchantId}/pos/{targetMerchantId}/store/{storeCode}", "response": { "$ref": "PosStore" }, @@ -2523,6 +2637,7 @@ }, "insert": { "description": "Creates a store for the given merchant.", + "flatPath": "content/v2/{merchantId}/pos/{targetMerchantId}/store", "httpMethod": "POST", "id": "content.pos.insert", "parameterOrder": [ @@ -2550,7 +2665,7 @@ "type": "string" } }, - "path": "{merchantId}/pos/{targetMerchantId}/store", + "path": "content/v2/{merchantId}/pos/{targetMerchantId}/store", "request": { "$ref": "PosStore" }, @@ -2563,6 +2678,7 @@ }, "inventory": { "description": "Submit inventory for the given merchant.", + "flatPath": "content/v2/{merchantId}/pos/{targetMerchantId}/inventory", "httpMethod": "POST", "id": "content.pos.inventory", "parameterOrder": [ @@ -2590,7 +2706,7 @@ "type": "string" } }, - "path": "{merchantId}/pos/{targetMerchantId}/inventory", + "path": "content/v2/{merchantId}/pos/{targetMerchantId}/inventory", "request": { "$ref": "PosInventoryRequest" }, @@ -2603,6 +2719,7 @@ }, "list": { "description": "Lists the stores of the target merchant.", + "flatPath": "content/v2/{merchantId}/pos/{targetMerchantId}/store", "httpMethod": "GET", "id": "content.pos.list", "parameterOrder": [ @@ -2625,7 +2742,7 @@ "type": "string" } }, - "path": "{merchantId}/pos/{targetMerchantId}/store", + "path": "content/v2/{merchantId}/pos/{targetMerchantId}/store", "response": { "$ref": "PosListResponse" }, @@ -2635,6 +2752,7 @@ }, "sale": { "description": "Submit a sale event for the given merchant.", + "flatPath": "content/v2/{merchantId}/pos/{targetMerchantId}/sale", "httpMethod": "POST", "id": "content.pos.sale", "parameterOrder": [ @@ -2662,7 +2780,7 @@ "type": "string" } }, - "path": "{merchantId}/pos/{targetMerchantId}/sale", + "path": "content/v2/{merchantId}/pos/{targetMerchantId}/sale", "request": { "$ref": "PosSaleRequest" }, @@ -2679,8 +2797,10 @@ "methods": { "custombatch": { "description": "Retrieves, inserts, and deletes multiple products in a single request.", + "flatPath": "content/v2/products/batch", "httpMethod": "POST", "id": "content.products.custombatch", + "parameterOrder": [], "parameters": { "dryRun": { "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", @@ -2688,7 +2808,7 @@ "type": "boolean" } }, - "path": "products/batch", + "path": "content/v2/products/batch", "request": { "$ref": "ProductsCustomBatchRequest" }, @@ -2701,6 +2821,7 @@ }, "delete": { "description": "Deletes a product from your Merchant Center account.", + "flatPath": "content/v2/{merchantId}/products/{productId}", "httpMethod": "DELETE", "id": "content.products.delete", "parameterOrder": [ @@ -2727,13 +2848,14 @@ "type": "string" } }, - "path": "{merchantId}/products/{productId}", + "path": "content/v2/{merchantId}/products/{productId}", "scopes": [ "https://www.googleapis.com/auth/content" ] }, "get": { "description": "Retrieves a product from your Merchant Center account.", + "flatPath": "content/v2/{merchantId}/products/{productId}", "httpMethod": "GET", "id": "content.products.get", "parameterOrder": [ @@ -2755,7 +2877,7 @@ "type": "string" } }, - "path": "{merchantId}/products/{productId}", + "path": "content/v2/{merchantId}/products/{productId}", "response": { "$ref": "Product" }, @@ -2765,6 +2887,7 @@ }, "insert": { "description": "Uploads a product to your Merchant Center account. If an item with the same channel, contentLanguage, offerId, and targetCountry already exists, this method updates that entry.", + "flatPath": "content/v2/{merchantId}/products", "httpMethod": "POST", "id": "content.products.insert", "parameterOrder": [ @@ -2784,7 +2907,7 @@ "type": "string" } }, - "path": "{merchantId}/products", + "path": "content/v2/{merchantId}/products", "request": { "$ref": "Product" }, @@ -2797,6 +2920,7 @@ }, "list": { "description": "Lists the products in your Merchant Center account. The response might contain fewer items than specified by maxResults. Rely on nextPageToken to determine if there are more items to be requested.", + "flatPath": "content/v2/{merchantId}/products", "httpMethod": "GET", "id": "content.products.list", "parameterOrder": [ @@ -2827,7 +2951,7 @@ "type": "string" } }, - "path": "{merchantId}/products", + "path": "content/v2/{merchantId}/products", "response": { "$ref": "ProductsListResponse" }, @@ -2841,8 +2965,10 @@ "methods": { "custombatch": { "description": "Gets the statuses of multiple products in a single request.", + "flatPath": "content/v2/productstatuses/batch", "httpMethod": "POST", "id": "content.productstatuses.custombatch", + "parameterOrder": [], "parameters": { "includeAttributes": { "description": "Flag to include full product data in the results of this request. The default value is false.", @@ -2850,7 +2976,7 @@ "type": "boolean" } }, - "path": "productstatuses/batch", + "path": "content/v2/productstatuses/batch", "request": { "$ref": "ProductstatusesCustomBatchRequest" }, @@ -2863,6 +2989,7 @@ }, "get": { "description": "Gets the status of a product from your Merchant Center account.", + "flatPath": "content/v2/{merchantId}/productstatuses/{productId}", "httpMethod": "GET", "id": "content.productstatuses.get", "parameterOrder": [ @@ -2895,7 +3022,7 @@ "type": "string" } }, - "path": "{merchantId}/productstatuses/{productId}", + "path": "content/v2/{merchantId}/productstatuses/{productId}", "response": { "$ref": "ProductStatus" }, @@ -2905,6 +3032,7 @@ }, "list": { "description": "Lists the statuses of the products in your Merchant Center account.", + "flatPath": "content/v2/{merchantId}/productstatuses", "httpMethod": "GET", "id": "content.productstatuses.list", "parameterOrder": [ @@ -2946,7 +3074,7 @@ "type": "string" } }, - "path": "{merchantId}/productstatuses", + "path": "content/v2/{merchantId}/productstatuses", "response": { "$ref": "ProductstatusesListResponse" }, @@ -2960,8 +3088,10 @@ "methods": { "custombatch": { "description": "Retrieves and updates the shipping settings of multiple accounts in a single request.", + "flatPath": "content/v2/shippingsettings/batch", "httpMethod": "POST", "id": "content.shippingsettings.custombatch", + "parameterOrder": [], "parameters": { "dryRun": { "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", @@ -2969,7 +3099,7 @@ "type": "boolean" } }, - "path": "shippingsettings/batch", + "path": "content/v2/shippingsettings/batch", "request": { "$ref": "ShippingsettingsCustomBatchRequest" }, @@ -2982,6 +3112,7 @@ }, "get": { "description": "Retrieves the shipping settings of the account.", + "flatPath": "content/v2/{merchantId}/shippingsettings/{accountId}", "httpMethod": "GET", "id": "content.shippingsettings.get", "parameterOrder": [ @@ -3004,7 +3135,7 @@ "type": "string" } }, - "path": "{merchantId}/shippingsettings/{accountId}", + "path": "content/v2/{merchantId}/shippingsettings/{accountId}", "response": { "$ref": "ShippingSettings" }, @@ -3014,6 +3145,7 @@ }, "getsupportedcarriers": { "description": "Retrieves supported carriers and carrier services for an account.", + "flatPath": "content/v2/{merchantId}/supportedCarriers", "httpMethod": "GET", "id": "content.shippingsettings.getsupportedcarriers", "parameterOrder": [ @@ -3028,7 +3160,7 @@ "type": "string" } }, - "path": "{merchantId}/supportedCarriers", + "path": "content/v2/{merchantId}/supportedCarriers", "response": { "$ref": "ShippingsettingsGetSupportedCarriersResponse" }, @@ -3038,6 +3170,7 @@ }, "getsupportedholidays": { "description": "Retrieves supported holidays for an account.", + "flatPath": "content/v2/{merchantId}/supportedHolidays", "httpMethod": "GET", "id": "content.shippingsettings.getsupportedholidays", "parameterOrder": [ @@ -3052,7 +3185,7 @@ "type": "string" } }, - "path": "{merchantId}/supportedHolidays", + "path": "content/v2/{merchantId}/supportedHolidays", "response": { "$ref": "ShippingsettingsGetSupportedHolidaysResponse" }, @@ -3062,6 +3195,7 @@ }, "getsupportedpickupservices": { "description": "Retrieves supported pickup services for an account.", + "flatPath": "content/v2/{merchantId}/supportedPickupServices", "httpMethod": "GET", "id": "content.shippingsettings.getsupportedpickupservices", "parameterOrder": [ @@ -3076,7 +3210,7 @@ "type": "string" } }, - "path": "{merchantId}/supportedPickupServices", + "path": "content/v2/{merchantId}/supportedPickupServices", "response": { "$ref": "ShippingsettingsGetSupportedPickupServicesResponse" }, @@ -3086,6 +3220,7 @@ }, "list": { "description": "Lists the shipping settings of the sub-accounts in your Merchant Center account.", + "flatPath": "content/v2/{merchantId}/shippingsettings", "httpMethod": "GET", "id": "content.shippingsettings.list", "parameterOrder": [ @@ -3111,7 +3246,7 @@ "type": "string" } }, - "path": "{merchantId}/shippingsettings", + "path": "content/v2/{merchantId}/shippingsettings", "response": { "$ref": "ShippingsettingsListResponse" }, @@ -3121,6 +3256,7 @@ }, "update": { "description": "Updates the shipping settings of the account. Any fields that are not provided are deleted from the resource.", + "flatPath": "content/v2/{merchantId}/shippingsettings/{accountId}", "httpMethod": "PUT", "id": "content.shippingsettings.update", "parameterOrder": [ @@ -3148,7 +3284,7 @@ "type": "string" } }, - "path": "{merchantId}/shippingsettings/{accountId}", + "path": "content/v2/{merchantId}/shippingsettings/{accountId}", "request": { "$ref": "ShippingSettings" }, @@ -3162,8 +3298,8 @@ } } }, - "revision": "20201018", - "rootUrl": "https://www.googleapis.com/", + "revision": "20201113", + "rootUrl": "https://shoppingcontent.googleapis.com/", "schemas": { "Account": { "description": "Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, and update require the admin role.", @@ -3174,7 +3310,7 @@ "type": "boolean" }, "adwordsLinks": { - "description": "List of linked AdWords accounts that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected either in the AdWords interface or through the AdWords API. To delete an active link, or to cancel a link request, remove it from the list.", + "description": "List of linked AdWords accounts that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected either in the AdWords interface or through the AdWords API. To delete an active link, or to cancel a link request, remove it from the list.", "items": { "$ref": "AccountAdwordsLink" }, @@ -3189,27 +3325,15 @@ "description": "The GMB account which is linked or in the process of being linked with the Merchant Center account." }, "id": { - "annotations": { - "required": [ - "content.accounts.update" - ] - }, "description": "Required for update. Merchant Center account ID.", "format": "uint64", "type": "string" }, "kind": { - "default": "content#account", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#account`\"", "type": "string" }, "name": { - "annotations": { - "required": [ - "content.accounts.insert", - "content.accounts.update" - ] - }, "description": "Required. Display name for the account.", "type": "string" }, @@ -3277,7 +3401,7 @@ "type": "string" }, "status": { - "description": "Status of the link between this Merchant Center account and the AdWords account. Upon retrieval, it represents the actual status of the link and can be either `active` if it was approved in Google AdWords or `pending` if it's pending approval. Upon insertion, it represents the intended status of the link. Re-uploading a link with status `active` when it's still pending or with status `pending` when it's already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status `inactive` is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending.\n\nAcceptable values are: \n- \"`active`\" \n- \"`pending`\"", + "description": "Status of the link between this Merchant Center account and the AdWords account. Upon retrieval, it represents the actual status of the link and can be either `active` if it was approved in Google AdWords or `pending` if it's pending approval. Upon insertion, it represents the *intended* status of the link. Re-uploading a link with status `active` when it's still pending or with status `pending` when it's already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status `inactive` is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending. Acceptable values are: - \"`active`\" - \"`pending`\" ", "type": "string" } }, @@ -3327,7 +3451,7 @@ "type": "string" }, "status": { - "description": "Status of the link between this Merchant Center account and the GMB account.\n\nAcceptable values are: \n- \"`active`\" \n- \"`pending`\"", + "description": "Status of the link between this Merchant Center account and the GMB account. Acceptable values are: - \"`active`\" - \"`pending`\" ", "type": "string" } }, @@ -3372,7 +3496,6 @@ "type": "array" }, "kind": { - "default": "content#accountStatus", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#accountStatus`\"", "type": "string" }, @@ -3414,7 +3537,7 @@ "type": "string" }, "severity": { - "description": "Severity of the issue.\n\nAcceptable values are: \n- \"`critical`\" \n- \"`error`\" \n- \"`suggestion`\"", + "description": "Severity of the issue. Acceptable values are: - \"`critical`\" - \"`error`\" - \"`suggestion`\" ", "type": "string" }, "title": { @@ -3459,7 +3582,7 @@ "type": "integer" }, "severity": { - "description": "Acceptable values are: \n- \"`critical`\" \n- \"`error`\" \n- \"`suggestion`\"", + "description": " Acceptable values are: - \"`critical`\" - \"`error`\" - \"`suggestion`\" ", "type": "string" }, "submittedValue": { @@ -3532,7 +3655,7 @@ "id": "AccountStatusProducts", "properties": { "channel": { - "description": "The channel the data applies to.\n\nAcceptable values are: \n- \"`local`\" \n- \"`online`\"", + "description": "The channel the data applies to. Acceptable values are: - \"`local`\" - \"`online`\" ", "type": "string" }, "country": { @@ -3588,17 +3711,11 @@ "id": "AccountTax", "properties": { "accountId": { - "annotations": { - "required": [ - "content.accounttax.update" - ] - }, "description": "Required. The ID of the account to which these account tax settings belong.", "format": "uint64", "type": "string" }, "kind": { - "default": "content#accountTax", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#accountTax\".", "type": "string" }, @@ -3621,11 +3738,6 @@ "type": "string" }, "locationId": { - "annotations": { - "required": [ - "content.accounttax.update" - ] - }, "description": "Required. State (or province) is which the tax is applicable, described by its location ID (also called criteria ID).", "format": "uint64", "type": "string" @@ -3679,7 +3791,7 @@ "type": "string" }, "status": { - "description": "Status of the link between this Merchant Center account and the YouTube channel. Upon retrieval, it represents the actual status of the link and can be either `active` if it was approved in YT Creator Studio or `pending` if it's pending approval. Upon insertion, it represents the intended status of the link. Re-uploading a link with status `active` when it's still pending or with status `pending` when it's already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status `inactive` is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending.", + "description": "Status of the link between this Merchant Center account and the YouTube channel. Upon retrieval, it represents the actual status of the link and can be either `active` if it was approved in YT Creator Studio or `pending` if it's pending approval. Upon insertion, it represents the *intended* status of the link. Re-uploading a link with status `active` when it's still pending or with status `pending` when it's already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status `inactive` is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending.", "type": "string" } }, @@ -3689,14 +3801,13 @@ "id": "AccountsAuthInfoResponse", "properties": { "accountIdentifiers": { - "description": "The account identifiers corresponding to the authenticated user.\n- For an individual account: only the merchant ID is defined\n- For an aggregator: only the aggregator ID is defined\n- For a subaccount of an MCA: both the merchant ID and the aggregator ID are defined.", + "description": "The account identifiers corresponding to the authenticated user. - For an individual account: only the merchant ID is defined - For an aggregator: only the aggregator ID is defined - For a subaccount of an MCA: both the merchant ID and the aggregator ID are defined. ", "items": { "$ref": "AccountIdentifier" }, "type": "array" }, "kind": { - "default": "content#accountsAuthInfoResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#accountsAuthInfoResponse\".", "type": "string" } @@ -3707,7 +3818,6 @@ "id": "AccountsClaimWebsiteResponse", "properties": { "kind": { - "default": "content#accountsClaimWebsiteResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#accountsClaimWebsiteResponse\".", "type": "string" } @@ -3767,7 +3877,7 @@ "type": "string" }, "method": { - "description": "The method of the batch entry.\n\nAcceptable values are: \n- \"`claimWebsite`\" \n- \"`delete`\" \n- \"`get`\" \n- \"`insert`\" \n- \"`link`\" \n- \"`update`\"", + "description": "The method of the batch entry. Acceptable values are: - \"`claimWebsite`\" - \"`delete`\" - \"`get`\" - \"`insert`\" - \"`link`\" - \"`update`\" ", "type": "string" }, "overwrite": { @@ -3781,11 +3891,11 @@ "id": "AccountsCustomBatchRequestEntryLinkRequest", "properties": { "action": { - "description": "Action to perform for this link. The `\"request\"` action is only available to select merchants.\n\nAcceptable values are: \n- \"`approve`\" \n- \"`remove`\" \n- \"`request`\"", + "description": "Action to perform for this link. The `\"request\"` action is only available to select merchants. Acceptable values are: - \"`approve`\" - \"`remove`\" - \"`request`\" ", "type": "string" }, "linkType": { - "description": "Type of the link between the two accounts.\n\nAcceptable values are: \n- \"`channelPartner`\" \n- \"`eCommercePlatform`\"", + "description": "Type of the link between the two accounts. Acceptable values are: - \"`channelPartner`\" - \"`eCommercePlatform`\" ", "type": "string" }, "linkedAccountId": { @@ -3806,7 +3916,6 @@ "type": "array" }, "kind": { - "default": "content#accountsCustomBatchResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#accountsCustomBatchResponse\".", "type": "string" } @@ -3831,12 +3940,11 @@ "description": "A list of errors defined if and only if the request failed." }, "kind": { - "default": "content#accountsCustomBatchResponseEntry", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#accountsCustomBatchResponseEntry`\"", "type": "string" }, "linkStatus": { - "description": "Deprecated. This field is never set.\n\nAcceptable values are: \n- \"`active`\" \n- \"`inactive`\" \n- \"`pending`\"", + "description": "Deprecated. This field is never set. Acceptable values are: - \"`active`\" - \"`inactive`\" - \"`pending`\" ", "type": "string" } }, @@ -3846,11 +3954,11 @@ "id": "AccountsLinkRequest", "properties": { "action": { - "description": "Action to perform for this link. The `\"request\"` action is only available to select merchants.\n\nAcceptable values are: \n- \"`approve`\" \n- \"`remove`\" \n- \"`request`\"", + "description": "Action to perform for this link. The `\"request\"` action is only available to select merchants. Acceptable values are: - \"`approve`\" - \"`remove`\" - \"`request`\" ", "type": "string" }, "linkType": { - "description": "Type of the link between the two accounts.\n\nAcceptable values are: \n- \"`channelPartner`\" \n- \"`eCommercePlatform`\"", + "description": "Type of the link between the two accounts. Acceptable values are: - \"`channelPartner`\" - \"`eCommercePlatform`\" ", "type": "string" }, "linkedAccountId": { @@ -3864,7 +3972,6 @@ "id": "AccountsLinkResponse", "properties": { "kind": { - "default": "content#accountsLinkResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#accountsLinkResponse\".", "type": "string" } @@ -3875,7 +3982,6 @@ "id": "AccountsListResponse", "properties": { "kind": { - "default": "content#accountsListResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#accountsListResponse\".", "type": "string" }, @@ -3932,7 +4038,7 @@ "type": "string" }, "method": { - "description": "The method of the batch entry.\n\nAcceptable values are: \n- \"`get`\"", + "description": "The method of the batch entry. Acceptable values are: - \"`get`\" ", "type": "string" } }, @@ -3949,7 +4055,6 @@ "type": "array" }, "kind": { - "default": "content#accountstatusesCustomBatchResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#accountstatusesCustomBatchResponse\".", "type": "string" } @@ -3980,7 +4085,6 @@ "id": "AccountstatusesListResponse", "properties": { "kind": { - "default": "content#accountstatusesListResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#accountstatusesListResponse\".", "type": "string" }, @@ -4034,7 +4138,7 @@ "type": "string" }, "method": { - "description": "The method of the batch entry.\n\nAcceptable values are: \n- \"`get`\" \n- \"`update`\"", + "description": "The method of the batch entry. Acceptable values are: - \"`get`\" - \"`update`\" ", "type": "string" } }, @@ -4051,7 +4155,6 @@ "type": "array" }, "kind": { - "default": "content#accounttaxCustomBatchResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#accounttaxCustomBatchResponse\".", "type": "string" } @@ -4076,7 +4179,6 @@ "description": "A list of errors defined if and only if the request failed." }, "kind": { - "default": "content#accounttaxCustomBatchResponseEntry", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#accounttaxCustomBatchResponseEntry`\"", "type": "string" } @@ -4087,7 +4189,6 @@ "id": "AccounttaxListResponse", "properties": { "kind": { - "default": "content#accounttaxListResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#accounttaxListResponse\".", "type": "string" }, @@ -4190,7 +4291,7 @@ "type": "string" }, "type": { - "description": "The type of the attribute.\n\nAcceptable values are: \n- \"`boolean`\" \n- \"`datetimerange`\" \n- \"`float`\" \n- \"`group`\" \n- \"`int`\" \n- \"`price`\" \n- \"`text`\" \n- \"`time`\" \n- \"`url`\"", + "description": "The type of the attribute. Acceptable values are: - \"`boolean`\" - \"`datetimerange`\" - \"`float`\" - \"`group`\" - \"`int`\" - \"`price`\" - \"`text`\" - \"`time`\" - \"`url`\" ", "type": "string" }, "unit": { @@ -4229,7 +4330,7 @@ "type": "string" }, "reasonCode": { - "description": "Code of the return reason.\n\nAcceptable values are: \n- \"`betterPriceFound`\" \n- \"`changedMind`\" \n- \"`damagedOrDefectiveItem`\" \n- \"`didNotMatchDescription`\" \n- \"`doesNotFit`\" \n- \"`expiredItem`\" \n- \"`incorrectItemReceived`\" \n- \"`noLongerNeeded`\" \n- \"`notSpecified`\" \n- \"`orderedWrongItem`\" \n- \"`other`\" \n- \"`qualityNotExpected`\" \n- \"`receivedTooLate`\" \n- \"`undeliverable`\"", + "description": "Code of the return reason. Acceptable values are: - \"`betterPriceFound`\" - \"`changedMind`\" - \"`damagedOrDefectiveItem`\" - \"`didNotMatchDescription`\" - \"`doesNotFit`\" - \"`expiredItem`\" - \"`incorrectItemReceived`\" - \"`noLongerNeeded`\" - \"`notSpecified`\" - \"`orderedWrongItem`\" - \"`other`\" - \"`qualityNotExpected`\" - \"`receivedTooLate`\" - \"`undeliverable`\" ", "type": "string" } }, @@ -4249,7 +4350,7 @@ "type": "integer" }, "timezone": { - "description": "Timezone identifier for the cutoff time. A list of identifiers can be found in the AdWords API documentation. E.g. \"Europe/Zurich\". Required.", + "description": "Timezone identifier for the cutoff time. A list of identifiers can be found in the AdWords API documentation. E.g. \"Europe/Zurich\". Required.", "type": "string" } }, @@ -4268,13 +4369,7 @@ "type": "string" }, "contentType": { - "annotations": { - "required": [ - "content.datafeeds.insert", - "content.datafeeds.update" - ] - }, - "description": "Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported.\n\nAcceptable values are: \n- \"`local products`\" \n- \"`product inventory`\" \n- \"`products`\"", + "description": "Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported. Acceptable values are: - \"`local products`\" - \"`product inventory`\" - \"`products`\" ", "type": "string" }, "fetchSchedule": { @@ -4282,12 +4377,6 @@ "description": "Fetch schedule for the feed file." }, "fileName": { - "annotations": { - "required": [ - "content.datafeeds.insert", - "content.datafeeds.update" - ] - }, "description": "Required. The filename of the feed. All feeds must have a unique file name.", "type": "string" }, @@ -4296,33 +4385,22 @@ "description": "Format of the feed file." }, "id": { - "annotations": { - "required": [ - "content.datafeeds.update" - ] - }, "description": "Required for update. The ID of the data feed.", "format": "int64", "type": "string" }, "intendedDestinations": { - "description": "[DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).", + "description": "[DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).", "items": { "type": "string" }, "type": "array" }, "kind": { - "default": "content#datafeed", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#datafeed`\"", "type": "string" }, "name": { - "annotations": { - "required": [ - "content.datafeeds.insert" - ] - }, "description": "Required for insert. A descriptive name of the data feed.", "type": "string" }, @@ -4380,7 +4458,7 @@ "type": "string" }, "weekday": { - "description": "The day of the week the feed file should be fetched.\n\nAcceptable values are: \n- \"`monday`\" \n- \"`tuesday`\" \n- \"`wednesday`\" \n- \"`thursday`\" \n- \"`friday`\" \n- \"`saturday`\" \n- \"`sunday`\"", + "description": "The day of the week the feed file should be fetched. Acceptable values are: - \"`monday`\" - \"`tuesday`\" - \"`wednesday`\" - \"`thursday`\" - \"`friday`\" - \"`saturday`\" - \"`sunday`\" ", "type": "string" } }, @@ -4390,15 +4468,15 @@ "id": "DatafeedFormat", "properties": { "columnDelimiter": { - "description": "Delimiter for the separation of values in a delimiter-separated values feed. If not specified, the delimiter will be auto-detected. Ignored for non-DSV data feeds.\n\nAcceptable values are: \n- \"`pipe`\" \n- \"`tab`\" \n- \"`tilde`\"", + "description": "Delimiter for the separation of values in a delimiter-separated values feed. If not specified, the delimiter will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - \"`pipe`\" - \"`tab`\" - \"`tilde`\" ", "type": "string" }, "fileEncoding": { - "description": "Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.\n\nAcceptable values are: \n- \"`latin-1`\" \n- \"`utf-16be`\" \n- \"`utf-16le`\" \n- \"`utf-8`\" \n- \"`windows-1252`\"", + "description": "Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected. Acceptable values are: - \"`latin-1`\" - \"`utf-16be`\" - \"`utf-16le`\" - \"`utf-8`\" - \"`windows-1252`\" ", "type": "string" }, "quotingMode": { - "description": "Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.\n\nAcceptable values are: \n- \"`normal character`\" \n- \"`value quoting`\"", + "description": "Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - \"`normal character`\" - \"`value quoting`\" ", "type": "string" } }, @@ -4409,7 +4487,7 @@ "id": "DatafeedStatus", "properties": { "country": { - "description": "The country for which the status is reported, represented as a CLDR territory code.", + "description": "The country for which the status is reported, represented as a CLDR territory code.", "type": "string" }, "datafeedId": { @@ -4435,7 +4513,6 @@ "type": "string" }, "kind": { - "default": "content#datafeedStatus", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#datafeedStatus`\"", "type": "string" }, @@ -4448,7 +4525,7 @@ "type": "string" }, "processingStatus": { - "description": "The processing status of the feed.\n\nAcceptable values are: \n- \"`\"`failure`\": The feed could not be processed or all items had errors.`\" \n- \"`in progress`\": The feed is being processed. \n- \"`none`\": The feed has not yet been processed. For example, a feed that has never been uploaded will have this processing status. \n- \"`success`\": The feed was processed successfully, though some items might have had errors.", + "description": "The processing status of the feed. Acceptable values are: - \"`\"`failure`\": The feed could not be processed or all items had errors.`\" - \"`in progress`\": The feed is being processed. - \"`none`\": The feed has not yet been processed. For example, a feed that has never been uploaded will have this processing status. - \"`success`\": The feed was processed successfully, though some items might have had errors. ", "type": "string" }, "warnings": { @@ -4512,7 +4589,7 @@ "id": "DatafeedTarget", "properties": { "country": { - "description": "The country where the items in the feed will be included in the search index, represented as a CLDR territory code.", + "description": "The country where the items in the feed will be included in the search index, represented as a CLDR territory code.", "type": "string" }, "excludedDestinations": { @@ -4523,7 +4600,7 @@ "type": "array" }, "includedDestinations": { - "description": "The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`.\n\nList of supported destinations (if available to the account): \n- DisplayAds \n- Shopping \n- ShoppingActions \n- SurfacesAcrossGoogle", + "description": "The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`. List of supported destinations (if available to the account): - DisplayAds - Shopping - ShoppingActions - SurfacesAcrossGoogle ", "items": { "type": "string" }, @@ -4573,7 +4650,7 @@ "type": "string" }, "method": { - "description": "The method of the batch entry.\n\nAcceptable values are: \n- \"`delete`\" \n- \"`fetchNow`\" \n- \"`get`\" \n- \"`insert`\" \n- \"`update`\"", + "description": "The method of the batch entry. Acceptable values are: - \"`delete`\" - \"`fetchNow`\" - \"`get`\" - \"`insert`\" - \"`update`\" ", "type": "string" } }, @@ -4590,7 +4667,6 @@ "type": "array" }, "kind": { - "default": "content#datafeedsCustomBatchResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#datafeedsCustomBatchResponse\".", "type": "string" } @@ -4621,7 +4697,6 @@ "id": "DatafeedsFetchNowResponse", "properties": { "kind": { - "default": "content#datafeedsFetchNowResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#datafeedsFetchNowResponse\".", "type": "string" } @@ -4632,7 +4707,6 @@ "id": "DatafeedsListResponse", "properties": { "kind": { - "default": "content#datafeedsListResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#datafeedsListResponse\".", "type": "string" }, @@ -4690,7 +4764,7 @@ "type": "string" }, "method": { - "description": "The method of the batch entry.\n\nAcceptable values are: \n- \"`get`\"", + "description": "The method of the batch entry. Acceptable values are: - \"`get`\" ", "type": "string" } }, @@ -4707,7 +4781,6 @@ "type": "array" }, "kind": { - "default": "content#datafeedstatusesCustomBatchResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#datafeedstatusesCustomBatchResponse\".", "type": "string" } @@ -4738,7 +4811,6 @@ "id": "DatafeedstatusesListResponse", "properties": { "kind": { - "default": "content#datafeedstatusesListResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#datafeedstatusesListResponse\".", "type": "string" }, @@ -4899,7 +4971,7 @@ "type": "array" }, "numberOfItems": { - "description": "A list of inclusive number of items upper bounds. The last value can be `\"infinity\"`. For example `[\"10\", \"50\", \"infinity\"]` represents the headers \"\u003c= 10 items\", \" 50 items\". Must be non-empty. Can only be set if all other fields are not set.", + "description": "A list of inclusive number of items upper bounds. The last value can be `\"infinity\"`. For example `[\"10\", \"50\", \"infinity\"]` represents the headers \"\u003c= 10 items\", \"\u003c= 50 items\", and \"\u003e 50 items\". Must be non-empty. Can only be set if all other fields are not set.", "items": { "type": "string" }, @@ -4913,14 +4985,14 @@ "type": "array" }, "prices": { - "description": "A list of inclusive order price upper bounds. The last price's value can be `\"infinity\"`. For example `[{\"value\": \"10\", \"currency\": \"USD\"}, {\"value\": \"500\", \"currency\": \"USD\"}, {\"value\": \"infinity\", \"currency\": \"USD\"}]` represents the headers \"\u003c= $10\", \" $500\". All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.", + "description": "A list of inclusive order price upper bounds. The last price's value can be `\"infinity\"`. For example `[{\"value\": \"10\", \"currency\": \"USD\"}, {\"value\": \"500\", \"currency\": \"USD\"}, {\"value\": \"infinity\", \"currency\": \"USD\"}]` represents the headers \"\u003c= $10\", \"\u003c= $500\", and \"\u003e $500\". All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.", "items": { "$ref": "Price" }, "type": "array" }, "weights": { - "description": "A list of inclusive order weight upper bounds. The last weight's value can be `\"infinity\"`. For example `[{\"value\": \"10\", \"unit\": \"kg\"}, {\"value\": \"50\", \"unit\": \"kg\"}, {\"value\": \"infinity\", \"unit\": \"kg\"}]` represents the headers \"\u003c= 10kg\", \" 50kg\". All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.", + "description": "A list of inclusive order weight upper bounds. The last weight's value can be `\"infinity\"`. For example `[{\"value\": \"10\", \"unit\": \"kg\"}, {\"value\": \"50\", \"unit\": \"kg\"}, {\"value\": \"infinity\", \"unit\": \"kg\"}]` represents the headers \"\u003c= 10kg\", \"\u003c= 50kg\", and \"\u003e 50kg\". All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.", "items": { "$ref": "Weight" }, @@ -4942,7 +5014,7 @@ "type": "integer" }, "deadlineTimezone": { - "description": "Timezone identifier for the deadline hour. A list of identifiers can be found in the AdWords API documentation. E.g. \"Europe/Zurich\". Required.", + "description": "Timezone identifier for the deadline hour. A list of identifiers can be found in the AdWords API documentation. E.g. \"Europe/Zurich\". Required.", "type": "string" }, "holidayId": { @@ -4981,7 +5053,7 @@ "type": "string" }, "type": { - "description": "The holiday type. Always present.\n\nAcceptable values are: \n- \"`Christmas`\" \n- \"`Easter`\" \n- \"`Father's Day`\" \n- \"`Halloween`\" \n- \"`Independence Day (USA)`\" \n- \"`Mother's Day`\" \n- \"`Thanksgiving`\" \n- \"`Valentine's Day`\"", + "description": "The holiday type. Always present. Acceptable values are: - \"`Christmas`\" - \"`Easter`\" - \"`Father's Day`\" - \"`Halloween`\" - \"`Independence Day (USA)`\" - \"`Mother's Day`\" - \"`Thanksgiving`\" - \"`Valentine's Day`\" ", "type": "string" } }, @@ -5003,11 +5075,10 @@ "type": "object" }, "Inventory": { - "description": "(== resource_for v2.inventory ==)", "id": "Inventory", "properties": { "availability": { - "description": "The availability of the product.\n\nAcceptable values are: \n- \"`in stock`\" \n- \"`out of stock`\" \n- \"`preorder`\"", + "description": "The availability of the product. Acceptable values are: - \"`in stock`\" - \"`out of stock`\" - \"`preorder`\" ", "type": "string" }, "customLabel0": { @@ -5039,7 +5110,6 @@ "type": "string" }, "kind": { - "default": "content#inventory", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#inventory`\"", "type": "string" }, @@ -5129,7 +5199,6 @@ "type": "array" }, "kind": { - "default": "content#inventoryCustomBatchResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#inventoryCustomBatchResponse\".", "type": "string" } @@ -5150,7 +5219,6 @@ "description": "A list of errors defined if and only if the request failed." }, "kind": { - "default": "content#inventoryCustomBatchResponseEntry", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#inventoryCustomBatchResponseEntry`\"", "type": "string" } @@ -5161,11 +5229,11 @@ "id": "InventoryPickup", "properties": { "pickupMethod": { - "description": "Whether store pickup is available for this offer and whether the pickup option should be shown as buy, reserve, or not supported. Only supported for local inventory. Unless the value is \"not supported\", must be submitted together with `pickupSla`.\n\nAcceptable values are: \n- \"`buy`\" \n- \"`not supported`\" \n- \"`reserve`\" \n- \"`ship to store`\"", + "description": "Whether store pickup is available for this offer and whether the pickup option should be shown as buy, reserve, or not supported. Only supported for local inventory. Unless the value is \"not supported\", must be submitted together with `pickupSla`. Acceptable values are: - \"`buy`\" - \"`not supported`\" - \"`reserve`\" - \"`ship to store`\" ", "type": "string" }, "pickupSla": { - "description": "The expected date that an order will be ready for pickup, relative to when the order is placed. Only supported for local inventory. Must be submitted together with `pickupMethod`.\n\nAcceptable values are: \n- \"`five day`\" \n- \"`four day`\" \n- \"`multi day`\" \n- \"`multi week`\" \n- \"`next day`\" \n- \"`same day`\" \n- \"`seven day`\" \n- \"`six day`\" \n- \"`three day`\" \n- \"`two day`\"", + "description": "The expected date that an order will be ready for pickup, relative to when the order is placed. Only supported for local inventory. Must be submitted together with `pickupMethod`. Acceptable values are: - \"`five day`\" - \"`four day`\" - \"`multi day`\" - \"`multi week`\" - \"`next day`\" - \"`same day`\" - \"`seven day`\" - \"`six day`\" - \"`three day`\" - \"`two day`\" ", "type": "string" } }, @@ -5175,7 +5243,7 @@ "id": "InventorySetRequest", "properties": { "availability": { - "description": "The availability of the product.\n\nAcceptable values are: \n- \"`in stock`\" \n- \"`out of stock`\" \n- \"`preorder`\"", + "description": "The availability of the product. Acceptable values are: - \"`in stock`\" - \"`out of stock`\" - \"`preorder`\" ", "type": "string" }, "customLabel0": { @@ -5243,7 +5311,6 @@ "id": "InventorySetResponse", "properties": { "kind": { - "default": "content#inventorySetResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#inventorySetResponse\".", "type": "string" } @@ -5294,7 +5361,7 @@ "description": "[required] Total additional charge for this type." }, "type": { - "description": "[required] Type of the additional charge.\n\nAcceptable values are: \n- \"`shipping`\"", + "description": "[required] Type of the additional charge. Acceptable values are: - \"`shipping`\" ", "type": "string" } }, @@ -5304,7 +5371,7 @@ "id": "LiaAboutPageSettings", "properties": { "status": { - "description": "The status of the verification process for the About page.\n\nAcceptable values are: \n- \"`active`\" \n- \"`inactive`\" \n- \"`pending`\"", + "description": "The status of the verification process for the About page. Acceptable values are: - \"`active`\" - \"`inactive`\" - \"`pending`\" ", "type": "string" }, "url": { @@ -5322,11 +5389,6 @@ "description": "The settings for the About page." }, "country": { - "annotations": { - "required": [ - "content.liasettings.update" - ] - }, "description": "Required. CLDR country code (e.g. \"US\").", "type": "string" }, @@ -5365,11 +5427,11 @@ "type": "string" }, "inventoryVerificationContactStatus": { - "description": "The status of the verification contact.\n\nAcceptable values are: \n- \"`active`\" \n- \"`inactive`\" \n- \"`pending`\"", + "description": "The status of the verification contact. Acceptable values are: - \"`active`\" - \"`inactive`\" - \"`pending`\" ", "type": "string" }, "status": { - "description": "The status of the inventory verification process.\n\nAcceptable values are: \n- \"`active`\" \n- \"`inactive`\" \n- \"`pending`\"", + "description": "The status of the inventory verification process. Acceptable values are: - \"`active`\" - \"`inactive`\" - \"`pending`\" ", "type": "string" } }, @@ -5383,7 +5445,7 @@ "type": "string" }, "status": { - "description": "The status of the ?On display to order? feature.\n\nAcceptable values are: \n- \"`active`\" \n- \"`inactive`\" \n- \"`pending`\"", + "description": "The status of the ?On display to order? feature. Acceptable values are: - \"`active`\" - \"`inactive`\" - \"`pending`\" ", "type": "string" } }, @@ -5421,7 +5483,6 @@ "type": "array" }, "kind": { - "default": "content#liaSettings", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#liaSettings`\"", "type": "string" } @@ -5480,7 +5541,7 @@ "type": "string" }, "method": { - "description": "The method of the batch entry.\n\nAcceptable values are: \n- \"`get`\" \n- \"`getAccessibleGmbAccounts`\" \n- \"`requestGmbAccess`\" \n- \"`requestInventoryVerification`\" \n- \"`setInventoryVerificationContact`\" \n- \"`update`\"", + "description": "The method of the batch entry. Acceptable values are: - \"`get`\" - \"`getAccessibleGmbAccounts`\" - \"`requestGmbAccess`\" - \"`requestInventoryVerification`\" - \"`setInventoryVerificationContact`\" - \"`update`\" ", "type": "string" }, "posDataProviderId": { @@ -5506,7 +5567,6 @@ "type": "array" }, "kind": { - "default": "content#liasettingsCustomBatchResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#liasettingsCustomBatchResponse\".", "type": "string" } @@ -5530,7 +5590,6 @@ "description": "The the list of accessible GMB accounts." }, "kind": { - "default": "content#liasettingsCustomBatchResponseEntry", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#liasettingsCustomBatchResponseEntry`\"", "type": "string" }, @@ -5564,7 +5623,6 @@ "type": "array" }, "kind": { - "default": "content#liasettingsGetAccessibleGmbAccountsResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#liasettingsGetAccessibleGmbAccountsResponse\".", "type": "string" } @@ -5575,7 +5633,6 @@ "id": "LiasettingsListPosDataProvidersResponse", "properties": { "kind": { - "default": "content#liasettingsListPosDataProvidersResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#liasettingsListPosDataProvidersResponse\".", "type": "string" }, @@ -5593,7 +5650,6 @@ "id": "LiasettingsListResponse", "properties": { "kind": { - "default": "content#liasettingsListResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#liasettingsListResponse\".", "type": "string" }, @@ -5614,7 +5670,6 @@ "id": "LiasettingsRequestGmbAccessResponse", "properties": { "kind": { - "default": "content#liasettingsRequestGmbAccessResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#liasettingsRequestGmbAccessResponse\".", "type": "string" } @@ -5625,7 +5680,6 @@ "id": "LiasettingsRequestInventoryVerificationResponse", "properties": { "kind": { - "default": "content#liasettingsRequestInventoryVerificationResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#liasettingsRequestInventoryVerificationResponse\".", "type": "string" } @@ -5636,7 +5690,6 @@ "id": "LiasettingsSetInventoryVerificationContactResponse", "properties": { "kind": { - "default": "content#liasettingsSetInventoryVerificationContactResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#liasettingsSetInventoryVerificationContactResponse\".", "type": "string" } @@ -5647,7 +5700,6 @@ "id": "LiasettingsSetPosDataProviderResponse", "properties": { "kind": { - "default": "content#liasettingsSetPosDataProviderResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#liasettingsSetPosDataProviderResponse\".", "type": "string" } @@ -5751,7 +5803,7 @@ "type": "array" }, "state": { - "description": "State of the item.\n\nAcceptable values are: \n- \"`canceled`\" \n- \"`new`\" \n- \"`received`\" \n- \"`refunded`\" \n- \"`rejected`\"", + "description": "State of the item. Acceptable values are: - \"`canceled`\" - \"`new`\" - \"`received`\" - \"`refunded`\" - \"`rejected`\" ", "type": "string" } }, @@ -5788,7 +5840,7 @@ "type": "object" }, "Order": { - "description": "Order. Production access (all methods) requires the order manager role. Sandbox access does not. (== resource_for v2.orders ==) (== resource_for v2.1.orders ==)", + "description": "Order. Production access (all methods) requires the order manager role. Sandbox access does not.", "id": "Order", "properties": { "acknowledged": { @@ -5796,7 +5848,7 @@ "type": "boolean" }, "channelType": { - "description": "Deprecated.\n\nAcceptable values are: \n- \"`googleExpress`\" \n- \"`purchasesOnGoogle`\"", + "description": "Deprecated. Acceptable values are: - \"`googleExpress`\" - \"`purchasesOnGoogle`\" ", "type": "string" }, "customer": { @@ -5812,7 +5864,6 @@ "type": "string" }, "kind": { - "default": "content#order", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#order`\"", "type": "string" }, @@ -5840,7 +5891,7 @@ "description": "The details of the payment method." }, "paymentStatus": { - "description": "The status of the payment.\n\nAcceptable values are: \n- \"`paymentCaptured`\" \n- \"`paymentRejected`\" \n- \"`paymentSecured`\" \n- \"`pendingAuthorization`\"", + "description": "The status of the payment. Acceptable values are: - \"`paymentCaptured`\" - \"`paymentRejected`\" - \"`paymentSecured`\" - \"`pendingAuthorization`\" ", "type": "string" }, "pickupDetails": { @@ -5852,7 +5903,7 @@ "type": "string" }, "promotions": { - "description": "The details of the merchant provided promotions applied to the order.\n\nTo determine which promotions apply to which products, check the `Promotions[].Benefits[].OfferIds` field against the `LineItems[].Product.OfferId` field for each promotion. If a promotion is applied to more than 1 `offerId`, divide the discount value by the number of affected offers to determine how much discount to apply to each `offerId`.\n\nExamples: \n- To calculate the line item level discount for a single specific item: For each promotion, subtract the `Promotions[].Benefits[].Discount.value` amount from the `LineItems[].Price.value`. \n- To calculate the line item level discount for multiple quantity of a specific item: For each promotion, divide the `Promotions[].Benefits[].Discount.value` by the quantity of products and substract it from `LineItems[].Product.Price.value` for each quantity item. \n\nOnly 1 promotion can be applied to an offerId in a given order. To refund an item which had a promotion applied to it, make sure to refund the amount after first subtracting the promotion discount from the item price.\n\nMore details about the program are here.", + "description": "The details of the merchant provided promotions applied to the order. To determine which promotions apply to which products, check the `Promotions[].Benefits[].OfferIds` field against the `LineItems[].Product.OfferId` field for each promotion. If a promotion is applied to more than 1 `offerId`, divide the discount value by the number of affected offers to determine how much discount to apply to each `offerId`. Examples: 1. To calculate the line item level discount for a single specific item: For each promotion, subtract the `Promotions[].Benefits[].Discount.value` amount from the `LineItems[].Price.value`. 2. To calculate the line item level discount for multiple quantity of a specific item: For each promotion, divide the `Promotions[].Benefits[].Discount.value` by the quantity of products and substract it from `LineItems[].Product.Price.value` for each quantity item. Only 1 promotion can be applied to an offerId in a given order. To refund an item which had a promotion applied to it, make sure to refund the amount after first subtracting the promotion discount from the item price. More details about the program are here.", "items": { "$ref": "OrderLegacyPromotion" }, @@ -5881,15 +5932,15 @@ "description": "The tax for the total shipping cost." }, "shippingOption": { - "description": "Deprecated. Shipping details are provided with line items instead.\n\nAcceptable values are: \n- \"`economy`\" \n- \"`expedited`\" \n- \"`oneDay`\" \n- \"`sameDay`\" \n- \"`standard`\" \n- \"`twoDay`\"", + "description": "Deprecated. Shipping details are provided with line items instead. Acceptable values are: - \"`economy`\" - \"`expedited`\" - \"`oneDay`\" - \"`sameDay`\" - \"`standard`\" - \"`twoDay`\" ", "type": "string" }, "status": { - "description": "The status of the order.\n\nAcceptable values are: \n- \"`canceled`\" \n- \"`delivered`\" \n- \"`inProgress`\" \n- \"`partiallyDelivered`\" \n- \"`partiallyReturned`\" \n- \"`partiallyShipped`\" \n- \"`pendingShipment`\" \n- \"`returned`\" \n- \"`shipped`\"", + "description": "The status of the order. Acceptable values are: - \"`canceled`\" - \"`delivered`\" - \"`inProgress`\" - \"`partiallyDelivered`\" - \"`partiallyReturned`\" - \"`partiallyShipped`\" - \"`pendingShipment`\" - \"`returned`\" - \"`shipped`\" ", "type": "string" }, "taxCollector": { - "description": "The party responsible for collecting and remitting taxes.\n\nAcceptable values are: \n- \"`marketplaceFacilitator`\" \n- \"`merchant`\"", + "description": "The party responsible for collecting and remitting taxes. Acceptable values are: - \"`marketplaceFacilitator`\" - \"`merchant`\" ", "type": "string" } }, @@ -5903,7 +5954,7 @@ "type": "string" }, "fullAddress": { - "description": "Strings representing the lines of the printed label for mailing the order, for example:\nJohn Smith\n1600 Amphitheatre Parkway\nMountain View, CA, 94043\nUnited States", + "description": "Strings representing the lines of the printed label for mailing the order, for example: John Smith 1600 Amphitheatre Parkway Mountain View, CA, 94043 United States ", "items": { "type": "string" }, @@ -5943,7 +5994,7 @@ "id": "OrderCancellation", "properties": { "actor": { - "description": "The actor that created the cancellation.\n\nAcceptable values are: \n- \"`customer`\" \n- \"`googleBot`\" \n- \"`googleCustomerService`\" \n- \"`googlePayments`\" \n- \"`googleSabre`\" \n- \"`merchant`\"", + "description": "The actor that created the cancellation. Acceptable values are: - \"`customer`\" - \"`googleBot`\" - \"`googleCustomerService`\" - \"`googlePayments`\" - \"`googleSabre`\" - \"`merchant`\" ", "type": "string" }, "creationDate": { @@ -5956,7 +6007,7 @@ "type": "integer" }, "reason": { - "description": "The reason for the cancellation. Orders that are canceled with a noInventory reason will lead to the removal of the product from Shopping Actions until you make an update to that product. This will not affect your Shopping ads.\n\nAcceptable values are: \n- \"`autoPostInternal`\" \n- \"`autoPostInvalidBillingAddress`\" \n- \"`autoPostNoInventory`\" \n- \"`autoPostPriceError`\" \n- \"`autoPostUndeliverableShippingAddress`\" \n- \"`couponAbuse`\" \n- \"`customerCanceled`\" \n- \"`customerInitiatedCancel`\" \n- \"`customerSupportRequested`\" \n- \"`failToPushOrderGoogleError`\" \n- \"`failToPushOrderMerchantError`\" \n- \"`failToPushOrderMerchantFulfillmentError`\" \n- \"`failToPushOrderToMerchant`\" \n- \"`failToPushOrderToMerchantOutOfStock`\" \n- \"`invalidCoupon`\" \n- \"`malformedShippingAddress`\" \n- \"`merchantDidNotShipOnTime`\" \n- \"`noInventory`\" \n- \"`orderTimeout`\" \n- \"`other`\" \n- \"`paymentAbuse`\" \n- \"`paymentDeclined`\" \n- \"`priceError`\" \n- \"`returnRefundAbuse`\" \n- \"`shippingPriceError`\" \n- \"`taxError`\" \n- \"`undeliverableShippingAddress`\" \n- \"`unsupportedPoBoxAddress`\"", + "description": "The reason for the cancellation. Orders that are canceled with a noInventory reason will lead to the removal of the product from Buy on Google until you make an update to that product. This will not affect your Shopping ads. Acceptable values are: - \"`autoPostInternal`\" - \"`autoPostInvalidBillingAddress`\" - \"`autoPostNoInventory`\" - \"`autoPostPriceError`\" - \"`autoPostUndeliverableShippingAddress`\" - \"`couponAbuse`\" - \"`customerCanceled`\" - \"`customerInitiatedCancel`\" - \"`customerSupportRequested`\" - \"`failToPushOrderGoogleError`\" - \"`failToPushOrderMerchantError`\" - \"`failToPushOrderMerchantFulfillmentError`\" - \"`failToPushOrderToMerchant`\" - \"`failToPushOrderToMerchantOutOfStock`\" - \"`invalidCoupon`\" - \"`malformedShippingAddress`\" - \"`merchantDidNotShipOnTime`\" - \"`noInventory`\" - \"`orderTimeout`\" - \"`other`\" - \"`paymentAbuse`\" - \"`paymentDeclined`\" - \"`priceError`\" - \"`returnRefundAbuse`\" - \"`shippingPriceError`\" - \"`taxError`\" - \"`undeliverableShippingAddress`\" - \"`unsupportedPoBoxAddress`\" ", "type": "string" }, "reasonText": { @@ -5982,7 +6033,7 @@ "type": "string" }, "invoiceReceivingEmail": { - "description": "Email address for the merchant to send value-added tax or invoice documentation of the order. Only the last document sent is made available to the customer. For more information, see About automated VAT invoicing for Shopping Actions.", + "description": "Email address for the merchant to send value-added tax or invoice documentation of the order. Only the last document sent is made available to the customer. For more information, see About automated VAT invoicing for Buy on Google.", "type": "string" }, "marketingRightsInfo": { @@ -5996,7 +6047,7 @@ "id": "OrderCustomerMarketingRightsInfo", "properties": { "explicitMarketingPreference": { - "description": "Last known customer selection regarding marketing preferences. In certain cases this selection might not be known, so this field would be empty. If a customer selected `granted` in their most recent order, they can be subscribed to marketing emails. Customers who have chosen `denied` must not be subscribed, or must be unsubscribed if already opted-in.\n\nAcceptable values are: \n- \"`denied`\" \n- \"`granted`\"", + "description": "Last known customer selection regarding marketing preferences. In certain cases this selection might not be known, so this field would be empty. If a customer selected `granted` in their most recent order, they can be subscribed to marketing emails. Customers who have chosen `denied` must not be subscribed, or must be unsubscribed if already opted-in. Acceptable values are: - \"`denied`\" - \"`granted`\" ", "type": "string" }, "lastUpdatedTimestamp": { @@ -6034,7 +6085,7 @@ "type": "array" }, "effectiveDates": { - "description": "The date and time frame when the promotion is active and ready for validation review. Note that the promotion live time may be delayed for a few hours due to the validation review.\nStart date and end date are separated by a forward slash (/). The start date is specified by the format (YYYY-MM-DD), followed by the letter ?T?, the time of the day when the sale starts (in Greenwich Mean Time, GMT), followed by an expression of the time zone for the sale. The end date is in the same format.", + "description": "The date and time frame when the promotion is active and ready for validation review. Note that the promotion live time may be delayed for a few hours due to the validation review. Start date and end date are separated by a forward slash (/). The start date is specified by the format (YYYY-MM-DD), followed by the letter ?T?, the time of the day when the sale starts (in Greenwich Mean Time, GMT), followed by an expression of the time zone for the sale. The end date is in the same format.", "type": "string" }, "genericRedemptionCode": { @@ -6050,11 +6101,11 @@ "type": "string" }, "productApplicability": { - "description": "Whether the promotion is applicable to all products or only specific products.\n\nAcceptable values are: \n- \"`allProducts`\" \n- \"`specificProducts`\"", + "description": "Whether the promotion is applicable to all products or only specific products. Acceptable values are: - \"`allProducts`\" - \"`specificProducts`\" ", "type": "string" }, "redemptionChannel": { - "description": "Indicates that the promotion is valid online.\n\nAcceptable values are: \n- \"`online`\"", + "description": "Indicates that the promotion is valid online. Acceptable values are: - \"`online`\" ", "type": "string" } }, @@ -6075,7 +6126,7 @@ "type": "array" }, "subType": { - "description": "Further describes the benefit of the promotion. Note that we will expand on this enumeration as we support new promotion sub-types.\n\nAcceptable values are: \n- \"`buyMGetMoneyOff`\" \n- \"`buyMGetNMoneyOff`\" \n- \"`buyMGetNPercentOff`\" \n- \"`buyMGetPercentOff`\" \n- \"`freeGift`\" \n- \"`freeGiftWithItemId`\" \n- \"`freeGiftWithValue`\" \n- \"`freeOvernightShipping`\" \n- \"`freeShipping`\" \n- \"`freeTwoDayShipping`\" \n- \"`moneyOff`\" \n- \"`percentageOff`\" \n- \"`rewardPoints`\" \n- \"`salePrice`\"", + "description": "Further describes the benefit of the promotion. Note that we will expand on this enumeration as we support new promotion sub-types. Acceptable values are: - \"`buyMGetMoneyOff`\" - \"`buyMGetNMoneyOff`\" - \"`buyMGetNPercentOff`\" - \"`buyMGetPercentOff`\" - \"`freeGift`\" - \"`freeGiftWithItemId`\" - \"`freeGiftWithValue`\" - \"`freeOvernightShipping`\" - \"`freeShipping`\" - \"`freeTwoDayShipping`\" - \"`moneyOff`\" - \"`percentageOff`\" - \"`rewardPoints`\" - \"`salePrice`\" ", "type": "string" }, "taxImpact": { @@ -6083,7 +6134,7 @@ "description": "The impact on tax when the promotion is applied." }, "type": { - "description": "Describes whether the promotion applies to products (e.g. 20% off) or to shipping (e.g. Free Shipping).\n\nAcceptable values are: \n- \"`product`\" \n- \"`shipping`\"", + "description": "Describes whether the promotion applies to products (e.g. 20% off) or to shipping (e.g. Free Shipping). Acceptable values are: - \"`product`\" - \"`shipping`\" ", "type": "string" } }, @@ -6183,11 +6234,11 @@ "type": "string" }, "channel": { - "description": "The item's channel (online or local).\n\nAcceptable values are: \n- \"`local`\" \n- \"`online`\"", + "description": "The item's channel (online or local). Acceptable values are: - \"`local`\" - \"`online`\" ", "type": "string" }, "condition": { - "description": "Condition or state of the item.\n\nAcceptable values are: \n- \"`new`\" \n- \"`refurbished`\" \n- \"`used`\"", + "description": "Condition or state of the item. Acceptable values are: - \"`new`\" - \"`refurbished`\" - \"`used`\" ", "type": "string" }, "contentLanguage": { @@ -6234,7 +6285,7 @@ "type": "string" }, "targetCountry": { - "description": "The CLDR territory code of the target country of the product.", + "description": "The CLDR territory // code of the target country of the product.", "type": "string" }, "title": { @@ -6283,30 +6334,15 @@ "id": "OrderLineItemReturnInfo", "properties": { "daysToReturn": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. How many days later the item can be returned.", "format": "int32", "type": "integer" }, "isReturnable": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. Whether the item is returnable.", "type": "boolean" }, "policyUrl": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. URL of the item return policy.", "type": "string" } @@ -6317,34 +6353,19 @@ "id": "OrderLineItemShippingDetails", "properties": { "deliverByDate": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. The delivery by date, in ISO 8601 format.", "type": "string" }, "method": { "$ref": "OrderLineItemShippingDetailsMethod", - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. Details of the shipping method." }, "shipByDate": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. The ship by date, in ISO 8601 format.", "type": "string" }, "type": { - "description": "Type of shipment. Indicates whether `deliveryDetails` or `pickupDetails` is applicable for this shipment.\n\nAcceptable values are: \n- \"`delivery`\" \n- \"`pickup`\"", + "description": "Type of shipment. Indicates whether `deliveryDetails` or `pickupDetails` is applicable for this shipment. Acceptable values are: - \"`delivery`\" - \"`pickup`\" ", "type": "string" } }, @@ -6358,30 +6379,15 @@ "type": "string" }, "maxDaysInTransit": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. Maximum transit time.", "format": "uint32", "type": "integer" }, "methodName": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. The name of the shipping method.", "type": "string" }, "minDaysInTransit": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. Minimum transit time.", "format": "uint32", "type": "integer" @@ -6429,7 +6435,7 @@ "type": "string" }, "type": { - "description": "The type of instrument.\n\nAcceptable values are: \n- \"`AMEX`\" \n- \"`DISCOVER`\" \n- \"`JCB`\" \n- \"`MASTERCARD`\" \n- \"`UNIONPAY`\" \n- \"`VISA`\" \n- \"``\"", + "description": "The type of instrument. Acceptable values are: - \"`AMEX`\" - \"`DISCOVER`\" - \"`JCB`\" - \"`MASTERCARD`\" - \"`UNIONPAY`\" - \"`VISA`\" - \"``\" ", "type": "string" } }, @@ -6474,7 +6480,7 @@ "id": "OrderRefund", "properties": { "actor": { - "description": "The actor that created the refund.\n\nAcceptable values are: \n- \"`customer`\" \n- \"`googleBot`\" \n- \"`googleCustomerService`\" \n- \"`googlePayments`\" \n- \"`googleSabre`\" \n- \"`merchant`\"", + "description": "The actor that created the refund. Acceptable values are: - \"`customer`\" - \"`googleBot`\" - \"`googleCustomerService`\" - \"`googlePayments`\" - \"`googleSabre`\" - \"`merchant`\" ", "type": "string" }, "amount": { @@ -6486,7 +6492,7 @@ "type": "string" }, "reason": { - "description": "The reason for the refund.\n\nAcceptable values are: \n- \"`adjustment`\" \n- \"`autoPostInternal`\" \n- \"`autoPostInvalidBillingAddress`\" \n- \"`autoPostNoInventory`\" \n- \"`autoPostPriceError`\" \n- \"`autoPostUndeliverableShippingAddress`\" \n- \"`couponAbuse`\" \n- \"`courtesyAdjustment`\" \n- \"`customerCanceled`\" \n- \"`customerDiscretionaryReturn`\" \n- \"`customerInitiatedMerchantCancel`\" \n- \"`customerSupportRequested`\" \n- \"`deliveredLateByCarrier`\" \n- \"`deliveredTooLate`\" \n- \"`expiredItem`\" \n- \"`failToPushOrderGoogleError`\" \n- \"`failToPushOrderMerchantError`\" \n- \"`failToPushOrderMerchantFulfillmentError`\" \n- \"`failToPushOrderToMerchant`\" \n- \"`failToPushOrderToMerchantOutOfStock`\" \n- \"`feeAdjustment`\" \n- \"`invalidCoupon`\" \n- \"`lateShipmentCredit`\" \n- \"`malformedShippingAddress`\" \n- \"`merchantDidNotShipOnTime`\" \n- \"`noInventory`\" \n- \"`orderTimeout`\" \n- \"`other`\" \n- \"`paymentAbuse`\" \n- \"`paymentDeclined`\" \n- \"`priceAdjustment`\" \n- \"`priceError`\" \n- \"`productArrivedDamaged`\" \n- \"`productNotAsDescribed`\" \n- \"`promoReallocation`\" \n- \"`qualityNotAsExpected`\" \n- \"`returnRefundAbuse`\" \n- \"`shippingCostAdjustment`\" \n- \"`shippingPriceError`\" \n- \"`taxAdjustment`\" \n- \"`taxError`\" \n- \"`undeliverableShippingAddress`\" \n- \"`unsupportedPoBoxAddress`\" \n- \"`wrongProductShipped`\"", + "description": "The reason for the refund. Acceptable values are: - \"`adjustment`\" - \"`autoPostInternal`\" - \"`autoPostInvalidBillingAddress`\" - \"`autoPostNoInventory`\" - \"`autoPostPriceError`\" - \"`autoPostUndeliverableShippingAddress`\" - \"`couponAbuse`\" - \"`courtesyAdjustment`\" - \"`customerCanceled`\" - \"`customerDiscretionaryReturn`\" - \"`customerInitiatedMerchantCancel`\" - \"`customerSupportRequested`\" - \"`deliveredLateByCarrier`\" - \"`deliveredTooLate`\" - \"`expiredItem`\" - \"`failToPushOrderGoogleError`\" - \"`failToPushOrderMerchantError`\" - \"`failToPushOrderMerchantFulfillmentError`\" - \"`failToPushOrderToMerchant`\" - \"`failToPushOrderToMerchantOutOfStock`\" - \"`feeAdjustment`\" - \"`invalidCoupon`\" - \"`lateShipmentCredit`\" - \"`malformedShippingAddress`\" - \"`merchantDidNotShipOnTime`\" - \"`noInventory`\" - \"`orderTimeout`\" - \"`other`\" - \"`paymentAbuse`\" - \"`paymentDeclined`\" - \"`priceAdjustment`\" - \"`priceError`\" - \"`productArrivedDamaged`\" - \"`productNotAsDescribed`\" - \"`promoReallocation`\" - \"`qualityNotAsExpected`\" - \"`returnRefundAbuse`\" - \"`shippingCostAdjustment`\" - \"`shippingPriceError`\" - \"`taxAdjustment`\" - \"`taxError`\" - \"`undeliverableShippingAddress`\" - \"`unsupportedPoBoxAddress`\" - \"`wrongProductShipped`\" ", "type": "string" }, "reasonText": { @@ -6497,7 +6503,7 @@ "type": "object" }, "OrderReportDisbursement": { - "description": "Order disbursement. All methods require the payment analyst role. (== resource_for v2.orderreports ==) (== resource_for v2.1.orderreports ==)", + "description": "Order disbursement. All methods require the payment analyst role.", "id": "OrderReportDisbursement", "properties": { "disbursementAmount": { @@ -6575,7 +6581,7 @@ "id": "OrderReturn", "properties": { "actor": { - "description": "The actor that created the refund.\n\nAcceptable values are: \n- \"`customer`\" \n- \"`googleBot`\" \n- \"`googleCustomerService`\" \n- \"`googlePayments`\" \n- \"`googleSabre`\" \n- \"`merchant`\"", + "description": "The actor that created the refund. Acceptable values are: - \"`customer`\" - \"`googleBot`\" - \"`googleCustomerService`\" - \"`googlePayments`\" - \"`googleSabre`\" - \"`merchant`\" ", "type": "string" }, "creationDate": { @@ -6588,7 +6594,7 @@ "type": "integer" }, "reason": { - "description": "The reason for the return.\n\nAcceptable values are: \n- \"`customerDiscretionaryReturn`\" \n- \"`customerInitiatedMerchantCancel`\" \n- \"`deliveredTooLate`\" \n- \"`expiredItem`\" \n- \"`invalidCoupon`\" \n- \"`malformedShippingAddress`\" \n- \"`other`\" \n- \"`productArrivedDamaged`\" \n- \"`productNotAsDescribed`\" \n- \"`qualityNotAsExpected`\" \n- \"`undeliverableShippingAddress`\" \n- \"`unsupportedPoBoxAddress`\" \n- \"`wrongProductShipped`\"", + "description": "The reason for the return. Acceptable values are: - \"`customerDiscretionaryReturn`\" - \"`customerInitiatedMerchantCancel`\" - \"`deliveredTooLate`\" - \"`expiredItem`\" - \"`invalidCoupon`\" - \"`malformedShippingAddress`\" - \"`other`\" - \"`productArrivedDamaged`\" - \"`productNotAsDescribed`\" - \"`qualityNotAsExpected`\" - \"`undeliverableShippingAddress`\" - \"`unsupportedPoBoxAddress`\" - \"`wrongProductShipped`\" ", "type": "string" }, "reasonText": { @@ -6602,7 +6608,7 @@ "id": "OrderShipment", "properties": { "carrier": { - "description": "The carrier handling the shipment.\n\nFor supported carriers, Google includes the carrier name and tracking URL in emails to customers. For select supported carriers, Google also automatically updates the shipment status based on the provided shipment ID. Note: You can also use unsupported carriers, but emails to customers will not include the carrier name or tracking URL, and there will be no automatic order status updates. \nSupported carriers for US are: \n- \"`ups`\" (United Parcel Service) automatic status updates \n- \"`usps`\" (United States Postal Service) automatic status updates \n- \"`fedex`\" (FedEx) automatic status updates \n- \"`dhl`\" (DHL eCommerce) automatic status updates (US only) \n- \"`ontrac`\" (OnTrac) automatic status updates \n- \"`dhl express`\" (DHL Express)\n- \"`deliv`\" (Deliv) \n- \"`dynamex`\" (TForce) \n- \"`lasership`\" (LaserShip) \n- \"`mpx`\" (Military Parcel Xpress) \n- \"`uds`\" (United Delivery Service) \n- \"`efw`\" (Estes Forwarding Worldwide) \n- \"`jd logistics`\" (JD Logistics) \n- \"`yunexpress`\" (YunExpress) \n- \"`china post`\" (China Post) \n- \"`china ems`\" (China Post Express Mail Service) \n- \"`singapore post`\" (Singapore Post) \n- \"`pos malaysia`\" (Pos Malaysia) \n- \"`postnl`\" (PostNL) \n- \"`ptt`\" (PTT Turkish Post) \n- \"`eub`\" (ePacket) \n- \"`chukou1`\" (Chukou1 Logistics) \n- \"`bestex`\" (Best Express) \n- \"`canada post`\" (Canada Post) \n- \"`purolator`\" (Purolator) \n- \"`canpar`\" (Canpar) \n- \"`india post`\" (India Post) \n- \"`blue dart`\" (Blue Dart) \n- \"`delhivery`\" (Delhivery) \n- \"`dtdc`\" (DTDC) \n- \"`tpc india`\" (TPC India) \nSupported carriers for FR are: \n- \"`la poste`\" (La Poste) automatic status updates \n- \"`colissimo`\" (Colissimo by La Poste) automatic status updates \n- \"`ups`\" (United Parcel Service) automatic status updates \n- \"`chronopost`\" (Chronopost by La Poste) \n- \"`gls`\" (General Logistics Systems France) \n- \"`dpd`\" (DPD Group by GeoPost) \n- \"`bpost`\" (Belgian Post Group) \n- \"`colis prive`\" (Colis Privé) \n- \"`boxtal`\" (Boxtal) \n- \"`geodis`\" (GEODIS) \n- \"`tnt`\" (TNT) \n- \"`db schenker`\" (DB Schenker) \n- \"`aramex`\" (Aramex)", + "description": "The carrier handling the shipment. For supported carriers, Google includes the carrier name and tracking URL in emails to customers. For select supported carriers, Google also automatically updates the shipment status based on the provided shipment ID. *Note:* You can also use unsupported carriers, but emails to customers will not include the carrier name or tracking URL, and there will be no automatic order status updates. Supported carriers for US are: - \"`ups`\" (United Parcel Service) *automatic status updates* - \"`usps`\" (United States Postal Service) *automatic status updates* - \"`fedex`\" (FedEx) *automatic status updates * - \"`dhl`\" (DHL eCommerce) *automatic status updates* (US only) - \"`ontrac`\" (OnTrac) *automatic status updates * - \"`dhl express`\" (DHL Express) - \"`deliv`\" (Deliv) - \"`dynamex`\" (TForce) - \"`lasership`\" (LaserShip) - \"`mpx`\" (Military Parcel Xpress) - \"`uds`\" (United Delivery Service) - \"`efw`\" (Estes Forwarding Worldwide) - \"`jd logistics`\" (JD Logistics) - \"`yunexpress`\" (YunExpress) - \"`china post`\" (China Post) - \"`china ems`\" (China Post Express Mail Service) - \"`singapore post`\" (Singapore Post) - \"`pos malaysia`\" (Pos Malaysia) - \"`postnl`\" (PostNL) - \"`ptt`\" (PTT Turkish Post) - \"`eub`\" (ePacket) - \"`chukou1`\" (Chukou1 Logistics) - \"`bestex`\" (Best Express) - \"`canada post`\" (Canada Post) - \"`purolator`\" (Purolator) - \"`canpar`\" (Canpar) - \"`india post`\" (India Post) - \"`blue dart`\" (Blue Dart) - \"`delhivery`\" (Delhivery) - \"`dtdc`\" (DTDC) - \"`tpc india`\" (TPC India) Supported carriers for FR are: - \"`la poste`\" (La Poste) *automatic status updates * - \"`colissimo`\" (Colissimo by La Poste) *automatic status updates* - \"`ups`\" (United Parcel Service) *automatic status updates * - \"`chronopost`\" (Chronopost by La Poste) - \"`gls`\" (General Logistics Systems France) - \"`dpd`\" (DPD Group by GeoPost) - \"`bpost`\" (Belgian Post Group) - \"`colis prive`\" (Colis Privé) - \"`boxtal`\" (Boxtal) - \"`geodis`\" (GEODIS) - \"`tnt`\" (TNT) - \"`db schenker`\" (DB Schenker) - \"`aramex`\" (Aramex) ", "type": "string" }, "creationDate": { @@ -6629,7 +6635,7 @@ "description": "Delivery details of the shipment if scheduling is needed." }, "status": { - "description": "The status of the shipment.\n\nAcceptable values are: \n- \"`delivered`\" \n- \"`readyForPickup`\" \n- \"`shipped`\" \n- \"`undeliverable`\"", + "description": "The status of the shipment. Acceptable values are: - \"`delivered`\" - \"`readyForPickup`\" - \"`shipped`\" - \"`undeliverable`\" ", "type": "string" }, "trackingId": { @@ -6705,11 +6711,10 @@ "id": "OrderinvoicesCreateChargeInvoiceResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#orderinvoicesCreateChargeInvoiceResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#orderinvoicesCreateChargeInvoiceResponse\".", "type": "string" } @@ -6749,11 +6754,10 @@ "id": "OrderinvoicesCreateRefundInvoiceResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#orderinvoicesCreateRefundInvoiceResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#orderinvoicesCreateRefundInvoiceResponse\".", "type": "string" } @@ -6768,7 +6772,7 @@ "type": "string" }, "reason": { - "description": "[required] Reason for the refund.\n\nAcceptable values are: \n- \"`adjustment`\" \n- \"`autoPostInternal`\" \n- \"`autoPostInvalidBillingAddress`\" \n- \"`autoPostNoInventory`\" \n- \"`autoPostPriceError`\" \n- \"`autoPostUndeliverableShippingAddress`\" \n- \"`couponAbuse`\" \n- \"`courtesyAdjustment`\" \n- \"`customerCanceled`\" \n- \"`customerDiscretionaryReturn`\" \n- \"`customerInitiatedMerchantCancel`\" \n- \"`customerSupportRequested`\" \n- \"`deliveredLateByCarrier`\" \n- \"`deliveredTooLate`\" \n- \"`expiredItem`\" \n- \"`failToPushOrderGoogleError`\" \n- \"`failToPushOrderMerchantError`\" \n- \"`failToPushOrderMerchantFulfillmentError`\" \n- \"`failToPushOrderToMerchant`\" \n- \"`failToPushOrderToMerchantOutOfStock`\" \n- \"`feeAdjustment`\" \n- \"`invalidCoupon`\" \n- \"`lateShipmentCredit`\" \n- \"`malformedShippingAddress`\" \n- \"`merchantDidNotShipOnTime`\" \n- \"`noInventory`\" \n- \"`orderTimeout`\" \n- \"`other`\" \n- \"`paymentAbuse`\" \n- \"`paymentDeclined`\" \n- \"`priceAdjustment`\" \n- \"`priceError`\" \n- \"`productArrivedDamaged`\" \n- \"`productNotAsDescribed`\" \n- \"`promoReallocation`\" \n- \"`qualityNotAsExpected`\" \n- \"`returnRefundAbuse`\" \n- \"`shippingCostAdjustment`\" \n- \"`shippingPriceError`\" \n- \"`taxAdjustment`\" \n- \"`taxError`\" \n- \"`undeliverableShippingAddress`\" \n- \"`unsupportedPoBoxAddress`\" \n- \"`wrongProductShipped`\"", + "description": "[required] Reason for the refund. Acceptable values are: - \"`adjustment`\" - \"`autoPostInternal`\" - \"`autoPostInvalidBillingAddress`\" - \"`autoPostNoInventory`\" - \"`autoPostPriceError`\" - \"`autoPostUndeliverableShippingAddress`\" - \"`couponAbuse`\" - \"`courtesyAdjustment`\" - \"`customerCanceled`\" - \"`customerDiscretionaryReturn`\" - \"`customerInitiatedMerchantCancel`\" - \"`customerSupportRequested`\" - \"`deliveredLateByCarrier`\" - \"`deliveredTooLate`\" - \"`expiredItem`\" - \"`failToPushOrderGoogleError`\" - \"`failToPushOrderMerchantError`\" - \"`failToPushOrderMerchantFulfillmentError`\" - \"`failToPushOrderToMerchant`\" - \"`failToPushOrderToMerchantOutOfStock`\" - \"`feeAdjustment`\" - \"`invalidCoupon`\" - \"`lateShipmentCredit`\" - \"`malformedShippingAddress`\" - \"`merchantDidNotShipOnTime`\" - \"`noInventory`\" - \"`orderTimeout`\" - \"`other`\" - \"`paymentAbuse`\" - \"`paymentDeclined`\" - \"`priceAdjustment`\" - \"`priceError`\" - \"`productArrivedDamaged`\" - \"`productNotAsDescribed`\" - \"`promoReallocation`\" - \"`qualityNotAsExpected`\" - \"`returnRefundAbuse`\" - \"`shippingCostAdjustment`\" - \"`shippingPriceError`\" - \"`taxAdjustment`\" - \"`taxError`\" - \"`undeliverableShippingAddress`\" - \"`unsupportedPoBoxAddress`\" - \"`wrongProductShipped`\" ", "type": "string" } }, @@ -6782,7 +6786,7 @@ "type": "string" }, "reason": { - "description": "[required] Reason for the return.\n\nAcceptable values are: \n- \"`customerDiscretionaryReturn`\" \n- \"`customerInitiatedMerchantCancel`\" \n- \"`deliveredTooLate`\" \n- \"`expiredItem`\" \n- \"`invalidCoupon`\" \n- \"`malformedShippingAddress`\" \n- \"`other`\" \n- \"`productArrivedDamaged`\" \n- \"`productNotAsDescribed`\" \n- \"`qualityNotAsExpected`\" \n- \"`undeliverableShippingAddress`\" \n- \"`unsupportedPoBoxAddress`\" \n- \"`wrongProductShipped`\"", + "description": "[required] Reason for the return. Acceptable values are: - \"`customerDiscretionaryReturn`\" - \"`customerInitiatedMerchantCancel`\" - \"`deliveredTooLate`\" - \"`expiredItem`\" - \"`invalidCoupon`\" - \"`malformedShippingAddress`\" - \"`other`\" - \"`productArrivedDamaged`\" - \"`productNotAsDescribed`\" - \"`qualityNotAsExpected`\" - \"`undeliverableShippingAddress`\" - \"`unsupportedPoBoxAddress`\" - \"`wrongProductShipped`\" ", "type": "string" } }, @@ -6799,7 +6803,6 @@ "type": "array" }, "kind": { - "default": "content#orderreportsListDisbursementsResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#orderreportsListDisbursementsResponse\".", "type": "string" }, @@ -6814,7 +6817,6 @@ "id": "OrderreportsListTransactionsResponse", "properties": { "kind": { - "default": "content#orderreportsListTransactionsResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#orderreportsListTransactionsResponse\".", "type": "string" }, @@ -6836,7 +6838,6 @@ "id": "OrderreturnsListResponse", "properties": { "kind": { - "default": "content#orderreturnsListResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#orderreturnsListResponse\".", "type": "string" }, @@ -6867,11 +6868,10 @@ "id": "OrdersAcknowledgeResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#ordersAcknowledgeResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersAcknowledgeResponse\".", "type": "string" } @@ -6882,7 +6882,6 @@ "id": "OrdersAdvanceTestOrderResponse", "properties": { "kind": { - "default": "content#ordersAdvanceTestOrderResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersAdvanceTestOrderResponse\".", "type": "string" } @@ -6922,7 +6921,7 @@ "type": "integer" }, "reason": { - "description": "The reason for the cancellation.\n\nAcceptable values are: \n- \"`customerInitiatedCancel`\" \n- \"`invalidCoupon`\" \n- \"`malformedShippingAddress`\" \n- \"`noInventory`\" \n- \"`other`\" \n- \"`priceError`\" \n- \"`shippingPriceError`\" \n- \"`taxError`\" \n- \"`undeliverableShippingAddress`\" \n- \"`unsupportedPoBoxAddress`\"", + "description": "The reason for the cancellation. Acceptable values are: - \"`customerInitiatedCancel`\" - \"`invalidCoupon`\" - \"`malformedShippingAddress`\" - \"`noInventory`\" - \"`other`\" - \"`priceError`\" - \"`shippingPriceError`\" - \"`taxError`\" - \"`undeliverableShippingAddress`\" - \"`unsupportedPoBoxAddress`\" ", "type": "string" }, "reasonText": { @@ -6936,11 +6935,10 @@ "id": "OrdersCancelLineItemResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#ordersCancelLineItemResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersCancelLineItemResponse\".", "type": "string" } @@ -6955,7 +6953,7 @@ "type": "string" }, "reason": { - "description": "The reason for the cancellation.\n\nAcceptable values are: \n- \"`customerInitiatedCancel`\" \n- \"`invalidCoupon`\" \n- \"`malformedShippingAddress`\" \n- \"`noInventory`\" \n- \"`other`\" \n- \"`priceError`\" \n- \"`shippingPriceError`\" \n- \"`taxError`\" \n- \"`undeliverableShippingAddress`\" \n- \"`unsupportedPoBoxAddress`\"", + "description": "The reason for the cancellation. Acceptable values are: - \"`customerInitiatedCancel`\" - \"`invalidCoupon`\" - \"`malformedShippingAddress`\" - \"`noInventory`\" - \"`other`\" - \"`priceError`\" - \"`shippingPriceError`\" - \"`taxError`\" - \"`undeliverableShippingAddress`\" - \"`unsupportedPoBoxAddress`\" ", "type": "string" }, "reasonText": { @@ -6969,11 +6967,10 @@ "id": "OrdersCancelResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#ordersCancelResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersCancelResponse\".", "type": "string" } @@ -6984,7 +6981,7 @@ "id": "OrdersCancelTestOrderByCustomerRequest", "properties": { "reason": { - "description": "The reason for the cancellation.\n\nAcceptable values are: \n- \"`changedMind`\" \n- \"`orderedWrongItem`\" \n- \"`other`\"", + "description": "The reason for the cancellation. Acceptable values are: - \"`changedMind`\" - \"`orderedWrongItem`\" - \"`other`\" ", "type": "string" } }, @@ -6994,7 +6991,6 @@ "id": "OrdersCancelTestOrderByCustomerResponse", "properties": { "kind": { - "default": "content#ordersCancelTestOrderByCustomerResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersCancelTestOrderByCustomerResponse\".", "type": "string" } @@ -7005,11 +7001,11 @@ "id": "OrdersCreateTestOrderRequest", "properties": { "country": { - "description": "The CLDR territory code of the country of the test order to create. Affects the currency and addresses of orders created via `template_name`, or the addresses of orders created via `test_order`.\n\nAcceptable values are: \n- \"`US`\" \n- \"`FR`\" Defaults to `US`.", + "description": "The CLDR territory code of the country of the test order to create. Affects the currency and addresses of orders created via `template_name`, or the addresses of orders created via `test_order`. Acceptable values are: - \"`US`\" - \"`FR`\" Defaults to `US`.", "type": "string" }, "templateName": { - "description": "The test order template to use. Specify as an alternative to `testOrder` as a shortcut for retrieving a template and then creating an order using that template.\n\nAcceptable values are: \n- \"`template1`\" \n- \"`template1a`\" \n- \"`template1b`\" \n- \"`template2`\" \n- \"`template3`\"", + "description": "The test order template to use. Specify as an alternative to `testOrder` as a shortcut for retrieving a template and then creating an order using that template. Acceptable values are: - \"`template1`\" - \"`template1a`\" - \"`template1b`\" - \"`template2`\" - \"`template3`\" ", "type": "string" }, "testOrder": { @@ -7023,7 +7019,6 @@ "id": "OrdersCreateTestOrderResponse", "properties": { "kind": { - "default": "content#ordersCreateTestOrderResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersCreateTestOrderResponse\".", "type": "string" }, @@ -7051,7 +7046,6 @@ "id": "OrdersCreateTestReturnResponse", "properties": { "kind": { - "default": "content#ordersCreateTestReturnResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersCreateTestReturnResponse\".", "type": "string" }, @@ -7105,7 +7099,7 @@ "type": "string" }, "method": { - "description": "The method of the batch entry.\n\nAcceptable values are: \n- \"`acknowledge`\" \n- \"`cancel`\" \n- \"`cancelLineItem`\" \n- \"`get`\" \n- \"`getByMerchantOrderId`\" \n- \"`inStoreRefundLineItem`\" \n- \"`refund`\" \n- \"`rejectReturnLineItem`\" \n- \"`returnLineItem`\" \n- \"`returnRefundLineItem`\" \n- \"`setLineItemMetadata`\" \n- \"`shipLineItems`\" \n- \"`updateLineItemShippingDetails`\" \n- \"`updateMerchantOrderId`\" \n- \"`updateShipment`\"", + "description": "The method of the batch entry. Acceptable values are: - \"`acknowledge`\" - \"`cancel`\" - \"`cancelLineItem`\" - \"`get`\" - \"`getByMerchantOrderId`\" - \"`inStoreRefundLineItem`\" - \"`refund`\" - \"`rejectReturnLineItem`\" - \"`returnLineItem`\" - \"`returnRefundLineItem`\" - \"`setLineItemMetadata`\" - \"`shipLineItems`\" - \"`updateLineItemShippingDetails`\" - \"`updateMerchantOrderId`\" - \"`updateShipment`\" ", "type": "string" }, "operationId": { @@ -7155,7 +7149,7 @@ "id": "OrdersCustomBatchRequestEntryCancel", "properties": { "reason": { - "description": "The reason for the cancellation.\n\nAcceptable values are: \n- \"`customerInitiatedCancel`\" \n- \"`invalidCoupon`\" \n- \"`malformedShippingAddress`\" \n- \"`noInventory`\" \n- \"`other`\" \n- \"`priceError`\" \n- \"`shippingPriceError`\" \n- \"`taxError`\" \n- \"`undeliverableShippingAddress`\" \n- \"`unsupportedPoBoxAddress`\"", + "description": "The reason for the cancellation. Acceptable values are: - \"`customerInitiatedCancel`\" - \"`invalidCoupon`\" - \"`malformedShippingAddress`\" - \"`noInventory`\" - \"`other`\" - \"`priceError`\" - \"`shippingPriceError`\" - \"`taxError`\" - \"`undeliverableShippingAddress`\" - \"`unsupportedPoBoxAddress`\" ", "type": "string" }, "reasonText": { @@ -7194,7 +7188,7 @@ "type": "integer" }, "reason": { - "description": "The reason for the cancellation.\n\nAcceptable values are: \n- \"`customerInitiatedCancel`\" \n- \"`invalidCoupon`\" \n- \"`malformedShippingAddress`\" \n- \"`noInventory`\" \n- \"`other`\" \n- \"`priceError`\" \n- \"`shippingPriceError`\" \n- \"`taxError`\" \n- \"`undeliverableShippingAddress`\" \n- \"`unsupportedPoBoxAddress`\"", + "description": "The reason for the cancellation. Acceptable values are: - \"`customerInitiatedCancel`\" - \"`invalidCoupon`\" - \"`malformedShippingAddress`\" - \"`noInventory`\" - \"`other`\" - \"`priceError`\" - \"`shippingPriceError`\" - \"`taxError`\" - \"`undeliverableShippingAddress`\" - \"`unsupportedPoBoxAddress`\" ", "type": "string" }, "reasonText": { @@ -7244,7 +7238,7 @@ "type": "integer" }, "reason": { - "description": "The reason for the return.\n\nAcceptable values are: \n- \"`customerDiscretionaryReturn`\" \n- \"`customerInitiatedMerchantCancel`\" \n- \"`deliveredTooLate`\" \n- \"`expiredItem`\" \n- \"`invalidCoupon`\" \n- \"`malformedShippingAddress`\" \n- \"`other`\" \n- \"`productArrivedDamaged`\" \n- \"`productNotAsDescribed`\" \n- \"`qualityNotAsExpected`\" \n- \"`undeliverableShippingAddress`\" \n- \"`unsupportedPoBoxAddress`\" \n- \"`wrongProductShipped`\"", + "description": "The reason for the return. Acceptable values are: - \"`customerDiscretionaryReturn`\" - \"`customerInitiatedMerchantCancel`\" - \"`deliveredTooLate`\" - \"`expiredItem`\" - \"`invalidCoupon`\" - \"`malformedShippingAddress`\" - \"`other`\" - \"`productArrivedDamaged`\" - \"`productNotAsDescribed`\" - \"`qualityNotAsExpected`\" - \"`undeliverableShippingAddress`\" - \"`unsupportedPoBoxAddress`\" - \"`wrongProductShipped`\" ", "type": "string" }, "reasonText": { @@ -7270,7 +7264,7 @@ "description": "Tax amount that corresponds to refund amount in amountPretax. Optional, but if filled, amountPretax must be set. Calculated automatically if not provided." }, "reason": { - "description": "The reason for the refund.\n\nAcceptable values are: \n- \"`adjustment`\" \n- \"`courtesyAdjustment`\" \n- \"`customerCanceled`\" \n- \"`customerDiscretionaryReturn`\" \n- \"`deliveredLateByCarrier`\" \n- \"`feeAdjustment`\" \n- \"`lateShipmentCredit`\" \n- \"`noInventory`\" \n- \"`other`\" \n- \"`priceError`\" \n- \"`productArrivedDamaged`\" \n- \"`productNotAsDescribed`\" \n- \"`shippingCostAdjustment`\" \n- \"`taxAdjustment`\" \n- \"`undeliverableShippingAddress`\" \n- \"`wrongProductShipped`\"", + "description": "The reason for the refund. Acceptable values are: - \"`adjustment`\" - \"`courtesyAdjustment`\" - \"`customerCanceled`\" - \"`customerDiscretionaryReturn`\" - \"`deliveredLateByCarrier`\" - \"`feeAdjustment`\" - \"`lateShipmentCredit`\" - \"`noInventory`\" - \"`other`\" - \"`priceError`\" - \"`productArrivedDamaged`\" - \"`productNotAsDescribed`\" - \"`shippingCostAdjustment`\" - \"`taxAdjustment`\" - \"`undeliverableShippingAddress`\" - \"`wrongProductShipped`\" ", "type": "string" }, "reasonText": { @@ -7297,7 +7291,7 @@ "type": "integer" }, "reason": { - "description": "The reason for the return.\n\nAcceptable values are: \n- \"`damagedOrUsed`\" \n- \"`missingComponent`\" \n- \"`notEligible`\" \n- \"`other`\" \n- \"`outOfReturnWindow`\"", + "description": "The reason for the return. Acceptable values are: - \"`damagedOrUsed`\" - \"`missingComponent`\" - \"`notEligible`\" - \"`other`\" - \"`outOfReturnWindow`\" ", "type": "string" }, "reasonText": { @@ -7324,7 +7318,7 @@ "type": "integer" }, "reason": { - "description": "The reason for the return.\n\nAcceptable values are: \n- \"`customerDiscretionaryReturn`\" \n- \"`customerInitiatedMerchantCancel`\" \n- \"`deliveredTooLate`\" \n- \"`expiredItem`\" \n- \"`invalidCoupon`\" \n- \"`malformedShippingAddress`\" \n- \"`other`\" \n- \"`productArrivedDamaged`\" \n- \"`productNotAsDescribed`\" \n- \"`qualityNotAsExpected`\" \n- \"`undeliverableShippingAddress`\" \n- \"`unsupportedPoBoxAddress`\" \n- \"`wrongProductShipped`\"", + "description": "The reason for the return. Acceptable values are: - \"`customerDiscretionaryReturn`\" - \"`customerInitiatedMerchantCancel`\" - \"`deliveredTooLate`\" - \"`expiredItem`\" - \"`invalidCoupon`\" - \"`malformedShippingAddress`\" - \"`other`\" - \"`productArrivedDamaged`\" - \"`productNotAsDescribed`\" - \"`qualityNotAsExpected`\" - \"`undeliverableShippingAddress`\" - \"`unsupportedPoBoxAddress`\" - \"`wrongProductShipped`\" ", "type": "string" }, "reasonText": { @@ -7359,7 +7353,7 @@ "type": "integer" }, "reason": { - "description": "The reason for the return.\n\nAcceptable values are: \n- \"`customerDiscretionaryReturn`\" \n- \"`customerInitiatedMerchantCancel`\" \n- \"`deliveredTooLate`\" \n- \"`expiredItem`\" \n- \"`invalidCoupon`\" \n- \"`malformedShippingAddress`\" \n- \"`other`\" \n- \"`productArrivedDamaged`\" \n- \"`productNotAsDescribed`\" \n- \"`qualityNotAsExpected`\" \n- \"`undeliverableShippingAddress`\" \n- \"`unsupportedPoBoxAddress`\" \n- \"`wrongProductShipped`\"", + "description": "The reason for the return. Acceptable values are: - \"`customerDiscretionaryReturn`\" - \"`customerInitiatedMerchantCancel`\" - \"`deliveredTooLate`\" - \"`expiredItem`\" - \"`invalidCoupon`\" - \"`malformedShippingAddress`\" - \"`other`\" - \"`productArrivedDamaged`\" - \"`productNotAsDescribed`\" - \"`qualityNotAsExpected`\" - \"`undeliverableShippingAddress`\" - \"`unsupportedPoBoxAddress`\" - \"`wrongProductShipped`\" ", "type": "string" }, "reasonText": { @@ -7393,7 +7387,7 @@ "id": "OrdersCustomBatchRequestEntryShipLineItems", "properties": { "carrier": { - "description": "Deprecated. Please use shipmentInfo instead. The carrier handling the shipment. See `shipments[].carrier` in the Orders resource representation for a list of acceptable values.", + "description": "Deprecated. Please use shipmentInfo instead. The carrier handling the shipment. See `shipments[].carrier` in the Orders resource representation for a list of acceptable values.", "type": "string" }, "lineItems": { @@ -7429,15 +7423,10 @@ "id": "OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo", "properties": { "carrier": { - "description": "The carrier handling the shipment. See `shipments[].carrier` in the Orders resource representation for a list of acceptable values.", + "description": "The carrier handling the shipment. See `shipments[].carrier` in the Orders resource representation for a list of acceptable values.", "type": "string" }, "shipmentId": { - "annotations": { - "required": [ - "content.orders.shiplineitems" - ] - }, "description": "Required. The ID of the shipment. This is assigned by the merchant and is unique to each shipment.", "type": "string" }, @@ -7452,7 +7441,7 @@ "id": "OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails", "properties": { "deliverByDate": { - "description": "Updated delivery by date, in ISO 8601 format. If not specified only ship by date is updated.\n\nProvided date should be within 1 year timeframe and can not be a date in the past.", + "description": "Updated delivery by date, in ISO 8601 format. If not specified only ship by date is updated. Provided date should be within 1 year timeframe and can not be a date in the past.", "type": "string" }, "lineItemId": { @@ -7464,7 +7453,7 @@ "type": "string" }, "shipByDate": { - "description": "Updated ship by date, in ISO 8601 format. If not specified only deliver by date is updated.\n\nProvided date should be within 1 year timeframe and can not be a date in the past.", + "description": "Updated ship by date, in ISO 8601 format. If not specified only deliver by date is updated. Provided date should be within 1 year timeframe and can not be a date in the past.", "type": "string" } }, @@ -7474,7 +7463,7 @@ "id": "OrdersCustomBatchRequestEntryUpdateShipment", "properties": { "carrier": { - "description": "The carrier handling the shipment. Not updated if missing. See `shipments[].carrier` in the Orders resource representation for a list of acceptable values.", + "description": "The carrier handling the shipment. Not updated if missing. See `shipments[].carrier` in the Orders resource representation for a list of acceptable values.", "type": "string" }, "deliveryDate": { @@ -7486,7 +7475,7 @@ "type": "string" }, "status": { - "description": "New status for the shipment. Not updated if missing.\n\nAcceptable values are: \n- \"`delivered`\" \n- \"`undeliverable`\" \n- \"`readyForPickup`\"", + "description": "New status for the shipment. Not updated if missing. Acceptable values are: - \"`delivered`\" - \"`undeliverable`\" - \"`readyForPickup`\" ", "type": "string" }, "trackingId": { @@ -7507,7 +7496,6 @@ "type": "array" }, "kind": { - "default": "content#ordersCustomBatchResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersCustomBatchResponse\".", "type": "string" } @@ -7527,11 +7515,10 @@ "description": "A list of errors defined if and only if the request failed." }, "executionStatus": { - "description": "The status of the execution. Only defined if \n- the request was successful; and \n- the method is not `get`, `getByMerchantOrderId`, or one of the test methods. \n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Only defined if 1. the request was successful; and 2. the method is not `get`, `getByMerchantOrderId`, or one of the test methods. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#ordersCustomBatchResponseEntry", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#ordersCustomBatchResponseEntry`\"", "type": "string" }, @@ -7546,7 +7533,6 @@ "id": "OrdersGetByMerchantOrderIdResponse", "properties": { "kind": { - "default": "content#ordersGetByMerchantOrderIdResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersGetByMerchantOrderIdResponse\".", "type": "string" }, @@ -7561,7 +7547,6 @@ "id": "OrdersGetTestOrderTemplateResponse", "properties": { "kind": { - "default": "content#ordersGetTestOrderTemplateResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersGetTestOrderTemplateResponse\".", "type": "string" }, @@ -7601,7 +7586,7 @@ "type": "integer" }, "reason": { - "description": "The reason for the return.\n\nAcceptable values are: \n- \"`customerDiscretionaryReturn`\" \n- \"`customerInitiatedMerchantCancel`\" \n- \"`deliveredTooLate`\" \n- \"`expiredItem`\" \n- \"`invalidCoupon`\" \n- \"`malformedShippingAddress`\" \n- \"`other`\" \n- \"`productArrivedDamaged`\" \n- \"`productNotAsDescribed`\" \n- \"`qualityNotAsExpected`\" \n- \"`undeliverableShippingAddress`\" \n- \"`unsupportedPoBoxAddress`\" \n- \"`wrongProductShipped`\"", + "description": "The reason for the return. Acceptable values are: - \"`customerDiscretionaryReturn`\" - \"`customerInitiatedMerchantCancel`\" - \"`deliveredTooLate`\" - \"`expiredItem`\" - \"`invalidCoupon`\" - \"`malformedShippingAddress`\" - \"`other`\" - \"`productArrivedDamaged`\" - \"`productNotAsDescribed`\" - \"`qualityNotAsExpected`\" - \"`undeliverableShippingAddress`\" - \"`unsupportedPoBoxAddress`\" - \"`wrongProductShipped`\" ", "type": "string" }, "reasonText": { @@ -7615,11 +7600,10 @@ "id": "OrdersInStoreRefundLineItemResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#ordersInStoreRefundLineItemResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersInStoreRefundLineItemResponse\".", "type": "string" } @@ -7630,7 +7614,6 @@ "id": "OrdersListResponse", "properties": { "kind": { - "default": "content#ordersListResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersListResponse\".", "type": "string" }, @@ -7667,7 +7650,7 @@ "type": "string" }, "reason": { - "description": "The reason for the refund.\n\nAcceptable values are: \n- \"`adjustment`\" \n- \"`courtesyAdjustment`\" \n- \"`customerCanceled`\" \n- \"`customerDiscretionaryReturn`\" \n- \"`deliveredLateByCarrier`\" \n- \"`feeAdjustment`\" \n- \"`lateShipmentCredit`\" \n- \"`noInventory`\" \n- \"`other`\" \n- \"`priceError`\" \n- \"`productArrivedDamaged`\" \n- \"`productNotAsDescribed`\" \n- \"`shippingCostAdjustment`\" \n- \"`taxAdjustment`\" \n- \"`undeliverableShippingAddress`\" \n- \"`wrongProductShipped`\"", + "description": "The reason for the refund. Acceptable values are: - \"`adjustment`\" - \"`courtesyAdjustment`\" - \"`customerCanceled`\" - \"`customerDiscretionaryReturn`\" - \"`deliveredLateByCarrier`\" - \"`feeAdjustment`\" - \"`lateShipmentCredit`\" - \"`noInventory`\" - \"`other`\" - \"`priceError`\" - \"`productArrivedDamaged`\" - \"`productNotAsDescribed`\" - \"`shippingCostAdjustment`\" - \"`taxAdjustment`\" - \"`undeliverableShippingAddress`\" - \"`wrongProductShipped`\" ", "type": "string" }, "reasonText": { @@ -7681,11 +7664,10 @@ "id": "OrdersRefundResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#ordersRefundResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersRefundResponse\".", "type": "string" } @@ -7713,7 +7695,7 @@ "type": "integer" }, "reason": { - "description": "The reason for the return.\n\nAcceptable values are: \n- \"`damagedOrUsed`\" \n- \"`missingComponent`\" \n- \"`notEligible`\" \n- \"`other`\" \n- \"`outOfReturnWindow`\"", + "description": "The reason for the return. Acceptable values are: - \"`damagedOrUsed`\" - \"`missingComponent`\" - \"`notEligible`\" - \"`other`\" - \"`outOfReturnWindow`\" ", "type": "string" }, "reasonText": { @@ -7727,11 +7709,10 @@ "id": "OrdersRejectReturnLineItemResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#ordersRejectReturnLineItemResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersRejectReturnLineItemResponse\".", "type": "string" } @@ -7759,7 +7740,7 @@ "type": "integer" }, "reason": { - "description": "The reason for the return.\n\nAcceptable values are: \n- \"`customerDiscretionaryReturn`\" \n- \"`customerInitiatedMerchantCancel`\" \n- \"`deliveredTooLate`\" \n- \"`expiredItem`\" \n- \"`invalidCoupon`\" \n- \"`malformedShippingAddress`\" \n- \"`other`\" \n- \"`productArrivedDamaged`\" \n- \"`productNotAsDescribed`\" \n- \"`qualityNotAsExpected`\" \n- \"`undeliverableShippingAddress`\" \n- \"`unsupportedPoBoxAddress`\" \n- \"`wrongProductShipped`\"", + "description": "The reason for the return. Acceptable values are: - \"`customerDiscretionaryReturn`\" - \"`customerInitiatedMerchantCancel`\" - \"`deliveredTooLate`\" - \"`expiredItem`\" - \"`invalidCoupon`\" - \"`malformedShippingAddress`\" - \"`other`\" - \"`productArrivedDamaged`\" - \"`productNotAsDescribed`\" - \"`qualityNotAsExpected`\" - \"`undeliverableShippingAddress`\" - \"`unsupportedPoBoxAddress`\" - \"`wrongProductShipped`\" ", "type": "string" }, "reasonText": { @@ -7773,11 +7754,10 @@ "id": "OrdersReturnLineItemResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#ordersReturnLineItemResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersReturnLineItemResponse\".", "type": "string" } @@ -7813,7 +7793,7 @@ "type": "integer" }, "reason": { - "description": "The reason for the return.\n\nAcceptable values are: \n- \"`customerDiscretionaryReturn`\" \n- \"`customerInitiatedMerchantCancel`\" \n- \"`deliveredTooLate`\" \n- \"`expiredItem`\" \n- \"`invalidCoupon`\" \n- \"`malformedShippingAddress`\" \n- \"`other`\" \n- \"`productArrivedDamaged`\" \n- \"`productNotAsDescribed`\" \n- \"`qualityNotAsExpected`\" \n- \"`undeliverableShippingAddress`\" \n- \"`unsupportedPoBoxAddress`\" \n- \"`wrongProductShipped`\"", + "description": "The reason for the return. Acceptable values are: - \"`customerDiscretionaryReturn`\" - \"`customerInitiatedMerchantCancel`\" - \"`deliveredTooLate`\" - \"`expiredItem`\" - \"`invalidCoupon`\" - \"`malformedShippingAddress`\" - \"`other`\" - \"`productArrivedDamaged`\" - \"`productNotAsDescribed`\" - \"`qualityNotAsExpected`\" - \"`undeliverableShippingAddress`\" - \"`unsupportedPoBoxAddress`\" - \"`wrongProductShipped`\" ", "type": "string" }, "reasonText": { @@ -7827,11 +7807,10 @@ "id": "OrdersReturnRefundLineItemResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#ordersReturnRefundLineItemResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersReturnRefundLineItemResponse\".", "type": "string" } @@ -7866,11 +7845,10 @@ "id": "OrdersSetLineItemMetadataResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#ordersSetLineItemMetadataResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersSetLineItemMetadataResponse\".", "type": "string" } @@ -7881,7 +7859,7 @@ "id": "OrdersShipLineItemsRequest", "properties": { "carrier": { - "description": "Deprecated. Please use shipmentInfo instead. The carrier handling the shipment. See `shipments[].carrier` in the Orders resource representation for a list of acceptable values.", + "description": "Deprecated. Please use shipmentInfo instead. The carrier handling the shipment. See `shipments[].carrier` in the Orders resource representation for a list of acceptable values.", "type": "string" }, "lineItems": { @@ -7921,11 +7899,10 @@ "id": "OrdersShipLineItemsResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#ordersShipLineItemsResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersShipLineItemsResponse\".", "type": "string" } @@ -7936,7 +7913,7 @@ "id": "OrdersUpdateLineItemShippingDetailsRequest", "properties": { "deliverByDate": { - "description": "Updated delivery by date, in ISO 8601 format. If not specified only ship by date is updated.\n\nProvided date should be within 1 year timeframe and can not be a date in the past.", + "description": "Updated delivery by date, in ISO 8601 format. If not specified only ship by date is updated. Provided date should be within 1 year timeframe and can not be a date in the past.", "type": "string" }, "lineItemId": { @@ -7952,7 +7929,7 @@ "type": "string" }, "shipByDate": { - "description": "Updated ship by date, in ISO 8601 format. If not specified only deliver by date is updated.\n\nProvided date should be within 1 year timeframe and can not be a date in the past.", + "description": "Updated ship by date, in ISO 8601 format. If not specified only deliver by date is updated. Provided date should be within 1 year timeframe and can not be a date in the past.", "type": "string" } }, @@ -7962,11 +7939,10 @@ "id": "OrdersUpdateLineItemShippingDetailsResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#ordersUpdateLineItemShippingDetailsResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersUpdateLineItemShippingDetailsResponse\".", "type": "string" } @@ -7991,11 +7967,10 @@ "id": "OrdersUpdateMerchantOrderIdResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#ordersUpdateMerchantOrderIdResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersUpdateMerchantOrderIdResponse\".", "type": "string" } @@ -8006,7 +7981,7 @@ "id": "OrdersUpdateShipmentRequest", "properties": { "carrier": { - "description": "The carrier handling the shipment. Not updated if missing. See `shipments[].carrier` in the Orders resource representation for a list of acceptable values.", + "description": "The carrier handling the shipment. Not updated if missing. See `shipments[].carrier` in the Orders resource representation for a list of acceptable values.", "type": "string" }, "deliveryDate": { @@ -8022,7 +7997,7 @@ "type": "string" }, "status": { - "description": "New status for the shipment. Not updated if missing.\n\nAcceptable values are: \n- \"`delivered`\" \n- \"`undeliverable`\" \n- \"`readyForPickup`\"", + "description": "New status for the shipment. Not updated if missing. Acceptable values are: - \"`delivered`\" - \"`undeliverable`\" - \"`readyForPickup`\" ", "type": "string" }, "trackingId": { @@ -8036,11 +8011,10 @@ "id": "OrdersUpdateShipmentResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#ordersUpdateShipmentResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersUpdateShipmentResponse\".", "type": "string" } @@ -8102,7 +8076,7 @@ }, "inventory": { "$ref": "PosInventory", - "description": "The inventory to submit. Set this only if the method is `inventory`." + "description": "The inventory to submit. This should be set only if the method is `inventory`." }, "merchantId": { "description": "The ID of the POS data provider.", @@ -8110,19 +8084,19 @@ "type": "string" }, "method": { - "description": "The method of the batch entry.\n\nAcceptable values are: \n- \"`delete`\" \n- \"`get`\" \n- \"`insert`\" \n- \"`inventory`\" \n- \"`sale`\"", + "description": "The method of the batch entry. Acceptable values are: - \"`delete`\" - \"`get`\" - \"`insert`\" - \"`inventory`\" - \"`sale`\" ", "type": "string" }, "sale": { "$ref": "PosSale", - "description": "The sale information to submit. Set this only if the method is `sale`." + "description": "The sale information to submit. This should be set only if the method is `sale`." }, "store": { "$ref": "PosStore", - "description": "The store information to submit. Set this only if the method is `insert`." + "description": "The store information to submit. This should be set only if the method is `insert`." }, "storeCode": { - "description": "The store code. Set this only if the method is `delete` or `get`.", + "description": "The store code. This should be set only if the method is `delete` or `get`.", "type": "string" }, "targetMerchantId": { @@ -8144,7 +8118,6 @@ "type": "array" }, "kind": { - "default": "content#posCustomBatchResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#posCustomBatchResponse\".", "type": "string" } @@ -8168,7 +8141,6 @@ "description": "The updated inventory information." }, "kind": { - "default": "content#posCustomBatchResponseEntry", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#posCustomBatchResponseEntry`\"", "type": "string" }, @@ -8224,11 +8196,6 @@ "id": "PosInventory", "properties": { "contentLanguage": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The two-letter ISO 639-1 language code for the item.", "type": "string" }, @@ -8237,62 +8204,31 @@ "type": "string" }, "itemId": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. A unique identifier for the item.", "type": "string" }, "kind": { - "default": "content#posInventory", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#posInventory`\"", "type": "string" }, "price": { "$ref": "Price", - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The current price of the item." }, "quantity": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The available quantity of the item.", "format": "int64", "type": "string" }, "storeCode": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The identifier of the merchant's store. Either a `storeCode` inserted via the API or the code of the store in Google My Business.", "type": "string" }, "targetCountry": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The CLDR territory code for the item.", "type": "string" }, "timestamp": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The inventory timestamp, in ISO 8601 format.", "type": "string" } @@ -8303,11 +8239,6 @@ "id": "PosInventoryRequest", "properties": { "contentLanguage": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The two-letter ISO 639-1 language code for the item.", "type": "string" }, @@ -8316,57 +8247,27 @@ "type": "string" }, "itemId": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. A unique identifier for the item.", "type": "string" }, "price": { "$ref": "Price", - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The current price of the item." }, "quantity": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The available quantity of the item.", "format": "int64", "type": "string" }, "storeCode": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The identifier of the merchant's store. Either a `storeCode` inserted via the API or the code of the store in Google My Business.", "type": "string" }, "targetCountry": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The CLDR territory code for the item.", "type": "string" }, "timestamp": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The inventory timestamp, in ISO 8601 format.", "type": "string" } @@ -8377,11 +8278,6 @@ "id": "PosInventoryResponse", "properties": { "contentLanguage": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The two-letter ISO 639-1 language code for the item.", "type": "string" }, @@ -8390,62 +8286,31 @@ "type": "string" }, "itemId": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. A unique identifier for the item.", "type": "string" }, "kind": { - "default": "content#posInventoryResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#posInventoryResponse\".", "type": "string" }, "price": { "$ref": "Price", - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The current price of the item." }, "quantity": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The available quantity of the item.", "format": "int64", "type": "string" }, "storeCode": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The identifier of the merchant's store. Either a `storeCode` inserted via the API or the code of the store in Google My Business.", "type": "string" }, "targetCountry": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The CLDR territory code for the item.", "type": "string" }, "timestamp": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The inventory timestamp, in ISO 8601 format.", "type": "string" } @@ -8456,7 +8321,6 @@ "id": "PosListResponse", "properties": { "kind": { - "default": "content#posListResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#posListResponse\".", "type": "string" }, @@ -8474,11 +8338,6 @@ "id": "PosSale", "properties": { "contentLanguage": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The two-letter ISO 639-1 language code for the item.", "type": "string" }, @@ -8487,34 +8346,18 @@ "type": "string" }, "itemId": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. A unique identifier for the item.", "type": "string" }, "kind": { - "default": "content#posSale", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#posSale`\"", "type": "string" }, "price": { "$ref": "Price", - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The price of the item." }, "quantity": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The relative change of the available quantity. Negative for items returned.", "format": "int64", "type": "string" @@ -8524,29 +8367,14 @@ "type": "string" }, "storeCode": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The identifier of the merchant's store. Either a `storeCode` inserted via the API or the code of the store in Google My Business.", "type": "string" }, "targetCountry": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The CLDR territory code for the item.", "type": "string" }, "timestamp": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The inventory timestamp, in ISO 8601 format.", "type": "string" } @@ -8557,11 +8385,6 @@ "id": "PosSaleRequest", "properties": { "contentLanguage": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The two-letter ISO 639-1 language code for the item.", "type": "string" }, @@ -8570,29 +8393,14 @@ "type": "string" }, "itemId": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. A unique identifier for the item.", "type": "string" }, "price": { "$ref": "Price", - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The price of the item." }, "quantity": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The relative change of the available quantity. Negative for items returned.", "format": "int64", "type": "string" @@ -8602,29 +8410,14 @@ "type": "string" }, "storeCode": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The identifier of the merchant's store. Either a `storeCode` inserted via the API or the code of the store in Google My Business.", "type": "string" }, "targetCountry": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The CLDR territory code for the item.", "type": "string" }, "timestamp": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The inventory timestamp, in ISO 8601 format.", "type": "string" } @@ -8635,11 +8428,6 @@ "id": "PosSaleResponse", "properties": { "contentLanguage": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The two-letter ISO 639-1 language code for the item.", "type": "string" }, @@ -8648,34 +8436,18 @@ "type": "string" }, "itemId": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. A unique identifier for the item.", "type": "string" }, "kind": { - "default": "content#posSaleResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#posSaleResponse\".", "type": "string" }, "price": { "$ref": "Price", - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The price of the item." }, "quantity": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The relative change of the available quantity. Negative for items returned.", "format": "int64", "type": "string" @@ -8685,29 +8457,14 @@ "type": "string" }, "storeCode": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The identifier of the merchant's store. Either a `storeCode` inserted via the API or the code of the store in Google My Business.", "type": "string" }, "targetCountry": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The CLDR territory code for the item.", "type": "string" }, "timestamp": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The inventory timestamp, in ISO 8601 format.", "type": "string" } @@ -8719,25 +8476,14 @@ "id": "PosStore", "properties": { "kind": { - "default": "content#posStore", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#posStore`\"", "type": "string" }, "storeAddress": { - "annotations": { - "required": [ - "content.pos.insert" - ] - }, "description": "Required. The street address of the store.", "type": "string" }, "storeCode": { - "annotations": { - "required": [ - "content.pos.insert" - ] - }, "description": "Required. A store identifier that is unique for the given merchant.", "type": "string" } @@ -8794,7 +8540,7 @@ "type": "object" }, "Product": { - "description": "Required product attributes are primarily defined by the products data specification. See the Products Data Specification Help Center article for information.\n\nSome attributes are country-specific, so make sure you select the appropriate country in the drop-down selector at the top of the page. \n\nProduct data. After inserting, updating, or deleting a product, it may take several minutes before changes take effect.", + "description": " Required product attributes are primarily defined by the products data specification. See the Products Data Specification Help Center article for information. Some attributes are country-specific, so make sure you select the appropriate country in the drop-down selector at the top of the page. Product data. After inserting, updating, or deleting a product, it may take several minutes before changes take effect.", "id": "Product", "properties": { "additionalImageLinks": { @@ -8812,7 +8558,7 @@ "type": "array" }, "adult": { - "description": "Set to true if the item is targeted towards adults.", + "description": "Should be set to true if the item is targeted towards adults.", "type": "boolean" }, "adwordsGrouping": { @@ -8831,7 +8577,7 @@ "type": "string" }, "ageGroup": { - "description": "Target age group of the item.\n\nAcceptable values are: \n- \"`adult`\" \n- \"`infant`\" \n- \"`kids`\" \n- \"`newborn`\" \n- \"`toddler`\" \n- \"`youngAdult`\"", + "description": "Target age group of the item. Acceptable values are: - \"`adult`\" - \"`infant`\" - \"`kids`\" - \"`newborn`\" - \"`toddler`\" - \"`youngAdult`\" ", "type": "string" }, "aspects": { @@ -8842,7 +8588,7 @@ "type": "array" }, "availability": { - "description": "Availability status of the item.\n\nAcceptable values are: \n- \"`in stock`\" \n- \"`out of stock`\" \n- \"`preorder`\"", + "description": "Availability status of the item. Acceptable values are: - \"`in stock`\" - \"`out of stock`\" - \"`preorder`\" ", "type": "string" }, "availabilityDate": { @@ -8858,12 +8604,7 @@ "type": "string" }, "channel": { - "annotations": { - "required": [ - "content.products.insert" - ] - }, - "description": "Required. The item's channel (online or local).\n\nAcceptable values are: \n- \"`local`\" \n- \"`online`\"", + "description": "Required. The item's channel (online or local). Acceptable values are: - \"`local`\" - \"`online`\" ", "type": "string" }, "color": { @@ -8871,15 +8612,10 @@ "type": "string" }, "condition": { - "description": "Condition or state of the item.\n\nAcceptable values are: \n- \"`local`\" \n- \"`online`\"", + "description": "Condition or state of the item. Acceptable values are: - \"`local`\" - \"`online`\" ", "type": "string" }, "contentLanguage": { - "annotations": { - "required": [ - "content.products.insert" - ] - }, "description": "Required. The two-letter ISO 639-1 language code for the item.", "type": "string" }, @@ -8888,7 +8624,7 @@ "description": "Cost of goods sold. Used for gross profit reporting." }, "customAttributes": { - "description": "A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the feed specification in its generic form (e.g., `{ \"name\": \"size type\", \"value\": \"regular\" }`). This is useful for submitting attributes not explicitly exposed by the API, such as additional attributes used for Shopping Actions.", + "description": "A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the feed specification in its generic form (e.g., `{ \"name\": \"size type\", \"value\": \"regular\" }`). This is useful for submitting attributes not explicitly exposed by the API, such as additional attributes used for Buy on Google (formerly known as Shopping Actions).", "items": { "$ref": "CustomAttribute" }, @@ -8957,7 +8693,7 @@ "type": "number" }, "energyEfficiencyClass": { - "description": "The energy efficiency class as defined in EU directive 2010/30/EU.\n\nAcceptable values are: \n- \"`A`\" \n- \"`A+`\" \n- \"`A++`\" \n- \"`A+++`\" \n- \"`B`\" \n- \"`C`\" \n- \"`D`\" \n- \"`E`\" \n- \"`F`\" \n- \"`G`\"", + "description": "The energy efficiency class as defined in EU directive 2010/30/EU. Acceptable values are: - \"`A`\" - \"`A+`\" - \"`A++`\" - \"`A+++`\" - \"`B`\" - \"`C`\" - \"`D`\" - \"`E`\" - \"`F`\" - \"`G`\" ", "type": "string" }, "expirationDate": { @@ -8965,7 +8701,7 @@ "type": "string" }, "gender": { - "description": "Target gender of the item.\n\nAcceptable values are: \n- \"`female`\" \n- \"`male`\" \n- \"`unisex`\"", + "description": "Target gender of the item. Acceptable values are: - \"`female`\" - \"`male`\" - \"`unisex`\" ", "type": "string" }, "googleProductCategory": { @@ -8977,7 +8713,7 @@ "type": "string" }, "id": { - "description": "The REST ID of the product. Content API methods that operate on products take this as their `productId` parameter.\nThe REST ID for a product is of the form channel:contentLanguage:targetCountry: offerId.", + "description": "The REST ID of the product. Content API methods that operate on products take this as their `productId` parameter. The REST ID for a product is of the form channel:contentLanguage: targetCountry: offerId.", "type": "string" }, "identifierExists": { @@ -9001,7 +8737,6 @@ "type": "string" }, "kind": { - "default": "content#product", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#product`\"", "type": "string" }, @@ -9018,7 +8753,7 @@ "type": "string" }, "maxEnergyEfficiencyClass": { - "description": "The energy efficiency class as defined in EU directive 2010/30/EU.\n\nAcceptable values are: \n- \"`A`\" \n- \"`A+`\" \n- \"`A++`\" \n- \"`A+++`\" \n- \"`B`\" \n- \"`C`\" \n- \"`D`\" \n- \"`E`\" \n- \"`F`\" \n- \"`G`\"", + "description": "The energy efficiency class as defined in EU directive 2010/30/EU. Acceptable values are: - \"`A`\" - \"`A+`\" - \"`A++`\" - \"`A+++`\" - \"`B`\" - \"`C`\" - \"`D`\" - \"`E`\" - \"`F`\" - \"`G`\" ", "type": "string" }, "maxHandlingTime": { @@ -9027,7 +8762,7 @@ "type": "string" }, "minEnergyEfficiencyClass": { - "description": "The energy efficiency class as defined in EU directive 2010/30/EU.\n\nAcceptable values are: \n- \"`A`\" \n- \"`A+`\" \n- \"`A++`\" \n- \"`A+++`\" \n- \"`B`\" \n- \"`C`\" \n- \"`D`\" \n- \"`E`\" \n- \"`F`\" \n- \"`G`\"", + "description": "The energy efficiency class as defined in EU directive 2010/30/EU. Acceptable values are: - \"`A`\" - \"`A+`\" - \"`A++`\" - \"`A+++`\" - \"`B`\" - \"`C`\" - \"`D`\" - \"`E`\" - \"`F`\" - \"`G`\" ", "type": "string" }, "minHandlingTime": { @@ -9049,12 +8784,7 @@ "type": "string" }, "offerId": { - "annotations": { - "required": [ - "content.products.insert" - ] - }, - "description": "Required. A unique identifier for the item. Leading and trailing whitespaces are stripped and multiple whitespaces are replaced by a single whitespace upon submission. Only valid unicode characters are accepted. See the products feed specification for details.\nNote: Content API methods that operate on products take the REST ID of the product, not this identifier.", + "description": "Required. A unique identifier for the item. Leading and trailing whitespaces are stripped and multiple whitespaces are replaced by a single whitespace upon submission. Only valid unicode characters are accepted. See the products feed specification for details. *Note:* Content API methods that operate on products take the REST ID of the product, *not* this identifier.", "type": "string" }, "onlineOnly": { @@ -9085,7 +8815,7 @@ "description": "Advertised sale price of the item." }, "salePriceEffectiveDate": { - "description": "Date range during which the item is on sale (see products data specification).", + "description": "Date range during which the item is on sale (see products data specification ).", "type": "string" }, "sellOnGoogleQuantity": { @@ -9121,11 +8851,11 @@ "description": "Width of the item for shipping." }, "sizeSystem": { - "description": "System in which the size is specified. Recommended for apparel items.\n\nAcceptable values are: \n- \"`AU`\" \n- \"`BR`\" \n- \"`CN`\" \n- \"`DE`\" \n- \"`EU`\" \n- \"`FR`\" \n- \"`IT`\" \n- \"`JP`\" \n- \"`MEX`\" \n- \"`UK`\" \n- \"`US`\"", + "description": "System in which the size is specified. Recommended for apparel items. Acceptable values are: - \"`AU`\" - \"`BR`\" - \"`CN`\" - \"`DE`\" - \"`EU`\" - \"`FR`\" - \"`IT`\" - \"`JP`\" - \"`MEX`\" - \"`UK`\" - \"`US`\" ", "type": "string" }, "sizeType": { - "description": "The cut of the item. Recommended for apparel items.\n\nAcceptable values are: \n- \"`big and tall`\" \n- \"`maternity`\" \n- \"`oversize`\" \n- \"`petite`\" \n- \"`plus`\" \n- \"`regular`\"", + "description": "The cut of the item. Recommended for apparel items. Acceptable values are: - \"`big and tall`\" - \"`maternity`\" - \"`oversize`\" - \"`petite`\" - \"`plus`\" - \"`regular`\" ", "type": "string" }, "sizes": { @@ -9136,15 +8866,10 @@ "type": "array" }, "source": { - "description": "The source of the offer, i.e., how the offer was created.\n\nAcceptable values are: \n- \"`api`\" \n- \"`crawl`\" \n- \"`feed`\"", + "description": "The source of the offer, i.e., how the offer was created. Acceptable values are: - \"`api`\" - \"`crawl`\" - \"`feed`\" ", "type": "string" }, "targetCountry": { - "annotations": { - "required": [ - "content.products.insert" - ] - }, "description": "Required. The CLDR territory code for the item.", "type": "string" }, @@ -9228,7 +8953,7 @@ "type": "string" }, "intention": { - "description": "Whether the destination is required, excluded or should be validated.\n\nAcceptable values are: \n- \"`default`\" \n- \"`excluded`\" \n- \"`optional`\" \n- \"`required`\"", + "description": "Whether the destination is required, excluded or should be validated. Acceptable values are: - \"`default`\" - \"`excluded`\" - \"`optional`\" - \"`required`\" ", "type": "string" } }, @@ -9333,7 +9058,6 @@ "type": "array" }, "kind": { - "default": "content#productStatus", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#productStatus`\"", "type": "string" }, @@ -9401,7 +9125,7 @@ "type": "boolean" }, "approvalStatus": { - "description": "The destination's approval status.\n\nAcceptable values are: \n- \"`approved`\" \n- \"`disapproved`\"", + "description": "The destination's approval status. Acceptable values are: - \"`approved`\" - \"`disapproved`\" ", "type": "string" }, "destination": { @@ -9409,7 +9133,7 @@ "type": "string" }, "intention": { - "description": "Provided for backward compatibility only. Always set to \"required\".\n\nAcceptable values are: \n- \"`default`\" \n- \"`excluded`\" \n- \"`optional`\" \n- \"`required`\"", + "description": "Provided for backward compatibility only. Always set to \"required\". Acceptable values are: - \"`default`\" - \"`excluded`\" - \"`optional`\" - \"`required`\" ", "type": "string" } }, @@ -9479,7 +9203,7 @@ "type": "string" }, "taxShip": { - "description": "Set to true if tax is charged on shipping.", + "description": "Should be set to true if tax is charged on shipping.", "type": "boolean" } }, @@ -9543,7 +9267,7 @@ "type": "string" }, "method": { - "description": "The method of the batch entry.\n\nAcceptable values are: \n- \"`delete`\" \n- \"`get`\" \n- \"`insert`\"", + "description": "The method of the batch entry. Acceptable values are: - \"`delete`\" - \"`get`\" - \"`insert`\" ", "type": "string" }, "product": { @@ -9568,7 +9292,6 @@ "type": "array" }, "kind": { - "default": "content#productsCustomBatchResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#productsCustomBatchResponse\".", "type": "string" } @@ -9589,7 +9312,6 @@ "description": "A list of errors defined if and only if the request failed." }, "kind": { - "default": "content#productsCustomBatchResponseEntry", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#productsCustomBatchResponseEntry`\"", "type": "string" }, @@ -9604,7 +9326,6 @@ "id": "ProductsListResponse", "properties": { "kind": { - "default": "content#productsListResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#productsListResponse\".", "type": "string" }, @@ -9659,7 +9380,7 @@ "type": "string" }, "method": { - "description": "The method of the batch entry.\n\nAcceptable values are: \n- \"`get`\"", + "description": "The method of the batch entry. Acceptable values are: - \"`get`\" ", "type": "string" }, "productId": { @@ -9680,7 +9401,6 @@ "type": "array" }, "kind": { - "default": "content#productstatusesCustomBatchResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#productstatusesCustomBatchResponse\".", "type": "string" } @@ -9701,7 +9421,6 @@ "description": "A list of errors, if the request failed." }, "kind": { - "default": "content#productstatusesCustomBatchResponseEntry", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#productstatusesCustomBatchResponseEntry`\"", "type": "string" }, @@ -9716,7 +9435,6 @@ "id": "ProductstatusesListResponse", "properties": { "kind": { - "default": "content#productstatusesListResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#productstatusesListResponse\".", "type": "string" }, @@ -9794,7 +9512,7 @@ "type": "string" }, "reasonCode": { - "description": "Code of the refund reason.\n\nAcceptable values are: \n- \"`adjustment`\" \n- \"`autoPostInternal`\" \n- \"`autoPostInvalidBillingAddress`\" \n- \"`autoPostNoInventory`\" \n- \"`autoPostPriceError`\" \n- \"`autoPostUndeliverableShippingAddress`\" \n- \"`couponAbuse`\" \n- \"`courtesyAdjustment`\" \n- \"`customerCanceled`\" \n- \"`customerDiscretionaryReturn`\" \n- \"`customerInitiatedMerchantCancel`\" \n- \"`customerSupportRequested`\" \n- \"`deliveredLateByCarrier`\" \n- \"`deliveredTooLate`\" \n- \"`expiredItem`\" \n- \"`failToPushOrderGoogleError`\" \n- \"`failToPushOrderMerchantError`\" \n- \"`failToPushOrderMerchantFulfillmentError`\" \n- \"`failToPushOrderToMerchant`\" \n- \"`failToPushOrderToMerchantOutOfStock`\" \n- \"`feeAdjustment`\" \n- \"`invalidCoupon`\" \n- \"`lateShipmentCredit`\" \n- \"`malformedShippingAddress`\" \n- \"`merchantDidNotShipOnTime`\" \n- \"`noInventory`\" \n- \"`orderTimeout`\" \n- \"`other`\" \n- \"`paymentAbuse`\" \n- \"`paymentDeclined`\" \n- \"`priceAdjustment`\" \n- \"`priceError`\" \n- \"`productArrivedDamaged`\" \n- \"`productNotAsDescribed`\" \n- \"`promoReallocation`\" \n- \"`qualityNotAsExpected`\" \n- \"`returnRefundAbuse`\" \n- \"`shippingCostAdjustment`\" \n- \"`shippingPriceError`\" \n- \"`taxAdjustment`\" \n- \"`taxError`\" \n- \"`undeliverableShippingAddress`\" \n- \"`unsupportedPoBoxAddress`\" \n- \"`wrongProductShipped`\"", + "description": "Code of the refund reason. Acceptable values are: - \"`adjustment`\" - \"`autoPostInternal`\" - \"`autoPostInvalidBillingAddress`\" - \"`autoPostNoInventory`\" - \"`autoPostPriceError`\" - \"`autoPostUndeliverableShippingAddress`\" - \"`couponAbuse`\" - \"`courtesyAdjustment`\" - \"`customerCanceled`\" - \"`customerDiscretionaryReturn`\" - \"`customerInitiatedMerchantCancel`\" - \"`customerSupportRequested`\" - \"`deliveredLateByCarrier`\" - \"`deliveredTooLate`\" - \"`expiredItem`\" - \"`failToPushOrderGoogleError`\" - \"`failToPushOrderMerchantError`\" - \"`failToPushOrderMerchantFulfillmentError`\" - \"`failToPushOrderToMerchant`\" - \"`failToPushOrderToMerchantOutOfStock`\" - \"`feeAdjustment`\" - \"`invalidCoupon`\" - \"`lateShipmentCredit`\" - \"`malformedShippingAddress`\" - \"`merchantDidNotShipOnTime`\" - \"`noInventory`\" - \"`orderTimeout`\" - \"`other`\" - \"`paymentAbuse`\" - \"`paymentDeclined`\" - \"`priceAdjustment`\" - \"`priceError`\" - \"`productArrivedDamaged`\" - \"`productNotAsDescribed`\" - \"`promoReallocation`\" - \"`qualityNotAsExpected`\" - \"`returnRefundAbuse`\" - \"`shippingCostAdjustment`\" - \"`shippingPriceError`\" - \"`taxAdjustment`\" - \"`taxError`\" - \"`undeliverableShippingAddress`\" - \"`unsupportedPoBoxAddress`\" - \"`wrongProductShipped`\" ", "type": "string" } }, @@ -9812,7 +9530,7 @@ "type": "string" }, "returnMethodType": { - "description": "Type of the return method.\n\nAcceptable values are: \n- \"`byMail`\" \n- \"`contactCustomerSupport`\" \n- \"`returnless`\"", + "description": "Type of the return method. Acceptable values are: - \"`byMail`\" - \"`contactCustomerSupport`\" - \"`returnless`\" ", "type": "string" }, "shipmentId": { @@ -9831,7 +9549,7 @@ "type": "string" }, "state": { - "description": "State of the shipment.\n\nAcceptable values are: \n- \"`completed`\" \n- \"`new`\" \n- \"`shipped`\" \n- \"`undeliverable`\" \n- \"`pending`\"", + "description": "State of the shipment. Acceptable values are: - \"`completed`\" - \"`new`\" - \"`shipped`\" - \"`undeliverable`\" - \"`pending`\" ", "type": "string" } }, @@ -9870,7 +9588,7 @@ "description": "Time spent in various aspects from order to the delivery of the product. Required." }, "eligibility": { - "description": "Eligibility for this service.\n\nAcceptable values are: \n- \"`All scenarios`\" \n- \"`All scenarios except Shopping Actions`\" \n- \"`Shopping Actions`\"", + "description": "Eligibility for this service. Acceptable values are: - \"`All scenarios`\" - \"`All scenarios except Shopping Actions`\" - \"`Shopping Actions`\" ", "type": "string" }, "minimumOrderValue": { @@ -9897,7 +9615,7 @@ "type": "array" }, "shipmentType": { - "description": "Type of locations this service ships orders to.\n\nAcceptable values are: \n- \"`delivery`\" \n- \"`pickup`\"", + "description": "Type of locations this service ships orders to. Acceptable values are: - \"`delivery`\" - \"`pickup`\" ", "type": "string" } }, @@ -9953,7 +9671,7 @@ "id": "ShipmentTrackingInfo", "properties": { "carrier": { - "description": "The shipping carrier that handles the package.\n\nAcceptable values are: \n- \"`boxtal`\" \n- \"`bpost`\" \n- \"`chronopost`\" \n- \"`colisPrive`\" \n- \"`colissimo`\" \n- \"`cxt`\" \n- \"`deliv`\" \n- \"`dhl`\" \n- \"`dpd`\" \n- \"`dynamex`\" \n- \"`eCourier`\" \n- \"`easypost`\" \n- \"`efw`\" \n- \"`fedex`\" \n- \"`fedexSmartpost`\" \n- \"`geodis`\" \n- \"`gls`\" \n- \"`googleCourier`\" \n- \"`gsx`\" \n- \"`jdLogistics`\" \n- \"`laPoste`\" \n- \"`lasership`\" \n- \"`manual`\" \n- \"`mpx`\" \n- \"`onTrac`\" \n- \"`other`\" \n- \"`tnt`\" \n- \"`uds`\" \n- \"`ups`\" \n- \"`usps`\"", + "description": "The shipping carrier that handles the package. Acceptable values are: - \"`boxtal`\" - \"`bpost`\" - \"`chronopost`\" - \"`colisPrive`\" - \"`colissimo`\" - \"`cxt`\" - \"`deliv`\" - \"`dhl`\" - \"`dpd`\" - \"`dynamex`\" - \"`eCourier`\" - \"`easypost`\" - \"`efw`\" - \"`fedex`\" - \"`fedexSmartpost`\" - \"`geodis`\" - \"`gls`\" - \"`googleCourier`\" - \"`gsx`\" - \"`jdLogistics`\" - \"`laPoste`\" - \"`lasership`\" - \"`manual`\" - \"`mpx`\" - \"`onTrac`\" - \"`other`\" - \"`tnt`\" - \"`uds`\" - \"`ups`\" - \"`usps`\" ", "type": "string" }, "trackingNumber": { @@ -10022,7 +9740,7 @@ "type": "string" }, "method": { - "description": "The method of the batch entry.\n\nAcceptable values are: \n- \"`get`\" \n- \"`update`\"", + "description": "The method of the batch entry. Acceptable values are: - \"`get`\" - \"`update`\" ", "type": "string" }, "shippingSettings": { @@ -10043,7 +9761,6 @@ "type": "array" }, "kind": { - "default": "content#shippingsettingsCustomBatchResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#shippingsettingsCustomBatchResponse\".", "type": "string" } @@ -10064,7 +9781,6 @@ "description": "A list of errors defined if, and only if, the request failed." }, "kind": { - "default": "content#shippingsettingsCustomBatchResponseEntry", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#shippingsettingsCustomBatchResponseEntry`\"", "type": "string" }, @@ -10086,7 +9802,6 @@ "type": "array" }, "kind": { - "default": "content#shippingsettingsGetSupportedCarriersResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#shippingsettingsGetSupportedCarriersResponse\".", "type": "string" } @@ -10104,7 +9819,6 @@ "type": "array" }, "kind": { - "default": "content#shippingsettingsGetSupportedHolidaysResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#shippingsettingsGetSupportedHolidaysResponse\".", "type": "string" } @@ -10115,7 +9829,6 @@ "id": "ShippingsettingsGetSupportedPickupServicesResponse", "properties": { "kind": { - "default": "content#shippingsettingsGetSupportedPickupServicesResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#shippingsettingsGetSupportedPickupServicesResponse\".", "type": "string" }, @@ -10133,7 +9846,6 @@ "id": "ShippingsettingsListResponse", "properties": { "kind": { - "default": "content#shippingsettingsListResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#shippingsettingsListResponse\".", "type": "string" }, @@ -10180,11 +9892,6 @@ "properties": { "customer": { "$ref": "TestOrderCustomer", - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. The details of the customer who placed the order." }, "enableOrderinvoices": { @@ -10192,16 +9899,10 @@ "type": "boolean" }, "kind": { - "default": "content#testOrder", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#testOrder`\"", "type": "string" }, "lineItems": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. Line items that are ordered. At least one line item must be provided.", "items": { "$ref": "TestOrderLineItem" @@ -10217,16 +9918,11 @@ "description": "The details of the payment method." }, "predefinedDeliveryAddress": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, - "description": "Required. Identifier of one of the predefined delivery addresses for the delivery.\n\nAcceptable values are: \n- \"`dwight`\" \n- \"`jim`\" \n- \"`pam`\"", + "description": "Required. Identifier of one of the predefined delivery addresses for the delivery. Acceptable values are: - \"`dwight`\" - \"`jim`\" - \"`pam`\" ", "type": "string" }, "predefinedPickupDetails": { - "description": "Identifier of one of the predefined pickup details. Required for orders containing line items with shipping type `pickup`.\n\nAcceptable values are: \n- \"`dwight`\" \n- \"`jim`\" \n- \"`pam`\"", + "description": "Identifier of one of the predefined pickup details. Required for orders containing line items with shipping type `pickup`. Acceptable values are: - \"`dwight`\" - \"`jim`\" - \"`pam`\" ", "type": "string" }, "promotions": { @@ -10238,11 +9934,6 @@ }, "shippingCost": { "$ref": "Price", - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. The price of shipping for all items. Shipping tax is automatically calculated for orders where marketplace facilitator tax laws are applicable. Otherwise, tax settings from Merchant Center are applied. Note that shipping is not taxed in certain states." }, "shippingCostTax": { @@ -10250,12 +9941,7 @@ "description": "Deprecated. Ignored if provided." }, "shippingOption": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, - "description": "Required. The requested shipping option.\n\nAcceptable values are: \n- \"`economy`\" \n- \"`expedited`\" \n- \"`oneDay`\" \n- \"`sameDay`\" \n- \"`standard`\" \n- \"`twoDay`\"", + "description": "Required. The requested shipping option. Acceptable values are: - \"`economy`\" - \"`expedited`\" - \"`oneDay`\" - \"`sameDay`\" - \"`standard`\" - \"`twoDay`\" ", "type": "string" } }, @@ -10265,12 +9951,7 @@ "id": "TestOrderCustomer", "properties": { "email": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, - "description": "Required. Email address of the customer.\n\nAcceptable values are: \n- \"`pog.dwight.schrute@gmail.com`\" \n- \"`pog.jim.halpert@gmail.com`\" \n- \"`penpog.pam.beesly@gmail.comding`\"", + "description": "Required. Email address of the customer. Acceptable values are: - \"`pog.dwight.schrute@gmail.com`\" - \"`pog.jim.halpert@gmail.com`\" - \"`penpog.pam.beesly@gmail.comding`\" ", "type": "string" }, "explicitMarketingPreference": { @@ -10292,7 +9973,7 @@ "id": "TestOrderCustomerMarketingRightsInfo", "properties": { "explicitMarketingPreference": { - "description": "Last know user use selection regards marketing preferences. In certain cases selection might not be known, so this field would be empty.\n\nAcceptable values are: \n- \"`denied`\" \n- \"`granted`\"", + "description": "Last know user use selection regards marketing preferences. In certain cases selection might not be known, so this field would be empty. Acceptable values are: - \"`denied`\" - \"`granted`\" ", "type": "string" }, "lastUpdatedTimestamp": { @@ -10310,31 +9991,16 @@ "description": "Required. Product data from the time of the order placement." }, "quantityOrdered": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. Number of items ordered.", "format": "uint32", "type": "integer" }, "returnInfo": { "$ref": "OrderLineItemReturnInfo", - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. Details of the return policy for the line item." }, "shippingDetails": { "$ref": "OrderLineItemShippingDetails", - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. Details of the requested shipping for the line item." }, "unitTax": { @@ -10348,34 +10014,19 @@ "id": "TestOrderLineItemProduct", "properties": { "brand": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. Brand of the item.", "type": "string" }, "channel": { - "description": "Deprecated.\n\nAcceptable values are: \n- \"`online`\"", + "description": "Deprecated. Acceptable values are: - \"`online`\" ", "type": "string" }, "condition": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, - "description": "Required. Condition or state of the item.\n\nAcceptable values are: \n- \"`new`\"", + "description": "Required. Condition or state of the item. Acceptable values are: - \"`new`\" ", "type": "string" }, "contentLanguage": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, - "description": "Required. The two-letter ISO 639-1 language code for the item.\n\nAcceptable values are: \n- \"`en`\" \n- \"`fr`\"", + "description": "Required. The two-letter ISO 639-1 language code for the item. Acceptable values are: - \"`en`\" - \"`fr`\" ", "type": "string" }, "fees": { @@ -10390,11 +10041,6 @@ "type": "string" }, "imageLink": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. URL of an image of the item.", "type": "string" }, @@ -10407,38 +10053,18 @@ "type": "string" }, "offerId": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. An identifier of the item.", "type": "string" }, "price": { "$ref": "Price", - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. The price for the product. Tax is automatically calculated for orders where marketplace facilitator tax laws are applicable. Otherwise, tax settings from Merchant Center are applied." }, "targetCountry": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, - "description": "Required. The CLDR territory code of the target country of the product.", + "description": "Required. The CLDR territory // code of the target country of the product.", "type": "string" }, "title": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. The title of the product.", "type": "string" }, @@ -10470,11 +10096,11 @@ "type": "string" }, "predefinedBillingAddress": { - "description": "The billing address.\n\nAcceptable values are: \n- \"`dwight`\" \n- \"`jim`\" \n- \"`pam`\"", + "description": "The billing address. Acceptable values are: - \"`dwight`\" - \"`jim`\" - \"`pam`\" ", "type": "string" }, "type": { - "description": "The type of instrument. Note that real orders might have different values than the four values accepted by `createTestOrder`.\n\nAcceptable values are: \n- \"`AMEX`\" \n- \"`DISCOVER`\" \n- \"`MASTERCARD`\" \n- \"`VISA`\"", + "description": "The type of instrument. Note that real orders might have different values than the four values accepted by `createTestOrder`. Acceptable values are: - \"`AMEX`\" - \"`DISCOVER`\" - \"`MASTERCARD`\" - \"`VISA`\" ", "type": "string" } }, @@ -10580,7 +10206,7 @@ "type": "array" }, "type": { - "description": "[required] Type of the additional charge.\n\nAcceptable values are: \n- \"`shipping`\"", + "description": "[required] Type of the additional charge. Acceptable values are: - \"`shipping`\" ", "type": "string" } }, @@ -10598,7 +10224,7 @@ "type": "string" }, "taxType": { - "description": "[required] Type of the tax.\n\nAcceptable values are: \n- \"`otherFee`\" \n- \"`otherFeeTax`\" \n- \"`sales`\"", + "description": "[required] Type of the tax. Acceptable values are: - \"`otherFee`\" - \"`otherFeeTax`\" - \"`sales`\" ", "type": "string" } }, @@ -10635,7 +10261,7 @@ "id": "Weight", "properties": { "unit": { - "description": "Required. The weight unit.\n\nAcceptable values are: \n- \"`kg`\" \n- \"`lb`\"", + "description": "Required. The weight unit. Acceptable values are: - \"`kg`\" - \"`lb`\" ", "type": "string" }, "value": { @@ -10646,7 +10272,7 @@ "type": "object" } }, - "servicePath": "content/v2/", + "servicePath": "", "title": "Content API for Shopping", "version": "v2" } \ No newline at end of file diff --git a/content/v2/content-gen.go b/content/v2/content-gen.go index 164fbfa0fe2..037dafb78d6 100644 --- a/content/v2/content-gen.go +++ b/content/v2/content-gen.go @@ -6,7 +6,7 @@ // Package content provides access to the Content API for Shopping. // -// For product documentation, see: https://developers.google.com/shopping-content +// For product documentation, see: https://developers.google.com/shopping-content/v2/ // // Creating a client // @@ -74,7 +74,8 @@ var _ = internaloption.WithDefaultEndpoint const apiId = "content:v2" const apiName = "content" const apiVersion = "v2" -const basePath = "https://www.googleapis.com/content/v2/" +const basePath = "https://shoppingcontent.googleapis.com/" +const mtlsBasePath = "https://shoppingcontent.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( @@ -90,6 +91,7 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*APIService, // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -321,7 +323,7 @@ type Account struct { // pending approval. To create a new link request, add a new link with // status `active` to the list. It will remain in a `pending` state // until approved or rejected either in the AdWords interface or through - // the AdWords API. To delete an active link, or to cancel a link + // the AdWords API. To delete an active link, or to cancel a link // request, remove it from the list. AdwordsLinks []*AccountAdwordsLink `json:"adwordsLinks,omitempty"` @@ -444,17 +446,13 @@ type AccountAdwordsLink struct { // the AdWords account. Upon retrieval, it represents the actual status // of the link and can be either `active` if it was approved in Google // AdWords or `pending` if it's pending approval. Upon insertion, it - // represents the intended status of the link. Re-uploading a link with - // status `active` when it's still pending or with status `pending` when - // it's already active will have no effect: the status will remain + // represents the *intended* status of the link. Re-uploading a link + // with status `active` when it's still pending or with status `pending` + // when it's already active will have no effect: the status will remain // unchanged. Re-uploading a link with deprecated status `inactive` is // equivalent to not submitting the link at all and will delete the link - // if it was active or cancel the link request if it was - // pending. - // - // Acceptable values are: - // - "active" - // - "pending" + // if it was active or cancel the link request if it was pending. + // Acceptable values are: - "active" - "pending" Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "AdwordsId") to @@ -554,11 +552,7 @@ type AccountGoogleMyBusinessLink struct { GmbEmail string `json:"gmbEmail,omitempty"` // Status: Status of the link between this Merchant Center account and - // the GMB account. - // - // Acceptable values are: - // - "active" - // - "pending" + // the GMB account. Acceptable values are: - "active" - "pending" Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "GmbEmail") to @@ -684,12 +678,8 @@ type AccountStatusAccountLevelIssue struct { // Id: Issue identifier. Id string `json:"id,omitempty"` - // Severity: Severity of the issue. - // - // Acceptable values are: - // - "critical" - // - "error" - // - "suggestion" + // Severity: Severity of the issue. Acceptable values are: - + // "critical" - "error" - "suggestion" Severity string `json:"severity,omitempty"` // Title: Short description of the issue. @@ -737,10 +727,8 @@ type AccountStatusDataQualityIssue struct { NumItems int64 `json:"numItems,omitempty"` - // Severity: Acceptable values are: - // - "critical" - // - "error" - // - "suggestion" + // Severity: Acceptable values are: - "critical" - "error" - + // "suggestion" Severity string `json:"severity,omitempty"` SubmittedValue string `json:"submittedValue,omitempty"` @@ -853,11 +841,8 @@ func (s *AccountStatusItemLevelIssue) MarshalJSON() ([]byte, error) { } type AccountStatusProducts struct { - // Channel: The channel the data applies to. - // - // Acceptable values are: - // - "local" - // - "online" + // Channel: The channel the data applies to. Acceptable values are: - + // "local" - "online" Channel string `json:"channel,omitempty"` // Country: The country the data applies to. @@ -1065,7 +1050,7 @@ type AccountYouTubeChannelLink struct { // the YouTube channel. Upon retrieval, it represents the actual status // of the link and can be either `active` if it was approved in YT // Creator Studio or `pending` if it's pending approval. Upon insertion, - // it represents the intended status of the link. Re-uploading a link + // it represents the *intended* status of the link. Re-uploading a link // with status `active` when it's still pending or with status `pending` // when it's already active will have no effect: the status will remain // unchanged. Re-uploading a link with deprecated status `inactive` is @@ -1098,10 +1083,9 @@ func (s *AccountYouTubeChannelLink) MarshalJSON() ([]byte, error) { type AccountsAuthInfoResponse struct { // AccountIdentifiers: The account identifiers corresponding to the - // authenticated user. - // - For an individual account: only the merchant ID is defined - // - For an aggregator: only the aggregator ID is defined - // - For a subaccount of an MCA: both the merchant ID and the aggregator + // authenticated user. - For an individual account: only the merchant ID + // is defined - For an aggregator: only the aggregator ID is defined - + // For a subaccount of an MCA: both the merchant ID and the aggregator // ID are defined. AccountIdentifiers []*AccountIdentifier `json:"accountIdentifiers,omitempty"` @@ -1223,15 +1207,9 @@ type AccountsCustomBatchRequestEntry struct { // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` - // Method: The method of the batch entry. - // - // Acceptable values are: - // - "claimWebsite" - // - "delete" - // - "get" - // - "insert" - // - "link" - // - "update" + // Method: The method of the batch entry. Acceptable values are: - + // "claimWebsite" - "delete" - "get" - "insert" - "link" - + // "update" Method string `json:"method,omitempty"` // Overwrite: Only applicable if the method is `claimwebsite`. Indicates @@ -1264,19 +1242,12 @@ func (s *AccountsCustomBatchRequestEntry) MarshalJSON() ([]byte, error) { type AccountsCustomBatchRequestEntryLinkRequest struct { // Action: Action to perform for this link. The "request" action is - // only available to select merchants. - // - // Acceptable values are: - // - "approve" - // - "remove" - // - "request" + // only available to select merchants. Acceptable values are: - + // "approve" - "remove" - "request" Action string `json:"action,omitempty"` - // LinkType: Type of the link between the two accounts. - // - // Acceptable values are: - // - "channelPartner" - // - "eCommercePlatform" + // LinkType: Type of the link between the two accounts. Acceptable + // values are: - "channelPartner" - "eCommercePlatform" LinkType string `json:"linkType,omitempty"` // LinkedAccountId: The ID of the linked account. @@ -1357,12 +1328,8 @@ type AccountsCustomBatchResponseEntry struct { // string "content#accountsCustomBatchResponseEntry" Kind string `json:"kind,omitempty"` - // LinkStatus: Deprecated. This field is never set. - // - // Acceptable values are: - // - "active" - // - "inactive" - // - "pending" + // LinkStatus: Deprecated. This field is never set. Acceptable values + // are: - "active" - "inactive" - "pending" LinkStatus string `json:"linkStatus,omitempty"` // ForceSendFields is a list of field names (e.g. "Account") to @@ -1390,19 +1357,12 @@ func (s *AccountsCustomBatchResponseEntry) MarshalJSON() ([]byte, error) { type AccountsLinkRequest struct { // Action: Action to perform for this link. The "request" action is - // only available to select merchants. - // - // Acceptable values are: - // - "approve" - // - "remove" - // - "request" + // only available to select merchants. Acceptable values are: - + // "approve" - "remove" - "request" Action string `json:"action,omitempty"` - // LinkType: Type of the link between the two accounts. - // - // Acceptable values are: - // - "channelPartner" - // - "eCommercePlatform" + // LinkType: Type of the link between the two accounts. Acceptable + // values are: - "channelPartner" - "eCommercePlatform" LinkType string `json:"linkType,omitempty"` // LinkedAccountId: The ID of the linked account. @@ -1544,10 +1504,8 @@ type AccountstatusesCustomBatchRequestEntry struct { // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` - // Method: The method of the batch entry. - // - // Acceptable values are: - // - "get" + // Method: The method of the batch entry. Acceptable values are: - + // "get" Method string `json:"method,omitempty"` // ForceSendFields is a list of field names (e.g. "AccountId") to @@ -1726,11 +1684,8 @@ type AccounttaxCustomBatchRequestEntry struct { // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` - // Method: The method of the batch entry. - // - // Acceptable values are: - // - "get" - // - "update" + // Method: The method of the batch entry. Acceptable values are: - + // "get" - "update" Method string `json:"method,omitempty"` // ForceSendFields is a list of field names (e.g. "AccountId") to @@ -2018,18 +1973,9 @@ type CustomAttribute struct { // spaces upon insertion. Name string `json:"name,omitempty"` - // Type: The type of the attribute. - // - // Acceptable values are: - // - "boolean" - // - "datetimerange" - // - "float" - // - "group" - // - "int" - // - "price" - // - "text" - // - "time" - // - "url" + // Type: The type of the attribute. Acceptable values are: - "boolean" + // - "datetimerange" - "float" - "group" - "int" - "price" - + // "text" - "time" - "url" Type string `json:"type,omitempty"` // Unit: Free-form unit of the attribute. Unit can only be used for @@ -2097,23 +2043,12 @@ type CustomerReturnReason struct { // Description: Description of the reason. Description string `json:"description,omitempty"` - // ReasonCode: Code of the return reason. - // - // Acceptable values are: - // - "betterPriceFound" - // - "changedMind" - // - "damagedOrDefectiveItem" - // - "didNotMatchDescription" - // - "doesNotFit" - // - "expiredItem" - // - "incorrectItemReceived" - // - "noLongerNeeded" - // - "notSpecified" - // - "orderedWrongItem" - // - "other" - // - "qualityNotExpected" - // - "receivedTooLate" - // - "undeliverable" + // ReasonCode: Code of the return reason. Acceptable values are: - + // "betterPriceFound" - "changedMind" - "damagedOrDefectiveItem" - + // "didNotMatchDescription" - "doesNotFit" - "expiredItem" - + // "incorrectItemReceived" - "noLongerNeeded" - "notSpecified" - + // "orderedWrongItem" - "other" - "qualityNotExpected" - + // "receivedTooLate" - "undeliverable" ReasonCode string `json:"reasonCode,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to @@ -2149,7 +2084,7 @@ type CutoffTime struct { Minute int64 `json:"minute,omitempty"` // Timezone: Timezone identifier for the cutoff time. A list of - // identifiers can be found in the AdWords API documentation. E.g. + // identifiers can be found in the AdWords API documentation. E.g. // "Europe/Zurich". Required. Timezone string `json:"timezone,omitempty"` @@ -2188,13 +2123,9 @@ type Datafeed struct { ContentLanguage string `json:"contentLanguage,omitempty"` // ContentType: Required. The type of data feed. For product inventory - // feeds, only feeds for local stores, not online stores, are - // supported. - // - // Acceptable values are: - // - "local products" - // - "product inventory" - // - "products" + // feeds, only feeds for local stores, not online stores, are supported. + // Acceptable values are: - "local products" - "product inventory" - + // "products" ContentType string `json:"contentType,omitempty"` // FetchSchedule: Fetch schedule for the feed file. @@ -2294,17 +2225,9 @@ type DatafeedFetchSchedule struct { // Username: An optional user name for fetch_url. Username string `json:"username,omitempty"` - // Weekday: The day of the week the feed file should be - // fetched. - // - // Acceptable values are: - // - "monday" - // - "tuesday" - // - "wednesday" - // - "thursday" - // - "friday" - // - "saturday" - // - "sunday" + // Weekday: The day of the week the feed file should be fetched. + // Acceptable values are: - "monday" - "tuesday" - "wednesday" - + // "thursday" - "friday" - "saturday" - "sunday" Weekday string `json:"weekday,omitempty"` // ForceSendFields is a list of field names (e.g. "DayOfMonth") to @@ -2333,32 +2256,20 @@ func (s *DatafeedFetchSchedule) MarshalJSON() ([]byte, error) { type DatafeedFormat struct { // ColumnDelimiter: Delimiter for the separation of values in a // delimiter-separated values feed. If not specified, the delimiter will - // be auto-detected. Ignored for non-DSV data feeds. - // - // Acceptable values are: - // - "pipe" - // - "tab" - // - "tilde" + // be auto-detected. Ignored for non-DSV data feeds. Acceptable values + // are: - "pipe" - "tab" - "tilde" ColumnDelimiter string `json:"columnDelimiter,omitempty"` // FileEncoding: Character encoding scheme of the data feed. If not - // specified, the encoding will be auto-detected. - // - // Acceptable values are: - // - "latin-1" - // - "utf-16be" - // - "utf-16le" - // - "utf-8" - // - "windows-1252" + // specified, the encoding will be auto-detected. Acceptable values are: + // - "latin-1" - "utf-16be" - "utf-16le" - "utf-8" - + // "windows-1252" FileEncoding string `json:"fileEncoding,omitempty"` // QuotingMode: Specifies how double quotes are interpreted. If not // specified, the mode will be auto-detected. Ignored for non-DSV data - // feeds. - // - // Acceptable values are: - // - "normal character" - // - "value quoting" + // feeds. Acceptable values are: - "normal character" - "value + // quoting" QuotingMode string `json:"quotingMode,omitempty"` // ForceSendFields is a list of field names (e.g. "ColumnDelimiter") to @@ -2390,7 +2301,7 @@ func (s *DatafeedFormat) MarshalJSON() ([]byte, error) { // processing is finished. type DatafeedStatus struct { // Country: The country for which the status is reported, represented as - // a CLDR territory code. + // a CLDR territory code. Country string `json:"country,omitempty"` // DatafeedId: The ID of the feed for which the status is reported. @@ -2416,15 +2327,12 @@ type DatafeedStatus struct { // LastUploadDate: The last date at which the feed was uploaded. LastUploadDate string `json:"lastUploadDate,omitempty"` - // ProcessingStatus: The processing status of the feed. - // - // Acceptable values are: - // - ""failure": The feed could not be processed or all items had - // errors." - // - "in progress": The feed is being processed. - // - "none": The feed has not yet been processed. For example, a feed - // that has never been uploaded will have this processing status. - // - "success": The feed was processed successfully, though some items + // ProcessingStatus: The processing status of the feed. Acceptable + // values are: - ""failure": The feed could not be processed or all + // items had errors." - "in progress": The feed is being processed. - + // "none": The feed has not yet been processed. For example, a feed + // that has never been uploaded will have this processing status. - + // "success": The feed was processed successfully, though some items // might have had errors. ProcessingStatus string `json:"processingStatus,omitempty"` @@ -2533,7 +2441,7 @@ func (s *DatafeedStatusExample) MarshalJSON() ([]byte, error) { type DatafeedTarget struct { // Country: The country where the items in the feed will be included in - // the search index, represented as a CLDR territory code. + // the search index, represented as a CLDR territory code. Country string `json:"country,omitempty"` // ExcludedDestinations: The list of destinations to exclude for this @@ -2543,13 +2451,9 @@ type DatafeedTarget struct { // IncludedDestinations: The list of destinations to include for this // target (corresponds to checked check boxes in Merchant Center). // Default destinations are always included unless provided in - // `excludedDestinations`. - // - // List of supported destinations (if available to the account): - // - DisplayAds - // - Shopping - // - ShoppingActions - // - SurfacesAcrossGoogle + // `excludedDestinations`. List of supported destinations (if available + // to the account): - DisplayAds - Shopping - ShoppingActions - + // SurfacesAcrossGoogle IncludedDestinations []string `json:"includedDestinations,omitempty"` // Language: The two-letter ISO 639-1 language of the items in the feed. @@ -2621,14 +2525,8 @@ type DatafeedsCustomBatchRequestEntry struct { // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` - // Method: The method of the batch entry. - // - // Acceptable values are: - // - "delete" - // - "fetchNow" - // - "get" - // - "insert" - // - "update" + // Method: The method of the batch entry. Acceptable values are: - + // "delete" - "fetchNow" - "get" - "insert" - "update" Method string `json:"method,omitempty"` // ForceSendFields is a list of field names (e.g. "BatchId") to @@ -2844,10 +2742,8 @@ type DatafeedstatusesCustomBatchRequestEntry struct { // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` - // Method: The method of the batch entry. - // - // Acceptable values are: - // - "get" + // Method: The method of the batch entry. Acceptable values are: - + // "get" Method string `json:"method,omitempty"` // ForceSendFields is a list of field names (e.g. "BatchId") to @@ -3196,8 +3092,9 @@ type Headers struct { // NumberOfItems: A list of inclusive number of items upper bounds. The // last value can be "infinity". For example `["10", "50", - // "infinity"]` represents the headers "<= 10 items", " 50 items". Must - // be non-empty. Can only be set if all other fields are not set. + // "infinity"]` represents the headers "<= 10 items", "<= 50 items", and + // "> 50 items". Must be non-empty. Can only be set if all other fields + // are not set. NumberOfItems []string `json:"numberOfItems,omitempty"` // PostalCodeGroupNames: A list of postal group names. The last value @@ -3210,17 +3107,18 @@ type Headers struct { // Prices: A list of inclusive order price upper bounds. The last // price's value can be "infinity". For example `[{"value": "10", // "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": - // "infinity", "currency": "USD"}]` represents the headers "<= $10", " - // $500". All prices within a service must have the same currency. Must - // be non-empty. Can only be set if all other fields are not set. + // "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= + // $500", and "> $500". All prices within a service must have the same + // currency. Must be non-empty. Can only be set if all other fields are + // not set. Prices []*Price `json:"prices,omitempty"` // Weights: A list of inclusive order weight upper bounds. The last // weight's value can be "infinity". For example `[{"value": "10", // "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", - // "unit": "kg"}]` represents the headers "<= 10kg", " 50kg". All - // weights within a service must have the same unit. Must be non-empty. - // Can only be set if all other fields are not set. + // "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> + // 50kg". All weights within a service must have the same unit. Must be + // non-empty. Can only be set if all other fields are not set. Weights []*Weight `json:"weights,omitempty"` // ForceSendFields is a list of field names (e.g. "Locations") to @@ -3258,7 +3156,7 @@ type HolidayCutoff struct { DeadlineHour int64 `json:"deadlineHour,omitempty"` // DeadlineTimezone: Timezone identifier for the deadline hour. A list - // of identifiers can be found in the AdWords API documentation. E.g. + // of identifiers can be found in the AdWords API documentation. E.g. // "Europe/Zurich". Required. DeadlineTimezone string `json:"deadlineTimezone,omitempty"` @@ -3319,17 +3217,10 @@ type HolidaysHoliday struct { // holiday cutoffs. Always present. Id string `json:"id,omitempty"` - // Type: The holiday type. Always present. - // - // Acceptable values are: - // - "Christmas" - // - "Easter" - // - "Father's Day" - // - "Halloween" - // - "Independence Day (USA)" - // - "Mother's Day" - // - "Thanksgiving" - // - "Valentine's Day" + // Type: The holiday type. Always present. Acceptable values are: - + // "Christmas" - "Easter" - "Father's Day" - "Halloween" - + // "Independence Day (USA)" - "Mother's Day" - "Thanksgiving" - + // "Valentine's Day" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "CountryCode") to @@ -3385,14 +3276,9 @@ func (s *Installment) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Inventory: (== resource_for v2.inventory ==) type Inventory struct { - // Availability: The availability of the product. - // - // Acceptable values are: - // - "in stock" - // - "out of stock" - // - "preorder" + // Availability: The availability of the product. Acceptable values are: + // - "in stock" - "out of stock" - "preorder" Availability string `json:"availability,omitempty"` // CustomLabel0: Custom label 0 for custom grouping of items in a @@ -3627,32 +3513,17 @@ type InventoryPickup struct { // PickupMethod: Whether store pickup is available for this offer and // whether the pickup option should be shown as buy, reserve, or not // supported. Only supported for local inventory. Unless the value is - // "not supported", must be submitted together with - // `pickupSla`. - // - // Acceptable values are: - // - "buy" - // - "not supported" - // - "reserve" - // - "ship to store" + // "not supported", must be submitted together with `pickupSla`. + // Acceptable values are: - "buy" - "not supported" - "reserve" - + // "ship to store" PickupMethod string `json:"pickupMethod,omitempty"` // PickupSla: The expected date that an order will be ready for pickup, // relative to when the order is placed. Only supported for local - // inventory. Must be submitted together with - // `pickupMethod`. - // - // Acceptable values are: - // - "five day" - // - "four day" - // - "multi day" - // - "multi week" - // - "next day" - // - "same day" - // - "seven day" - // - "six day" - // - "three day" - // - "two day" + // inventory. Must be submitted together with `pickupMethod`. Acceptable + // values are: - "five day" - "four day" - "multi day" - "multi + // week" - "next day" - "same day" - "seven day" - "six day" - + // "three day" - "two day" PickupSla string `json:"pickupSla,omitempty"` // ForceSendFields is a list of field names (e.g. "PickupMethod") to @@ -3679,12 +3550,8 @@ func (s *InventoryPickup) MarshalJSON() ([]byte, error) { } type InventorySetRequest struct { - // Availability: The availability of the product. - // - // Acceptable values are: - // - "in stock" - // - "out of stock" - // - "preorder" + // Availability: The availability of the product. Acceptable values are: + // - "in stock" - "out of stock" - "preorder" Availability string `json:"availability,omitempty"` // CustomLabel0: Custom label 0 for custom grouping of items in a @@ -3850,10 +3717,8 @@ type InvoiceSummaryAdditionalChargeSummary struct { // TotalAmount: [required] Total additional charge for this type. TotalAmount *Amount `json:"totalAmount,omitempty"` - // Type: [required] Type of the additional charge. - // - // Acceptable values are: - // - "shipping" + // Type: [required] Type of the additional charge. Acceptable values + // are: - "shipping" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "TotalAmount") to @@ -3880,13 +3745,8 @@ func (s *InvoiceSummaryAdditionalChargeSummary) MarshalJSON() ([]byte, error) { } type LiaAboutPageSettings struct { - // Status: The status of the verification process for the About - // page. - // - // Acceptable values are: - // - "active" - // - "inactive" - // - "pending" + // Status: The status of the verification process for the About page. + // Acceptable values are: - "active" - "inactive" - "pending" Status string `json:"status,omitempty"` // Url: The URL for the About page. @@ -3971,20 +3831,12 @@ type LiaInventorySettings struct { InventoryVerificationContactName string `json:"inventoryVerificationContactName,omitempty"` // InventoryVerificationContactStatus: The status of the verification - // contact. - // - // Acceptable values are: - // - "active" - // - "inactive" - // - "pending" + // contact. Acceptable values are: - "active" - "inactive" - + // "pending" InventoryVerificationContactStatus string `json:"inventoryVerificationContactStatus,omitempty"` - // Status: The status of the inventory verification process. - // - // Acceptable values are: - // - "active" - // - "inactive" - // - "pending" + // Status: The status of the inventory verification process. Acceptable + // values are: - "active" - "inactive" - "pending" Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -4016,12 +3868,8 @@ type LiaOnDisplayToOrderSettings struct { // ShippingCostPolicyUrl: Shipping cost and policy URL. ShippingCostPolicyUrl string `json:"shippingCostPolicyUrl,omitempty"` - // Status: The status of the ?On display to order? feature. - // - // Acceptable values are: - // - "active" - // - "inactive" - // - "pending" + // Status: The status of the ?On display to order? feature. Acceptable + // values are: - "active" - "inactive" - "pending" Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -4179,15 +4027,10 @@ type LiasettingsCustomBatchRequestEntry struct { // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` - // Method: The method of the batch entry. - // - // Acceptable values are: - // - "get" - // - "getAccessibleGmbAccounts" - // - "requestGmbAccess" - // - "requestInventoryVerification" - // - "setInventoryVerificationContact" - // - "update" + // Method: The method of the batch entry. Acceptable values are: - + // "get" - "getAccessibleGmbAccounts" - "requestGmbAccess" - + // "requestInventoryVerification" - + // "setInventoryVerificationContact" - "update" Method string `json:"method,omitempty"` // PosDataProviderId: The ID of POS data provider. Required only for @@ -4686,14 +4529,8 @@ type MerchantOrderReturnItem struct { // belongs to. ReturnShipmentIds []string `json:"returnShipmentIds,omitempty"` - // State: State of the item. - // - // Acceptable values are: - // - "canceled" - // - "new" - // - "received" - // - "refunded" - // - "rejected" + // State: State of the item. Acceptable values are: - "canceled" - + // "new" - "received" - "refunded" - "rejected" State string `json:"state,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -4785,17 +4622,13 @@ func (s *MinimumOrderValueTableStoreCodeSetWithMov) MarshalJSON() ([]byte, error } // Order: Order. Production access (all methods) requires the order -// manager role. Sandbox access does not. (== resource_for v2.orders ==) -// (== resource_for v2.1.orders ==) +// manager role. Sandbox access does not. type Order struct { // Acknowledged: Whether the order was acknowledged. Acknowledged bool `json:"acknowledged,omitempty"` - // ChannelType: Deprecated. - // - // Acceptable values are: - // - "googleExpress" - // - "purchasesOnGoogle" + // ChannelType: Deprecated. Acceptable values are: - "googleExpress" - + // "purchasesOnGoogle" ChannelType string `json:"channelType,omitempty"` // Customer: The details of the customer who placed the order. @@ -4827,13 +4660,9 @@ type Order struct { // PaymentMethod: The details of the payment method. PaymentMethod *OrderPaymentMethod `json:"paymentMethod,omitempty"` - // PaymentStatus: The status of the payment. - // - // Acceptable values are: - // - "paymentCaptured" - // - "paymentRejected" - // - "paymentSecured" - // - "pendingAuthorization" + // PaymentStatus: The status of the payment. Acceptable values are: - + // "paymentCaptured" - "paymentRejected" - "paymentSecured" - + // "pendingAuthorization" PaymentStatus string `json:"paymentStatus,omitempty"` // PickupDetails: Pickup details for shipments of type `pickup`. @@ -4843,32 +4672,23 @@ type Order struct { PlacedDate string `json:"placedDate,omitempty"` // Promotions: The details of the merchant provided promotions applied - // to the order. - // - // To determine which promotions apply to which products, check the - // `Promotions[].Benefits[].OfferIds` field against the + // to the order. To determine which promotions apply to which products, + // check the `Promotions[].Benefits[].OfferIds` field against the // `LineItems[].Product.OfferId` field for each promotion. If a // promotion is applied to more than 1 `offerId`, divide the discount // value by the number of affected offers to determine how much discount - // to apply to each `offerId`. - // - // Examples: - // - To calculate the line item level discount for a single specific - // item: For each promotion, subtract the - // `Promotions[].Benefits[].Discount.value` amount from the - // `LineItems[].Price.value`. - // - To calculate the line item level discount for multiple quantity of - // a specific item: For each promotion, divide the - // `Promotions[].Benefits[].Discount.value` by the quantity of products - // and substract it from `LineItems[].Product.Price.value` for each - // quantity item. - // - // Only 1 promotion can be applied to an offerId in a given order. To - // refund an item which had a promotion applied to it, make sure to - // refund the amount after first subtracting the promotion discount from - // the item price. - // - // More details about the program are here. + // to apply to each `offerId`. Examples: 1. To calculate the line item + // level discount for a single specific item: For each promotion, + // subtract the `Promotions[].Benefits[].Discount.value` amount from the + // `LineItems[].Price.value`. 2. To calculate the line item level + // discount for multiple quantity of a specific item: For each + // promotion, divide the `Promotions[].Benefits[].Discount.value` by the + // quantity of products and substract it from + // `LineItems[].Product.Price.value` for each quantity item. Only 1 + // promotion can be applied to an offerId in a given order. To refund an + // item which had a promotion applied to it, make sure to refund the + // amount after first subtracting the promotion discount from the item + // price. More details about the program are here. Promotions []*OrderLegacyPromotion `json:"promotions,omitempty"` // Refunds: Refunds for the order. @@ -4884,37 +4704,19 @@ type Order struct { ShippingCostTax *Price `json:"shippingCostTax,omitempty"` // ShippingOption: Deprecated. Shipping details are provided with line - // items instead. - // - // Acceptable values are: - // - "economy" - // - "expedited" - // - "oneDay" - // - "sameDay" - // - "standard" - // - "twoDay" + // items instead. Acceptable values are: - "economy" - "expedited" - + // "oneDay" - "sameDay" - "standard" - "twoDay" ShippingOption string `json:"shippingOption,omitempty"` - // Status: The status of the order. - // - // Acceptable values are: - // - "canceled" - // - "delivered" - // - "inProgress" - // - "partiallyDelivered" - // - "partiallyReturned" - // - "partiallyShipped" - // - "pendingShipment" - // - "returned" - // - "shipped" + // Status: The status of the order. Acceptable values are: - + // "canceled" - "delivered" - "inProgress" - + // "partiallyDelivered" - "partiallyReturned" - "partiallyShipped" + // - "pendingShipment" - "returned" - "shipped" Status string `json:"status,omitempty"` // TaxCollector: The party responsible for collecting and remitting - // taxes. - // - // Acceptable values are: - // - "marketplaceFacilitator" - // - "merchant" + // taxes. Acceptable values are: - "marketplaceFacilitator" - + // "merchant" TaxCollector string `json:"taxCollector,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -4949,11 +4751,8 @@ type OrderAddress struct { Country string `json:"country,omitempty"` // FullAddress: Strings representing the lines of the printed label for - // mailing the order, for example: - // John Smith - // 1600 Amphitheatre Parkway - // Mountain View, CA, 94043 - // United States + // mailing the order, for example: John Smith 1600 Amphitheatre Parkway + // Mountain View, CA, 94043 United States FullAddress []string `json:"fullAddress,omitempty"` // IsPostOfficeBox: Whether the address is a post office box. @@ -5001,15 +4800,9 @@ func (s *OrderAddress) MarshalJSON() ([]byte, error) { } type OrderCancellation struct { - // Actor: The actor that created the cancellation. - // - // Acceptable values are: - // - "customer" - // - "googleBot" - // - "googleCustomerService" - // - "googlePayments" - // - "googleSabre" - // - "merchant" + // Actor: The actor that created the cancellation. Acceptable values + // are: - "customer" - "googleBot" - "googleCustomerService" - + // "googlePayments" - "googleSabre" - "merchant" Actor string `json:"actor,omitempty"` // CreationDate: Date on which the cancellation has been created, in ISO @@ -5021,38 +4814,22 @@ type OrderCancellation struct { // Reason: The reason for the cancellation. Orders that are canceled // with a noInventory reason will lead to the removal of the product - // from Shopping Actions until you make an update to that product. This - // will not affect your Shopping ads. - // - // Acceptable values are: - // - "autoPostInternal" - // - "autoPostInvalidBillingAddress" - // - "autoPostNoInventory" - // - "autoPostPriceError" - // - "autoPostUndeliverableShippingAddress" - // - "couponAbuse" - // - "customerCanceled" - // - "customerInitiatedCancel" - // - "customerSupportRequested" - // - "failToPushOrderGoogleError" - // - "failToPushOrderMerchantError" - // - "failToPushOrderMerchantFulfillmentError" - // - "failToPushOrderToMerchant" - // - "failToPushOrderToMerchantOutOfStock" - // - "invalidCoupon" - // - "malformedShippingAddress" - // - "merchantDidNotShipOnTime" - // - "noInventory" - // - "orderTimeout" - // - "other" - // - "paymentAbuse" - // - "paymentDeclined" - // - "priceError" - // - "returnRefundAbuse" - // - "shippingPriceError" - // - "taxError" - // - "undeliverableShippingAddress" - // - "unsupportedPoBoxAddress" + // from Buy on Google until you make an update to that product. This + // will not affect your Shopping ads. Acceptable values are: - + // "autoPostInternal" - "autoPostInvalidBillingAddress" - + // "autoPostNoInventory" - "autoPostPriceError" - + // "autoPostUndeliverableShippingAddress" - "couponAbuse" - + // "customerCanceled" - "customerInitiatedCancel" - + // "customerSupportRequested" - "failToPushOrderGoogleError" - + // "failToPushOrderMerchantError" - + // "failToPushOrderMerchantFulfillmentError" - + // "failToPushOrderToMerchant" - + // "failToPushOrderToMerchantOutOfStock" - "invalidCoupon" - + // "malformedShippingAddress" - "merchantDidNotShipOnTime" - + // "noInventory" - "orderTimeout" - "other" - "paymentAbuse" - + // "paymentDeclined" - "priceError" - "returnRefundAbuse" - + // "shippingPriceError" - "taxError" - + // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. @@ -5095,7 +4872,7 @@ type OrderCustomer struct { // InvoiceReceivingEmail: Email address for the merchant to send // value-added tax or invoice documentation of the order. Only the last // document sent is made available to the customer. For more - // information, see About automated VAT invoicing for Shopping Actions. + // information, see About automated VAT invoicing for Buy on Google. InvoiceReceivingEmail string `json:"invoiceReceivingEmail,omitempty"` // MarketingRightsInfo: Customer's marketing preferences. Contains the @@ -5133,11 +4910,8 @@ type OrderCustomerMarketingRightsInfo struct { // known, so this field would be empty. If a customer selected `granted` // in their most recent order, they can be subscribed to marketing // emails. Customers who have chosen `denied` must not be subscribed, or - // must be unsubscribed if already opted-in. - // - // Acceptable values are: - // - "denied" - // - "granted" + // must be unsubscribed if already opted-in. Acceptable values are: - + // "denied" - "granted" ExplicitMarketingPreference string `json:"explicitMarketingPreference,omitempty"` // LastUpdatedTimestamp: Timestamp when last time marketing preference @@ -5210,12 +4984,12 @@ type OrderLegacyPromotion struct { // EffectiveDates: The date and time frame when the promotion is active // and ready for validation review. Note that the promotion live time - // may be delayed for a few hours due to the validation review. - // Start date and end date are separated by a forward slash (/). The - // start date is specified by the format (YYYY-MM-DD), followed by the - // letter ?T?, the time of the day when the sale starts (in Greenwich - // Mean Time, GMT), followed by an expression of the time zone for the - // sale. The end date is in the same format. + // may be delayed for a few hours due to the validation review. Start + // date and end date are separated by a forward slash (/). The start + // date is specified by the format (YYYY-MM-DD), followed by the letter + // ?T?, the time of the day when the sale starts (in Greenwich Mean + // Time, GMT), followed by an expression of the time zone for the sale. + // The end date is in the same format. EffectiveDates string `json:"effectiveDates,omitempty"` // GenericRedemptionCode: Optional. The text code that corresponds to @@ -5229,18 +5003,12 @@ type OrderLegacyPromotion struct { LongTitle string `json:"longTitle,omitempty"` // ProductApplicability: Whether the promotion is applicable to all - // products or only specific products. - // - // Acceptable values are: - // - "allProducts" - // - "specificProducts" + // products or only specific products. Acceptable values are: - + // "allProducts" - "specificProducts" ProductApplicability string `json:"productApplicability,omitempty"` - // RedemptionChannel: Indicates that the promotion is valid - // online. - // - // Acceptable values are: - // - "online" + // RedemptionChannel: Indicates that the promotion is valid online. + // Acceptable values are: - "online" RedemptionChannel string `json:"redemptionChannel,omitempty"` // ForceSendFields is a list of field names (e.g. "Benefits") to @@ -5277,34 +5045,19 @@ type OrderLegacyPromotionBenefit struct { // SubType: Further describes the benefit of the promotion. Note that we // will expand on this enumeration as we support new promotion - // sub-types. - // - // Acceptable values are: - // - "buyMGetMoneyOff" - // - "buyMGetNMoneyOff" - // - "buyMGetNPercentOff" - // - "buyMGetPercentOff" - // - "freeGift" - // - "freeGiftWithItemId" - // - "freeGiftWithValue" - // - "freeOvernightShipping" - // - "freeShipping" - // - "freeTwoDayShipping" - // - "moneyOff" - // - "percentageOff" - // - "rewardPoints" - // - "salePrice" + // sub-types. Acceptable values are: - "buyMGetMoneyOff" - + // "buyMGetNMoneyOff" - "buyMGetNPercentOff" - "buyMGetPercentOff" + // - "freeGift" - "freeGiftWithItemId" - "freeGiftWithValue" - + // "freeOvernightShipping" - "freeShipping" - "freeTwoDayShipping" + // - "moneyOff" - "percentageOff" - "rewardPoints" - "salePrice" SubType string `json:"subType,omitempty"` // TaxImpact: The impact on tax when the promotion is applied. TaxImpact *Price `json:"taxImpact,omitempty"` // Type: Describes whether the promotion applies to products (e.g. 20% - // off) or to shipping (e.g. Free Shipping). - // - // Acceptable values are: - // - "product" - // - "shipping" + // off) or to shipping (e.g. Free Shipping). Acceptable values are: - + // "product" - "shipping" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Discount") to @@ -5412,19 +5165,12 @@ type OrderLineItemProduct struct { // Brand: Brand of the item. Brand string `json:"brand,omitempty"` - // Channel: The item's channel (online or local). - // - // Acceptable values are: - // - "local" - // - "online" + // Channel: The item's channel (online or local). Acceptable values are: + // - "local" - "online" Channel string `json:"channel,omitempty"` - // Condition: Condition or state of the item. - // - // Acceptable values are: - // - "new" - // - "refurbished" - // - "used" + // Condition: Condition or state of the item. Acceptable values are: - + // "new" - "refurbished" - "used" Condition string `json:"condition,omitempty"` // ContentLanguage: The two-letter ISO 639-1 language code for the item. @@ -5458,8 +5204,8 @@ type OrderLineItemProduct struct { // placed. ShownImage string `json:"shownImage,omitempty"` - // TargetCountry: The CLDR territory code of the target country of the - // product. + // TargetCountry: The CLDR territory // code of the target country of + // the product. TargetCountry string `json:"targetCountry,omitempty"` // Title: The title of the product. @@ -5598,11 +5344,8 @@ type OrderLineItemShippingDetails struct { ShipByDate string `json:"shipByDate,omitempty"` // Type: Type of shipment. Indicates whether `deliveryDetails` or - // `pickupDetails` is applicable for this shipment. - // - // Acceptable values are: - // - "delivery" - // - "pickup" + // `pickupDetails` is applicable for this shipment. Acceptable values + // are: - "delivery" - "pickup" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "DeliverByDate") to @@ -5714,16 +5457,9 @@ type OrderPaymentMethod struct { // PhoneNumber: The billing phone number. PhoneNumber string `json:"phoneNumber,omitempty"` - // Type: The type of instrument. - // - // Acceptable values are: - // - "AMEX" - // - "DISCOVER" - // - "JCB" - // - "MASTERCARD" - // - "UNIONPAY" - // - "VISA" - // - "" + // Type: The type of instrument. Acceptable values are: - "AMEX" - + // "DISCOVER" - "JCB" - "MASTERCARD" - "UNIONPAY" - "VISA" - + // "" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "BillingAddress") to @@ -5817,15 +5553,9 @@ func (s *OrderPickupDetailsCollector) MarshalJSON() ([]byte, error) { } type OrderRefund struct { - // Actor: The actor that created the refund. - // - // Acceptable values are: - // - "customer" - // - "googleBot" - // - "googleCustomerService" - // - "googlePayments" - // - "googleSabre" - // - "merchant" + // Actor: The actor that created the refund. Acceptable values are: - + // "customer" - "googleBot" - "googleCustomerService" - + // "googlePayments" - "googleSabre" - "merchant" Actor string `json:"actor,omitempty"` // Amount: The amount that is refunded. @@ -5835,53 +5565,28 @@ type OrderRefund struct { // format. CreationDate string `json:"creationDate,omitempty"` - // Reason: The reason for the refund. - // - // Acceptable values are: - // - "adjustment" - // - "autoPostInternal" - // - "autoPostInvalidBillingAddress" - // - "autoPostNoInventory" - // - "autoPostPriceError" - // - "autoPostUndeliverableShippingAddress" - // - "couponAbuse" - // - "courtesyAdjustment" - // - "customerCanceled" - // - "customerDiscretionaryReturn" - // - "customerInitiatedMerchantCancel" - // - "customerSupportRequested" - // - "deliveredLateByCarrier" - // - "deliveredTooLate" - // - "expiredItem" - // - "failToPushOrderGoogleError" - // - "failToPushOrderMerchantError" - // - "failToPushOrderMerchantFulfillmentError" - // - "failToPushOrderToMerchant" - // - "failToPushOrderToMerchantOutOfStock" - // - "feeAdjustment" - // - "invalidCoupon" - // - "lateShipmentCredit" - // - "malformedShippingAddress" - // - "merchantDidNotShipOnTime" - // - "noInventory" - // - "orderTimeout" - // - "other" - // - "paymentAbuse" - // - "paymentDeclined" - // - "priceAdjustment" - // - "priceError" - // - "productArrivedDamaged" - // - "productNotAsDescribed" - // - "promoReallocation" - // - "qualityNotAsExpected" - // - "returnRefundAbuse" - // - "shippingCostAdjustment" - // - "shippingPriceError" - // - "taxAdjustment" - // - "taxError" - // - "undeliverableShippingAddress" - // - "unsupportedPoBoxAddress" - // - "wrongProductShipped" + // Reason: The reason for the refund. Acceptable values are: - + // "adjustment" - "autoPostInternal" - + // "autoPostInvalidBillingAddress" - "autoPostNoInventory" - + // "autoPostPriceError" - "autoPostUndeliverableShippingAddress" - + // "couponAbuse" - "courtesyAdjustment" - "customerCanceled" - + // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" + // - "customerSupportRequested" - "deliveredLateByCarrier" - + // "deliveredTooLate" - "expiredItem" - + // "failToPushOrderGoogleError" - "failToPushOrderMerchantError" - + // "failToPushOrderMerchantFulfillmentError" - + // "failToPushOrderToMerchant" - + // "failToPushOrderToMerchantOutOfStock" - "feeAdjustment" - + // "invalidCoupon" - "lateShipmentCredit" - + // "malformedShippingAddress" - "merchantDidNotShipOnTime" - + // "noInventory" - "orderTimeout" - "other" - "paymentAbuse" - + // "paymentDeclined" - "priceAdjustment" - "priceError" - + // "productArrivedDamaged" - "productNotAsDescribed" - + // "promoReallocation" - "qualityNotAsExpected" - + // "returnRefundAbuse" - "shippingCostAdjustment" - + // "shippingPriceError" - "taxAdjustment" - "taxError" - + // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - + // "wrongProductShipped" Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. @@ -5911,8 +5616,7 @@ func (s *OrderRefund) MarshalJSON() ([]byte, error) { } // OrderReportDisbursement: Order disbursement. All methods require the -// payment analyst role. (== resource_for v2.orderreports ==) (== -// resource_for v2.1.orderreports ==) +// payment analyst role. type OrderReportDisbursement struct { // DisbursementAmount: The disbursement amount. DisbursementAmount *Price `json:"disbursementAmount,omitempty"` @@ -6013,15 +5717,9 @@ func (s *OrderReportTransaction) MarshalJSON() ([]byte, error) { } type OrderReturn struct { - // Actor: The actor that created the refund. - // - // Acceptable values are: - // - "customer" - // - "googleBot" - // - "googleCustomerService" - // - "googlePayments" - // - "googleSabre" - // - "merchant" + // Actor: The actor that created the refund. Acceptable values are: - + // "customer" - "googleBot" - "googleCustomerService" - + // "googlePayments" - "googleSabre" - "merchant" Actor string `json:"actor,omitempty"` // CreationDate: Date on which the item has been created, in ISO 8601 @@ -6031,22 +5729,13 @@ type OrderReturn struct { // Quantity: Quantity that is returned. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the return. - // - // Acceptable values are: - // - "customerDiscretionaryReturn" - // - "customerInitiatedMerchantCancel" - // - "deliveredTooLate" - // - "expiredItem" - // - "invalidCoupon" - // - "malformedShippingAddress" - // - "other" - // - "productArrivedDamaged" - // - "productNotAsDescribed" - // - "qualityNotAsExpected" - // - "undeliverableShippingAddress" - // - "unsupportedPoBoxAddress" - // - "wrongProductShipped" + // Reason: The reason for the return. Acceptable values are: - + // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" + // - "deliveredTooLate" - "expiredItem" - "invalidCoupon" - + // "malformedShippingAddress" - "other" - "productArrivedDamaged" + // - "productNotAsDescribed" - "qualityNotAsExpected" - + // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - + // "wrongProductShipped" Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. @@ -6076,60 +5765,38 @@ func (s *OrderReturn) MarshalJSON() ([]byte, error) { } type OrderShipment struct { - // Carrier: The carrier handling the shipment. - // - // For supported carriers, Google includes the carrier name and tracking - // URL in emails to customers. For select supported carriers, Google - // also automatically updates the shipment status based on the provided - // shipment ID. Note: You can also use unsupported carriers, but emails - // to customers will not include the carrier name or tracking URL, and - // there will be no automatic order status updates. - // Supported carriers for US are: - // - "ups" (United Parcel Service) automatic status updates - // - "usps" (United States Postal Service) automatic status updates - // - "fedex" (FedEx) automatic status updates - // - "dhl" (DHL eCommerce) automatic status updates (US only) - // - "ontrac" (OnTrac) automatic status updates - // - "dhl express" (DHL Express) - // - "deliv" (Deliv) - // - "dynamex" (TForce) - // - "lasership" (LaserShip) - // - "mpx" (Military Parcel Xpress) - // - "uds" (United Delivery Service) - // - "efw" (Estes Forwarding Worldwide) - // - "jd logistics" (JD Logistics) - // - "yunexpress" (YunExpress) - // - "china post" (China Post) - // - "china ems" (China Post Express Mail Service) - // - "singapore post" (Singapore Post) - // - "pos malaysia" (Pos Malaysia) - // - "postnl" (PostNL) - // - "ptt" (PTT Turkish Post) - // - "eub" (ePacket) - // - "chukou1" (Chukou1 Logistics) - // - "bestex" (Best Express) - // - "canada post" (Canada Post) - // - "purolator" (Purolator) - // - "canpar" (Canpar) - // - "india post" (India Post) - // - "blue dart" (Blue Dart) - // - "delhivery" (Delhivery) - // - "dtdc" (DTDC) - // - "tpc india" (TPC India) - // Supported carriers for FR are: - // - "la poste" (La Poste) automatic status updates - // - "colissimo" (Colissimo by La Poste) automatic status updates - // - "ups" (United Parcel Service) automatic status updates - // - "chronopost" (Chronopost by La Poste) - // - "gls" (General Logistics Systems France) - // - "dpd" (DPD Group by GeoPost) - // - "bpost" (Belgian Post Group) - // - "colis prive" (Colis Privé) - // - "boxtal" (Boxtal) - // - "geodis" (GEODIS) - // - "tnt" (TNT) - // - "db schenker" (DB Schenker) - // - "aramex" (Aramex) + // Carrier: The carrier handling the shipment. For supported carriers, + // Google includes the carrier name and tracking URL in emails to + // customers. For select supported carriers, Google also automatically + // updates the shipment status based on the provided shipment ID. + // *Note:* You can also use unsupported carriers, but emails to + // customers will not include the carrier name or tracking URL, and + // there will be no automatic order status updates. Supported carriers + // for US are: - "ups" (United Parcel Service) *automatic status + // updates* - "usps" (United States Postal Service) *automatic status + // updates* - "fedex" (FedEx) *automatic status updates * - "dhl" + // (DHL eCommerce) *automatic status updates* (US only) - "ontrac" + // (OnTrac) *automatic status updates * - "dhl express" (DHL Express) + // - "deliv" (Deliv) - "dynamex" (TForce) - "lasership" + // (LaserShip) - "mpx" (Military Parcel Xpress) - "uds" (United + // Delivery Service) - "efw" (Estes Forwarding Worldwide) - "jd + // logistics" (JD Logistics) - "yunexpress" (YunExpress) - "china + // post" (China Post) - "china ems" (China Post Express Mail Service) + // - "singapore post" (Singapore Post) - "pos malaysia" (Pos + // Malaysia) - "postnl" (PostNL) - "ptt" (PTT Turkish Post) - + // "eub" (ePacket) - "chukou1" (Chukou1 Logistics) - "bestex" + // (Best Express) - "canada post" (Canada Post) - "purolator" + // (Purolator) - "canpar" (Canpar) - "india post" (India Post) - + // "blue dart" (Blue Dart) - "delhivery" (Delhivery) - "dtdc" + // (DTDC) - "tpc india" (TPC India) Supported carriers for FR are: - + // "la poste" (La Poste) *automatic status updates * - "colissimo" + // (Colissimo by La Poste) *automatic status updates* - "ups" (United + // Parcel Service) *automatic status updates * - "chronopost" + // (Chronopost by La Poste) - "gls" (General Logistics Systems France) + // - "dpd" (DPD Group by GeoPost) - "bpost" (Belgian Post Group) - + // "colis prive" (Colis Privé) - "boxtal" (Boxtal) - "geodis" + // (GEODIS) - "tnt" (TNT) - "db schenker" (DB Schenker) - "aramex" + // (Aramex) Carrier string `json:"carrier,omitempty"` // CreationDate: Date on which the shipment has been created, in ISO @@ -6150,13 +5817,8 @@ type OrderShipment struct { // scheduling is needed. ScheduledDeliveryDetails *OrderShipmentScheduledDeliveryDetails `json:"scheduledDeliveryDetails,omitempty"` - // Status: The status of the shipment. - // - // Acceptable values are: - // - "delivered" - // - "readyForPickup" - // - "shipped" - // - "undeliverable" + // Status: The status of the shipment. Acceptable values are: - + // "delivered" - "readyForPickup" - "shipped" - "undeliverable" Status string `json:"status,omitempty"` // TrackingId: The tracking ID for the shipment. @@ -6298,11 +5960,8 @@ func (s *OrderinvoicesCreateChargeInvoiceRequest) MarshalJSON() ([]byte, error) } type OrderinvoicesCreateChargeInvoiceResponse struct { - // ExecutionStatus: The status of the execution. - // - // Acceptable values are: - // - "duplicate" - // - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: + // - "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed @@ -6381,11 +6040,8 @@ func (s *OrderinvoicesCreateRefundInvoiceRequest) MarshalJSON() ([]byte, error) } type OrderinvoicesCreateRefundInvoiceResponse struct { - // ExecutionStatus: The status of the execution. - // - // Acceptable values are: - // - "duplicate" - // - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: + // - "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed @@ -6424,53 +6080,28 @@ type OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption struct // Description: Optional description of the refund reason. Description string `json:"description,omitempty"` - // Reason: [required] Reason for the refund. - // - // Acceptable values are: - // - "adjustment" - // - "autoPostInternal" - // - "autoPostInvalidBillingAddress" - // - "autoPostNoInventory" - // - "autoPostPriceError" - // - "autoPostUndeliverableShippingAddress" - // - "couponAbuse" - // - "courtesyAdjustment" - // - "customerCanceled" - // - "customerDiscretionaryReturn" - // - "customerInitiatedMerchantCancel" - // - "customerSupportRequested" - // - "deliveredLateByCarrier" - // - "deliveredTooLate" - // - "expiredItem" - // - "failToPushOrderGoogleError" - // - "failToPushOrderMerchantError" - // - "failToPushOrderMerchantFulfillmentError" - // - "failToPushOrderToMerchant" - // - "failToPushOrderToMerchantOutOfStock" - // - "feeAdjustment" - // - "invalidCoupon" - // - "lateShipmentCredit" - // - "malformedShippingAddress" - // - "merchantDidNotShipOnTime" - // - "noInventory" - // - "orderTimeout" - // - "other" - // - "paymentAbuse" - // - "paymentDeclined" - // - "priceAdjustment" - // - "priceError" - // - "productArrivedDamaged" - // - "productNotAsDescribed" - // - "promoReallocation" - // - "qualityNotAsExpected" - // - "returnRefundAbuse" - // - "shippingCostAdjustment" - // - "shippingPriceError" - // - "taxAdjustment" - // - "taxError" - // - "undeliverableShippingAddress" - // - "unsupportedPoBoxAddress" - // - "wrongProductShipped" + // Reason: [required] Reason for the refund. Acceptable values are: - + // "adjustment" - "autoPostInternal" - + // "autoPostInvalidBillingAddress" - "autoPostNoInventory" - + // "autoPostPriceError" - "autoPostUndeliverableShippingAddress" - + // "couponAbuse" - "courtesyAdjustment" - "customerCanceled" - + // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" + // - "customerSupportRequested" - "deliveredLateByCarrier" - + // "deliveredTooLate" - "expiredItem" - + // "failToPushOrderGoogleError" - "failToPushOrderMerchantError" - + // "failToPushOrderMerchantFulfillmentError" - + // "failToPushOrderToMerchant" - + // "failToPushOrderToMerchantOutOfStock" - "feeAdjustment" - + // "invalidCoupon" - "lateShipmentCredit" - + // "malformedShippingAddress" - "merchantDidNotShipOnTime" - + // "noInventory" - "orderTimeout" - "other" - "paymentAbuse" - + // "paymentDeclined" - "priceAdjustment" - "priceError" - + // "productArrivedDamaged" - "productNotAsDescribed" - + // "promoReallocation" - "qualityNotAsExpected" - + // "returnRefundAbuse" - "shippingCostAdjustment" - + // "shippingPriceError" - "taxAdjustment" - "taxError" - + // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - + // "wrongProductShipped" Reason string `json:"reason,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to @@ -6500,22 +6131,13 @@ type OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption struct // Description: Optional description of the return reason. Description string `json:"description,omitempty"` - // Reason: [required] Reason for the return. - // - // Acceptable values are: - // - "customerDiscretionaryReturn" - // - "customerInitiatedMerchantCancel" - // - "deliveredTooLate" - // - "expiredItem" - // - "invalidCoupon" - // - "malformedShippingAddress" - // - "other" - // - "productArrivedDamaged" - // - "productNotAsDescribed" - // - "qualityNotAsExpected" - // - "undeliverableShippingAddress" - // - "unsupportedPoBoxAddress" - // - "wrongProductShipped" + // Reason: [required] Reason for the return. Acceptable values are: - + // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" + // - "deliveredTooLate" - "expiredItem" - "invalidCoupon" - + // "malformedShippingAddress" - "other" - "productArrivedDamaged" + // - "productNotAsDescribed" - "qualityNotAsExpected" - + // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - + // "wrongProductShipped" Reason string `json:"reason,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to @@ -6686,11 +6308,8 @@ func (s *OrdersAcknowledgeRequest) MarshalJSON() ([]byte, error) { } type OrdersAcknowledgeResponse struct { - // ExecutionStatus: The status of the execution. - // - // Acceptable values are: - // - "duplicate" - // - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: + // - "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed @@ -6787,19 +6406,11 @@ type OrdersCancelLineItemRequest struct { // Quantity: The quantity to cancel. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the cancellation. - // - // Acceptable values are: - // - "customerInitiatedCancel" - // - "invalidCoupon" - // - "malformedShippingAddress" - // - "noInventory" - // - "other" - // - "priceError" - // - "shippingPriceError" - // - "taxError" - // - "undeliverableShippingAddress" - // - "unsupportedPoBoxAddress" + // Reason: The reason for the cancellation. Acceptable values are: - + // "customerInitiatedCancel" - "invalidCoupon" - + // "malformedShippingAddress" - "noInventory" - "other" - + // "priceError" - "shippingPriceError" - "taxError" - + // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. @@ -6829,11 +6440,8 @@ func (s *OrdersCancelLineItemRequest) MarshalJSON() ([]byte, error) { } type OrdersCancelLineItemResponse struct { - // ExecutionStatus: The status of the execution. - // - // Acceptable values are: - // - "duplicate" - // - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: + // - "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed @@ -6873,19 +6481,11 @@ type OrdersCancelRequest struct { // for a given order. OperationId string `json:"operationId,omitempty"` - // Reason: The reason for the cancellation. - // - // Acceptable values are: - // - "customerInitiatedCancel" - // - "invalidCoupon" - // - "malformedShippingAddress" - // - "noInventory" - // - "other" - // - "priceError" - // - "shippingPriceError" - // - "taxError" - // - "undeliverableShippingAddress" - // - "unsupportedPoBoxAddress" + // Reason: The reason for the cancellation. Acceptable values are: - + // "customerInitiatedCancel" - "invalidCoupon" - + // "malformedShippingAddress" - "noInventory" - "other" - + // "priceError" - "shippingPriceError" - "taxError" - + // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. @@ -6915,11 +6515,8 @@ func (s *OrdersCancelRequest) MarshalJSON() ([]byte, error) { } type OrdersCancelResponse struct { - // ExecutionStatus: The status of the execution. - // - // Acceptable values are: - // - "duplicate" - // - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: + // - "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed @@ -6955,12 +6552,8 @@ func (s *OrdersCancelResponse) MarshalJSON() ([]byte, error) { } type OrdersCancelTestOrderByCustomerRequest struct { - // Reason: The reason for the cancellation. - // - // Acceptable values are: - // - "changedMind" - // - "orderedWrongItem" - // - "other" + // Reason: The reason for the cancellation. Acceptable values are: - + // "changedMind" - "orderedWrongItem" - "other" Reason string `json:"reason,omitempty"` // ForceSendFields is a list of field names (e.g. "Reason") to @@ -7019,26 +6612,17 @@ func (s *OrdersCancelTestOrderByCustomerResponse) MarshalJSON() ([]byte, error) } type OrdersCreateTestOrderRequest struct { - // Country: The CLDR territory code of the country of the test order to + // Country: The CLDR territory code of the country of the test order to // create. Affects the currency and addresses of orders created via - // `template_name`, or the addresses of orders created via - // `test_order`. - // - // Acceptable values are: - // - "US" - // - "FR" Defaults to `US`. + // `template_name`, or the addresses of orders created via `test_order`. + // Acceptable values are: - "US" - "FR" Defaults to `US`. Country string `json:"country,omitempty"` // TemplateName: The test order template to use. Specify as an // alternative to `testOrder` as a shortcut for retrieving a template - // and then creating an order using that template. - // - // Acceptable values are: - // - "template1" - // - "template1a" - // - "template1b" - // - "template2" - // - "template3" + // and then creating an order using that template. Acceptable values + // are: - "template1" - "template1a" - "template1b" - + // "template2" - "template3" TemplateName string `json:"templateName,omitempty"` // TestOrder: The test order to create. @@ -7211,24 +6795,13 @@ type OrdersCustomBatchRequestEntry struct { // `updateMerchantOrderId` and `getByMerchantOrderId` methods. MerchantOrderId string `json:"merchantOrderId,omitempty"` - // Method: The method of the batch entry. - // - // Acceptable values are: - // - "acknowledge" - // - "cancel" - // - "cancelLineItem" - // - "get" - // - "getByMerchantOrderId" - // - "inStoreRefundLineItem" - // - "refund" - // - "rejectReturnLineItem" - // - "returnLineItem" - // - "returnRefundLineItem" - // - "setLineItemMetadata" - // - "shipLineItems" - // - "updateLineItemShippingDetails" - // - "updateMerchantOrderId" - // - "updateShipment" + // Method: The method of the batch entry. Acceptable values are: - + // "acknowledge" - "cancel" - "cancelLineItem" - "get" - + // "getByMerchantOrderId" - "inStoreRefundLineItem" - "refund" - + // "rejectReturnLineItem" - "returnLineItem" - + // "returnRefundLineItem" - "setLineItemMetadata" - + // "shipLineItems" - "updateLineItemShippingDetails" - + // "updateMerchantOrderId" - "updateShipment" Method string `json:"method,omitempty"` // OperationId: The ID of the operation. Unique across all operations @@ -7289,19 +6862,11 @@ func (s *OrdersCustomBatchRequestEntry) MarshalJSON() ([]byte, error) { } type OrdersCustomBatchRequestEntryCancel struct { - // Reason: The reason for the cancellation. - // - // Acceptable values are: - // - "customerInitiatedCancel" - // - "invalidCoupon" - // - "malformedShippingAddress" - // - "noInventory" - // - "other" - // - "priceError" - // - "shippingPriceError" - // - "taxError" - // - "undeliverableShippingAddress" - // - "unsupportedPoBoxAddress" + // Reason: The reason for the cancellation. Acceptable values are: - + // "customerInitiatedCancel" - "invalidCoupon" - + // "malformedShippingAddress" - "noInventory" - "other" - + // "priceError" - "shippingPriceError" - "taxError" - + // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. @@ -7356,19 +6921,11 @@ type OrdersCustomBatchRequestEntryCancelLineItem struct { // Quantity: The quantity to cancel. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the cancellation. - // - // Acceptable values are: - // - "customerInitiatedCancel" - // - "invalidCoupon" - // - "malformedShippingAddress" - // - "noInventory" - // - "other" - // - "priceError" - // - "shippingPriceError" - // - "taxError" - // - "undeliverableShippingAddress" - // - "unsupportedPoBoxAddress" + // Reason: The reason for the cancellation. Acceptable values are: - + // "customerInitiatedCancel" - "invalidCoupon" - + // "malformedShippingAddress" - "noInventory" - "other" - + // "priceError" - "shippingPriceError" - "taxError" - + // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. @@ -7446,22 +7003,13 @@ type OrdersCustomBatchRequestEntryInStoreRefundLineItem struct { // Quantity: The quantity to return and refund. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the return. - // - // Acceptable values are: - // - "customerDiscretionaryReturn" - // - "customerInitiatedMerchantCancel" - // - "deliveredTooLate" - // - "expiredItem" - // - "invalidCoupon" - // - "malformedShippingAddress" - // - "other" - // - "productArrivedDamaged" - // - "productNotAsDescribed" - // - "qualityNotAsExpected" - // - "undeliverableShippingAddress" - // - "unsupportedPoBoxAddress" - // - "wrongProductShipped" + // Reason: The reason for the return. Acceptable values are: - + // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" + // - "deliveredTooLate" - "expiredItem" - "invalidCoupon" - + // "malformedShippingAddress" - "other" - "productArrivedDamaged" + // - "productNotAsDescribed" - "qualityNotAsExpected" - + // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - + // "wrongProductShipped" Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. @@ -7503,25 +7051,14 @@ type OrdersCustomBatchRequestEntryRefund struct { // Calculated automatically if not provided. AmountTax *Price `json:"amountTax,omitempty"` - // Reason: The reason for the refund. - // - // Acceptable values are: - // - "adjustment" - // - "courtesyAdjustment" - // - "customerCanceled" - // - "customerDiscretionaryReturn" - // - "deliveredLateByCarrier" - // - "feeAdjustment" - // - "lateShipmentCredit" - // - "noInventory" - // - "other" - // - "priceError" - // - "productArrivedDamaged" - // - "productNotAsDescribed" - // - "shippingCostAdjustment" - // - "taxAdjustment" - // - "undeliverableShippingAddress" - // - "wrongProductShipped" + // Reason: The reason for the refund. Acceptable values are: - + // "adjustment" - "courtesyAdjustment" - "customerCanceled" - + // "customerDiscretionaryReturn" - "deliveredLateByCarrier" - + // "feeAdjustment" - "lateShipmentCredit" - "noInventory" - + // "other" - "priceError" - "productArrivedDamaged" - + // "productNotAsDescribed" - "shippingCostAdjustment" - + // "taxAdjustment" - "undeliverableShippingAddress" - + // "wrongProductShipped" Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. @@ -7562,14 +7099,9 @@ type OrdersCustomBatchRequestEntryRejectReturnLineItem struct { // Quantity: The quantity to return and refund. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the return. - // - // Acceptable values are: - // - "damagedOrUsed" - // - "missingComponent" - // - "notEligible" - // - "other" - // - "outOfReturnWindow" + // Reason: The reason for the return. Acceptable values are: - + // "damagedOrUsed" - "missingComponent" - "notEligible" - + // "other" - "outOfReturnWindow" Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. @@ -7610,22 +7142,13 @@ type OrdersCustomBatchRequestEntryReturnLineItem struct { // Quantity: The quantity to return. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the return. - // - // Acceptable values are: - // - "customerDiscretionaryReturn" - // - "customerInitiatedMerchantCancel" - // - "deliveredTooLate" - // - "expiredItem" - // - "invalidCoupon" - // - "malformedShippingAddress" - // - "other" - // - "productArrivedDamaged" - // - "productNotAsDescribed" - // - "qualityNotAsExpected" - // - "undeliverableShippingAddress" - // - "unsupportedPoBoxAddress" - // - "wrongProductShipped" + // Reason: The reason for the return. Acceptable values are: - + // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" + // - "deliveredTooLate" - "expiredItem" - "invalidCoupon" - + // "malformedShippingAddress" - "other" - "productArrivedDamaged" + // - "productNotAsDescribed" - "qualityNotAsExpected" - + // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - + // "wrongProductShipped" Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. @@ -7675,22 +7198,13 @@ type OrdersCustomBatchRequestEntryReturnRefundLineItem struct { // Quantity: The quantity to return and refund. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the return. - // - // Acceptable values are: - // - "customerDiscretionaryReturn" - // - "customerInitiatedMerchantCancel" - // - "deliveredTooLate" - // - "expiredItem" - // - "invalidCoupon" - // - "malformedShippingAddress" - // - "other" - // - "productArrivedDamaged" - // - "productNotAsDescribed" - // - "qualityNotAsExpected" - // - "undeliverableShippingAddress" - // - "unsupportedPoBoxAddress" - // - "wrongProductShipped" + // Reason: The reason for the return. Acceptable values are: - + // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" + // - "deliveredTooLate" - "expiredItem" - "invalidCoupon" - + // "malformedShippingAddress" - "other" - "productArrivedDamaged" + // - "productNotAsDescribed" - "qualityNotAsExpected" - + // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - + // "wrongProductShipped" Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. @@ -7756,7 +7270,7 @@ func (s *OrdersCustomBatchRequestEntrySetLineItemMetadata) MarshalJSON() ([]byte type OrdersCustomBatchRequestEntryShipLineItems struct { // Carrier: Deprecated. Please use shipmentInfo instead. The carrier - // handling the shipment. See `shipments[].carrier` in the Orders + // handling the shipment. See `shipments[].carrier` in the Orders // resource representation for a list of acceptable values. Carrier string `json:"carrier,omitempty"` @@ -7805,7 +7319,7 @@ func (s *OrdersCustomBatchRequestEntryShipLineItems) MarshalJSON() ([]byte, erro type OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo struct { // Carrier: The carrier handling the shipment. See `shipments[].carrier` - // in the Orders resource representation for a list of acceptable + // in the Orders resource representation for a list of acceptable // values. Carrier string `json:"carrier,omitempty"` @@ -7841,10 +7355,8 @@ func (s *OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo) MarshalJSON() ( type OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails struct { // DeliverByDate: Updated delivery by date, in ISO 8601 format. If not - // specified only ship by date is updated. - // - // Provided date should be within 1 year timeframe and can not be a date - // in the past. + // specified only ship by date is updated. Provided date should be + // within 1 year timeframe and can not be a date in the past. DeliverByDate string `json:"deliverByDate,omitempty"` // LineItemId: The ID of the line item to set metadata. Either @@ -7857,10 +7369,8 @@ type OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails struct { ProductId string `json:"productId,omitempty"` // ShipByDate: Updated ship by date, in ISO 8601 format. If not - // specified only deliver by date is updated. - // - // Provided date should be within 1 year timeframe and can not be a date - // in the past. + // specified only deliver by date is updated. Provided date should be + // within 1 year timeframe and can not be a date in the past. ShipByDate string `json:"shipByDate,omitempty"` // ForceSendFields is a list of field names (e.g. "DeliverByDate") to @@ -7888,8 +7398,8 @@ func (s *OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails) MarshalJSON type OrdersCustomBatchRequestEntryUpdateShipment struct { // Carrier: The carrier handling the shipment. Not updated if missing. - // See `shipments[].carrier` in the Orders resource representation for - // a list of acceptable values. + // See `shipments[].carrier` in the Orders resource representation for a + // list of acceptable values. Carrier string `json:"carrier,omitempty"` // DeliveryDate: Date on which the shipment has been delivered, in ISO @@ -7900,13 +7410,9 @@ type OrdersCustomBatchRequestEntryUpdateShipment struct { // ShipmentId: The ID of the shipment. ShipmentId string `json:"shipmentId,omitempty"` - // Status: New status for the shipment. Not updated if - // missing. - // - // Acceptable values are: - // - "delivered" - // - "undeliverable" - // - "readyForPickup" + // Status: New status for the shipment. Not updated if missing. + // Acceptable values are: - "delivered" - "undeliverable" - + // "readyForPickup" Status string `json:"status,omitempty"` // TrackingId: The tracking ID for the shipment. Not updated if missing. @@ -7977,14 +7483,10 @@ type OrdersCustomBatchResponseEntry struct { // Errors: A list of errors defined if and only if the request failed. Errors *Errors `json:"errors,omitempty"` - // ExecutionStatus: The status of the execution. Only defined if - // - the request was successful; and - // - the method is not `get`, `getByMerchantOrderId`, or one of the test - // methods. - // - // Acceptable values are: - // - "duplicate" - // - "executed" + // ExecutionStatus: The status of the execution. Only defined if 1. the + // request was successful; and 2. the method is not `get`, + // `getByMerchantOrderId`, or one of the test methods. Acceptable values + // are: - "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed @@ -8111,22 +7613,13 @@ type OrdersInStoreRefundLineItemRequest struct { // Quantity: The quantity to return and refund. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the return. - // - // Acceptable values are: - // - "customerDiscretionaryReturn" - // - "customerInitiatedMerchantCancel" - // - "deliveredTooLate" - // - "expiredItem" - // - "invalidCoupon" - // - "malformedShippingAddress" - // - "other" - // - "productArrivedDamaged" - // - "productNotAsDescribed" - // - "qualityNotAsExpected" - // - "undeliverableShippingAddress" - // - "unsupportedPoBoxAddress" - // - "wrongProductShipped" + // Reason: The reason for the return. Acceptable values are: - + // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" + // - "deliveredTooLate" - "expiredItem" - "invalidCoupon" - + // "malformedShippingAddress" - "other" - "productArrivedDamaged" + // - "productNotAsDescribed" - "qualityNotAsExpected" - + // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - + // "wrongProductShipped" Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. @@ -8156,11 +7649,8 @@ func (s *OrdersInStoreRefundLineItemRequest) MarshalJSON() ([]byte, error) { } type OrdersInStoreRefundLineItemResponse struct { - // ExecutionStatus: The status of the execution. - // - // Acceptable values are: - // - "duplicate" - // - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: + // - "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed @@ -8250,25 +7740,14 @@ type OrdersRefundRequest struct { // for a given order. OperationId string `json:"operationId,omitempty"` - // Reason: The reason for the refund. - // - // Acceptable values are: - // - "adjustment" - // - "courtesyAdjustment" - // - "customerCanceled" - // - "customerDiscretionaryReturn" - // - "deliveredLateByCarrier" - // - "feeAdjustment" - // - "lateShipmentCredit" - // - "noInventory" - // - "other" - // - "priceError" - // - "productArrivedDamaged" - // - "productNotAsDescribed" - // - "shippingCostAdjustment" - // - "taxAdjustment" - // - "undeliverableShippingAddress" - // - "wrongProductShipped" + // Reason: The reason for the refund. Acceptable values are: - + // "adjustment" - "courtesyAdjustment" - "customerCanceled" - + // "customerDiscretionaryReturn" - "deliveredLateByCarrier" - + // "feeAdjustment" - "lateShipmentCredit" - "noInventory" - + // "other" - "priceError" - "productArrivedDamaged" - + // "productNotAsDescribed" - "shippingCostAdjustment" - + // "taxAdjustment" - "undeliverableShippingAddress" - + // "wrongProductShipped" Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. @@ -8298,11 +7777,8 @@ func (s *OrdersRefundRequest) MarshalJSON() ([]byte, error) { } type OrdersRefundResponse struct { - // ExecutionStatus: The status of the execution. - // - // Acceptable values are: - // - "duplicate" - // - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: + // - "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed @@ -8353,14 +7829,9 @@ type OrdersRejectReturnLineItemRequest struct { // Quantity: The quantity to return and refund. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the return. - // - // Acceptable values are: - // - "damagedOrUsed" - // - "missingComponent" - // - "notEligible" - // - "other" - // - "outOfReturnWindow" + // Reason: The reason for the return. Acceptable values are: - + // "damagedOrUsed" - "missingComponent" - "notEligible" - + // "other" - "outOfReturnWindow" Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. @@ -8390,11 +7861,8 @@ func (s *OrdersRejectReturnLineItemRequest) MarshalJSON() ([]byte, error) { } type OrdersRejectReturnLineItemResponse struct { - // ExecutionStatus: The status of the execution. - // - // Acceptable values are: - // - "duplicate" - // - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: + // - "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed @@ -8445,22 +7913,13 @@ type OrdersReturnLineItemRequest struct { // Quantity: The quantity to return. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the return. - // - // Acceptable values are: - // - "customerDiscretionaryReturn" - // - "customerInitiatedMerchantCancel" - // - "deliveredTooLate" - // - "expiredItem" - // - "invalidCoupon" - // - "malformedShippingAddress" - // - "other" - // - "productArrivedDamaged" - // - "productNotAsDescribed" - // - "qualityNotAsExpected" - // - "undeliverableShippingAddress" - // - "unsupportedPoBoxAddress" - // - "wrongProductShipped" + // Reason: The reason for the return. Acceptable values are: - + // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" + // - "deliveredTooLate" - "expiredItem" - "invalidCoupon" - + // "malformedShippingAddress" - "other" - "productArrivedDamaged" + // - "productNotAsDescribed" - "qualityNotAsExpected" - + // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - + // "wrongProductShipped" Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. @@ -8490,11 +7949,8 @@ func (s *OrdersReturnLineItemRequest) MarshalJSON() ([]byte, error) { } type OrdersReturnLineItemResponse struct { - // ExecutionStatus: The status of the execution. - // - // Acceptable values are: - // - "duplicate" - // - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: + // - "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed @@ -8554,22 +8010,13 @@ type OrdersReturnRefundLineItemRequest struct { // Quantity: The quantity to return and refund. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the return. - // - // Acceptable values are: - // - "customerDiscretionaryReturn" - // - "customerInitiatedMerchantCancel" - // - "deliveredTooLate" - // - "expiredItem" - // - "invalidCoupon" - // - "malformedShippingAddress" - // - "other" - // - "productArrivedDamaged" - // - "productNotAsDescribed" - // - "qualityNotAsExpected" - // - "undeliverableShippingAddress" - // - "unsupportedPoBoxAddress" - // - "wrongProductShipped" + // Reason: The reason for the return. Acceptable values are: - + // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" + // - "deliveredTooLate" - "expiredItem" - "invalidCoupon" - + // "malformedShippingAddress" - "other" - "productArrivedDamaged" + // - "productNotAsDescribed" - "qualityNotAsExpected" - + // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - + // "wrongProductShipped" Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. @@ -8599,11 +8046,8 @@ func (s *OrdersReturnRefundLineItemRequest) MarshalJSON() ([]byte, error) { } type OrdersReturnRefundLineItemResponse struct { - // ExecutionStatus: The status of the execution. - // - // Acceptable values are: - // - "duplicate" - // - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: + // - "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed @@ -8678,11 +8122,8 @@ func (s *OrdersSetLineItemMetadataRequest) MarshalJSON() ([]byte, error) { } type OrdersSetLineItemMetadataResponse struct { - // ExecutionStatus: The status of the execution. - // - // Acceptable values are: - // - "duplicate" - // - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: + // - "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed @@ -8719,7 +8160,7 @@ func (s *OrdersSetLineItemMetadataResponse) MarshalJSON() ([]byte, error) { type OrdersShipLineItemsRequest struct { // Carrier: Deprecated. Please use shipmentInfo instead. The carrier - // handling the shipment. See `shipments[].carrier` in the Orders + // handling the shipment. See `shipments[].carrier` in the Orders // resource representation for a list of acceptable values. Carrier string `json:"carrier,omitempty"` @@ -8771,11 +8212,8 @@ func (s *OrdersShipLineItemsRequest) MarshalJSON() ([]byte, error) { } type OrdersShipLineItemsResponse struct { - // ExecutionStatus: The status of the execution. - // - // Acceptable values are: - // - "duplicate" - // - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: + // - "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed @@ -8812,10 +8250,8 @@ func (s *OrdersShipLineItemsResponse) MarshalJSON() ([]byte, error) { type OrdersUpdateLineItemShippingDetailsRequest struct { // DeliverByDate: Updated delivery by date, in ISO 8601 format. If not - // specified only ship by date is updated. - // - // Provided date should be within 1 year timeframe and can not be a date - // in the past. + // specified only ship by date is updated. Provided date should be + // within 1 year timeframe and can not be a date in the past. DeliverByDate string `json:"deliverByDate,omitempty"` // LineItemId: The ID of the line item to set metadata. Either @@ -8832,10 +8268,8 @@ type OrdersUpdateLineItemShippingDetailsRequest struct { ProductId string `json:"productId,omitempty"` // ShipByDate: Updated ship by date, in ISO 8601 format. If not - // specified only deliver by date is updated. - // - // Provided date should be within 1 year timeframe and can not be a date - // in the past. + // specified only deliver by date is updated. Provided date should be + // within 1 year timeframe and can not be a date in the past. ShipByDate string `json:"shipByDate,omitempty"` // ForceSendFields is a list of field names (e.g. "DeliverByDate") to @@ -8862,11 +8296,8 @@ func (s *OrdersUpdateLineItemShippingDetailsRequest) MarshalJSON() ([]byte, erro } type OrdersUpdateLineItemShippingDetailsResponse struct { - // ExecutionStatus: The status of the execution. - // - // Acceptable values are: - // - "duplicate" - // - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: + // - "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed @@ -8935,11 +8366,8 @@ func (s *OrdersUpdateMerchantOrderIdRequest) MarshalJSON() ([]byte, error) { } type OrdersUpdateMerchantOrderIdResponse struct { - // ExecutionStatus: The status of the execution. - // - // Acceptable values are: - // - "duplicate" - // - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: + // - "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed @@ -8976,8 +8404,8 @@ func (s *OrdersUpdateMerchantOrderIdResponse) MarshalJSON() ([]byte, error) { type OrdersUpdateShipmentRequest struct { // Carrier: The carrier handling the shipment. Not updated if missing. - // See `shipments[].carrier` in the Orders resource representation for - // a list of acceptable values. + // See `shipments[].carrier` in the Orders resource representation for a + // list of acceptable values. Carrier string `json:"carrier,omitempty"` // DeliveryDate: Date on which the shipment has been delivered, in ISO @@ -8992,13 +8420,9 @@ type OrdersUpdateShipmentRequest struct { // ShipmentId: The ID of the shipment. ShipmentId string `json:"shipmentId,omitempty"` - // Status: New status for the shipment. Not updated if - // missing. - // - // Acceptable values are: - // - "delivered" - // - "undeliverable" - // - "readyForPickup" + // Status: New status for the shipment. Not updated if missing. + // Acceptable values are: - "delivered" - "undeliverable" - + // "readyForPickup" Status string `json:"status,omitempty"` // TrackingId: The tracking ID for the shipment. Not updated if missing. @@ -9028,11 +8452,8 @@ func (s *OrdersUpdateShipmentRequest) MarshalJSON() ([]byte, error) { } type OrdersUpdateShipmentResponse struct { - // ExecutionStatus: The status of the execution. - // - // Acceptable values are: - // - "duplicate" - // - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: + // - "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed @@ -9165,33 +8586,27 @@ type PosCustomBatchRequestEntry struct { // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` - // Inventory: The inventory to submit. Set this only if the method is - // `inventory`. + // Inventory: The inventory to submit. This should be set only if the + // method is `inventory`. Inventory *PosInventory `json:"inventory,omitempty"` // MerchantId: The ID of the POS data provider. MerchantId uint64 `json:"merchantId,omitempty,string"` - // Method: The method of the batch entry. - // - // Acceptable values are: - // - "delete" - // - "get" - // - "insert" - // - "inventory" - // - "sale" + // Method: The method of the batch entry. Acceptable values are: - + // "delete" - "get" - "insert" - "inventory" - "sale" Method string `json:"method,omitempty"` - // Sale: The sale information to submit. Set this only if the method is - // `sale`. + // Sale: The sale information to submit. This should be set only if the + // method is `sale`. Sale *PosSale `json:"sale,omitempty"` - // Store: The store information to submit. Set this only if the method - // is `insert`. + // Store: The store information to submit. This should be set only if + // the method is `insert`. Store *PosStore `json:"store,omitempty"` - // StoreCode: The store code. Set this only if the method is `delete` or - // `get`. + // StoreCode: The store code. This should be set only if the method is + // `delete` or `get`. StoreCode string `json:"storeCode,omitempty"` // TargetMerchantId: The ID of the account for which to get/submit data. @@ -9893,16 +9308,13 @@ func (s *Price) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Product: Required product attributes are primarily defined by the -// products data specification. See the Products Data Specification -// Help Center article for information. -// -// Some attributes are country-specific, so make sure you select the -// appropriate country in the drop-down selector at the top of the page. -// -// -// Product data. After inserting, updating, or deleting a product, it -// may take several minutes before changes take effect. +// Product: Required product attributes are primarily defined by the +// products data specification. See the Products Data Specification Help +// Center article for information. Some attributes are country-specific, +// so make sure you select the appropriate country in the drop-down +// selector at the top of the page. Product data. After inserting, +// updating, or deleting a product, it may take several minutes before +// changes take effect. type Product struct { // AdditionalImageLinks: Additional URLs of images of the item. AdditionalImageLinks []string `json:"additionalImageLinks,omitempty"` @@ -9911,7 +9323,7 @@ type Product struct { // as in products data specification). AdditionalProductTypes []string `json:"additionalProductTypes,omitempty"` - // Adult: Set to true if the item is targeted towards adults. + // Adult: Should be set to true if the item is targeted towards adults. Adult bool `json:"adult,omitempty"` // AdwordsGrouping: Used to group items in an arbitrary way. Only for @@ -9925,26 +9337,16 @@ type Product struct { // product is shown within the context of Product Ads. AdwordsRedirect string `json:"adwordsRedirect,omitempty"` - // AgeGroup: Target age group of the item. - // - // Acceptable values are: - // - "adult" - // - "infant" - // - "kids" - // - "newborn" - // - "toddler" - // - "youngAdult" + // AgeGroup: Target age group of the item. Acceptable values are: - + // "adult" - "infant" - "kids" - "newborn" - "toddler" - + // "youngAdult" AgeGroup string `json:"ageGroup,omitempty"` // Aspects: Deprecated. Do not use. Aspects []*ProductAspect `json:"aspects,omitempty"` - // Availability: Availability status of the item. - // - // Acceptable values are: - // - "in stock" - // - "out of stock" - // - "preorder" + // Availability: Availability status of the item. Acceptable values are: + // - "in stock" - "out of stock" - "preorder" Availability string `json:"availability,omitempty"` // AvailabilityDate: The day a pre-ordered product becomes available for @@ -9958,21 +9360,15 @@ type Product struct { // page. CanonicalLink string `json:"canonicalLink,omitempty"` - // Channel: Required. The item's channel (online or local). - // - // Acceptable values are: - // - "local" - // - "online" + // Channel: Required. The item's channel (online or local). Acceptable + // values are: - "local" - "online" Channel string `json:"channel,omitempty"` // Color: Color of the item. Color string `json:"color,omitempty"` - // Condition: Condition or state of the item. - // - // Acceptable values are: - // - "local" - // - "online" + // Condition: Condition or state of the item. Acceptable values are: - + // "local" - "online" Condition string `json:"condition,omitempty"` // ContentLanguage: Required. The two-letter ISO 639-1 language code for @@ -9987,7 +9383,7 @@ type Product struct { // specification in its generic form (e.g., `{ "name": "size type", // "value": "regular" }`). This is useful for submitting attributes not // explicitly exposed by the API, such as additional attributes used for - // Shopping Actions. + // Buy on Google (formerly known as Shopping Actions). CustomAttributes []*CustomAttribute `json:"customAttributes,omitempty"` // CustomGroups: A list of custom (merchant-provided) custom attribute @@ -10038,19 +9434,8 @@ type Product struct { DisplayAdsValue float64 `json:"displayAdsValue,omitempty"` // EnergyEfficiencyClass: The energy efficiency class as defined in EU - // directive 2010/30/EU. - // - // Acceptable values are: - // - "A" - // - "A+" - // - "A++" - // - "A+++" - // - "B" - // - "C" - // - "D" - // - "E" - // - "F" - // - "G" + // directive 2010/30/EU. Acceptable values are: - "A" - "A+" - + // "A++" - "A+++" - "B" - "C" - "D" - "E" - "F" - "G" EnergyEfficiencyClass string `json:"energyEfficiencyClass,omitempty"` // ExpirationDate: Date on which the item should expire, as specified @@ -10060,12 +9445,8 @@ type Product struct { // too far in the future. ExpirationDate string `json:"expirationDate,omitempty"` - // Gender: Target gender of the item. - // - // Acceptable values are: - // - "female" - // - "male" - // - "unisex" + // Gender: Target gender of the item. Acceptable values are: - + // "female" - "male" - "unisex" Gender string `json:"gender,omitempty"` // GoogleProductCategory: Google's category of the item (see Google @@ -10076,9 +9457,9 @@ type Product struct { Gtin string `json:"gtin,omitempty"` // Id: The REST ID of the product. Content API methods that operate on - // products take this as their `productId` parameter. - // The REST ID for a product is of the form - // channel:contentLanguage:targetCountry: offerId. + // products take this as their `productId` parameter. The REST ID for a + // product is of the form channel:contentLanguage: targetCountry: + // offerId. Id string `json:"id,omitempty"` // IdentifierExists: False when the item does not have unique product @@ -10116,38 +9497,16 @@ type Product struct { Material string `json:"material,omitempty"` // MaxEnergyEfficiencyClass: The energy efficiency class as defined in - // EU directive 2010/30/EU. - // - // Acceptable values are: - // - "A" - // - "A+" - // - "A++" - // - "A+++" - // - "B" - // - "C" - // - "D" - // - "E" - // - "F" - // - "G" + // EU directive 2010/30/EU. Acceptable values are: - "A" - "A+" - + // "A++" - "A+++" - "B" - "C" - "D" - "E" - "F" - "G" MaxEnergyEfficiencyClass string `json:"maxEnergyEfficiencyClass,omitempty"` // MaxHandlingTime: Maximal product handling time (in business days). MaxHandlingTime int64 `json:"maxHandlingTime,omitempty,string"` // MinEnergyEfficiencyClass: The energy efficiency class as defined in - // EU directive 2010/30/EU. - // - // Acceptable values are: - // - "A" - // - "A+" - // - "A++" - // - "A+++" - // - "B" - // - "C" - // - "D" - // - "E" - // - "F" - // - "G" + // EU directive 2010/30/EU. Acceptable values are: - "A" - "A+" - + // "A++" - "A+++" - "B" - "C" - "D" - "E" - "F" - "G" MinEnergyEfficiencyClass string `json:"minEnergyEfficiencyClass,omitempty"` // MinHandlingTime: Minimal product handling time (in business days). @@ -10168,9 +9527,8 @@ type Product struct { // trailing whitespaces are stripped and multiple whitespaces are // replaced by a single whitespace upon submission. Only valid unicode // characters are accepted. See the products feed specification for - // details. - // Note: Content API methods that operate on products take the REST ID - // of the product, not this identifier. + // details. *Note:* Content API methods that operate on products take + // the REST ID of the product, *not* this identifier. OfferId string `json:"offerId,omitempty"` // OnlineOnly: Deprecated. @@ -10193,7 +9551,7 @@ type Product struct { SalePrice *Price `json:"salePrice,omitempty"` // SalePriceEffectiveDate: Date range during which the item is on sale - // (see products data specification). + // (see products data specification ). SalePriceEffectiveDate string `json:"salePriceEffectiveDate,omitempty"` // SellOnGoogleQuantity: The quantity of the product that is available @@ -10220,32 +9578,14 @@ type Product struct { ShippingWidth *ProductShippingDimension `json:"shippingWidth,omitempty"` // SizeSystem: System in which the size is specified. Recommended for - // apparel items. - // - // Acceptable values are: - // - "AU" - // - "BR" - // - "CN" - // - "DE" - // - "EU" - // - "FR" - // - "IT" - // - "JP" - // - "MEX" - // - "UK" - // - "US" + // apparel items. Acceptable values are: - "AU" - "BR" - "CN" - + // "DE" - "EU" - "FR" - "IT" - "JP" - "MEX" - "UK" - + // "US" SizeSystem string `json:"sizeSystem,omitempty"` - // SizeType: The cut of the item. Recommended for apparel - // items. - // - // Acceptable values are: - // - "big and tall" - // - "maternity" - // - "oversize" - // - "petite" - // - "plus" - // - "regular" + // SizeType: The cut of the item. Recommended for apparel items. + // Acceptable values are: - "big and tall" - "maternity" - + // "oversize" - "petite" - "plus" - "regular" SizeType string `json:"sizeType,omitempty"` // Sizes: Size of the item. Only one value is allowed. For variants with @@ -10253,13 +9593,8 @@ type Product struct { // same `itemGroupId` value (see size definition). Sizes []string `json:"sizes,omitempty"` - // Source: The source of the offer, i.e., how the offer was - // created. - // - // Acceptable values are: - // - "api" - // - "crawl" - // - "feed" + // Source: The source of the offer, i.e., how the offer was created. + // Acceptable values are: - "api" - "crawl" - "feed" Source string `json:"source,omitempty"` // TargetCountry: Required. The CLDR territory code for the item. @@ -10400,13 +9735,8 @@ type ProductDestination struct { DestinationName string `json:"destinationName,omitempty"` // Intention: Whether the destination is required, excluded or should be - // validated. - // - // Acceptable values are: - // - "default" - // - "excluded" - // - "optional" - // - "required" + // validated. Acceptable values are: - "default" - "excluded" - + // "optional" - "required" Intention string `json:"intention,omitempty"` // ForceSendFields is a list of field names (e.g. "DestinationName") to @@ -10689,24 +10019,16 @@ type ProductStatusDestinationStatus struct { // further processing. ApprovalPending bool `json:"approvalPending,omitempty"` - // ApprovalStatus: The destination's approval status. - // - // Acceptable values are: - // - "approved" - // - "disapproved" + // ApprovalStatus: The destination's approval status. Acceptable values + // are: - "approved" - "disapproved" ApprovalStatus string `json:"approvalStatus,omitempty"` // Destination: The name of the destination Destination string `json:"destination,omitempty"` // Intention: Provided for backward compatibility only. Always set to - // "required". - // - // Acceptable values are: - // - "default" - // - "excluded" - // - "optional" - // - "required" + // "required". Acceptable values are: - "default" - "excluded" - + // "optional" - "required" Intention string `json:"intention,omitempty"` // ForceSendFields is a list of field names (e.g. "ApprovalPending") to @@ -10804,7 +10126,7 @@ type ProductTax struct { // Region: The geographic region to which the tax rate applies. Region string `json:"region,omitempty"` - // TaxShip: Set to true if tax is charged on shipping. + // TaxShip: Should be set to true if tax is charged on shipping. TaxShip bool `json:"taxShip,omitempty"` // ForceSendFields is a list of field names (e.g. "Country") to @@ -10954,12 +10276,8 @@ type ProductsCustomBatchRequestEntry struct { // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` - // Method: The method of the batch entry. - // - // Acceptable values are: - // - "delete" - // - "get" - // - "insert" + // Method: The method of the batch entry. Acceptable values are: - + // "delete" - "get" - "insert" Method string `json:"method,omitempty"` // Product: The product to insert. Only required if the method is @@ -11148,10 +10466,8 @@ type ProductstatusesCustomBatchRequestEntry struct { // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` - // Method: The method of the batch entry. - // - // Acceptable values are: - // - "get" + // Method: The method of the batch entry. Acceptable values are: - + // "get" Method string `json:"method,omitempty"` // ProductId: The ID of the product whose status to get. @@ -11382,53 +10698,28 @@ type RefundReason struct { // Description: Description of the reason. Description string `json:"description,omitempty"` - // ReasonCode: Code of the refund reason. - // - // Acceptable values are: - // - "adjustment" - // - "autoPostInternal" - // - "autoPostInvalidBillingAddress" - // - "autoPostNoInventory" - // - "autoPostPriceError" - // - "autoPostUndeliverableShippingAddress" - // - "couponAbuse" - // - "courtesyAdjustment" - // - "customerCanceled" - // - "customerDiscretionaryReturn" - // - "customerInitiatedMerchantCancel" - // - "customerSupportRequested" - // - "deliveredLateByCarrier" - // - "deliveredTooLate" - // - "expiredItem" - // - "failToPushOrderGoogleError" - // - "failToPushOrderMerchantError" - // - "failToPushOrderMerchantFulfillmentError" - // - "failToPushOrderToMerchant" - // - "failToPushOrderToMerchantOutOfStock" - // - "feeAdjustment" - // - "invalidCoupon" - // - "lateShipmentCredit" - // - "malformedShippingAddress" - // - "merchantDidNotShipOnTime" - // - "noInventory" - // - "orderTimeout" - // - "other" - // - "paymentAbuse" - // - "paymentDeclined" - // - "priceAdjustment" - // - "priceError" - // - "productArrivedDamaged" - // - "productNotAsDescribed" - // - "promoReallocation" - // - "qualityNotAsExpected" - // - "returnRefundAbuse" - // - "shippingCostAdjustment" - // - "shippingPriceError" - // - "taxAdjustment" - // - "taxError" - // - "undeliverableShippingAddress" - // - "unsupportedPoBoxAddress" - // - "wrongProductShipped" + // ReasonCode: Code of the refund reason. Acceptable values are: - + // "adjustment" - "autoPostInternal" - + // "autoPostInvalidBillingAddress" - "autoPostNoInventory" - + // "autoPostPriceError" - "autoPostUndeliverableShippingAddress" - + // "couponAbuse" - "courtesyAdjustment" - "customerCanceled" - + // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" + // - "customerSupportRequested" - "deliveredLateByCarrier" - + // "deliveredTooLate" - "expiredItem" - + // "failToPushOrderGoogleError" - "failToPushOrderMerchantError" - + // "failToPushOrderMerchantFulfillmentError" - + // "failToPushOrderToMerchant" - + // "failToPushOrderToMerchantOutOfStock" - "feeAdjustment" - + // "invalidCoupon" - "lateShipmentCredit" - + // "malformedShippingAddress" - "merchantDidNotShipOnTime" - + // "noInventory" - "orderTimeout" - "other" - "paymentAbuse" - + // "paymentDeclined" - "priceAdjustment" - "priceError" - + // "productArrivedDamaged" - "productNotAsDescribed" - + // "promoReallocation" - "qualityNotAsExpected" - + // "returnRefundAbuse" - "shippingCostAdjustment" - + // "shippingPriceError" - "taxAdjustment" - "taxError" - + // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - + // "wrongProductShipped" ReasonCode string `json:"reasonCode,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to @@ -11463,12 +10754,8 @@ type ReturnShipment struct { // format. DeliveryDate string `json:"deliveryDate,omitempty"` - // ReturnMethodType: Type of the return method. - // - // Acceptable values are: - // - "byMail" - // - "contactCustomerSupport" - // - "returnless" + // ReturnMethodType: Type of the return method. Acceptable values are: - + // "byMail" - "contactCustomerSupport" - "returnless" ReturnMethodType string `json:"returnMethodType,omitempty"` // ShipmentId: Shipment ID generated by Google. @@ -11483,14 +10770,8 @@ type ReturnShipment struct { // format. ShippingDate string `json:"shippingDate,omitempty"` - // State: State of the shipment. - // - // Acceptable values are: - // - "completed" - // - "new" - // - "shipped" - // - "undeliverable" - // - "pending" + // State: State of the shipment. Acceptable values are: - "completed" + // - "new" - "shipped" - "undeliverable" - "pending" State string `json:"state,omitempty"` // ForceSendFields is a list of field names (e.g. "CreationDate") to @@ -11562,12 +10843,9 @@ type Service struct { // delivery of the product. Required. DeliveryTime *DeliveryTime `json:"deliveryTime,omitempty"` - // Eligibility: Eligibility for this service. - // - // Acceptable values are: - // - "All scenarios" - // - "All scenarios except Shopping Actions" - // - "Shopping Actions" + // Eligibility: Eligibility for this service. Acceptable values are: - + // "All scenarios" - "All scenarios except Shopping Actions" - + // "Shopping Actions" Eligibility string `json:"eligibility,omitempty"` // MinimumOrderValue: Minimum order value for this service. If set, @@ -11597,12 +10875,8 @@ type Service struct { // overlap. RateGroups []*RateGroup `json:"rateGroups,omitempty"` - // ShipmentType: Type of locations this service ships orders - // to. - // - // Acceptable values are: - // - "delivery" - // - "pickup" + // ShipmentType: Type of locations this service ships orders to. + // Acceptable values are: - "delivery" - "pickup" ShipmentType string `json:"shipmentType,omitempty"` // ForceSendFields is a list of field names (e.g. "Active") to @@ -11707,39 +10981,14 @@ func (s *ShipmentInvoiceLineItemInvoice) MarshalJSON() ([]byte, error) { } type ShipmentTrackingInfo struct { - // Carrier: The shipping carrier that handles the package. - // - // Acceptable values are: - // - "boxtal" - // - "bpost" - // - "chronopost" - // - "colisPrive" - // - "colissimo" - // - "cxt" - // - "deliv" - // - "dhl" - // - "dpd" - // - "dynamex" - // - "eCourier" - // - "easypost" - // - "efw" - // - "fedex" - // - "fedexSmartpost" - // - "geodis" - // - "gls" - // - "googleCourier" - // - "gsx" - // - "jdLogistics" - // - "laPoste" - // - "lasership" - // - "manual" - // - "mpx" - // - "onTrac" - // - "other" - // - "tnt" - // - "uds" - // - "ups" - // - "usps" + // Carrier: The shipping carrier that handles the package. Acceptable + // values are: - "boxtal" - "bpost" - "chronopost" - + // "colisPrive" - "colissimo" - "cxt" - "deliv" - "dhl" - + // "dpd" - "dynamex" - "eCourier" - "easypost" - "efw" - + // "fedex" - "fedexSmartpost" - "geodis" - "gls" - + // "googleCourier" - "gsx" - "jdLogistics" - "laPoste" - + // "lasership" - "manual" - "mpx" - "onTrac" - "other" - + // "tnt" - "uds" - "ups" - "usps" Carrier string `json:"carrier,omitempty"` // TrackingNumber: The tracking number for the package. @@ -11851,11 +11100,8 @@ type ShippingsettingsCustomBatchRequestEntry struct { // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` - // Method: The method of the batch entry. - // - // Acceptable values are: - // - "get" - // - "update" + // Method: The method of the batch entry. Acceptable values are: - + // "get" - "update" Method string `json:"method,omitempty"` // ShippingSettings: The account shipping settings to update. Only @@ -12165,22 +11411,13 @@ type TestOrder struct { PaymentMethod *TestOrderPaymentMethod `json:"paymentMethod,omitempty"` // PredefinedDeliveryAddress: Required. Identifier of one of the - // predefined delivery addresses for the delivery. - // - // Acceptable values are: - // - "dwight" - // - "jim" - // - "pam" + // predefined delivery addresses for the delivery. Acceptable values + // are: - "dwight" - "jim" - "pam" PredefinedDeliveryAddress string `json:"predefinedDeliveryAddress,omitempty"` // PredefinedPickupDetails: Identifier of one of the predefined pickup // details. Required for orders containing line items with shipping type - // `pickup`. - // - // Acceptable values are: - // - "dwight" - // - "jim" - // - "pam" + // `pickup`. Acceptable values are: - "dwight" - "jim" - "pam" PredefinedPickupDetails string `json:"predefinedPickupDetails,omitempty"` // Promotions: Deprecated. Ignored if provided. @@ -12196,15 +11433,9 @@ type TestOrder struct { // ShippingCostTax: Deprecated. Ignored if provided. ShippingCostTax *Price `json:"shippingCostTax,omitempty"` - // ShippingOption: Required. The requested shipping option. - // - // Acceptable values are: - // - "economy" - // - "expedited" - // - "oneDay" - // - "sameDay" - // - "standard" - // - "twoDay" + // ShippingOption: Required. The requested shipping option. Acceptable + // values are: - "economy" - "expedited" - "oneDay" - "sameDay" + // - "standard" - "twoDay" ShippingOption string `json:"shippingOption,omitempty"` // ForceSendFields is a list of field names (e.g. "Customer") to @@ -12231,12 +11462,9 @@ func (s *TestOrder) MarshalJSON() ([]byte, error) { } type TestOrderCustomer struct { - // Email: Required. Email address of the customer. - // - // Acceptable values are: - // - "pog.dwight.schrute@gmail.com" - // - "pog.jim.halpert@gmail.com" - // - "penpog.pam.beesly@gmail.comding" + // Email: Required. Email address of the customer. Acceptable values + // are: - "pog.dwight.schrute@gmail.com" - + // "pog.jim.halpert@gmail.com" - "penpog.pam.beesly@gmail.comding" Email string `json:"email,omitempty"` // ExplicitMarketingPreference: Deprecated. Please use @@ -12275,11 +11503,8 @@ func (s *TestOrderCustomer) MarshalJSON() ([]byte, error) { type TestOrderCustomerMarketingRightsInfo struct { // ExplicitMarketingPreference: Last know user use selection regards // marketing preferences. In certain cases selection might not be known, - // so this field would be empty. - // - // Acceptable values are: - // - "denied" - // - "granted" + // so this field would be empty. Acceptable values are: - "denied" - + // "granted" ExplicitMarketingPreference string `json:"explicitMarketingPreference,omitempty"` // LastUpdatedTimestamp: Timestamp when last time marketing preference @@ -12355,24 +11580,15 @@ type TestOrderLineItemProduct struct { // Brand: Required. Brand of the item. Brand string `json:"brand,omitempty"` - // Channel: Deprecated. - // - // Acceptable values are: - // - "online" + // Channel: Deprecated. Acceptable values are: - "online" Channel string `json:"channel,omitempty"` - // Condition: Required. Condition or state of the item. - // - // Acceptable values are: - // - "new" + // Condition: Required. Condition or state of the item. Acceptable + // values are: - "new" Condition string `json:"condition,omitempty"` // ContentLanguage: Required. The two-letter ISO 639-1 language code for - // the item. - // - // Acceptable values are: - // - "en" - // - "fr" + // the item. Acceptable values are: - "en" - "fr" ContentLanguage string `json:"contentLanguage,omitempty"` // Fees: Fees for the item. Optional. @@ -12399,7 +11615,7 @@ type TestOrderLineItemProduct struct { // applicable. Otherwise, tax settings from Merchant Center are applied. Price *Price `json:"price,omitempty"` - // TargetCountry: Required. The CLDR territory code of the target + // TargetCountry: Required. The CLDR territory // code of the target // country of the product. TargetCountry string `json:"targetCountry,omitempty"` @@ -12443,23 +11659,14 @@ type TestOrderPaymentMethod struct { // LastFourDigits: The last four digits of the card number. LastFourDigits string `json:"lastFourDigits,omitempty"` - // PredefinedBillingAddress: The billing address. - // - // Acceptable values are: - // - "dwight" - // - "jim" - // - "pam" + // PredefinedBillingAddress: The billing address. Acceptable values are: + // - "dwight" - "jim" - "pam" PredefinedBillingAddress string `json:"predefinedBillingAddress,omitempty"` // Type: The type of instrument. Note that real orders might have - // different values than the four values accepted by - // `createTestOrder`. - // - // Acceptable values are: - // - "AMEX" - // - "DISCOVER" - // - "MASTERCARD" - // - "VISA" + // different values than the four values accepted by `createTestOrder`. + // Acceptable values are: - "AMEX" - "DISCOVER" - "MASTERCARD" - + // "VISA" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "ExpirationMonth") to @@ -12630,10 +11837,8 @@ type UnitInvoiceAdditionalCharge struct { // AdditionalChargePromotions: Deprecated. AdditionalChargePromotions []*Promotion `json:"additionalChargePromotions,omitempty"` - // Type: [required] Type of the additional charge. - // - // Acceptable values are: - // - "shipping" + // Type: [required] Type of the additional charge. Acceptable values + // are: - "shipping" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -12669,12 +11874,8 @@ type UnitInvoiceTaxLine struct { // if `taxType` is `otherFeeTax`. TaxName string `json:"taxName,omitempty"` - // TaxType: [required] Type of the tax. - // - // Acceptable values are: - // - "otherFee" - // - "otherFeeTax" - // - "sales" + // TaxType: [required] Type of the tax. Acceptable values are: - + // "otherFee" - "otherFeeTax" - "sales" TaxType string `json:"taxType,omitempty"` // ForceSendFields is a list of field names (e.g. "TaxAmount") to @@ -12752,11 +11953,8 @@ func (s *Value) MarshalJSON() ([]byte, error) { } type Weight struct { - // Unit: Required. The weight unit. - // - // Acceptable values are: - // - "kg" - // - "lb" + // Unit: Required. The weight unit. Acceptable values are: - "kg" - + // "lb" Unit string `json:"unit,omitempty"` // Value: Required. The weight represented as a number. @@ -12838,7 +12036,7 @@ func (c *AccountsAuthinfoCall) Header() http.Header { func (c *AccountsAuthinfoCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12849,7 +12047,7 @@ func (c *AccountsAuthinfoCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/authinfo") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/accounts/authinfo") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -12898,9 +12096,12 @@ func (c *AccountsAuthinfoCall) Do(opts ...googleapi.CallOption) (*AccountsAuthIn return ret, nil // { // "description": "Returns information about the authenticated user.", + // "flatPath": "content/v2/accounts/authinfo", // "httpMethod": "GET", // "id": "content.accounts.authinfo", - // "path": "accounts/authinfo", + // "parameterOrder": [], + // "parameters": {}, + // "path": "content/v2/accounts/authinfo", // "response": { // "$ref": "AccountsAuthInfoResponse" // }, @@ -12966,7 +12167,7 @@ func (c *AccountsClaimwebsiteCall) Header() http.Header { func (c *AccountsClaimwebsiteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12974,7 +12175,7 @@ func (c *AccountsClaimwebsiteCall) doRequest(alt string) (*http.Response, error) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts/{accountId}/claimwebsite") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/accounts/{accountId}/claimwebsite") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -13027,6 +12228,7 @@ func (c *AccountsClaimwebsiteCall) Do(opts ...googleapi.CallOption) (*AccountsCl return ret, nil // { // "description": "Claims the website of a Merchant Center sub-account.", + // "flatPath": "content/v2/{merchantId}/accounts/{accountId}/claimwebsite", // "httpMethod": "POST", // "id": "content.accounts.claimwebsite", // "parameterOrder": [ @@ -13054,7 +12256,7 @@ func (c *AccountsClaimwebsiteCall) Do(opts ...googleapi.CallOption) (*AccountsCl // "type": "boolean" // } // }, - // "path": "{merchantId}/accounts/{accountId}/claimwebsite", + // "path": "content/v2/{merchantId}/accounts/{accountId}/claimwebsite", // "response": { // "$ref": "AccountsClaimWebsiteResponse" // }, @@ -13118,7 +12320,7 @@ func (c *AccountsCustombatchCall) Header() http.Header { func (c *AccountsCustombatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13131,7 +12333,7 @@ func (c *AccountsCustombatchCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/batch") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/accounts/batch") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -13180,8 +12382,10 @@ func (c *AccountsCustombatchCall) Do(opts ...googleapi.CallOption) (*AccountsCus return ret, nil // { // "description": "Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)accounts in a single request.", + // "flatPath": "content/v2/accounts/batch", // "httpMethod": "POST", // "id": "content.accounts.custombatch", + // "parameterOrder": [], // "parameters": { // "dryRun": { // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", @@ -13189,7 +12393,7 @@ func (c *AccountsCustombatchCall) Do(opts ...googleapi.CallOption) (*AccountsCus // "type": "boolean" // } // }, - // "path": "accounts/batch", + // "path": "content/v2/accounts/batch", // "request": { // "$ref": "AccountsCustomBatchRequest" // }, @@ -13264,7 +12468,7 @@ func (c *AccountsDeleteCall) Header() http.Header { func (c *AccountsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13272,7 +12476,7 @@ func (c *AccountsDeleteCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts/{accountId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/accounts/{accountId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -13300,6 +12504,7 @@ func (c *AccountsDeleteCall) Do(opts ...googleapi.CallOption) error { return nil // { // "description": "Deletes a Merchant Center sub-account.", + // "flatPath": "content/v2/{merchantId}/accounts/{accountId}", // "httpMethod": "DELETE", // "id": "content.accounts.delete", // "parameterOrder": [ @@ -13333,7 +12538,7 @@ func (c *AccountsDeleteCall) Do(opts ...googleapi.CallOption) error { // "type": "string" // } // }, - // "path": "{merchantId}/accounts/{accountId}", + // "path": "content/v2/{merchantId}/accounts/{accountId}", // "scopes": [ // "https://www.googleapis.com/auth/content" // ] @@ -13398,7 +12603,7 @@ func (c *AccountsGetCall) Header() http.Header { func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13409,7 +12614,7 @@ func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts/{accountId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/accounts/{accountId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -13462,6 +12667,7 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { return ret, nil // { // "description": "Retrieves a Merchant Center account.", + // "flatPath": "content/v2/{merchantId}/accounts/{accountId}", // "httpMethod": "GET", // "id": "content.accounts.get", // "parameterOrder": [ @@ -13484,7 +12690,7 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { // "type": "string" // } // }, - // "path": "{merchantId}/accounts/{accountId}", + // "path": "content/v2/{merchantId}/accounts/{accountId}", // "response": { // "$ref": "Account" // }, @@ -13549,7 +12755,7 @@ func (c *AccountsInsertCall) Header() http.Header { func (c *AccountsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13562,7 +12768,7 @@ func (c *AccountsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/accounts") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -13614,6 +12820,7 @@ func (c *AccountsInsertCall) Do(opts ...googleapi.CallOption) (*Account, error) return ret, nil // { // "description": "Creates a Merchant Center sub-account.", + // "flatPath": "content/v2/{merchantId}/accounts", // "httpMethod": "POST", // "id": "content.accounts.insert", // "parameterOrder": [ @@ -13633,7 +12840,7 @@ func (c *AccountsInsertCall) Do(opts ...googleapi.CallOption) (*Account, error) // "type": "string" // } // }, - // "path": "{merchantId}/accounts", + // "path": "content/v2/{merchantId}/accounts", // "request": { // "$ref": "Account" // }, @@ -13696,7 +12903,7 @@ func (c *AccountsLinkCall) Header() http.Header { func (c *AccountsLinkCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13709,7 +12916,7 @@ func (c *AccountsLinkCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts/{accountId}/link") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/accounts/{accountId}/link") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -13762,6 +12969,7 @@ func (c *AccountsLinkCall) Do(opts ...googleapi.CallOption) (*AccountsLinkRespon return ret, nil // { // "description": "Performs an action on a link between two Merchant Center accounts, namely accountId and linkedAccountId.", + // "flatPath": "content/v2/{merchantId}/accounts/{accountId}/link", // "httpMethod": "POST", // "id": "content.accounts.link", // "parameterOrder": [ @@ -13784,7 +12992,7 @@ func (c *AccountsLinkCall) Do(opts ...googleapi.CallOption) (*AccountsLinkRespon // "type": "string" // } // }, - // "path": "{merchantId}/accounts/{accountId}/link", + // "path": "content/v2/{merchantId}/accounts/{accountId}/link", // "request": { // "$ref": "AccountsLinkRequest" // }, @@ -13867,7 +13075,7 @@ func (c *AccountsListCall) Header() http.Header { func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13878,7 +13086,7 @@ func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/accounts") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -13930,6 +13138,7 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon return ret, nil // { // "description": "Lists the sub-accounts in your Merchant Center account.", + // "flatPath": "content/v2/{merchantId}/accounts", // "httpMethod": "GET", // "id": "content.accounts.list", // "parameterOrder": [ @@ -13955,7 +13164,7 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon // "type": "string" // } // }, - // "path": "{merchantId}/accounts", + // "path": "content/v2/{merchantId}/accounts", // "response": { // "$ref": "AccountsListResponse" // }, @@ -14044,7 +13253,7 @@ func (c *AccountsUpdateCall) Header() http.Header { func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14057,7 +13266,7 @@ func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts/{accountId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/accounts/{accountId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -14110,6 +13319,7 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) return ret, nil // { // "description": "Updates a Merchant Center account. Any fields that are not provided are deleted from the resource.", + // "flatPath": "content/v2/{merchantId}/accounts/{accountId}", // "httpMethod": "PUT", // "id": "content.accounts.update", // "parameterOrder": [ @@ -14137,7 +13347,7 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) // "type": "string" // } // }, - // "path": "{merchantId}/accounts/{accountId}", + // "path": "content/v2/{merchantId}/accounts/{accountId}", // "request": { // "$ref": "Account" // }, @@ -14196,7 +13406,7 @@ func (c *AccountstatusesCustombatchCall) Header() http.Header { func (c *AccountstatusesCustombatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14209,7 +13419,7 @@ func (c *AccountstatusesCustombatchCall) doRequest(alt string) (*http.Response, reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "accountstatuses/batch") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/accountstatuses/batch") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -14259,9 +13469,12 @@ func (c *AccountstatusesCustombatchCall) Do(opts ...googleapi.CallOption) (*Acco return ret, nil // { // "description": "Retrieves multiple Merchant Center account statuses in a single request.", + // "flatPath": "content/v2/accountstatuses/batch", // "httpMethod": "POST", // "id": "content.accountstatuses.custombatch", - // "path": "accountstatuses/batch", + // "parameterOrder": [], + // "parameters": {}, + // "path": "content/v2/accountstatuses/batch", // "request": { // "$ref": "AccountstatusesCustomBatchRequest" // }, @@ -14341,7 +13554,7 @@ func (c *AccountstatusesGetCall) Header() http.Header { func (c *AccountstatusesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14352,7 +13565,7 @@ func (c *AccountstatusesGetCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accountstatuses/{accountId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/accountstatuses/{accountId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -14405,6 +13618,7 @@ func (c *AccountstatusesGetCall) Do(opts ...googleapi.CallOption) (*AccountStatu return ret, nil // { // "description": "Retrieves the status of a Merchant Center account. No itemLevelIssues are returned for multi-client accounts.", + // "flatPath": "content/v2/{merchantId}/accountstatuses/{accountId}", // "httpMethod": "GET", // "id": "content.accountstatuses.get", // "parameterOrder": [ @@ -14433,7 +13647,7 @@ func (c *AccountstatusesGetCall) Do(opts ...googleapi.CallOption) (*AccountStatu // "type": "string" // } // }, - // "path": "{merchantId}/accountstatuses/{accountId}", + // "path": "content/v2/{merchantId}/accountstatuses/{accountId}", // "response": { // "$ref": "AccountStatus" // }, @@ -14523,7 +13737,7 @@ func (c *AccountstatusesListCall) Header() http.Header { func (c *AccountstatusesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14534,7 +13748,7 @@ func (c *AccountstatusesListCall) doRequest(alt string) (*http.Response, error) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accountstatuses") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/accountstatuses") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -14586,6 +13800,7 @@ func (c *AccountstatusesListCall) Do(opts ...googleapi.CallOption) (*Accountstat return ret, nil // { // "description": "Lists the statuses of the sub-accounts in your Merchant Center account.", + // "flatPath": "content/v2/{merchantId}/accountstatuses", // "httpMethod": "GET", // "id": "content.accountstatuses.list", // "parameterOrder": [ @@ -14617,7 +13832,7 @@ func (c *AccountstatusesListCall) Do(opts ...googleapi.CallOption) (*Accountstat // "type": "string" // } // }, - // "path": "{merchantId}/accountstatuses", + // "path": "content/v2/{merchantId}/accountstatuses", // "response": { // "$ref": "AccountstatusesListResponse" // }, @@ -14702,7 +13917,7 @@ func (c *AccounttaxCustombatchCall) Header() http.Header { func (c *AccounttaxCustombatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14715,7 +13930,7 @@ func (c *AccounttaxCustombatchCall) doRequest(alt string) (*http.Response, error reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "accounttax/batch") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/accounttax/batch") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -14764,8 +13979,10 @@ func (c *AccounttaxCustombatchCall) Do(opts ...googleapi.CallOption) (*Accountta return ret, nil // { // "description": "Retrieves and updates tax settings of multiple accounts in a single request.", + // "flatPath": "content/v2/accounttax/batch", // "httpMethod": "POST", // "id": "content.accounttax.custombatch", + // "parameterOrder": [], // "parameters": { // "dryRun": { // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", @@ -14773,7 +13990,7 @@ func (c *AccounttaxCustombatchCall) Do(opts ...googleapi.CallOption) (*Accountta // "type": "boolean" // } // }, - // "path": "accounttax/batch", + // "path": "content/v2/accounttax/batch", // "request": { // "$ref": "AccounttaxCustomBatchRequest" // }, @@ -14844,7 +14061,7 @@ func (c *AccounttaxGetCall) Header() http.Header { func (c *AccounttaxGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14855,7 +14072,7 @@ func (c *AccounttaxGetCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounttax/{accountId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/accounttax/{accountId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -14908,6 +14125,7 @@ func (c *AccounttaxGetCall) Do(opts ...googleapi.CallOption) (*AccountTax, error return ret, nil // { // "description": "Retrieves the tax settings of the account.", + // "flatPath": "content/v2/{merchantId}/accounttax/{accountId}", // "httpMethod": "GET", // "id": "content.accounttax.get", // "parameterOrder": [ @@ -14930,7 +14148,7 @@ func (c *AccounttaxGetCall) Do(opts ...googleapi.CallOption) (*AccountTax, error // "type": "string" // } // }, - // "path": "{merchantId}/accounttax/{accountId}", + // "path": "content/v2/{merchantId}/accounttax/{accountId}", // "response": { // "$ref": "AccountTax" // }, @@ -15011,7 +14229,7 @@ func (c *AccounttaxListCall) Header() http.Header { func (c *AccounttaxListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15022,7 +14240,7 @@ func (c *AccounttaxListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounttax") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/accounttax") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -15074,6 +14292,7 @@ func (c *AccounttaxListCall) Do(opts ...googleapi.CallOption) (*AccounttaxListRe return ret, nil // { // "description": "Lists the tax settings of the sub-accounts in your Merchant Center account.", + // "flatPath": "content/v2/{merchantId}/accounttax", // "httpMethod": "GET", // "id": "content.accounttax.list", // "parameterOrder": [ @@ -15099,7 +14318,7 @@ func (c *AccounttaxListCall) Do(opts ...googleapi.CallOption) (*AccounttaxListRe // "type": "string" // } // }, - // "path": "{merchantId}/accounttax", + // "path": "content/v2/{merchantId}/accounttax", // "response": { // "$ref": "AccounttaxListResponse" // }, @@ -15188,7 +14407,7 @@ func (c *AccounttaxUpdateCall) Header() http.Header { func (c *AccounttaxUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15201,7 +14420,7 @@ func (c *AccounttaxUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounttax/{accountId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/accounttax/{accountId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -15254,6 +14473,7 @@ func (c *AccounttaxUpdateCall) Do(opts ...googleapi.CallOption) (*AccountTax, er return ret, nil // { // "description": "Updates the tax settings of the account. Any fields that are not provided are deleted from the resource.", + // "flatPath": "content/v2/{merchantId}/accounttax/{accountId}", // "httpMethod": "PUT", // "id": "content.accounttax.update", // "parameterOrder": [ @@ -15281,7 +14501,7 @@ func (c *AccounttaxUpdateCall) Do(opts ...googleapi.CallOption) (*AccountTax, er // "type": "string" // } // }, - // "path": "{merchantId}/accounttax/{accountId}", + // "path": "content/v2/{merchantId}/accounttax/{accountId}", // "request": { // "$ref": "AccountTax" // }, @@ -15348,7 +14568,7 @@ func (c *DatafeedsCustombatchCall) Header() http.Header { func (c *DatafeedsCustombatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15361,7 +14581,7 @@ func (c *DatafeedsCustombatchCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "datafeeds/batch") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/datafeeds/batch") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -15410,8 +14630,10 @@ func (c *DatafeedsCustombatchCall) Do(opts ...googleapi.CallOption) (*DatafeedsC return ret, nil // { // "description": "Deletes, fetches, gets, inserts and updates multiple datafeeds in a single request.", + // "flatPath": "content/v2/datafeeds/batch", // "httpMethod": "POST", // "id": "content.datafeeds.custombatch", + // "parameterOrder": [], // "parameters": { // "dryRun": { // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", @@ -15419,7 +14641,7 @@ func (c *DatafeedsCustombatchCall) Do(opts ...googleapi.CallOption) (*DatafeedsC // "type": "boolean" // } // }, - // "path": "datafeeds/batch", + // "path": "content/v2/datafeeds/batch", // "request": { // "$ref": "DatafeedsCustomBatchRequest" // }, @@ -15488,7 +14710,7 @@ func (c *DatafeedsDeleteCall) Header() http.Header { func (c *DatafeedsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15496,7 +14718,7 @@ func (c *DatafeedsDeleteCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/datafeeds/{datafeedId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/datafeeds/{datafeedId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -15524,6 +14746,7 @@ func (c *DatafeedsDeleteCall) Do(opts ...googleapi.CallOption) error { return nil // { // "description": "Deletes a datafeed configuration from your Merchant Center account.", + // "flatPath": "content/v2/{merchantId}/datafeeds/{datafeedId}", // "httpMethod": "DELETE", // "id": "content.datafeeds.delete", // "parameterOrder": [ @@ -15551,7 +14774,7 @@ func (c *DatafeedsDeleteCall) Do(opts ...googleapi.CallOption) error { // "type": "string" // } // }, - // "path": "{merchantId}/datafeeds/{datafeedId}", + // "path": "content/v2/{merchantId}/datafeeds/{datafeedId}", // "scopes": [ // "https://www.googleapis.com/auth/content" // ] @@ -15571,7 +14794,8 @@ type DatafeedsFetchnowCall struct { } // Fetchnow: Invokes a fetch for the datafeed in your Merchant Center -// account. +// account. If you need to call this method more than once per day, we +// recommend you use the Products service to update your product data. func (r *DatafeedsService) Fetchnow(merchantId uint64, datafeedId uint64) *DatafeedsFetchnowCall { c := &DatafeedsFetchnowCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -15614,7 +14838,7 @@ func (c *DatafeedsFetchnowCall) Header() http.Header { func (c *DatafeedsFetchnowCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15622,7 +14846,7 @@ func (c *DatafeedsFetchnowCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/datafeeds/{datafeedId}/fetchNow") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/datafeeds/{datafeedId}/fetchNow") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -15674,7 +14898,8 @@ func (c *DatafeedsFetchnowCall) Do(opts ...googleapi.CallOption) (*DatafeedsFetc } return ret, nil // { - // "description": "Invokes a fetch for the datafeed in your Merchant Center account.", + // "description": "Invokes a fetch for the datafeed in your Merchant Center account. If you need to call this method more than once per day, we recommend you use the Products service to update your product data.", + // "flatPath": "content/v2/{merchantId}/datafeeds/{datafeedId}/fetchNow", // "httpMethod": "POST", // "id": "content.datafeeds.fetchnow", // "parameterOrder": [ @@ -15702,7 +14927,7 @@ func (c *DatafeedsFetchnowCall) Do(opts ...googleapi.CallOption) (*DatafeedsFetc // "type": "string" // } // }, - // "path": "{merchantId}/datafeeds/{datafeedId}/fetchNow", + // "path": "content/v2/{merchantId}/datafeeds/{datafeedId}/fetchNow", // "response": { // "$ref": "DatafeedsFetchNowResponse" // }, @@ -15771,7 +14996,7 @@ func (c *DatafeedsGetCall) Header() http.Header { func (c *DatafeedsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15782,7 +15007,7 @@ func (c *DatafeedsGetCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/datafeeds/{datafeedId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/datafeeds/{datafeedId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -15835,6 +15060,7 @@ func (c *DatafeedsGetCall) Do(opts ...googleapi.CallOption) (*Datafeed, error) { return ret, nil // { // "description": "Retrieves a datafeed configuration from your Merchant Center account.", + // "flatPath": "content/v2/{merchantId}/datafeeds/{datafeedId}", // "httpMethod": "GET", // "id": "content.datafeeds.get", // "parameterOrder": [ @@ -15857,7 +15083,7 @@ func (c *DatafeedsGetCall) Do(opts ...googleapi.CallOption) (*Datafeed, error) { // "type": "string" // } // }, - // "path": "{merchantId}/datafeeds/{datafeedId}", + // "path": "content/v2/{merchantId}/datafeeds/{datafeedId}", // "response": { // "$ref": "Datafeed" // }, @@ -15923,7 +15149,7 @@ func (c *DatafeedsInsertCall) Header() http.Header { func (c *DatafeedsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15936,7 +15162,7 @@ func (c *DatafeedsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/datafeeds") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/datafeeds") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -15988,6 +15214,7 @@ func (c *DatafeedsInsertCall) Do(opts ...googleapi.CallOption) (*Datafeed, error return ret, nil // { // "description": "Registers a datafeed configuration with your Merchant Center account.", + // "flatPath": "content/v2/{merchantId}/datafeeds", // "httpMethod": "POST", // "id": "content.datafeeds.insert", // "parameterOrder": [ @@ -16007,7 +15234,7 @@ func (c *DatafeedsInsertCall) Do(opts ...googleapi.CallOption) (*Datafeed, error // "type": "string" // } // }, - // "path": "{merchantId}/datafeeds", + // "path": "content/v2/{merchantId}/datafeeds", // "request": { // "$ref": "Datafeed" // }, @@ -16091,7 +15318,7 @@ func (c *DatafeedsListCall) Header() http.Header { func (c *DatafeedsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16102,7 +15329,7 @@ func (c *DatafeedsListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/datafeeds") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/datafeeds") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -16154,6 +15381,7 @@ func (c *DatafeedsListCall) Do(opts ...googleapi.CallOption) (*DatafeedsListResp return ret, nil // { // "description": "Lists the configurations for datafeeds in your Merchant Center account.", + // "flatPath": "content/v2/{merchantId}/datafeeds", // "httpMethod": "GET", // "id": "content.datafeeds.list", // "parameterOrder": [ @@ -16179,7 +15407,7 @@ func (c *DatafeedsListCall) Do(opts ...googleapi.CallOption) (*DatafeedsListResp // "type": "string" // } // }, - // "path": "{merchantId}/datafeeds", + // "path": "content/v2/{merchantId}/datafeeds", // "response": { // "$ref": "DatafeedsListResponse" // }, @@ -16269,7 +15497,7 @@ func (c *DatafeedsUpdateCall) Header() http.Header { func (c *DatafeedsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16282,7 +15510,7 @@ func (c *DatafeedsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/datafeeds/{datafeedId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/datafeeds/{datafeedId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -16335,6 +15563,7 @@ func (c *DatafeedsUpdateCall) Do(opts ...googleapi.CallOption) (*Datafeed, error return ret, nil // { // "description": "Updates a datafeed configuration of your Merchant Center account. Any fields that are not provided are deleted from the resource.", + // "flatPath": "content/v2/{merchantId}/datafeeds/{datafeedId}", // "httpMethod": "PUT", // "id": "content.datafeeds.update", // "parameterOrder": [ @@ -16362,7 +15591,7 @@ func (c *DatafeedsUpdateCall) Do(opts ...googleapi.CallOption) (*Datafeed, error // "type": "string" // } // }, - // "path": "{merchantId}/datafeeds/{datafeedId}", + // "path": "content/v2/{merchantId}/datafeeds/{datafeedId}", // "request": { // "$ref": "Datafeed" // }, @@ -16421,7 +15650,7 @@ func (c *DatafeedstatusesCustombatchCall) Header() http.Header { func (c *DatafeedstatusesCustombatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16434,7 +15663,7 @@ func (c *DatafeedstatusesCustombatchCall) doRequest(alt string) (*http.Response, reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "datafeedstatuses/batch") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/datafeedstatuses/batch") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -16484,9 +15713,12 @@ func (c *DatafeedstatusesCustombatchCall) Do(opts ...googleapi.CallOption) (*Dat return ret, nil // { // "description": "Gets multiple Merchant Center datafeed statuses in a single request.", + // "flatPath": "content/v2/datafeedstatuses/batch", // "httpMethod": "POST", // "id": "content.datafeedstatuses.custombatch", - // "path": "datafeedstatuses/batch", + // "parameterOrder": [], + // "parameters": {}, + // "path": "content/v2/datafeedstatuses/batch", // "request": { // "$ref": "DatafeedstatusesCustomBatchRequest" // }, @@ -16578,7 +15810,7 @@ func (c *DatafeedstatusesGetCall) Header() http.Header { func (c *DatafeedstatusesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16589,7 +15821,7 @@ func (c *DatafeedstatusesGetCall) doRequest(alt string) (*http.Response, error) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/datafeedstatuses/{datafeedId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/datafeedstatuses/{datafeedId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -16642,6 +15874,7 @@ func (c *DatafeedstatusesGetCall) Do(opts ...googleapi.CallOption) (*DatafeedSta return ret, nil // { // "description": "Retrieves the status of a datafeed from your Merchant Center account.", + // "flatPath": "content/v2/{merchantId}/datafeedstatuses/{datafeedId}", // "httpMethod": "GET", // "id": "content.datafeedstatuses.get", // "parameterOrder": [ @@ -16674,7 +15907,7 @@ func (c *DatafeedstatusesGetCall) Do(opts ...googleapi.CallOption) (*DatafeedSta // "type": "string" // } // }, - // "path": "{merchantId}/datafeedstatuses/{datafeedId}", + // "path": "content/v2/{merchantId}/datafeedstatuses/{datafeedId}", // "response": { // "$ref": "DatafeedStatus" // }, @@ -16755,7 +15988,7 @@ func (c *DatafeedstatusesListCall) Header() http.Header { func (c *DatafeedstatusesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16766,7 +15999,7 @@ func (c *DatafeedstatusesListCall) doRequest(alt string) (*http.Response, error) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/datafeedstatuses") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/datafeedstatuses") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -16818,6 +16051,7 @@ func (c *DatafeedstatusesListCall) Do(opts ...googleapi.CallOption) (*Datafeedst return ret, nil // { // "description": "Lists the statuses of the datafeeds in your Merchant Center account.", + // "flatPath": "content/v2/{merchantId}/datafeedstatuses", // "httpMethod": "GET", // "id": "content.datafeedstatuses.list", // "parameterOrder": [ @@ -16843,7 +16077,7 @@ func (c *DatafeedstatusesListCall) Do(opts ...googleapi.CallOption) (*Datafeedst // "type": "string" // } // }, - // "path": "{merchantId}/datafeedstatuses", + // "path": "content/v2/{merchantId}/datafeedstatuses", // "response": { // "$ref": "DatafeedstatusesListResponse" // }, @@ -16929,7 +16163,7 @@ func (c *InventoryCustombatchCall) Header() http.Header { func (c *InventoryCustombatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16942,7 +16176,7 @@ func (c *InventoryCustombatchCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "inventory/batch") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/inventory/batch") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -16991,8 +16225,10 @@ func (c *InventoryCustombatchCall) Do(opts ...googleapi.CallOption) (*InventoryC return ret, nil // { // "description": "Updates price and availability for multiple products or stores in a single request. This operation does not update the expiration date of the products.", + // "flatPath": "content/v2/inventory/batch", // "httpMethod": "POST", // "id": "content.inventory.custombatch", + // "parameterOrder": [], // "parameters": { // "dryRun": { // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", @@ -17000,7 +16236,7 @@ func (c *InventoryCustombatchCall) Do(opts ...googleapi.CallOption) (*InventoryC // "type": "boolean" // } // }, - // "path": "inventory/batch", + // "path": "content/v2/inventory/batch", // "request": { // "$ref": "InventoryCustomBatchRequest" // }, @@ -17073,7 +16309,7 @@ func (c *InventorySetCall) Header() http.Header { func (c *InventorySetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17086,7 +16322,7 @@ func (c *InventorySetCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/inventory/{storeCode}/products/{productId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/inventory/{storeCode}/products/{productId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -17140,6 +16376,7 @@ func (c *InventorySetCall) Do(opts ...googleapi.CallOption) (*InventorySetRespon return ret, nil // { // "description": "Updates price and availability of a product in your Merchant Center account.", + // "flatPath": "content/v2/{merchantId}/inventory/{storeCode}/products/{productId}", // "httpMethod": "POST", // "id": "content.inventory.set", // "parameterOrder": [ @@ -17173,7 +16410,7 @@ func (c *InventorySetCall) Do(opts ...googleapi.CallOption) (*InventorySetRespon // "type": "string" // } // }, - // "path": "{merchantId}/inventory/{storeCode}/products/{productId}", + // "path": "content/v2/{merchantId}/inventory/{storeCode}/products/{productId}", // "request": { // "$ref": "InventorySetRequest" // }, @@ -17240,7 +16477,7 @@ func (c *LiasettingsCustombatchCall) Header() http.Header { func (c *LiasettingsCustombatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17253,7 +16490,7 @@ func (c *LiasettingsCustombatchCall) doRequest(alt string) (*http.Response, erro reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "liasettings/batch") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/liasettings/batch") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -17302,8 +16539,10 @@ func (c *LiasettingsCustombatchCall) Do(opts ...googleapi.CallOption) (*Liasetti return ret, nil // { // "description": "Retrieves and/or updates the LIA settings of multiple accounts in a single request.", + // "flatPath": "content/v2/liasettings/batch", // "httpMethod": "POST", // "id": "content.liasettings.custombatch", + // "parameterOrder": [], // "parameters": { // "dryRun": { // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", @@ -17311,7 +16550,7 @@ func (c *LiasettingsCustombatchCall) Do(opts ...googleapi.CallOption) (*Liasetti // "type": "boolean" // } // }, - // "path": "liasettings/batch", + // "path": "content/v2/liasettings/batch", // "request": { // "$ref": "LiasettingsCustomBatchRequest" // }, @@ -17382,7 +16621,7 @@ func (c *LiasettingsGetCall) Header() http.Header { func (c *LiasettingsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17393,7 +16632,7 @@ func (c *LiasettingsGetCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/liasettings/{accountId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/liasettings/{accountId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -17446,6 +16685,7 @@ func (c *LiasettingsGetCall) Do(opts ...googleapi.CallOption) (*LiaSettings, err return ret, nil // { // "description": "Retrieves the LIA settings of the account.", + // "flatPath": "content/v2/{merchantId}/liasettings/{accountId}", // "httpMethod": "GET", // "id": "content.liasettings.get", // "parameterOrder": [ @@ -17468,7 +16708,7 @@ func (c *LiasettingsGetCall) Do(opts ...googleapi.CallOption) (*LiaSettings, err // "type": "string" // } // }, - // "path": "{merchantId}/liasettings/{accountId}", + // "path": "content/v2/{merchantId}/liasettings/{accountId}", // "response": { // "$ref": "LiaSettings" // }, @@ -17537,7 +16777,7 @@ func (c *LiasettingsGetaccessiblegmbaccountsCall) Header() http.Header { func (c *LiasettingsGetaccessiblegmbaccountsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17548,7 +16788,7 @@ func (c *LiasettingsGetaccessiblegmbaccountsCall) doRequest(alt string) (*http.R var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/liasettings/{accountId}/accessiblegmbaccounts") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/liasettings/{accountId}/accessiblegmbaccounts") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -17603,6 +16843,7 @@ func (c *LiasettingsGetaccessiblegmbaccountsCall) Do(opts ...googleapi.CallOptio return ret, nil // { // "description": "Retrieves the list of accessible Google My Business accounts.", + // "flatPath": "content/v2/{merchantId}/liasettings/{accountId}/accessiblegmbaccounts", // "httpMethod": "GET", // "id": "content.liasettings.getaccessiblegmbaccounts", // "parameterOrder": [ @@ -17625,7 +16866,7 @@ func (c *LiasettingsGetaccessiblegmbaccountsCall) Do(opts ...googleapi.CallOptio // "type": "string" // } // }, - // "path": "{merchantId}/liasettings/{accountId}/accessiblegmbaccounts", + // "path": "content/v2/{merchantId}/liasettings/{accountId}/accessiblegmbaccounts", // "response": { // "$ref": "LiasettingsGetAccessibleGmbAccountsResponse" // }, @@ -17706,7 +16947,7 @@ func (c *LiasettingsListCall) Header() http.Header { func (c *LiasettingsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17717,7 +16958,7 @@ func (c *LiasettingsListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/liasettings") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/liasettings") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -17769,6 +17010,7 @@ func (c *LiasettingsListCall) Do(opts ...googleapi.CallOption) (*LiasettingsList return ret, nil // { // "description": "Lists the LIA settings of the sub-accounts in your Merchant Center account.", + // "flatPath": "content/v2/{merchantId}/liasettings", // "httpMethod": "GET", // "id": "content.liasettings.list", // "parameterOrder": [ @@ -17794,7 +17036,7 @@ func (c *LiasettingsListCall) Do(opts ...googleapi.CallOption) (*LiasettingsList // "type": "string" // } // }, - // "path": "{merchantId}/liasettings", + // "path": "content/v2/{merchantId}/liasettings", // "response": { // "$ref": "LiasettingsListResponse" // }, @@ -17880,7 +17122,7 @@ func (c *LiasettingsListposdataprovidersCall) Header() http.Header { func (c *LiasettingsListposdataprovidersCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17891,7 +17133,7 @@ func (c *LiasettingsListposdataprovidersCall) doRequest(alt string) (*http.Respo var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "liasettings/posdataproviders") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/liasettings/posdataproviders") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -17941,9 +17183,12 @@ func (c *LiasettingsListposdataprovidersCall) Do(opts ...googleapi.CallOption) ( return ret, nil // { // "description": "Retrieves the list of POS data providers that have active settings for the all eiligible countries.", + // "flatPath": "content/v2/liasettings/posdataproviders", // "httpMethod": "GET", // "id": "content.liasettings.listposdataproviders", - // "path": "liasettings/posdataproviders", + // "parameterOrder": [], + // "parameters": {}, + // "path": "content/v2/liasettings/posdataproviders", // "response": { // "$ref": "LiasettingsListPosDataProvidersResponse" // }, @@ -18002,7 +17247,7 @@ func (c *LiasettingsRequestgmbaccessCall) Header() http.Header { func (c *LiasettingsRequestgmbaccessCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18010,7 +17255,7 @@ func (c *LiasettingsRequestgmbaccessCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/liasettings/{accountId}/requestgmbaccess") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/liasettings/{accountId}/requestgmbaccess") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -18064,6 +17309,7 @@ func (c *LiasettingsRequestgmbaccessCall) Do(opts ...googleapi.CallOption) (*Lia return ret, nil // { // "description": "Requests access to a specified Google My Business account.", + // "flatPath": "content/v2/{merchantId}/liasettings/{accountId}/requestgmbaccess", // "httpMethod": "POST", // "id": "content.liasettings.requestgmbaccess", // "parameterOrder": [ @@ -18093,7 +17339,7 @@ func (c *LiasettingsRequestgmbaccessCall) Do(opts ...googleapi.CallOption) (*Lia // "type": "string" // } // }, - // "path": "{merchantId}/liasettings/{accountId}/requestgmbaccess", + // "path": "content/v2/{merchantId}/liasettings/{accountId}/requestgmbaccess", // "response": { // "$ref": "LiasettingsRequestGmbAccessResponse" // }, @@ -18153,7 +17399,7 @@ func (c *LiasettingsRequestinventoryverificationCall) Header() http.Header { func (c *LiasettingsRequestinventoryverificationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18161,7 +17407,7 @@ func (c *LiasettingsRequestinventoryverificationCall) doRequest(alt string) (*ht var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -18217,6 +17463,7 @@ func (c *LiasettingsRequestinventoryverificationCall) Do(opts ...googleapi.CallO return ret, nil // { // "description": "Requests inventory validation for the specified country.", + // "flatPath": "content/v2/{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}", // "httpMethod": "POST", // "id": "content.liasettings.requestinventoryverification", // "parameterOrder": [ @@ -18246,7 +17493,7 @@ func (c *LiasettingsRequestinventoryverificationCall) Do(opts ...googleapi.CallO // "type": "string" // } // }, - // "path": "{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}", + // "path": "content/v2/{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}", // "response": { // "$ref": "LiasettingsRequestInventoryVerificationResponse" // }, @@ -18270,14 +17517,14 @@ type LiasettingsSetinventoryverificationcontactCall struct { // Setinventoryverificationcontact: Sets the inventory verification // contract for the specified country. -func (r *LiasettingsService) Setinventoryverificationcontact(merchantId uint64, accountId uint64, contactEmail string, contactName string, country string, language string) *LiasettingsSetinventoryverificationcontactCall { +func (r *LiasettingsService) Setinventoryverificationcontact(merchantId uint64, accountId uint64, country string, language string, contactName string, contactEmail string) *LiasettingsSetinventoryverificationcontactCall { c := &LiasettingsSetinventoryverificationcontactCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId c.accountId = accountId - c.urlParams_.Set("contactEmail", contactEmail) - c.urlParams_.Set("contactName", contactName) c.urlParams_.Set("country", country) c.urlParams_.Set("language", language) + c.urlParams_.Set("contactName", contactName) + c.urlParams_.Set("contactEmail", contactEmail) return c } @@ -18308,7 +17555,7 @@ func (c *LiasettingsSetinventoryverificationcontactCall) Header() http.Header { func (c *LiasettingsSetinventoryverificationcontactCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18316,7 +17563,7 @@ func (c *LiasettingsSetinventoryverificationcontactCall) doRequest(alt string) ( var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/liasettings/{accountId}/setinventoryverificationcontact") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/liasettings/{accountId}/setinventoryverificationcontact") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -18371,15 +17618,16 @@ func (c *LiasettingsSetinventoryverificationcontactCall) Do(opts ...googleapi.Ca return ret, nil // { // "description": "Sets the inventory verification contract for the specified country.", + // "flatPath": "content/v2/{merchantId}/liasettings/{accountId}/setinventoryverificationcontact", // "httpMethod": "POST", // "id": "content.liasettings.setinventoryverificationcontact", // "parameterOrder": [ // "merchantId", // "accountId", - // "contactEmail", - // "contactName", // "country", - // "language" + // "language", + // "contactName", + // "contactEmail" // ], // "parameters": { // "accountId": { @@ -18421,7 +17669,7 @@ func (c *LiasettingsSetinventoryverificationcontactCall) Do(opts ...googleapi.Ca // "type": "string" // } // }, - // "path": "{merchantId}/liasettings/{accountId}/setinventoryverificationcontact", + // "path": "content/v2/{merchantId}/liasettings/{accountId}/setinventoryverificationcontact", // "response": { // "$ref": "LiasettingsSetInventoryVerificationContactResponse" // }, @@ -18495,7 +17743,7 @@ func (c *LiasettingsSetposdataproviderCall) Header() http.Header { func (c *LiasettingsSetposdataproviderCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18503,7 +17751,7 @@ func (c *LiasettingsSetposdataproviderCall) doRequest(alt string) (*http.Respons var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/liasettings/{accountId}/setposdataprovider") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/liasettings/{accountId}/setposdataprovider") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -18557,6 +17805,7 @@ func (c *LiasettingsSetposdataproviderCall) Do(opts ...googleapi.CallOption) (*L return ret, nil // { // "description": "Sets the POS data provider for the specified country.", + // "flatPath": "content/v2/{merchantId}/liasettings/{accountId}/setposdataprovider", // "httpMethod": "POST", // "id": "content.liasettings.setposdataprovider", // "parameterOrder": [ @@ -18597,7 +17846,7 @@ func (c *LiasettingsSetposdataproviderCall) Do(opts ...googleapi.CallOption) (*L // "type": "string" // } // }, - // "path": "{merchantId}/liasettings/{accountId}/setposdataprovider", + // "path": "content/v2/{merchantId}/liasettings/{accountId}/setposdataprovider", // "response": { // "$ref": "LiasettingsSetPosDataProviderResponse" // }, @@ -18665,7 +17914,7 @@ func (c *LiasettingsUpdateCall) Header() http.Header { func (c *LiasettingsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18678,7 +17927,7 @@ func (c *LiasettingsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/liasettings/{accountId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/liasettings/{accountId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -18731,6 +17980,7 @@ func (c *LiasettingsUpdateCall) Do(opts ...googleapi.CallOption) (*LiaSettings, return ret, nil // { // "description": "Updates the LIA settings of the account. Any fields that are not provided are deleted from the resource.", + // "flatPath": "content/v2/{merchantId}/liasettings/{accountId}", // "httpMethod": "PUT", // "id": "content.liasettings.update", // "parameterOrder": [ @@ -18758,7 +18008,7 @@ func (c *LiasettingsUpdateCall) Do(opts ...googleapi.CallOption) (*LiaSettings, // "type": "string" // } // }, - // "path": "{merchantId}/liasettings/{accountId}", + // "path": "content/v2/{merchantId}/liasettings/{accountId}", // "request": { // "$ref": "LiaSettings" // }, @@ -18821,7 +18071,7 @@ func (c *OrderinvoicesCreatechargeinvoiceCall) Header() http.Header { func (c *OrderinvoicesCreatechargeinvoiceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18834,7 +18084,7 @@ func (c *OrderinvoicesCreatechargeinvoiceCall) doRequest(alt string) (*http.Resp reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderinvoices/{orderId}/createChargeInvoice") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/orderinvoices/{orderId}/createChargeInvoice") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -18889,6 +18139,7 @@ func (c *OrderinvoicesCreatechargeinvoiceCall) Do(opts ...googleapi.CallOption) return ret, nil // { // "description": "Creates a charge invoice for a shipment group, and triggers a charge capture for orderinvoice enabled orders.", + // "flatPath": "content/v2/{merchantId}/orderinvoices/{orderId}/createChargeInvoice", // "httpMethod": "POST", // "id": "content.orderinvoices.createchargeinvoice", // "parameterOrder": [ @@ -18910,7 +18161,7 @@ func (c *OrderinvoicesCreatechargeinvoiceCall) Do(opts ...googleapi.CallOption) // "type": "string" // } // }, - // "path": "{merchantId}/orderinvoices/{orderId}/createChargeInvoice", + // "path": "content/v2/{merchantId}/orderinvoices/{orderId}/createChargeInvoice", // "request": { // "$ref": "OrderinvoicesCreateChargeInvoiceRequest" // }, @@ -18976,7 +18227,7 @@ func (c *OrderinvoicesCreaterefundinvoiceCall) Header() http.Header { func (c *OrderinvoicesCreaterefundinvoiceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18989,7 +18240,7 @@ func (c *OrderinvoicesCreaterefundinvoiceCall) doRequest(alt string) (*http.Resp reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderinvoices/{orderId}/createRefundInvoice") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/orderinvoices/{orderId}/createRefundInvoice") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -19044,6 +18295,7 @@ func (c *OrderinvoicesCreaterefundinvoiceCall) Do(opts ...googleapi.CallOption) return ret, nil // { // "description": "Creates a refund invoice for one or more shipment groups, and triggers a refund for orderinvoice enabled orders. This can only be used for line items that have previously been charged using `createChargeInvoice`. All amounts (except for the summary) are incremental with respect to the previous invoice.", + // "flatPath": "content/v2/{merchantId}/orderinvoices/{orderId}/createRefundInvoice", // "httpMethod": "POST", // "id": "content.orderinvoices.createrefundinvoice", // "parameterOrder": [ @@ -19065,7 +18317,7 @@ func (c *OrderinvoicesCreaterefundinvoiceCall) Do(opts ...googleapi.CallOption) // "type": "string" // } // }, - // "path": "{merchantId}/orderinvoices/{orderId}/createRefundInvoice", + // "path": "content/v2/{merchantId}/orderinvoices/{orderId}/createRefundInvoice", // "request": { // "$ref": "OrderinvoicesCreateRefundInvoiceRequest" // }, @@ -19092,10 +18344,9 @@ type OrderreportsListdisbursementsCall struct { // Listdisbursements: Retrieves a report for disbursements from your // Merchant Center account. -func (r *OrderreportsService) Listdisbursements(merchantId uint64, disbursementStartDate string) *OrderreportsListdisbursementsCall { +func (r *OrderreportsService) Listdisbursements(merchantId uint64) *OrderreportsListdisbursementsCall { c := &OrderreportsListdisbursementsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId - c.urlParams_.Set("disbursementStartDate", disbursementStartDate) return c } @@ -19107,6 +18358,14 @@ func (c *OrderreportsListdisbursementsCall) DisbursementEndDate(disbursementEndD return c } +// DisbursementStartDate sets the optional parameter +// "disbursementStartDate": The first date which disbursements occurred. +// In ISO 8601 format. +func (c *OrderreportsListdisbursementsCall) DisbursementStartDate(disbursementStartDate string) *OrderreportsListdisbursementsCall { + c.urlParams_.Set("disbursementStartDate", disbursementStartDate) + return c +} + // MaxResults sets the optional parameter "maxResults": The maximum // number of disbursements to return in the response, used for paging. func (c *OrderreportsListdisbursementsCall) MaxResults(maxResults int64) *OrderreportsListdisbursementsCall { @@ -19158,7 +18417,7 @@ func (c *OrderreportsListdisbursementsCall) Header() http.Header { func (c *OrderreportsListdisbursementsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19169,7 +18428,7 @@ func (c *OrderreportsListdisbursementsCall) doRequest(alt string) (*http.Respons var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderreports/disbursements") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/orderreports/disbursements") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -19222,11 +18481,11 @@ func (c *OrderreportsListdisbursementsCall) Do(opts ...googleapi.CallOption) (*O return ret, nil // { // "description": "Retrieves a report for disbursements from your Merchant Center account.", + // "flatPath": "content/v2/{merchantId}/orderreports/disbursements", // "httpMethod": "GET", // "id": "content.orderreports.listdisbursements", // "parameterOrder": [ - // "merchantId", - // "disbursementStartDate" + // "merchantId" // ], // "parameters": { // "disbursementEndDate": { @@ -19237,7 +18496,6 @@ func (c *OrderreportsListdisbursementsCall) Do(opts ...googleapi.CallOption) (*O // "disbursementStartDate": { // "description": "The first date which disbursements occurred. In ISO 8601 format.", // "location": "query", - // "required": true, // "type": "string" // }, // "maxResults": { @@ -19259,7 +18517,7 @@ func (c *OrderreportsListdisbursementsCall) Do(opts ...googleapi.CallOption) (*O // "type": "string" // } // }, - // "path": "{merchantId}/orderreports/disbursements", + // "path": "content/v2/{merchantId}/orderreports/disbursements", // "response": { // "$ref": "OrderreportsListDisbursementsResponse" // }, @@ -19305,11 +18563,10 @@ type OrderreportsListtransactionsCall struct { // Listtransactions: Retrieves a list of transactions for a disbursement // from your Merchant Center account. -func (r *OrderreportsService) Listtransactions(merchantId uint64, disbursementId string, transactionStartDate string) *OrderreportsListtransactionsCall { +func (r *OrderreportsService) Listtransactions(merchantId uint64, disbursementId string) *OrderreportsListtransactionsCall { c := &OrderreportsListtransactionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId c.disbursementId = disbursementId - c.urlParams_.Set("transactionStartDate", transactionStartDate) return c } @@ -19335,6 +18592,14 @@ func (c *OrderreportsListtransactionsCall) TransactionEndDate(transactionEndDate return c } +// TransactionStartDate sets the optional parameter +// "transactionStartDate": The first date in which transaction occurred. +// In ISO 8601 format. +func (c *OrderreportsListtransactionsCall) TransactionStartDate(transactionStartDate string) *OrderreportsListtransactionsCall { + c.urlParams_.Set("transactionStartDate", transactionStartDate) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -19372,7 +18637,7 @@ func (c *OrderreportsListtransactionsCall) Header() http.Header { func (c *OrderreportsListtransactionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19383,7 +18648,7 @@ func (c *OrderreportsListtransactionsCall) doRequest(alt string) (*http.Response var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderreports/disbursements/{disbursementId}/transactions") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/orderreports/disbursements/{disbursementId}/transactions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -19437,12 +18702,12 @@ func (c *OrderreportsListtransactionsCall) Do(opts ...googleapi.CallOption) (*Or return ret, nil // { // "description": "Retrieves a list of transactions for a disbursement from your Merchant Center account.", + // "flatPath": "content/v2/{merchantId}/orderreports/disbursements/{disbursementId}/transactions", // "httpMethod": "GET", // "id": "content.orderreports.listtransactions", // "parameterOrder": [ // "merchantId", - // "disbursementId", - // "transactionStartDate" + // "disbursementId" // ], // "parameters": { // "disbursementId": { @@ -19477,11 +18742,10 @@ func (c *OrderreportsListtransactionsCall) Do(opts ...googleapi.CallOption) (*Or // "transactionStartDate": { // "description": "The first date in which transaction occurred. In ISO 8601 format.", // "location": "query", - // "required": true, // "type": "string" // } // }, - // "path": "{merchantId}/orderreports/disbursements/{disbursementId}/transactions", + // "path": "content/v2/{merchantId}/orderreports/disbursements/{disbursementId}/transactions", // "response": { // "$ref": "OrderreportsListTransactionsResponse" // }, @@ -19570,7 +18834,7 @@ func (c *OrderreturnsGetCall) Header() http.Header { func (c *OrderreturnsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19581,7 +18845,7 @@ func (c *OrderreturnsGetCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderreturns/{returnId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/orderreturns/{returnId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -19634,6 +18898,7 @@ func (c *OrderreturnsGetCall) Do(opts ...googleapi.CallOption) (*MerchantOrderRe return ret, nil // { // "description": "Retrieves an order return from your Merchant Center account.", + // "flatPath": "content/v2/{merchantId}/orderreturns/{returnId}", // "httpMethod": "GET", // "id": "content.orderreturns.get", // "parameterOrder": [ @@ -19655,7 +18920,7 @@ func (c *OrderreturnsGetCall) Do(opts ...googleapi.CallOption) (*MerchantOrderRe // "type": "string" // } // }, - // "path": "{merchantId}/orderreturns/{returnId}", + // "path": "content/v2/{merchantId}/orderreturns/{returnId}", // "response": { // "$ref": "MerchantOrderReturn" // }, @@ -19713,8 +18978,8 @@ func (c *OrderreturnsListCall) MaxResults(maxResults int64) *OrderreturnsListCal // the specified order. // // Possible values: -// "returnCreationTimeAsc" -// "returnCreationTimeDesc" +// "RETURN_CREATION_TIME_DESC" +// "RETURN_CREATION_TIME_ASC" func (c *OrderreturnsListCall) OrderBy(orderBy string) *OrderreturnsListCall { c.urlParams_.Set("orderBy", orderBy) return c @@ -19764,7 +19029,7 @@ func (c *OrderreturnsListCall) Header() http.Header { func (c *OrderreturnsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19775,7 +19040,7 @@ func (c *OrderreturnsListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderreturns") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/orderreturns") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -19827,6 +19092,7 @@ func (c *OrderreturnsListCall) Do(opts ...googleapi.CallOption) (*OrderreturnsLi return ret, nil // { // "description": "Lists order returns in your Merchant Center account.", + // "flatPath": "content/v2/{merchantId}/orderreturns", // "httpMethod": "GET", // "id": "content.orderreturns.list", // "parameterOrder": [ @@ -19859,8 +19125,8 @@ func (c *OrderreturnsListCall) Do(opts ...googleapi.CallOption) (*OrderreturnsLi // "orderBy": { // "description": "Return the results in the specified order.", // "enum": [ - // "returnCreationTimeAsc", - // "returnCreationTimeDesc" + // "RETURN_CREATION_TIME_DESC", + // "RETURN_CREATION_TIME_ASC" // ], // "enumDescriptions": [ // "", @@ -19875,7 +19141,7 @@ func (c *OrderreturnsListCall) Do(opts ...googleapi.CallOption) (*OrderreturnsLi // "type": "string" // } // }, - // "path": "{merchantId}/orderreturns", + // "path": "content/v2/{merchantId}/orderreturns", // "response": { // "$ref": "OrderreturnsListResponse" // }, @@ -19955,7 +19221,7 @@ func (c *OrdersAcknowledgeCall) Header() http.Header { func (c *OrdersAcknowledgeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19968,7 +19234,7 @@ func (c *OrdersAcknowledgeCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/acknowledge") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/orders/{orderId}/acknowledge") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -20021,6 +19287,7 @@ func (c *OrdersAcknowledgeCall) Do(opts ...googleapi.CallOption) (*OrdersAcknowl return ret, nil // { // "description": "Marks an order as acknowledged.", + // "flatPath": "content/v2/{merchantId}/orders/{orderId}/acknowledge", // "httpMethod": "POST", // "id": "content.orders.acknowledge", // "parameterOrder": [ @@ -20042,7 +19309,7 @@ func (c *OrdersAcknowledgeCall) Do(opts ...googleapi.CallOption) (*OrdersAcknowl // "type": "string" // } // }, - // "path": "{merchantId}/orders/{orderId}/acknowledge", + // "path": "content/v2/{merchantId}/orders/{orderId}/acknowledge", // "request": { // "$ref": "OrdersAcknowledgeRequest" // }, @@ -20103,7 +19370,7 @@ func (c *OrdersAdvancetestorderCall) Header() http.Header { func (c *OrdersAdvancetestorderCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20111,7 +19378,7 @@ func (c *OrdersAdvancetestorderCall) doRequest(alt string) (*http.Response, erro var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/testorders/{orderId}/advance") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/testorders/{orderId}/advance") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -20164,6 +19431,7 @@ func (c *OrdersAdvancetestorderCall) Do(opts ...googleapi.CallOption) (*OrdersAd return ret, nil // { // "description": "Sandbox only. Moves a test order from state \"`inProgress`\" to state \"`pendingShipment`\".", + // "flatPath": "content/v2/{merchantId}/testorders/{orderId}/advance", // "httpMethod": "POST", // "id": "content.orders.advancetestorder", // "parameterOrder": [ @@ -20185,7 +19453,7 @@ func (c *OrdersAdvancetestorderCall) Do(opts ...googleapi.CallOption) (*OrdersAd // "type": "string" // } // }, - // "path": "{merchantId}/testorders/{orderId}/advance", + // "path": "content/v2/{merchantId}/testorders/{orderId}/advance", // "response": { // "$ref": "OrdersAdvanceTestOrderResponse" // }, @@ -20244,7 +19512,7 @@ func (c *OrdersCancelCall) Header() http.Header { func (c *OrdersCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20257,7 +19525,7 @@ func (c *OrdersCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/cancel") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/orders/{orderId}/cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -20310,6 +19578,7 @@ func (c *OrdersCancelCall) Do(opts ...googleapi.CallOption) (*OrdersCancelRespon return ret, nil // { // "description": "Cancels all line items in an order, making a full refund.", + // "flatPath": "content/v2/{merchantId}/orders/{orderId}/cancel", // "httpMethod": "POST", // "id": "content.orders.cancel", // "parameterOrder": [ @@ -20331,7 +19600,7 @@ func (c *OrdersCancelCall) Do(opts ...googleapi.CallOption) (*OrdersCancelRespon // "type": "string" // } // }, - // "path": "{merchantId}/orders/{orderId}/cancel", + // "path": "content/v2/{merchantId}/orders/{orderId}/cancel", // "request": { // "$ref": "OrdersCancelRequest" // }, @@ -20393,7 +19662,7 @@ func (c *OrdersCancellineitemCall) Header() http.Header { func (c *OrdersCancellineitemCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20406,7 +19675,7 @@ func (c *OrdersCancellineitemCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/cancelLineItem") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/orders/{orderId}/cancelLineItem") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -20459,6 +19728,7 @@ func (c *OrdersCancellineitemCall) Do(opts ...googleapi.CallOption) (*OrdersCanc return ret, nil // { // "description": "Cancels a line item, making a full refund.", + // "flatPath": "content/v2/{merchantId}/orders/{orderId}/cancelLineItem", // "httpMethod": "POST", // "id": "content.orders.cancellineitem", // "parameterOrder": [ @@ -20480,7 +19750,7 @@ func (c *OrdersCancellineitemCall) Do(opts ...googleapi.CallOption) (*OrdersCanc // "type": "string" // } // }, - // "path": "{merchantId}/orders/{orderId}/cancelLineItem", + // "path": "content/v2/{merchantId}/orders/{orderId}/cancelLineItem", // "request": { // "$ref": "OrdersCancelLineItemRequest" // }, @@ -20543,7 +19813,7 @@ func (c *OrdersCanceltestorderbycustomerCall) Header() http.Header { func (c *OrdersCanceltestorderbycustomerCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20556,7 +19826,7 @@ func (c *OrdersCanceltestorderbycustomerCall) doRequest(alt string) (*http.Respo reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/testorders/{orderId}/cancelByCustomer") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/testorders/{orderId}/cancelByCustomer") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -20610,6 +19880,7 @@ func (c *OrdersCanceltestorderbycustomerCall) Do(opts ...googleapi.CallOption) ( return ret, nil // { // "description": "Sandbox only. Cancels a test order for customer-initiated cancellation.", + // "flatPath": "content/v2/{merchantId}/testorders/{orderId}/cancelByCustomer", // "httpMethod": "POST", // "id": "content.orders.canceltestorderbycustomer", // "parameterOrder": [ @@ -20631,7 +19902,7 @@ func (c *OrdersCanceltestorderbycustomerCall) Do(opts ...googleapi.CallOption) ( // "type": "string" // } // }, - // "path": "{merchantId}/testorders/{orderId}/cancelByCustomer", + // "path": "content/v2/{merchantId}/testorders/{orderId}/cancelByCustomer", // "request": { // "$ref": "OrdersCancelTestOrderByCustomerRequest" // }, @@ -20691,7 +19962,7 @@ func (c *OrdersCreatetestorderCall) Header() http.Header { func (c *OrdersCreatetestorderCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20704,7 +19975,7 @@ func (c *OrdersCreatetestorderCall) doRequest(alt string) (*http.Response, error reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/testorders") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/testorders") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -20756,6 +20027,7 @@ func (c *OrdersCreatetestorderCall) Do(opts ...googleapi.CallOption) (*OrdersCre return ret, nil // { // "description": "Sandbox only. Creates a test order.", + // "flatPath": "content/v2/{merchantId}/testorders", // "httpMethod": "POST", // "id": "content.orders.createtestorder", // "parameterOrder": [ @@ -20770,7 +20042,7 @@ func (c *OrdersCreatetestorderCall) Do(opts ...googleapi.CallOption) (*OrdersCre // "type": "string" // } // }, - // "path": "{merchantId}/testorders", + // "path": "content/v2/{merchantId}/testorders", // "request": { // "$ref": "OrdersCreateTestOrderRequest" // }, @@ -20832,7 +20104,7 @@ func (c *OrdersCreatetestreturnCall) Header() http.Header { func (c *OrdersCreatetestreturnCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20845,7 +20117,7 @@ func (c *OrdersCreatetestreturnCall) doRequest(alt string) (*http.Response, erro reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/testreturn") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/orders/{orderId}/testreturn") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -20898,6 +20170,7 @@ func (c *OrdersCreatetestreturnCall) Do(opts ...googleapi.CallOption) (*OrdersCr return ret, nil // { // "description": "Sandbox only. Creates a test return.", + // "flatPath": "content/v2/{merchantId}/orders/{orderId}/testreturn", // "httpMethod": "POST", // "id": "content.orders.createtestreturn", // "parameterOrder": [ @@ -20919,7 +20192,7 @@ func (c *OrdersCreatetestreturnCall) Do(opts ...googleapi.CallOption) (*OrdersCr // "type": "string" // } // }, - // "path": "{merchantId}/orders/{orderId}/testreturn", + // "path": "content/v2/{merchantId}/orders/{orderId}/testreturn", // "request": { // "$ref": "OrdersCreateTestReturnRequest" // }, @@ -20978,7 +20251,7 @@ func (c *OrdersCustombatchCall) Header() http.Header { func (c *OrdersCustombatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20991,7 +20264,7 @@ func (c *OrdersCustombatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "orders/batch") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/orders/batch") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -21040,9 +20313,12 @@ func (c *OrdersCustombatchCall) Do(opts ...googleapi.CallOption) (*OrdersCustomB return ret, nil // { // "description": "Retrieves or modifies multiple orders in a single request.", + // "flatPath": "content/v2/orders/batch", // "httpMethod": "POST", // "id": "content.orders.custombatch", - // "path": "orders/batch", + // "parameterOrder": [], + // "parameters": {}, + // "path": "content/v2/orders/batch", // "request": { // "$ref": "OrdersCustomBatchRequest" // }, @@ -21113,7 +20389,7 @@ func (c *OrdersGetCall) Header() http.Header { func (c *OrdersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21124,7 +20400,7 @@ func (c *OrdersGetCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/orders/{orderId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -21177,6 +20453,7 @@ func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { return ret, nil // { // "description": "Retrieves an order from your Merchant Center account.", + // "flatPath": "content/v2/{merchantId}/orders/{orderId}", // "httpMethod": "GET", // "id": "content.orders.get", // "parameterOrder": [ @@ -21198,7 +20475,7 @@ func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { // "type": "string" // } // }, - // "path": "{merchantId}/orders/{orderId}", + // "path": "content/v2/{merchantId}/orders/{orderId}", // "response": { // "$ref": "Order" // }, @@ -21266,7 +20543,7 @@ func (c *OrdersGetbymerchantorderidCall) Header() http.Header { func (c *OrdersGetbymerchantorderidCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21277,7 +20554,7 @@ func (c *OrdersGetbymerchantorderidCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/ordersbymerchantid/{merchantOrderId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/ordersbymerchantid/{merchantOrderId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -21331,6 +20608,7 @@ func (c *OrdersGetbymerchantorderidCall) Do(opts ...googleapi.CallOption) (*Orde return ret, nil // { // "description": "Retrieves an order using merchant order ID.", + // "flatPath": "content/v2/{merchantId}/ordersbymerchantid/{merchantOrderId}", // "httpMethod": "GET", // "id": "content.orders.getbymerchantorderid", // "parameterOrder": [ @@ -21352,7 +20630,7 @@ func (c *OrdersGetbymerchantorderidCall) Do(opts ...googleapi.CallOption) (*Orde // "type": "string" // } // }, - // "path": "{merchantId}/ordersbymerchantid/{merchantOrderId}", + // "path": "content/v2/{merchantId}/ordersbymerchantid/{merchantOrderId}", // "response": { // "$ref": "OrdersGetByMerchantOrderIdResponse" // }, @@ -21428,7 +20706,7 @@ func (c *OrdersGettestordertemplateCall) Header() http.Header { func (c *OrdersGettestordertemplateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21439,7 +20717,7 @@ func (c *OrdersGettestordertemplateCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/testordertemplates/{templateName}") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/testordertemplates/{templateName}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -21493,6 +20771,7 @@ func (c *OrdersGettestordertemplateCall) Do(opts ...googleapi.CallOption) (*Orde return ret, nil // { // "description": "Sandbox only. Retrieves an order template that can be used to quickly create a new order in sandbox.", + // "flatPath": "content/v2/{merchantId}/testordertemplates/{templateName}", // "httpMethod": "GET", // "id": "content.orders.gettestordertemplate", // "parameterOrder": [ @@ -21515,11 +20794,11 @@ func (c *OrdersGettestordertemplateCall) Do(opts ...googleapi.CallOption) (*Orde // "templateName": { // "description": "The name of the template to retrieve.", // "enum": [ - // "template1", - // "template1a", - // "template1b", - // "template2", - // "template3" + // "TEMPLATE1", + // "TEMPLATE2", + // "TEMPLATE1A", + // "TEMPLATE1B", + // "TEMPLATE3" // ], // "enumDescriptions": [ // "", @@ -21533,7 +20812,7 @@ func (c *OrdersGettestordertemplateCall) Do(opts ...googleapi.CallOption) (*Orde // "type": "string" // } // }, - // "path": "{merchantId}/testordertemplates/{templateName}", + // "path": "content/v2/{merchantId}/testordertemplates/{templateName}", // "response": { // "$ref": "OrdersGetTestOrderTemplateResponse" // }, @@ -21558,12 +20837,12 @@ type OrdersInstorerefundlineitemCall struct { // Instorerefundlineitem: Deprecated. Notifies that item return and // refund was handled directly by merchant outside of Google payments -// processing (e.g. cash refund done in store). -// Note: We recommend calling the returnrefundlineitem method to refund -// in-store returns. We will issue the refund directly to the customer. -// This helps to prevent possible differences arising between merchant -// and Google transaction records. We also recommend having the point of -// sale system communicate with Google to ensure that customers do not +// processing (e.g. cash refund done in store). Note: We recommend +// calling the returnrefundlineitem method to refund in-store returns. +// We will issue the refund directly to the customer. This helps to +// prevent possible differences arising between merchant and Google +// transaction records. We also recommend having the point of sale +// system communicate with Google to ensure that customers do not // receive a double refund by first refunding via Google then via an // in-store return. func (r *OrdersService) Instorerefundlineitem(merchantId uint64, orderId string, ordersinstorerefundlineitemrequest *OrdersInStoreRefundLineItemRequest) *OrdersInstorerefundlineitemCall { @@ -21601,7 +20880,7 @@ func (c *OrdersInstorerefundlineitemCall) Header() http.Header { func (c *OrdersInstorerefundlineitemCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21614,7 +20893,7 @@ func (c *OrdersInstorerefundlineitemCall) doRequest(alt string) (*http.Response, reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/inStoreRefundLineItem") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/orders/{orderId}/inStoreRefundLineItem") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -21667,7 +20946,8 @@ func (c *OrdersInstorerefundlineitemCall) Do(opts ...googleapi.CallOption) (*Ord } return ret, nil // { - // "description": "Deprecated. Notifies that item return and refund was handled directly by merchant outside of Google payments processing (e.g. cash refund done in store).\nNote: We recommend calling the returnrefundlineitem method to refund in-store returns. We will issue the refund directly to the customer. This helps to prevent possible differences arising between merchant and Google transaction records. We also recommend having the point of sale system communicate with Google to ensure that customers do not receive a double refund by first refunding via Google then via an in-store return.", + // "description": "Deprecated. Notifies that item return and refund was handled directly by merchant outside of Google payments processing (e.g. cash refund done in store). Note: We recommend calling the returnrefundlineitem method to refund in-store returns. We will issue the refund directly to the customer. This helps to prevent possible differences arising between merchant and Google transaction records. We also recommend having the point of sale system communicate with Google to ensure that customers do not receive a double refund by first refunding via Google then via an in-store return.", + // "flatPath": "content/v2/{merchantId}/orders/{orderId}/inStoreRefundLineItem", // "httpMethod": "POST", // "id": "content.orders.instorerefundlineitem", // "parameterOrder": [ @@ -21689,7 +20969,7 @@ func (c *OrdersInstorerefundlineitemCall) Do(opts ...googleapi.CallOption) (*Ord // "type": "string" // } // }, - // "path": "{merchantId}/orders/{orderId}/inStoreRefundLineItem", + // "path": "content/v2/{merchantId}/orders/{orderId}/inStoreRefundLineItem", // "request": { // "$ref": "OrdersInStoreRefundLineItemRequest" // }, @@ -21724,10 +21004,9 @@ func (r *OrdersService) List(merchantId uint64) *OrdersListCall { // Acknowledged sets the optional parameter "acknowledged": Obtains // orders that match the acknowledgement status. When set to true, // obtains orders that have been acknowledged. When false, obtains -// orders that have not been acknowledged. -// We recommend using this filter set to `false`, in conjunction with -// the `acknowledge` call, such that only un-acknowledged orders are -// returned. +// orders that have not been acknowledged. We recommend using this +// filter set to `false`, in conjunction with the `acknowledge` call, +// such that only un-acknowledged orders are returned. func (c *OrdersListCall) Acknowledged(acknowledged bool) *OrdersListCall { c.urlParams_.Set("acknowledged", fmt.Sprint(acknowledged)) return c @@ -21743,11 +21022,8 @@ func (c *OrdersListCall) MaxResults(maxResults int64) *OrdersListCall { } // OrderBy sets the optional parameter "orderBy": Order results by -// placement date in descending or ascending order. -// -// Acceptable values are: -// - placedDateAsc -// - placedDateDesc +// placement date in descending or ascending order. Acceptable values +// are: - placedDateAsc - placedDateDesc func (c *OrdersListCall) OrderBy(orderBy string) *OrdersListCall { c.urlParams_.Set("orderBy", orderBy) return c @@ -21782,17 +21058,17 @@ func (c *OrdersListCall) PlacedDateStart(placedDateStart string) *OrdersListCall // `delivered`, `partiallyReturned`, `returned`, and `canceled`. // // Possible values: -// "active" -// "canceled" -// "completed" -// "delivered" -// "inProgress" -// "partiallyDelivered" -// "partiallyReturned" -// "partiallyShipped" -// "pendingShipment" -// "returned" -// "shipped" +// "ACTIVE" +// "COMPLETED" +// "CANCELED" +// "IN_PROGRESS" +// "PENDING_SHIPMENT" +// "PARTIALLY_SHIPPED" +// "SHIPPED" +// "PARTIALLY_DELIVERED" +// "DELIVERED" +// "PARTIALLY_RETURNED" +// "RETURNED" func (c *OrdersListCall) Statuses(statuses ...string) *OrdersListCall { c.urlParams_.SetMulti("statuses", append([]string{}, statuses...)) return c @@ -21835,7 +21111,7 @@ func (c *OrdersListCall) Header() http.Header { func (c *OrdersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21846,7 +21122,7 @@ func (c *OrdersListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/orders") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -21898,6 +21174,7 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, return ret, nil // { // "description": "Lists the orders in your Merchant Center account.", + // "flatPath": "content/v2/{merchantId}/orders", // "httpMethod": "GET", // "id": "content.orders.list", // "parameterOrder": [ @@ -21905,7 +21182,7 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, // ], // "parameters": { // "acknowledged": { - // "description": "Obtains orders that match the acknowledgement status. When set to true, obtains orders that have been acknowledged. When false, obtains orders that have not been acknowledged.\nWe recommend using this filter set to `false`, in conjunction with the `acknowledge` call, such that only un-acknowledged orders are returned.", + // "description": "Obtains orders that match the acknowledgement status. When set to true, obtains orders that have been acknowledged. When false, obtains orders that have not been acknowledged. We recommend using this filter set to `false`, in conjunction with the `acknowledge` call, such that only un-acknowledged orders are returned. ", // "location": "query", // "type": "boolean" // }, @@ -21923,7 +21200,7 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, // "type": "string" // }, // "orderBy": { - // "description": "Order results by placement date in descending or ascending order.\n\nAcceptable values are:\n- placedDateAsc\n- placedDateDesc", + // "description": "Order results by placement date in descending or ascending order. Acceptable values are: - placedDateAsc - placedDateDesc ", // "location": "query", // "type": "string" // }, @@ -21945,17 +21222,17 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, // "statuses": { // "description": "Obtains orders that match any of the specified statuses. Please note that `active` is a shortcut for `pendingShipment` and `partiallyShipped`, and `completed` is a shortcut for `shipped`, `partiallyDelivered`, `delivered`, `partiallyReturned`, `returned`, and `canceled`.", // "enum": [ - // "active", - // "canceled", - // "completed", - // "delivered", - // "inProgress", - // "partiallyDelivered", - // "partiallyReturned", - // "partiallyShipped", - // "pendingShipment", - // "returned", - // "shipped" + // "ACTIVE", + // "COMPLETED", + // "CANCELED", + // "IN_PROGRESS", + // "PENDING_SHIPMENT", + // "PARTIALLY_SHIPPED", + // "SHIPPED", + // "PARTIALLY_DELIVERED", + // "DELIVERED", + // "PARTIALLY_RETURNED", + // "RETURNED" // ], // "enumDescriptions": [ // "", @@ -21975,7 +21252,7 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, // "type": "string" // } // }, - // "path": "{merchantId}/orders", + // "path": "content/v2/{merchantId}/orders", // "response": { // "$ref": "OrdersListResponse" // }, @@ -22055,7 +21332,7 @@ func (c *OrdersRefundCall) Header() http.Header { func (c *OrdersRefundCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22068,7 +21345,7 @@ func (c *OrdersRefundCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/refund") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/orders/{orderId}/refund") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -22121,6 +21398,7 @@ func (c *OrdersRefundCall) Do(opts ...googleapi.CallOption) (*OrdersRefundRespon return ret, nil // { // "description": "Deprecated, please use returnRefundLineItem instead.", + // "flatPath": "content/v2/{merchantId}/orders/{orderId}/refund", // "httpMethod": "POST", // "id": "content.orders.refund", // "parameterOrder": [ @@ -22142,7 +21420,7 @@ func (c *OrdersRefundCall) Do(opts ...googleapi.CallOption) (*OrdersRefundRespon // "type": "string" // } // }, - // "path": "{merchantId}/orders/{orderId}/refund", + // "path": "content/v2/{merchantId}/orders/{orderId}/refund", // "request": { // "$ref": "OrdersRefundRequest" // }, @@ -22204,7 +21482,7 @@ func (c *OrdersRejectreturnlineitemCall) Header() http.Header { func (c *OrdersRejectreturnlineitemCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22217,7 +21495,7 @@ func (c *OrdersRejectreturnlineitemCall) doRequest(alt string) (*http.Response, reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/rejectReturnLineItem") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/orders/{orderId}/rejectReturnLineItem") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -22271,6 +21549,7 @@ func (c *OrdersRejectreturnlineitemCall) Do(opts ...googleapi.CallOption) (*Orde return ret, nil // { // "description": "Rejects return on an line item.", + // "flatPath": "content/v2/{merchantId}/orders/{orderId}/rejectReturnLineItem", // "httpMethod": "POST", // "id": "content.orders.rejectreturnlineitem", // "parameterOrder": [ @@ -22292,7 +21571,7 @@ func (c *OrdersRejectreturnlineitemCall) Do(opts ...googleapi.CallOption) (*Orde // "type": "string" // } // }, - // "path": "{merchantId}/orders/{orderId}/rejectReturnLineItem", + // "path": "content/v2/{merchantId}/orders/{orderId}/rejectReturnLineItem", // "request": { // "$ref": "OrdersRejectReturnLineItemRequest" // }, @@ -22354,7 +21633,7 @@ func (c *OrdersReturnlineitemCall) Header() http.Header { func (c *OrdersReturnlineitemCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22367,7 +21646,7 @@ func (c *OrdersReturnlineitemCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/returnLineItem") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/orders/{orderId}/returnLineItem") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -22420,6 +21699,7 @@ func (c *OrdersReturnlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersRetu return ret, nil // { // "description": "Returns a line item.", + // "flatPath": "content/v2/{merchantId}/orders/{orderId}/returnLineItem", // "httpMethod": "POST", // "id": "content.orders.returnlineitem", // "parameterOrder": [ @@ -22441,7 +21721,7 @@ func (c *OrdersReturnlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersRetu // "type": "string" // } // }, - // "path": "{merchantId}/orders/{orderId}/returnLineItem", + // "path": "content/v2/{merchantId}/orders/{orderId}/returnLineItem", // "request": { // "$ref": "OrdersReturnLineItemRequest" // }, @@ -22510,7 +21790,7 @@ func (c *OrdersReturnrefundlineitemCall) Header() http.Header { func (c *OrdersReturnrefundlineitemCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22523,7 +21803,7 @@ func (c *OrdersReturnrefundlineitemCall) doRequest(alt string) (*http.Response, reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/returnRefundLineItem") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/orders/{orderId}/returnRefundLineItem") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -22577,6 +21857,7 @@ func (c *OrdersReturnrefundlineitemCall) Do(opts ...googleapi.CallOption) (*Orde return ret, nil // { // "description": "Returns and refunds a line item. Note that this method can only be called on fully shipped orders. Please also note that the Orderreturns API is the preferred way to handle returns after you receive a return from a customer. You can use Orderreturns.list or Orderreturns.get to search for the return, and then use Orderreturns.processreturn to issue the refund. If the return cannot be found, then we recommend using this API to issue a refund.", + // "flatPath": "content/v2/{merchantId}/orders/{orderId}/returnRefundLineItem", // "httpMethod": "POST", // "id": "content.orders.returnrefundlineitem", // "parameterOrder": [ @@ -22598,7 +21879,7 @@ func (c *OrdersReturnrefundlineitemCall) Do(opts ...googleapi.CallOption) (*Orde // "type": "string" // } // }, - // "path": "{merchantId}/orders/{orderId}/returnRefundLineItem", + // "path": "content/v2/{merchantId}/orders/{orderId}/returnRefundLineItem", // "request": { // "$ref": "OrdersReturnRefundLineItemRequest" // }, @@ -22665,7 +21946,7 @@ func (c *OrdersSetlineitemmetadataCall) Header() http.Header { func (c *OrdersSetlineitemmetadataCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22678,7 +21959,7 @@ func (c *OrdersSetlineitemmetadataCall) doRequest(alt string) (*http.Response, e reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/setLineItemMetadata") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/orders/{orderId}/setLineItemMetadata") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -22732,6 +22013,7 @@ func (c *OrdersSetlineitemmetadataCall) Do(opts ...googleapi.CallOption) (*Order return ret, nil // { // "description": "Sets (or overrides if it already exists) merchant provided annotations in the form of key-value pairs. A common use case would be to supply us with additional structured information about a line item that cannot be provided via other methods. Submitted key-value pairs can be retrieved as part of the orders resource.", + // "flatPath": "content/v2/{merchantId}/orders/{orderId}/setLineItemMetadata", // "httpMethod": "POST", // "id": "content.orders.setlineitemmetadata", // "parameterOrder": [ @@ -22753,7 +22035,7 @@ func (c *OrdersSetlineitemmetadataCall) Do(opts ...googleapi.CallOption) (*Order // "type": "string" // } // }, - // "path": "{merchantId}/orders/{orderId}/setLineItemMetadata", + // "path": "content/v2/{merchantId}/orders/{orderId}/setLineItemMetadata", // "request": { // "$ref": "OrdersSetLineItemMetadataRequest" // }, @@ -22815,7 +22097,7 @@ func (c *OrdersShiplineitemsCall) Header() http.Header { func (c *OrdersShiplineitemsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22828,7 +22110,7 @@ func (c *OrdersShiplineitemsCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/shipLineItems") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/orders/{orderId}/shipLineItems") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -22881,6 +22163,7 @@ func (c *OrdersShiplineitemsCall) Do(opts ...googleapi.CallOption) (*OrdersShipL return ret, nil // { // "description": "Marks line item(s) as shipped.", + // "flatPath": "content/v2/{merchantId}/orders/{orderId}/shipLineItems", // "httpMethod": "POST", // "id": "content.orders.shiplineitems", // "parameterOrder": [ @@ -22902,7 +22185,7 @@ func (c *OrdersShiplineitemsCall) Do(opts ...googleapi.CallOption) (*OrdersShipL // "type": "string" // } // }, - // "path": "{merchantId}/orders/{orderId}/shipLineItems", + // "path": "content/v2/{merchantId}/orders/{orderId}/shipLineItems", // "request": { // "$ref": "OrdersShipLineItemsRequest" // }, @@ -22965,7 +22248,7 @@ func (c *OrdersUpdatelineitemshippingdetailsCall) Header() http.Header { func (c *OrdersUpdatelineitemshippingdetailsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22978,7 +22261,7 @@ func (c *OrdersUpdatelineitemshippingdetailsCall) doRequest(alt string) (*http.R reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/updateLineItemShippingDetails") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/orders/{orderId}/updateLineItemShippingDetails") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -23033,6 +22316,7 @@ func (c *OrdersUpdatelineitemshippingdetailsCall) Do(opts ...googleapi.CallOptio return ret, nil // { // "description": "Updates ship by and delivery by dates for a line item.", + // "flatPath": "content/v2/{merchantId}/orders/{orderId}/updateLineItemShippingDetails", // "httpMethod": "POST", // "id": "content.orders.updatelineitemshippingdetails", // "parameterOrder": [ @@ -23054,7 +22338,7 @@ func (c *OrdersUpdatelineitemshippingdetailsCall) Do(opts ...googleapi.CallOptio // "type": "string" // } // }, - // "path": "{merchantId}/orders/{orderId}/updateLineItemShippingDetails", + // "path": "content/v2/{merchantId}/orders/{orderId}/updateLineItemShippingDetails", // "request": { // "$ref": "OrdersUpdateLineItemShippingDetailsRequest" // }, @@ -23117,7 +22401,7 @@ func (c *OrdersUpdatemerchantorderidCall) Header() http.Header { func (c *OrdersUpdatemerchantorderidCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23130,7 +22414,7 @@ func (c *OrdersUpdatemerchantorderidCall) doRequest(alt string) (*http.Response, reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/updateMerchantOrderId") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/orders/{orderId}/updateMerchantOrderId") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -23184,6 +22468,7 @@ func (c *OrdersUpdatemerchantorderidCall) Do(opts ...googleapi.CallOption) (*Ord return ret, nil // { // "description": "Updates the merchant order ID for a given order.", + // "flatPath": "content/v2/{merchantId}/orders/{orderId}/updateMerchantOrderId", // "httpMethod": "POST", // "id": "content.orders.updatemerchantorderid", // "parameterOrder": [ @@ -23205,7 +22490,7 @@ func (c *OrdersUpdatemerchantorderidCall) Do(opts ...googleapi.CallOption) (*Ord // "type": "string" // } // }, - // "path": "{merchantId}/orders/{orderId}/updateMerchantOrderId", + // "path": "content/v2/{merchantId}/orders/{orderId}/updateMerchantOrderId", // "request": { // "$ref": "OrdersUpdateMerchantOrderIdRequest" // }, @@ -23268,7 +22553,7 @@ func (c *OrdersUpdateshipmentCall) Header() http.Header { func (c *OrdersUpdateshipmentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23281,7 +22566,7 @@ func (c *OrdersUpdateshipmentCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/updateShipment") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/orders/{orderId}/updateShipment") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -23334,6 +22619,7 @@ func (c *OrdersUpdateshipmentCall) Do(opts ...googleapi.CallOption) (*OrdersUpda return ret, nil // { // "description": "Updates a shipment's status, carrier, and/or tracking ID.", + // "flatPath": "content/v2/{merchantId}/orders/{orderId}/updateShipment", // "httpMethod": "POST", // "id": "content.orders.updateshipment", // "parameterOrder": [ @@ -23355,7 +22641,7 @@ func (c *OrdersUpdateshipmentCall) Do(opts ...googleapi.CallOption) (*OrdersUpda // "type": "string" // } // }, - // "path": "{merchantId}/orders/{orderId}/updateShipment", + // "path": "content/v2/{merchantId}/orders/{orderId}/updateShipment", // "request": { // "$ref": "OrdersUpdateShipmentRequest" // }, @@ -23421,7 +22707,7 @@ func (c *PosCustombatchCall) Header() http.Header { func (c *PosCustombatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23434,7 +22720,7 @@ func (c *PosCustombatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "pos/batch") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/pos/batch") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -23483,8 +22769,10 @@ func (c *PosCustombatchCall) Do(opts ...googleapi.CallOption) (*PosCustomBatchRe return ret, nil // { // "description": "Batches multiple POS-related calls in a single request.", + // "flatPath": "content/v2/pos/batch", // "httpMethod": "POST", // "id": "content.pos.custombatch", + // "parameterOrder": [], // "parameters": { // "dryRun": { // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", @@ -23492,7 +22780,7 @@ func (c *PosCustombatchCall) Do(opts ...googleapi.CallOption) (*PosCustomBatchRe // "type": "boolean" // } // }, - // "path": "pos/batch", + // "path": "content/v2/pos/batch", // "request": { // "$ref": "PosCustomBatchRequest" // }, @@ -23562,7 +22850,7 @@ func (c *PosDeleteCall) Header() http.Header { func (c *PosDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23570,7 +22858,7 @@ func (c *PosDeleteCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/pos/{targetMerchantId}/store/{storeCode}") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/pos/{targetMerchantId}/store/{storeCode}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -23599,6 +22887,7 @@ func (c *PosDeleteCall) Do(opts ...googleapi.CallOption) error { return nil // { // "description": "Deletes a store for the given merchant.", + // "flatPath": "content/v2/{merchantId}/pos/{targetMerchantId}/store/{storeCode}", // "httpMethod": "DELETE", // "id": "content.pos.delete", // "parameterOrder": [ @@ -23633,7 +22922,7 @@ func (c *PosDeleteCall) Do(opts ...googleapi.CallOption) error { // "type": "string" // } // }, - // "path": "{merchantId}/pos/{targetMerchantId}/store/{storeCode}", + // "path": "content/v2/{merchantId}/pos/{targetMerchantId}/store/{storeCode}", // "scopes": [ // "https://www.googleapis.com/auth/content" // ] @@ -23700,7 +22989,7 @@ func (c *PosGetCall) Header() http.Header { func (c *PosGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23711,7 +23000,7 @@ func (c *PosGetCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/pos/{targetMerchantId}/store/{storeCode}") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/pos/{targetMerchantId}/store/{storeCode}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -23765,6 +23054,7 @@ func (c *PosGetCall) Do(opts ...googleapi.CallOption) (*PosStore, error) { return ret, nil // { // "description": "Retrieves information about the given store.", + // "flatPath": "content/v2/{merchantId}/pos/{targetMerchantId}/store/{storeCode}", // "httpMethod": "GET", // "id": "content.pos.get", // "parameterOrder": [ @@ -23794,7 +23084,7 @@ func (c *PosGetCall) Do(opts ...googleapi.CallOption) (*PosStore, error) { // "type": "string" // } // }, - // "path": "{merchantId}/pos/{targetMerchantId}/store/{storeCode}", + // "path": "content/v2/{merchantId}/pos/{targetMerchantId}/store/{storeCode}", // "response": { // "$ref": "PosStore" // }, @@ -23861,7 +23151,7 @@ func (c *PosInsertCall) Header() http.Header { func (c *PosInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23874,7 +23164,7 @@ func (c *PosInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/pos/{targetMerchantId}/store") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/pos/{targetMerchantId}/store") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -23927,6 +23217,7 @@ func (c *PosInsertCall) Do(opts ...googleapi.CallOption) (*PosStore, error) { return ret, nil // { // "description": "Creates a store for the given merchant.", + // "flatPath": "content/v2/{merchantId}/pos/{targetMerchantId}/store", // "httpMethod": "POST", // "id": "content.pos.insert", // "parameterOrder": [ @@ -23954,7 +23245,7 @@ func (c *PosInsertCall) Do(opts ...googleapi.CallOption) (*PosStore, error) { // "type": "string" // } // }, - // "path": "{merchantId}/pos/{targetMerchantId}/store", + // "path": "content/v2/{merchantId}/pos/{targetMerchantId}/store", // "request": { // "$ref": "PosStore" // }, @@ -24024,7 +23315,7 @@ func (c *PosInventoryCall) Header() http.Header { func (c *PosInventoryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24037,7 +23328,7 @@ func (c *PosInventoryCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/pos/{targetMerchantId}/inventory") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/pos/{targetMerchantId}/inventory") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -24090,6 +23381,7 @@ func (c *PosInventoryCall) Do(opts ...googleapi.CallOption) (*PosInventoryRespon return ret, nil // { // "description": "Submit inventory for the given merchant.", + // "flatPath": "content/v2/{merchantId}/pos/{targetMerchantId}/inventory", // "httpMethod": "POST", // "id": "content.pos.inventory", // "parameterOrder": [ @@ -24117,7 +23409,7 @@ func (c *PosInventoryCall) Do(opts ...googleapi.CallOption) (*PosInventoryRespon // "type": "string" // } // }, - // "path": "{merchantId}/pos/{targetMerchantId}/inventory", + // "path": "content/v2/{merchantId}/pos/{targetMerchantId}/inventory", // "request": { // "$ref": "PosInventoryRequest" // }, @@ -24188,7 +23480,7 @@ func (c *PosListCall) Header() http.Header { func (c *PosListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24199,7 +23491,7 @@ func (c *PosListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/pos/{targetMerchantId}/store") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/pos/{targetMerchantId}/store") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -24252,6 +23544,7 @@ func (c *PosListCall) Do(opts ...googleapi.CallOption) (*PosListResponse, error) return ret, nil // { // "description": "Lists the stores of the target merchant.", + // "flatPath": "content/v2/{merchantId}/pos/{targetMerchantId}/store", // "httpMethod": "GET", // "id": "content.pos.list", // "parameterOrder": [ @@ -24274,7 +23567,7 @@ func (c *PosListCall) Do(opts ...googleapi.CallOption) (*PosListResponse, error) // "type": "string" // } // }, - // "path": "{merchantId}/pos/{targetMerchantId}/store", + // "path": "content/v2/{merchantId}/pos/{targetMerchantId}/store", // "response": { // "$ref": "PosListResponse" // }, @@ -24341,7 +23634,7 @@ func (c *PosSaleCall) Header() http.Header { func (c *PosSaleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24354,7 +23647,7 @@ func (c *PosSaleCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/pos/{targetMerchantId}/sale") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/pos/{targetMerchantId}/sale") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -24407,6 +23700,7 @@ func (c *PosSaleCall) Do(opts ...googleapi.CallOption) (*PosSaleResponse, error) return ret, nil // { // "description": "Submit a sale event for the given merchant.", + // "flatPath": "content/v2/{merchantId}/pos/{targetMerchantId}/sale", // "httpMethod": "POST", // "id": "content.pos.sale", // "parameterOrder": [ @@ -24434,7 +23728,7 @@ func (c *PosSaleCall) Do(opts ...googleapi.CallOption) (*PosSaleResponse, error) // "type": "string" // } // }, - // "path": "{merchantId}/pos/{targetMerchantId}/sale", + // "path": "content/v2/{merchantId}/pos/{targetMerchantId}/sale", // "request": { // "$ref": "PosSaleRequest" // }, @@ -24501,7 +23795,7 @@ func (c *ProductsCustombatchCall) Header() http.Header { func (c *ProductsCustombatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24514,7 +23808,7 @@ func (c *ProductsCustombatchCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "products/batch") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/products/batch") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -24563,8 +23857,10 @@ func (c *ProductsCustombatchCall) Do(opts ...googleapi.CallOption) (*ProductsCus return ret, nil // { // "description": "Retrieves, inserts, and deletes multiple products in a single request.", + // "flatPath": "content/v2/products/batch", // "httpMethod": "POST", // "id": "content.products.custombatch", + // "parameterOrder": [], // "parameters": { // "dryRun": { // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", @@ -24572,7 +23868,7 @@ func (c *ProductsCustombatchCall) Do(opts ...googleapi.CallOption) (*ProductsCus // "type": "boolean" // } // }, - // "path": "products/batch", + // "path": "content/v2/products/batch", // "request": { // "$ref": "ProductsCustomBatchRequest" // }, @@ -24640,7 +23936,7 @@ func (c *ProductsDeleteCall) Header() http.Header { func (c *ProductsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24648,7 +23944,7 @@ func (c *ProductsDeleteCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/products/{productId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/products/{productId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -24676,6 +23972,7 @@ func (c *ProductsDeleteCall) Do(opts ...googleapi.CallOption) error { return nil // { // "description": "Deletes a product from your Merchant Center account.", + // "flatPath": "content/v2/{merchantId}/products/{productId}", // "httpMethod": "DELETE", // "id": "content.products.delete", // "parameterOrder": [ @@ -24702,7 +23999,7 @@ func (c *ProductsDeleteCall) Do(opts ...googleapi.CallOption) error { // "type": "string" // } // }, - // "path": "{merchantId}/products/{productId}", + // "path": "content/v2/{merchantId}/products/{productId}", // "scopes": [ // "https://www.googleapis.com/auth/content" // ] @@ -24767,7 +24064,7 @@ func (c *ProductsGetCall) Header() http.Header { func (c *ProductsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24778,7 +24075,7 @@ func (c *ProductsGetCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/products/{productId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/products/{productId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -24831,6 +24128,7 @@ func (c *ProductsGetCall) Do(opts ...googleapi.CallOption) (*Product, error) { return ret, nil // { // "description": "Retrieves a product from your Merchant Center account.", + // "flatPath": "content/v2/{merchantId}/products/{productId}", // "httpMethod": "GET", // "id": "content.products.get", // "parameterOrder": [ @@ -24852,7 +24150,7 @@ func (c *ProductsGetCall) Do(opts ...googleapi.CallOption) (*Product, error) { // "type": "string" // } // }, - // "path": "{merchantId}/products/{productId}", + // "path": "content/v2/{merchantId}/products/{productId}", // "response": { // "$ref": "Product" // }, @@ -24919,7 +24217,7 @@ func (c *ProductsInsertCall) Header() http.Header { func (c *ProductsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24932,7 +24230,7 @@ func (c *ProductsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/products") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/products") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -24984,6 +24282,7 @@ func (c *ProductsInsertCall) Do(opts ...googleapi.CallOption) (*Product, error) return ret, nil // { // "description": "Uploads a product to your Merchant Center account. If an item with the same channel, contentLanguage, offerId, and targetCountry already exists, this method updates that entry.", + // "flatPath": "content/v2/{merchantId}/products", // "httpMethod": "POST", // "id": "content.products.insert", // "parameterOrder": [ @@ -25003,7 +24302,7 @@ func (c *ProductsInsertCall) Do(opts ...googleapi.CallOption) (*Product, error) // "type": "string" // } // }, - // "path": "{merchantId}/products", + // "path": "content/v2/{merchantId}/products", // "request": { // "$ref": "Product" // }, @@ -25098,7 +24397,7 @@ func (c *ProductsListCall) Header() http.Header { func (c *ProductsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25109,7 +24408,7 @@ func (c *ProductsListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/products") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/products") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -25161,6 +24460,7 @@ func (c *ProductsListCall) Do(opts ...googleapi.CallOption) (*ProductsListRespon return ret, nil // { // "description": "Lists the products in your Merchant Center account. The response might contain fewer items than specified by maxResults. Rely on nextPageToken to determine if there are more items to be requested.", + // "flatPath": "content/v2/{merchantId}/products", // "httpMethod": "GET", // "id": "content.products.list", // "parameterOrder": [ @@ -25191,7 +24491,7 @@ func (c *ProductsListCall) Do(opts ...googleapi.CallOption) (*ProductsListRespon // "type": "string" // } // }, - // "path": "{merchantId}/products", + // "path": "content/v2/{merchantId}/products", // "response": { // "$ref": "ProductsListResponse" // }, @@ -25276,7 +24576,7 @@ func (c *ProductstatusesCustombatchCall) Header() http.Header { func (c *ProductstatusesCustombatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25289,7 +24589,7 @@ func (c *ProductstatusesCustombatchCall) doRequest(alt string) (*http.Response, reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "productstatuses/batch") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/productstatuses/batch") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -25339,8 +24639,10 @@ func (c *ProductstatusesCustombatchCall) Do(opts ...googleapi.CallOption) (*Prod return ret, nil // { // "description": "Gets the statuses of multiple products in a single request.", + // "flatPath": "content/v2/productstatuses/batch", // "httpMethod": "POST", // "id": "content.productstatuses.custombatch", + // "parameterOrder": [], // "parameters": { // "includeAttributes": { // "description": "Flag to include full product data in the results of this request. The default value is false.", @@ -25348,7 +24650,7 @@ func (c *ProductstatusesCustombatchCall) Do(opts ...googleapi.CallOption) (*Prod // "type": "boolean" // } // }, - // "path": "productstatuses/batch", + // "path": "content/v2/productstatuses/batch", // "request": { // "$ref": "ProductstatusesCustomBatchRequest" // }, @@ -25435,7 +24737,7 @@ func (c *ProductstatusesGetCall) Header() http.Header { func (c *ProductstatusesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25446,7 +24748,7 @@ func (c *ProductstatusesGetCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/productstatuses/{productId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/productstatuses/{productId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -25499,6 +24801,7 @@ func (c *ProductstatusesGetCall) Do(opts ...googleapi.CallOption) (*ProductStatu return ret, nil // { // "description": "Gets the status of a product from your Merchant Center account.", + // "flatPath": "content/v2/{merchantId}/productstatuses/{productId}", // "httpMethod": "GET", // "id": "content.productstatuses.get", // "parameterOrder": [ @@ -25531,7 +24834,7 @@ func (c *ProductstatusesGetCall) Do(opts ...googleapi.CallOption) (*ProductStatu // "type": "string" // } // }, - // "path": "{merchantId}/productstatuses/{productId}", + // "path": "content/v2/{merchantId}/productstatuses/{productId}", // "response": { // "$ref": "ProductStatus" // }, @@ -25638,7 +24941,7 @@ func (c *ProductstatusesListCall) Header() http.Header { func (c *ProductstatusesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25649,7 +24952,7 @@ func (c *ProductstatusesListCall) doRequest(alt string) (*http.Response, error) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/productstatuses") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/productstatuses") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -25701,6 +25004,7 @@ func (c *ProductstatusesListCall) Do(opts ...googleapi.CallOption) (*Productstat return ret, nil // { // "description": "Lists the statuses of the products in your Merchant Center account.", + // "flatPath": "content/v2/{merchantId}/productstatuses", // "httpMethod": "GET", // "id": "content.productstatuses.list", // "parameterOrder": [ @@ -25742,7 +25046,7 @@ func (c *ProductstatusesListCall) Do(opts ...googleapi.CallOption) (*Productstat // "type": "string" // } // }, - // "path": "{merchantId}/productstatuses", + // "path": "content/v2/{merchantId}/productstatuses", // "response": { // "$ref": "ProductstatusesListResponse" // }, @@ -25827,7 +25131,7 @@ func (c *ShippingsettingsCustombatchCall) Header() http.Header { func (c *ShippingsettingsCustombatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25840,7 +25144,7 @@ func (c *ShippingsettingsCustombatchCall) doRequest(alt string) (*http.Response, reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "shippingsettings/batch") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/shippingsettings/batch") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -25890,8 +25194,10 @@ func (c *ShippingsettingsCustombatchCall) Do(opts ...googleapi.CallOption) (*Shi return ret, nil // { // "description": "Retrieves and updates the shipping settings of multiple accounts in a single request.", + // "flatPath": "content/v2/shippingsettings/batch", // "httpMethod": "POST", // "id": "content.shippingsettings.custombatch", + // "parameterOrder": [], // "parameters": { // "dryRun": { // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", @@ -25899,7 +25205,7 @@ func (c *ShippingsettingsCustombatchCall) Do(opts ...googleapi.CallOption) (*Shi // "type": "boolean" // } // }, - // "path": "shippingsettings/batch", + // "path": "content/v2/shippingsettings/batch", // "request": { // "$ref": "ShippingsettingsCustomBatchRequest" // }, @@ -25970,7 +25276,7 @@ func (c *ShippingsettingsGetCall) Header() http.Header { func (c *ShippingsettingsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25981,7 +25287,7 @@ func (c *ShippingsettingsGetCall) doRequest(alt string) (*http.Response, error) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/shippingsettings/{accountId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/shippingsettings/{accountId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -26034,6 +25340,7 @@ func (c *ShippingsettingsGetCall) Do(opts ...googleapi.CallOption) (*ShippingSet return ret, nil // { // "description": "Retrieves the shipping settings of the account.", + // "flatPath": "content/v2/{merchantId}/shippingsettings/{accountId}", // "httpMethod": "GET", // "id": "content.shippingsettings.get", // "parameterOrder": [ @@ -26056,7 +25363,7 @@ func (c *ShippingsettingsGetCall) Do(opts ...googleapi.CallOption) (*ShippingSet // "type": "string" // } // }, - // "path": "{merchantId}/shippingsettings/{accountId}", + // "path": "content/v2/{merchantId}/shippingsettings/{accountId}", // "response": { // "$ref": "ShippingSettings" // }, @@ -26123,7 +25430,7 @@ func (c *ShippingsettingsGetsupportedcarriersCall) Header() http.Header { func (c *ShippingsettingsGetsupportedcarriersCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26134,7 +25441,7 @@ func (c *ShippingsettingsGetsupportedcarriersCall) doRequest(alt string) (*http. var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/supportedCarriers") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/supportedCarriers") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -26188,6 +25495,7 @@ func (c *ShippingsettingsGetsupportedcarriersCall) Do(opts ...googleapi.CallOpti return ret, nil // { // "description": "Retrieves supported carriers and carrier services for an account.", + // "flatPath": "content/v2/{merchantId}/supportedCarriers", // "httpMethod": "GET", // "id": "content.shippingsettings.getsupportedcarriers", // "parameterOrder": [ @@ -26202,7 +25510,7 @@ func (c *ShippingsettingsGetsupportedcarriersCall) Do(opts ...googleapi.CallOpti // "type": "string" // } // }, - // "path": "{merchantId}/supportedCarriers", + // "path": "content/v2/{merchantId}/supportedCarriers", // "response": { // "$ref": "ShippingsettingsGetSupportedCarriersResponse" // }, @@ -26268,7 +25576,7 @@ func (c *ShippingsettingsGetsupportedholidaysCall) Header() http.Header { func (c *ShippingsettingsGetsupportedholidaysCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26279,7 +25587,7 @@ func (c *ShippingsettingsGetsupportedholidaysCall) doRequest(alt string) (*http. var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/supportedHolidays") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/supportedHolidays") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -26333,6 +25641,7 @@ func (c *ShippingsettingsGetsupportedholidaysCall) Do(opts ...googleapi.CallOpti return ret, nil // { // "description": "Retrieves supported holidays for an account.", + // "flatPath": "content/v2/{merchantId}/supportedHolidays", // "httpMethod": "GET", // "id": "content.shippingsettings.getsupportedholidays", // "parameterOrder": [ @@ -26347,7 +25656,7 @@ func (c *ShippingsettingsGetsupportedholidaysCall) Do(opts ...googleapi.CallOpti // "type": "string" // } // }, - // "path": "{merchantId}/supportedHolidays", + // "path": "content/v2/{merchantId}/supportedHolidays", // "response": { // "$ref": "ShippingsettingsGetSupportedHolidaysResponse" // }, @@ -26414,7 +25723,7 @@ func (c *ShippingsettingsGetsupportedpickupservicesCall) Header() http.Header { func (c *ShippingsettingsGetsupportedpickupservicesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26425,7 +25734,7 @@ func (c *ShippingsettingsGetsupportedpickupservicesCall) doRequest(alt string) ( var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/supportedPickupServices") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/supportedPickupServices") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -26479,6 +25788,7 @@ func (c *ShippingsettingsGetsupportedpickupservicesCall) Do(opts ...googleapi.Ca return ret, nil // { // "description": "Retrieves supported pickup services for an account.", + // "flatPath": "content/v2/{merchantId}/supportedPickupServices", // "httpMethod": "GET", // "id": "content.shippingsettings.getsupportedpickupservices", // "parameterOrder": [ @@ -26493,7 +25803,7 @@ func (c *ShippingsettingsGetsupportedpickupservicesCall) Do(opts ...googleapi.Ca // "type": "string" // } // }, - // "path": "{merchantId}/supportedPickupServices", + // "path": "content/v2/{merchantId}/supportedPickupServices", // "response": { // "$ref": "ShippingsettingsGetSupportedPickupServicesResponse" // }, @@ -26575,7 +25885,7 @@ func (c *ShippingsettingsListCall) Header() http.Header { func (c *ShippingsettingsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26586,7 +25896,7 @@ func (c *ShippingsettingsListCall) doRequest(alt string) (*http.Response, error) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/shippingsettings") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/shippingsettings") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -26638,6 +25948,7 @@ func (c *ShippingsettingsListCall) Do(opts ...googleapi.CallOption) (*Shippingse return ret, nil // { // "description": "Lists the shipping settings of the sub-accounts in your Merchant Center account.", + // "flatPath": "content/v2/{merchantId}/shippingsettings", // "httpMethod": "GET", // "id": "content.shippingsettings.list", // "parameterOrder": [ @@ -26663,7 +25974,7 @@ func (c *ShippingsettingsListCall) Do(opts ...googleapi.CallOption) (*Shippingse // "type": "string" // } // }, - // "path": "{merchantId}/shippingsettings", + // "path": "content/v2/{merchantId}/shippingsettings", // "response": { // "$ref": "ShippingsettingsListResponse" // }, @@ -26752,7 +26063,7 @@ func (c *ShippingsettingsUpdateCall) Header() http.Header { func (c *ShippingsettingsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201016") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26765,7 +26076,7 @@ func (c *ShippingsettingsUpdateCall) doRequest(alt string) (*http.Response, erro reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/shippingsettings/{accountId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "content/v2/{merchantId}/shippingsettings/{accountId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -26818,6 +26129,7 @@ func (c *ShippingsettingsUpdateCall) Do(opts ...googleapi.CallOption) (*Shipping return ret, nil // { // "description": "Updates the shipping settings of the account. Any fields that are not provided are deleted from the resource.", + // "flatPath": "content/v2/{merchantId}/shippingsettings/{accountId}", // "httpMethod": "PUT", // "id": "content.shippingsettings.update", // "parameterOrder": [ @@ -26845,7 +26157,7 @@ func (c *ShippingsettingsUpdateCall) Do(opts ...googleapi.CallOption) (*Shipping // "type": "string" // } // }, - // "path": "{merchantId}/shippingsettings/{accountId}", + // "path": "content/v2/{merchantId}/shippingsettings/{accountId}", // "request": { // "$ref": "ShippingSettings" // }, diff --git a/customsearch/v1/customsearch-gen.go b/customsearch/v1/customsearch-gen.go index dd889ebf4bb..bcc213d072a 100644 --- a/customsearch/v1/customsearch-gen.go +++ b/customsearch/v1/customsearch-gen.go @@ -1747,7 +1747,7 @@ func (c *CseListCall) Header() http.Header { func (c *CseListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2515,7 +2515,7 @@ func (c *CseSiterestrictListCall) Header() http.Header { func (c *CseSiterestrictListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/datacatalog/v1beta1/datacatalog-api.json b/datacatalog/v1beta1/datacatalog-api.json index 1e61b117eb5..41fcc621c35 100644 --- a/datacatalog/v1beta1/datacatalog-api.json +++ b/datacatalog/v1beta1/datacatalog-api.json @@ -1808,17 +1808,13 @@ } } }, - "revision": "20200918", + "revision": "20201107", "rootUrl": "https://datacatalog.googleapis.com/", "schemas": { "Binding": { "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { - "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", - "type": "string" - }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." @@ -2003,12 +1999,14 @@ "enum": [ "INTEGRATED_SYSTEM_UNSPECIFIED", "BIGQUERY", - "CLOUD_PUBSUB" + "CLOUD_PUBSUB", + "DPMS" ], "enumDescriptions": [ "Default unknown system.", "BigQuery.", - "Cloud Pub/Sub." + "Cloud Pub/Sub.", + "Dataproc Metastore - Managed Hive Metastore." ], "readOnly": true, "type": "string" @@ -2129,7 +2127,6 @@ "id": "GoogleCloudDatacatalogV1beta1FieldTypeEnumType", "properties": { "allowedValues": { - "description": "The set of allowed values for this enum. This set must not be empty, the display names of the values in this set must not be empty and the display names of the values must be case-insensitively unique within this set. The order of items in this list is preserved. This field can be used to Required on create; optional on update. The set of allowed values for this enum. This set must not be empty, the display names of the values in this set must not be empty and the display names of the values must be case-insensitively unique within this set. Currently, enum values can only be added to the list of allowed values. Deletion and renaming of enum values are not supported. Can have up to 500 allowed values.", "items": { "$ref": "GoogleCloudDatacatalogV1beta1FieldTypeEnumTypeEnumValue" }, @@ -2539,6 +2536,21 @@ "description": "Message capturing a taxonomy and its policy tag hierarchy as a nested proto. Used for taxonomy import/export and mutation.", "id": "GoogleCloudDatacatalogV1beta1SerializedTaxonomy", "properties": { + "activatedPolicyTypes": { + "description": "A list of policy types that are activated for a taxonomy.", + "items": { + "enum": [ + "POLICY_TYPE_UNSPECIFIED", + "FINE_GRAINED_ACCESS_CONTROL" + ], + "enumDescriptions": [ + "Unspecified policy type.", + "Fine grained access control policy, which enables access control on tagged resources." + ], + "type": "string" + }, + "type": "array" + }, "description": { "description": "Description of the serialized taxonomy. The length of the description is limited to 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description.", "type": "string" @@ -2700,6 +2712,10 @@ "description": "The template for an individual field within a tag template.", "id": "GoogleCloudDatacatalogV1beta1TagTemplateField", "properties": { + "description": { + "description": "The description for this field. Defaults to an empty string.", + "type": "string" + }, "displayName": { "description": "The display name for this field. Defaults to an empty string.", "type": "string" @@ -2756,6 +2772,17 @@ "description": "Output only. Resource name of this taxonomy, whose format is: \"projects/{project_number}/locations/{location_id}/taxonomies/{id}\".", "readOnly": true, "type": "string" + }, + "policyTagCount": { + "description": "Output only. Number of policy tags contained in this taxonomy.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "taxonomyTimestamps": { + "$ref": "GoogleCloudDatacatalogV1beta1SystemTimestamps", + "description": "Output only. Timestamps about this taxonomy. Only create_time and update_time are used.", + "readOnly": true } }, "type": "object" diff --git a/datacatalog/v1beta1/datacatalog-gen.go b/datacatalog/v1beta1/datacatalog-gen.go index b2a17560332..b3ae34ee3a3 100644 --- a/datacatalog/v1beta1/datacatalog-gen.go +++ b/datacatalog/v1beta1/datacatalog-gen.go @@ -290,10 +290,6 @@ type ProjectsLocationsTaxonomiesPolicyTagsService struct { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. - BindingId string `json:"bindingId,omitempty"` - // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -343,7 +339,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "BindingId") to + // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -351,7 +347,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BindingId") to include in + // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -676,6 +672,7 @@ type GoogleCloudDatacatalogV1beta1Entry struct { // "INTEGRATED_SYSTEM_UNSPECIFIED" - Default unknown system. // "BIGQUERY" - BigQuery. // "CLOUD_PUBSUB" - Cloud Pub/Sub. + // "DPMS" - Dataproc Metastore - Managed Hive Metastore. IntegratedSystem string `json:"integratedSystem,omitempty"` // LinkedResource: The resource this metadata entry refers to. For @@ -895,17 +892,6 @@ func (s *GoogleCloudDatacatalogV1beta1FieldType) MarshalJSON() ([]byte, error) { } type GoogleCloudDatacatalogV1beta1FieldTypeEnumType struct { - // AllowedValues: The set of allowed values for this enum. This set must - // not be empty, the display names of the values in this set must not be - // empty and the display names of the values must be case-insensitively - // unique within this set. The order of items in this list is preserved. - // This field can be used to Required on create; optional on update. The - // set of allowed values for this enum. This set must not be empty, the - // display names of the values in this set must not be empty and the - // display names of the values must be case-insensitively unique within - // this set. Currently, enum values can only be added to the list of - // allowed values. Deletion and renaming of enum values are not - // supported. Can have up to 500 allowed values. AllowedValues []*GoogleCloudDatacatalogV1beta1FieldTypeEnumTypeEnumValue `json:"allowedValues,omitempty"` // ForceSendFields is a list of field names (e.g. "AllowedValues") to @@ -1751,6 +1737,15 @@ func (s *GoogleCloudDatacatalogV1beta1SerializedPolicyTag) MarshalJSON() ([]byte // taxonomy and its policy tag hierarchy as a nested proto. Used for // taxonomy import/export and mutation. type GoogleCloudDatacatalogV1beta1SerializedTaxonomy struct { + // ActivatedPolicyTypes: A list of policy types that are activated for a + // taxonomy. + // + // Possible values: + // "POLICY_TYPE_UNSPECIFIED" - Unspecified policy type. + // "FINE_GRAINED_ACCESS_CONTROL" - Fine grained access control policy, + // which enables access control on tagged resources. + ActivatedPolicyTypes []string `json:"activatedPolicyTypes,omitempty"` + // Description: Description of the serialized taxonomy. The length of // the description is limited to 2000 bytes when encoded in UTF-8. If // not set, defaults to an empty description. @@ -1764,20 +1759,22 @@ type GoogleCloudDatacatalogV1beta1SerializedTaxonomy struct { // any. PolicyTags []*GoogleCloudDatacatalogV1beta1SerializedPolicyTag `json:"policyTags,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. + // "ActivatedPolicyTypes") to unconditionally include in API requests. + // By default, fields with empty values are omitted from API requests. + // However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActivatedPolicyTypes") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -2072,6 +2069,10 @@ func (s *GoogleCloudDatacatalogV1beta1TagTemplate) MarshalJSON() ([]byte, error) // GoogleCloudDatacatalogV1beta1TagTemplateField: The template for an // individual field within a tag template. type GoogleCloudDatacatalogV1beta1TagTemplateField struct { + // Description: The description for this field. Defaults to an empty + // string. + Description string `json:"description,omitempty"` + // DisplayName: The display name for this field. Defaults to an empty // string. DisplayName string `json:"displayName,omitempty"` @@ -2099,7 +2100,7 @@ type GoogleCloudDatacatalogV1beta1TagTemplateField struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to + // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -2107,7 +2108,7 @@ type GoogleCloudDatacatalogV1beta1TagTemplateField struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DisplayName") to include + // NullFields is a list of field names (e.g. "Description") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as @@ -2154,6 +2155,14 @@ type GoogleCloudDatacatalogV1beta1Taxonomy struct { // "projects/{project_number}/locations/{location_id}/taxonomies/{id}". Name string `json:"name,omitempty"` + // PolicyTagCount: Output only. Number of policy tags contained in this + // taxonomy. + PolicyTagCount int64 `json:"policyTagCount,omitempty"` + + // TaxonomyTimestamps: Output only. Timestamps about this taxonomy. Only + // create_time and update_time are used. + TaxonomyTimestamps *GoogleCloudDatacatalogV1beta1SystemTimestamps `json:"taxonomyTimestamps,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` @@ -2461,7 +2470,7 @@ func (c *CatalogSearchCall) Header() http.Header { func (c *CatalogSearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2644,7 +2653,7 @@ func (c *EntriesLookupCall) Header() http.Header { func (c *EntriesLookupCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2792,7 +2801,7 @@ func (c *ProjectsLocationsEntryGroupsCreateCall) Header() http.Header { func (c *ProjectsLocationsEntryGroupsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2948,7 +2957,7 @@ func (c *ProjectsLocationsEntryGroupsDeleteCall) Header() http.Header { func (c *ProjectsLocationsEntryGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3101,7 +3110,7 @@ func (c *ProjectsLocationsEntryGroupsGetCall) Header() http.Header { func (c *ProjectsLocationsEntryGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3253,7 +3262,7 @@ func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3418,7 +3427,7 @@ func (c *ProjectsLocationsEntryGroupsListCall) Header() http.Header { func (c *ProjectsLocationsEntryGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3599,7 +3608,7 @@ func (c *ProjectsLocationsEntryGroupsPatchCall) Header() http.Header { func (c *ProjectsLocationsEntryGroupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3754,7 +3763,7 @@ func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3901,7 +3910,7 @@ func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) Header() http.Heade func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4054,7 +4063,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) Header() http.Header { func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4203,7 +4212,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) Header() http.Header { func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4344,7 +4353,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesGetCall) Header() http.Header { func (c *ProjectsLocationsEntryGroupsEntriesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4490,7 +4499,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall) Header() http.Head func (c *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4664,7 +4673,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesListCall) Header() http.Header { func (c *ProjectsLocationsEntryGroupsEntriesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4857,7 +4866,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) Header() http.Header { func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5011,7 +5020,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall) Header() htt func (c *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5158,7 +5167,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesTagsCreateCall) Header() http.Header func (c *ProjectsLocationsEntryGroupsEntriesTagsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5296,7 +5305,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall) Header() http.Header func (c *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5452,7 +5461,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) Header() http.Header { func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5629,7 +5638,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) Header() http.Header func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5782,7 +5791,7 @@ func (c *ProjectsLocationsEntryGroupsTagsCreateCall) Header() http.Header { func (c *ProjectsLocationsEntryGroupsTagsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5920,7 +5929,7 @@ func (c *ProjectsLocationsEntryGroupsTagsDeleteCall) Header() http.Header { func (c *ProjectsLocationsEntryGroupsTagsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6076,7 +6085,7 @@ func (c *ProjectsLocationsEntryGroupsTagsListCall) Header() http.Header { func (c *ProjectsLocationsEntryGroupsTagsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6253,7 +6262,7 @@ func (c *ProjectsLocationsEntryGroupsTagsPatchCall) Header() http.Header { func (c *ProjectsLocationsEntryGroupsTagsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6410,7 +6419,7 @@ func (c *ProjectsLocationsTagTemplatesCreateCall) Header() http.Header { func (c *ProjectsLocationsTagTemplatesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6568,7 +6577,7 @@ func (c *ProjectsLocationsTagTemplatesDeleteCall) Header() http.Header { func (c *ProjectsLocationsTagTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6714,7 +6723,7 @@ func (c *ProjectsLocationsTagTemplatesGetCall) Header() http.Header { func (c *ProjectsLocationsTagTemplatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6861,7 +6870,7 @@ func (c *ProjectsLocationsTagTemplatesGetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsTagTemplatesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7017,7 +7026,7 @@ func (c *ProjectsLocationsTagTemplatesPatchCall) Header() http.Header { func (c *ProjectsLocationsTagTemplatesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7173,7 +7182,7 @@ func (c *ProjectsLocationsTagTemplatesSetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsTagTemplatesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7320,7 +7329,7 @@ func (c *ProjectsLocationsTagTemplatesTestIamPermissionsCall) Header() http.Head func (c *ProjectsLocationsTagTemplatesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7475,7 +7484,7 @@ func (c *ProjectsLocationsTagTemplatesFieldsCreateCall) Header() http.Header { func (c *ProjectsLocationsTagTemplatesFieldsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7633,7 +7642,7 @@ func (c *ProjectsLocationsTagTemplatesFieldsDeleteCall) Header() http.Header { func (c *ProjectsLocationsTagTemplatesFieldsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7788,7 +7797,7 @@ func (c *ProjectsLocationsTagTemplatesFieldsPatchCall) Header() http.Header { func (c *ProjectsLocationsTagTemplatesFieldsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7940,7 +7949,7 @@ func (c *ProjectsLocationsTagTemplatesFieldsRenameCall) Header() http.Header { func (c *ProjectsLocationsTagTemplatesFieldsRenameCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8085,7 +8094,7 @@ func (c *ProjectsLocationsTagTemplatesFieldsEnumValuesRenameCall) Header() http. func (c *ProjectsLocationsTagTemplatesFieldsEnumValuesRenameCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8227,7 +8236,7 @@ func (c *ProjectsLocationsTaxonomiesCreateCall) Header() http.Header { func (c *ProjectsLocationsTaxonomiesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8367,7 +8376,7 @@ func (c *ProjectsLocationsTaxonomiesDeleteCall) Header() http.Header { func (c *ProjectsLocationsTaxonomiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8524,7 +8533,7 @@ func (c *ProjectsLocationsTaxonomiesExportCall) Header() http.Header { func (c *ProjectsLocationsTaxonomiesExportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8681,7 +8690,7 @@ func (c *ProjectsLocationsTaxonomiesGetCall) Header() http.Header { func (c *ProjectsLocationsTaxonomiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8817,7 +8826,7 @@ func (c *ProjectsLocationsTaxonomiesGetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsTaxonomiesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8959,7 +8968,7 @@ func (c *ProjectsLocationsTaxonomiesImportCall) Header() http.Header { func (c *ProjectsLocationsTaxonomiesImportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9127,7 +9136,7 @@ func (c *ProjectsLocationsTaxonomiesListCall) Header() http.Header { func (c *ProjectsLocationsTaxonomiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9305,7 +9314,7 @@ func (c *ProjectsLocationsTaxonomiesPatchCall) Header() http.Header { func (c *ProjectsLocationsTaxonomiesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9452,7 +9461,7 @@ func (c *ProjectsLocationsTaxonomiesSetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsTaxonomiesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9593,7 +9602,7 @@ func (c *ProjectsLocationsTaxonomiesTestIamPermissionsCall) Header() http.Header func (c *ProjectsLocationsTaxonomiesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9733,7 +9742,7 @@ func (c *ProjectsLocationsTaxonomiesPolicyTagsCreateCall) Header() http.Header { func (c *ProjectsLocationsTaxonomiesPolicyTagsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9873,7 +9882,7 @@ func (c *ProjectsLocationsTaxonomiesPolicyTagsDeleteCall) Header() http.Header { func (c *ProjectsLocationsTaxonomiesPolicyTagsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10014,7 +10023,7 @@ func (c *ProjectsLocationsTaxonomiesPolicyTagsGetCall) Header() http.Header { func (c *ProjectsLocationsTaxonomiesPolicyTagsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10150,7 +10159,7 @@ func (c *ProjectsLocationsTaxonomiesPolicyTagsGetIamPolicyCall) Header() http.He func (c *ProjectsLocationsTaxonomiesPolicyTagsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10315,7 +10324,7 @@ func (c *ProjectsLocationsTaxonomiesPolicyTagsListCall) Header() http.Header { func (c *ProjectsLocationsTaxonomiesPolicyTagsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10497,7 +10506,7 @@ func (c *ProjectsLocationsTaxonomiesPolicyTagsPatchCall) Header() http.Header { func (c *ProjectsLocationsTaxonomiesPolicyTagsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10644,7 +10653,7 @@ func (c *ProjectsLocationsTaxonomiesPolicyTagsSetIamPolicyCall) Header() http.He func (c *ProjectsLocationsTaxonomiesPolicyTagsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10785,7 +10794,7 @@ func (c *ProjectsLocationsTaxonomiesPolicyTagsTestIamPermissionsCall) Header() h func (c *ProjectsLocationsTaxonomiesPolicyTagsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/dataflow/v1b3/dataflow-api.json b/dataflow/v1b3/dataflow-api.json index cdbf58664eb..8ec39a483bd 100644 --- a/dataflow/v1b3/dataflow-api.json +++ b/dataflow/v1b3/dataflow-api.json @@ -20,6 +20,7 @@ "basePath": "", "baseUrl": "https://dataflow.googleapis.com/", "batchPath": "batch", + "canonicalName": "Dataflow", "description": "Manages Google Cloud Dataflow projects on Google Cloud Platform.", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/dataflow", @@ -2442,7 +2443,7 @@ } } }, - "revision": "20200916", + "revision": "20201117", "rootUrl": "https://dataflow.googleapis.com/", "schemas": { "ApproximateProgress": { @@ -2780,6 +2781,10 @@ "description": "Container Spec.", "id": "ContainerSpec", "properties": { + "defaultEnvironment": { + "$ref": "FlexTemplateRuntimeEnvironment", + "description": "Default runtime environment for the job." + }, "image": { "description": "Name of the docker container image. E.g., gcr.io/project/some-image", "type": "string" @@ -3470,6 +3475,13 @@ "$ref": "StageSource" }, "type": "array" + }, + "prerequisiteStage": { + "description": "Other stages that must complete before this stage can run.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -4234,7 +4246,7 @@ "description": "The runtime environment for the FlexTemplate job" }, "jobName": { - "description": "Required. The job name to use for the created job.", + "description": "Required. The job name to use for the created job. For update job request, job name should be same as the existing running job.", "type": "string" }, "launchOptions": { @@ -4250,6 +4262,17 @@ }, "description": "The parameters for FlexTemplate. Ex. {\"num_workers\":\"5\"}", "type": "object" + }, + "transformNameMappings": { + "additionalProperties": { + "type": "string" + }, + "description": "Users need to set transform_name_mappings Ex:{\"oldTransformName\":\"newTransformName\",...}'", + "type": "object" + }, + "update": { + "description": "Set this to true if you are sending a request to update a running streaming job. When set, the job name should be the same as the running job.", + "type": "boolean" } }, "type": "object" diff --git a/dataflow/v1b3/dataflow-gen.go b/dataflow/v1b3/dataflow-gen.go index 4ed81d1fb5e..2b9606cc888 100644 --- a/dataflow/v1b3/dataflow-gen.go +++ b/dataflow/v1b3/dataflow-gen.go @@ -1032,6 +1032,9 @@ func (s *ConcatPosition) MarshalJSON() ([]byte, error) { // ContainerSpec: Container Spec. type ContainerSpec struct { + // DefaultEnvironment: Default runtime environment for the job. + DefaultEnvironment *FlexTemplateRuntimeEnvironment `json:"defaultEnvironment,omitempty"` + // Image: Name of the docker container image. E.g., // gcr.io/project/some-image Image string `json:"image,omitempty"` @@ -1043,20 +1046,21 @@ type ContainerSpec struct { // SdkInfo: Required. SDK info of the Flex Template. SdkInfo *SDKInfo `json:"sdkInfo,omitempty"` - // ForceSendFields is a list of field names (e.g. "Image") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "DefaultEnvironment") + // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Image") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DefaultEnvironment") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -2031,6 +2035,10 @@ type ExecutionStageSummary struct { // OutputSource: Output sources for this stage. OutputSource []*StageSource `json:"outputSource,omitempty"` + // PrerequisiteStage: Other stages that must complete before this stage + // can run. + PrerequisiteStage []string `json:"prerequisiteStage,omitempty"` + // ForceSendFields is a list of field names (e.g. "ComponentSource") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, @@ -3325,7 +3333,9 @@ type LaunchFlexTemplateParameter struct { // Environment: The runtime environment for the FlexTemplate job Environment *FlexTemplateRuntimeEnvironment `json:"environment,omitempty"` - // JobName: Required. The job name to use for the created job. + // JobName: Required. The job name to use for the created job. For + // update job request, job name should be same as the existing running + // job. JobName string `json:"jobName,omitempty"` // LaunchOptions: Launch options for this flex template job. This is a @@ -3336,6 +3346,15 @@ type LaunchFlexTemplateParameter struct { // Parameters: The parameters for FlexTemplate. Ex. {"num_workers":"5"} Parameters map[string]string `json:"parameters,omitempty"` + // TransformNameMappings: Users need to set transform_name_mappings + // Ex:{"oldTransformName":"newTransformName",...}' + TransformNameMappings map[string]string `json:"transformNameMappings,omitempty"` + + // Update: Set this to true if you are sending a request to update a + // running streaming job. When set, the job name should be the same as + // the running job. + Update bool `json:"update,omitempty"` + // ForceSendFields is a list of field names (e.g. "ContainerSpec") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, @@ -8272,7 +8291,7 @@ func (c *ProjectsDeleteSnapshotsCall) Header() http.Header { func (c *ProjectsDeleteSnapshotsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8416,7 +8435,7 @@ func (c *ProjectsWorkerMessagesCall) Header() http.Header { func (c *ProjectsWorkerMessagesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8560,7 +8579,7 @@ func (c *ProjectsCatalogTemplatesCommitCall) Header() http.Header { func (c *ProjectsCatalogTemplatesCommitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8700,7 +8719,7 @@ func (c *ProjectsCatalogTemplatesDeleteCall) Header() http.Header { func (c *ProjectsCatalogTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8844,7 +8863,7 @@ func (c *ProjectsCatalogTemplatesGetCall) Header() http.Header { func (c *ProjectsCatalogTemplatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8982,7 +9001,7 @@ func (c *ProjectsCatalogTemplatesLabelCall) Header() http.Header { func (c *ProjectsCatalogTemplatesLabelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9129,7 +9148,7 @@ func (c *ProjectsCatalogTemplatesTagCall) Header() http.Header { func (c *ProjectsCatalogTemplatesTagCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9272,7 +9291,7 @@ func (c *ProjectsCatalogTemplatesTemplateVersionsCreateCall) Header() http.Heade func (c *ProjectsCatalogTemplatesTemplateVersionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9485,7 +9504,7 @@ func (c *ProjectsJobsAggregatedCall) Header() http.Header { func (c *ProjectsJobsAggregatedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9731,7 +9750,7 @@ func (c *ProjectsJobsCreateCall) Header() http.Header { func (c *ProjectsJobsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9943,7 +9962,7 @@ func (c *ProjectsJobsGetCall) Header() http.Header { func (c *ProjectsJobsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10143,7 +10162,7 @@ func (c *ProjectsJobsGetMetricsCall) Header() http.Header { func (c *ProjectsJobsGetMetricsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10378,7 +10397,7 @@ func (c *ProjectsJobsListCall) Header() http.Header { func (c *ProjectsJobsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10588,7 +10607,7 @@ func (c *ProjectsJobsSnapshotCall) Header() http.Header { func (c *ProjectsJobsSnapshotCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10754,7 +10773,7 @@ func (c *ProjectsJobsUpdateCall) Header() http.Header { func (c *ProjectsJobsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10912,7 +10931,7 @@ func (c *ProjectsJobsDebugGetConfigCall) Header() http.Header { func (c *ProjectsJobsDebugGetConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11064,7 +11083,7 @@ func (c *ProjectsJobsDebugSendCaptureCall) Header() http.Header { func (c *ProjectsJobsDebugSendCaptureCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11307,7 +11326,7 @@ func (c *ProjectsJobsMessagesListCall) Header() http.Header { func (c *ProjectsJobsMessagesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11524,7 +11543,7 @@ func (c *ProjectsJobsWorkItemsLeaseCall) Header() http.Header { func (c *ProjectsJobsWorkItemsLeaseCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11677,7 +11696,7 @@ func (c *ProjectsJobsWorkItemsReportStatusCall) Header() http.Header { func (c *ProjectsJobsWorkItemsReportStatusCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11829,7 +11848,7 @@ func (c *ProjectsLocationsWorkerMessagesCall) Header() http.Header { func (c *ProjectsLocationsWorkerMessagesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11981,7 +12000,7 @@ func (c *ProjectsLocationsFlexTemplatesLaunchCall) Header() http.Header { func (c *ProjectsLocationsFlexTemplatesLaunchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12162,7 +12181,7 @@ func (c *ProjectsLocationsJobsCreateCall) Header() http.Header { func (c *ProjectsLocationsJobsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12370,7 +12389,7 @@ func (c *ProjectsLocationsJobsGetCall) Header() http.Header { func (c *ProjectsLocationsJobsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12572,7 +12591,7 @@ func (c *ProjectsLocationsJobsGetExecutionDetailsCall) Header() http.Header { func (c *ProjectsLocationsJobsGetExecutionDetailsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12783,7 +12802,7 @@ func (c *ProjectsLocationsJobsGetMetricsCall) Header() http.Header { func (c *ProjectsLocationsJobsGetMetricsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13014,7 +13033,7 @@ func (c *ProjectsLocationsJobsListCall) Header() http.Header { func (c *ProjectsLocationsJobsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13229,7 +13248,7 @@ func (c *ProjectsLocationsJobsSnapshotCall) Header() http.Header { func (c *ProjectsLocationsJobsSnapshotCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13396,7 +13415,7 @@ func (c *ProjectsLocationsJobsUpdateCall) Header() http.Header { func (c *ProjectsLocationsJobsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13559,7 +13578,7 @@ func (c *ProjectsLocationsJobsDebugGetConfigCall) Header() http.Header { func (c *ProjectsLocationsJobsDebugGetConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13721,7 +13740,7 @@ func (c *ProjectsLocationsJobsDebugSendCaptureCall) Header() http.Header { func (c *ProjectsLocationsJobsDebugSendCaptureCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13965,7 +13984,7 @@ func (c *ProjectsLocationsJobsMessagesListCall) Header() http.Header { func (c *ProjectsLocationsJobsMessagesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14196,7 +14215,7 @@ func (c *ProjectsLocationsJobsSnapshotsListCall) Header() http.Header { func (c *ProjectsLocationsJobsSnapshotsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14397,7 +14416,7 @@ func (c *ProjectsLocationsJobsStagesGetExecutionDetailsCall) Header() http.Heade func (c *ProjectsLocationsJobsStagesGetExecutionDetailsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14606,7 +14625,7 @@ func (c *ProjectsLocationsJobsWorkItemsLeaseCall) Header() http.Header { func (c *ProjectsLocationsJobsWorkItemsLeaseCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14769,7 +14788,7 @@ func (c *ProjectsLocationsJobsWorkItemsReportStatusCall) Header() http.Header { func (c *ProjectsLocationsJobsWorkItemsReportStatusCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14929,7 +14948,7 @@ func (c *ProjectsLocationsSnapshotsDeleteCall) Header() http.Header { func (c *ProjectsLocationsSnapshotsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15092,7 +15111,7 @@ func (c *ProjectsLocationsSnapshotsGetCall) Header() http.Header { func (c *ProjectsLocationsSnapshotsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15263,7 +15282,7 @@ func (c *ProjectsLocationsSnapshotsListCall) Header() http.Header { func (c *ProjectsLocationsSnapshotsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15433,7 +15452,7 @@ func (c *ProjectsLocationsSqlValidateCall) Header() http.Header { func (c *ProjectsLocationsSqlValidateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15583,7 +15602,7 @@ func (c *ProjectsLocationsTemplatesCreateCall) Header() http.Header { func (c *ProjectsLocationsTemplatesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15763,7 +15782,7 @@ func (c *ProjectsLocationsTemplatesGetCall) Header() http.Header { func (c *ProjectsLocationsTemplatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15958,7 +15977,7 @@ func (c *ProjectsLocationsTemplatesLaunchCall) Header() http.Header { func (c *ProjectsLocationsTemplatesLaunchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16146,7 +16165,7 @@ func (c *ProjectsSnapshotsGetCall) Header() http.Header { func (c *ProjectsSnapshotsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16319,7 +16338,7 @@ func (c *ProjectsSnapshotsListCall) Header() http.Header { func (c *ProjectsSnapshotsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16493,7 +16512,7 @@ func (c *ProjectsTemplateVersionsListCall) Header() http.Header { func (c *ProjectsTemplateVersionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16661,7 +16680,7 @@ func (c *ProjectsTemplatesCreateCall) Header() http.Header { func (c *ProjectsTemplatesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16840,7 +16859,7 @@ func (c *ProjectsTemplatesGetCall) Header() http.Header { func (c *ProjectsTemplatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17039,7 +17058,7 @@ func (c *ProjectsTemplatesLaunchCall) Header() http.Header { func (c *ProjectsTemplatesLaunchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/datafusion/v1/datafusion-gen.go b/datafusion/v1/datafusion-gen.go index 5164eb117c8..00f38d7fb7f 100644 --- a/datafusion/v1/datafusion-gen.go +++ b/datafusion/v1/datafusion-gen.go @@ -1338,7 +1338,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1512,7 +1512,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1697,7 +1697,7 @@ func (c *ProjectsLocationsInstancesCreateCall) Header() http.Header { func (c *ProjectsLocationsInstancesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1840,7 +1840,7 @@ func (c *ProjectsLocationsInstancesDeleteCall) Header() http.Header { func (c *ProjectsLocationsInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1981,7 +1981,7 @@ func (c *ProjectsLocationsInstancesGetCall) Header() http.Header { func (c *ProjectsLocationsInstancesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2142,7 +2142,7 @@ func (c *ProjectsLocationsInstancesGetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsInstancesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2321,7 +2321,7 @@ func (c *ProjectsLocationsInstancesListCall) Header() http.Header { func (c *ProjectsLocationsInstancesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2510,7 +2510,7 @@ func (c *ProjectsLocationsInstancesPatchCall) Header() http.Header { func (c *ProjectsLocationsInstancesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2657,7 +2657,7 @@ func (c *ProjectsLocationsInstancesRestartCall) Header() http.Header { func (c *ProjectsLocationsInstancesRestartCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2799,7 +2799,7 @@ func (c *ProjectsLocationsInstancesSetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsInstancesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2944,7 +2944,7 @@ func (c *ProjectsLocationsInstancesTestIamPermissionsCall) Header() http.Header func (c *ProjectsLocationsInstancesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3093,7 +3093,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3234,7 +3234,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3377,7 +3377,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3551,7 +3551,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3758,7 +3758,7 @@ func (c *ProjectsLocationsVersionsListCall) Header() http.Header { func (c *ProjectsLocationsVersionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/datafusion/v1beta1/datafusion-gen.go b/datafusion/v1beta1/datafusion-gen.go index ed55b2b6eaa..c4d1a8def1b 100644 --- a/datafusion/v1beta1/datafusion-gen.go +++ b/datafusion/v1beta1/datafusion-gen.go @@ -1340,7 +1340,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1514,7 +1514,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1699,7 +1699,7 @@ func (c *ProjectsLocationsInstancesCreateCall) Header() http.Header { func (c *ProjectsLocationsInstancesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1842,7 +1842,7 @@ func (c *ProjectsLocationsInstancesDeleteCall) Header() http.Header { func (c *ProjectsLocationsInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1983,7 +1983,7 @@ func (c *ProjectsLocationsInstancesGetCall) Header() http.Header { func (c *ProjectsLocationsInstancesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2144,7 +2144,7 @@ func (c *ProjectsLocationsInstancesGetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsInstancesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2323,7 +2323,7 @@ func (c *ProjectsLocationsInstancesListCall) Header() http.Header { func (c *ProjectsLocationsInstancesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2512,7 +2512,7 @@ func (c *ProjectsLocationsInstancesPatchCall) Header() http.Header { func (c *ProjectsLocationsInstancesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2659,7 +2659,7 @@ func (c *ProjectsLocationsInstancesRestartCall) Header() http.Header { func (c *ProjectsLocationsInstancesRestartCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2801,7 +2801,7 @@ func (c *ProjectsLocationsInstancesSetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsInstancesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2946,7 +2946,7 @@ func (c *ProjectsLocationsInstancesTestIamPermissionsCall) Header() http.Header func (c *ProjectsLocationsInstancesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3087,7 +3087,7 @@ func (c *ProjectsLocationsInstancesUpgradeCall) Header() http.Header { func (c *ProjectsLocationsInstancesUpgradeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3236,7 +3236,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3377,7 +3377,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3520,7 +3520,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3694,7 +3694,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3901,7 +3901,7 @@ func (c *ProjectsLocationsVersionsListCall) Header() http.Header { func (c *ProjectsLocationsVersionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/datalabeling/v1beta1/datalabeling-api.json b/datalabeling/v1beta1/datalabeling-api.json new file mode 100644 index 00000000000..e88857390e4 --- /dev/null +++ b/datalabeling/v1beta1/datalabeling-api.json @@ -0,0 +1,5658 @@ +{ + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/cloud-platform": { + "description": "View and manage your data across Google Cloud Platform services" + } + } + } + }, + "basePath": "", + "baseUrl": "https://datalabeling.googleapis.com/", + "batchPath": "batch", + "canonicalName": "Data Labeling", + "description": "Public API for Google Cloud AI Data Labeling Service.", + "discoveryVersion": "v1", + "documentationLink": "https://cloud.google.com/data-labeling/docs/", + "fullyEncodeReservedExpansion": true, + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "id": "datalabeling:v1beta1", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://datalabeling.mtls.googleapis.com/", + "name": "datalabeling", + "ownerDomain": "google.com", + "ownerName": "Google", + "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, + "alt": { + "default": "json", + "description": "Data format for response.", + "enum": [ + "json", + "media", + "proto" + ], + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query", + "type": "string" + }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, + "fields": { + "description": "Selector specifying which fields to include in a partial response.", + "location": "query", + "type": "string" + }, + "key": { + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "location": "query", + "type": "string" + }, + "oauth_token": { + "description": "OAuth 2.0 token for the current user.", + "location": "query", + "type": "string" + }, + "prettyPrint": { + "default": "true", + "description": "Returns response with indentations and line breaks.", + "location": "query", + "type": "boolean" + }, + "quotaUser": { + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query", + "type": "string" + }, + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query", + "type": "string" + } + }, + "protocol": "rest", + "resources": { + "projects": { + "resources": { + "annotationSpecSets": { + "methods": { + "create": { + "description": "Creates an annotation spec set by providing a set of labels.", + "flatPath": "v1beta1/projects/{projectsId}/annotationSpecSets", + "httpMethod": "POST", + "id": "datalabeling.projects.annotationSpecSets.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. AnnotationSpecSet resource parent, format: projects/{project_id}", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/annotationSpecSets", + "request": { + "$ref": "GoogleCloudDatalabelingV1beta1CreateAnnotationSpecSetRequest" + }, + "response": { + "$ref": "GoogleCloudDatalabelingV1beta1AnnotationSpecSet" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an annotation spec set by resource name.", + "flatPath": "v1beta1/projects/{projectsId}/annotationSpecSets/{annotationSpecSetsId}", + "httpMethod": "DELETE", + "id": "datalabeling.projects.annotationSpecSets.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. AnnotationSpec resource name, format: `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.", + "location": "path", + "pattern": "^projects/[^/]+/annotationSpecSets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets an annotation spec set by resource name.", + "flatPath": "v1beta1/projects/{projectsId}/annotationSpecSets/{annotationSpecSetsId}", + "httpMethod": "GET", + "id": "datalabeling.projects.annotationSpecSets.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. AnnotationSpecSet resource name, format: projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}", + "location": "path", + "pattern": "^projects/[^/]+/annotationSpecSets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleCloudDatalabelingV1beta1AnnotationSpecSet" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists annotation spec sets for a project. Pagination is supported.", + "flatPath": "v1beta1/projects/{projectsId}/annotationSpecSets", + "httpMethod": "GET", + "id": "datalabeling.projects.annotationSpecSets.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filter is not supported at this moment.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Requested page size. Server may return fewer results than requested. Default value is 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results for the server to return. Typically obtained by ListAnnotationSpecSetsResponse.next_page_token of the previous [DataLabelingService.ListAnnotationSpecSets] call. Return first page if empty.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent of AnnotationSpecSet resource, format: projects/{project_id}", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/annotationSpecSets", + "response": { + "$ref": "GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "datasets": { + "methods": { + "create": { + "description": "Creates dataset. If success return a Dataset resource.", + "flatPath": "v1beta1/projects/{projectsId}/datasets", + "httpMethod": "POST", + "id": "datalabeling.projects.datasets.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Dataset resource parent, format: projects/{project_id}", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/datasets", + "request": { + "$ref": "GoogleCloudDatalabelingV1beta1CreateDatasetRequest" + }, + "response": { + "$ref": "GoogleCloudDatalabelingV1beta1Dataset" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a dataset by resource name.", + "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}", + "httpMethod": "DELETE", + "id": "datalabeling.projects.datasets.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Dataset resource name, format: projects/{project_id}/datasets/{dataset_id}", + "location": "path", + "pattern": "^projects/[^/]+/datasets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "exportData": { + "description": "Exports data and annotations from dataset.", + "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}:exportData", + "httpMethod": "POST", + "id": "datalabeling.projects.datasets.exportData", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Dataset resource name, format: projects/{project_id}/datasets/{dataset_id}", + "location": "path", + "pattern": "^projects/[^/]+/datasets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:exportData", + "request": { + "$ref": "GoogleCloudDatalabelingV1beta1ExportDataRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets dataset by resource name.", + "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}", + "httpMethod": "GET", + "id": "datalabeling.projects.datasets.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Dataset resource name, format: projects/{project_id}/datasets/{dataset_id}", + "location": "path", + "pattern": "^projects/[^/]+/datasets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleCloudDatalabelingV1beta1Dataset" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "importData": { + "description": "Imports data into dataset based on source locations defined in request. It can be called multiple times for the same dataset. Each dataset can only have one long running operation running on it. For example, no labeling task (also long running operation) can be started while importing is still ongoing. Vice versa.", + "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}:importData", + "httpMethod": "POST", + "id": "datalabeling.projects.datasets.importData", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Dataset resource name, format: projects/{project_id}/datasets/{dataset_id}", + "location": "path", + "pattern": "^projects/[^/]+/datasets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:importData", + "request": { + "$ref": "GoogleCloudDatalabelingV1beta1ImportDataRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists datasets under a project. Pagination is supported.", + "flatPath": "v1beta1/projects/{projectsId}/datasets", + "httpMethod": "GET", + "id": "datalabeling.projects.datasets.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filter on dataset is not supported at this moment.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Requested page size. Server may return fewer results than requested. Default value is 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results for the server to return. Typically obtained by ListDatasetsResponse.next_page_token of the previous [DataLabelingService.ListDatasets] call. Returns the first page if empty.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Dataset resource parent, format: projects/{project_id}", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/datasets", + "response": { + "$ref": "GoogleCloudDatalabelingV1beta1ListDatasetsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "annotatedDatasets": { + "methods": { + "delete": { + "description": "Deletes an annotated dataset by resource name.", + "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/annotatedDatasets/{annotatedDatasetsId}", + "httpMethod": "DELETE", + "id": "datalabeling.projects.datasets.annotatedDatasets.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the annotated dataset to delete, format: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}", + "location": "path", + "pattern": "^projects/[^/]+/datasets/[^/]+/annotatedDatasets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets an annotated dataset by resource name.", + "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/annotatedDatasets/{annotatedDatasetsId}", + "httpMethod": "GET", + "id": "datalabeling.projects.datasets.annotatedDatasets.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the annotated dataset to get, format: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}", + "location": "path", + "pattern": "^projects/[^/]+/datasets/[^/]+/annotatedDatasets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleCloudDatalabelingV1beta1AnnotatedDataset" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists annotated datasets for a dataset. Pagination is supported.", + "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/annotatedDatasets", + "httpMethod": "GET", + "id": "datalabeling.projects.datasets.annotatedDatasets.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filter is not supported at this moment.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Requested page size. Server may return fewer results than requested. Default value is 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results for the server to return. Typically obtained by ListAnnotatedDatasetsResponse.next_page_token of the previous [DataLabelingService.ListAnnotatedDatasets] call. Return first page if empty.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Name of the dataset to list annotated datasets, format: projects/{project_id}/datasets/{dataset_id}", + "location": "path", + "pattern": "^projects/[^/]+/datasets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/annotatedDatasets", + "response": { + "$ref": "GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "dataItems": { + "methods": { + "get": { + "description": "Gets a data item in a dataset by resource name. This API can be called after data are imported into dataset.", + "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/annotatedDatasets/{annotatedDatasetsId}/dataItems/{dataItemsId}", + "httpMethod": "GET", + "id": "datalabeling.projects.datasets.annotatedDatasets.dataItems.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the data item to get, format: projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}", + "location": "path", + "pattern": "^projects/[^/]+/datasets/[^/]+/annotatedDatasets/[^/]+/dataItems/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleCloudDatalabelingV1beta1DataItem" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists data items in a dataset. This API can be called after data are imported into dataset. Pagination is supported.", + "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/annotatedDatasets/{annotatedDatasetsId}/dataItems", + "httpMethod": "GET", + "id": "datalabeling.projects.datasets.annotatedDatasets.dataItems.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filter is not supported at this moment.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Requested page size. Server may return fewer results than requested. Default value is 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results for the server to return. Typically obtained by ListDataItemsResponse.next_page_token of the previous [DataLabelingService.ListDataItems] call. Return first page if empty.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Name of the dataset to list data items, format: projects/{project_id}/datasets/{dataset_id}", + "location": "path", + "pattern": "^projects/[^/]+/datasets/[^/]+/annotatedDatasets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/dataItems", + "response": { + "$ref": "GoogleCloudDatalabelingV1beta1ListDataItemsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "examples": { + "methods": { + "get": { + "description": "Gets an example by resource name, including both data and annotation.", + "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/annotatedDatasets/{annotatedDatasetsId}/examples/{examplesId}", + "httpMethod": "GET", + "id": "datalabeling.projects.datasets.annotatedDatasets.examples.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "Optional. An expression for filtering Examples. Filter by annotation_spec.display_name is supported. Format \"annotation_spec.display_name = {display_name}\"", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. Name of example, format: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}/examples/{example_id}", + "location": "path", + "pattern": "^projects/[^/]+/datasets/[^/]+/annotatedDatasets/[^/]+/examples/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleCloudDatalabelingV1beta1Example" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists examples in an annotated dataset. Pagination is supported.", + "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/annotatedDatasets/{annotatedDatasetsId}/examples", + "httpMethod": "GET", + "id": "datalabeling.projects.datasets.annotatedDatasets.examples.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. An expression for filtering Examples. For annotated datasets that have annotation spec set, filter by annotation_spec.display_name is supported. Format \"annotation_spec.display_name = {display_name}\"", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Requested page size. Server may return fewer results than requested. Default value is 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results for the server to return. Typically obtained by ListExamplesResponse.next_page_token of the previous [DataLabelingService.ListExamples] call. Return first page if empty.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Example resource parent.", + "location": "path", + "pattern": "^projects/[^/]+/datasets/[^/]+/annotatedDatasets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/examples", + "response": { + "$ref": "GoogleCloudDatalabelingV1beta1ListExamplesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "feedbackThreads": { + "methods": { + "delete": { + "description": "Delete a FeedbackThread.", + "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/annotatedDatasets/{annotatedDatasetsId}/feedbackThreads/{feedbackThreadsId}", + "httpMethod": "DELETE", + "id": "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the FeedbackThread that is going to be deleted. Format: 'projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset_id}/feedbackThreads/{feedback_thread_id}'.", + "location": "path", + "pattern": "^projects/[^/]+/datasets/[^/]+/annotatedDatasets/[^/]+/feedbackThreads/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Get a FeedbackThread object.", + "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/annotatedDatasets/{annotatedDatasetsId}/feedbackThreads/{feedbackThreadsId}", + "httpMethod": "GET", + "id": "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the feedback. Format: 'projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset_id}/feedbackThreads/{feedback_thread_id}'.", + "location": "path", + "pattern": "^projects/[^/]+/datasets/[^/]+/annotatedDatasets/[^/]+/feedbackThreads/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleCloudDatalabelingV1beta1FeedbackThread" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "List FeedbackThreads with pagination.", + "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/annotatedDatasets/{annotatedDatasetsId}/feedbackThreads", + "httpMethod": "GET", + "id": "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. Requested page size. Server may return fewer results than requested. Default value is 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results for the server to return. Typically obtained by ListFeedbackThreads.next_page_token of the previous [DataLabelingService.ListFeedbackThreads] call. Return first page if empty.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. FeedbackThread resource parent. Format: \"projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset_id}\"", + "location": "path", + "pattern": "^projects/[^/]+/datasets/[^/]+/annotatedDatasets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/feedbackThreads", + "response": { + "$ref": "GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "feedbackMessages": { + "methods": { + "create": { + "description": "Create a FeedbackMessage object.", + "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/annotatedDatasets/{annotatedDatasetsId}/feedbackThreads/{feedbackThreadsId}/feedbackMessages", + "httpMethod": "POST", + "id": "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.feedbackMessages.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. FeedbackMessage resource parent, format: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset_id}/feedbackThreads/{feedback_thread_id}.", + "location": "path", + "pattern": "^projects/[^/]+/datasets/[^/]+/annotatedDatasets/[^/]+/feedbackThreads/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/feedbackMessages", + "request": { + "$ref": "GoogleCloudDatalabelingV1beta1FeedbackMessage" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Delete a FeedbackMessage.", + "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/annotatedDatasets/{annotatedDatasetsId}/feedbackThreads/{feedbackThreadsId}/feedbackMessages/{feedbackMessagesId}", + "httpMethod": "DELETE", + "id": "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.feedbackMessages.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the FeedbackMessage that is going to be deleted. Format: 'projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset_id}/feedbackThreads/{feedback_thread_id}/feedbackMessages/{feedback_message_id}'.", + "location": "path", + "pattern": "^projects/[^/]+/datasets/[^/]+/annotatedDatasets/[^/]+/feedbackThreads/[^/]+/feedbackMessages/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Get a FeedbackMessage object.", + "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/annotatedDatasets/{annotatedDatasetsId}/feedbackThreads/{feedbackThreadsId}/feedbackMessages/{feedbackMessagesId}", + "httpMethod": "GET", + "id": "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.feedbackMessages.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the feedback. Format: 'projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset_id}/feedbackThreads/{feedback_thread_id}/feedbackMessages/{feedback_message_id}'.", + "location": "path", + "pattern": "^projects/[^/]+/datasets/[^/]+/annotatedDatasets/[^/]+/feedbackThreads/[^/]+/feedbackMessages/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleCloudDatalabelingV1beta1FeedbackMessage" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "List FeedbackMessages with pagination.", + "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/annotatedDatasets/{annotatedDatasetsId}/feedbackThreads/{feedbackThreadsId}/feedbackMessages", + "httpMethod": "GET", + "id": "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.feedbackMessages.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. Requested page size. Server may return fewer results than requested. Default value is 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results for the server to return. Typically obtained by ListFeedbackMessages.next_page_token of the previous [DataLabelingService.ListFeedbackMessages] call. Return first page if empty.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. FeedbackMessage resource parent. Format: \"projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset_id}/feedbackThreads/{feedback_thread_id}\"", + "location": "path", + "pattern": "^projects/[^/]+/datasets/[^/]+/annotatedDatasets/[^/]+/feedbackThreads/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/feedbackMessages", + "response": { + "$ref": "GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + }, + "dataItems": { + "methods": { + "get": { + "description": "Gets a data item in a dataset by resource name. This API can be called after data are imported into dataset.", + "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/dataItems/{dataItemsId}", + "httpMethod": "GET", + "id": "datalabeling.projects.datasets.dataItems.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the data item to get, format: projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}", + "location": "path", + "pattern": "^projects/[^/]+/datasets/[^/]+/dataItems/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleCloudDatalabelingV1beta1DataItem" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists data items in a dataset. This API can be called after data are imported into dataset. Pagination is supported.", + "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/dataItems", + "httpMethod": "GET", + "id": "datalabeling.projects.datasets.dataItems.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filter is not supported at this moment.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Requested page size. Server may return fewer results than requested. Default value is 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results for the server to return. Typically obtained by ListDataItemsResponse.next_page_token of the previous [DataLabelingService.ListDataItems] call. Return first page if empty.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Name of the dataset to list data items, format: projects/{project_id}/datasets/{dataset_id}", + "location": "path", + "pattern": "^projects/[^/]+/datasets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/dataItems", + "response": { + "$ref": "GoogleCloudDatalabelingV1beta1ListDataItemsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "evaluations": { + "methods": { + "get": { + "description": "Gets an evaluation by resource name (to search, use projects.evaluations.search).", + "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/evaluations/{evaluationsId}", + "httpMethod": "GET", + "id": "datalabeling.projects.datasets.evaluations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the evaluation. Format: \"projects/{project_id}/datasets/ {dataset_id}/evaluations/{evaluation_id}'", + "location": "path", + "pattern": "^projects/[^/]+/datasets/[^/]+/evaluations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleCloudDatalabelingV1beta1Evaluation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "exampleComparisons": { + "methods": { + "search": { + "description": "Searches example comparisons from an evaluation. The return format is a list of example comparisons that show ground truth and prediction(s) for a single input. Search by providing an evaluation ID.", + "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/evaluations/{evaluationsId}/exampleComparisons:search", + "httpMethod": "POST", + "id": "datalabeling.projects.datasets.evaluations.exampleComparisons.search", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Name of the Evaluation resource to search for example comparisons from. Format: \"projects/{project_id}/datasets/{dataset_id}/evaluations/ {evaluation_id}\"", + "location": "path", + "pattern": "^projects/[^/]+/datasets/[^/]+/evaluations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/exampleComparisons:search", + "request": { + "$ref": "GoogleCloudDatalabelingV1beta1SearchExampleComparisonsRequest" + }, + "response": { + "$ref": "GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "image": { + "methods": { + "label": { + "description": "Starts a labeling task for image. The type of image labeling task is configured by feature in the request.", + "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/image:label", + "httpMethod": "POST", + "id": "datalabeling.projects.datasets.image.label", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Name of the dataset to request labeling task, format: projects/{project_id}/datasets/{dataset_id}", + "location": "path", + "pattern": "^projects/[^/]+/datasets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/image:label", + "request": { + "$ref": "GoogleCloudDatalabelingV1beta1LabelImageRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "text": { + "methods": { + "label": { + "description": "Starts a labeling task for text. The type of text labeling task is configured by feature in the request.", + "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/text:label", + "httpMethod": "POST", + "id": "datalabeling.projects.datasets.text.label", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Name of the data set to request labeling task, format: projects/{project_id}/datasets/{dataset_id}", + "location": "path", + "pattern": "^projects/[^/]+/datasets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/text:label", + "request": { + "$ref": "GoogleCloudDatalabelingV1beta1LabelTextRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "video": { + "methods": { + "label": { + "description": "Starts a labeling task for video. The type of video labeling task is configured by feature in the request.", + "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/video:label", + "httpMethod": "POST", + "id": "datalabeling.projects.datasets.video.label", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Name of the dataset to request labeling task, format: projects/{project_id}/datasets/{dataset_id}", + "location": "path", + "pattern": "^projects/[^/]+/datasets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/video:label", + "request": { + "$ref": "GoogleCloudDatalabelingV1beta1LabelVideoRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "evaluationJobs": { + "methods": { + "create": { + "description": "Creates an evaluation job.", + "flatPath": "v1beta1/projects/{projectsId}/evaluationJobs", + "httpMethod": "POST", + "id": "datalabeling.projects.evaluationJobs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Evaluation job resource parent. Format: \"projects/{project_id}\"", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/evaluationJobs", + "request": { + "$ref": "GoogleCloudDatalabelingV1beta1CreateEvaluationJobRequest" + }, + "response": { + "$ref": "GoogleCloudDatalabelingV1beta1EvaluationJob" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Stops and deletes an evaluation job.", + "flatPath": "v1beta1/projects/{projectsId}/evaluationJobs/{evaluationJobsId}", + "httpMethod": "DELETE", + "id": "datalabeling.projects.evaluationJobs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the evaluation job that is going to be deleted. Format: \"projects/{project_id}/evaluationJobs/{evaluation_job_id}\"", + "location": "path", + "pattern": "^projects/[^/]+/evaluationJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets an evaluation job by resource name.", + "flatPath": "v1beta1/projects/{projectsId}/evaluationJobs/{evaluationJobsId}", + "httpMethod": "GET", + "id": "datalabeling.projects.evaluationJobs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the evaluation job. Format: \"projects/{project_id} /evaluationJobs/{evaluation_job_id}\"", + "location": "path", + "pattern": "^projects/[^/]+/evaluationJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleCloudDatalabelingV1beta1EvaluationJob" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all evaluation jobs within a project with possible filters. Pagination is supported.", + "flatPath": "v1beta1/projects/{projectsId}/evaluationJobs", + "httpMethod": "GET", + "id": "datalabeling.projects.evaluationJobs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. You can filter the jobs to list by model_id (also known as model_name, as described in EvaluationJob.modelVersion) or by evaluation job state (as described in EvaluationJob.state). To filter by both criteria, use the `AND` operator or the `OR` operator. For example, you can use the following string for your filter: \"evaluation_job.model_id = {model_name} AND evaluation_job.state = {evaluation_job_state}\"", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Requested page size. Server may return fewer results than requested. Default value is 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results for the server to return. Typically obtained by the nextPageToken in the response to the previous request. The request returns the first page if this is empty.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Evaluation job resource parent. Format: \"projects/{project_id}\"", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/evaluationJobs", + "response": { + "$ref": "GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates an evaluation job. You can only update certain fields of the job's EvaluationJobConfig: `humanAnnotationConfig.instruction`, `exampleCount`, and `exampleSamplePercentage`. If you want to change any other aspect of the evaluation job, you must delete the job and create a new one.", + "flatPath": "v1beta1/projects/{projectsId}/evaluationJobs/{evaluationJobsId}", + "httpMethod": "PATCH", + "id": "datalabeling.projects.evaluationJobs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. After you create a job, Data Labeling Service assigns a name to the job with the following format: \"projects/{project_id}/evaluationJobs/ {evaluation_job_id}\"", + "location": "path", + "pattern": "^projects/[^/]+/evaluationJobs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. Mask for which fields to update. You can only provide the following fields: * `evaluationJobConfig.humanAnnotationConfig.instruction` * `evaluationJobConfig.exampleCount` * `evaluationJobConfig.exampleSamplePercentage` You can provide more than one of these fields by separating them with commas.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "request": { + "$ref": "GoogleCloudDatalabelingV1beta1EvaluationJob" + }, + "response": { + "$ref": "GoogleCloudDatalabelingV1beta1EvaluationJob" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "pause": { + "description": "Pauses an evaluation job. Pausing an evaluation job that is already in a `PAUSED` state is a no-op.", + "flatPath": "v1beta1/projects/{projectsId}/evaluationJobs/{evaluationJobsId}:pause", + "httpMethod": "POST", + "id": "datalabeling.projects.evaluationJobs.pause", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the evaluation job that is going to be paused. Format: \"projects/{project_id}/evaluationJobs/{evaluation_job_id}\"", + "location": "path", + "pattern": "^projects/[^/]+/evaluationJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:pause", + "request": { + "$ref": "GoogleCloudDatalabelingV1beta1PauseEvaluationJobRequest" + }, + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "resume": { + "description": "Resumes a paused evaluation job. A deleted evaluation job can't be resumed. Resuming a running or scheduled evaluation job is a no-op.", + "flatPath": "v1beta1/projects/{projectsId}/evaluationJobs/{evaluationJobsId}:resume", + "httpMethod": "POST", + "id": "datalabeling.projects.evaluationJobs.resume", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the evaluation job that is going to be resumed. Format: \"projects/{project_id}/evaluationJobs/{evaluation_job_id}\"", + "location": "path", + "pattern": "^projects/[^/]+/evaluationJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:resume", + "request": { + "$ref": "GoogleCloudDatalabelingV1beta1ResumeEvaluationJobRequest" + }, + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "evaluations": { + "methods": { + "search": { + "description": "Searches evaluations within a project.", + "flatPath": "v1beta1/projects/{projectsId}/evaluations:search", + "httpMethod": "GET", + "id": "datalabeling.projects.evaluations.search", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. To search evaluations, you can filter by the following: * evaluation_job.evaluation_job_id (the last part of EvaluationJob.name) * evaluation_job.model_id (the {model_name} portion of EvaluationJob.modelVersion) * evaluation_job.evaluation_job_run_time_start (Minimum threshold for the evaluationJobRunTime that created the evaluation) * evaluation_job.evaluation_job_run_time_end (Maximum threshold for the evaluationJobRunTime that created the evaluation) * evaluation_job.job_state (EvaluationJob.state) * annotation_spec.display_name (the Evaluation contains a metric for the annotation spec with this displayName) To filter by multiple critiera, use the `AND` operator or the `OR` operator. The following examples shows a string that filters by several critiera: \"evaluation_job.evaluation_job_id = {evaluation_job_id} AND evaluation_job.model_id = {model_name} AND evaluation_job.evaluation_job_run_time_start = {timestamp_1} AND evaluation_job.evaluation_job_run_time_end = {timestamp_2} AND annotation_spec.display_name = {display_name}\"", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Requested page size. Server may return fewer results than requested. Default value is 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results for the server to return. Typically obtained by the nextPageToken of the response to a previous search request. If you don't specify this field, the API call requests the first page of the search.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Evaluation search parent (project ID). Format: \"projects/ {project_id}\"", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/evaluations:search", + "response": { + "$ref": "GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "instructions": { + "methods": { + "create": { + "description": "Creates an instruction for how data should be labeled.", + "flatPath": "v1beta1/projects/{projectsId}/instructions", + "httpMethod": "POST", + "id": "datalabeling.projects.instructions.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Instruction resource parent, format: projects/{project_id}", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/instructions", + "request": { + "$ref": "GoogleCloudDatalabelingV1beta1CreateInstructionRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an instruction object by resource name.", + "flatPath": "v1beta1/projects/{projectsId}/instructions/{instructionsId}", + "httpMethod": "DELETE", + "id": "datalabeling.projects.instructions.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Instruction resource name, format: projects/{project_id}/instructions/{instruction_id}", + "location": "path", + "pattern": "^projects/[^/]+/instructions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets an instruction by resource name.", + "flatPath": "v1beta1/projects/{projectsId}/instructions/{instructionsId}", + "httpMethod": "GET", + "id": "datalabeling.projects.instructions.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Instruction resource name, format: projects/{project_id}/instructions/{instruction_id}", + "location": "path", + "pattern": "^projects/[^/]+/instructions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleCloudDatalabelingV1beta1Instruction" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists instructions for a project. Pagination is supported.", + "flatPath": "v1beta1/projects/{projectsId}/instructions", + "httpMethod": "GET", + "id": "datalabeling.projects.instructions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filter is not supported at this moment.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Requested page size. Server may return fewer results than requested. Default value is 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results for the server to return. Typically obtained by ListInstructionsResponse.next_page_token of the previous [DataLabelingService.ListInstructions] call. Return first page if empty.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Instruction resource parent, format: projects/{project_id}", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/instructions", + "response": { + "$ref": "GoogleCloudDatalabelingV1beta1ListInstructionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "flatPath": "v1beta1/projects/{projectsId}/operations/{operationsId}:cancel", + "httpMethod": "GET", + "id": "datalabeling.projects.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:cancel", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1beta1/projects/{projectsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "datalabeling.projects.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1beta1/projects/{projectsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "datalabeling.projects.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "flatPath": "v1beta1/projects/{projectsId}/operations", + "httpMethod": "GET", + "id": "datalabeling.projects.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + }, + "revision": "20201020", + "rootUrl": "https://datalabeling.googleapis.com/", + "schemas": { + "GoogleCloudDatalabelingV1alpha1CreateInstructionMetadata": { + "description": "Metadata of a CreateInstruction operation.", + "id": "GoogleCloudDatalabelingV1alpha1CreateInstructionMetadata", + "properties": { + "createTime": { + "description": "Timestamp when create instruction request was created.", + "format": "google-datetime", + "type": "string" + }, + "instruction": { + "description": "The name of the created Instruction. projects/{project_id}/instructions/{instruction_id}", + "type": "string" + }, + "partialFailures": { + "description": "Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1alpha1ExportDataOperationMetadata": { + "description": "Metadata of an ExportData operation.", + "id": "GoogleCloudDatalabelingV1alpha1ExportDataOperationMetadata", + "properties": { + "annotatedDataset": { + "description": "Output only. The name of annotated dataset in format \"projects/*/datasets/*/annotatedDatasets/*\".", + "type": "string" + }, + "createTime": { + "description": "Output only. Timestamp when export dataset request was created.", + "format": "google-datetime", + "type": "string" + }, + "dataset": { + "description": "Output only. The name of dataset to be exported. \"projects/*/datasets/*\"", + "type": "string" + }, + "partialFailures": { + "description": "Output only. Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1alpha1ExportDataOperationResponse": { + "description": "Response used for ExportDataset longrunning operation.", + "id": "GoogleCloudDatalabelingV1alpha1ExportDataOperationResponse", + "properties": { + "annotatedDataset": { + "description": "Output only. The name of annotated dataset in format \"projects/*/datasets/*/annotatedDatasets/*\".", + "type": "string" + }, + "dataset": { + "description": "Ouptut only. The name of dataset. \"projects/*/datasets/*\"", + "type": "string" + }, + "exportCount": { + "description": "Output only. Number of examples exported successfully.", + "format": "int32", + "type": "integer" + }, + "labelStats": { + "$ref": "GoogleCloudDatalabelingV1alpha1LabelStats", + "description": "Output only. Statistic infos of labels in the exported dataset." + }, + "outputConfig": { + "$ref": "GoogleCloudDatalabelingV1alpha1OutputConfig", + "description": "Output only. output_config in the ExportData request." + }, + "totalCount": { + "description": "Output only. Total number of examples requested to export", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1alpha1GcsDestination": { + "description": "Export destination of the data.Only gcs path is allowed in output_uri.", + "id": "GoogleCloudDatalabelingV1alpha1GcsDestination", + "properties": { + "mimeType": { + "description": "Required. The format of the gcs destination. Only \"text/csv\" and \"application/json\" are supported.", + "type": "string" + }, + "outputUri": { + "description": "Required. The output uri of destination file.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1alpha1GcsFolderDestination": { + "description": "Export folder destination of the data.", + "id": "GoogleCloudDatalabelingV1alpha1GcsFolderDestination", + "properties": { + "outputFolderUri": { + "description": "Required. Cloud Storage directory to export data to.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig": { + "description": "Configuration for how human labeling task should be done.", + "id": "GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig", + "properties": { + "annotatedDatasetDescription": { + "description": "Optional. A human-readable description for AnnotatedDataset. The description can be up to 10000 characters long.", + "type": "string" + }, + "annotatedDatasetDisplayName": { + "description": "Required. A human-readable name for AnnotatedDataset defined by users. Maximum of 64 characters .", + "type": "string" + }, + "contributorEmails": { + "description": "Optional. If you want your own labeling contributors to manage and work on this labeling request, you can set these contributors here. We will give them access to the question types in crowdcompute. Note that these emails must be registered in crowdcompute worker UI: https://crowd-compute.appspot.com/", + "items": { + "type": "string" + }, + "type": "array" + }, + "instruction": { + "description": "Required. Instruction resource name.", + "type": "string" + }, + "labelGroup": { + "description": "Optional. A human-readable label used to logically group labeling tasks. This string must match the regular expression `[a-zA-Z\\\\d_-]{0,128}`.", + "type": "string" + }, + "languageCode": { + "description": "Optional. The Language of this question, as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Default value is en-US. Only need to set this when task is language related. For example, French text classification.", + "type": "string" + }, + "questionDuration": { + "description": "Optional. Maximum duration for contributors to answer a question. Maximum is 3600 seconds. Default is 3600 seconds.", + "format": "google-duration", + "type": "string" + }, + "replicaCount": { + "description": "Optional. Replication of questions. Each question will be sent to up to this number of contributors to label. Aggregated answers will be returned. Default is set to 1. For image related labeling, valid values are 1, 3, 5.", + "format": "int32", + "type": "integer" + }, + "userEmailAddress": { + "description": "Email of the user who started the labeling task and should be notified by email. If empty no notification will be sent.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1alpha1ImportDataOperationMetadata": { + "description": "Metadata of an ImportData operation.", + "id": "GoogleCloudDatalabelingV1alpha1ImportDataOperationMetadata", + "properties": { + "createTime": { + "description": "Output only. Timestamp when import dataset request was created.", + "format": "google-datetime", + "type": "string" + }, + "dataset": { + "description": "Output only. The name of imported dataset. \"projects/*/datasets/*\"", + "type": "string" + }, + "partialFailures": { + "description": "Output only. Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1alpha1ImportDataOperationResponse": { + "description": "Response used for ImportData longrunning operation.", + "id": "GoogleCloudDatalabelingV1alpha1ImportDataOperationResponse", + "properties": { + "dataset": { + "description": "Ouptut only. The name of imported dataset.", + "type": "string" + }, + "importCount": { + "description": "Output only. Number of examples imported successfully.", + "format": "int32", + "type": "integer" + }, + "totalCount": { + "description": "Output only. Total number of examples requested to import", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1alpha1LabelImageBoundingBoxOperationMetadata": { + "description": "Details of a LabelImageBoundingBox operation metadata.", + "id": "GoogleCloudDatalabelingV1alpha1LabelImageBoundingBoxOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1alpha1LabelImageBoundingPolyOperationMetadata": { + "description": "Details of LabelImageBoundingPoly operation metadata.", + "id": "GoogleCloudDatalabelingV1alpha1LabelImageBoundingPolyOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1alpha1LabelImageClassificationOperationMetadata": { + "description": "Metadata of a LabelImageClassification operation.", + "id": "GoogleCloudDatalabelingV1alpha1LabelImageClassificationOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1alpha1LabelImageOrientedBoundingBoxOperationMetadata": { + "description": "Details of a LabelImageOrientedBoundingBox operation metadata.", + "id": "GoogleCloudDatalabelingV1alpha1LabelImageOrientedBoundingBoxOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig", + "description": "Basic human annotation config." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1alpha1LabelImagePolylineOperationMetadata": { + "description": "Details of LabelImagePolyline operation metadata.", + "id": "GoogleCloudDatalabelingV1alpha1LabelImagePolylineOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1alpha1LabelImageSegmentationOperationMetadata": { + "description": "Details of a LabelImageSegmentation operation metadata.", + "id": "GoogleCloudDatalabelingV1alpha1LabelImageSegmentationOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig", + "description": "Basic human annotation config." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1alpha1LabelOperationMetadata": { + "description": "Metadata of a labeling operation, such as LabelImage or LabelVideo. Next tag: 23", + "id": "GoogleCloudDatalabelingV1alpha1LabelOperationMetadata", + "properties": { + "annotatedDataset": { + "description": "Output only. The name of annotated dataset in format \"projects/*/datasets/*/annotatedDatasets/*\".", + "type": "string" + }, + "createTime": { + "description": "Output only. Timestamp when labeling request was created.", + "format": "google-datetime", + "type": "string" + }, + "dataset": { + "description": "Output only. The name of dataset to be labeled. \"projects/*/datasets/*\"", + "type": "string" + }, + "imageBoundingBoxDetails": { + "$ref": "GoogleCloudDatalabelingV1alpha1LabelImageBoundingBoxOperationMetadata", + "description": "Details of label image bounding box operation." + }, + "imageBoundingPolyDetails": { + "$ref": "GoogleCloudDatalabelingV1alpha1LabelImageBoundingPolyOperationMetadata", + "description": "Details of label image bounding poly operation." + }, + "imageClassificationDetails": { + "$ref": "GoogleCloudDatalabelingV1alpha1LabelImageClassificationOperationMetadata", + "description": "Details of label image classification operation." + }, + "imageOrientedBoundingBoxDetails": { + "$ref": "GoogleCloudDatalabelingV1alpha1LabelImageOrientedBoundingBoxOperationMetadata", + "description": "Details of label image oriented bounding box operation." + }, + "imagePolylineDetails": { + "$ref": "GoogleCloudDatalabelingV1alpha1LabelImagePolylineOperationMetadata", + "description": "Details of label image polyline operation." + }, + "imageSegmentationDetails": { + "$ref": "GoogleCloudDatalabelingV1alpha1LabelImageSegmentationOperationMetadata", + "description": "Details of label image segmentation operation." + }, + "partialFailures": { + "description": "Output only. Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + }, + "progressPercent": { + "description": "Output only. Progress of label operation. Range: [0, 100].", + "format": "int32", + "type": "integer" + }, + "textClassificationDetails": { + "$ref": "GoogleCloudDatalabelingV1alpha1LabelTextClassificationOperationMetadata", + "description": "Details of label text classification operation." + }, + "textEntityExtractionDetails": { + "$ref": "GoogleCloudDatalabelingV1alpha1LabelTextEntityExtractionOperationMetadata", + "description": "Details of label text entity extraction operation." + }, + "videoClassificationDetails": { + "$ref": "GoogleCloudDatalabelingV1alpha1LabelVideoClassificationOperationMetadata", + "description": "Details of label video classification operation." + }, + "videoEventDetails": { + "$ref": "GoogleCloudDatalabelingV1alpha1LabelVideoEventOperationMetadata", + "description": "Details of label video event operation." + }, + "videoObjectDetectionDetails": { + "$ref": "GoogleCloudDatalabelingV1alpha1LabelVideoObjectDetectionOperationMetadata", + "description": "Details of label video object detection operation." + }, + "videoObjectTrackingDetails": { + "$ref": "GoogleCloudDatalabelingV1alpha1LabelVideoObjectTrackingOperationMetadata", + "description": "Details of label video object tracking operation." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1alpha1LabelStats": { + "description": "Statistics about annotation specs.", + "id": "GoogleCloudDatalabelingV1alpha1LabelStats", + "properties": { + "exampleCount": { + "additionalProperties": { + "format": "int64", + "type": "string" + }, + "description": "Map of each annotation spec's example count. Key is the annotation spec name and value is the number of examples for that annotation spec. If the annotated dataset does not have annotation spec, the map will return a pair where the key is empty string and value is the total number of annotations.", + "type": "object" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1alpha1LabelTextClassificationOperationMetadata": { + "description": "Details of a LabelTextClassification operation metadata.", + "id": "GoogleCloudDatalabelingV1alpha1LabelTextClassificationOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1alpha1LabelTextEntityExtractionOperationMetadata": { + "description": "Details of a LabelTextEntityExtraction operation metadata.", + "id": "GoogleCloudDatalabelingV1alpha1LabelTextEntityExtractionOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1alpha1LabelVideoClassificationOperationMetadata": { + "description": "Details of a LabelVideoClassification operation metadata.", + "id": "GoogleCloudDatalabelingV1alpha1LabelVideoClassificationOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1alpha1LabelVideoEventOperationMetadata": { + "description": "Details of a LabelVideoEvent operation metadata.", + "id": "GoogleCloudDatalabelingV1alpha1LabelVideoEventOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1alpha1LabelVideoObjectDetectionOperationMetadata": { + "description": "Details of a LabelVideoObjectDetection operation metadata.", + "id": "GoogleCloudDatalabelingV1alpha1LabelVideoObjectDetectionOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1alpha1LabelVideoObjectTrackingOperationMetadata": { + "description": "Details of a LabelVideoObjectTracking operation metadata.", + "id": "GoogleCloudDatalabelingV1alpha1LabelVideoObjectTrackingOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1alpha1OutputConfig": { + "description": "The configuration of output data.", + "id": "GoogleCloudDatalabelingV1alpha1OutputConfig", + "properties": { + "gcsDestination": { + "$ref": "GoogleCloudDatalabelingV1alpha1GcsDestination", + "description": "Output to a file in Cloud Storage. Should be used for labeling output other than image segmentation." + }, + "gcsFolderDestination": { + "$ref": "GoogleCloudDatalabelingV1alpha1GcsFolderDestination", + "description": "Output to a folder in Cloud Storage. Should be used for image segmentation or document de-identification labeling outputs." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1AnnotatedDataset": { + "description": "AnnotatedDataset is a set holding annotations for data in a Dataset. Each labeling task will generate an AnnotatedDataset under the Dataset that the task is requested for.", + "id": "GoogleCloudDatalabelingV1beta1AnnotatedDataset", + "properties": { + "annotationSource": { + "description": "Output only. Source of the annotation.", + "enum": [ + "ANNOTATION_SOURCE_UNSPECIFIED", + "OPERATOR" + ], + "enumDescriptions": [ + "", + "Answer is provided by a human contributor." + ], + "type": "string" + }, + "annotationType": { + "description": "Output only. Type of the annotation. It is specified when starting labeling task.", + "enum": [ + "ANNOTATION_TYPE_UNSPECIFIED", + "IMAGE_CLASSIFICATION_ANNOTATION", + "IMAGE_BOUNDING_BOX_ANNOTATION", + "IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION", + "IMAGE_BOUNDING_POLY_ANNOTATION", + "IMAGE_POLYLINE_ANNOTATION", + "IMAGE_SEGMENTATION_ANNOTATION", + "VIDEO_SHOTS_CLASSIFICATION_ANNOTATION", + "VIDEO_OBJECT_TRACKING_ANNOTATION", + "VIDEO_OBJECT_DETECTION_ANNOTATION", + "VIDEO_EVENT_ANNOTATION", + "TEXT_CLASSIFICATION_ANNOTATION", + "TEXT_ENTITY_EXTRACTION_ANNOTATION", + "GENERAL_CLASSIFICATION_ANNOTATION" + ], + "enumDescriptions": [ + "", + "Classification annotations in an image. Allowed for continuous evaluation.", + "Bounding box annotations in an image. A form of image object detection. Allowed for continuous evaluation.", + "Oriented bounding box. The box does not have to be parallel to horizontal line.", + "Bounding poly annotations in an image.", + "Polyline annotations in an image.", + "Segmentation annotations in an image.", + "Classification annotations in video shots.", + "Video object tracking annotation.", + "Video object detection annotation.", + "Video event annotation.", + "Classification for text. Allowed for continuous evaluation.", + "Entity extraction for text.", + "General classification. Allowed for continuous evaluation." + ], + "type": "string" + }, + "blockingResources": { + "description": "Output only. The names of any related resources that are blocking changes to the annotated dataset.", + "items": { + "type": "string" + }, + "type": "array" + }, + "completedExampleCount": { + "description": "Output only. Number of examples that have annotation in the annotated dataset.", + "format": "int64", + "type": "string" + }, + "createTime": { + "description": "Output only. Time the AnnotatedDataset was created.", + "format": "google-datetime", + "type": "string" + }, + "description": { + "description": "Output only. The description of the AnnotatedDataset. It is specified in HumanAnnotationConfig when user starts a labeling task. Maximum of 10000 characters.", + "type": "string" + }, + "displayName": { + "description": "Output only. The display name of the AnnotatedDataset. It is specified in HumanAnnotationConfig when user starts a labeling task. Maximum of 64 characters.", + "type": "string" + }, + "exampleCount": { + "description": "Output only. Number of examples in the annotated dataset.", + "format": "int64", + "type": "string" + }, + "labelStats": { + "$ref": "GoogleCloudDatalabelingV1beta1LabelStats", + "description": "Output only. Per label statistics." + }, + "metadata": { + "$ref": "GoogleCloudDatalabelingV1beta1AnnotatedDatasetMetadata", + "description": "Output only. Additional information about AnnotatedDataset." + }, + "name": { + "description": "Output only. AnnotatedDataset resource name in format of: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1AnnotatedDatasetMetadata": { + "description": "Metadata on AnnotatedDataset.", + "id": "GoogleCloudDatalabelingV1beta1AnnotatedDatasetMetadata", + "properties": { + "boundingPolyConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1BoundingPolyConfig", + "description": "Configuration for image bounding box and bounding poly task." + }, + "eventConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1EventConfig", + "description": "Configuration for video event labeling task." + }, + "humanAnnotationConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1HumanAnnotationConfig", + "description": "HumanAnnotationConfig used when requesting the human labeling task for this AnnotatedDataset." + }, + "imageClassificationConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1ImageClassificationConfig", + "description": "Configuration for image classification task." + }, + "objectDetectionConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1ObjectDetectionConfig", + "description": "Configuration for video object detection task." + }, + "objectTrackingConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1ObjectTrackingConfig", + "description": "Configuration for video object tracking task." + }, + "polylineConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1PolylineConfig", + "description": "Configuration for image polyline task." + }, + "segmentationConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1SegmentationConfig", + "description": "Configuration for image segmentation task." + }, + "textClassificationConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1TextClassificationConfig", + "description": "Configuration for text classification task." + }, + "textEntityExtractionConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1TextEntityExtractionConfig", + "description": "Configuration for text entity extraction task." + }, + "videoClassificationConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1VideoClassificationConfig", + "description": "Configuration for video classification task." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1Annotation": { + "description": "Annotation for Example. Each example may have one or more annotations. For example in image classification problem, each image might have one or more labels. We call labels binded with this image an Annotation.", + "id": "GoogleCloudDatalabelingV1beta1Annotation", + "properties": { + "annotationMetadata": { + "$ref": "GoogleCloudDatalabelingV1beta1AnnotationMetadata", + "description": "Output only. Annotation metadata, including information like votes for labels." + }, + "annotationSentiment": { + "description": "Output only. Sentiment for this annotation.", + "enum": [ + "ANNOTATION_SENTIMENT_UNSPECIFIED", + "NEGATIVE", + "POSITIVE" + ], + "enumDescriptions": [ + "", + "This annotation describes negatively about the data.", + "This label describes positively about the data." + ], + "type": "string" + }, + "annotationSource": { + "description": "Output only. The source of the annotation.", + "enum": [ + "ANNOTATION_SOURCE_UNSPECIFIED", + "OPERATOR" + ], + "enumDescriptions": [ + "", + "Answer is provided by a human contributor." + ], + "type": "string" + }, + "annotationValue": { + "$ref": "GoogleCloudDatalabelingV1beta1AnnotationValue", + "description": "Output only. This is the actual annotation value, e.g classification, bounding box values are stored here." + }, + "name": { + "description": "Output only. Unique name of this annotation, format is: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_id}", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1AnnotationMetadata": { + "description": "Additional information associated with the annotation.", + "id": "GoogleCloudDatalabelingV1beta1AnnotationMetadata", + "properties": { + "operatorMetadata": { + "$ref": "GoogleCloudDatalabelingV1beta1OperatorMetadata", + "description": "Metadata related to human labeling." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1AnnotationSpec": { + "description": "Container of information related to one possible annotation that can be used in a labeling task. For example, an image classification task where images are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and an AnnotationSpec for `cat`.", + "id": "GoogleCloudDatalabelingV1beta1AnnotationSpec", + "properties": { + "description": { + "description": "Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long.", + "type": "string" + }, + "displayName": { + "description": "Required. The display name of the AnnotationSpec. Maximum of 64 characters.", + "type": "string" + }, + "index": { + "description": "Output only. This is the integer index of the AnnotationSpec. The index for the whole AnnotationSpecSet is sequential starting from 0. For example, an AnnotationSpecSet with classes `dog` and `cat`, might contain one AnnotationSpec with `{ display_name: \"dog\", index: 0 }` and one AnnotationSpec with `{ display_name: \"cat\", index: 1 }`. This is especially useful for model training as it encodes the string labels into numeric values.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1AnnotationSpecSet": { + "description": "An AnnotationSpecSet is a collection of label definitions. For example, in image classification tasks, you define a set of possible labels for images as an AnnotationSpecSet. An AnnotationSpecSet is immutable upon creation.", + "id": "GoogleCloudDatalabelingV1beta1AnnotationSpecSet", + "properties": { + "annotationSpecs": { + "description": "Required. The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.", + "items": { + "$ref": "GoogleCloudDatalabelingV1beta1AnnotationSpec" + }, + "type": "array" + }, + "blockingResources": { + "description": "Output only. The names of any related resources that are blocking changes to the annotation spec set.", + "items": { + "type": "string" + }, + "type": "array" + }, + "description": { + "description": "Optional. User-provided description of the annotation specification set. The description can be up to 10,000 characters long.", + "type": "string" + }, + "displayName": { + "description": "Required. The display name for AnnotationSpecSet that you define when you create it. Maximum of 64 characters.", + "type": "string" + }, + "name": { + "description": "Output only. The AnnotationSpecSet resource name in the following format: \"projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}\"", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1AnnotationSpecSetConfig": { + "description": "Annotation spec set with the setting of allowing multi labels or not.", + "id": "GoogleCloudDatalabelingV1beta1AnnotationSpecSetConfig", + "properties": { + "allowMultiLabel": { + "description": "Optional. If allow_multi_label is true, contributors are able to choose multiple labels from one annotation spec set.", + "type": "boolean" + }, + "annotationSpecSet": { + "description": "Required. Annotation spec set resource name.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1AnnotationValue": { + "description": "Annotation value for an example.", + "id": "GoogleCloudDatalabelingV1beta1AnnotationValue", + "properties": { + "imageBoundingPolyAnnotation": { + "$ref": "GoogleCloudDatalabelingV1beta1ImageBoundingPolyAnnotation", + "description": "Annotation value for image bounding box, oriented bounding box and polygon cases." + }, + "imageClassificationAnnotation": { + "$ref": "GoogleCloudDatalabelingV1beta1ImageClassificationAnnotation", + "description": "Annotation value for image classification case." + }, + "imagePolylineAnnotation": { + "$ref": "GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation", + "description": "Annotation value for image polyline cases. Polyline here is different from BoundingPoly. It is formed by line segments connected to each other but not closed form(Bounding Poly). The line segments can cross each other." + }, + "imageSegmentationAnnotation": { + "$ref": "GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation", + "description": "Annotation value for image segmentation." + }, + "textClassificationAnnotation": { + "$ref": "GoogleCloudDatalabelingV1beta1TextClassificationAnnotation", + "description": "Annotation value for text classification case." + }, + "textEntityExtractionAnnotation": { + "$ref": "GoogleCloudDatalabelingV1beta1TextEntityExtractionAnnotation", + "description": "Annotation value for text entity extraction case." + }, + "videoClassificationAnnotation": { + "$ref": "GoogleCloudDatalabelingV1beta1VideoClassificationAnnotation", + "description": "Annotation value for video classification case." + }, + "videoEventAnnotation": { + "$ref": "GoogleCloudDatalabelingV1beta1VideoEventAnnotation", + "description": "Annotation value for video event case." + }, + "videoObjectTrackingAnnotation": { + "$ref": "GoogleCloudDatalabelingV1beta1VideoObjectTrackingAnnotation", + "description": "Annotation value for video object detection and tracking case." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1Attempt": { + "description": "Records a failed evaluation job run.", + "id": "GoogleCloudDatalabelingV1beta1Attempt", + "properties": { + "attemptTime": { + "format": "google-datetime", + "type": "string" + }, + "partialFailures": { + "description": "Details of errors that occurred.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1BigQuerySource": { + "description": "The BigQuery location for input data. If used in an EvaluationJob, this is where the service saves the prediction input and output sampled from the model version.", + "id": "GoogleCloudDatalabelingV1beta1BigQuerySource", + "properties": { + "inputUri": { + "description": "Required. BigQuery URI to a table, up to 2,000 characters long. If you specify the URI of a table that does not exist, Data Labeling Service creates a table at the URI with the correct schema when you create your EvaluationJob. If you specify the URI of a table that already exists, it must have the [correct schema](/ml-engine/docs/continuous-evaluation/create-job#table-schema). Provide the table URI in the following format: \"bq://{your_project_id}/ {your_dataset_name}/{your_table_name}\" [Learn more](/ml-engine/docs/continuous-evaluation/create-job#table-schema).", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions": { + "description": "Options regarding evaluation between bounding boxes.", + "id": "GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions", + "properties": { + "iouThreshold": { + "description": "Minimum [intersection-over-union (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over-union) required for 2 bounding boxes to be considered a match. This must be a number between 0 and 1.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1BoundingPoly": { + "description": "A bounding polygon in the image.", + "id": "GoogleCloudDatalabelingV1beta1BoundingPoly", + "properties": { + "vertices": { + "description": "The bounding polygon vertices.", + "items": { + "$ref": "GoogleCloudDatalabelingV1beta1Vertex" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1BoundingPolyConfig": { + "description": "Config for image bounding poly (and bounding box) human labeling task.", + "id": "GoogleCloudDatalabelingV1beta1BoundingPolyConfig", + "properties": { + "annotationSpecSet": { + "description": "Required. Annotation spec set resource name.", + "type": "string" + }, + "instructionMessage": { + "description": "Optional. Instruction message showed on contributors UI.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ClassificationMetadata": { + "description": "Metadata for classification annotations.", + "id": "GoogleCloudDatalabelingV1beta1ClassificationMetadata", + "properties": { + "isMultiLabel": { + "description": "Whether the classification task is multi-label or not.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ClassificationMetrics": { + "description": "Metrics calculated for a classification model.", + "id": "GoogleCloudDatalabelingV1beta1ClassificationMetrics", + "properties": { + "confusionMatrix": { + "$ref": "GoogleCloudDatalabelingV1beta1ConfusionMatrix", + "description": "Confusion matrix of predicted labels vs. ground truth labels." + }, + "prCurve": { + "$ref": "GoogleCloudDatalabelingV1beta1PrCurve", + "description": "Precision-recall curve based on ground truth labels, predicted labels, and scores for the predicted labels." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry": { + "id": "GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry", + "properties": { + "confidenceThreshold": { + "description": "Threshold used for this entry. For classification tasks, this is a classification threshold: a predicted label is categorized as positive or negative (in the context of this point on the PR curve) based on whether the label's score meets this threshold. For image object detection (bounding box) tasks, this is the [intersection-over-union (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over-union) threshold for the context of this point on the PR curve.", + "format": "float", + "type": "number" + }, + "f1Score": { + "description": "Harmonic mean of recall and precision.", + "format": "float", + "type": "number" + }, + "f1ScoreAt1": { + "description": "The harmonic mean of recall_at1 and precision_at1.", + "format": "float", + "type": "number" + }, + "f1ScoreAt5": { + "description": "The harmonic mean of recall_at5 and precision_at5.", + "format": "float", + "type": "number" + }, + "precision": { + "description": "Precision value.", + "format": "float", + "type": "number" + }, + "precisionAt1": { + "description": "Precision value for entries with label that has highest score.", + "format": "float", + "type": "number" + }, + "precisionAt5": { + "description": "Precision value for entries with label that has highest 5 scores.", + "format": "float", + "type": "number" + }, + "recall": { + "description": "Recall value.", + "format": "float", + "type": "number" + }, + "recallAt1": { + "description": "Recall value for entries with label that has highest score.", + "format": "float", + "type": "number" + }, + "recallAt5": { + "description": "Recall value for entries with label that has highest 5 scores.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ConfusionMatrix": { + "description": "Confusion matrix of the model running the classification. Only applicable when the metrics entry aggregates multiple labels. Not applicable when the entry is for a single label.", + "id": "GoogleCloudDatalabelingV1beta1ConfusionMatrix", + "properties": { + "row": { + "items": { + "$ref": "GoogleCloudDatalabelingV1beta1Row" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ConfusionMatrixEntry": { + "id": "GoogleCloudDatalabelingV1beta1ConfusionMatrixEntry", + "properties": { + "annotationSpec": { + "$ref": "GoogleCloudDatalabelingV1beta1AnnotationSpec", + "description": "The annotation spec of a predicted label." + }, + "itemCount": { + "description": "Number of items predicted to have this label. (The ground truth label for these items is the `Row.annotationSpec` of this entry's parent.)", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1CreateAnnotationSpecSetRequest": { + "description": "Request message for CreateAnnotationSpecSet.", + "id": "GoogleCloudDatalabelingV1beta1CreateAnnotationSpecSetRequest", + "properties": { + "annotationSpecSet": { + "$ref": "GoogleCloudDatalabelingV1beta1AnnotationSpecSet", + "description": "Required. Annotation spec set to create. Annotation specs must be included. Only one annotation spec will be accepted for annotation specs with same display_name." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1CreateDatasetRequest": { + "description": "Request message for CreateDataset.", + "id": "GoogleCloudDatalabelingV1beta1CreateDatasetRequest", + "properties": { + "dataset": { + "$ref": "GoogleCloudDatalabelingV1beta1Dataset", + "description": "Required. The dataset to be created." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1CreateEvaluationJobRequest": { + "description": "Request message for CreateEvaluationJob.", + "id": "GoogleCloudDatalabelingV1beta1CreateEvaluationJobRequest", + "properties": { + "job": { + "$ref": "GoogleCloudDatalabelingV1beta1EvaluationJob", + "description": "Required. The evaluation job to create." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1CreateInstructionMetadata": { + "description": "Metadata of a CreateInstruction operation.", + "id": "GoogleCloudDatalabelingV1beta1CreateInstructionMetadata", + "properties": { + "createTime": { + "description": "Timestamp when create instruction request was created.", + "format": "google-datetime", + "type": "string" + }, + "instruction": { + "description": "The name of the created Instruction. projects/{project_id}/instructions/{instruction_id}", + "type": "string" + }, + "partialFailures": { + "description": "Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1CreateInstructionRequest": { + "description": "Request message for CreateInstruction.", + "id": "GoogleCloudDatalabelingV1beta1CreateInstructionRequest", + "properties": { + "instruction": { + "$ref": "GoogleCloudDatalabelingV1beta1Instruction", + "description": "Required. Instruction of how to perform the labeling task." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1CsvInstruction": { + "description": "Deprecated: this instruction format is not supported any more. Instruction from a CSV file.", + "id": "GoogleCloudDatalabelingV1beta1CsvInstruction", + "properties": { + "gcsFileUri": { + "description": "CSV file for the instruction. Only gcs path is allowed.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1DataItem": { + "description": "DataItem is a piece of data, without annotation. For example, an image.", + "id": "GoogleCloudDatalabelingV1beta1DataItem", + "properties": { + "imagePayload": { + "$ref": "GoogleCloudDatalabelingV1beta1ImagePayload", + "description": "The image payload, a container of the image bytes/uri." + }, + "name": { + "description": "Output only. Name of the data item, in format of: projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}", + "type": "string" + }, + "textPayload": { + "$ref": "GoogleCloudDatalabelingV1beta1TextPayload", + "description": "The text payload, a container of text content." + }, + "videoPayload": { + "$ref": "GoogleCloudDatalabelingV1beta1VideoPayload", + "description": "The video payload, a container of the video uri." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1Dataset": { + "description": "Dataset is the resource to hold your data. You can request multiple labeling tasks for a dataset while each one will generate an AnnotatedDataset.", + "id": "GoogleCloudDatalabelingV1beta1Dataset", + "properties": { + "blockingResources": { + "description": "Output only. The names of any related resources that are blocking changes to the dataset.", + "items": { + "type": "string" + }, + "type": "array" + }, + "createTime": { + "description": "Output only. Time the dataset is created.", + "format": "google-datetime", + "type": "string" + }, + "dataItemCount": { + "description": "Output only. The number of data items in the dataset.", + "format": "int64", + "type": "string" + }, + "description": { + "description": "Optional. User-provided description of the annotation specification set. The description can be up to 10000 characters long.", + "type": "string" + }, + "displayName": { + "description": "Required. The display name of the dataset. Maximum of 64 characters.", + "type": "string" + }, + "inputConfigs": { + "description": "Output only. This is populated with the original input configs where ImportData is called. It is available only after the clients import data to this dataset.", + "items": { + "$ref": "GoogleCloudDatalabelingV1beta1InputConfig" + }, + "type": "array" + }, + "lastMigrateTime": { + "description": "Last time that the Dataset is migrated to AI Platform V2. If any of the AnnotatedDataset is migrated, the last_migration_time in Dataset is also updated.", + "format": "google-datetime", + "type": "string" + }, + "name": { + "description": "Output only. Dataset resource name, format is: projects/{project_id}/datasets/{dataset_id}", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1Evaluation": { + "description": "Describes an evaluation between a machine learning model's predictions and ground truth labels. Created when an EvaluationJob runs successfully.", + "id": "GoogleCloudDatalabelingV1beta1Evaluation", + "properties": { + "annotationType": { + "description": "Output only. Type of task that the model version being evaluated performs, as defined in the evaluationJobConfig.inputConfig.annotationType field of the evaluation job that created this evaluation.", + "enum": [ + "ANNOTATION_TYPE_UNSPECIFIED", + "IMAGE_CLASSIFICATION_ANNOTATION", + "IMAGE_BOUNDING_BOX_ANNOTATION", + "IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION", + "IMAGE_BOUNDING_POLY_ANNOTATION", + "IMAGE_POLYLINE_ANNOTATION", + "IMAGE_SEGMENTATION_ANNOTATION", + "VIDEO_SHOTS_CLASSIFICATION_ANNOTATION", + "VIDEO_OBJECT_TRACKING_ANNOTATION", + "VIDEO_OBJECT_DETECTION_ANNOTATION", + "VIDEO_EVENT_ANNOTATION", + "TEXT_CLASSIFICATION_ANNOTATION", + "TEXT_ENTITY_EXTRACTION_ANNOTATION", + "GENERAL_CLASSIFICATION_ANNOTATION" + ], + "enumDescriptions": [ + "", + "Classification annotations in an image. Allowed for continuous evaluation.", + "Bounding box annotations in an image. A form of image object detection. Allowed for continuous evaluation.", + "Oriented bounding box. The box does not have to be parallel to horizontal line.", + "Bounding poly annotations in an image.", + "Polyline annotations in an image.", + "Segmentation annotations in an image.", + "Classification annotations in video shots.", + "Video object tracking annotation.", + "Video object detection annotation.", + "Video event annotation.", + "Classification for text. Allowed for continuous evaluation.", + "Entity extraction for text.", + "General classification. Allowed for continuous evaluation." + ], + "type": "string" + }, + "config": { + "$ref": "GoogleCloudDatalabelingV1beta1EvaluationConfig", + "description": "Output only. Options used in the evaluation job that created this evaluation." + }, + "createTime": { + "description": "Output only. Timestamp for when this evaluation was created.", + "format": "google-datetime", + "type": "string" + }, + "evaluatedItemCount": { + "description": "Output only. The number of items in the ground truth dataset that were used for this evaluation. Only populated when the evaulation is for certain AnnotationTypes.", + "format": "int64", + "type": "string" + }, + "evaluationJobRunTime": { + "description": "Output only. Timestamp for when the evaluation job that created this evaluation ran.", + "format": "google-datetime", + "type": "string" + }, + "evaluationMetrics": { + "$ref": "GoogleCloudDatalabelingV1beta1EvaluationMetrics", + "description": "Output only. Metrics comparing predictions to ground truth labels." + }, + "name": { + "description": "Output only. Resource name of an evaluation. The name has the following format: \"projects/{project_id}/datasets/{dataset_id}/evaluations/ {evaluation_id}'", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1EvaluationConfig": { + "description": "Configuration details used for calculating evaluation metrics and creating an Evaluation.", + "id": "GoogleCloudDatalabelingV1beta1EvaluationConfig", + "properties": { + "boundingBoxEvaluationOptions": { + "$ref": "GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions", + "description": "Only specify this field if the related model performs image object detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate bounding boxes." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1EvaluationJob": { + "description": "Defines an evaluation job that runs periodically to generate Evaluations. [Creating an evaluation job](/ml-engine/docs/continuous-evaluation/create-job) is the starting point for using continuous evaluation.", + "id": "GoogleCloudDatalabelingV1beta1EvaluationJob", + "properties": { + "annotationSpecSet": { + "description": "Required. Name of the AnnotationSpecSet describing all the labels that your machine learning model outputs. You must create this resource before you create an evaluation job and provide its name in the following format: \"projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}\"", + "type": "string" + }, + "attempts": { + "description": "Output only. Every time the evaluation job runs and an error occurs, the failed attempt is appended to this array.", + "items": { + "$ref": "GoogleCloudDatalabelingV1beta1Attempt" + }, + "type": "array" + }, + "createTime": { + "description": "Output only. Timestamp of when this evaluation job was created.", + "format": "google-datetime", + "type": "string" + }, + "description": { + "description": "Required. Description of the job. The description can be up to 25,000 characters long.", + "type": "string" + }, + "evaluationJobConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1EvaluationJobConfig", + "description": "Required. Configuration details for the evaluation job." + }, + "labelMissingGroundTruth": { + "description": "Required. Whether you want Data Labeling Service to provide ground truth labels for prediction input. If you want the service to assign human labelers to annotate your data, set this to `true`. If you want to provide your own ground truth labels in the evaluation job's BigQuery table, set this to `false`.", + "type": "boolean" + }, + "modelVersion": { + "description": "Required. The [AI Platform Prediction model version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction input and output is sampled from this model version. When creating an evaluation job, specify the model version in the following format: \"projects/{project_id}/models/{model_name}/versions/{version_name}\" There can only be one evaluation job per model version.", + "type": "string" + }, + "name": { + "description": "Output only. After you create a job, Data Labeling Service assigns a name to the job with the following format: \"projects/{project_id}/evaluationJobs/ {evaluation_job_id}\"", + "type": "string" + }, + "schedule": { + "description": "Required. Describes the interval at which the job runs. This interval must be at least 1 day, and it is rounded to the nearest day. For example, if you specify a 50-hour interval, the job runs every 2 days. You can provide the schedule in [crontab format](/scheduler/docs/configuring/cron-job-schedules) or in an [English-like format](/appengine/docs/standard/python/config/cronref#schedule_format). Regardless of what you specify, the job will run at 10:00 AM UTC. Only the interval from this schedule is used, not the specific time of day.", + "type": "string" + }, + "state": { + "description": "Output only. Describes the current state of the job.", + "enum": [ + "STATE_UNSPECIFIED", + "SCHEDULED", + "RUNNING", + "PAUSED", + "STOPPED" + ], + "enumDescriptions": [ + "", + "The job is scheduled to run at the configured interval. You can pause or delete the job. When the job is in this state, it samples prediction input and output from your model version into your BigQuery table as predictions occur.", + "The job is currently running. When the job runs, Data Labeling Service does several things: 1. If you have configured your job to use Data Labeling Service for ground truth labeling, the service creates a Dataset and a labeling task for all data sampled since the last time the job ran. Human labelers provide ground truth labels for your data. Human labeling may take hours, or even days, depending on how much data has been sampled. The job remains in the `RUNNING` state during this time, and it can even be running multiple times in parallel if it gets triggered again (for example 24 hours later) before the earlier run has completed. When human labelers have finished labeling the data, the next step occurs. If you have configured your job to provide your own ground truth labels, Data Labeling Service still creates a Dataset for newly sampled data, but it expects that you have already added ground truth labels to the BigQuery table by this time. The next step occurs immediately. 2. Data Labeling Service creates an Evaluation by comparing your model version's predictions with the ground truth labels. If the job remains in this state for a long time, it continues to sample prediction data into your BigQuery table and will run again at the next interval, even if it causes the job to run multiple times in parallel.", + "The job is not sampling prediction input and output into your BigQuery table and it will not run according to its schedule. You can resume the job.", + "The job has this state right before it is deleted." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1EvaluationJobAlertConfig": { + "description": "Provides details for how an evaluation job sends email alerts based on the results of a run.", + "id": "GoogleCloudDatalabelingV1beta1EvaluationJobAlertConfig", + "properties": { + "email": { + "description": "Required. An email address to send alerts to.", + "type": "string" + }, + "minAcceptableMeanAveragePrecision": { + "description": "Required. A number between 0 and 1 that describes a minimum mean average precision threshold. When the evaluation job runs, if it calculates that your model version's predictions from the recent interval have meanAveragePrecision below this threshold, then it sends an alert to your specified email.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1EvaluationJobConfig": { + "description": "Configures specific details of how a continuous evaluation job works. Provide this configuration when you create an EvaluationJob.", + "id": "GoogleCloudDatalabelingV1beta1EvaluationJobConfig", + "properties": { + "bigqueryImportKeys": { + "additionalProperties": { + "type": "string" + }, + "description": "Required. Prediction keys that tell Data Labeling Service where to find the data for evaluation in your BigQuery table. When the service samples prediction input and output from your model version and saves it to BigQuery, the data gets stored as JSON strings in the BigQuery table. These keys tell Data Labeling Service how to parse the JSON. You can provide the following entries in this field: * `data_json_key`: the data key for prediction input. You must provide either this key or `reference_json_key`. * `reference_json_key`: the data reference key for prediction input. You must provide either this key or `data_json_key`. * `label_json_key`: the label key for prediction output. Required. * `label_score_json_key`: the score key for prediction output. Required. * `bounding_box_json_key`: the bounding box key for prediction output. Required if your model version perform image object detection. Learn [how to configure prediction keys](/ml-engine/docs/continuous-evaluation/create-job#prediction-keys).", + "type": "object" + }, + "boundingPolyConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1BoundingPolyConfig", + "description": "Specify this field if your model version performs image object detection (bounding box detection). `annotationSpecSet` in this configuration must match EvaluationJob.annotationSpecSet." + }, + "evaluationConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1EvaluationConfig", + "description": "Required. Details for calculating evaluation metrics and creating Evaulations. If your model version performs image object detection, you must specify the `boundingBoxEvaluationOptions` field within this configuration. Otherwise, provide an empty object for this configuration." + }, + "evaluationJobAlertConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1EvaluationJobAlertConfig", + "description": "Optional. Configuration details for evaluation job alerts. Specify this field if you want to receive email alerts if the evaluation job finds that your predictions have low mean average precision during a run." + }, + "exampleCount": { + "description": "Required. The maximum number of predictions to sample and save to BigQuery during each evaluation interval. This limit overrides `example_sample_percentage`: even if the service has not sampled enough predictions to fulfill `example_sample_perecentage` during an interval, it stops sampling predictions when it meets this limit.", + "format": "int32", + "type": "integer" + }, + "exampleSamplePercentage": { + "description": "Required. Fraction of predictions to sample and save to BigQuery during each evaluation interval. For example, 0.1 means 10% of predictions served by your model version get saved to BigQuery.", + "format": "double", + "type": "number" + }, + "humanAnnotationConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1HumanAnnotationConfig", + "description": "Optional. Details for human annotation of your data. If you set labelMissingGroundTruth to `true` for this evaluation job, then you must specify this field. If you plan to provide your own ground truth labels, then omit this field. Note that you must create an Instruction resource before you can specify this field. Provide the name of the instruction resource in the `instruction` field within this configuration." + }, + "imageClassificationConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1ImageClassificationConfig", + "description": "Specify this field if your model version performs image classification or general classification. `annotationSpecSet` in this configuration must match EvaluationJob.annotationSpecSet. `allowMultiLabel` in this configuration must match `classificationMetadata.isMultiLabel` in input_config." + }, + "inputConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1InputConfig", + "description": "Rquired. Details for the sampled prediction input. Within this configuration, there are requirements for several fields: * `dataType` must be one of `IMAGE`, `TEXT`, or `GENERAL_DATA`. * `annotationType` must be one of `IMAGE_CLASSIFICATION_ANNOTATION`, `TEXT_CLASSIFICATION_ANNOTATION`, `GENERAL_CLASSIFICATION_ANNOTATION`, or `IMAGE_BOUNDING_BOX_ANNOTATION` (image object detection). * If your machine learning model performs classification, you must specify `classificationMetadata.isMultiLabel`. * You must specify `bigquerySource` (not `gcsSource`)." + }, + "textClassificationConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1TextClassificationConfig", + "description": "Specify this field if your model version performs text classification. `annotationSpecSet` in this configuration must match EvaluationJob.annotationSpecSet. `allowMultiLabel` in this configuration must match `classificationMetadata.isMultiLabel` in input_config." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1EvaluationMetrics": { + "id": "GoogleCloudDatalabelingV1beta1EvaluationMetrics", + "properties": { + "classificationMetrics": { + "$ref": "GoogleCloudDatalabelingV1beta1ClassificationMetrics" + }, + "objectDetectionMetrics": { + "$ref": "GoogleCloudDatalabelingV1beta1ObjectDetectionMetrics" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1EventConfig": { + "description": "Config for video event human labeling task.", + "id": "GoogleCloudDatalabelingV1beta1EventConfig", + "properties": { + "annotationSpecSets": { + "description": "Required. The list of annotation spec set resource name. Similar to video classification, we support selecting event from multiple AnnotationSpecSet at the same time.", + "items": { + "type": "string" + }, + "type": "array" + }, + "clipLength": { + "description": "Videos will be cut to smaller clips to make it easier for labelers to work on. Users can configure is field in seconds, if not set, default value is 60s.", + "format": "int32", + "type": "integer" + }, + "overlapLength": { + "description": "The overlap length between different video clips. Users can configure is field in seconds, if not set, default value is 1s.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1Example": { + "description": "An Example is a piece of data and its annotation. For example, an image with label \"house\".", + "id": "GoogleCloudDatalabelingV1beta1Example", + "properties": { + "annotations": { + "description": "Output only. Annotations for the piece of data in Example. One piece of data can have multiple annotations.", + "items": { + "$ref": "GoogleCloudDatalabelingV1beta1Annotation" + }, + "type": "array" + }, + "imagePayload": { + "$ref": "GoogleCloudDatalabelingV1beta1ImagePayload", + "description": "The image payload, a container of the image bytes/uri." + }, + "name": { + "description": "Output only. Name of the example, in format of: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}/examples/{example_id}", + "type": "string" + }, + "textPayload": { + "$ref": "GoogleCloudDatalabelingV1beta1TextPayload", + "description": "The text payload, a container of the text content." + }, + "videoPayload": { + "$ref": "GoogleCloudDatalabelingV1beta1VideoPayload", + "description": "The video payload, a container of the video uri." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ExampleComparison": { + "description": "Example comparisons comparing ground truth output and predictions for a specific input.", + "id": "GoogleCloudDatalabelingV1beta1ExampleComparison", + "properties": { + "groundTruthExample": { + "$ref": "GoogleCloudDatalabelingV1beta1Example", + "description": "The ground truth output for the input." + }, + "modelCreatedExamples": { + "description": "Predictions by the model for the input.", + "items": { + "$ref": "GoogleCloudDatalabelingV1beta1Example" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ExportDataOperationMetadata": { + "description": "Metadata of an ExportData operation.", + "id": "GoogleCloudDatalabelingV1beta1ExportDataOperationMetadata", + "properties": { + "annotatedDataset": { + "description": "Output only. The name of annotated dataset in format \"projects/*/datasets/*/annotatedDatasets/*\".", + "type": "string" + }, + "createTime": { + "description": "Output only. Timestamp when export dataset request was created.", + "format": "google-datetime", + "type": "string" + }, + "dataset": { + "description": "Output only. The name of dataset to be exported. \"projects/*/datasets/*\"", + "type": "string" + }, + "partialFailures": { + "description": "Output only. Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ExportDataOperationResponse": { + "description": "Response used for ExportDataset longrunning operation.", + "id": "GoogleCloudDatalabelingV1beta1ExportDataOperationResponse", + "properties": { + "annotatedDataset": { + "description": "Output only. The name of annotated dataset in format \"projects/*/datasets/*/annotatedDatasets/*\".", + "type": "string" + }, + "dataset": { + "description": "Ouptut only. The name of dataset. \"projects/*/datasets/*\"", + "type": "string" + }, + "exportCount": { + "description": "Output only. Number of examples exported successfully.", + "format": "int32", + "type": "integer" + }, + "labelStats": { + "$ref": "GoogleCloudDatalabelingV1beta1LabelStats", + "description": "Output only. Statistic infos of labels in the exported dataset." + }, + "outputConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1OutputConfig", + "description": "Output only. output_config in the ExportData request." + }, + "totalCount": { + "description": "Output only. Total number of examples requested to export", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ExportDataRequest": { + "description": "Request message for ExportData API.", + "id": "GoogleCloudDatalabelingV1beta1ExportDataRequest", + "properties": { + "annotatedDataset": { + "description": "Required. Annotated dataset resource name. DataItem in Dataset and their annotations in specified annotated dataset will be exported. It's in format of projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}", + "type": "string" + }, + "filter": { + "description": "Optional. Filter is not supported at this moment.", + "type": "string" + }, + "outputConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1OutputConfig", + "description": "Required. Specify the output destination." + }, + "userEmailAddress": { + "description": "Email of the user who started the export task and should be notified by email. If empty no notification will be sent.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1FeedbackMessage": { + "description": "A feedback message inside a feedback thread.", + "id": "GoogleCloudDatalabelingV1beta1FeedbackMessage", + "properties": { + "body": { + "description": "String content of the feedback. Maximum of 10000 characters.", + "type": "string" + }, + "createTime": { + "description": "Create time.", + "format": "google-datetime", + "type": "string" + }, + "image": { + "description": "The image storing this feedback if the feedback is an image representing operator's comments.", + "format": "byte", + "type": "string" + }, + "name": { + "description": "Name of the feedback message in a feedback thread. Format: 'project/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset_id}/feedbackThreads/{feedback_thread_id}/feedbackMessage/{feedback_message_id}'", + "type": "string" + }, + "operatorFeedbackMetadata": { + "$ref": "GoogleCloudDatalabelingV1beta1OperatorFeedbackMetadata" + }, + "requesterFeedbackMetadata": { + "$ref": "GoogleCloudDatalabelingV1beta1RequesterFeedbackMetadata" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1FeedbackThread": { + "description": "A feedback thread of a certain labeling task on a certain annotated dataset.", + "id": "GoogleCloudDatalabelingV1beta1FeedbackThread", + "properties": { + "feedbackThreadMetadata": { + "$ref": "GoogleCloudDatalabelingV1beta1FeedbackThreadMetadata", + "description": "Metadata regarding the feedback thread." + }, + "name": { + "description": "Name of the feedback thread. Format: 'project/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset_id}/feedbackThreads/{feedback_thread_id}'", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1FeedbackThreadMetadata": { + "id": "GoogleCloudDatalabelingV1beta1FeedbackThreadMetadata", + "properties": { + "createTime": { + "description": "When the thread is created", + "format": "google-datetime", + "type": "string" + }, + "lastUpdateTime": { + "description": "When the thread is last updated.", + "format": "google-datetime", + "type": "string" + }, + "status": { + "enum": [ + "FEEDBACK_THREAD_STATUS_UNSPECIFIED", + "NEW", + "REPLIED" + ], + "enumDescriptions": [ + "", + "Feedback thread is created with no reply;", + "Feedback thread is replied at least once;" + ], + "type": "string" + }, + "thumbnail": { + "description": "An image thumbnail of this thread.", + "format": "byte", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1GcsDestination": { + "description": "Export destination of the data.Only gcs path is allowed in output_uri.", + "id": "GoogleCloudDatalabelingV1beta1GcsDestination", + "properties": { + "mimeType": { + "description": "Required. The format of the gcs destination. Only \"text/csv\" and \"application/json\" are supported.", + "type": "string" + }, + "outputUri": { + "description": "Required. The output uri of destination file.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1GcsFolderDestination": { + "description": "Export folder destination of the data.", + "id": "GoogleCloudDatalabelingV1beta1GcsFolderDestination", + "properties": { + "outputFolderUri": { + "description": "Required. Cloud Storage directory to export data to.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1GcsSource": { + "description": "Source of the Cloud Storage file to be imported.", + "id": "GoogleCloudDatalabelingV1beta1GcsSource", + "properties": { + "inputUri": { + "description": "Required. The input URI of source file. This must be a Cloud Storage path (`gs://...`).", + "type": "string" + }, + "mimeType": { + "description": "Required. The format of the source file. Only \"text/csv\" is supported.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1HumanAnnotationConfig": { + "description": "Configuration for how human labeling task should be done.", + "id": "GoogleCloudDatalabelingV1beta1HumanAnnotationConfig", + "properties": { + "annotatedDatasetDescription": { + "description": "Optional. A human-readable description for AnnotatedDataset. The description can be up to 10000 characters long.", + "type": "string" + }, + "annotatedDatasetDisplayName": { + "description": "Required. A human-readable name for AnnotatedDataset defined by users. Maximum of 64 characters .", + "type": "string" + }, + "contributorEmails": { + "description": "Optional. If you want your own labeling contributors to manage and work on this labeling request, you can set these contributors here. We will give them access to the question types in crowdcompute. Note that these emails must be registered in crowdcompute worker UI: https://crowd-compute.appspot.com/", + "items": { + "type": "string" + }, + "type": "array" + }, + "instruction": { + "description": "Required. Instruction resource name.", + "type": "string" + }, + "labelGroup": { + "description": "Optional. A human-readable label used to logically group labeling tasks. This string must match the regular expression `[a-zA-Z\\\\d_-]{0,128}`.", + "type": "string" + }, + "languageCode": { + "description": "Optional. The Language of this question, as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Default value is en-US. Only need to set this when task is language related. For example, French text classification.", + "type": "string" + }, + "questionDuration": { + "description": "Optional. Maximum duration for contributors to answer a question. Maximum is 3600 seconds. Default is 3600 seconds.", + "format": "google-duration", + "type": "string" + }, + "replicaCount": { + "description": "Optional. Replication of questions. Each question will be sent to up to this number of contributors to label. Aggregated answers will be returned. Default is set to 1. For image related labeling, valid values are 1, 3, 5.", + "format": "int32", + "type": "integer" + }, + "userEmailAddress": { + "description": "Email of the user who started the labeling task and should be notified by email. If empty no notification will be sent.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ImageBoundingPolyAnnotation": { + "description": "Image bounding poly annotation. It represents a polygon including bounding box in the image.", + "id": "GoogleCloudDatalabelingV1beta1ImageBoundingPolyAnnotation", + "properties": { + "annotationSpec": { + "$ref": "GoogleCloudDatalabelingV1beta1AnnotationSpec", + "description": "Label of object in this bounding polygon." + }, + "boundingPoly": { + "$ref": "GoogleCloudDatalabelingV1beta1BoundingPoly" + }, + "normalizedBoundingPoly": { + "$ref": "GoogleCloudDatalabelingV1beta1NormalizedBoundingPoly" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ImageClassificationAnnotation": { + "description": "Image classification annotation definition.", + "id": "GoogleCloudDatalabelingV1beta1ImageClassificationAnnotation", + "properties": { + "annotationSpec": { + "$ref": "GoogleCloudDatalabelingV1beta1AnnotationSpec", + "description": "Label of image." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ImageClassificationConfig": { + "description": "Config for image classification human labeling task.", + "id": "GoogleCloudDatalabelingV1beta1ImageClassificationConfig", + "properties": { + "allowMultiLabel": { + "description": "Optional. If allow_multi_label is true, contributors are able to choose multiple labels for one image.", + "type": "boolean" + }, + "annotationSpecSet": { + "description": "Required. Annotation spec set resource name.", + "type": "string" + }, + "answerAggregationType": { + "description": "Optional. The type of how to aggregate answers.", + "enum": [ + "STRING_AGGREGATION_TYPE_UNSPECIFIED", + "MAJORITY_VOTE", + "UNANIMOUS_VOTE", + "NO_AGGREGATION" + ], + "enumDescriptions": [ + "", + "Majority vote to aggregate answers.", + "Unanimous answers will be adopted.", + "Preserve all answers by crowd compute." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ImagePayload": { + "description": "Container of information about an image.", + "id": "GoogleCloudDatalabelingV1beta1ImagePayload", + "properties": { + "imageThumbnail": { + "description": "A byte string of a thumbnail image.", + "format": "byte", + "type": "string" + }, + "imageUri": { + "description": "Image uri from the user bucket.", + "type": "string" + }, + "mimeType": { + "description": "Image format.", + "type": "string" + }, + "signedUri": { + "description": "Signed uri of the image file in the service bucket.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation": { + "description": "A polyline for the image annotation.", + "id": "GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation", + "properties": { + "annotationSpec": { + "$ref": "GoogleCloudDatalabelingV1beta1AnnotationSpec", + "description": "Label of this polyline." + }, + "normalizedPolyline": { + "$ref": "GoogleCloudDatalabelingV1beta1NormalizedPolyline" + }, + "polyline": { + "$ref": "GoogleCloudDatalabelingV1beta1Polyline" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation": { + "description": "Image segmentation annotation.", + "id": "GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation", + "properties": { + "annotationColors": { + "additionalProperties": { + "$ref": "GoogleCloudDatalabelingV1beta1AnnotationSpec" + }, + "description": "The mapping between rgb color and annotation spec. The key is the rgb color represented in format of rgb(0, 0, 0). The value is the AnnotationSpec.", + "type": "object" + }, + "imageBytes": { + "description": "A byte string of a full image's color map.", + "format": "byte", + "type": "string" + }, + "mimeType": { + "description": "Image format.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ImportDataOperationMetadata": { + "description": "Metadata of an ImportData operation.", + "id": "GoogleCloudDatalabelingV1beta1ImportDataOperationMetadata", + "properties": { + "createTime": { + "description": "Output only. Timestamp when import dataset request was created.", + "format": "google-datetime", + "type": "string" + }, + "dataset": { + "description": "Output only. The name of imported dataset. \"projects/*/datasets/*\"", + "type": "string" + }, + "partialFailures": { + "description": "Output only. Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ImportDataOperationResponse": { + "description": "Response used for ImportData longrunning operation.", + "id": "GoogleCloudDatalabelingV1beta1ImportDataOperationResponse", + "properties": { + "dataset": { + "description": "Ouptut only. The name of imported dataset.", + "type": "string" + }, + "importCount": { + "description": "Output only. Number of examples imported successfully.", + "format": "int32", + "type": "integer" + }, + "totalCount": { + "description": "Output only. Total number of examples requested to import", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ImportDataRequest": { + "description": "Request message for ImportData API.", + "id": "GoogleCloudDatalabelingV1beta1ImportDataRequest", + "properties": { + "inputConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1InputConfig", + "description": "Required. Specify the input source of the data." + }, + "userEmailAddress": { + "description": "Email of the user who started the import task and should be notified by email. If empty no notification will be sent.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1InputConfig": { + "description": "The configuration of input data, including data type, location, etc.", + "id": "GoogleCloudDatalabelingV1beta1InputConfig", + "properties": { + "annotationType": { + "description": "Optional. The type of annotation to be performed on this data. You must specify this field if you are using this InputConfig in an EvaluationJob.", + "enum": [ + "ANNOTATION_TYPE_UNSPECIFIED", + "IMAGE_CLASSIFICATION_ANNOTATION", + "IMAGE_BOUNDING_BOX_ANNOTATION", + "IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION", + "IMAGE_BOUNDING_POLY_ANNOTATION", + "IMAGE_POLYLINE_ANNOTATION", + "IMAGE_SEGMENTATION_ANNOTATION", + "VIDEO_SHOTS_CLASSIFICATION_ANNOTATION", + "VIDEO_OBJECT_TRACKING_ANNOTATION", + "VIDEO_OBJECT_DETECTION_ANNOTATION", + "VIDEO_EVENT_ANNOTATION", + "TEXT_CLASSIFICATION_ANNOTATION", + "TEXT_ENTITY_EXTRACTION_ANNOTATION", + "GENERAL_CLASSIFICATION_ANNOTATION" + ], + "enumDescriptions": [ + "", + "Classification annotations in an image. Allowed for continuous evaluation.", + "Bounding box annotations in an image. A form of image object detection. Allowed for continuous evaluation.", + "Oriented bounding box. The box does not have to be parallel to horizontal line.", + "Bounding poly annotations in an image.", + "Polyline annotations in an image.", + "Segmentation annotations in an image.", + "Classification annotations in video shots.", + "Video object tracking annotation.", + "Video object detection annotation.", + "Video event annotation.", + "Classification for text. Allowed for continuous evaluation.", + "Entity extraction for text.", + "General classification. Allowed for continuous evaluation." + ], + "type": "string" + }, + "bigquerySource": { + "$ref": "GoogleCloudDatalabelingV1beta1BigQuerySource", + "description": "Source located in BigQuery. You must specify this field if you are using this InputConfig in an EvaluationJob." + }, + "classificationMetadata": { + "$ref": "GoogleCloudDatalabelingV1beta1ClassificationMetadata", + "description": "Optional. Metadata about annotations for the input. You must specify this field if you are using this InputConfig in an EvaluationJob for a model version that performs classification." + }, + "dataType": { + "description": "Required. Data type must be specifed when user tries to import data.", + "enum": [ + "DATA_TYPE_UNSPECIFIED", + "IMAGE", + "VIDEO", + "TEXT", + "GENERAL_DATA" + ], + "enumDescriptions": [ + "Data type is unspecified.", + "Allowed for continuous evaluation.", + "Video data type.", + "Allowed for continuous evaluation.", + "Allowed for continuous evaluation." + ], + "type": "string" + }, + "gcsSource": { + "$ref": "GoogleCloudDatalabelingV1beta1GcsSource", + "description": "Source located in Cloud Storage." + }, + "textMetadata": { + "$ref": "GoogleCloudDatalabelingV1beta1TextMetadata", + "description": "Required for text import, as language code must be specified." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1Instruction": { + "description": "Instruction of how to perform the labeling task for human operators. Currently only PDF instruction is supported.", + "id": "GoogleCloudDatalabelingV1beta1Instruction", + "properties": { + "blockingResources": { + "description": "Output only. The names of any related resources that are blocking changes to the instruction.", + "items": { + "type": "string" + }, + "type": "array" + }, + "createTime": { + "description": "Output only. Creation time of instruction.", + "format": "google-datetime", + "type": "string" + }, + "csvInstruction": { + "$ref": "GoogleCloudDatalabelingV1beta1CsvInstruction", + "description": "Deprecated: this instruction format is not supported any more. Instruction from a CSV file, such as for classification task. The CSV file should have exact two columns, in the following format: * The first column is labeled data, such as an image reference, text. * The second column is comma separated labels associated with data." + }, + "dataType": { + "description": "Required. The data type of this instruction.", + "enum": [ + "DATA_TYPE_UNSPECIFIED", + "IMAGE", + "VIDEO", + "TEXT", + "GENERAL_DATA" + ], + "enumDescriptions": [ + "Data type is unspecified.", + "Allowed for continuous evaluation.", + "Video data type.", + "Allowed for continuous evaluation.", + "Allowed for continuous evaluation." + ], + "type": "string" + }, + "description": { + "description": "Optional. User-provided description of the instruction. The description can be up to 10000 characters long.", + "type": "string" + }, + "displayName": { + "description": "Required. The display name of the instruction. Maximum of 64 characters.", + "type": "string" + }, + "name": { + "description": "Output only. Instruction resource name, format: projects/{project_id}/instructions/{instruction_id}", + "type": "string" + }, + "pdfInstruction": { + "$ref": "GoogleCloudDatalabelingV1beta1PdfInstruction", + "description": "Instruction from a PDF document. The PDF should be in a Cloud Storage bucket." + }, + "updateTime": { + "description": "Output only. Last update time of instruction.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1LabelImageBoundingBoxOperationMetadata": { + "description": "Details of a LabelImageBoundingBox operation metadata.", + "id": "GoogleCloudDatalabelingV1beta1LabelImageBoundingBoxOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1LabelImageBoundingPolyOperationMetadata": { + "description": "Details of LabelImageBoundingPoly operation metadata.", + "id": "GoogleCloudDatalabelingV1beta1LabelImageBoundingPolyOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1LabelImageClassificationOperationMetadata": { + "description": "Metadata of a LabelImageClassification operation.", + "id": "GoogleCloudDatalabelingV1beta1LabelImageClassificationOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1LabelImageOrientedBoundingBoxOperationMetadata": { + "description": "Details of a LabelImageOrientedBoundingBox operation metadata.", + "id": "GoogleCloudDatalabelingV1beta1LabelImageOrientedBoundingBoxOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1HumanAnnotationConfig", + "description": "Basic human annotation config." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1LabelImagePolylineOperationMetadata": { + "description": "Details of LabelImagePolyline operation metadata.", + "id": "GoogleCloudDatalabelingV1beta1LabelImagePolylineOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1LabelImageRequest": { + "description": "Request message for starting an image labeling task.", + "id": "GoogleCloudDatalabelingV1beta1LabelImageRequest", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1HumanAnnotationConfig", + "description": "Required. Basic human annotation config." + }, + "boundingPolyConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1BoundingPolyConfig", + "description": "Configuration for bounding box and bounding poly task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required." + }, + "feature": { + "description": "Required. The type of image labeling task.", + "enum": [ + "FEATURE_UNSPECIFIED", + "CLASSIFICATION", + "BOUNDING_BOX", + "ORIENTED_BOUNDING_BOX", + "BOUNDING_POLY", + "POLYLINE", + "SEGMENTATION" + ], + "enumDescriptions": [ + "", + "Label whole image with one or more of labels.", + "Label image with bounding boxes for labels.", + "Label oriented bounding box. The box does not have to be parallel to horizontal line.", + "Label images with bounding poly. A bounding poly is a plane figure that is bounded by a finite chain of straight line segments closing in a loop.", + "Label images with polyline. Polyline is formed by connected line segments which are not in closed form.", + "Label images with segmentation. Segmentation is different from bounding poly since it is more fine-grained, pixel level annotation." + ], + "type": "string" + }, + "imageClassificationConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1ImageClassificationConfig", + "description": "Configuration for image classification task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required." + }, + "polylineConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1PolylineConfig", + "description": "Configuration for polyline task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required." + }, + "segmentationConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1SegmentationConfig", + "description": "Configuration for segmentation task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1LabelImageSegmentationOperationMetadata": { + "description": "Details of a LabelImageSegmentation operation metadata.", + "id": "GoogleCloudDatalabelingV1beta1LabelImageSegmentationOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1HumanAnnotationConfig", + "description": "Basic human annotation config." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1LabelOperationMetadata": { + "description": "Metadata of a labeling operation, such as LabelImage or LabelVideo. Next tag: 23", + "id": "GoogleCloudDatalabelingV1beta1LabelOperationMetadata", + "properties": { + "annotatedDataset": { + "description": "Output only. The name of annotated dataset in format \"projects/*/datasets/*/annotatedDatasets/*\".", + "type": "string" + }, + "createTime": { + "description": "Output only. Timestamp when labeling request was created.", + "format": "google-datetime", + "type": "string" + }, + "dataset": { + "description": "Output only. The name of dataset to be labeled. \"projects/*/datasets/*\"", + "type": "string" + }, + "imageBoundingBoxDetails": { + "$ref": "GoogleCloudDatalabelingV1beta1LabelImageBoundingBoxOperationMetadata", + "description": "Details of label image bounding box operation." + }, + "imageBoundingPolyDetails": { + "$ref": "GoogleCloudDatalabelingV1beta1LabelImageBoundingPolyOperationMetadata", + "description": "Details of label image bounding poly operation." + }, + "imageClassificationDetails": { + "$ref": "GoogleCloudDatalabelingV1beta1LabelImageClassificationOperationMetadata", + "description": "Details of label image classification operation." + }, + "imageOrientedBoundingBoxDetails": { + "$ref": "GoogleCloudDatalabelingV1beta1LabelImageOrientedBoundingBoxOperationMetadata", + "description": "Details of label image oriented bounding box operation." + }, + "imagePolylineDetails": { + "$ref": "GoogleCloudDatalabelingV1beta1LabelImagePolylineOperationMetadata", + "description": "Details of label image polyline operation." + }, + "imageSegmentationDetails": { + "$ref": "GoogleCloudDatalabelingV1beta1LabelImageSegmentationOperationMetadata", + "description": "Details of label image segmentation operation." + }, + "partialFailures": { + "description": "Output only. Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + }, + "progressPercent": { + "description": "Output only. Progress of label operation. Range: [0, 100].", + "format": "int32", + "type": "integer" + }, + "textClassificationDetails": { + "$ref": "GoogleCloudDatalabelingV1beta1LabelTextClassificationOperationMetadata", + "description": "Details of label text classification operation." + }, + "textEntityExtractionDetails": { + "$ref": "GoogleCloudDatalabelingV1beta1LabelTextEntityExtractionOperationMetadata", + "description": "Details of label text entity extraction operation." + }, + "videoClassificationDetails": { + "$ref": "GoogleCloudDatalabelingV1beta1LabelVideoClassificationOperationMetadata", + "description": "Details of label video classification operation." + }, + "videoEventDetails": { + "$ref": "GoogleCloudDatalabelingV1beta1LabelVideoEventOperationMetadata", + "description": "Details of label video event operation." + }, + "videoObjectDetectionDetails": { + "$ref": "GoogleCloudDatalabelingV1beta1LabelVideoObjectDetectionOperationMetadata", + "description": "Details of label video object detection operation." + }, + "videoObjectTrackingDetails": { + "$ref": "GoogleCloudDatalabelingV1beta1LabelVideoObjectTrackingOperationMetadata", + "description": "Details of label video object tracking operation." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1LabelStats": { + "description": "Statistics about annotation specs.", + "id": "GoogleCloudDatalabelingV1beta1LabelStats", + "properties": { + "exampleCount": { + "additionalProperties": { + "format": "int64", + "type": "string" + }, + "description": "Map of each annotation spec's example count. Key is the annotation spec name and value is the number of examples for that annotation spec. If the annotated dataset does not have annotation spec, the map will return a pair where the key is empty string and value is the total number of annotations.", + "type": "object" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1LabelTextClassificationOperationMetadata": { + "description": "Details of a LabelTextClassification operation metadata.", + "id": "GoogleCloudDatalabelingV1beta1LabelTextClassificationOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1LabelTextEntityExtractionOperationMetadata": { + "description": "Details of a LabelTextEntityExtraction operation metadata.", + "id": "GoogleCloudDatalabelingV1beta1LabelTextEntityExtractionOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1LabelTextRequest": { + "description": "Request message for LabelText.", + "id": "GoogleCloudDatalabelingV1beta1LabelTextRequest", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1HumanAnnotationConfig", + "description": "Required. Basic human annotation config." + }, + "feature": { + "description": "Required. The type of text labeling task.", + "enum": [ + "FEATURE_UNSPECIFIED", + "TEXT_CLASSIFICATION", + "TEXT_ENTITY_EXTRACTION" + ], + "enumDescriptions": [ + "", + "Label text content to one of more labels.", + "Label entities and their span in text." + ], + "type": "string" + }, + "textClassificationConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1TextClassificationConfig", + "description": "Configuration for text classification task. One of text_classification_config and text_entity_extraction_config is required." + }, + "textEntityExtractionConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1TextEntityExtractionConfig", + "description": "Configuration for entity extraction task. One of text_classification_config and text_entity_extraction_config is required." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1LabelVideoClassificationOperationMetadata": { + "description": "Details of a LabelVideoClassification operation metadata.", + "id": "GoogleCloudDatalabelingV1beta1LabelVideoClassificationOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1LabelVideoEventOperationMetadata": { + "description": "Details of a LabelVideoEvent operation metadata.", + "id": "GoogleCloudDatalabelingV1beta1LabelVideoEventOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1LabelVideoObjectDetectionOperationMetadata": { + "description": "Details of a LabelVideoObjectDetection operation metadata.", + "id": "GoogleCloudDatalabelingV1beta1LabelVideoObjectDetectionOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1LabelVideoObjectTrackingOperationMetadata": { + "description": "Details of a LabelVideoObjectTracking operation metadata.", + "id": "GoogleCloudDatalabelingV1beta1LabelVideoObjectTrackingOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1LabelVideoRequest": { + "description": "Request message for LabelVideo.", + "id": "GoogleCloudDatalabelingV1beta1LabelVideoRequest", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1HumanAnnotationConfig", + "description": "Required. Basic human annotation config." + }, + "eventConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1EventConfig", + "description": "Configuration for video event task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required." + }, + "feature": { + "description": "Required. The type of video labeling task.", + "enum": [ + "FEATURE_UNSPECIFIED", + "CLASSIFICATION", + "OBJECT_DETECTION", + "OBJECT_TRACKING", + "EVENT" + ], + "enumDescriptions": [ + "", + "Label whole video or video segment with one or more labels.", + "Label objects with bounding box on image frames extracted from the video.", + "Label and track objects in video.", + "Label the range of video for the specified events." + ], + "type": "string" + }, + "objectDetectionConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1ObjectDetectionConfig", + "description": "Configuration for video object detection task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required." + }, + "objectTrackingConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1ObjectTrackingConfig", + "description": "Configuration for video object tracking task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required." + }, + "videoClassificationConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1VideoClassificationConfig", + "description": "Configuration for video classification task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse": { + "description": "Results of listing annotated datasets for a dataset.", + "id": "GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse", + "properties": { + "annotatedDatasets": { + "description": "The list of annotated datasets to return.", + "items": { + "$ref": "GoogleCloudDatalabelingV1beta1AnnotatedDataset" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token to retrieve next page of results.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse": { + "description": "Results of listing annotation spec set under a project.", + "id": "GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse", + "properties": { + "annotationSpecSets": { + "description": "The list of annotation spec sets.", + "items": { + "$ref": "GoogleCloudDatalabelingV1beta1AnnotationSpecSet" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token to retrieve next page of results.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ListDataItemsResponse": { + "description": "Results of listing data items in a dataset.", + "id": "GoogleCloudDatalabelingV1beta1ListDataItemsResponse", + "properties": { + "dataItems": { + "description": "The list of data items to return.", + "items": { + "$ref": "GoogleCloudDatalabelingV1beta1DataItem" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token to retrieve next page of results.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ListDatasetsResponse": { + "description": "Results of listing datasets within a project.", + "id": "GoogleCloudDatalabelingV1beta1ListDatasetsResponse", + "properties": { + "datasets": { + "description": "The list of datasets to return.", + "items": { + "$ref": "GoogleCloudDatalabelingV1beta1Dataset" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token to retrieve next page of results.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse": { + "description": "Results for listing evaluation jobs.", + "id": "GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse", + "properties": { + "evaluationJobs": { + "description": "The list of evaluation jobs to return.", + "items": { + "$ref": "GoogleCloudDatalabelingV1beta1EvaluationJob" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token to retrieve next page of results.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ListExamplesResponse": { + "description": "Results of listing Examples in and annotated dataset.", + "id": "GoogleCloudDatalabelingV1beta1ListExamplesResponse", + "properties": { + "examples": { + "description": "The list of examples to return.", + "items": { + "$ref": "GoogleCloudDatalabelingV1beta1Example" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token to retrieve next page of results.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse": { + "description": "Results for listing FeedbackMessages.", + "id": "GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse", + "properties": { + "feedbackMessages": { + "description": "The list of feedback messages to return.", + "items": { + "$ref": "GoogleCloudDatalabelingV1beta1FeedbackMessage" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token to retrieve next page of results.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse": { + "description": "Results for listing FeedbackThreads.", + "id": "GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse", + "properties": { + "feedbackThreads": { + "description": "The list of feedback threads to return.", + "items": { + "$ref": "GoogleCloudDatalabelingV1beta1FeedbackThread" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token to retrieve next page of results.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ListInstructionsResponse": { + "description": "Results of listing instructions under a project.", + "id": "GoogleCloudDatalabelingV1beta1ListInstructionsResponse", + "properties": { + "instructions": { + "description": "The list of Instructions to return.", + "items": { + "$ref": "GoogleCloudDatalabelingV1beta1Instruction" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token to retrieve next page of results.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1NormalizedBoundingPoly": { + "description": "Normalized bounding polygon.", + "id": "GoogleCloudDatalabelingV1beta1NormalizedBoundingPoly", + "properties": { + "normalizedVertices": { + "description": "The bounding polygon normalized vertices.", + "items": { + "$ref": "GoogleCloudDatalabelingV1beta1NormalizedVertex" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1NormalizedPolyline": { + "description": "Normalized polyline.", + "id": "GoogleCloudDatalabelingV1beta1NormalizedPolyline", + "properties": { + "normalizedVertices": { + "description": "The normalized polyline vertices.", + "items": { + "$ref": "GoogleCloudDatalabelingV1beta1NormalizedVertex" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1NormalizedVertex": { + "description": "A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.", + "id": "GoogleCloudDatalabelingV1beta1NormalizedVertex", + "properties": { + "x": { + "description": "X coordinate.", + "format": "float", + "type": "number" + }, + "y": { + "description": "Y coordinate.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ObjectDetectionConfig": { + "description": "Config for video object detection human labeling task. Object detection will be conducted on the images extracted from the video, and those objects will be labeled with bounding boxes. User need to specify the number of images to be extracted per second as the extraction frame rate.", + "id": "GoogleCloudDatalabelingV1beta1ObjectDetectionConfig", + "properties": { + "annotationSpecSet": { + "description": "Required. Annotation spec set resource name.", + "type": "string" + }, + "extractionFrameRate": { + "description": "Required. Number of frames per second to be extracted from the video.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ObjectDetectionMetrics": { + "description": "Metrics calculated for an image object detection (bounding box) model.", + "id": "GoogleCloudDatalabelingV1beta1ObjectDetectionMetrics", + "properties": { + "prCurve": { + "$ref": "GoogleCloudDatalabelingV1beta1PrCurve", + "description": "Precision-recall curve." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ObjectTrackingConfig": { + "description": "Config for video object tracking human labeling task.", + "id": "GoogleCloudDatalabelingV1beta1ObjectTrackingConfig", + "properties": { + "annotationSpecSet": { + "description": "Required. Annotation spec set resource name.", + "type": "string" + }, + "clipLength": { + "description": "Videos will be cut to smaller clips to make it easier for labelers to work on. Users can configure is field in seconds, if not set, default value is 20s.", + "format": "int32", + "type": "integer" + }, + "overlapLength": { + "description": "The overlap length between different video clips. Users can configure is field in seconds, if not set, default value is 0.3s.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ObjectTrackingFrame": { + "description": "Video frame level annotation for object detection and tracking.", + "id": "GoogleCloudDatalabelingV1beta1ObjectTrackingFrame", + "properties": { + "boundingPoly": { + "$ref": "GoogleCloudDatalabelingV1beta1BoundingPoly" + }, + "normalizedBoundingPoly": { + "$ref": "GoogleCloudDatalabelingV1beta1NormalizedBoundingPoly" + }, + "timeOffset": { + "description": "The time offset of this frame relative to the beginning of the video.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1OperatorFeedbackMetadata": { + "description": "Metadata describing the feedback from the operator.", + "id": "GoogleCloudDatalabelingV1beta1OperatorFeedbackMetadata", + "properties": {}, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1OperatorMetadata": { + "description": "General information useful for labels coming from contributors.", + "id": "GoogleCloudDatalabelingV1beta1OperatorMetadata", + "properties": { + "comments": { + "description": "Comments from contributors.", + "items": { + "type": "string" + }, + "type": "array" + }, + "labelVotes": { + "description": "The total number of contributors that choose this label.", + "format": "int32", + "type": "integer" + }, + "score": { + "description": "Confidence score corresponding to a label. For examle, if 3 contributors have answered the question and 2 of them agree on the final label, the confidence score will be 0.67 (2/3).", + "format": "float", + "type": "number" + }, + "totalVotes": { + "description": "The total number of contributors that answer this question.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1OutputConfig": { + "description": "The configuration of output data.", + "id": "GoogleCloudDatalabelingV1beta1OutputConfig", + "properties": { + "gcsDestination": { + "$ref": "GoogleCloudDatalabelingV1beta1GcsDestination", + "description": "Output to a file in Cloud Storage. Should be used for labeling output other than image segmentation." + }, + "gcsFolderDestination": { + "$ref": "GoogleCloudDatalabelingV1beta1GcsFolderDestination", + "description": "Output to a folder in Cloud Storage. Should be used for image segmentation or document de-identification labeling outputs." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1PauseEvaluationJobRequest": { + "description": "Request message for PauseEvaluationJob.", + "id": "GoogleCloudDatalabelingV1beta1PauseEvaluationJobRequest", + "properties": {}, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1PdfInstruction": { + "description": "Instruction from a PDF file.", + "id": "GoogleCloudDatalabelingV1beta1PdfInstruction", + "properties": { + "gcsFileUri": { + "description": "PDF file for the instruction. Only gcs path is allowed.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1Polyline": { + "description": "A line with multiple line segments.", + "id": "GoogleCloudDatalabelingV1beta1Polyline", + "properties": { + "vertices": { + "description": "The polyline vertices.", + "items": { + "$ref": "GoogleCloudDatalabelingV1beta1Vertex" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1PolylineConfig": { + "description": "Config for image polyline human labeling task.", + "id": "GoogleCloudDatalabelingV1beta1PolylineConfig", + "properties": { + "annotationSpecSet": { + "description": "Required. Annotation spec set resource name.", + "type": "string" + }, + "instructionMessage": { + "description": "Optional. Instruction message showed on contributors UI.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1PrCurve": { + "id": "GoogleCloudDatalabelingV1beta1PrCurve", + "properties": { + "annotationSpec": { + "$ref": "GoogleCloudDatalabelingV1beta1AnnotationSpec", + "description": "The annotation spec of the label for which the precision-recall curve calculated. If this field is empty, that means the precision-recall curve is an aggregate curve for all labels." + }, + "areaUnderCurve": { + "description": "Area under the precision-recall curve. Not to be confused with area under a receiver operating characteristic (ROC) curve.", + "format": "float", + "type": "number" + }, + "confidenceMetricsEntries": { + "description": "Entries that make up the precision-recall graph. Each entry is a \"point\" on the graph drawn for a different `confidence_threshold`.", + "items": { + "$ref": "GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry" + }, + "type": "array" + }, + "meanAveragePrecision": { + "description": "Mean average prcision of this curve.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1RequesterFeedbackMetadata": { + "description": "Metadata describing the feedback from the labeling task requester.", + "id": "GoogleCloudDatalabelingV1beta1RequesterFeedbackMetadata", + "properties": {}, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1ResumeEvaluationJobRequest": { + "description": "Request message ResumeEvaluationJob.", + "id": "GoogleCloudDatalabelingV1beta1ResumeEvaluationJobRequest", + "properties": {}, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1Row": { + "description": "A row in the confusion matrix. Each entry in this row has the same ground truth label.", + "id": "GoogleCloudDatalabelingV1beta1Row", + "properties": { + "annotationSpec": { + "$ref": "GoogleCloudDatalabelingV1beta1AnnotationSpec", + "description": "The annotation spec of the ground truth label for this row." + }, + "entries": { + "description": "A list of the confusion matrix entries. One entry for each possible predicted label.", + "items": { + "$ref": "GoogleCloudDatalabelingV1beta1ConfusionMatrixEntry" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse": { + "description": "Results of searching evaluations.", + "id": "GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse", + "properties": { + "evaluations": { + "description": "The list of evaluations matching the search.", + "items": { + "$ref": "GoogleCloudDatalabelingV1beta1Evaluation" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token to retrieve next page of results.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1SearchExampleComparisonsRequest": { + "description": "Request message of SearchExampleComparisons.", + "id": "GoogleCloudDatalabelingV1beta1SearchExampleComparisonsRequest", + "properties": { + "pageSize": { + "description": "Optional. Requested page size. Server may return fewer results than requested. Default value is 100.", + "format": "int32", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results for the server to return. Typically obtained by the nextPageToken of the response to a previous search rquest. If you don't specify this field, the API call requests the first page of the search.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse": { + "description": "Results of searching example comparisons.", + "id": "GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse", + "properties": { + "exampleComparisons": { + "description": "A list of example comparisons matching the search criteria.", + "items": { + "$ref": "GoogleCloudDatalabelingV1beta1ExampleComparison" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token to retrieve next page of results.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1SegmentationConfig": { + "description": "Config for image segmentation", + "id": "GoogleCloudDatalabelingV1beta1SegmentationConfig", + "properties": { + "annotationSpecSet": { + "description": "Required. Annotation spec set resource name. format: projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}", + "type": "string" + }, + "instructionMessage": { + "description": "Instruction message showed on labelers UI.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1SentimentConfig": { + "description": "Config for setting up sentiments.", + "id": "GoogleCloudDatalabelingV1beta1SentimentConfig", + "properties": { + "enableLabelSentimentSelection": { + "description": "If set to true, contributors will have the option to select sentiment of the label they selected, to mark it as negative or positive label. Default is false.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1SequentialSegment": { + "description": "Start and end position in a sequence (e.g. text segment).", + "id": "GoogleCloudDatalabelingV1beta1SequentialSegment", + "properties": { + "end": { + "description": "End position (exclusive).", + "format": "int32", + "type": "integer" + }, + "start": { + "description": "Start position (inclusive).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1TextClassificationAnnotation": { + "description": "Text classification annotation.", + "id": "GoogleCloudDatalabelingV1beta1TextClassificationAnnotation", + "properties": { + "annotationSpec": { + "$ref": "GoogleCloudDatalabelingV1beta1AnnotationSpec", + "description": "Label of the text." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1TextClassificationConfig": { + "description": "Config for text classification human labeling task.", + "id": "GoogleCloudDatalabelingV1beta1TextClassificationConfig", + "properties": { + "allowMultiLabel": { + "description": "Optional. If allow_multi_label is true, contributors are able to choose multiple labels for one text segment.", + "type": "boolean" + }, + "annotationSpecSet": { + "description": "Required. Annotation spec set resource name.", + "type": "string" + }, + "sentimentConfig": { + "$ref": "GoogleCloudDatalabelingV1beta1SentimentConfig", + "description": "Optional. Configs for sentiment selection." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1TextEntityExtractionAnnotation": { + "description": "Text entity extraction annotation.", + "id": "GoogleCloudDatalabelingV1beta1TextEntityExtractionAnnotation", + "properties": { + "annotationSpec": { + "$ref": "GoogleCloudDatalabelingV1beta1AnnotationSpec", + "description": "Label of the text entities." + }, + "sequentialSegment": { + "$ref": "GoogleCloudDatalabelingV1beta1SequentialSegment", + "description": "Position of the entity." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1TextEntityExtractionConfig": { + "description": "Config for text entity extraction human labeling task.", + "id": "GoogleCloudDatalabelingV1beta1TextEntityExtractionConfig", + "properties": { + "annotationSpecSet": { + "description": "Required. Annotation spec set resource name.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1TextMetadata": { + "description": "Metadata for the text.", + "id": "GoogleCloudDatalabelingV1beta1TextMetadata", + "properties": { + "languageCode": { + "description": "The language of this text, as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Default value is en-US.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1TextPayload": { + "description": "Container of information about a piece of text.", + "id": "GoogleCloudDatalabelingV1beta1TextPayload", + "properties": { + "textContent": { + "description": "Text content.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1TimeSegment": { + "description": "A time period inside of an example that has a time dimension (e.g. video).", + "id": "GoogleCloudDatalabelingV1beta1TimeSegment", + "properties": { + "endTimeOffset": { + "description": "End of the time segment (exclusive), represented as the duration since the example start.", + "format": "google-duration", + "type": "string" + }, + "startTimeOffset": { + "description": "Start of the time segment (inclusive), represented as the duration since the example start.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1Vertex": { + "description": "A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.", + "id": "GoogleCloudDatalabelingV1beta1Vertex", + "properties": { + "x": { + "description": "X coordinate.", + "format": "int32", + "type": "integer" + }, + "y": { + "description": "Y coordinate.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1VideoClassificationAnnotation": { + "description": "Video classification annotation.", + "id": "GoogleCloudDatalabelingV1beta1VideoClassificationAnnotation", + "properties": { + "annotationSpec": { + "$ref": "GoogleCloudDatalabelingV1beta1AnnotationSpec", + "description": "Label of the segment specified by time_segment." + }, + "timeSegment": { + "$ref": "GoogleCloudDatalabelingV1beta1TimeSegment", + "description": "The time segment of the video to which the annotation applies." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1VideoClassificationConfig": { + "description": "Config for video classification human labeling task. Currently two types of video classification are supported: 1. Assign labels on the entire video. 2. Split the video into multiple video clips based on camera shot, and assign labels on each video clip.", + "id": "GoogleCloudDatalabelingV1beta1VideoClassificationConfig", + "properties": { + "annotationSpecSetConfigs": { + "description": "Required. The list of annotation spec set configs. Since watching a video clip takes much longer time than an image, we support label with multiple AnnotationSpecSet at the same time. Labels in each AnnotationSpecSet will be shown in a group to contributors. Contributors can select one or more (depending on whether to allow multi label) from each group.", + "items": { + "$ref": "GoogleCloudDatalabelingV1beta1AnnotationSpecSetConfig" + }, + "type": "array" + }, + "applyShotDetection": { + "description": "Optional. Option to apply shot detection on the video.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1VideoEventAnnotation": { + "description": "Video event annotation.", + "id": "GoogleCloudDatalabelingV1beta1VideoEventAnnotation", + "properties": { + "annotationSpec": { + "$ref": "GoogleCloudDatalabelingV1beta1AnnotationSpec", + "description": "Label of the event in this annotation." + }, + "timeSegment": { + "$ref": "GoogleCloudDatalabelingV1beta1TimeSegment", + "description": "The time segment of the video to which the annotation applies." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1VideoObjectTrackingAnnotation": { + "description": "Video object tracking annotation.", + "id": "GoogleCloudDatalabelingV1beta1VideoObjectTrackingAnnotation", + "properties": { + "annotationSpec": { + "$ref": "GoogleCloudDatalabelingV1beta1AnnotationSpec", + "description": "Label of the object tracked in this annotation." + }, + "objectTrackingFrames": { + "description": "The list of frames where this object track appears.", + "items": { + "$ref": "GoogleCloudDatalabelingV1beta1ObjectTrackingFrame" + }, + "type": "array" + }, + "timeSegment": { + "$ref": "GoogleCloudDatalabelingV1beta1TimeSegment", + "description": "The time segment of the video to which object tracking applies." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1VideoPayload": { + "description": "Container of information of a video.", + "id": "GoogleCloudDatalabelingV1beta1VideoPayload", + "properties": { + "frameRate": { + "description": "FPS of the video.", + "format": "float", + "type": "number" + }, + "mimeType": { + "description": "Video format.", + "type": "string" + }, + "signedUri": { + "description": "Signed uri of the video file in the service bucket.", + "type": "string" + }, + "videoThumbnails": { + "description": "The list of video thumbnails.", + "items": { + "$ref": "GoogleCloudDatalabelingV1beta1VideoThumbnail" + }, + "type": "array" + }, + "videoUri": { + "description": "Video uri from the user bucket.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1beta1VideoThumbnail": { + "description": "Container of information of a video thumbnail.", + "id": "GoogleCloudDatalabelingV1beta1VideoThumbnail", + "properties": { + "thumbnail": { + "description": "A byte string of the video frame.", + "format": "byte", + "type": "string" + }, + "timeOffset": { + "description": "Time offset relative to the beginning of the video, corresponding to the video frame where the thumbnail has been extracted from.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p1alpha1CreateInstructionMetadata": { + "description": "Metadata of a CreateInstruction operation.", + "id": "GoogleCloudDatalabelingV1p1alpha1CreateInstructionMetadata", + "properties": { + "createTime": { + "description": "Timestamp when create instruction request was created.", + "format": "google-datetime", + "type": "string" + }, + "instruction": { + "description": "The name of the created Instruction. projects/{project_id}/instructions/{instruction_id}", + "type": "string" + }, + "partialFailures": { + "description": "Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p1alpha1ExportDataOperationMetadata": { + "description": "Metadata of an ExportData operation.", + "id": "GoogleCloudDatalabelingV1p1alpha1ExportDataOperationMetadata", + "properties": { + "annotatedDataset": { + "description": "Output only. The name of annotated dataset in format \"projects/*/datasets/*/annotatedDatasets/*\".", + "type": "string" + }, + "createTime": { + "description": "Output only. Timestamp when export dataset request was created.", + "format": "google-datetime", + "type": "string" + }, + "dataset": { + "description": "Output only. The name of dataset to be exported. \"projects/*/datasets/*\"", + "type": "string" + }, + "partialFailures": { + "description": "Output only. Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p1alpha1ExportDataOperationResponse": { + "description": "Response used for ExportDataset longrunning operation.", + "id": "GoogleCloudDatalabelingV1p1alpha1ExportDataOperationResponse", + "properties": { + "annotatedDataset": { + "description": "Output only. The name of annotated dataset in format \"projects/*/datasets/*/annotatedDatasets/*\".", + "type": "string" + }, + "dataset": { + "description": "Ouptut only. The name of dataset. \"projects/*/datasets/*\"", + "type": "string" + }, + "exportCount": { + "description": "Output only. Number of examples exported successfully.", + "format": "int32", + "type": "integer" + }, + "labelStats": { + "$ref": "GoogleCloudDatalabelingV1p1alpha1LabelStats", + "description": "Output only. Statistic infos of labels in the exported dataset." + }, + "outputConfig": { + "$ref": "GoogleCloudDatalabelingV1p1alpha1OutputConfig", + "description": "Output only. output_config in the ExportData request." + }, + "totalCount": { + "description": "Output only. Total number of examples requested to export", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p1alpha1GcsDestination": { + "description": "Export destination of the data.Only gcs path is allowed in output_uri.", + "id": "GoogleCloudDatalabelingV1p1alpha1GcsDestination", + "properties": { + "mimeType": { + "description": "Required. The format of the gcs destination. Only \"text/csv\" and \"application/json\" are supported.", + "type": "string" + }, + "outputUri": { + "description": "Required. The output uri of destination file.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p1alpha1GcsFolderDestination": { + "description": "Export folder destination of the data.", + "id": "GoogleCloudDatalabelingV1p1alpha1GcsFolderDestination", + "properties": { + "outputFolderUri": { + "description": "Required. Cloud Storage directory to export data to.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p1alpha1GenerateAnalysisReportOperationMetadata": { + "description": "Metadata of an GenerateAnalysisReport operation.", + "id": "GoogleCloudDatalabelingV1p1alpha1GenerateAnalysisReportOperationMetadata", + "properties": { + "createTime": { + "description": "Timestamp when generate report request was created.", + "format": "google-datetime", + "type": "string" + }, + "dataset": { + "description": "The name of the dataset for which the analysis report is generated. Format: \"projects/*/datasets/*\"", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig": { + "description": "Configuration for how human labeling task should be done.", + "id": "GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig", + "properties": { + "annotatedDatasetDescription": { + "description": "Optional. A human-readable description for AnnotatedDataset. The description can be up to 10000 characters long.", + "type": "string" + }, + "annotatedDatasetDisplayName": { + "description": "Required. A human-readable name for AnnotatedDataset defined by users. Maximum of 64 characters .", + "type": "string" + }, + "contributorEmails": { + "description": "Optional. If you want your own labeling contributors to manage and work on this labeling request, you can set these contributors here. We will give them access to the question types in crowdcompute. Note that these emails must be registered in crowdcompute worker UI: https://crowd-compute.appspot.com/", + "items": { + "type": "string" + }, + "type": "array" + }, + "instruction": { + "description": "Required. Instruction resource name.", + "type": "string" + }, + "labelGroup": { + "description": "Optional. A human-readable label used to logically group labeling tasks. This string must match the regular expression `[a-zA-Z\\\\d_-]{0,128}`.", + "type": "string" + }, + "languageCode": { + "description": "Optional. The Language of this question, as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Default value is en-US. Only need to set this when task is language related. For example, French text classification.", + "type": "string" + }, + "questionDuration": { + "description": "Optional. Maximum duration for contributors to answer a question. Maximum is 3600 seconds. Default is 3600 seconds.", + "format": "google-duration", + "type": "string" + }, + "replicaCount": { + "description": "Optional. Replication of questions. Each question will be sent to up to this number of contributors to label. Aggregated answers will be returned. Default is set to 1. For image related labeling, valid values are 1, 3, 5.", + "format": "int32", + "type": "integer" + }, + "userEmailAddress": { + "description": "Email of the user who started the labeling task and should be notified by email. If empty no notification will be sent.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p1alpha1ImportDataOperationMetadata": { + "description": "Metadata of an ImportData operation.", + "id": "GoogleCloudDatalabelingV1p1alpha1ImportDataOperationMetadata", + "properties": { + "createTime": { + "description": "Output only. Timestamp when import dataset request was created.", + "format": "google-datetime", + "type": "string" + }, + "dataset": { + "description": "Output only. The name of imported dataset. \"projects/*/datasets/*\"", + "type": "string" + }, + "partialFailures": { + "description": "Output only. Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p1alpha1ImportDataOperationResponse": { + "description": "Response used for ImportData longrunning operation.", + "id": "GoogleCloudDatalabelingV1p1alpha1ImportDataOperationResponse", + "properties": { + "dataset": { + "description": "Ouptut only. The name of imported dataset.", + "type": "string" + }, + "importCount": { + "description": "Output only. Number of examples imported successfully.", + "format": "int32", + "type": "integer" + }, + "totalCount": { + "description": "Output only. Total number of examples requested to import", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingBoxOperationMetadata": { + "description": "Details of a LabelImageBoundingBox operation metadata.", + "id": "GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingBoxOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingPolyOperationMetadata": { + "description": "Details of LabelImageBoundingPoly operation metadata.", + "id": "GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingPolyOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p1alpha1LabelImageClassificationOperationMetadata": { + "description": "Metadata of a LabelImageClassification operation.", + "id": "GoogleCloudDatalabelingV1p1alpha1LabelImageClassificationOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p1alpha1LabelImageOrientedBoundingBoxOperationMetadata": { + "description": "Details of a LabelImageOrientedBoundingBox operation metadata.", + "id": "GoogleCloudDatalabelingV1p1alpha1LabelImageOrientedBoundingBoxOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig", + "description": "Basic human annotation config." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p1alpha1LabelImagePolylineOperationMetadata": { + "description": "Details of LabelImagePolyline operation metadata.", + "id": "GoogleCloudDatalabelingV1p1alpha1LabelImagePolylineOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p1alpha1LabelImageSegmentationOperationMetadata": { + "description": "Details of a LabelImageSegmentation operation metadata.", + "id": "GoogleCloudDatalabelingV1p1alpha1LabelImageSegmentationOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig", + "description": "Basic human annotation config." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p1alpha1LabelOperationMetadata": { + "description": "Metadata of a labeling operation, such as LabelImage or LabelVideo. Next tag: 23", + "id": "GoogleCloudDatalabelingV1p1alpha1LabelOperationMetadata", + "properties": { + "annotatedDataset": { + "description": "Output only. The name of annotated dataset in format \"projects/*/datasets/*/annotatedDatasets/*\".", + "type": "string" + }, + "createTime": { + "description": "Output only. Timestamp when labeling request was created.", + "format": "google-datetime", + "type": "string" + }, + "dataset": { + "description": "Output only. The name of dataset to be labeled. \"projects/*/datasets/*\"", + "type": "string" + }, + "imageBoundingBoxDetails": { + "$ref": "GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingBoxOperationMetadata", + "description": "Details of label image bounding box operation." + }, + "imageBoundingPolyDetails": { + "$ref": "GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingPolyOperationMetadata", + "description": "Details of label image bounding poly operation." + }, + "imageClassificationDetails": { + "$ref": "GoogleCloudDatalabelingV1p1alpha1LabelImageClassificationOperationMetadata", + "description": "Details of label image classification operation." + }, + "imageOrientedBoundingBoxDetails": { + "$ref": "GoogleCloudDatalabelingV1p1alpha1LabelImageOrientedBoundingBoxOperationMetadata", + "description": "Details of label image oriented bounding box operation." + }, + "imagePolylineDetails": { + "$ref": "GoogleCloudDatalabelingV1p1alpha1LabelImagePolylineOperationMetadata", + "description": "Details of label image polyline operation." + }, + "imageSegmentationDetails": { + "$ref": "GoogleCloudDatalabelingV1p1alpha1LabelImageSegmentationOperationMetadata", + "description": "Details of label image segmentation operation." + }, + "partialFailures": { + "description": "Output only. Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + }, + "progressPercent": { + "description": "Output only. Progress of label operation. Range: [0, 100].", + "format": "int32", + "type": "integer" + }, + "textClassificationDetails": { + "$ref": "GoogleCloudDatalabelingV1p1alpha1LabelTextClassificationOperationMetadata", + "description": "Details of label text classification operation." + }, + "textEntityExtractionDetails": { + "$ref": "GoogleCloudDatalabelingV1p1alpha1LabelTextEntityExtractionOperationMetadata", + "description": "Details of label text entity extraction operation." + }, + "videoClassificationDetails": { + "$ref": "GoogleCloudDatalabelingV1p1alpha1LabelVideoClassificationOperationMetadata", + "description": "Details of label video classification operation." + }, + "videoEventDetails": { + "$ref": "GoogleCloudDatalabelingV1p1alpha1LabelVideoEventOperationMetadata", + "description": "Details of label video event operation." + }, + "videoObjectDetectionDetails": { + "$ref": "GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectDetectionOperationMetadata", + "description": "Details of label video object detection operation." + }, + "videoObjectTrackingDetails": { + "$ref": "GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectTrackingOperationMetadata", + "description": "Details of label video object tracking operation." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p1alpha1LabelStats": { + "description": "Statistics about annotation specs.", + "id": "GoogleCloudDatalabelingV1p1alpha1LabelStats", + "properties": { + "exampleCount": { + "additionalProperties": { + "format": "int64", + "type": "string" + }, + "description": "Map of each annotation spec's example count. Key is the annotation spec name and value is the number of examples for that annotation spec. If the annotated dataset does not have annotation spec, the map will return a pair where the key is empty string and value is the total number of annotations.", + "type": "object" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p1alpha1LabelTextClassificationOperationMetadata": { + "description": "Details of a LabelTextClassification operation metadata.", + "id": "GoogleCloudDatalabelingV1p1alpha1LabelTextClassificationOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p1alpha1LabelTextEntityExtractionOperationMetadata": { + "description": "Details of a LabelTextEntityExtraction operation metadata.", + "id": "GoogleCloudDatalabelingV1p1alpha1LabelTextEntityExtractionOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p1alpha1LabelVideoClassificationOperationMetadata": { + "description": "Details of a LabelVideoClassification operation metadata.", + "id": "GoogleCloudDatalabelingV1p1alpha1LabelVideoClassificationOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p1alpha1LabelVideoEventOperationMetadata": { + "description": "Details of a LabelVideoEvent operation metadata.", + "id": "GoogleCloudDatalabelingV1p1alpha1LabelVideoEventOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectDetectionOperationMetadata": { + "description": "Details of a LabelVideoObjectDetection operation metadata.", + "id": "GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectDetectionOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectTrackingOperationMetadata": { + "description": "Details of a LabelVideoObjectTracking operation metadata.", + "id": "GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectTrackingOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p1alpha1OutputConfig": { + "description": "The configuration of output data.", + "id": "GoogleCloudDatalabelingV1p1alpha1OutputConfig", + "properties": { + "gcsDestination": { + "$ref": "GoogleCloudDatalabelingV1p1alpha1GcsDestination", + "description": "Output to a file in Cloud Storage. Should be used for labeling output other than image segmentation." + }, + "gcsFolderDestination": { + "$ref": "GoogleCloudDatalabelingV1p1alpha1GcsFolderDestination", + "description": "Output to a folder in Cloud Storage. Should be used for image segmentation or document de-identification labeling outputs." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p2alpha1CreateInstructionMetadata": { + "description": "Metadata of a CreateInstruction operation.", + "id": "GoogleCloudDatalabelingV1p2alpha1CreateInstructionMetadata", + "properties": { + "createTime": { + "description": "Timestamp when create instruction request was created.", + "format": "google-datetime", + "type": "string" + }, + "instruction": { + "description": "The name of the created Instruction. projects/{project_id}/instructions/{instruction_id}", + "type": "string" + }, + "partialFailures": { + "description": "Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p2alpha1ExportDataOperationMetadata": { + "description": "Metadata of an ExportData operation.", + "id": "GoogleCloudDatalabelingV1p2alpha1ExportDataOperationMetadata", + "properties": { + "annotatedDataset": { + "description": "Output only. The name of annotated dataset in format \"projects/*/datasets/*/annotatedDatasets/*\".", + "type": "string" + }, + "createTime": { + "description": "Output only. Timestamp when export dataset request was created.", + "format": "google-datetime", + "type": "string" + }, + "dataset": { + "description": "Output only. The name of dataset to be exported. \"projects/*/datasets/*\"", + "type": "string" + }, + "partialFailures": { + "description": "Output only. Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p2alpha1ExportDataOperationResponse": { + "description": "Response used for ExportDataset longrunning operation.", + "id": "GoogleCloudDatalabelingV1p2alpha1ExportDataOperationResponse", + "properties": { + "annotatedDataset": { + "description": "Output only. The name of annotated dataset in format \"projects/*/datasets/*/annotatedDatasets/*\".", + "type": "string" + }, + "dataset": { + "description": "Ouptut only. The name of dataset. \"projects/*/datasets/*\"", + "type": "string" + }, + "exportCount": { + "description": "Output only. Number of examples exported successfully.", + "format": "int32", + "type": "integer" + }, + "labelStats": { + "$ref": "GoogleCloudDatalabelingV1p2alpha1LabelStats", + "description": "Output only. Statistic infos of labels in the exported dataset." + }, + "outputConfig": { + "$ref": "GoogleCloudDatalabelingV1p2alpha1OutputConfig", + "description": "Output only. output_config in the ExportData request." + }, + "totalCount": { + "description": "Output only. Total number of examples requested to export", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p2alpha1GcsDestination": { + "description": "Export destination of the data.Only gcs path is allowed in output_uri.", + "id": "GoogleCloudDatalabelingV1p2alpha1GcsDestination", + "properties": { + "mimeType": { + "description": "Required. The format of the gcs destination. Only \"text/csv\" and \"application/json\" are supported.", + "type": "string" + }, + "outputUri": { + "description": "Required. The output uri of destination file.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p2alpha1GcsFolderDestination": { + "description": "Export folder destination of the data.", + "id": "GoogleCloudDatalabelingV1p2alpha1GcsFolderDestination", + "properties": { + "outputFolderUri": { + "description": "Required. Cloud Storage directory to export data to.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig": { + "description": "Configuration for how human labeling task should be done.", + "id": "GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig", + "properties": { + "annotatedDatasetDescription": { + "description": "Optional. A human-readable description for AnnotatedDataset. The description can be up to 10000 characters long.", + "type": "string" + }, + "annotatedDatasetDisplayName": { + "description": "Required. A human-readable name for AnnotatedDataset defined by users. Maximum of 64 characters .", + "type": "string" + }, + "contributorEmails": { + "description": "Optional. If you want your own labeling contributors to manage and work on this labeling request, you can set these contributors here. We will give them access to the question types in crowdcompute. Note that these emails must be registered in crowdcompute worker UI: https://crowd-compute.appspot.com/", + "items": { + "type": "string" + }, + "type": "array" + }, + "instruction": { + "description": "Required. Instruction resource name.", + "type": "string" + }, + "labelGroup": { + "description": "Optional. A human-readable label used to logically group labeling tasks. This string must match the regular expression `[a-zA-Z\\\\d_-]{0,128}`.", + "type": "string" + }, + "languageCode": { + "description": "Optional. The Language of this question, as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Default value is en-US. Only need to set this when task is language related. For example, French text classification.", + "type": "string" + }, + "questionDuration": { + "description": "Optional. Maximum duration for contributors to answer a question. Maximum is 3600 seconds. Default is 3600 seconds.", + "format": "google-duration", + "type": "string" + }, + "replicaCount": { + "description": "Optional. Replication of questions. Each question will be sent to up to this number of contributors to label. Aggregated answers will be returned. Default is set to 1. For image related labeling, valid values are 1, 3, 5.", + "format": "int32", + "type": "integer" + }, + "userEmailAddress": { + "description": "Email of the user who started the labeling task and should be notified by email. If empty no notification will be sent.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p2alpha1ImportDataOperationMetadata": { + "description": "Metadata of an ImportData operation.", + "id": "GoogleCloudDatalabelingV1p2alpha1ImportDataOperationMetadata", + "properties": { + "createTime": { + "description": "Output only. Timestamp when import dataset request was created.", + "format": "google-datetime", + "type": "string" + }, + "dataset": { + "description": "Output only. The name of imported dataset. \"projects/*/datasets/*\"", + "type": "string" + }, + "partialFailures": { + "description": "Output only. Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p2alpha1ImportDataOperationResponse": { + "description": "Response used for ImportData longrunning operation.", + "id": "GoogleCloudDatalabelingV1p2alpha1ImportDataOperationResponse", + "properties": { + "dataset": { + "description": "Ouptut only. The name of imported dataset.", + "type": "string" + }, + "importCount": { + "description": "Output only. Number of examples imported successfully.", + "format": "int32", + "type": "integer" + }, + "totalCount": { + "description": "Output only. Total number of examples requested to import", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingBoxOperationMetadata": { + "description": "Details of a LabelImageBoundingBox operation metadata.", + "id": "GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingBoxOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingPolyOperationMetadata": { + "description": "Details of LabelImageBoundingPoly operation metadata.", + "id": "GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingPolyOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p2alpha1LabelImageClassificationOperationMetadata": { + "description": "Metadata of a LabelImageClassification operation.", + "id": "GoogleCloudDatalabelingV1p2alpha1LabelImageClassificationOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p2alpha1LabelImageOrientedBoundingBoxOperationMetadata": { + "description": "Details of a LabelImageOrientedBoundingBox operation metadata.", + "id": "GoogleCloudDatalabelingV1p2alpha1LabelImageOrientedBoundingBoxOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig", + "description": "Basic human annotation config." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p2alpha1LabelImagePolylineOperationMetadata": { + "description": "Details of LabelImagePolyline operation metadata.", + "id": "GoogleCloudDatalabelingV1p2alpha1LabelImagePolylineOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p2alpha1LabelImageSegmentationOperationMetadata": { + "description": "Details of a LabelImageSegmentation operation metadata.", + "id": "GoogleCloudDatalabelingV1p2alpha1LabelImageSegmentationOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig", + "description": "Basic human annotation config." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p2alpha1LabelOperationMetadata": { + "description": "Metadata of a labeling operation, such as LabelImage or LabelVideo. Next tag: 23", + "id": "GoogleCloudDatalabelingV1p2alpha1LabelOperationMetadata", + "properties": { + "annotatedDataset": { + "description": "Output only. The name of annotated dataset in format \"projects/*/datasets/*/annotatedDatasets/*\".", + "type": "string" + }, + "createTime": { + "description": "Output only. Timestamp when labeling request was created.", + "format": "google-datetime", + "type": "string" + }, + "dataset": { + "description": "Output only. The name of dataset to be labeled. \"projects/*/datasets/*\"", + "type": "string" + }, + "imageBoundingBoxDetails": { + "$ref": "GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingBoxOperationMetadata", + "description": "Details of label image bounding box operation." + }, + "imageBoundingPolyDetails": { + "$ref": "GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingPolyOperationMetadata", + "description": "Details of label image bounding poly operation." + }, + "imageClassificationDetails": { + "$ref": "GoogleCloudDatalabelingV1p2alpha1LabelImageClassificationOperationMetadata", + "description": "Details of label image classification operation." + }, + "imageOrientedBoundingBoxDetails": { + "$ref": "GoogleCloudDatalabelingV1p2alpha1LabelImageOrientedBoundingBoxOperationMetadata", + "description": "Details of label image oriented bounding box operation." + }, + "imagePolylineDetails": { + "$ref": "GoogleCloudDatalabelingV1p2alpha1LabelImagePolylineOperationMetadata", + "description": "Details of label image polyline operation." + }, + "imageSegmentationDetails": { + "$ref": "GoogleCloudDatalabelingV1p2alpha1LabelImageSegmentationOperationMetadata", + "description": "Details of label image segmentation operation." + }, + "partialFailures": { + "description": "Output only. Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + }, + "progressPercent": { + "description": "Output only. Progress of label operation. Range: [0, 100].", + "format": "int32", + "type": "integer" + }, + "textClassificationDetails": { + "$ref": "GoogleCloudDatalabelingV1p2alpha1LabelTextClassificationOperationMetadata", + "description": "Details of label text classification operation." + }, + "textEntityExtractionDetails": { + "$ref": "GoogleCloudDatalabelingV1p2alpha1LabelTextEntityExtractionOperationMetadata", + "description": "Details of label text entity extraction operation." + }, + "videoClassificationDetails": { + "$ref": "GoogleCloudDatalabelingV1p2alpha1LabelVideoClassificationOperationMetadata", + "description": "Details of label video classification operation." + }, + "videoEventDetails": { + "$ref": "GoogleCloudDatalabelingV1p2alpha1LabelVideoEventOperationMetadata", + "description": "Details of label video event operation." + }, + "videoObjectDetectionDetails": { + "$ref": "GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectDetectionOperationMetadata", + "description": "Details of label video object detection operation." + }, + "videoObjectTrackingDetails": { + "$ref": "GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectTrackingOperationMetadata", + "description": "Details of label video object tracking operation." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p2alpha1LabelStats": { + "description": "Statistics about annotation specs.", + "id": "GoogleCloudDatalabelingV1p2alpha1LabelStats", + "properties": { + "exampleCount": { + "additionalProperties": { + "format": "int64", + "type": "string" + }, + "description": "Map of each annotation spec's example count. Key is the annotation spec name and value is the number of examples for that annotation spec. If the annotated dataset does not have annotation spec, the map will return a pair where the key is empty string and value is the total number of annotations.", + "type": "object" + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p2alpha1LabelTextClassificationOperationMetadata": { + "description": "Details of a LabelTextClassification operation metadata.", + "id": "GoogleCloudDatalabelingV1p2alpha1LabelTextClassificationOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p2alpha1LabelTextEntityExtractionOperationMetadata": { + "description": "Details of a LabelTextEntityExtraction operation metadata.", + "id": "GoogleCloudDatalabelingV1p2alpha1LabelTextEntityExtractionOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p2alpha1LabelVideoClassificationOperationMetadata": { + "description": "Details of a LabelVideoClassification operation metadata.", + "id": "GoogleCloudDatalabelingV1p2alpha1LabelVideoClassificationOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p2alpha1LabelVideoEventOperationMetadata": { + "description": "Details of a LabelVideoEvent operation metadata.", + "id": "GoogleCloudDatalabelingV1p2alpha1LabelVideoEventOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectDetectionOperationMetadata": { + "description": "Details of a LabelVideoObjectDetection operation metadata.", + "id": "GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectDetectionOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectTrackingOperationMetadata": { + "description": "Details of a LabelVideoObjectTracking operation metadata.", + "id": "GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectTrackingOperationMetadata", + "properties": { + "basicConfig": { + "$ref": "GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig", + "description": "Basic human annotation config used in labeling request." + } + }, + "type": "object" + }, + "GoogleCloudDatalabelingV1p2alpha1OutputConfig": { + "description": "The configuration of output data.", + "id": "GoogleCloudDatalabelingV1p2alpha1OutputConfig", + "properties": { + "gcsDestination": { + "$ref": "GoogleCloudDatalabelingV1p2alpha1GcsDestination", + "description": "Output to a file in Cloud Storage. Should be used for labeling output other than image segmentation." + }, + "gcsFolderDestination": { + "$ref": "GoogleCloudDatalabelingV1p2alpha1GcsFolderDestination", + "description": "Output to a folder in Cloud Storage. Should be used for image segmentation or document de-identification labeling outputs." + } + }, + "type": "object" + }, + "GoogleLongrunningListOperationsResponse": { + "description": "The response message for Operations.ListOperations.", + "id": "GoogleLongrunningListOperationsResponse", + "properties": { + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + }, + "operations": { + "description": "A list of operations that matches the specified filter in the request.", + "items": { + "$ref": "GoogleLongrunningOperation" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleLongrunningOperation": { + "description": "This resource represents a long-running operation that is the result of a network API call.", + "id": "GoogleLongrunningOperation", + "properties": { + "done": { + "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", + "type": "boolean" + }, + "error": { + "$ref": "GoogleRpcStatus", + "description": "The error result of the operation in case of failure or cancellation." + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "type": "object" + }, + "name": { + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", + "type": "string" + }, + "response": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "type": "object" + } + }, + "type": "object" + }, + "GoogleProtobufEmpty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "id": "GoogleProtobufEmpty", + "properties": {}, + "type": "object" + }, + "GoogleRpcStatus": { + "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", + "id": "GoogleRpcStatus", + "properties": { + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "format": "int32", + "type": "integer" + }, + "details": { + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", + "type": "string" + } + }, + "type": "object" + } + }, + "servicePath": "", + "title": "Data Labeling API", + "version": "v1beta1", + "version_module": true +} \ No newline at end of file diff --git a/datalabeling/v1beta1/datalabeling-gen.go b/datalabeling/v1beta1/datalabeling-gen.go new file mode 100644 index 00000000000..b086fb8228d --- /dev/null +++ b/datalabeling/v1beta1/datalabeling-gen.go @@ -0,0 +1,15477 @@ +// Copyright 2020 Google LLC. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated file. DO NOT EDIT. + +// Package datalabeling provides access to the Data Labeling API. +// +// For product documentation, see: https://cloud.google.com/data-labeling/docs/ +// +// Creating a client +// +// Usage example: +// +// import "google.golang.org/api/datalabeling/v1beta1" +// ... +// ctx := context.Background() +// datalabelingService, err := datalabeling.NewService(ctx) +// +// In this example, Google Application Default Credentials are used for authentication. +// +// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// +// Other authentication options +// +// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// +// datalabelingService, err := datalabeling.NewService(ctx, option.WithAPIKey("AIza...")) +// +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// +// config := &oauth2.Config{...} +// // ... +// token, err := config.Exchange(ctx, ...) +// datalabelingService, err := datalabeling.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) +// +// See https://godoc.org/google.golang.org/api/option/ for details on options. +package datalabeling // import "google.golang.org/api/datalabeling/v1beta1" + +import ( + "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + googleapi "google.golang.org/api/googleapi" + gensupport "google.golang.org/api/internal/gensupport" + option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" + htransport "google.golang.org/api/transport/http" +) + +// Always reference these packages, just in case the auto-generated code +// below doesn't. +var _ = bytes.NewBuffer +var _ = strconv.Itoa +var _ = fmt.Sprintf +var _ = json.NewDecoder +var _ = io.Copy +var _ = url.Parse +var _ = gensupport.MarshalJSON +var _ = googleapi.Version +var _ = errors.New +var _ = strings.Replace +var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint + +const apiId = "datalabeling:v1beta1" +const apiName = "datalabeling" +const apiVersion = "v1beta1" +const basePath = "https://datalabeling.googleapis.com/" +const mtlsBasePath = "https://datalabeling.mtls.googleapis.com/" + +// OAuth2 scopes used by this API. +const ( + // View and manage your data across Google Cloud Platform services + CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" +) + +// NewService creates a new Service. +func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + scopesOption := option.WithScopes( + "https://www.googleapis.com/auth/cloud-platform", + ) + // NOTE: prepend, so we don't override user-specified scopes. + opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + client, endpoint, err := htransport.NewClient(ctx, opts...) + if err != nil { + return nil, err + } + s, err := New(client) + if err != nil { + return nil, err + } + if endpoint != "" { + s.BasePath = endpoint + } + return s, nil +} + +// New creates a new Service. It uses the provided http.Client for requests. +// +// Deprecated: please use NewService instead. +// To provide a custom HTTP client, use option.WithHTTPClient. +// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. +func New(client *http.Client) (*Service, error) { + if client == nil { + return nil, errors.New("client is nil") + } + s := &Service{client: client, BasePath: basePath} + s.Projects = NewProjectsService(s) + return s, nil +} + +type Service struct { + client *http.Client + BasePath string // API endpoint base URL + UserAgent string // optional additional User-Agent fragment + + Projects *ProjectsService +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewProjectsService(s *Service) *ProjectsService { + rs := &ProjectsService{s: s} + rs.AnnotationSpecSets = NewProjectsAnnotationSpecSetsService(s) + rs.Datasets = NewProjectsDatasetsService(s) + rs.EvaluationJobs = NewProjectsEvaluationJobsService(s) + rs.Evaluations = NewProjectsEvaluationsService(s) + rs.Instructions = NewProjectsInstructionsService(s) + rs.Operations = NewProjectsOperationsService(s) + return rs +} + +type ProjectsService struct { + s *Service + + AnnotationSpecSets *ProjectsAnnotationSpecSetsService + + Datasets *ProjectsDatasetsService + + EvaluationJobs *ProjectsEvaluationJobsService + + Evaluations *ProjectsEvaluationsService + + Instructions *ProjectsInstructionsService + + Operations *ProjectsOperationsService +} + +func NewProjectsAnnotationSpecSetsService(s *Service) *ProjectsAnnotationSpecSetsService { + rs := &ProjectsAnnotationSpecSetsService{s: s} + return rs +} + +type ProjectsAnnotationSpecSetsService struct { + s *Service +} + +func NewProjectsDatasetsService(s *Service) *ProjectsDatasetsService { + rs := &ProjectsDatasetsService{s: s} + rs.AnnotatedDatasets = NewProjectsDatasetsAnnotatedDatasetsService(s) + rs.DataItems = NewProjectsDatasetsDataItemsService(s) + rs.Evaluations = NewProjectsDatasetsEvaluationsService(s) + rs.Image = NewProjectsDatasetsImageService(s) + rs.Text = NewProjectsDatasetsTextService(s) + rs.Video = NewProjectsDatasetsVideoService(s) + return rs +} + +type ProjectsDatasetsService struct { + s *Service + + AnnotatedDatasets *ProjectsDatasetsAnnotatedDatasetsService + + DataItems *ProjectsDatasetsDataItemsService + + Evaluations *ProjectsDatasetsEvaluationsService + + Image *ProjectsDatasetsImageService + + Text *ProjectsDatasetsTextService + + Video *ProjectsDatasetsVideoService +} + +func NewProjectsDatasetsAnnotatedDatasetsService(s *Service) *ProjectsDatasetsAnnotatedDatasetsService { + rs := &ProjectsDatasetsAnnotatedDatasetsService{s: s} + rs.DataItems = NewProjectsDatasetsAnnotatedDatasetsDataItemsService(s) + rs.Examples = NewProjectsDatasetsAnnotatedDatasetsExamplesService(s) + rs.FeedbackThreads = NewProjectsDatasetsAnnotatedDatasetsFeedbackThreadsService(s) + return rs +} + +type ProjectsDatasetsAnnotatedDatasetsService struct { + s *Service + + DataItems *ProjectsDatasetsAnnotatedDatasetsDataItemsService + + Examples *ProjectsDatasetsAnnotatedDatasetsExamplesService + + FeedbackThreads *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsService +} + +func NewProjectsDatasetsAnnotatedDatasetsDataItemsService(s *Service) *ProjectsDatasetsAnnotatedDatasetsDataItemsService { + rs := &ProjectsDatasetsAnnotatedDatasetsDataItemsService{s: s} + return rs +} + +type ProjectsDatasetsAnnotatedDatasetsDataItemsService struct { + s *Service +} + +func NewProjectsDatasetsAnnotatedDatasetsExamplesService(s *Service) *ProjectsDatasetsAnnotatedDatasetsExamplesService { + rs := &ProjectsDatasetsAnnotatedDatasetsExamplesService{s: s} + return rs +} + +type ProjectsDatasetsAnnotatedDatasetsExamplesService struct { + s *Service +} + +func NewProjectsDatasetsAnnotatedDatasetsFeedbackThreadsService(s *Service) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsService { + rs := &ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsService{s: s} + rs.FeedbackMessages = NewProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService(s) + return rs +} + +type ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsService struct { + s *Service + + FeedbackMessages *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService +} + +func NewProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService(s *Service) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService { + rs := &ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService{s: s} + return rs +} + +type ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService struct { + s *Service +} + +func NewProjectsDatasetsDataItemsService(s *Service) *ProjectsDatasetsDataItemsService { + rs := &ProjectsDatasetsDataItemsService{s: s} + return rs +} + +type ProjectsDatasetsDataItemsService struct { + s *Service +} + +func NewProjectsDatasetsEvaluationsService(s *Service) *ProjectsDatasetsEvaluationsService { + rs := &ProjectsDatasetsEvaluationsService{s: s} + rs.ExampleComparisons = NewProjectsDatasetsEvaluationsExampleComparisonsService(s) + return rs +} + +type ProjectsDatasetsEvaluationsService struct { + s *Service + + ExampleComparisons *ProjectsDatasetsEvaluationsExampleComparisonsService +} + +func NewProjectsDatasetsEvaluationsExampleComparisonsService(s *Service) *ProjectsDatasetsEvaluationsExampleComparisonsService { + rs := &ProjectsDatasetsEvaluationsExampleComparisonsService{s: s} + return rs +} + +type ProjectsDatasetsEvaluationsExampleComparisonsService struct { + s *Service +} + +func NewProjectsDatasetsImageService(s *Service) *ProjectsDatasetsImageService { + rs := &ProjectsDatasetsImageService{s: s} + return rs +} + +type ProjectsDatasetsImageService struct { + s *Service +} + +func NewProjectsDatasetsTextService(s *Service) *ProjectsDatasetsTextService { + rs := &ProjectsDatasetsTextService{s: s} + return rs +} + +type ProjectsDatasetsTextService struct { + s *Service +} + +func NewProjectsDatasetsVideoService(s *Service) *ProjectsDatasetsVideoService { + rs := &ProjectsDatasetsVideoService{s: s} + return rs +} + +type ProjectsDatasetsVideoService struct { + s *Service +} + +func NewProjectsEvaluationJobsService(s *Service) *ProjectsEvaluationJobsService { + rs := &ProjectsEvaluationJobsService{s: s} + return rs +} + +type ProjectsEvaluationJobsService struct { + s *Service +} + +func NewProjectsEvaluationsService(s *Service) *ProjectsEvaluationsService { + rs := &ProjectsEvaluationsService{s: s} + return rs +} + +type ProjectsEvaluationsService struct { + s *Service +} + +func NewProjectsInstructionsService(s *Service) *ProjectsInstructionsService { + rs := &ProjectsInstructionsService{s: s} + return rs +} + +type ProjectsInstructionsService struct { + s *Service +} + +func NewProjectsOperationsService(s *Service) *ProjectsOperationsService { + rs := &ProjectsOperationsService{s: s} + return rs +} + +type ProjectsOperationsService struct { + s *Service +} + +// GoogleCloudDatalabelingV1alpha1CreateInstructionMetadata: Metadata of +// a CreateInstruction operation. +type GoogleCloudDatalabelingV1alpha1CreateInstructionMetadata struct { + // CreateTime: Timestamp when create instruction request was created. + CreateTime string `json:"createTime,omitempty"` + + // Instruction: The name of the created Instruction. + // projects/{project_id}/instructions/{instruction_id} + Instruction string `json:"instruction,omitempty"` + + // PartialFailures: Partial failures encountered. E.g. single files that + // couldn't be read. Status details field will contain standard GCP + // error details. + PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1alpha1CreateInstructionMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1alpha1CreateInstructionMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1alpha1ExportDataOperationMetadata: Metadata +// of an ExportData operation. +type GoogleCloudDatalabelingV1alpha1ExportDataOperationMetadata struct { + // AnnotatedDataset: Output only. The name of annotated dataset in + // format "projects/*/datasets/*/annotatedDatasets/*". + AnnotatedDataset string `json:"annotatedDataset,omitempty"` + + // CreateTime: Output only. Timestamp when export dataset request was + // created. + CreateTime string `json:"createTime,omitempty"` + + // Dataset: Output only. The name of dataset to be exported. + // "projects/*/datasets/*" + Dataset string `json:"dataset,omitempty"` + + // PartialFailures: Output only. Partial failures encountered. E.g. + // single files that couldn't be read. Status details field will contain + // standard GCP error details. + PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotatedDataset") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotatedDataset") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1alpha1ExportDataOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1alpha1ExportDataOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1alpha1ExportDataOperationResponse: Response +// used for ExportDataset longrunning operation. +type GoogleCloudDatalabelingV1alpha1ExportDataOperationResponse struct { + // AnnotatedDataset: Output only. The name of annotated dataset in + // format "projects/*/datasets/*/annotatedDatasets/*". + AnnotatedDataset string `json:"annotatedDataset,omitempty"` + + // Dataset: Ouptut only. The name of dataset. "projects/*/datasets/*" + Dataset string `json:"dataset,omitempty"` + + // ExportCount: Output only. Number of examples exported successfully. + ExportCount int64 `json:"exportCount,omitempty"` + + // LabelStats: Output only. Statistic infos of labels in the exported + // dataset. + LabelStats *GoogleCloudDatalabelingV1alpha1LabelStats `json:"labelStats,omitempty"` + + // OutputConfig: Output only. output_config in the ExportData request. + OutputConfig *GoogleCloudDatalabelingV1alpha1OutputConfig `json:"outputConfig,omitempty"` + + // TotalCount: Output only. Total number of examples requested to export + TotalCount int64 `json:"totalCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotatedDataset") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotatedDataset") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1alpha1ExportDataOperationResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1alpha1ExportDataOperationResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1alpha1GcsDestination: Export destination of +// the data.Only gcs path is allowed in output_uri. +type GoogleCloudDatalabelingV1alpha1GcsDestination struct { + // MimeType: Required. The format of the gcs destination. Only + // "text/csv" and "application/json" are supported. + MimeType string `json:"mimeType,omitempty"` + + // OutputUri: Required. The output uri of destination file. + OutputUri string `json:"outputUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MimeType") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MimeType") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1alpha1GcsDestination) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1alpha1GcsDestination + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1alpha1GcsFolderDestination: Export folder +// destination of the data. +type GoogleCloudDatalabelingV1alpha1GcsFolderDestination struct { + // OutputFolderUri: Required. Cloud Storage directory to export data to. + OutputFolderUri string `json:"outputFolderUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OutputFolderUri") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "OutputFolderUri") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1alpha1GcsFolderDestination) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1alpha1GcsFolderDestination + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig: Configuration +// for how human labeling task should be done. +type GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig struct { + // AnnotatedDatasetDescription: Optional. A human-readable description + // for AnnotatedDataset. The description can be up to 10000 characters + // long. + AnnotatedDatasetDescription string `json:"annotatedDatasetDescription,omitempty"` + + // AnnotatedDatasetDisplayName: Required. A human-readable name for + // AnnotatedDataset defined by users. Maximum of 64 characters . + AnnotatedDatasetDisplayName string `json:"annotatedDatasetDisplayName,omitempty"` + + // ContributorEmails: Optional. If you want your own labeling + // contributors to manage and work on this labeling request, you can set + // these contributors here. We will give them access to the question + // types in crowdcompute. Note that these emails must be registered in + // crowdcompute worker UI: https://crowd-compute.appspot.com/ + ContributorEmails []string `json:"contributorEmails,omitempty"` + + // Instruction: Required. Instruction resource name. + Instruction string `json:"instruction,omitempty"` + + // LabelGroup: Optional. A human-readable label used to logically group + // labeling tasks. This string must match the regular expression + // `[a-zA-Z\\d_-]{0,128}`. + LabelGroup string `json:"labelGroup,omitempty"` + + // LanguageCode: Optional. The Language of this question, as a + // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Default value + // is en-US. Only need to set this when task is language related. For + // example, French text classification. + LanguageCode string `json:"languageCode,omitempty"` + + // QuestionDuration: Optional. Maximum duration for contributors to + // answer a question. Maximum is 3600 seconds. Default is 3600 seconds. + QuestionDuration string `json:"questionDuration,omitempty"` + + // ReplicaCount: Optional. Replication of questions. Each question will + // be sent to up to this number of contributors to label. Aggregated + // answers will be returned. Default is set to 1. For image related + // labeling, valid values are 1, 3, 5. + ReplicaCount int64 `json:"replicaCount,omitempty"` + + // UserEmailAddress: Email of the user who started the labeling task and + // should be notified by email. If empty no notification will be sent. + UserEmailAddress string `json:"userEmailAddress,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AnnotatedDatasetDescription") to unconditionally include in API + // requests. By default, fields with empty values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "AnnotatedDatasetDescription") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1alpha1ImportDataOperationMetadata: Metadata +// of an ImportData operation. +type GoogleCloudDatalabelingV1alpha1ImportDataOperationMetadata struct { + // CreateTime: Output only. Timestamp when import dataset request was + // created. + CreateTime string `json:"createTime,omitempty"` + + // Dataset: Output only. The name of imported dataset. + // "projects/*/datasets/*" + Dataset string `json:"dataset,omitempty"` + + // PartialFailures: Output only. Partial failures encountered. E.g. + // single files that couldn't be read. Status details field will contain + // standard GCP error details. + PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1alpha1ImportDataOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1alpha1ImportDataOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1alpha1ImportDataOperationResponse: Response +// used for ImportData longrunning operation. +type GoogleCloudDatalabelingV1alpha1ImportDataOperationResponse struct { + // Dataset: Ouptut only. The name of imported dataset. + Dataset string `json:"dataset,omitempty"` + + // ImportCount: Output only. Number of examples imported successfully. + ImportCount int64 `json:"importCount,omitempty"` + + // TotalCount: Output only. Total number of examples requested to import + TotalCount int64 `json:"totalCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Dataset") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Dataset") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1alpha1ImportDataOperationResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1alpha1ImportDataOperationResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1alpha1LabelImageBoundingBoxOperationMetadata: +// Details of a LabelImageBoundingBox operation metadata. +type GoogleCloudDatalabelingV1alpha1LabelImageBoundingBoxOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1alpha1LabelImageBoundingBoxOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1alpha1LabelImageBoundingBoxOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1alpha1LabelImageBoundingPolyOperationMetadata +// : Details of LabelImageBoundingPoly operation metadata. +type GoogleCloudDatalabelingV1alpha1LabelImageBoundingPolyOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1alpha1LabelImageBoundingPolyOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1alpha1LabelImageBoundingPolyOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1alpha1LabelImageClassificationOperationMetada +// ta: Metadata of a LabelImageClassification operation. +type GoogleCloudDatalabelingV1alpha1LabelImageClassificationOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1alpha1LabelImageClassificationOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1alpha1LabelImageClassificationOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1alpha1LabelImageOrientedBoundingBoxOperationM +// etadata: Details of a LabelImageOrientedBoundingBox operation +// metadata. +type GoogleCloudDatalabelingV1alpha1LabelImageOrientedBoundingBoxOperationMetadata struct { + // BasicConfig: Basic human annotation config. + BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1alpha1LabelImageOrientedBoundingBoxOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1alpha1LabelImageOrientedBoundingBoxOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1alpha1LabelImagePolylineOperationMetadata: +// Details of LabelImagePolyline operation metadata. +type GoogleCloudDatalabelingV1alpha1LabelImagePolylineOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1alpha1LabelImagePolylineOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1alpha1LabelImagePolylineOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1alpha1LabelImageSegmentationOperationMetadata +// : Details of a LabelImageSegmentation operation metadata. +type GoogleCloudDatalabelingV1alpha1LabelImageSegmentationOperationMetadata struct { + // BasicConfig: Basic human annotation config. + BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1alpha1LabelImageSegmentationOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1alpha1LabelImageSegmentationOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1alpha1LabelOperationMetadata: Metadata of a +// labeling operation, such as LabelImage or LabelVideo. Next tag: 23 +type GoogleCloudDatalabelingV1alpha1LabelOperationMetadata struct { + // AnnotatedDataset: Output only. The name of annotated dataset in + // format "projects/*/datasets/*/annotatedDatasets/*". + AnnotatedDataset string `json:"annotatedDataset,omitempty"` + + // CreateTime: Output only. Timestamp when labeling request was created. + CreateTime string `json:"createTime,omitempty"` + + // Dataset: Output only. The name of dataset to be labeled. + // "projects/*/datasets/*" + Dataset string `json:"dataset,omitempty"` + + // ImageBoundingBoxDetails: Details of label image bounding box + // operation. + ImageBoundingBoxDetails *GoogleCloudDatalabelingV1alpha1LabelImageBoundingBoxOperationMetadata `json:"imageBoundingBoxDetails,omitempty"` + + // ImageBoundingPolyDetails: Details of label image bounding poly + // operation. + ImageBoundingPolyDetails *GoogleCloudDatalabelingV1alpha1LabelImageBoundingPolyOperationMetadata `json:"imageBoundingPolyDetails,omitempty"` + + // ImageClassificationDetails: Details of label image classification + // operation. + ImageClassificationDetails *GoogleCloudDatalabelingV1alpha1LabelImageClassificationOperationMetadata `json:"imageClassificationDetails,omitempty"` + + // ImageOrientedBoundingBoxDetails: Details of label image oriented + // bounding box operation. + ImageOrientedBoundingBoxDetails *GoogleCloudDatalabelingV1alpha1LabelImageOrientedBoundingBoxOperationMetadata `json:"imageOrientedBoundingBoxDetails,omitempty"` + + // ImagePolylineDetails: Details of label image polyline operation. + ImagePolylineDetails *GoogleCloudDatalabelingV1alpha1LabelImagePolylineOperationMetadata `json:"imagePolylineDetails,omitempty"` + + // ImageSegmentationDetails: Details of label image segmentation + // operation. + ImageSegmentationDetails *GoogleCloudDatalabelingV1alpha1LabelImageSegmentationOperationMetadata `json:"imageSegmentationDetails,omitempty"` + + // PartialFailures: Output only. Partial failures encountered. E.g. + // single files that couldn't be read. Status details field will contain + // standard GCP error details. + PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"` + + // ProgressPercent: Output only. Progress of label operation. Range: [0, + // 100]. + ProgressPercent int64 `json:"progressPercent,omitempty"` + + // TextClassificationDetails: Details of label text classification + // operation. + TextClassificationDetails *GoogleCloudDatalabelingV1alpha1LabelTextClassificationOperationMetadata `json:"textClassificationDetails,omitempty"` + + // TextEntityExtractionDetails: Details of label text entity extraction + // operation. + TextEntityExtractionDetails *GoogleCloudDatalabelingV1alpha1LabelTextEntityExtractionOperationMetadata `json:"textEntityExtractionDetails,omitempty"` + + // VideoClassificationDetails: Details of label video classification + // operation. + VideoClassificationDetails *GoogleCloudDatalabelingV1alpha1LabelVideoClassificationOperationMetadata `json:"videoClassificationDetails,omitempty"` + + // VideoEventDetails: Details of label video event operation. + VideoEventDetails *GoogleCloudDatalabelingV1alpha1LabelVideoEventOperationMetadata `json:"videoEventDetails,omitempty"` + + // VideoObjectDetectionDetails: Details of label video object detection + // operation. + VideoObjectDetectionDetails *GoogleCloudDatalabelingV1alpha1LabelVideoObjectDetectionOperationMetadata `json:"videoObjectDetectionDetails,omitempty"` + + // VideoObjectTrackingDetails: Details of label video object tracking + // operation. + VideoObjectTrackingDetails *GoogleCloudDatalabelingV1alpha1LabelVideoObjectTrackingOperationMetadata `json:"videoObjectTrackingDetails,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotatedDataset") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotatedDataset") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1alpha1LabelOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1alpha1LabelOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1alpha1LabelStats: Statistics about +// annotation specs. +type GoogleCloudDatalabelingV1alpha1LabelStats struct { + // ExampleCount: Map of each annotation spec's example count. Key is the + // annotation spec name and value is the number of examples for that + // annotation spec. If the annotated dataset does not have annotation + // spec, the map will return a pair where the key is empty string and + // value is the total number of annotations. + ExampleCount map[string]string `json:"exampleCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExampleCount") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExampleCount") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1alpha1LabelStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1alpha1LabelStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1alpha1LabelTextClassificationOperationMetadat +// a: Details of a LabelTextClassification operation metadata. +type GoogleCloudDatalabelingV1alpha1LabelTextClassificationOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1alpha1LabelTextClassificationOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1alpha1LabelTextClassificationOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1alpha1LabelTextEntityExtractionOperationMetad +// ata: Details of a LabelTextEntityExtraction operation metadata. +type GoogleCloudDatalabelingV1alpha1LabelTextEntityExtractionOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1alpha1LabelTextEntityExtractionOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1alpha1LabelTextEntityExtractionOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1alpha1LabelVideoClassificationOperationMetada +// ta: Details of a LabelVideoClassification operation metadata. +type GoogleCloudDatalabelingV1alpha1LabelVideoClassificationOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1alpha1LabelVideoClassificationOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1alpha1LabelVideoClassificationOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1alpha1LabelVideoEventOperationMetadata: +// Details of a LabelVideoEvent operation metadata. +type GoogleCloudDatalabelingV1alpha1LabelVideoEventOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1alpha1LabelVideoEventOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1alpha1LabelVideoEventOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1alpha1LabelVideoObjectDetectionOperationMetad +// ata: Details of a LabelVideoObjectDetection operation metadata. +type GoogleCloudDatalabelingV1alpha1LabelVideoObjectDetectionOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1alpha1LabelVideoObjectDetectionOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1alpha1LabelVideoObjectDetectionOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1alpha1LabelVideoObjectTrackingOperationMetada +// ta: Details of a LabelVideoObjectTracking operation metadata. +type GoogleCloudDatalabelingV1alpha1LabelVideoObjectTrackingOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1alpha1LabelVideoObjectTrackingOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1alpha1LabelVideoObjectTrackingOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1alpha1OutputConfig: The configuration of +// output data. +type GoogleCloudDatalabelingV1alpha1OutputConfig struct { + // GcsDestination: Output to a file in Cloud Storage. Should be used for + // labeling output other than image segmentation. + GcsDestination *GoogleCloudDatalabelingV1alpha1GcsDestination `json:"gcsDestination,omitempty"` + + // GcsFolderDestination: Output to a folder in Cloud Storage. Should be + // used for image segmentation or document de-identification labeling + // outputs. + GcsFolderDestination *GoogleCloudDatalabelingV1alpha1GcsFolderDestination `json:"gcsFolderDestination,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GcsDestination") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GcsDestination") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1alpha1OutputConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1alpha1OutputConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1AnnotatedDataset: AnnotatedDataset is a +// set holding annotations for data in a Dataset. Each labeling task +// will generate an AnnotatedDataset under the Dataset that the task is +// requested for. +type GoogleCloudDatalabelingV1beta1AnnotatedDataset struct { + // AnnotationSource: Output only. Source of the annotation. + // + // Possible values: + // "ANNOTATION_SOURCE_UNSPECIFIED" + // "OPERATOR" - Answer is provided by a human contributor. + AnnotationSource string `json:"annotationSource,omitempty"` + + // AnnotationType: Output only. Type of the annotation. It is specified + // when starting labeling task. + // + // Possible values: + // "ANNOTATION_TYPE_UNSPECIFIED" + // "IMAGE_CLASSIFICATION_ANNOTATION" - Classification annotations in + // an image. Allowed for continuous evaluation. + // "IMAGE_BOUNDING_BOX_ANNOTATION" - Bounding box annotations in an + // image. A form of image object detection. Allowed for continuous + // evaluation. + // "IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION" - Oriented bounding box. + // The box does not have to be parallel to horizontal line. + // "IMAGE_BOUNDING_POLY_ANNOTATION" - Bounding poly annotations in an + // image. + // "IMAGE_POLYLINE_ANNOTATION" - Polyline annotations in an image. + // "IMAGE_SEGMENTATION_ANNOTATION" - Segmentation annotations in an + // image. + // "VIDEO_SHOTS_CLASSIFICATION_ANNOTATION" - Classification + // annotations in video shots. + // "VIDEO_OBJECT_TRACKING_ANNOTATION" - Video object tracking + // annotation. + // "VIDEO_OBJECT_DETECTION_ANNOTATION" - Video object detection + // annotation. + // "VIDEO_EVENT_ANNOTATION" - Video event annotation. + // "TEXT_CLASSIFICATION_ANNOTATION" - Classification for text. Allowed + // for continuous evaluation. + // "TEXT_ENTITY_EXTRACTION_ANNOTATION" - Entity extraction for text. + // "GENERAL_CLASSIFICATION_ANNOTATION" - General classification. + // Allowed for continuous evaluation. + AnnotationType string `json:"annotationType,omitempty"` + + // BlockingResources: Output only. The names of any related resources + // that are blocking changes to the annotated dataset. + BlockingResources []string `json:"blockingResources,omitempty"` + + // CompletedExampleCount: Output only. Number of examples that have + // annotation in the annotated dataset. + CompletedExampleCount int64 `json:"completedExampleCount,omitempty,string"` + + // CreateTime: Output only. Time the AnnotatedDataset was created. + CreateTime string `json:"createTime,omitempty"` + + // Description: Output only. The description of the AnnotatedDataset. It + // is specified in HumanAnnotationConfig when user starts a labeling + // task. Maximum of 10000 characters. + Description string `json:"description,omitempty"` + + // DisplayName: Output only. The display name of the AnnotatedDataset. + // It is specified in HumanAnnotationConfig when user starts a labeling + // task. Maximum of 64 characters. + DisplayName string `json:"displayName,omitempty"` + + // ExampleCount: Output only. Number of examples in the annotated + // dataset. + ExampleCount int64 `json:"exampleCount,omitempty,string"` + + // LabelStats: Output only. Per label statistics. + LabelStats *GoogleCloudDatalabelingV1beta1LabelStats `json:"labelStats,omitempty"` + + // Metadata: Output only. Additional information about AnnotatedDataset. + Metadata *GoogleCloudDatalabelingV1beta1AnnotatedDatasetMetadata `json:"metadata,omitempty"` + + // Name: Output only. AnnotatedDataset resource name in format of: + // projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ + // {annotated_dataset_id} + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AnnotationSource") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationSource") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1AnnotatedDataset) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1AnnotatedDataset + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1AnnotatedDatasetMetadata: Metadata on +// AnnotatedDataset. +type GoogleCloudDatalabelingV1beta1AnnotatedDatasetMetadata struct { + // BoundingPolyConfig: Configuration for image bounding box and bounding + // poly task. + BoundingPolyConfig *GoogleCloudDatalabelingV1beta1BoundingPolyConfig `json:"boundingPolyConfig,omitempty"` + + // EventConfig: Configuration for video event labeling task. + EventConfig *GoogleCloudDatalabelingV1beta1EventConfig `json:"eventConfig,omitempty"` + + // HumanAnnotationConfig: HumanAnnotationConfig used when requesting the + // human labeling task for this AnnotatedDataset. + HumanAnnotationConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"humanAnnotationConfig,omitempty"` + + // ImageClassificationConfig: Configuration for image classification + // task. + ImageClassificationConfig *GoogleCloudDatalabelingV1beta1ImageClassificationConfig `json:"imageClassificationConfig,omitempty"` + + // ObjectDetectionConfig: Configuration for video object detection task. + ObjectDetectionConfig *GoogleCloudDatalabelingV1beta1ObjectDetectionConfig `json:"objectDetectionConfig,omitempty"` + + // ObjectTrackingConfig: Configuration for video object tracking task. + ObjectTrackingConfig *GoogleCloudDatalabelingV1beta1ObjectTrackingConfig `json:"objectTrackingConfig,omitempty"` + + // PolylineConfig: Configuration for image polyline task. + PolylineConfig *GoogleCloudDatalabelingV1beta1PolylineConfig `json:"polylineConfig,omitempty"` + + // SegmentationConfig: Configuration for image segmentation task. + SegmentationConfig *GoogleCloudDatalabelingV1beta1SegmentationConfig `json:"segmentationConfig,omitempty"` + + // TextClassificationConfig: Configuration for text classification task. + TextClassificationConfig *GoogleCloudDatalabelingV1beta1TextClassificationConfig `json:"textClassificationConfig,omitempty"` + + // TextEntityExtractionConfig: Configuration for text entity extraction + // task. + TextEntityExtractionConfig *GoogleCloudDatalabelingV1beta1TextEntityExtractionConfig `json:"textEntityExtractionConfig,omitempty"` + + // VideoClassificationConfig: Configuration for video classification + // task. + VideoClassificationConfig *GoogleCloudDatalabelingV1beta1VideoClassificationConfig `json:"videoClassificationConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BoundingPolyConfig") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BoundingPolyConfig") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1AnnotatedDatasetMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1AnnotatedDatasetMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1Annotation: Annotation for Example. +// Each example may have one or more annotations. For example in image +// classification problem, each image might have one or more labels. We +// call labels binded with this image an Annotation. +type GoogleCloudDatalabelingV1beta1Annotation struct { + // AnnotationMetadata: Output only. Annotation metadata, including + // information like votes for labels. + AnnotationMetadata *GoogleCloudDatalabelingV1beta1AnnotationMetadata `json:"annotationMetadata,omitempty"` + + // AnnotationSentiment: Output only. Sentiment for this annotation. + // + // Possible values: + // "ANNOTATION_SENTIMENT_UNSPECIFIED" + // "NEGATIVE" - This annotation describes negatively about the data. + // "POSITIVE" - This label describes positively about the data. + AnnotationSentiment string `json:"annotationSentiment,omitempty"` + + // AnnotationSource: Output only. The source of the annotation. + // + // Possible values: + // "ANNOTATION_SOURCE_UNSPECIFIED" + // "OPERATOR" - Answer is provided by a human contributor. + AnnotationSource string `json:"annotationSource,omitempty"` + + // AnnotationValue: Output only. This is the actual annotation value, + // e.g classification, bounding box values are stored here. + AnnotationValue *GoogleCloudDatalabelingV1beta1AnnotationValue `json:"annotationValue,omitempty"` + + // Name: Output only. Unique name of this annotation, format is: + // projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotat + // ed_dataset}/examples/{example_id}/annotations/{annotation_id} + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotationMetadata") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1Annotation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1Annotation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1AnnotationMetadata: Additional +// information associated with the annotation. +type GoogleCloudDatalabelingV1beta1AnnotationMetadata struct { + // OperatorMetadata: Metadata related to human labeling. + OperatorMetadata *GoogleCloudDatalabelingV1beta1OperatorMetadata `json:"operatorMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OperatorMetadata") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "OperatorMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1AnnotationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1AnnotationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1AnnotationSpec: Container of +// information related to one possible annotation that can be used in a +// labeling task. For example, an image classification task where images +// are labeled as `dog` or `cat` must reference an AnnotationSpec for +// `dog` and an AnnotationSpec for `cat`. +type GoogleCloudDatalabelingV1beta1AnnotationSpec struct { + // Description: Optional. User-provided description of the annotation + // specification. The description can be up to 10,000 characters long. + Description string `json:"description,omitempty"` + + // DisplayName: Required. The display name of the AnnotationSpec. + // Maximum of 64 characters. + DisplayName string `json:"displayName,omitempty"` + + // Index: Output only. This is the integer index of the AnnotationSpec. + // The index for the whole AnnotationSpecSet is sequential starting from + // 0. For example, an AnnotationSpecSet with classes `dog` and `cat`, + // might contain one AnnotationSpec with `{ display_name: "dog", index: + // 0 }` and one AnnotationSpec with `{ display_name: "cat", index: 1 }`. + // This is especially useful for model training as it encodes the string + // labels into numeric values. + Index int64 `json:"index,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Description") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1AnnotationSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1AnnotationSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1AnnotationSpecSet: An AnnotationSpecSet +// is a collection of label definitions. For example, in image +// classification tasks, you define a set of possible labels for images +// as an AnnotationSpecSet. An AnnotationSpecSet is immutable upon +// creation. +type GoogleCloudDatalabelingV1beta1AnnotationSpecSet struct { + // AnnotationSpecs: Required. The array of AnnotationSpecs that you + // define when you create the AnnotationSpecSet. These are the possible + // labels for the labeling task. + AnnotationSpecs []*GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpecs,omitempty"` + + // BlockingResources: Output only. The names of any related resources + // that are blocking changes to the annotation spec set. + BlockingResources []string `json:"blockingResources,omitempty"` + + // Description: Optional. User-provided description of the annotation + // specification set. The description can be up to 10,000 characters + // long. + Description string `json:"description,omitempty"` + + // DisplayName: Required. The display name for AnnotationSpecSet that + // you define when you create it. Maximum of 64 characters. + DisplayName string `json:"displayName,omitempty"` + + // Name: Output only. The AnnotationSpecSet resource name in the + // following format: + // "projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}" + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AnnotationSpecs") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationSpecs") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1AnnotationSpecSet) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1AnnotationSpecSet + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1AnnotationSpecSetConfig: Annotation +// spec set with the setting of allowing multi labels or not. +type GoogleCloudDatalabelingV1beta1AnnotationSpecSetConfig struct { + // AllowMultiLabel: Optional. If allow_multi_label is true, contributors + // are able to choose multiple labels from one annotation spec set. + AllowMultiLabel bool `json:"allowMultiLabel,omitempty"` + + // AnnotationSpecSet: Required. Annotation spec set resource name. + AnnotationSpecSet string `json:"annotationSpecSet,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AllowMultiLabel") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AllowMultiLabel") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1AnnotationSpecSetConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1AnnotationSpecSetConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1AnnotationValue: Annotation value for +// an example. +type GoogleCloudDatalabelingV1beta1AnnotationValue struct { + // ImageBoundingPolyAnnotation: Annotation value for image bounding box, + // oriented bounding box and polygon cases. + ImageBoundingPolyAnnotation *GoogleCloudDatalabelingV1beta1ImageBoundingPolyAnnotation `json:"imageBoundingPolyAnnotation,omitempty"` + + // ImageClassificationAnnotation: Annotation value for image + // classification case. + ImageClassificationAnnotation *GoogleCloudDatalabelingV1beta1ImageClassificationAnnotation `json:"imageClassificationAnnotation,omitempty"` + + // ImagePolylineAnnotation: Annotation value for image polyline cases. + // Polyline here is different from BoundingPoly. It is formed by line + // segments connected to each other but not closed form(Bounding Poly). + // The line segments can cross each other. + ImagePolylineAnnotation *GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation `json:"imagePolylineAnnotation,omitempty"` + + // ImageSegmentationAnnotation: Annotation value for image segmentation. + ImageSegmentationAnnotation *GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation `json:"imageSegmentationAnnotation,omitempty"` + + // TextClassificationAnnotation: Annotation value for text + // classification case. + TextClassificationAnnotation *GoogleCloudDatalabelingV1beta1TextClassificationAnnotation `json:"textClassificationAnnotation,omitempty"` + + // TextEntityExtractionAnnotation: Annotation value for text entity + // extraction case. + TextEntityExtractionAnnotation *GoogleCloudDatalabelingV1beta1TextEntityExtractionAnnotation `json:"textEntityExtractionAnnotation,omitempty"` + + // VideoClassificationAnnotation: Annotation value for video + // classification case. + VideoClassificationAnnotation *GoogleCloudDatalabelingV1beta1VideoClassificationAnnotation `json:"videoClassificationAnnotation,omitempty"` + + // VideoEventAnnotation: Annotation value for video event case. + VideoEventAnnotation *GoogleCloudDatalabelingV1beta1VideoEventAnnotation `json:"videoEventAnnotation,omitempty"` + + // VideoObjectTrackingAnnotation: Annotation value for video object + // detection and tracking case. + VideoObjectTrackingAnnotation *GoogleCloudDatalabelingV1beta1VideoObjectTrackingAnnotation `json:"videoObjectTrackingAnnotation,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ImageBoundingPolyAnnotation") to unconditionally include in API + // requests. By default, fields with empty values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "ImageBoundingPolyAnnotation") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1AnnotationValue) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1AnnotationValue + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1Attempt: Records a failed evaluation +// job run. +type GoogleCloudDatalabelingV1beta1Attempt struct { + AttemptTime string `json:"attemptTime,omitempty"` + + // PartialFailures: Details of errors that occurred. + PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AttemptTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AttemptTime") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1Attempt) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1Attempt + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1BigQuerySource: The BigQuery location +// for input data. If used in an EvaluationJob, this is where the +// service saves the prediction input and output sampled from the model +// version. +type GoogleCloudDatalabelingV1beta1BigQuerySource struct { + // InputUri: Required. BigQuery URI to a table, up to 2,000 characters + // long. If you specify the URI of a table that does not exist, Data + // Labeling Service creates a table at the URI with the correct schema + // when you create your EvaluationJob. If you specify the URI of a table + // that already exists, it must have the [correct + // schema](/ml-engine/docs/continuous-evaluation/create-job#table-schema) + // . Provide the table URI in the following format: + // "bq://{your_project_id}/ {your_dataset_name}/{your_table_name}" + // [Learn + // more](/ml-engine/docs/continuous-evaluation/create-job#table-schema). + InputUri string `json:"inputUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "InputUri") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "InputUri") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1BigQuerySource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1BigQuerySource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions: Options +// regarding evaluation between bounding boxes. +type GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions struct { + // IouThreshold: Minimum [intersection-over-union + // (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over + // -union) required for 2 bounding boxes to be considered a match. This + // must be a number between 0 and 1. + IouThreshold float64 `json:"iouThreshold,omitempty"` + + // ForceSendFields is a list of field names (e.g. "IouThreshold") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "IouThreshold") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions + var s1 struct { + IouThreshold gensupport.JSONFloat64 `json:"iouThreshold"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.IouThreshold = float64(s1.IouThreshold) + return nil +} + +// GoogleCloudDatalabelingV1beta1BoundingPoly: A bounding polygon in the +// image. +type GoogleCloudDatalabelingV1beta1BoundingPoly struct { + // Vertices: The bounding polygon vertices. + Vertices []*GoogleCloudDatalabelingV1beta1Vertex `json:"vertices,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Vertices") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Vertices") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1BoundingPoly) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1BoundingPoly + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1BoundingPolyConfig: Config for image +// bounding poly (and bounding box) human labeling task. +type GoogleCloudDatalabelingV1beta1BoundingPolyConfig struct { + // AnnotationSpecSet: Required. Annotation spec set resource name. + AnnotationSpecSet string `json:"annotationSpecSet,omitempty"` + + // InstructionMessage: Optional. Instruction message showed on + // contributors UI. + InstructionMessage string `json:"instructionMessage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotationSpecSet") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationSpecSet") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1BoundingPolyConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1BoundingPolyConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1ClassificationMetadata: Metadata for +// classification annotations. +type GoogleCloudDatalabelingV1beta1ClassificationMetadata struct { + // IsMultiLabel: Whether the classification task is multi-label or not. + IsMultiLabel bool `json:"isMultiLabel,omitempty"` + + // ForceSendFields is a list of field names (e.g. "IsMultiLabel") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "IsMultiLabel") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ClassificationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ClassificationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1ClassificationMetrics: Metrics +// calculated for a classification model. +type GoogleCloudDatalabelingV1beta1ClassificationMetrics struct { + // ConfusionMatrix: Confusion matrix of predicted labels vs. ground + // truth labels. + ConfusionMatrix *GoogleCloudDatalabelingV1beta1ConfusionMatrix `json:"confusionMatrix,omitempty"` + + // PrCurve: Precision-recall curve based on ground truth labels, + // predicted labels, and scores for the predicted labels. + PrCurve *GoogleCloudDatalabelingV1beta1PrCurve `json:"prCurve,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConfusionMatrix") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ConfusionMatrix") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ClassificationMetrics) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ClassificationMetrics + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry struct { + // ConfidenceThreshold: Threshold used for this entry. For + // classification tasks, this is a classification threshold: a predicted + // label is categorized as positive or negative (in the context of this + // point on the PR curve) based on whether the label's score meets this + // threshold. For image object detection (bounding box) tasks, this is + // the [intersection-over-union + // (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over + // -union) threshold for the context of this point on the PR curve. + ConfidenceThreshold float64 `json:"confidenceThreshold,omitempty"` + + // F1Score: Harmonic mean of recall and precision. + F1Score float64 `json:"f1Score,omitempty"` + + // F1ScoreAt1: The harmonic mean of recall_at1 and precision_at1. + F1ScoreAt1 float64 `json:"f1ScoreAt1,omitempty"` + + // F1ScoreAt5: The harmonic mean of recall_at5 and precision_at5. + F1ScoreAt5 float64 `json:"f1ScoreAt5,omitempty"` + + // Precision: Precision value. + Precision float64 `json:"precision,omitempty"` + + // PrecisionAt1: Precision value for entries with label that has highest + // score. + PrecisionAt1 float64 `json:"precisionAt1,omitempty"` + + // PrecisionAt5: Precision value for entries with label that has highest + // 5 scores. + PrecisionAt5 float64 `json:"precisionAt5,omitempty"` + + // Recall: Recall value. + Recall float64 `json:"recall,omitempty"` + + // RecallAt1: Recall value for entries with label that has highest + // score. + RecallAt1 float64 `json:"recallAt1,omitempty"` + + // RecallAt5: Recall value for entries with label that has highest 5 + // scores. + RecallAt5 float64 `json:"recallAt5,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConfidenceThreshold") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ConfidenceThreshold") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry + var s1 struct { + ConfidenceThreshold gensupport.JSONFloat64 `json:"confidenceThreshold"` + F1Score gensupport.JSONFloat64 `json:"f1Score"` + F1ScoreAt1 gensupport.JSONFloat64 `json:"f1ScoreAt1"` + F1ScoreAt5 gensupport.JSONFloat64 `json:"f1ScoreAt5"` + Precision gensupport.JSONFloat64 `json:"precision"` + PrecisionAt1 gensupport.JSONFloat64 `json:"precisionAt1"` + PrecisionAt5 gensupport.JSONFloat64 `json:"precisionAt5"` + Recall gensupport.JSONFloat64 `json:"recall"` + RecallAt1 gensupport.JSONFloat64 `json:"recallAt1"` + RecallAt5 gensupport.JSONFloat64 `json:"recallAt5"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ConfidenceThreshold = float64(s1.ConfidenceThreshold) + s.F1Score = float64(s1.F1Score) + s.F1ScoreAt1 = float64(s1.F1ScoreAt1) + s.F1ScoreAt5 = float64(s1.F1ScoreAt5) + s.Precision = float64(s1.Precision) + s.PrecisionAt1 = float64(s1.PrecisionAt1) + s.PrecisionAt5 = float64(s1.PrecisionAt5) + s.Recall = float64(s1.Recall) + s.RecallAt1 = float64(s1.RecallAt1) + s.RecallAt5 = float64(s1.RecallAt5) + return nil +} + +// GoogleCloudDatalabelingV1beta1ConfusionMatrix: Confusion matrix of +// the model running the classification. Only applicable when the +// metrics entry aggregates multiple labels. Not applicable when the +// entry is for a single label. +type GoogleCloudDatalabelingV1beta1ConfusionMatrix struct { + Row []*GoogleCloudDatalabelingV1beta1Row `json:"row,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Row") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Row") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ConfusionMatrix) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ConfusionMatrix + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type GoogleCloudDatalabelingV1beta1ConfusionMatrixEntry struct { + // AnnotationSpec: The annotation spec of a predicted label. + AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"` + + // ItemCount: Number of items predicted to have this label. (The ground + // truth label for these items is the `Row.annotationSpec` of this + // entry's parent.) + ItemCount int64 `json:"itemCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotationSpec") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationSpec") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ConfusionMatrixEntry) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ConfusionMatrixEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1CreateAnnotationSpecSetRequest: Request +// message for CreateAnnotationSpecSet. +type GoogleCloudDatalabelingV1beta1CreateAnnotationSpecSetRequest struct { + // AnnotationSpecSet: Required. Annotation spec set to create. + // Annotation specs must be included. Only one annotation spec will be + // accepted for annotation specs with same display_name. + AnnotationSpecSet *GoogleCloudDatalabelingV1beta1AnnotationSpecSet `json:"annotationSpecSet,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotationSpecSet") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationSpecSet") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1CreateAnnotationSpecSetRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1CreateAnnotationSpecSetRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1CreateDatasetRequest: Request message +// for CreateDataset. +type GoogleCloudDatalabelingV1beta1CreateDatasetRequest struct { + // Dataset: Required. The dataset to be created. + Dataset *GoogleCloudDatalabelingV1beta1Dataset `json:"dataset,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Dataset") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Dataset") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1CreateDatasetRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1CreateDatasetRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1CreateEvaluationJobRequest: Request +// message for CreateEvaluationJob. +type GoogleCloudDatalabelingV1beta1CreateEvaluationJobRequest struct { + // Job: Required. The evaluation job to create. + Job *GoogleCloudDatalabelingV1beta1EvaluationJob `json:"job,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Job") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Job") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1CreateEvaluationJobRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1CreateEvaluationJobRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1CreateInstructionMetadata: Metadata of +// a CreateInstruction operation. +type GoogleCloudDatalabelingV1beta1CreateInstructionMetadata struct { + // CreateTime: Timestamp when create instruction request was created. + CreateTime string `json:"createTime,omitempty"` + + // Instruction: The name of the created Instruction. + // projects/{project_id}/instructions/{instruction_id} + Instruction string `json:"instruction,omitempty"` + + // PartialFailures: Partial failures encountered. E.g. single files that + // couldn't be read. Status details field will contain standard GCP + // error details. + PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1CreateInstructionMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1CreateInstructionMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1CreateInstructionRequest: Request +// message for CreateInstruction. +type GoogleCloudDatalabelingV1beta1CreateInstructionRequest struct { + // Instruction: Required. Instruction of how to perform the labeling + // task. + Instruction *GoogleCloudDatalabelingV1beta1Instruction `json:"instruction,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Instruction") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Instruction") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1CreateInstructionRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1CreateInstructionRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1CsvInstruction: Deprecated: this +// instruction format is not supported any more. Instruction from a CSV +// file. +type GoogleCloudDatalabelingV1beta1CsvInstruction struct { + // GcsFileUri: CSV file for the instruction. Only gcs path is allowed. + GcsFileUri string `json:"gcsFileUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GcsFileUri") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GcsFileUri") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1CsvInstruction) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1CsvInstruction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1DataItem: DataItem is a piece of data, +// without annotation. For example, an image. +type GoogleCloudDatalabelingV1beta1DataItem struct { + // ImagePayload: The image payload, a container of the image bytes/uri. + ImagePayload *GoogleCloudDatalabelingV1beta1ImagePayload `json:"imagePayload,omitempty"` + + // Name: Output only. Name of the data item, in format of: + // projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id} + Name string `json:"name,omitempty"` + + // TextPayload: The text payload, a container of text content. + TextPayload *GoogleCloudDatalabelingV1beta1TextPayload `json:"textPayload,omitempty"` + + // VideoPayload: The video payload, a container of the video uri. + VideoPayload *GoogleCloudDatalabelingV1beta1VideoPayload `json:"videoPayload,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ImagePayload") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ImagePayload") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1DataItem) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1DataItem + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1Dataset: Dataset is the resource to +// hold your data. You can request multiple labeling tasks for a dataset +// while each one will generate an AnnotatedDataset. +type GoogleCloudDatalabelingV1beta1Dataset struct { + // BlockingResources: Output only. The names of any related resources + // that are blocking changes to the dataset. + BlockingResources []string `json:"blockingResources,omitempty"` + + // CreateTime: Output only. Time the dataset is created. + CreateTime string `json:"createTime,omitempty"` + + // DataItemCount: Output only. The number of data items in the dataset. + DataItemCount int64 `json:"dataItemCount,omitempty,string"` + + // Description: Optional. User-provided description of the annotation + // specification set. The description can be up to 10000 characters + // long. + Description string `json:"description,omitempty"` + + // DisplayName: Required. The display name of the dataset. Maximum of 64 + // characters. + DisplayName string `json:"displayName,omitempty"` + + // InputConfigs: Output only. This is populated with the original input + // configs where ImportData is called. It is available only after the + // clients import data to this dataset. + InputConfigs []*GoogleCloudDatalabelingV1beta1InputConfig `json:"inputConfigs,omitempty"` + + // LastMigrateTime: Last time that the Dataset is migrated to AI + // Platform V2. If any of the AnnotatedDataset is migrated, the + // last_migration_time in Dataset is also updated. + LastMigrateTime string `json:"lastMigrateTime,omitempty"` + + // Name: Output only. Dataset resource name, format is: + // projects/{project_id}/datasets/{dataset_id} + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "BlockingResources") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BlockingResources") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1Dataset) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1Dataset + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1Evaluation: Describes an evaluation +// between a machine learning model's predictions and ground truth +// labels. Created when an EvaluationJob runs successfully. +type GoogleCloudDatalabelingV1beta1Evaluation struct { + // AnnotationType: Output only. Type of task that the model version + // being evaluated performs, as defined in the + // evaluationJobConfig.inputConfig.annotationType field of the + // evaluation job that created this evaluation. + // + // Possible values: + // "ANNOTATION_TYPE_UNSPECIFIED" + // "IMAGE_CLASSIFICATION_ANNOTATION" - Classification annotations in + // an image. Allowed for continuous evaluation. + // "IMAGE_BOUNDING_BOX_ANNOTATION" - Bounding box annotations in an + // image. A form of image object detection. Allowed for continuous + // evaluation. + // "IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION" - Oriented bounding box. + // The box does not have to be parallel to horizontal line. + // "IMAGE_BOUNDING_POLY_ANNOTATION" - Bounding poly annotations in an + // image. + // "IMAGE_POLYLINE_ANNOTATION" - Polyline annotations in an image. + // "IMAGE_SEGMENTATION_ANNOTATION" - Segmentation annotations in an + // image. + // "VIDEO_SHOTS_CLASSIFICATION_ANNOTATION" - Classification + // annotations in video shots. + // "VIDEO_OBJECT_TRACKING_ANNOTATION" - Video object tracking + // annotation. + // "VIDEO_OBJECT_DETECTION_ANNOTATION" - Video object detection + // annotation. + // "VIDEO_EVENT_ANNOTATION" - Video event annotation. + // "TEXT_CLASSIFICATION_ANNOTATION" - Classification for text. Allowed + // for continuous evaluation. + // "TEXT_ENTITY_EXTRACTION_ANNOTATION" - Entity extraction for text. + // "GENERAL_CLASSIFICATION_ANNOTATION" - General classification. + // Allowed for continuous evaluation. + AnnotationType string `json:"annotationType,omitempty"` + + // Config: Output only. Options used in the evaluation job that created + // this evaluation. + Config *GoogleCloudDatalabelingV1beta1EvaluationConfig `json:"config,omitempty"` + + // CreateTime: Output only. Timestamp for when this evaluation was + // created. + CreateTime string `json:"createTime,omitempty"` + + // EvaluatedItemCount: Output only. The number of items in the ground + // truth dataset that were used for this evaluation. Only populated when + // the evaulation is for certain AnnotationTypes. + EvaluatedItemCount int64 `json:"evaluatedItemCount,omitempty,string"` + + // EvaluationJobRunTime: Output only. Timestamp for when the evaluation + // job that created this evaluation ran. + EvaluationJobRunTime string `json:"evaluationJobRunTime,omitempty"` + + // EvaluationMetrics: Output only. Metrics comparing predictions to + // ground truth labels. + EvaluationMetrics *GoogleCloudDatalabelingV1beta1EvaluationMetrics `json:"evaluationMetrics,omitempty"` + + // Name: Output only. Resource name of an evaluation. The name has the + // following format: + // "projects/{project_id}/datasets/{dataset_id}/evaluations/ + // {evaluation_id}' + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AnnotationType") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationType") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1Evaluation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1Evaluation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1EvaluationConfig: Configuration details +// used for calculating evaluation metrics and creating an Evaluation. +type GoogleCloudDatalabelingV1beta1EvaluationConfig struct { + // BoundingBoxEvaluationOptions: Only specify this field if the related + // model performs image object detection + // (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate bounding + // boxes. + BoundingBoxEvaluationOptions *GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions `json:"boundingBoxEvaluationOptions,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "BoundingBoxEvaluationOptions") to unconditionally include in API + // requests. By default, fields with empty values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "BoundingBoxEvaluationOptions") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1EvaluationConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1EvaluationConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1EvaluationJob: Defines an evaluation +// job that runs periodically to generate Evaluations. [Creating an +// evaluation job](/ml-engine/docs/continuous-evaluation/create-job) is +// the starting point for using continuous evaluation. +type GoogleCloudDatalabelingV1beta1EvaluationJob struct { + // AnnotationSpecSet: Required. Name of the AnnotationSpecSet describing + // all the labels that your machine learning model outputs. You must + // create this resource before you create an evaluation job and provide + // its name in the following format: + // "projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}" + AnnotationSpecSet string `json:"annotationSpecSet,omitempty"` + + // Attempts: Output only. Every time the evaluation job runs and an + // error occurs, the failed attempt is appended to this array. + Attempts []*GoogleCloudDatalabelingV1beta1Attempt `json:"attempts,omitempty"` + + // CreateTime: Output only. Timestamp of when this evaluation job was + // created. + CreateTime string `json:"createTime,omitempty"` + + // Description: Required. Description of the job. The description can be + // up to 25,000 characters long. + Description string `json:"description,omitempty"` + + // EvaluationJobConfig: Required. Configuration details for the + // evaluation job. + EvaluationJobConfig *GoogleCloudDatalabelingV1beta1EvaluationJobConfig `json:"evaluationJobConfig,omitempty"` + + // LabelMissingGroundTruth: Required. Whether you want Data Labeling + // Service to provide ground truth labels for prediction input. If you + // want the service to assign human labelers to annotate your data, set + // this to `true`. If you want to provide your own ground truth labels + // in the evaluation job's BigQuery table, set this to `false`. + LabelMissingGroundTruth bool `json:"labelMissingGroundTruth,omitempty"` + + // ModelVersion: Required. The [AI Platform Prediction model + // version](/ml-engine/docs/prediction-overview) to be evaluated. + // Prediction input and output is sampled from this model version. When + // creating an evaluation job, specify the model version in the + // following format: + // "projects/{project_id}/models/{model_name}/versions/{version_name}" + // There can only be one evaluation job per model version. + ModelVersion string `json:"modelVersion,omitempty"` + + // Name: Output only. After you create a job, Data Labeling Service + // assigns a name to the job with the following format: + // "projects/{project_id}/evaluationJobs/ {evaluation_job_id}" + Name string `json:"name,omitempty"` + + // Schedule: Required. Describes the interval at which the job runs. + // This interval must be at least 1 day, and it is rounded to the + // nearest day. For example, if you specify a 50-hour interval, the job + // runs every 2 days. You can provide the schedule in [crontab + // format](/scheduler/docs/configuring/cron-job-schedules) or in an + // [English-like + // format](/appengine/docs/standard/python/config/cronref#schedule_format + // ). Regardless of what you specify, the job will run at 10:00 AM UTC. + // Only the interval from this schedule is used, not the specific time + // of day. + Schedule string `json:"schedule,omitempty"` + + // State: Output only. Describes the current state of the job. + // + // Possible values: + // "STATE_UNSPECIFIED" + // "SCHEDULED" - The job is scheduled to run at the configured + // interval. You can pause or delete the job. When the job is in this + // state, it samples prediction input and output from your model version + // into your BigQuery table as predictions occur. + // "RUNNING" - The job is currently running. When the job runs, Data + // Labeling Service does several things: 1. If you have configured your + // job to use Data Labeling Service for ground truth labeling, the + // service creates a Dataset and a labeling task for all data sampled + // since the last time the job ran. Human labelers provide ground truth + // labels for your data. Human labeling may take hours, or even days, + // depending on how much data has been sampled. The job remains in the + // `RUNNING` state during this time, and it can even be running multiple + // times in parallel if it gets triggered again (for example 24 hours + // later) before the earlier run has completed. When human labelers have + // finished labeling the data, the next step occurs. If you have + // configured your job to provide your own ground truth labels, Data + // Labeling Service still creates a Dataset for newly sampled data, but + // it expects that you have already added ground truth labels to the + // BigQuery table by this time. The next step occurs immediately. 2. + // Data Labeling Service creates an Evaluation by comparing your model + // version's predictions with the ground truth labels. If the job + // remains in this state for a long time, it continues to sample + // prediction data into your BigQuery table and will run again at the + // next interval, even if it causes the job to run multiple times in + // parallel. + // "PAUSED" - The job is not sampling prediction input and output into + // your BigQuery table and it will not run according to its schedule. + // You can resume the job. + // "STOPPED" - The job has this state right before it is deleted. + State string `json:"state,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AnnotationSpecSet") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationSpecSet") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1EvaluationJob) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1EvaluationJob + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1EvaluationJobAlertConfig: Provides +// details for how an evaluation job sends email alerts based on the +// results of a run. +type GoogleCloudDatalabelingV1beta1EvaluationJobAlertConfig struct { + // Email: Required. An email address to send alerts to. + Email string `json:"email,omitempty"` + + // MinAcceptableMeanAveragePrecision: Required. A number between 0 and 1 + // that describes a minimum mean average precision threshold. When the + // evaluation job runs, if it calculates that your model version's + // predictions from the recent interval have meanAveragePrecision below + // this threshold, then it sends an alert to your specified email. + MinAcceptableMeanAveragePrecision float64 `json:"minAcceptableMeanAveragePrecision,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Email") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Email") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1EvaluationJobAlertConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1EvaluationJobAlertConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDatalabelingV1beta1EvaluationJobAlertConfig) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDatalabelingV1beta1EvaluationJobAlertConfig + var s1 struct { + MinAcceptableMeanAveragePrecision gensupport.JSONFloat64 `json:"minAcceptableMeanAveragePrecision"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.MinAcceptableMeanAveragePrecision = float64(s1.MinAcceptableMeanAveragePrecision) + return nil +} + +// GoogleCloudDatalabelingV1beta1EvaluationJobConfig: Configures +// specific details of how a continuous evaluation job works. Provide +// this configuration when you create an EvaluationJob. +type GoogleCloudDatalabelingV1beta1EvaluationJobConfig struct { + // BigqueryImportKeys: Required. Prediction keys that tell Data Labeling + // Service where to find the data for evaluation in your BigQuery table. + // When the service samples prediction input and output from your model + // version and saves it to BigQuery, the data gets stored as JSON + // strings in the BigQuery table. These keys tell Data Labeling Service + // how to parse the JSON. You can provide the following entries in this + // field: * `data_json_key`: the data key for prediction input. You must + // provide either this key or `reference_json_key`. * + // `reference_json_key`: the data reference key for prediction input. + // You must provide either this key or `data_json_key`. * + // `label_json_key`: the label key for prediction output. Required. * + // `label_score_json_key`: the score key for prediction output. + // Required. * `bounding_box_json_key`: the bounding box key for + // prediction output. Required if your model version perform image + // object detection. Learn [how to configure prediction + // keys](/ml-engine/docs/continuous-evaluation/create-job#prediction-keys + // ). + BigqueryImportKeys map[string]string `json:"bigqueryImportKeys,omitempty"` + + // BoundingPolyConfig: Specify this field if your model version performs + // image object detection (bounding box detection). `annotationSpecSet` + // in this configuration must match EvaluationJob.annotationSpecSet. + BoundingPolyConfig *GoogleCloudDatalabelingV1beta1BoundingPolyConfig `json:"boundingPolyConfig,omitempty"` + + // EvaluationConfig: Required. Details for calculating evaluation + // metrics and creating Evaulations. If your model version performs + // image object detection, you must specify the + // `boundingBoxEvaluationOptions` field within this configuration. + // Otherwise, provide an empty object for this configuration. + EvaluationConfig *GoogleCloudDatalabelingV1beta1EvaluationConfig `json:"evaluationConfig,omitempty"` + + // EvaluationJobAlertConfig: Optional. Configuration details for + // evaluation job alerts. Specify this field if you want to receive + // email alerts if the evaluation job finds that your predictions have + // low mean average precision during a run. + EvaluationJobAlertConfig *GoogleCloudDatalabelingV1beta1EvaluationJobAlertConfig `json:"evaluationJobAlertConfig,omitempty"` + + // ExampleCount: Required. The maximum number of predictions to sample + // and save to BigQuery during each evaluation interval. This limit + // overrides `example_sample_percentage`: even if the service has not + // sampled enough predictions to fulfill `example_sample_perecentage` + // during an interval, it stops sampling predictions when it meets this + // limit. + ExampleCount int64 `json:"exampleCount,omitempty"` + + // ExampleSamplePercentage: Required. Fraction of predictions to sample + // and save to BigQuery during each evaluation interval. For example, + // 0.1 means 10% of predictions served by your model version get saved + // to BigQuery. + ExampleSamplePercentage float64 `json:"exampleSamplePercentage,omitempty"` + + // HumanAnnotationConfig: Optional. Details for human annotation of your + // data. If you set labelMissingGroundTruth to `true` for this + // evaluation job, then you must specify this field. If you plan to + // provide your own ground truth labels, then omit this field. Note that + // you must create an Instruction resource before you can specify this + // field. Provide the name of the instruction resource in the + // `instruction` field within this configuration. + HumanAnnotationConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"humanAnnotationConfig,omitempty"` + + // ImageClassificationConfig: Specify this field if your model version + // performs image classification or general classification. + // `annotationSpecSet` in this configuration must match + // EvaluationJob.annotationSpecSet. `allowMultiLabel` in this + // configuration must match `classificationMetadata.isMultiLabel` in + // input_config. + ImageClassificationConfig *GoogleCloudDatalabelingV1beta1ImageClassificationConfig `json:"imageClassificationConfig,omitempty"` + + // InputConfig: Rquired. Details for the sampled prediction input. + // Within this configuration, there are requirements for several fields: + // * `dataType` must be one of `IMAGE`, `TEXT`, or `GENERAL_DATA`. * + // `annotationType` must be one of `IMAGE_CLASSIFICATION_ANNOTATION`, + // `TEXT_CLASSIFICATION_ANNOTATION`, + // `GENERAL_CLASSIFICATION_ANNOTATION`, or + // `IMAGE_BOUNDING_BOX_ANNOTATION` (image object detection). * If your + // machine learning model performs classification, you must specify + // `classificationMetadata.isMultiLabel`. * You must specify + // `bigquerySource` (not `gcsSource`). + InputConfig *GoogleCloudDatalabelingV1beta1InputConfig `json:"inputConfig,omitempty"` + + // TextClassificationConfig: Specify this field if your model version + // performs text classification. `annotationSpecSet` in this + // configuration must match EvaluationJob.annotationSpecSet. + // `allowMultiLabel` in this configuration must match + // `classificationMetadata.isMultiLabel` in input_config. + TextClassificationConfig *GoogleCloudDatalabelingV1beta1TextClassificationConfig `json:"textClassificationConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BigqueryImportKeys") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BigqueryImportKeys") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1EvaluationJobConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1EvaluationJobConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDatalabelingV1beta1EvaluationJobConfig) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDatalabelingV1beta1EvaluationJobConfig + var s1 struct { + ExampleSamplePercentage gensupport.JSONFloat64 `json:"exampleSamplePercentage"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ExampleSamplePercentage = float64(s1.ExampleSamplePercentage) + return nil +} + +type GoogleCloudDatalabelingV1beta1EvaluationMetrics struct { + ClassificationMetrics *GoogleCloudDatalabelingV1beta1ClassificationMetrics `json:"classificationMetrics,omitempty"` + + ObjectDetectionMetrics *GoogleCloudDatalabelingV1beta1ObjectDetectionMetrics `json:"objectDetectionMetrics,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ClassificationMetrics") to unconditionally include in API requests. + // By default, fields with empty values are omitted from API requests. + // However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ClassificationMetrics") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1EvaluationMetrics) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1EvaluationMetrics + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1EventConfig: Config for video event +// human labeling task. +type GoogleCloudDatalabelingV1beta1EventConfig struct { + // AnnotationSpecSets: Required. The list of annotation spec set + // resource name. Similar to video classification, we support selecting + // event from multiple AnnotationSpecSet at the same time. + AnnotationSpecSets []string `json:"annotationSpecSets,omitempty"` + + // ClipLength: Videos will be cut to smaller clips to make it easier for + // labelers to work on. Users can configure is field in seconds, if not + // set, default value is 60s. + ClipLength int64 `json:"clipLength,omitempty"` + + // OverlapLength: The overlap length between different video clips. + // Users can configure is field in seconds, if not set, default value is + // 1s. + OverlapLength int64 `json:"overlapLength,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotationSpecSets") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationSpecSets") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1EventConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1EventConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1Example: An Example is a piece of data +// and its annotation. For example, an image with label "house". +type GoogleCloudDatalabelingV1beta1Example struct { + // Annotations: Output only. Annotations for the piece of data in + // Example. One piece of data can have multiple annotations. + Annotations []*GoogleCloudDatalabelingV1beta1Annotation `json:"annotations,omitempty"` + + // ImagePayload: The image payload, a container of the image bytes/uri. + ImagePayload *GoogleCloudDatalabelingV1beta1ImagePayload `json:"imagePayload,omitempty"` + + // Name: Output only. Name of the example, in format of: + // projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ + // {annotated_dataset_id}/examples/{example_id} + Name string `json:"name,omitempty"` + + // TextPayload: The text payload, a container of the text content. + TextPayload *GoogleCloudDatalabelingV1beta1TextPayload `json:"textPayload,omitempty"` + + // VideoPayload: The video payload, a container of the video uri. + VideoPayload *GoogleCloudDatalabelingV1beta1VideoPayload `json:"videoPayload,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Annotations") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Annotations") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1Example) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1Example + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1ExampleComparison: Example comparisons +// comparing ground truth output and predictions for a specific input. +type GoogleCloudDatalabelingV1beta1ExampleComparison struct { + // GroundTruthExample: The ground truth output for the input. + GroundTruthExample *GoogleCloudDatalabelingV1beta1Example `json:"groundTruthExample,omitempty"` + + // ModelCreatedExamples: Predictions by the model for the input. + ModelCreatedExamples []*GoogleCloudDatalabelingV1beta1Example `json:"modelCreatedExamples,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GroundTruthExample") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GroundTruthExample") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ExampleComparison) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ExampleComparison + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1ExportDataOperationMetadata: Metadata +// of an ExportData operation. +type GoogleCloudDatalabelingV1beta1ExportDataOperationMetadata struct { + // AnnotatedDataset: Output only. The name of annotated dataset in + // format "projects/*/datasets/*/annotatedDatasets/*". + AnnotatedDataset string `json:"annotatedDataset,omitempty"` + + // CreateTime: Output only. Timestamp when export dataset request was + // created. + CreateTime string `json:"createTime,omitempty"` + + // Dataset: Output only. The name of dataset to be exported. + // "projects/*/datasets/*" + Dataset string `json:"dataset,omitempty"` + + // PartialFailures: Output only. Partial failures encountered. E.g. + // single files that couldn't be read. Status details field will contain + // standard GCP error details. + PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotatedDataset") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotatedDataset") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ExportDataOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ExportDataOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1ExportDataOperationResponse: Response +// used for ExportDataset longrunning operation. +type GoogleCloudDatalabelingV1beta1ExportDataOperationResponse struct { + // AnnotatedDataset: Output only. The name of annotated dataset in + // format "projects/*/datasets/*/annotatedDatasets/*". + AnnotatedDataset string `json:"annotatedDataset,omitempty"` + + // Dataset: Ouptut only. The name of dataset. "projects/*/datasets/*" + Dataset string `json:"dataset,omitempty"` + + // ExportCount: Output only. Number of examples exported successfully. + ExportCount int64 `json:"exportCount,omitempty"` + + // LabelStats: Output only. Statistic infos of labels in the exported + // dataset. + LabelStats *GoogleCloudDatalabelingV1beta1LabelStats `json:"labelStats,omitempty"` + + // OutputConfig: Output only. output_config in the ExportData request. + OutputConfig *GoogleCloudDatalabelingV1beta1OutputConfig `json:"outputConfig,omitempty"` + + // TotalCount: Output only. Total number of examples requested to export + TotalCount int64 `json:"totalCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotatedDataset") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotatedDataset") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ExportDataOperationResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ExportDataOperationResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1ExportDataRequest: Request message for +// ExportData API. +type GoogleCloudDatalabelingV1beta1ExportDataRequest struct { + // AnnotatedDataset: Required. Annotated dataset resource name. DataItem + // in Dataset and their annotations in specified annotated dataset will + // be exported. It's in format of + // projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ + // {annotated_dataset_id} + AnnotatedDataset string `json:"annotatedDataset,omitempty"` + + // Filter: Optional. Filter is not supported at this moment. + Filter string `json:"filter,omitempty"` + + // OutputConfig: Required. Specify the output destination. + OutputConfig *GoogleCloudDatalabelingV1beta1OutputConfig `json:"outputConfig,omitempty"` + + // UserEmailAddress: Email of the user who started the export task and + // should be notified by email. If empty no notification will be sent. + UserEmailAddress string `json:"userEmailAddress,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotatedDataset") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotatedDataset") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ExportDataRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ExportDataRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1FeedbackMessage: A feedback message +// inside a feedback thread. +type GoogleCloudDatalabelingV1beta1FeedbackMessage struct { + // Body: String content of the feedback. Maximum of 10000 characters. + Body string `json:"body,omitempty"` + + // CreateTime: Create time. + CreateTime string `json:"createTime,omitempty"` + + // Image: The image storing this feedback if the feedback is an image + // representing operator's comments. + Image string `json:"image,omitempty"` + + // Name: Name of the feedback message in a feedback thread. Format: + // 'project/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotat + // ed_dataset_id}/feedbackThreads/{feedback_thread_id}/feedbackMessage/{f + // eedback_message_id}' + Name string `json:"name,omitempty"` + + OperatorFeedbackMetadata *GoogleCloudDatalabelingV1beta1OperatorFeedbackMetadata `json:"operatorFeedbackMetadata,omitempty"` + + RequesterFeedbackMetadata *GoogleCloudDatalabelingV1beta1RequesterFeedbackMetadata `json:"requesterFeedbackMetadata,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Body") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Body") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1FeedbackMessage) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1FeedbackMessage + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1FeedbackThread: A feedback thread of a +// certain labeling task on a certain annotated dataset. +type GoogleCloudDatalabelingV1beta1FeedbackThread struct { + // FeedbackThreadMetadata: Metadata regarding the feedback thread. + FeedbackThreadMetadata *GoogleCloudDatalabelingV1beta1FeedbackThreadMetadata `json:"feedbackThreadMetadata,omitempty"` + + // Name: Name of the feedback thread. Format: + // 'project/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotat + // ed_dataset_id}/feedbackThreads/{feedback_thread_id}' + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "FeedbackThreadMetadata") to unconditionally include in API requests. + // By default, fields with empty values are omitted from API requests. + // However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FeedbackThreadMetadata") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1FeedbackThread) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1FeedbackThread + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type GoogleCloudDatalabelingV1beta1FeedbackThreadMetadata struct { + // CreateTime: When the thread is created + CreateTime string `json:"createTime,omitempty"` + + // LastUpdateTime: When the thread is last updated. + LastUpdateTime string `json:"lastUpdateTime,omitempty"` + + // Possible values: + // "FEEDBACK_THREAD_STATUS_UNSPECIFIED" + // "NEW" - Feedback thread is created with no reply; + // "REPLIED" - Feedback thread is replied at least once; + Status string `json:"status,omitempty"` + + // Thumbnail: An image thumbnail of this thread. + Thumbnail string `json:"thumbnail,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1FeedbackThreadMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1FeedbackThreadMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1GcsDestination: Export destination of +// the data.Only gcs path is allowed in output_uri. +type GoogleCloudDatalabelingV1beta1GcsDestination struct { + // MimeType: Required. The format of the gcs destination. Only + // "text/csv" and "application/json" are supported. + MimeType string `json:"mimeType,omitempty"` + + // OutputUri: Required. The output uri of destination file. + OutputUri string `json:"outputUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MimeType") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MimeType") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1GcsDestination) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1GcsDestination + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1GcsFolderDestination: Export folder +// destination of the data. +type GoogleCloudDatalabelingV1beta1GcsFolderDestination struct { + // OutputFolderUri: Required. Cloud Storage directory to export data to. + OutputFolderUri string `json:"outputFolderUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OutputFolderUri") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "OutputFolderUri") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1GcsFolderDestination) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1GcsFolderDestination + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1GcsSource: Source of the Cloud Storage +// file to be imported. +type GoogleCloudDatalabelingV1beta1GcsSource struct { + // InputUri: Required. The input URI of source file. This must be a + // Cloud Storage path (`gs://...`). + InputUri string `json:"inputUri,omitempty"` + + // MimeType: Required. The format of the source file. Only "text/csv" is + // supported. + MimeType string `json:"mimeType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "InputUri") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "InputUri") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1GcsSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1GcsSource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1HumanAnnotationConfig: Configuration +// for how human labeling task should be done. +type GoogleCloudDatalabelingV1beta1HumanAnnotationConfig struct { + // AnnotatedDatasetDescription: Optional. A human-readable description + // for AnnotatedDataset. The description can be up to 10000 characters + // long. + AnnotatedDatasetDescription string `json:"annotatedDatasetDescription,omitempty"` + + // AnnotatedDatasetDisplayName: Required. A human-readable name for + // AnnotatedDataset defined by users. Maximum of 64 characters . + AnnotatedDatasetDisplayName string `json:"annotatedDatasetDisplayName,omitempty"` + + // ContributorEmails: Optional. If you want your own labeling + // contributors to manage and work on this labeling request, you can set + // these contributors here. We will give them access to the question + // types in crowdcompute. Note that these emails must be registered in + // crowdcompute worker UI: https://crowd-compute.appspot.com/ + ContributorEmails []string `json:"contributorEmails,omitempty"` + + // Instruction: Required. Instruction resource name. + Instruction string `json:"instruction,omitempty"` + + // LabelGroup: Optional. A human-readable label used to logically group + // labeling tasks. This string must match the regular expression + // `[a-zA-Z\\d_-]{0,128}`. + LabelGroup string `json:"labelGroup,omitempty"` + + // LanguageCode: Optional. The Language of this question, as a + // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Default value + // is en-US. Only need to set this when task is language related. For + // example, French text classification. + LanguageCode string `json:"languageCode,omitempty"` + + // QuestionDuration: Optional. Maximum duration for contributors to + // answer a question. Maximum is 3600 seconds. Default is 3600 seconds. + QuestionDuration string `json:"questionDuration,omitempty"` + + // ReplicaCount: Optional. Replication of questions. Each question will + // be sent to up to this number of contributors to label. Aggregated + // answers will be returned. Default is set to 1. For image related + // labeling, valid values are 1, 3, 5. + ReplicaCount int64 `json:"replicaCount,omitempty"` + + // UserEmailAddress: Email of the user who started the labeling task and + // should be notified by email. If empty no notification will be sent. + UserEmailAddress string `json:"userEmailAddress,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AnnotatedDatasetDescription") to unconditionally include in API + // requests. By default, fields with empty values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "AnnotatedDatasetDescription") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1HumanAnnotationConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1ImageBoundingPolyAnnotation: Image +// bounding poly annotation. It represents a polygon including bounding +// box in the image. +type GoogleCloudDatalabelingV1beta1ImageBoundingPolyAnnotation struct { + // AnnotationSpec: Label of object in this bounding polygon. + AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"` + + BoundingPoly *GoogleCloudDatalabelingV1beta1BoundingPoly `json:"boundingPoly,omitempty"` + + NormalizedBoundingPoly *GoogleCloudDatalabelingV1beta1NormalizedBoundingPoly `json:"normalizedBoundingPoly,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotationSpec") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationSpec") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ImageBoundingPolyAnnotation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ImageBoundingPolyAnnotation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1ImageClassificationAnnotation: Image +// classification annotation definition. +type GoogleCloudDatalabelingV1beta1ImageClassificationAnnotation struct { + // AnnotationSpec: Label of image. + AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotationSpec") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationSpec") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ImageClassificationAnnotation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ImageClassificationAnnotation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1ImageClassificationConfig: Config for +// image classification human labeling task. +type GoogleCloudDatalabelingV1beta1ImageClassificationConfig struct { + // AllowMultiLabel: Optional. If allow_multi_label is true, contributors + // are able to choose multiple labels for one image. + AllowMultiLabel bool `json:"allowMultiLabel,omitempty"` + + // AnnotationSpecSet: Required. Annotation spec set resource name. + AnnotationSpecSet string `json:"annotationSpecSet,omitempty"` + + // AnswerAggregationType: Optional. The type of how to aggregate + // answers. + // + // Possible values: + // "STRING_AGGREGATION_TYPE_UNSPECIFIED" + // "MAJORITY_VOTE" - Majority vote to aggregate answers. + // "UNANIMOUS_VOTE" - Unanimous answers will be adopted. + // "NO_AGGREGATION" - Preserve all answers by crowd compute. + AnswerAggregationType string `json:"answerAggregationType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AllowMultiLabel") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AllowMultiLabel") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ImageClassificationConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ImageClassificationConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1ImagePayload: Container of information +// about an image. +type GoogleCloudDatalabelingV1beta1ImagePayload struct { + // ImageThumbnail: A byte string of a thumbnail image. + ImageThumbnail string `json:"imageThumbnail,omitempty"` + + // ImageUri: Image uri from the user bucket. + ImageUri string `json:"imageUri,omitempty"` + + // MimeType: Image format. + MimeType string `json:"mimeType,omitempty"` + + // SignedUri: Signed uri of the image file in the service bucket. + SignedUri string `json:"signedUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ImageThumbnail") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ImageThumbnail") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ImagePayload) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ImagePayload + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation: A polyline for +// the image annotation. +type GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation struct { + // AnnotationSpec: Label of this polyline. + AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"` + + NormalizedPolyline *GoogleCloudDatalabelingV1beta1NormalizedPolyline `json:"normalizedPolyline,omitempty"` + + Polyline *GoogleCloudDatalabelingV1beta1Polyline `json:"polyline,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotationSpec") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationSpec") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation: Image +// segmentation annotation. +type GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation struct { + // AnnotationColors: The mapping between rgb color and annotation spec. + // The key is the rgb color represented in format of rgb(0, 0, 0). The + // value is the AnnotationSpec. + AnnotationColors map[string]GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationColors,omitempty"` + + // ImageBytes: A byte string of a full image's color map. + ImageBytes string `json:"imageBytes,omitempty"` + + // MimeType: Image format. + MimeType string `json:"mimeType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotationColors") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationColors") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1ImportDataOperationMetadata: Metadata +// of an ImportData operation. +type GoogleCloudDatalabelingV1beta1ImportDataOperationMetadata struct { + // CreateTime: Output only. Timestamp when import dataset request was + // created. + CreateTime string `json:"createTime,omitempty"` + + // Dataset: Output only. The name of imported dataset. + // "projects/*/datasets/*" + Dataset string `json:"dataset,omitempty"` + + // PartialFailures: Output only. Partial failures encountered. E.g. + // single files that couldn't be read. Status details field will contain + // standard GCP error details. + PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ImportDataOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ImportDataOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1ImportDataOperationResponse: Response +// used for ImportData longrunning operation. +type GoogleCloudDatalabelingV1beta1ImportDataOperationResponse struct { + // Dataset: Ouptut only. The name of imported dataset. + Dataset string `json:"dataset,omitempty"` + + // ImportCount: Output only. Number of examples imported successfully. + ImportCount int64 `json:"importCount,omitempty"` + + // TotalCount: Output only. Total number of examples requested to import + TotalCount int64 `json:"totalCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Dataset") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Dataset") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ImportDataOperationResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ImportDataOperationResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1ImportDataRequest: Request message for +// ImportData API. +type GoogleCloudDatalabelingV1beta1ImportDataRequest struct { + // InputConfig: Required. Specify the input source of the data. + InputConfig *GoogleCloudDatalabelingV1beta1InputConfig `json:"inputConfig,omitempty"` + + // UserEmailAddress: Email of the user who started the import task and + // should be notified by email. If empty no notification will be sent. + UserEmailAddress string `json:"userEmailAddress,omitempty"` + + // ForceSendFields is a list of field names (e.g. "InputConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "InputConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ImportDataRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ImportDataRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1InputConfig: The configuration of input +// data, including data type, location, etc. +type GoogleCloudDatalabelingV1beta1InputConfig struct { + // AnnotationType: Optional. The type of annotation to be performed on + // this data. You must specify this field if you are using this + // InputConfig in an EvaluationJob. + // + // Possible values: + // "ANNOTATION_TYPE_UNSPECIFIED" + // "IMAGE_CLASSIFICATION_ANNOTATION" - Classification annotations in + // an image. Allowed for continuous evaluation. + // "IMAGE_BOUNDING_BOX_ANNOTATION" - Bounding box annotations in an + // image. A form of image object detection. Allowed for continuous + // evaluation. + // "IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION" - Oriented bounding box. + // The box does not have to be parallel to horizontal line. + // "IMAGE_BOUNDING_POLY_ANNOTATION" - Bounding poly annotations in an + // image. + // "IMAGE_POLYLINE_ANNOTATION" - Polyline annotations in an image. + // "IMAGE_SEGMENTATION_ANNOTATION" - Segmentation annotations in an + // image. + // "VIDEO_SHOTS_CLASSIFICATION_ANNOTATION" - Classification + // annotations in video shots. + // "VIDEO_OBJECT_TRACKING_ANNOTATION" - Video object tracking + // annotation. + // "VIDEO_OBJECT_DETECTION_ANNOTATION" - Video object detection + // annotation. + // "VIDEO_EVENT_ANNOTATION" - Video event annotation. + // "TEXT_CLASSIFICATION_ANNOTATION" - Classification for text. Allowed + // for continuous evaluation. + // "TEXT_ENTITY_EXTRACTION_ANNOTATION" - Entity extraction for text. + // "GENERAL_CLASSIFICATION_ANNOTATION" - General classification. + // Allowed for continuous evaluation. + AnnotationType string `json:"annotationType,omitempty"` + + // BigquerySource: Source located in BigQuery. You must specify this + // field if you are using this InputConfig in an EvaluationJob. + BigquerySource *GoogleCloudDatalabelingV1beta1BigQuerySource `json:"bigquerySource,omitempty"` + + // ClassificationMetadata: Optional. Metadata about annotations for the + // input. You must specify this field if you are using this InputConfig + // in an EvaluationJob for a model version that performs classification. + ClassificationMetadata *GoogleCloudDatalabelingV1beta1ClassificationMetadata `json:"classificationMetadata,omitempty"` + + // DataType: Required. Data type must be specifed when user tries to + // import data. + // + // Possible values: + // "DATA_TYPE_UNSPECIFIED" - Data type is unspecified. + // "IMAGE" - Allowed for continuous evaluation. + // "VIDEO" - Video data type. + // "TEXT" - Allowed for continuous evaluation. + // "GENERAL_DATA" - Allowed for continuous evaluation. + DataType string `json:"dataType,omitempty"` + + // GcsSource: Source located in Cloud Storage. + GcsSource *GoogleCloudDatalabelingV1beta1GcsSource `json:"gcsSource,omitempty"` + + // TextMetadata: Required for text import, as language code must be + // specified. + TextMetadata *GoogleCloudDatalabelingV1beta1TextMetadata `json:"textMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotationType") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationType") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1InputConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1InputConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1Instruction: Instruction of how to +// perform the labeling task for human operators. Currently only PDF +// instruction is supported. +type GoogleCloudDatalabelingV1beta1Instruction struct { + // BlockingResources: Output only. The names of any related resources + // that are blocking changes to the instruction. + BlockingResources []string `json:"blockingResources,omitempty"` + + // CreateTime: Output only. Creation time of instruction. + CreateTime string `json:"createTime,omitempty"` + + // CsvInstruction: Deprecated: this instruction format is not supported + // any more. Instruction from a CSV file, such as for classification + // task. The CSV file should have exact two columns, in the following + // format: * The first column is labeled data, such as an image + // reference, text. * The second column is comma separated labels + // associated with data. + CsvInstruction *GoogleCloudDatalabelingV1beta1CsvInstruction `json:"csvInstruction,omitempty"` + + // DataType: Required. The data type of this instruction. + // + // Possible values: + // "DATA_TYPE_UNSPECIFIED" - Data type is unspecified. + // "IMAGE" - Allowed for continuous evaluation. + // "VIDEO" - Video data type. + // "TEXT" - Allowed for continuous evaluation. + // "GENERAL_DATA" - Allowed for continuous evaluation. + DataType string `json:"dataType,omitempty"` + + // Description: Optional. User-provided description of the instruction. + // The description can be up to 10000 characters long. + Description string `json:"description,omitempty"` + + // DisplayName: Required. The display name of the instruction. Maximum + // of 64 characters. + DisplayName string `json:"displayName,omitempty"` + + // Name: Output only. Instruction resource name, format: + // projects/{project_id}/instructions/{instruction_id} + Name string `json:"name,omitempty"` + + // PdfInstruction: Instruction from a PDF document. The PDF should be in + // a Cloud Storage bucket. + PdfInstruction *GoogleCloudDatalabelingV1beta1PdfInstruction `json:"pdfInstruction,omitempty"` + + // UpdateTime: Output only. Last update time of instruction. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "BlockingResources") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BlockingResources") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1Instruction) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1Instruction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1LabelImageBoundingBoxOperationMetadata: +// Details of a LabelImageBoundingBox operation metadata. +type GoogleCloudDatalabelingV1beta1LabelImageBoundingBoxOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1LabelImageBoundingBoxOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1LabelImageBoundingBoxOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1LabelImageBoundingPolyOperationMetadata: +// Details of LabelImageBoundingPoly operation metadata. +type GoogleCloudDatalabelingV1beta1LabelImageBoundingPolyOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1LabelImageBoundingPolyOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1LabelImageBoundingPolyOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1LabelImageClassificationOperationMetadat +// a: Metadata of a LabelImageClassification operation. +type GoogleCloudDatalabelingV1beta1LabelImageClassificationOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1LabelImageClassificationOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1LabelImageClassificationOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1LabelImageOrientedBoundingBoxOperationMe +// tadata: Details of a LabelImageOrientedBoundingBox operation +// metadata. +type GoogleCloudDatalabelingV1beta1LabelImageOrientedBoundingBoxOperationMetadata struct { + // BasicConfig: Basic human annotation config. + BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1LabelImageOrientedBoundingBoxOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1LabelImageOrientedBoundingBoxOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1LabelImagePolylineOperationMetadata: +// Details of LabelImagePolyline operation metadata. +type GoogleCloudDatalabelingV1beta1LabelImagePolylineOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1LabelImagePolylineOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1LabelImagePolylineOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1LabelImageRequest: Request message for +// starting an image labeling task. +type GoogleCloudDatalabelingV1beta1LabelImageRequest struct { + // BasicConfig: Required. Basic human annotation config. + BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // BoundingPolyConfig: Configuration for bounding box and bounding poly + // task. One of image_classification_config, bounding_poly_config, + // polyline_config and segmentation_config are required. + BoundingPolyConfig *GoogleCloudDatalabelingV1beta1BoundingPolyConfig `json:"boundingPolyConfig,omitempty"` + + // Feature: Required. The type of image labeling task. + // + // Possible values: + // "FEATURE_UNSPECIFIED" + // "CLASSIFICATION" - Label whole image with one or more of labels. + // "BOUNDING_BOX" - Label image with bounding boxes for labels. + // "ORIENTED_BOUNDING_BOX" - Label oriented bounding box. The box does + // not have to be parallel to horizontal line. + // "BOUNDING_POLY" - Label images with bounding poly. A bounding poly + // is a plane figure that is bounded by a finite chain of straight line + // segments closing in a loop. + // "POLYLINE" - Label images with polyline. Polyline is formed by + // connected line segments which are not in closed form. + // "SEGMENTATION" - Label images with segmentation. Segmentation is + // different from bounding poly since it is more fine-grained, pixel + // level annotation. + Feature string `json:"feature,omitempty"` + + // ImageClassificationConfig: Configuration for image classification + // task. One of image_classification_config, bounding_poly_config, + // polyline_config and segmentation_config are required. + ImageClassificationConfig *GoogleCloudDatalabelingV1beta1ImageClassificationConfig `json:"imageClassificationConfig,omitempty"` + + // PolylineConfig: Configuration for polyline task. One of + // image_classification_config, bounding_poly_config, polyline_config + // and segmentation_config are required. + PolylineConfig *GoogleCloudDatalabelingV1beta1PolylineConfig `json:"polylineConfig,omitempty"` + + // SegmentationConfig: Configuration for segmentation task. One of + // image_classification_config, bounding_poly_config, polyline_config + // and segmentation_config are required. + SegmentationConfig *GoogleCloudDatalabelingV1beta1SegmentationConfig `json:"segmentationConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1LabelImageRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1LabelImageRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1LabelImageSegmentationOperationMetadata: +// Details of a LabelImageSegmentation operation metadata. +type GoogleCloudDatalabelingV1beta1LabelImageSegmentationOperationMetadata struct { + // BasicConfig: Basic human annotation config. + BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1LabelImageSegmentationOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1LabelImageSegmentationOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1LabelOperationMetadata: Metadata of a +// labeling operation, such as LabelImage or LabelVideo. Next tag: 23 +type GoogleCloudDatalabelingV1beta1LabelOperationMetadata struct { + // AnnotatedDataset: Output only. The name of annotated dataset in + // format "projects/*/datasets/*/annotatedDatasets/*". + AnnotatedDataset string `json:"annotatedDataset,omitempty"` + + // CreateTime: Output only. Timestamp when labeling request was created. + CreateTime string `json:"createTime,omitempty"` + + // Dataset: Output only. The name of dataset to be labeled. + // "projects/*/datasets/*" + Dataset string `json:"dataset,omitempty"` + + // ImageBoundingBoxDetails: Details of label image bounding box + // operation. + ImageBoundingBoxDetails *GoogleCloudDatalabelingV1beta1LabelImageBoundingBoxOperationMetadata `json:"imageBoundingBoxDetails,omitempty"` + + // ImageBoundingPolyDetails: Details of label image bounding poly + // operation. + ImageBoundingPolyDetails *GoogleCloudDatalabelingV1beta1LabelImageBoundingPolyOperationMetadata `json:"imageBoundingPolyDetails,omitempty"` + + // ImageClassificationDetails: Details of label image classification + // operation. + ImageClassificationDetails *GoogleCloudDatalabelingV1beta1LabelImageClassificationOperationMetadata `json:"imageClassificationDetails,omitempty"` + + // ImageOrientedBoundingBoxDetails: Details of label image oriented + // bounding box operation. + ImageOrientedBoundingBoxDetails *GoogleCloudDatalabelingV1beta1LabelImageOrientedBoundingBoxOperationMetadata `json:"imageOrientedBoundingBoxDetails,omitempty"` + + // ImagePolylineDetails: Details of label image polyline operation. + ImagePolylineDetails *GoogleCloudDatalabelingV1beta1LabelImagePolylineOperationMetadata `json:"imagePolylineDetails,omitempty"` + + // ImageSegmentationDetails: Details of label image segmentation + // operation. + ImageSegmentationDetails *GoogleCloudDatalabelingV1beta1LabelImageSegmentationOperationMetadata `json:"imageSegmentationDetails,omitempty"` + + // PartialFailures: Output only. Partial failures encountered. E.g. + // single files that couldn't be read. Status details field will contain + // standard GCP error details. + PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"` + + // ProgressPercent: Output only. Progress of label operation. Range: [0, + // 100]. + ProgressPercent int64 `json:"progressPercent,omitempty"` + + // TextClassificationDetails: Details of label text classification + // operation. + TextClassificationDetails *GoogleCloudDatalabelingV1beta1LabelTextClassificationOperationMetadata `json:"textClassificationDetails,omitempty"` + + // TextEntityExtractionDetails: Details of label text entity extraction + // operation. + TextEntityExtractionDetails *GoogleCloudDatalabelingV1beta1LabelTextEntityExtractionOperationMetadata `json:"textEntityExtractionDetails,omitempty"` + + // VideoClassificationDetails: Details of label video classification + // operation. + VideoClassificationDetails *GoogleCloudDatalabelingV1beta1LabelVideoClassificationOperationMetadata `json:"videoClassificationDetails,omitempty"` + + // VideoEventDetails: Details of label video event operation. + VideoEventDetails *GoogleCloudDatalabelingV1beta1LabelVideoEventOperationMetadata `json:"videoEventDetails,omitempty"` + + // VideoObjectDetectionDetails: Details of label video object detection + // operation. + VideoObjectDetectionDetails *GoogleCloudDatalabelingV1beta1LabelVideoObjectDetectionOperationMetadata `json:"videoObjectDetectionDetails,omitempty"` + + // VideoObjectTrackingDetails: Details of label video object tracking + // operation. + VideoObjectTrackingDetails *GoogleCloudDatalabelingV1beta1LabelVideoObjectTrackingOperationMetadata `json:"videoObjectTrackingDetails,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotatedDataset") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotatedDataset") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1LabelOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1LabelOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1LabelStats: Statistics about annotation +// specs. +type GoogleCloudDatalabelingV1beta1LabelStats struct { + // ExampleCount: Map of each annotation spec's example count. Key is the + // annotation spec name and value is the number of examples for that + // annotation spec. If the annotated dataset does not have annotation + // spec, the map will return a pair where the key is empty string and + // value is the total number of annotations. + ExampleCount map[string]string `json:"exampleCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExampleCount") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExampleCount") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1LabelStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1LabelStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1LabelTextClassificationOperationMetadata +// : Details of a LabelTextClassification operation metadata. +type GoogleCloudDatalabelingV1beta1LabelTextClassificationOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1LabelTextClassificationOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1LabelTextClassificationOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1LabelTextEntityExtractionOperationMetada +// ta: Details of a LabelTextEntityExtraction operation metadata. +type GoogleCloudDatalabelingV1beta1LabelTextEntityExtractionOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1LabelTextEntityExtractionOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1LabelTextEntityExtractionOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1LabelTextRequest: Request message for +// LabelText. +type GoogleCloudDatalabelingV1beta1LabelTextRequest struct { + // BasicConfig: Required. Basic human annotation config. + BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // Feature: Required. The type of text labeling task. + // + // Possible values: + // "FEATURE_UNSPECIFIED" + // "TEXT_CLASSIFICATION" - Label text content to one of more labels. + // "TEXT_ENTITY_EXTRACTION" - Label entities and their span in text. + Feature string `json:"feature,omitempty"` + + // TextClassificationConfig: Configuration for text classification task. + // One of text_classification_config and text_entity_extraction_config + // is required. + TextClassificationConfig *GoogleCloudDatalabelingV1beta1TextClassificationConfig `json:"textClassificationConfig,omitempty"` + + // TextEntityExtractionConfig: Configuration for entity extraction task. + // One of text_classification_config and text_entity_extraction_config + // is required. + TextEntityExtractionConfig *GoogleCloudDatalabelingV1beta1TextEntityExtractionConfig `json:"textEntityExtractionConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1LabelTextRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1LabelTextRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1LabelVideoClassificationOperationMetadat +// a: Details of a LabelVideoClassification operation metadata. +type GoogleCloudDatalabelingV1beta1LabelVideoClassificationOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1LabelVideoClassificationOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1LabelVideoClassificationOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1LabelVideoEventOperationMetadata: +// Details of a LabelVideoEvent operation metadata. +type GoogleCloudDatalabelingV1beta1LabelVideoEventOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1LabelVideoEventOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1LabelVideoEventOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1LabelVideoObjectDetectionOperationMetada +// ta: Details of a LabelVideoObjectDetection operation metadata. +type GoogleCloudDatalabelingV1beta1LabelVideoObjectDetectionOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1LabelVideoObjectDetectionOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1LabelVideoObjectDetectionOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1LabelVideoObjectTrackingOperationMetadat +// a: Details of a LabelVideoObjectTracking operation metadata. +type GoogleCloudDatalabelingV1beta1LabelVideoObjectTrackingOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1LabelVideoObjectTrackingOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1LabelVideoObjectTrackingOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1LabelVideoRequest: Request message for +// LabelVideo. +type GoogleCloudDatalabelingV1beta1LabelVideoRequest struct { + // BasicConfig: Required. Basic human annotation config. + BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // EventConfig: Configuration for video event task. One of + // video_classification_config, object_detection_config, + // object_tracking_config and event_config is required. + EventConfig *GoogleCloudDatalabelingV1beta1EventConfig `json:"eventConfig,omitempty"` + + // Feature: Required. The type of video labeling task. + // + // Possible values: + // "FEATURE_UNSPECIFIED" + // "CLASSIFICATION" - Label whole video or video segment with one or + // more labels. + // "OBJECT_DETECTION" - Label objects with bounding box on image + // frames extracted from the video. + // "OBJECT_TRACKING" - Label and track objects in video. + // "EVENT" - Label the range of video for the specified events. + Feature string `json:"feature,omitempty"` + + // ObjectDetectionConfig: Configuration for video object detection task. + // One of video_classification_config, object_detection_config, + // object_tracking_config and event_config is required. + ObjectDetectionConfig *GoogleCloudDatalabelingV1beta1ObjectDetectionConfig `json:"objectDetectionConfig,omitempty"` + + // ObjectTrackingConfig: Configuration for video object tracking task. + // One of video_classification_config, object_detection_config, + // object_tracking_config and event_config is required. + ObjectTrackingConfig *GoogleCloudDatalabelingV1beta1ObjectTrackingConfig `json:"objectTrackingConfig,omitempty"` + + // VideoClassificationConfig: Configuration for video classification + // task. One of video_classification_config, object_detection_config, + // object_tracking_config and event_config is required. + VideoClassificationConfig *GoogleCloudDatalabelingV1beta1VideoClassificationConfig `json:"videoClassificationConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1LabelVideoRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1LabelVideoRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse: Results +// of listing annotated datasets for a dataset. +type GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse struct { + // AnnotatedDatasets: The list of annotated datasets to return. + AnnotatedDatasets []*GoogleCloudDatalabelingV1beta1AnnotatedDataset `json:"annotatedDatasets,omitempty"` + + // NextPageToken: A token to retrieve next page of results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AnnotatedDatasets") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotatedDatasets") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse: Results +// of listing annotation spec set under a project. +type GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse struct { + // AnnotationSpecSets: The list of annotation spec sets. + AnnotationSpecSets []*GoogleCloudDatalabelingV1beta1AnnotationSpecSet `json:"annotationSpecSets,omitempty"` + + // NextPageToken: A token to retrieve next page of results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AnnotationSpecSets") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationSpecSets") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1ListDataItemsResponse: Results of +// listing data items in a dataset. +type GoogleCloudDatalabelingV1beta1ListDataItemsResponse struct { + // DataItems: The list of data items to return. + DataItems []*GoogleCloudDatalabelingV1beta1DataItem `json:"dataItems,omitempty"` + + // NextPageToken: A token to retrieve next page of results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DataItems") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DataItems") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ListDataItemsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ListDataItemsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1ListDatasetsResponse: Results of +// listing datasets within a project. +type GoogleCloudDatalabelingV1beta1ListDatasetsResponse struct { + // Datasets: The list of datasets to return. + Datasets []*GoogleCloudDatalabelingV1beta1Dataset `json:"datasets,omitempty"` + + // NextPageToken: A token to retrieve next page of results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Datasets") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Datasets") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ListDatasetsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ListDatasetsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse: Results for +// listing evaluation jobs. +type GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse struct { + // EvaluationJobs: The list of evaluation jobs to return. + EvaluationJobs []*GoogleCloudDatalabelingV1beta1EvaluationJob `json:"evaluationJobs,omitempty"` + + // NextPageToken: A token to retrieve next page of results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "EvaluationJobs") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EvaluationJobs") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1ListExamplesResponse: Results of +// listing Examples in and annotated dataset. +type GoogleCloudDatalabelingV1beta1ListExamplesResponse struct { + // Examples: The list of examples to return. + Examples []*GoogleCloudDatalabelingV1beta1Example `json:"examples,omitempty"` + + // NextPageToken: A token to retrieve next page of results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Examples") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Examples") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ListExamplesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ListExamplesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse: Results +// for listing FeedbackMessages. +type GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse struct { + // FeedbackMessages: The list of feedback messages to return. + FeedbackMessages []*GoogleCloudDatalabelingV1beta1FeedbackMessage `json:"feedbackMessages,omitempty"` + + // NextPageToken: A token to retrieve next page of results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "FeedbackMessages") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FeedbackMessages") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse: Results +// for listing FeedbackThreads. +type GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse struct { + // FeedbackThreads: The list of feedback threads to return. + FeedbackThreads []*GoogleCloudDatalabelingV1beta1FeedbackThread `json:"feedbackThreads,omitempty"` + + // NextPageToken: A token to retrieve next page of results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "FeedbackThreads") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FeedbackThreads") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1ListInstructionsResponse: Results of +// listing instructions under a project. +type GoogleCloudDatalabelingV1beta1ListInstructionsResponse struct { + // Instructions: The list of Instructions to return. + Instructions []*GoogleCloudDatalabelingV1beta1Instruction `json:"instructions,omitempty"` + + // NextPageToken: A token to retrieve next page of results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Instructions") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Instructions") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ListInstructionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ListInstructionsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1NormalizedBoundingPoly: Normalized +// bounding polygon. +type GoogleCloudDatalabelingV1beta1NormalizedBoundingPoly struct { + // NormalizedVertices: The bounding polygon normalized vertices. + NormalizedVertices []*GoogleCloudDatalabelingV1beta1NormalizedVertex `json:"normalizedVertices,omitempty"` + + // ForceSendFields is a list of field names (e.g. "NormalizedVertices") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NormalizedVertices") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1NormalizedBoundingPoly) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1NormalizedBoundingPoly + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1NormalizedPolyline: Normalized +// polyline. +type GoogleCloudDatalabelingV1beta1NormalizedPolyline struct { + // NormalizedVertices: The normalized polyline vertices. + NormalizedVertices []*GoogleCloudDatalabelingV1beta1NormalizedVertex `json:"normalizedVertices,omitempty"` + + // ForceSendFields is a list of field names (e.g. "NormalizedVertices") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NormalizedVertices") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1NormalizedPolyline) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1NormalizedPolyline + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1NormalizedVertex: A vertex represents a +// 2D point in the image. NOTE: the normalized vertex coordinates are +// relative to the original image and range from 0 to 1. +type GoogleCloudDatalabelingV1beta1NormalizedVertex struct { + // X: X coordinate. + X float64 `json:"x,omitempty"` + + // Y: Y coordinate. + Y float64 `json:"y,omitempty"` + + // ForceSendFields is a list of field names (e.g. "X") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "X") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1NormalizedVertex) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1NormalizedVertex + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDatalabelingV1beta1NormalizedVertex) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDatalabelingV1beta1NormalizedVertex + var s1 struct { + X gensupport.JSONFloat64 `json:"x"` + Y gensupport.JSONFloat64 `json:"y"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.X = float64(s1.X) + s.Y = float64(s1.Y) + return nil +} + +// GoogleCloudDatalabelingV1beta1ObjectDetectionConfig: Config for video +// object detection human labeling task. Object detection will be +// conducted on the images extracted from the video, and those objects +// will be labeled with bounding boxes. User need to specify the number +// of images to be extracted per second as the extraction frame rate. +type GoogleCloudDatalabelingV1beta1ObjectDetectionConfig struct { + // AnnotationSpecSet: Required. Annotation spec set resource name. + AnnotationSpecSet string `json:"annotationSpecSet,omitempty"` + + // ExtractionFrameRate: Required. Number of frames per second to be + // extracted from the video. + ExtractionFrameRate float64 `json:"extractionFrameRate,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotationSpecSet") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationSpecSet") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ObjectDetectionConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ObjectDetectionConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDatalabelingV1beta1ObjectDetectionConfig) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDatalabelingV1beta1ObjectDetectionConfig + var s1 struct { + ExtractionFrameRate gensupport.JSONFloat64 `json:"extractionFrameRate"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ExtractionFrameRate = float64(s1.ExtractionFrameRate) + return nil +} + +// GoogleCloudDatalabelingV1beta1ObjectDetectionMetrics: Metrics +// calculated for an image object detection (bounding box) model. +type GoogleCloudDatalabelingV1beta1ObjectDetectionMetrics struct { + // PrCurve: Precision-recall curve. + PrCurve *GoogleCloudDatalabelingV1beta1PrCurve `json:"prCurve,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PrCurve") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PrCurve") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ObjectDetectionMetrics) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ObjectDetectionMetrics + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1ObjectTrackingConfig: Config for video +// object tracking human labeling task. +type GoogleCloudDatalabelingV1beta1ObjectTrackingConfig struct { + // AnnotationSpecSet: Required. Annotation spec set resource name. + AnnotationSpecSet string `json:"annotationSpecSet,omitempty"` + + // ClipLength: Videos will be cut to smaller clips to make it easier for + // labelers to work on. Users can configure is field in seconds, if not + // set, default value is 20s. + ClipLength int64 `json:"clipLength,omitempty"` + + // OverlapLength: The overlap length between different video clips. + // Users can configure is field in seconds, if not set, default value is + // 0.3s. + OverlapLength int64 `json:"overlapLength,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotationSpecSet") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationSpecSet") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ObjectTrackingConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ObjectTrackingConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1ObjectTrackingFrame: Video frame level +// annotation for object detection and tracking. +type GoogleCloudDatalabelingV1beta1ObjectTrackingFrame struct { + BoundingPoly *GoogleCloudDatalabelingV1beta1BoundingPoly `json:"boundingPoly,omitempty"` + + NormalizedBoundingPoly *GoogleCloudDatalabelingV1beta1NormalizedBoundingPoly `json:"normalizedBoundingPoly,omitempty"` + + // TimeOffset: The time offset of this frame relative to the beginning + // of the video. + TimeOffset string `json:"timeOffset,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BoundingPoly") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BoundingPoly") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1ObjectTrackingFrame) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1ObjectTrackingFrame + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1OperatorFeedbackMetadata: Metadata +// describing the feedback from the operator. +type GoogleCloudDatalabelingV1beta1OperatorFeedbackMetadata struct { +} + +// GoogleCloudDatalabelingV1beta1OperatorMetadata: General information +// useful for labels coming from contributors. +type GoogleCloudDatalabelingV1beta1OperatorMetadata struct { + // Comments: Comments from contributors. + Comments []string `json:"comments,omitempty"` + + // LabelVotes: The total number of contributors that choose this label. + LabelVotes int64 `json:"labelVotes,omitempty"` + + // Score: Confidence score corresponding to a label. For examle, if 3 + // contributors have answered the question and 2 of them agree on the + // final label, the confidence score will be 0.67 (2/3). + Score float64 `json:"score,omitempty"` + + // TotalVotes: The total number of contributors that answer this + // question. + TotalVotes int64 `json:"totalVotes,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Comments") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Comments") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1OperatorMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1OperatorMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDatalabelingV1beta1OperatorMetadata) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDatalabelingV1beta1OperatorMetadata + var s1 struct { + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Score = float64(s1.Score) + return nil +} + +// GoogleCloudDatalabelingV1beta1OutputConfig: The configuration of +// output data. +type GoogleCloudDatalabelingV1beta1OutputConfig struct { + // GcsDestination: Output to a file in Cloud Storage. Should be used for + // labeling output other than image segmentation. + GcsDestination *GoogleCloudDatalabelingV1beta1GcsDestination `json:"gcsDestination,omitempty"` + + // GcsFolderDestination: Output to a folder in Cloud Storage. Should be + // used for image segmentation or document de-identification labeling + // outputs. + GcsFolderDestination *GoogleCloudDatalabelingV1beta1GcsFolderDestination `json:"gcsFolderDestination,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GcsDestination") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GcsDestination") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1OutputConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1OutputConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1PauseEvaluationJobRequest: Request +// message for PauseEvaluationJob. +type GoogleCloudDatalabelingV1beta1PauseEvaluationJobRequest struct { +} + +// GoogleCloudDatalabelingV1beta1PdfInstruction: Instruction from a PDF +// file. +type GoogleCloudDatalabelingV1beta1PdfInstruction struct { + // GcsFileUri: PDF file for the instruction. Only gcs path is allowed. + GcsFileUri string `json:"gcsFileUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GcsFileUri") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GcsFileUri") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1PdfInstruction) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1PdfInstruction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1Polyline: A line with multiple line +// segments. +type GoogleCloudDatalabelingV1beta1Polyline struct { + // Vertices: The polyline vertices. + Vertices []*GoogleCloudDatalabelingV1beta1Vertex `json:"vertices,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Vertices") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Vertices") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1Polyline) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1Polyline + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1PolylineConfig: Config for image +// polyline human labeling task. +type GoogleCloudDatalabelingV1beta1PolylineConfig struct { + // AnnotationSpecSet: Required. Annotation spec set resource name. + AnnotationSpecSet string `json:"annotationSpecSet,omitempty"` + + // InstructionMessage: Optional. Instruction message showed on + // contributors UI. + InstructionMessage string `json:"instructionMessage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotationSpecSet") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationSpecSet") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1PolylineConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1PolylineConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type GoogleCloudDatalabelingV1beta1PrCurve struct { + // AnnotationSpec: The annotation spec of the label for which the + // precision-recall curve calculated. If this field is empty, that means + // the precision-recall curve is an aggregate curve for all labels. + AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"` + + // AreaUnderCurve: Area under the precision-recall curve. Not to be + // confused with area under a receiver operating characteristic (ROC) + // curve. + AreaUnderCurve float64 `json:"areaUnderCurve,omitempty"` + + // ConfidenceMetricsEntries: Entries that make up the precision-recall + // graph. Each entry is a "point" on the graph drawn for a different + // `confidence_threshold`. + ConfidenceMetricsEntries []*GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry `json:"confidenceMetricsEntries,omitempty"` + + // MeanAveragePrecision: Mean average prcision of this curve. + MeanAveragePrecision float64 `json:"meanAveragePrecision,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotationSpec") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationSpec") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1PrCurve) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1PrCurve + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDatalabelingV1beta1PrCurve) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDatalabelingV1beta1PrCurve + var s1 struct { + AreaUnderCurve gensupport.JSONFloat64 `json:"areaUnderCurve"` + MeanAveragePrecision gensupport.JSONFloat64 `json:"meanAveragePrecision"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.AreaUnderCurve = float64(s1.AreaUnderCurve) + s.MeanAveragePrecision = float64(s1.MeanAveragePrecision) + return nil +} + +// GoogleCloudDatalabelingV1beta1RequesterFeedbackMetadata: Metadata +// describing the feedback from the labeling task requester. +type GoogleCloudDatalabelingV1beta1RequesterFeedbackMetadata struct { +} + +// GoogleCloudDatalabelingV1beta1ResumeEvaluationJobRequest: Request +// message ResumeEvaluationJob. +type GoogleCloudDatalabelingV1beta1ResumeEvaluationJobRequest struct { +} + +// GoogleCloudDatalabelingV1beta1Row: A row in the confusion matrix. +// Each entry in this row has the same ground truth label. +type GoogleCloudDatalabelingV1beta1Row struct { + // AnnotationSpec: The annotation spec of the ground truth label for + // this row. + AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"` + + // Entries: A list of the confusion matrix entries. One entry for each + // possible predicted label. + Entries []*GoogleCloudDatalabelingV1beta1ConfusionMatrixEntry `json:"entries,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotationSpec") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationSpec") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1Row) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1Row + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse: Results of +// searching evaluations. +type GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse struct { + // Evaluations: The list of evaluations matching the search. + Evaluations []*GoogleCloudDatalabelingV1beta1Evaluation `json:"evaluations,omitempty"` + + // NextPageToken: A token to retrieve next page of results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Evaluations") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Evaluations") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1SearchExampleComparisonsRequest: +// Request message of SearchExampleComparisons. +type GoogleCloudDatalabelingV1beta1SearchExampleComparisonsRequest struct { + // PageSize: Optional. Requested page size. Server may return fewer + // results than requested. Default value is 100. + PageSize int64 `json:"pageSize,omitempty"` + + // PageToken: Optional. A token identifying a page of results for the + // server to return. Typically obtained by the nextPageToken of the + // response to a previous search rquest. If you don't specify this + // field, the API call requests the first page of the search. + PageToken string `json:"pageToken,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PageSize") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PageSize") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1SearchExampleComparisonsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1SearchExampleComparisonsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse: +// Results of searching example comparisons. +type GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse struct { + // ExampleComparisons: A list of example comparisons matching the search + // criteria. + ExampleComparisons []*GoogleCloudDatalabelingV1beta1ExampleComparison `json:"exampleComparisons,omitempty"` + + // NextPageToken: A token to retrieve next page of results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ExampleComparisons") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExampleComparisons") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1SegmentationConfig: Config for image +// segmentation +type GoogleCloudDatalabelingV1beta1SegmentationConfig struct { + // AnnotationSpecSet: Required. Annotation spec set resource name. + // format: + // projects/{project_id}/annotationSpecSets/{annotation_spec_set_id} + AnnotationSpecSet string `json:"annotationSpecSet,omitempty"` + + // InstructionMessage: Instruction message showed on labelers UI. + InstructionMessage string `json:"instructionMessage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotationSpecSet") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationSpecSet") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1SegmentationConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1SegmentationConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1SentimentConfig: Config for setting up +// sentiments. +type GoogleCloudDatalabelingV1beta1SentimentConfig struct { + // EnableLabelSentimentSelection: If set to true, contributors will have + // the option to select sentiment of the label they selected, to mark it + // as negative or positive label. Default is false. + EnableLabelSentimentSelection bool `json:"enableLabelSentimentSelection,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "EnableLabelSentimentSelection") to unconditionally include in API + // requests. By default, fields with empty values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "EnableLabelSentimentSelection") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1SentimentConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1SentimentConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1SequentialSegment: Start and end +// position in a sequence (e.g. text segment). +type GoogleCloudDatalabelingV1beta1SequentialSegment struct { + // End: End position (exclusive). + End int64 `json:"end,omitempty"` + + // Start: Start position (inclusive). + Start int64 `json:"start,omitempty"` + + // ForceSendFields is a list of field names (e.g. "End") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "End") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1SequentialSegment) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1SequentialSegment + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1TextClassificationAnnotation: Text +// classification annotation. +type GoogleCloudDatalabelingV1beta1TextClassificationAnnotation struct { + // AnnotationSpec: Label of the text. + AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotationSpec") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationSpec") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1TextClassificationAnnotation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1TextClassificationAnnotation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1TextClassificationConfig: Config for +// text classification human labeling task. +type GoogleCloudDatalabelingV1beta1TextClassificationConfig struct { + // AllowMultiLabel: Optional. If allow_multi_label is true, contributors + // are able to choose multiple labels for one text segment. + AllowMultiLabel bool `json:"allowMultiLabel,omitempty"` + + // AnnotationSpecSet: Required. Annotation spec set resource name. + AnnotationSpecSet string `json:"annotationSpecSet,omitempty"` + + // SentimentConfig: Optional. Configs for sentiment selection. + SentimentConfig *GoogleCloudDatalabelingV1beta1SentimentConfig `json:"sentimentConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AllowMultiLabel") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AllowMultiLabel") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1TextClassificationConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1TextClassificationConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1TextEntityExtractionAnnotation: Text +// entity extraction annotation. +type GoogleCloudDatalabelingV1beta1TextEntityExtractionAnnotation struct { + // AnnotationSpec: Label of the text entities. + AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"` + + // SequentialSegment: Position of the entity. + SequentialSegment *GoogleCloudDatalabelingV1beta1SequentialSegment `json:"sequentialSegment,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotationSpec") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationSpec") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1TextEntityExtractionAnnotation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1TextEntityExtractionAnnotation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1TextEntityExtractionConfig: Config for +// text entity extraction human labeling task. +type GoogleCloudDatalabelingV1beta1TextEntityExtractionConfig struct { + // AnnotationSpecSet: Required. Annotation spec set resource name. + AnnotationSpecSet string `json:"annotationSpecSet,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotationSpecSet") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationSpecSet") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1TextEntityExtractionConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1TextEntityExtractionConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1TextMetadata: Metadata for the text. +type GoogleCloudDatalabelingV1beta1TextMetadata struct { + // LanguageCode: The language of this text, as a + // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Default value + // is en-US. + LanguageCode string `json:"languageCode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LanguageCode") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "LanguageCode") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1TextMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1TextMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1TextPayload: Container of information +// about a piece of text. +type GoogleCloudDatalabelingV1beta1TextPayload struct { + // TextContent: Text content. + TextContent string `json:"textContent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TextContent") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TextContent") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1TextPayload) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1TextPayload + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1TimeSegment: A time period inside of an +// example that has a time dimension (e.g. video). +type GoogleCloudDatalabelingV1beta1TimeSegment struct { + // EndTimeOffset: End of the time segment (exclusive), represented as + // the duration since the example start. + EndTimeOffset string `json:"endTimeOffset,omitempty"` + + // StartTimeOffset: Start of the time segment (inclusive), represented + // as the duration since the example start. + StartTimeOffset string `json:"startTimeOffset,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndTimeOffset") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EndTimeOffset") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1TimeSegment) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1TimeSegment + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1Vertex: A vertex represents a 2D point +// in the image. NOTE: the vertex coordinates are in the same scale as +// the original image. +type GoogleCloudDatalabelingV1beta1Vertex struct { + // X: X coordinate. + X int64 `json:"x,omitempty"` + + // Y: Y coordinate. + Y int64 `json:"y,omitempty"` + + // ForceSendFields is a list of field names (e.g. "X") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "X") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1Vertex) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1Vertex + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1VideoClassificationAnnotation: Video +// classification annotation. +type GoogleCloudDatalabelingV1beta1VideoClassificationAnnotation struct { + // AnnotationSpec: Label of the segment specified by time_segment. + AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"` + + // TimeSegment: The time segment of the video to which the annotation + // applies. + TimeSegment *GoogleCloudDatalabelingV1beta1TimeSegment `json:"timeSegment,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotationSpec") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationSpec") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1VideoClassificationAnnotation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1VideoClassificationAnnotation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1VideoClassificationConfig: Config for +// video classification human labeling task. Currently two types of +// video classification are supported: 1. Assign labels on the entire +// video. 2. Split the video into multiple video clips based on camera +// shot, and assign labels on each video clip. +type GoogleCloudDatalabelingV1beta1VideoClassificationConfig struct { + // AnnotationSpecSetConfigs: Required. The list of annotation spec set + // configs. Since watching a video clip takes much longer time than an + // image, we support label with multiple AnnotationSpecSet at the same + // time. Labels in each AnnotationSpecSet will be shown in a group to + // contributors. Contributors can select one or more (depending on + // whether to allow multi label) from each group. + AnnotationSpecSetConfigs []*GoogleCloudDatalabelingV1beta1AnnotationSpecSetConfig `json:"annotationSpecSetConfigs,omitempty"` + + // ApplyShotDetection: Optional. Option to apply shot detection on the + // video. + ApplyShotDetection bool `json:"applyShotDetection,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AnnotationSpecSetConfigs") to unconditionally include in API + // requests. By default, fields with empty values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationSpecSetConfigs") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1VideoClassificationConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1VideoClassificationConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1VideoEventAnnotation: Video event +// annotation. +type GoogleCloudDatalabelingV1beta1VideoEventAnnotation struct { + // AnnotationSpec: Label of the event in this annotation. + AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"` + + // TimeSegment: The time segment of the video to which the annotation + // applies. + TimeSegment *GoogleCloudDatalabelingV1beta1TimeSegment `json:"timeSegment,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotationSpec") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationSpec") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1VideoEventAnnotation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1VideoEventAnnotation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1VideoObjectTrackingAnnotation: Video +// object tracking annotation. +type GoogleCloudDatalabelingV1beta1VideoObjectTrackingAnnotation struct { + // AnnotationSpec: Label of the object tracked in this annotation. + AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"` + + // ObjectTrackingFrames: The list of frames where this object track + // appears. + ObjectTrackingFrames []*GoogleCloudDatalabelingV1beta1ObjectTrackingFrame `json:"objectTrackingFrames,omitempty"` + + // TimeSegment: The time segment of the video to which object tracking + // applies. + TimeSegment *GoogleCloudDatalabelingV1beta1TimeSegment `json:"timeSegment,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotationSpec") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationSpec") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1VideoObjectTrackingAnnotation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1VideoObjectTrackingAnnotation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1beta1VideoPayload: Container of information +// of a video. +type GoogleCloudDatalabelingV1beta1VideoPayload struct { + // FrameRate: FPS of the video. + FrameRate float64 `json:"frameRate,omitempty"` + + // MimeType: Video format. + MimeType string `json:"mimeType,omitempty"` + + // SignedUri: Signed uri of the video file in the service bucket. + SignedUri string `json:"signedUri,omitempty"` + + // VideoThumbnails: The list of video thumbnails. + VideoThumbnails []*GoogleCloudDatalabelingV1beta1VideoThumbnail `json:"videoThumbnails,omitempty"` + + // VideoUri: Video uri from the user bucket. + VideoUri string `json:"videoUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FrameRate") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FrameRate") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1VideoPayload) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1VideoPayload + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDatalabelingV1beta1VideoPayload) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDatalabelingV1beta1VideoPayload + var s1 struct { + FrameRate gensupport.JSONFloat64 `json:"frameRate"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.FrameRate = float64(s1.FrameRate) + return nil +} + +// GoogleCloudDatalabelingV1beta1VideoThumbnail: Container of +// information of a video thumbnail. +type GoogleCloudDatalabelingV1beta1VideoThumbnail struct { + // Thumbnail: A byte string of the video frame. + Thumbnail string `json:"thumbnail,omitempty"` + + // TimeOffset: Time offset relative to the beginning of the video, + // corresponding to the video frame where the thumbnail has been + // extracted from. + TimeOffset string `json:"timeOffset,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Thumbnail") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Thumbnail") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1beta1VideoThumbnail) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1beta1VideoThumbnail + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p1alpha1CreateInstructionMetadata: Metadata +// of a CreateInstruction operation. +type GoogleCloudDatalabelingV1p1alpha1CreateInstructionMetadata struct { + // CreateTime: Timestamp when create instruction request was created. + CreateTime string `json:"createTime,omitempty"` + + // Instruction: The name of the created Instruction. + // projects/{project_id}/instructions/{instruction_id} + Instruction string `json:"instruction,omitempty"` + + // PartialFailures: Partial failures encountered. E.g. single files that + // couldn't be read. Status details field will contain standard GCP + // error details. + PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p1alpha1CreateInstructionMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p1alpha1CreateInstructionMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p1alpha1ExportDataOperationMetadata: +// Metadata of an ExportData operation. +type GoogleCloudDatalabelingV1p1alpha1ExportDataOperationMetadata struct { + // AnnotatedDataset: Output only. The name of annotated dataset in + // format "projects/*/datasets/*/annotatedDatasets/*". + AnnotatedDataset string `json:"annotatedDataset,omitempty"` + + // CreateTime: Output only. Timestamp when export dataset request was + // created. + CreateTime string `json:"createTime,omitempty"` + + // Dataset: Output only. The name of dataset to be exported. + // "projects/*/datasets/*" + Dataset string `json:"dataset,omitempty"` + + // PartialFailures: Output only. Partial failures encountered. E.g. + // single files that couldn't be read. Status details field will contain + // standard GCP error details. + PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotatedDataset") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotatedDataset") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p1alpha1ExportDataOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p1alpha1ExportDataOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p1alpha1ExportDataOperationResponse: +// Response used for ExportDataset longrunning operation. +type GoogleCloudDatalabelingV1p1alpha1ExportDataOperationResponse struct { + // AnnotatedDataset: Output only. The name of annotated dataset in + // format "projects/*/datasets/*/annotatedDatasets/*". + AnnotatedDataset string `json:"annotatedDataset,omitempty"` + + // Dataset: Ouptut only. The name of dataset. "projects/*/datasets/*" + Dataset string `json:"dataset,omitempty"` + + // ExportCount: Output only. Number of examples exported successfully. + ExportCount int64 `json:"exportCount,omitempty"` + + // LabelStats: Output only. Statistic infos of labels in the exported + // dataset. + LabelStats *GoogleCloudDatalabelingV1p1alpha1LabelStats `json:"labelStats,omitempty"` + + // OutputConfig: Output only. output_config in the ExportData request. + OutputConfig *GoogleCloudDatalabelingV1p1alpha1OutputConfig `json:"outputConfig,omitempty"` + + // TotalCount: Output only. Total number of examples requested to export + TotalCount int64 `json:"totalCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotatedDataset") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotatedDataset") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p1alpha1ExportDataOperationResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p1alpha1ExportDataOperationResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p1alpha1GcsDestination: Export destination +// of the data.Only gcs path is allowed in output_uri. +type GoogleCloudDatalabelingV1p1alpha1GcsDestination struct { + // MimeType: Required. The format of the gcs destination. Only + // "text/csv" and "application/json" are supported. + MimeType string `json:"mimeType,omitempty"` + + // OutputUri: Required. The output uri of destination file. + OutputUri string `json:"outputUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MimeType") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MimeType") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p1alpha1GcsDestination) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p1alpha1GcsDestination + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p1alpha1GcsFolderDestination: Export folder +// destination of the data. +type GoogleCloudDatalabelingV1p1alpha1GcsFolderDestination struct { + // OutputFolderUri: Required. Cloud Storage directory to export data to. + OutputFolderUri string `json:"outputFolderUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OutputFolderUri") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "OutputFolderUri") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p1alpha1GcsFolderDestination) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p1alpha1GcsFolderDestination + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p1alpha1GenerateAnalysisReportOperationMetada +// ta: Metadata of an GenerateAnalysisReport operation. +type GoogleCloudDatalabelingV1p1alpha1GenerateAnalysisReportOperationMetadata struct { + // CreateTime: Timestamp when generate report request was created. + CreateTime string `json:"createTime,omitempty"` + + // Dataset: The name of the dataset for which the analysis report is + // generated. Format: "projects/*/datasets/*" + Dataset string `json:"dataset,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p1alpha1GenerateAnalysisReportOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p1alpha1GenerateAnalysisReportOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig: Configuration +// for how human labeling task should be done. +type GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig struct { + // AnnotatedDatasetDescription: Optional. A human-readable description + // for AnnotatedDataset. The description can be up to 10000 characters + // long. + AnnotatedDatasetDescription string `json:"annotatedDatasetDescription,omitempty"` + + // AnnotatedDatasetDisplayName: Required. A human-readable name for + // AnnotatedDataset defined by users. Maximum of 64 characters . + AnnotatedDatasetDisplayName string `json:"annotatedDatasetDisplayName,omitempty"` + + // ContributorEmails: Optional. If you want your own labeling + // contributors to manage and work on this labeling request, you can set + // these contributors here. We will give them access to the question + // types in crowdcompute. Note that these emails must be registered in + // crowdcompute worker UI: https://crowd-compute.appspot.com/ + ContributorEmails []string `json:"contributorEmails,omitempty"` + + // Instruction: Required. Instruction resource name. + Instruction string `json:"instruction,omitempty"` + + // LabelGroup: Optional. A human-readable label used to logically group + // labeling tasks. This string must match the regular expression + // `[a-zA-Z\\d_-]{0,128}`. + LabelGroup string `json:"labelGroup,omitempty"` + + // LanguageCode: Optional. The Language of this question, as a + // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Default value + // is en-US. Only need to set this when task is language related. For + // example, French text classification. + LanguageCode string `json:"languageCode,omitempty"` + + // QuestionDuration: Optional. Maximum duration for contributors to + // answer a question. Maximum is 3600 seconds. Default is 3600 seconds. + QuestionDuration string `json:"questionDuration,omitempty"` + + // ReplicaCount: Optional. Replication of questions. Each question will + // be sent to up to this number of contributors to label. Aggregated + // answers will be returned. Default is set to 1. For image related + // labeling, valid values are 1, 3, 5. + ReplicaCount int64 `json:"replicaCount,omitempty"` + + // UserEmailAddress: Email of the user who started the labeling task and + // should be notified by email. If empty no notification will be sent. + UserEmailAddress string `json:"userEmailAddress,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AnnotatedDatasetDescription") to unconditionally include in API + // requests. By default, fields with empty values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "AnnotatedDatasetDescription") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p1alpha1ImportDataOperationMetadata: +// Metadata of an ImportData operation. +type GoogleCloudDatalabelingV1p1alpha1ImportDataOperationMetadata struct { + // CreateTime: Output only. Timestamp when import dataset request was + // created. + CreateTime string `json:"createTime,omitempty"` + + // Dataset: Output only. The name of imported dataset. + // "projects/*/datasets/*" + Dataset string `json:"dataset,omitempty"` + + // PartialFailures: Output only. Partial failures encountered. E.g. + // single files that couldn't be read. Status details field will contain + // standard GCP error details. + PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p1alpha1ImportDataOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p1alpha1ImportDataOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p1alpha1ImportDataOperationResponse: +// Response used for ImportData longrunning operation. +type GoogleCloudDatalabelingV1p1alpha1ImportDataOperationResponse struct { + // Dataset: Ouptut only. The name of imported dataset. + Dataset string `json:"dataset,omitempty"` + + // ImportCount: Output only. Number of examples imported successfully. + ImportCount int64 `json:"importCount,omitempty"` + + // TotalCount: Output only. Total number of examples requested to import + TotalCount int64 `json:"totalCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Dataset") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Dataset") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p1alpha1ImportDataOperationResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p1alpha1ImportDataOperationResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingBoxOperationMetadat +// a: Details of a LabelImageBoundingBox operation metadata. +type GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingBoxOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingBoxOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingBoxOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingPolyOperationMetada +// ta: Details of LabelImageBoundingPoly operation metadata. +type GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingPolyOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingPolyOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingPolyOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p1alpha1LabelImageClassificationOperationMeta +// data: Metadata of a LabelImageClassification operation. +type GoogleCloudDatalabelingV1p1alpha1LabelImageClassificationOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p1alpha1LabelImageClassificationOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelImageClassificationOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p1alpha1LabelImageOrientedBoundingBoxOperatio +// nMetadata: Details of a LabelImageOrientedBoundingBox operation +// metadata. +type GoogleCloudDatalabelingV1p1alpha1LabelImageOrientedBoundingBoxOperationMetadata struct { + // BasicConfig: Basic human annotation config. + BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p1alpha1LabelImageOrientedBoundingBoxOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelImageOrientedBoundingBoxOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p1alpha1LabelImagePolylineOperationMetadata: +// Details of LabelImagePolyline operation metadata. +type GoogleCloudDatalabelingV1p1alpha1LabelImagePolylineOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p1alpha1LabelImagePolylineOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelImagePolylineOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p1alpha1LabelImageSegmentationOperationMetada +// ta: Details of a LabelImageSegmentation operation metadata. +type GoogleCloudDatalabelingV1p1alpha1LabelImageSegmentationOperationMetadata struct { + // BasicConfig: Basic human annotation config. + BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p1alpha1LabelImageSegmentationOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelImageSegmentationOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p1alpha1LabelOperationMetadata: Metadata of +// a labeling operation, such as LabelImage or LabelVideo. Next tag: 23 +type GoogleCloudDatalabelingV1p1alpha1LabelOperationMetadata struct { + // AnnotatedDataset: Output only. The name of annotated dataset in + // format "projects/*/datasets/*/annotatedDatasets/*". + AnnotatedDataset string `json:"annotatedDataset,omitempty"` + + // CreateTime: Output only. Timestamp when labeling request was created. + CreateTime string `json:"createTime,omitempty"` + + // Dataset: Output only. The name of dataset to be labeled. + // "projects/*/datasets/*" + Dataset string `json:"dataset,omitempty"` + + // ImageBoundingBoxDetails: Details of label image bounding box + // operation. + ImageBoundingBoxDetails *GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingBoxOperationMetadata `json:"imageBoundingBoxDetails,omitempty"` + + // ImageBoundingPolyDetails: Details of label image bounding poly + // operation. + ImageBoundingPolyDetails *GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingPolyOperationMetadata `json:"imageBoundingPolyDetails,omitempty"` + + // ImageClassificationDetails: Details of label image classification + // operation. + ImageClassificationDetails *GoogleCloudDatalabelingV1p1alpha1LabelImageClassificationOperationMetadata `json:"imageClassificationDetails,omitempty"` + + // ImageOrientedBoundingBoxDetails: Details of label image oriented + // bounding box operation. + ImageOrientedBoundingBoxDetails *GoogleCloudDatalabelingV1p1alpha1LabelImageOrientedBoundingBoxOperationMetadata `json:"imageOrientedBoundingBoxDetails,omitempty"` + + // ImagePolylineDetails: Details of label image polyline operation. + ImagePolylineDetails *GoogleCloudDatalabelingV1p1alpha1LabelImagePolylineOperationMetadata `json:"imagePolylineDetails,omitempty"` + + // ImageSegmentationDetails: Details of label image segmentation + // operation. + ImageSegmentationDetails *GoogleCloudDatalabelingV1p1alpha1LabelImageSegmentationOperationMetadata `json:"imageSegmentationDetails,omitempty"` + + // PartialFailures: Output only. Partial failures encountered. E.g. + // single files that couldn't be read. Status details field will contain + // standard GCP error details. + PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"` + + // ProgressPercent: Output only. Progress of label operation. Range: [0, + // 100]. + ProgressPercent int64 `json:"progressPercent,omitempty"` + + // TextClassificationDetails: Details of label text classification + // operation. + TextClassificationDetails *GoogleCloudDatalabelingV1p1alpha1LabelTextClassificationOperationMetadata `json:"textClassificationDetails,omitempty"` + + // TextEntityExtractionDetails: Details of label text entity extraction + // operation. + TextEntityExtractionDetails *GoogleCloudDatalabelingV1p1alpha1LabelTextEntityExtractionOperationMetadata `json:"textEntityExtractionDetails,omitempty"` + + // VideoClassificationDetails: Details of label video classification + // operation. + VideoClassificationDetails *GoogleCloudDatalabelingV1p1alpha1LabelVideoClassificationOperationMetadata `json:"videoClassificationDetails,omitempty"` + + // VideoEventDetails: Details of label video event operation. + VideoEventDetails *GoogleCloudDatalabelingV1p1alpha1LabelVideoEventOperationMetadata `json:"videoEventDetails,omitempty"` + + // VideoObjectDetectionDetails: Details of label video object detection + // operation. + VideoObjectDetectionDetails *GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectDetectionOperationMetadata `json:"videoObjectDetectionDetails,omitempty"` + + // VideoObjectTrackingDetails: Details of label video object tracking + // operation. + VideoObjectTrackingDetails *GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectTrackingOperationMetadata `json:"videoObjectTrackingDetails,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotatedDataset") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotatedDataset") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p1alpha1LabelOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p1alpha1LabelStats: Statistics about +// annotation specs. +type GoogleCloudDatalabelingV1p1alpha1LabelStats struct { + // ExampleCount: Map of each annotation spec's example count. Key is the + // annotation spec name and value is the number of examples for that + // annotation spec. If the annotated dataset does not have annotation + // spec, the map will return a pair where the key is empty string and + // value is the total number of annotations. + ExampleCount map[string]string `json:"exampleCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExampleCount") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExampleCount") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p1alpha1LabelStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p1alpha1LabelTextClassificationOperationMetad +// ata: Details of a LabelTextClassification operation metadata. +type GoogleCloudDatalabelingV1p1alpha1LabelTextClassificationOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p1alpha1LabelTextClassificationOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelTextClassificationOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p1alpha1LabelTextEntityExtractionOperationMet +// adata: Details of a LabelTextEntityExtraction operation metadata. +type GoogleCloudDatalabelingV1p1alpha1LabelTextEntityExtractionOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p1alpha1LabelTextEntityExtractionOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelTextEntityExtractionOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p1alpha1LabelVideoClassificationOperationMeta +// data: Details of a LabelVideoClassification operation metadata. +type GoogleCloudDatalabelingV1p1alpha1LabelVideoClassificationOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p1alpha1LabelVideoClassificationOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelVideoClassificationOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p1alpha1LabelVideoEventOperationMetadata: +// Details of a LabelVideoEvent operation metadata. +type GoogleCloudDatalabelingV1p1alpha1LabelVideoEventOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p1alpha1LabelVideoEventOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelVideoEventOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectDetectionOperationMet +// adata: Details of a LabelVideoObjectDetection operation metadata. +type GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectDetectionOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectDetectionOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectDetectionOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectTrackingOperationMeta +// data: Details of a LabelVideoObjectTracking operation metadata. +type GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectTrackingOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectTrackingOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectTrackingOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p1alpha1OutputConfig: The configuration of +// output data. +type GoogleCloudDatalabelingV1p1alpha1OutputConfig struct { + // GcsDestination: Output to a file in Cloud Storage. Should be used for + // labeling output other than image segmentation. + GcsDestination *GoogleCloudDatalabelingV1p1alpha1GcsDestination `json:"gcsDestination,omitempty"` + + // GcsFolderDestination: Output to a folder in Cloud Storage. Should be + // used for image segmentation or document de-identification labeling + // outputs. + GcsFolderDestination *GoogleCloudDatalabelingV1p1alpha1GcsFolderDestination `json:"gcsFolderDestination,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GcsDestination") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GcsDestination") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p1alpha1OutputConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p1alpha1OutputConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p2alpha1CreateInstructionMetadata: Metadata +// of a CreateInstruction operation. +type GoogleCloudDatalabelingV1p2alpha1CreateInstructionMetadata struct { + // CreateTime: Timestamp when create instruction request was created. + CreateTime string `json:"createTime,omitempty"` + + // Instruction: The name of the created Instruction. + // projects/{project_id}/instructions/{instruction_id} + Instruction string `json:"instruction,omitempty"` + + // PartialFailures: Partial failures encountered. E.g. single files that + // couldn't be read. Status details field will contain standard GCP + // error details. + PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p2alpha1CreateInstructionMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p2alpha1CreateInstructionMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p2alpha1ExportDataOperationMetadata: +// Metadata of an ExportData operation. +type GoogleCloudDatalabelingV1p2alpha1ExportDataOperationMetadata struct { + // AnnotatedDataset: Output only. The name of annotated dataset in + // format "projects/*/datasets/*/annotatedDatasets/*". + AnnotatedDataset string `json:"annotatedDataset,omitempty"` + + // CreateTime: Output only. Timestamp when export dataset request was + // created. + CreateTime string `json:"createTime,omitempty"` + + // Dataset: Output only. The name of dataset to be exported. + // "projects/*/datasets/*" + Dataset string `json:"dataset,omitempty"` + + // PartialFailures: Output only. Partial failures encountered. E.g. + // single files that couldn't be read. Status details field will contain + // standard GCP error details. + PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotatedDataset") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotatedDataset") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p2alpha1ExportDataOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p2alpha1ExportDataOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p2alpha1ExportDataOperationResponse: +// Response used for ExportDataset longrunning operation. +type GoogleCloudDatalabelingV1p2alpha1ExportDataOperationResponse struct { + // AnnotatedDataset: Output only. The name of annotated dataset in + // format "projects/*/datasets/*/annotatedDatasets/*". + AnnotatedDataset string `json:"annotatedDataset,omitempty"` + + // Dataset: Ouptut only. The name of dataset. "projects/*/datasets/*" + Dataset string `json:"dataset,omitempty"` + + // ExportCount: Output only. Number of examples exported successfully. + ExportCount int64 `json:"exportCount,omitempty"` + + // LabelStats: Output only. Statistic infos of labels in the exported + // dataset. + LabelStats *GoogleCloudDatalabelingV1p2alpha1LabelStats `json:"labelStats,omitempty"` + + // OutputConfig: Output only. output_config in the ExportData request. + OutputConfig *GoogleCloudDatalabelingV1p2alpha1OutputConfig `json:"outputConfig,omitempty"` + + // TotalCount: Output only. Total number of examples requested to export + TotalCount int64 `json:"totalCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotatedDataset") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotatedDataset") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p2alpha1ExportDataOperationResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p2alpha1ExportDataOperationResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p2alpha1GcsDestination: Export destination +// of the data.Only gcs path is allowed in output_uri. +type GoogleCloudDatalabelingV1p2alpha1GcsDestination struct { + // MimeType: Required. The format of the gcs destination. Only + // "text/csv" and "application/json" are supported. + MimeType string `json:"mimeType,omitempty"` + + // OutputUri: Required. The output uri of destination file. + OutputUri string `json:"outputUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MimeType") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MimeType") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p2alpha1GcsDestination) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p2alpha1GcsDestination + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p2alpha1GcsFolderDestination: Export folder +// destination of the data. +type GoogleCloudDatalabelingV1p2alpha1GcsFolderDestination struct { + // OutputFolderUri: Required. Cloud Storage directory to export data to. + OutputFolderUri string `json:"outputFolderUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OutputFolderUri") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "OutputFolderUri") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p2alpha1GcsFolderDestination) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p2alpha1GcsFolderDestination + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig: Configuration +// for how human labeling task should be done. +type GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig struct { + // AnnotatedDatasetDescription: Optional. A human-readable description + // for AnnotatedDataset. The description can be up to 10000 characters + // long. + AnnotatedDatasetDescription string `json:"annotatedDatasetDescription,omitempty"` + + // AnnotatedDatasetDisplayName: Required. A human-readable name for + // AnnotatedDataset defined by users. Maximum of 64 characters . + AnnotatedDatasetDisplayName string `json:"annotatedDatasetDisplayName,omitempty"` + + // ContributorEmails: Optional. If you want your own labeling + // contributors to manage and work on this labeling request, you can set + // these contributors here. We will give them access to the question + // types in crowdcompute. Note that these emails must be registered in + // crowdcompute worker UI: https://crowd-compute.appspot.com/ + ContributorEmails []string `json:"contributorEmails,omitempty"` + + // Instruction: Required. Instruction resource name. + Instruction string `json:"instruction,omitempty"` + + // LabelGroup: Optional. A human-readable label used to logically group + // labeling tasks. This string must match the regular expression + // `[a-zA-Z\\d_-]{0,128}`. + LabelGroup string `json:"labelGroup,omitempty"` + + // LanguageCode: Optional. The Language of this question, as a + // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Default value + // is en-US. Only need to set this when task is language related. For + // example, French text classification. + LanguageCode string `json:"languageCode,omitempty"` + + // QuestionDuration: Optional. Maximum duration for contributors to + // answer a question. Maximum is 3600 seconds. Default is 3600 seconds. + QuestionDuration string `json:"questionDuration,omitempty"` + + // ReplicaCount: Optional. Replication of questions. Each question will + // be sent to up to this number of contributors to label. Aggregated + // answers will be returned. Default is set to 1. For image related + // labeling, valid values are 1, 3, 5. + ReplicaCount int64 `json:"replicaCount,omitempty"` + + // UserEmailAddress: Email of the user who started the labeling task and + // should be notified by email. If empty no notification will be sent. + UserEmailAddress string `json:"userEmailAddress,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AnnotatedDatasetDescription") to unconditionally include in API + // requests. By default, fields with empty values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "AnnotatedDatasetDescription") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p2alpha1ImportDataOperationMetadata: +// Metadata of an ImportData operation. +type GoogleCloudDatalabelingV1p2alpha1ImportDataOperationMetadata struct { + // CreateTime: Output only. Timestamp when import dataset request was + // created. + CreateTime string `json:"createTime,omitempty"` + + // Dataset: Output only. The name of imported dataset. + // "projects/*/datasets/*" + Dataset string `json:"dataset,omitempty"` + + // PartialFailures: Output only. Partial failures encountered. E.g. + // single files that couldn't be read. Status details field will contain + // standard GCP error details. + PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p2alpha1ImportDataOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p2alpha1ImportDataOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p2alpha1ImportDataOperationResponse: +// Response used for ImportData longrunning operation. +type GoogleCloudDatalabelingV1p2alpha1ImportDataOperationResponse struct { + // Dataset: Ouptut only. The name of imported dataset. + Dataset string `json:"dataset,omitempty"` + + // ImportCount: Output only. Number of examples imported successfully. + ImportCount int64 `json:"importCount,omitempty"` + + // TotalCount: Output only. Total number of examples requested to import + TotalCount int64 `json:"totalCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Dataset") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Dataset") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p2alpha1ImportDataOperationResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p2alpha1ImportDataOperationResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingBoxOperationMetadat +// a: Details of a LabelImageBoundingBox operation metadata. +type GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingBoxOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingBoxOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingBoxOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingPolyOperationMetada +// ta: Details of LabelImageBoundingPoly operation metadata. +type GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingPolyOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingPolyOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingPolyOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p2alpha1LabelImageClassificationOperationMeta +// data: Metadata of a LabelImageClassification operation. +type GoogleCloudDatalabelingV1p2alpha1LabelImageClassificationOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p2alpha1LabelImageClassificationOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelImageClassificationOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p2alpha1LabelImageOrientedBoundingBoxOperatio +// nMetadata: Details of a LabelImageOrientedBoundingBox operation +// metadata. +type GoogleCloudDatalabelingV1p2alpha1LabelImageOrientedBoundingBoxOperationMetadata struct { + // BasicConfig: Basic human annotation config. + BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p2alpha1LabelImageOrientedBoundingBoxOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelImageOrientedBoundingBoxOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p2alpha1LabelImagePolylineOperationMetadata: +// Details of LabelImagePolyline operation metadata. +type GoogleCloudDatalabelingV1p2alpha1LabelImagePolylineOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p2alpha1LabelImagePolylineOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelImagePolylineOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p2alpha1LabelImageSegmentationOperationMetada +// ta: Details of a LabelImageSegmentation operation metadata. +type GoogleCloudDatalabelingV1p2alpha1LabelImageSegmentationOperationMetadata struct { + // BasicConfig: Basic human annotation config. + BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p2alpha1LabelImageSegmentationOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelImageSegmentationOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p2alpha1LabelOperationMetadata: Metadata of +// a labeling operation, such as LabelImage or LabelVideo. Next tag: 23 +type GoogleCloudDatalabelingV1p2alpha1LabelOperationMetadata struct { + // AnnotatedDataset: Output only. The name of annotated dataset in + // format "projects/*/datasets/*/annotatedDatasets/*". + AnnotatedDataset string `json:"annotatedDataset,omitempty"` + + // CreateTime: Output only. Timestamp when labeling request was created. + CreateTime string `json:"createTime,omitempty"` + + // Dataset: Output only. The name of dataset to be labeled. + // "projects/*/datasets/*" + Dataset string `json:"dataset,omitempty"` + + // ImageBoundingBoxDetails: Details of label image bounding box + // operation. + ImageBoundingBoxDetails *GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingBoxOperationMetadata `json:"imageBoundingBoxDetails,omitempty"` + + // ImageBoundingPolyDetails: Details of label image bounding poly + // operation. + ImageBoundingPolyDetails *GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingPolyOperationMetadata `json:"imageBoundingPolyDetails,omitempty"` + + // ImageClassificationDetails: Details of label image classification + // operation. + ImageClassificationDetails *GoogleCloudDatalabelingV1p2alpha1LabelImageClassificationOperationMetadata `json:"imageClassificationDetails,omitempty"` + + // ImageOrientedBoundingBoxDetails: Details of label image oriented + // bounding box operation. + ImageOrientedBoundingBoxDetails *GoogleCloudDatalabelingV1p2alpha1LabelImageOrientedBoundingBoxOperationMetadata `json:"imageOrientedBoundingBoxDetails,omitempty"` + + // ImagePolylineDetails: Details of label image polyline operation. + ImagePolylineDetails *GoogleCloudDatalabelingV1p2alpha1LabelImagePolylineOperationMetadata `json:"imagePolylineDetails,omitempty"` + + // ImageSegmentationDetails: Details of label image segmentation + // operation. + ImageSegmentationDetails *GoogleCloudDatalabelingV1p2alpha1LabelImageSegmentationOperationMetadata `json:"imageSegmentationDetails,omitempty"` + + // PartialFailures: Output only. Partial failures encountered. E.g. + // single files that couldn't be read. Status details field will contain + // standard GCP error details. + PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"` + + // ProgressPercent: Output only. Progress of label operation. Range: [0, + // 100]. + ProgressPercent int64 `json:"progressPercent,omitempty"` + + // TextClassificationDetails: Details of label text classification + // operation. + TextClassificationDetails *GoogleCloudDatalabelingV1p2alpha1LabelTextClassificationOperationMetadata `json:"textClassificationDetails,omitempty"` + + // TextEntityExtractionDetails: Details of label text entity extraction + // operation. + TextEntityExtractionDetails *GoogleCloudDatalabelingV1p2alpha1LabelTextEntityExtractionOperationMetadata `json:"textEntityExtractionDetails,omitempty"` + + // VideoClassificationDetails: Details of label video classification + // operation. + VideoClassificationDetails *GoogleCloudDatalabelingV1p2alpha1LabelVideoClassificationOperationMetadata `json:"videoClassificationDetails,omitempty"` + + // VideoEventDetails: Details of label video event operation. + VideoEventDetails *GoogleCloudDatalabelingV1p2alpha1LabelVideoEventOperationMetadata `json:"videoEventDetails,omitempty"` + + // VideoObjectDetectionDetails: Details of label video object detection + // operation. + VideoObjectDetectionDetails *GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectDetectionOperationMetadata `json:"videoObjectDetectionDetails,omitempty"` + + // VideoObjectTrackingDetails: Details of label video object tracking + // operation. + VideoObjectTrackingDetails *GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectTrackingOperationMetadata `json:"videoObjectTrackingDetails,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotatedDataset") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotatedDataset") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p2alpha1LabelOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p2alpha1LabelStats: Statistics about +// annotation specs. +type GoogleCloudDatalabelingV1p2alpha1LabelStats struct { + // ExampleCount: Map of each annotation spec's example count. Key is the + // annotation spec name and value is the number of examples for that + // annotation spec. If the annotated dataset does not have annotation + // spec, the map will return a pair where the key is empty string and + // value is the total number of annotations. + ExampleCount map[string]string `json:"exampleCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExampleCount") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExampleCount") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p2alpha1LabelStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p2alpha1LabelTextClassificationOperationMetad +// ata: Details of a LabelTextClassification operation metadata. +type GoogleCloudDatalabelingV1p2alpha1LabelTextClassificationOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p2alpha1LabelTextClassificationOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelTextClassificationOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p2alpha1LabelTextEntityExtractionOperationMet +// adata: Details of a LabelTextEntityExtraction operation metadata. +type GoogleCloudDatalabelingV1p2alpha1LabelTextEntityExtractionOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p2alpha1LabelTextEntityExtractionOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelTextEntityExtractionOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p2alpha1LabelVideoClassificationOperationMeta +// data: Details of a LabelVideoClassification operation metadata. +type GoogleCloudDatalabelingV1p2alpha1LabelVideoClassificationOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p2alpha1LabelVideoClassificationOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelVideoClassificationOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p2alpha1LabelVideoEventOperationMetadata: +// Details of a LabelVideoEvent operation metadata. +type GoogleCloudDatalabelingV1p2alpha1LabelVideoEventOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p2alpha1LabelVideoEventOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelVideoEventOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectDetectionOperationMet +// adata: Details of a LabelVideoObjectDetection operation metadata. +type GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectDetectionOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectDetectionOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectDetectionOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectTrackingOperationMeta +// data: Details of a LabelVideoObjectTracking operation metadata. +type GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectTrackingOperationMetadata struct { + // BasicConfig: Basic human annotation config used in labeling request. + BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BasicConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BasicConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectTrackingOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectTrackingOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatalabelingV1p2alpha1OutputConfig: The configuration of +// output data. +type GoogleCloudDatalabelingV1p2alpha1OutputConfig struct { + // GcsDestination: Output to a file in Cloud Storage. Should be used for + // labeling output other than image segmentation. + GcsDestination *GoogleCloudDatalabelingV1p2alpha1GcsDestination `json:"gcsDestination,omitempty"` + + // GcsFolderDestination: Output to a folder in Cloud Storage. Should be + // used for image segmentation or document de-identification labeling + // outputs. + GcsFolderDestination *GoogleCloudDatalabelingV1p2alpha1GcsFolderDestination `json:"gcsFolderDestination,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GcsDestination") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GcsDestination") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatalabelingV1p2alpha1OutputConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatalabelingV1p2alpha1OutputConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleLongrunningListOperationsResponse: The response message for +// Operations.ListOperations. +type GoogleLongrunningListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Operations: A list of operations that matches the specified filter in + // the request. + Operations []*GoogleLongrunningOperation `json:"operations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleLongrunningListOperationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleLongrunningOperation: This resource represents a long-running +// operation that is the result of a network API call. +type GoogleLongrunningOperation struct { + // Done: If the value is `false`, it means the operation is still in + // progress. If `true`, the operation is completed, and either `error` + // or `response` is available. + Done bool `json:"done,omitempty"` + + // Error: The error result of the operation in case of failure or + // cancellation. + Error *GoogleRpcStatus `json:"error,omitempty"` + + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as + // create time. Some services might not provide such metadata. Any + // method that returns a long-running operation should document the + // metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: The server-assigned name, which is only unique within the same + // service that originally returns it. If you use the default HTTP + // mapping, the `name` should be a resource name ending with + // `operations/{unique_id}`. + Name string `json:"name,omitempty"` + + // Response: The normal response of the operation in case of success. If + // the original method returns no data on success, such as `Delete`, the + // response is `google.protobuf.Empty`. If the original method is + // standard `Get`/`Create`/`Update`, the response should be the + // resource. For other methods, the response should have the type + // `XxxResponse`, where `Xxx` is the original method name. For example, + // if the original method name is `TakeSnapshot()`, the inferred + // response type is `TakeSnapshotResponse`. + Response googleapi.RawMessage `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Done") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Done") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleLongrunningOperation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleProtobufEmpty: A generic empty message that you can re-use to +// avoid defining duplicated empty messages in your APIs. A typical +// example is to use it as the request or the response type of an API +// method. For instance: service Foo { rpc Bar(google.protobuf.Empty) +// returns (google.protobuf.Empty); } The JSON representation for +// `Empty` is empty JSON object `{}`. +type GoogleProtobufEmpty struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// GoogleRpcStatus: The `Status` type defines a logical error model that +// is suitable for different programming environments, including REST +// APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). +// Each `Status` message contains three pieces of data: error code, +// error message, and error details. You can find out more about this +// error model and how to work with it in the [API Design +// Guide](https://cloud.google.com/apis/design/errors). +type GoogleRpcStatus struct { + // Code: The status code, which should be an enum value of + // google.rpc.Code. + Code int64 `json:"code,omitempty"` + + // Details: A list of messages that carry the error details. There is a + // common set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { + type NoMethod GoogleRpcStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "datalabeling.projects.annotationSpecSets.create": + +type ProjectsAnnotationSpecSetsCreateCall struct { + s *Service + parent string + googleclouddatalabelingv1beta1createannotationspecsetrequest *GoogleCloudDatalabelingV1beta1CreateAnnotationSpecSetRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates an annotation spec set by providing a set of labels. +func (r *ProjectsAnnotationSpecSetsService) Create(parent string, googleclouddatalabelingv1beta1createannotationspecsetrequest *GoogleCloudDatalabelingV1beta1CreateAnnotationSpecSetRequest) *ProjectsAnnotationSpecSetsCreateCall { + c := &ProjectsAnnotationSpecSetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddatalabelingv1beta1createannotationspecsetrequest = googleclouddatalabelingv1beta1createannotationspecsetrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsAnnotationSpecSetsCreateCall) Fields(s ...googleapi.Field) *ProjectsAnnotationSpecSetsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsAnnotationSpecSetsCreateCall) Context(ctx context.Context) *ProjectsAnnotationSpecSetsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsAnnotationSpecSetsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAnnotationSpecSetsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1createannotationspecsetrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/annotationSpecSets") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.annotationSpecSets.create" call. +// Exactly one of *GoogleCloudDatalabelingV1beta1AnnotationSpecSet or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDatalabelingV1beta1AnnotationSpecSet.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsAnnotationSpecSetsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1AnnotationSpecSet, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDatalabelingV1beta1AnnotationSpecSet{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates an annotation spec set by providing a set of labels.", + // "flatPath": "v1beta1/projects/{projectsId}/annotationSpecSets", + // "httpMethod": "POST", + // "id": "datalabeling.projects.annotationSpecSets.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. AnnotationSpecSet resource parent, format: projects/{project_id}", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/annotationSpecSets", + // "request": { + // "$ref": "GoogleCloudDatalabelingV1beta1CreateAnnotationSpecSetRequest" + // }, + // "response": { + // "$ref": "GoogleCloudDatalabelingV1beta1AnnotationSpecSet" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.annotationSpecSets.delete": + +type ProjectsAnnotationSpecSetsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes an annotation spec set by resource name. +func (r *ProjectsAnnotationSpecSetsService) Delete(name string) *ProjectsAnnotationSpecSetsDeleteCall { + c := &ProjectsAnnotationSpecSetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsAnnotationSpecSetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAnnotationSpecSetsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsAnnotationSpecSetsDeleteCall) Context(ctx context.Context) *ProjectsAnnotationSpecSetsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsAnnotationSpecSetsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAnnotationSpecSetsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.annotationSpecSets.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsAnnotationSpecSetsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes an annotation spec set by resource name.", + // "flatPath": "v1beta1/projects/{projectsId}/annotationSpecSets/{annotationSpecSetsId}", + // "httpMethod": "DELETE", + // "id": "datalabeling.projects.annotationSpecSets.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. AnnotationSpec resource name, format: `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.", + // "location": "path", + // "pattern": "^projects/[^/]+/annotationSpecSets/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.annotationSpecSets.get": + +type ProjectsAnnotationSpecSetsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets an annotation spec set by resource name. +func (r *ProjectsAnnotationSpecSetsService) Get(name string) *ProjectsAnnotationSpecSetsGetCall { + c := &ProjectsAnnotationSpecSetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsAnnotationSpecSetsGetCall) Fields(s ...googleapi.Field) *ProjectsAnnotationSpecSetsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsAnnotationSpecSetsGetCall) IfNoneMatch(entityTag string) *ProjectsAnnotationSpecSetsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsAnnotationSpecSetsGetCall) Context(ctx context.Context) *ProjectsAnnotationSpecSetsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsAnnotationSpecSetsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAnnotationSpecSetsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.annotationSpecSets.get" call. +// Exactly one of *GoogleCloudDatalabelingV1beta1AnnotationSpecSet or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDatalabelingV1beta1AnnotationSpecSet.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsAnnotationSpecSetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1AnnotationSpecSet, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDatalabelingV1beta1AnnotationSpecSet{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets an annotation spec set by resource name.", + // "flatPath": "v1beta1/projects/{projectsId}/annotationSpecSets/{annotationSpecSetsId}", + // "httpMethod": "GET", + // "id": "datalabeling.projects.annotationSpecSets.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. AnnotationSpecSet resource name, format: projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/annotationSpecSets/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleCloudDatalabelingV1beta1AnnotationSpecSet" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.annotationSpecSets.list": + +type ProjectsAnnotationSpecSetsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists annotation spec sets for a project. Pagination is +// supported. +func (r *ProjectsAnnotationSpecSetsService) List(parent string) *ProjectsAnnotationSpecSetsListCall { + c := &ProjectsAnnotationSpecSetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filter is not supported +// at this moment. +func (c *ProjectsAnnotationSpecSetsListCall) Filter(filter string) *ProjectsAnnotationSpecSetsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. +// Server may return fewer results than requested. Default value is 100. +func (c *ProjectsAnnotationSpecSetsListCall) PageSize(pageSize int64) *ProjectsAnnotationSpecSetsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token +// identifying a page of results for the server to return. Typically +// obtained by ListAnnotationSpecSetsResponse.next_page_token of the +// previous [DataLabelingService.ListAnnotationSpecSets] call. Return +// first page if empty. +func (c *ProjectsAnnotationSpecSetsListCall) PageToken(pageToken string) *ProjectsAnnotationSpecSetsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsAnnotationSpecSetsListCall) Fields(s ...googleapi.Field) *ProjectsAnnotationSpecSetsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsAnnotationSpecSetsListCall) IfNoneMatch(entityTag string) *ProjectsAnnotationSpecSetsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsAnnotationSpecSetsListCall) Context(ctx context.Context) *ProjectsAnnotationSpecSetsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsAnnotationSpecSetsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAnnotationSpecSetsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/annotationSpecSets") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.annotationSpecSets.list" call. +// Exactly one of +// *GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse.ServerRe +// sponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsAnnotationSpecSetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists annotation spec sets for a project. Pagination is supported.", + // "flatPath": "v1beta1/projects/{projectsId}/annotationSpecSets", + // "httpMethod": "GET", + // "id": "datalabeling.projects.annotationSpecSets.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. Filter is not supported at this moment.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. Requested page size. Server may return fewer results than requested. Default value is 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. A token identifying a page of results for the server to return. Typically obtained by ListAnnotationSpecSetsResponse.next_page_token of the previous [DataLabelingService.ListAnnotationSpecSets] call. Return first page if empty.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Parent of AnnotationSpecSet resource, format: projects/{project_id}", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/annotationSpecSets", + // "response": { + // "$ref": "GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsAnnotationSpecSetsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "datalabeling.projects.datasets.create": + +type ProjectsDatasetsCreateCall struct { + s *Service + parent string + googleclouddatalabelingv1beta1createdatasetrequest *GoogleCloudDatalabelingV1beta1CreateDatasetRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates dataset. If success return a Dataset resource. +func (r *ProjectsDatasetsService) Create(parent string, googleclouddatalabelingv1beta1createdatasetrequest *GoogleCloudDatalabelingV1beta1CreateDatasetRequest) *ProjectsDatasetsCreateCall { + c := &ProjectsDatasetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddatalabelingv1beta1createdatasetrequest = googleclouddatalabelingv1beta1createdatasetrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsDatasetsCreateCall) Fields(s ...googleapi.Field) *ProjectsDatasetsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsDatasetsCreateCall) Context(ctx context.Context) *ProjectsDatasetsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsDatasetsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDatasetsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1createdatasetrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/datasets") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.datasets.create" call. +// Exactly one of *GoogleCloudDatalabelingV1beta1Dataset or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudDatalabelingV1beta1Dataset.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsDatasetsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1Dataset, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDatalabelingV1beta1Dataset{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates dataset. If success return a Dataset resource.", + // "flatPath": "v1beta1/projects/{projectsId}/datasets", + // "httpMethod": "POST", + // "id": "datalabeling.projects.datasets.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Dataset resource parent, format: projects/{project_id}", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/datasets", + // "request": { + // "$ref": "GoogleCloudDatalabelingV1beta1CreateDatasetRequest" + // }, + // "response": { + // "$ref": "GoogleCloudDatalabelingV1beta1Dataset" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.datasets.delete": + +type ProjectsDatasetsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a dataset by resource name. +func (r *ProjectsDatasetsService) Delete(name string) *ProjectsDatasetsDeleteCall { + c := &ProjectsDatasetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsDatasetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsDatasetsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsDatasetsDeleteCall) Context(ctx context.Context) *ProjectsDatasetsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsDatasetsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDatasetsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.datasets.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsDatasetsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a dataset by resource name.", + // "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}", + // "httpMethod": "DELETE", + // "id": "datalabeling.projects.datasets.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Dataset resource name, format: projects/{project_id}/datasets/{dataset_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/datasets/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.datasets.exportData": + +type ProjectsDatasetsExportDataCall struct { + s *Service + name string + googleclouddatalabelingv1beta1exportdatarequest *GoogleCloudDatalabelingV1beta1ExportDataRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// ExportData: Exports data and annotations from dataset. +func (r *ProjectsDatasetsService) ExportData(name string, googleclouddatalabelingv1beta1exportdatarequest *GoogleCloudDatalabelingV1beta1ExportDataRequest) *ProjectsDatasetsExportDataCall { + c := &ProjectsDatasetsExportDataCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleclouddatalabelingv1beta1exportdatarequest = googleclouddatalabelingv1beta1exportdatarequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsDatasetsExportDataCall) Fields(s ...googleapi.Field) *ProjectsDatasetsExportDataCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsDatasetsExportDataCall) Context(ctx context.Context) *ProjectsDatasetsExportDataCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsDatasetsExportDataCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDatasetsExportDataCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1exportdatarequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:exportData") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.datasets.exportData" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsDatasetsExportDataCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Exports data and annotations from dataset.", + // "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}:exportData", + // "httpMethod": "POST", + // "id": "datalabeling.projects.datasets.exportData", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Dataset resource name, format: projects/{project_id}/datasets/{dataset_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/datasets/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:exportData", + // "request": { + // "$ref": "GoogleCloudDatalabelingV1beta1ExportDataRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.datasets.get": + +type ProjectsDatasetsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets dataset by resource name. +func (r *ProjectsDatasetsService) Get(name string) *ProjectsDatasetsGetCall { + c := &ProjectsDatasetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsDatasetsGetCall) Fields(s ...googleapi.Field) *ProjectsDatasetsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsDatasetsGetCall) IfNoneMatch(entityTag string) *ProjectsDatasetsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsDatasetsGetCall) Context(ctx context.Context) *ProjectsDatasetsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsDatasetsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDatasetsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.datasets.get" call. +// Exactly one of *GoogleCloudDatalabelingV1beta1Dataset or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudDatalabelingV1beta1Dataset.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsDatasetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1Dataset, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDatalabelingV1beta1Dataset{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets dataset by resource name.", + // "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}", + // "httpMethod": "GET", + // "id": "datalabeling.projects.datasets.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Dataset resource name, format: projects/{project_id}/datasets/{dataset_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/datasets/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleCloudDatalabelingV1beta1Dataset" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.datasets.importData": + +type ProjectsDatasetsImportDataCall struct { + s *Service + name string + googleclouddatalabelingv1beta1importdatarequest *GoogleCloudDatalabelingV1beta1ImportDataRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// ImportData: Imports data into dataset based on source locations +// defined in request. It can be called multiple times for the same +// dataset. Each dataset can only have one long running operation +// running on it. For example, no labeling task (also long running +// operation) can be started while importing is still ongoing. Vice +// versa. +func (r *ProjectsDatasetsService) ImportData(name string, googleclouddatalabelingv1beta1importdatarequest *GoogleCloudDatalabelingV1beta1ImportDataRequest) *ProjectsDatasetsImportDataCall { + c := &ProjectsDatasetsImportDataCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleclouddatalabelingv1beta1importdatarequest = googleclouddatalabelingv1beta1importdatarequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsDatasetsImportDataCall) Fields(s ...googleapi.Field) *ProjectsDatasetsImportDataCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsDatasetsImportDataCall) Context(ctx context.Context) *ProjectsDatasetsImportDataCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsDatasetsImportDataCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDatasetsImportDataCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1importdatarequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:importData") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.datasets.importData" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsDatasetsImportDataCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Imports data into dataset based on source locations defined in request. It can be called multiple times for the same dataset. Each dataset can only have one long running operation running on it. For example, no labeling task (also long running operation) can be started while importing is still ongoing. Vice versa.", + // "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}:importData", + // "httpMethod": "POST", + // "id": "datalabeling.projects.datasets.importData", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Dataset resource name, format: projects/{project_id}/datasets/{dataset_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/datasets/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:importData", + // "request": { + // "$ref": "GoogleCloudDatalabelingV1beta1ImportDataRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.datasets.list": + +type ProjectsDatasetsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists datasets under a project. Pagination is supported. +func (r *ProjectsDatasetsService) List(parent string) *ProjectsDatasetsListCall { + c := &ProjectsDatasetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filter on dataset is not +// supported at this moment. +func (c *ProjectsDatasetsListCall) Filter(filter string) *ProjectsDatasetsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. +// Server may return fewer results than requested. Default value is 100. +func (c *ProjectsDatasetsListCall) PageSize(pageSize int64) *ProjectsDatasetsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token +// identifying a page of results for the server to return. Typically +// obtained by ListDatasetsResponse.next_page_token of the previous +// [DataLabelingService.ListDatasets] call. Returns the first page if +// empty. +func (c *ProjectsDatasetsListCall) PageToken(pageToken string) *ProjectsDatasetsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsDatasetsListCall) Fields(s ...googleapi.Field) *ProjectsDatasetsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsDatasetsListCall) IfNoneMatch(entityTag string) *ProjectsDatasetsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsDatasetsListCall) Context(ctx context.Context) *ProjectsDatasetsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsDatasetsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDatasetsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/datasets") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.datasets.list" call. +// Exactly one of *GoogleCloudDatalabelingV1beta1ListDatasetsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDatalabelingV1beta1ListDatasetsResponse.ServerResponse.Hea +// der or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsDatasetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListDatasetsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDatalabelingV1beta1ListDatasetsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists datasets under a project. Pagination is supported.", + // "flatPath": "v1beta1/projects/{projectsId}/datasets", + // "httpMethod": "GET", + // "id": "datalabeling.projects.datasets.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. Filter on dataset is not supported at this moment.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. Requested page size. Server may return fewer results than requested. Default value is 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. A token identifying a page of results for the server to return. Typically obtained by ListDatasetsResponse.next_page_token of the previous [DataLabelingService.ListDatasets] call. Returns the first page if empty.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Dataset resource parent, format: projects/{project_id}", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/datasets", + // "response": { + // "$ref": "GoogleCloudDatalabelingV1beta1ListDatasetsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsDatasetsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListDatasetsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "datalabeling.projects.datasets.annotatedDatasets.delete": + +type ProjectsDatasetsAnnotatedDatasetsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes an annotated dataset by resource name. +func (r *ProjectsDatasetsAnnotatedDatasetsService) Delete(name string) *ProjectsDatasetsAnnotatedDatasetsDeleteCall { + c := &ProjectsDatasetsAnnotatedDatasetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsDatasetsAnnotatedDatasetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsDatasetsAnnotatedDatasetsDeleteCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsDatasetsAnnotatedDatasetsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDatasetsAnnotatedDatasetsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.datasets.annotatedDatasets.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsDatasetsAnnotatedDatasetsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes an annotated dataset by resource name.", + // "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/annotatedDatasets/{annotatedDatasetsId}", + // "httpMethod": "DELETE", + // "id": "datalabeling.projects.datasets.annotatedDatasets.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the annotated dataset to delete, format: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/datasets/[^/]+/annotatedDatasets/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.datasets.annotatedDatasets.get": + +type ProjectsDatasetsAnnotatedDatasetsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets an annotated dataset by resource name. +func (r *ProjectsDatasetsAnnotatedDatasetsService) Get(name string) *ProjectsDatasetsAnnotatedDatasetsGetCall { + c := &ProjectsDatasetsAnnotatedDatasetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsDatasetsAnnotatedDatasetsGetCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsDatasetsAnnotatedDatasetsGetCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsDatasetsAnnotatedDatasetsGetCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsDatasetsAnnotatedDatasetsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDatasetsAnnotatedDatasetsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.datasets.annotatedDatasets.get" call. +// Exactly one of *GoogleCloudDatalabelingV1beta1AnnotatedDataset or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDatalabelingV1beta1AnnotatedDataset.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsDatasetsAnnotatedDatasetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1AnnotatedDataset, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDatalabelingV1beta1AnnotatedDataset{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets an annotated dataset by resource name.", + // "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/annotatedDatasets/{annotatedDatasetsId}", + // "httpMethod": "GET", + // "id": "datalabeling.projects.datasets.annotatedDatasets.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the annotated dataset to get, format: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/datasets/[^/]+/annotatedDatasets/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleCloudDatalabelingV1beta1AnnotatedDataset" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.datasets.annotatedDatasets.list": + +type ProjectsDatasetsAnnotatedDatasetsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists annotated datasets for a dataset. Pagination is +// supported. +func (r *ProjectsDatasetsAnnotatedDatasetsService) List(parent string) *ProjectsDatasetsAnnotatedDatasetsListCall { + c := &ProjectsDatasetsAnnotatedDatasetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filter is not supported +// at this moment. +func (c *ProjectsDatasetsAnnotatedDatasetsListCall) Filter(filter string) *ProjectsDatasetsAnnotatedDatasetsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. +// Server may return fewer results than requested. Default value is 100. +func (c *ProjectsDatasetsAnnotatedDatasetsListCall) PageSize(pageSize int64) *ProjectsDatasetsAnnotatedDatasetsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token +// identifying a page of results for the server to return. Typically +// obtained by ListAnnotatedDatasetsResponse.next_page_token of the +// previous [DataLabelingService.ListAnnotatedDatasets] call. Return +// first page if empty. +func (c *ProjectsDatasetsAnnotatedDatasetsListCall) PageToken(pageToken string) *ProjectsDatasetsAnnotatedDatasetsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsDatasetsAnnotatedDatasetsListCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsDatasetsAnnotatedDatasetsListCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsDatasetsAnnotatedDatasetsListCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsDatasetsAnnotatedDatasetsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDatasetsAnnotatedDatasetsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/annotatedDatasets") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.datasets.annotatedDatasets.list" call. +// Exactly one of +// *GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse.ServerRes +// ponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsDatasetsAnnotatedDatasetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists annotated datasets for a dataset. Pagination is supported.", + // "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/annotatedDatasets", + // "httpMethod": "GET", + // "id": "datalabeling.projects.datasets.annotatedDatasets.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. Filter is not supported at this moment.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. Requested page size. Server may return fewer results than requested. Default value is 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. A token identifying a page of results for the server to return. Typically obtained by ListAnnotatedDatasetsResponse.next_page_token of the previous [DataLabelingService.ListAnnotatedDatasets] call. Return first page if empty.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Name of the dataset to list annotated datasets, format: projects/{project_id}/datasets/{dataset_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/datasets/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/annotatedDatasets", + // "response": { + // "$ref": "GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsDatasetsAnnotatedDatasetsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "datalabeling.projects.datasets.annotatedDatasets.dataItems.get": + +type ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a data item in a dataset by resource name. This API can be +// called after data are imported into dataset. +func (r *ProjectsDatasetsAnnotatedDatasetsDataItemsService) Get(name string) *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall { + c := &ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.datasets.annotatedDatasets.dataItems.get" call. +// Exactly one of *GoogleCloudDatalabelingV1beta1DataItem or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudDatalabelingV1beta1DataItem.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1DataItem, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDatalabelingV1beta1DataItem{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a data item in a dataset by resource name. This API can be called after data are imported into dataset.", + // "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/annotatedDatasets/{annotatedDatasetsId}/dataItems/{dataItemsId}", + // "httpMethod": "GET", + // "id": "datalabeling.projects.datasets.annotatedDatasets.dataItems.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the data item to get, format: projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/datasets/[^/]+/annotatedDatasets/[^/]+/dataItems/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleCloudDatalabelingV1beta1DataItem" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.datasets.annotatedDatasets.dataItems.list": + +type ProjectsDatasetsAnnotatedDatasetsDataItemsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists data items in a dataset. This API can be called after +// data are imported into dataset. Pagination is supported. +func (r *ProjectsDatasetsAnnotatedDatasetsDataItemsService) List(parent string) *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall { + c := &ProjectsDatasetsAnnotatedDatasetsDataItemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filter is not supported +// at this moment. +func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) Filter(filter string) *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. +// Server may return fewer results than requested. Default value is 100. +func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) PageSize(pageSize int64) *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token +// identifying a page of results for the server to return. Typically +// obtained by ListDataItemsResponse.next_page_token of the previous +// [DataLabelingService.ListDataItems] call. Return first page if empty. +func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) PageToken(pageToken string) *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dataItems") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.datasets.annotatedDatasets.dataItems.list" call. +// Exactly one of *GoogleCloudDatalabelingV1beta1ListDataItemsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudDatalabelingV1beta1ListDataItemsResponse.ServerResponse.He +// ader or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListDataItemsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDatalabelingV1beta1ListDataItemsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists data items in a dataset. This API can be called after data are imported into dataset. Pagination is supported.", + // "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/annotatedDatasets/{annotatedDatasetsId}/dataItems", + // "httpMethod": "GET", + // "id": "datalabeling.projects.datasets.annotatedDatasets.dataItems.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. Filter is not supported at this moment.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. Requested page size. Server may return fewer results than requested. Default value is 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. A token identifying a page of results for the server to return. Typically obtained by ListDataItemsResponse.next_page_token of the previous [DataLabelingService.ListDataItems] call. Return first page if empty.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Name of the dataset to list data items, format: projects/{project_id}/datasets/{dataset_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/datasets/[^/]+/annotatedDatasets/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/dataItems", + // "response": { + // "$ref": "GoogleCloudDatalabelingV1beta1ListDataItemsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListDataItemsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "datalabeling.projects.datasets.annotatedDatasets.examples.get": + +type ProjectsDatasetsAnnotatedDatasetsExamplesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets an example by resource name, including both data and +// annotation. +func (r *ProjectsDatasetsAnnotatedDatasetsExamplesService) Get(name string) *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall { + c := &ProjectsDatasetsAnnotatedDatasetsExamplesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": An expression for +// filtering Examples. Filter by annotation_spec.display_name is +// supported. Format "annotation_spec.display_name = {display_name}" +func (c *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall) Filter(filter string) *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall { + c.urlParams_.Set("filter", filter) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.datasets.annotatedDatasets.examples.get" call. +// Exactly one of *GoogleCloudDatalabelingV1beta1Example or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudDatalabelingV1beta1Example.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1Example, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDatalabelingV1beta1Example{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets an example by resource name, including both data and annotation.", + // "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/annotatedDatasets/{annotatedDatasetsId}/examples/{examplesId}", + // "httpMethod": "GET", + // "id": "datalabeling.projects.datasets.annotatedDatasets.examples.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. An expression for filtering Examples. Filter by annotation_spec.display_name is supported. Format \"annotation_spec.display_name = {display_name}\"", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "Required. Name of example, format: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}/examples/{example_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/datasets/[^/]+/annotatedDatasets/[^/]+/examples/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleCloudDatalabelingV1beta1Example" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.datasets.annotatedDatasets.examples.list": + +type ProjectsDatasetsAnnotatedDatasetsExamplesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists examples in an annotated dataset. Pagination is +// supported. +func (r *ProjectsDatasetsAnnotatedDatasetsExamplesService) List(parent string) *ProjectsDatasetsAnnotatedDatasetsExamplesListCall { + c := &ProjectsDatasetsAnnotatedDatasetsExamplesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": An expression for +// filtering Examples. For annotated datasets that have annotation spec +// set, filter by annotation_spec.display_name is supported. Format +// "annotation_spec.display_name = {display_name}" +func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) Filter(filter string) *ProjectsDatasetsAnnotatedDatasetsExamplesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. +// Server may return fewer results than requested. Default value is 100. +func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) PageSize(pageSize int64) *ProjectsDatasetsAnnotatedDatasetsExamplesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token +// identifying a page of results for the server to return. Typically +// obtained by ListExamplesResponse.next_page_token of the previous +// [DataLabelingService.ListExamples] call. Return first page if empty. +func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) PageToken(pageToken string) *ProjectsDatasetsAnnotatedDatasetsExamplesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsExamplesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsExamplesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsExamplesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/examples") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.datasets.annotatedDatasets.examples.list" call. +// Exactly one of *GoogleCloudDatalabelingV1beta1ListExamplesResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDatalabelingV1beta1ListExamplesResponse.ServerResponse.Hea +// der or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListExamplesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDatalabelingV1beta1ListExamplesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists examples in an annotated dataset. Pagination is supported.", + // "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/annotatedDatasets/{annotatedDatasetsId}/examples", + // "httpMethod": "GET", + // "id": "datalabeling.projects.datasets.annotatedDatasets.examples.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. An expression for filtering Examples. For annotated datasets that have annotation spec set, filter by annotation_spec.display_name is supported. Format \"annotation_spec.display_name = {display_name}\"", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. Requested page size. Server may return fewer results than requested. Default value is 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. A token identifying a page of results for the server to return. Typically obtained by ListExamplesResponse.next_page_token of the previous [DataLabelingService.ListExamples] call. Return first page if empty.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Example resource parent.", + // "location": "path", + // "pattern": "^projects/[^/]+/datasets/[^/]+/annotatedDatasets/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/examples", + // "response": { + // "$ref": "GoogleCloudDatalabelingV1beta1ListExamplesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListExamplesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.delete": + +type ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Delete a FeedbackThread. +func (r *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsService) Delete(name string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall { + c := &ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Delete a FeedbackThread.", + // "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/annotatedDatasets/{annotatedDatasetsId}/feedbackThreads/{feedbackThreadsId}", + // "httpMethod": "DELETE", + // "id": "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the FeedbackThread that is going to be deleted. Format: 'projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset_id}/feedbackThreads/{feedback_thread_id}'.", + // "location": "path", + // "pattern": "^projects/[^/]+/datasets/[^/]+/annotatedDatasets/[^/]+/feedbackThreads/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.get": + +type ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get a FeedbackThread object. +func (r *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsService) Get(name string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall { + c := &ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.get" call. +// Exactly one of *GoogleCloudDatalabelingV1beta1FeedbackThread or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDatalabelingV1beta1FeedbackThread.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1FeedbackThread, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDatalabelingV1beta1FeedbackThread{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Get a FeedbackThread object.", + // "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/annotatedDatasets/{annotatedDatasetsId}/feedbackThreads/{feedbackThreadsId}", + // "httpMethod": "GET", + // "id": "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the feedback. Format: 'projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset_id}/feedbackThreads/{feedback_thread_id}'.", + // "location": "path", + // "pattern": "^projects/[^/]+/datasets/[^/]+/annotatedDatasets/[^/]+/feedbackThreads/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleCloudDatalabelingV1beta1FeedbackThread" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.list": + +type ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List FeedbackThreads with pagination. +func (r *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsService) List(parent string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall { + c := &ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. +// Server may return fewer results than requested. Default value is 100. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall) PageSize(pageSize int64) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token +// identifying a page of results for the server to return. Typically +// obtained by ListFeedbackThreads.next_page_token of the previous +// [DataLabelingService.ListFeedbackThreads] call. Return first page if +// empty. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall) PageToken(pageToken string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/feedbackThreads") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.list" call. +// Exactly one of +// *GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse.ServerRespo +// nse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "List FeedbackThreads with pagination.", + // "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/annotatedDatasets/{annotatedDatasetsId}/feedbackThreads", + // "httpMethod": "GET", + // "id": "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Optional. Requested page size. Server may return fewer results than requested. Default value is 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. A token identifying a page of results for the server to return. Typically obtained by ListFeedbackThreads.next_page_token of the previous [DataLabelingService.ListFeedbackThreads] call. Return first page if empty.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. FeedbackThread resource parent. Format: \"projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset_id}\"", + // "location": "path", + // "pattern": "^projects/[^/]+/datasets/[^/]+/annotatedDatasets/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/feedbackThreads", + // "response": { + // "$ref": "GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.feedbackMessages.create": + +type ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall struct { + s *Service + parent string + googleclouddatalabelingv1beta1feedbackmessage *GoogleCloudDatalabelingV1beta1FeedbackMessage + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Create a FeedbackMessage object. +func (r *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService) Create(parent string, googleclouddatalabelingv1beta1feedbackmessage *GoogleCloudDatalabelingV1beta1FeedbackMessage) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall { + c := &ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddatalabelingv1beta1feedbackmessage = googleclouddatalabelingv1beta1feedbackmessage + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1feedbackmessage) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/feedbackMessages") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.feedbackMessages.create" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Create a FeedbackMessage object.", + // "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/annotatedDatasets/{annotatedDatasetsId}/feedbackThreads/{feedbackThreadsId}/feedbackMessages", + // "httpMethod": "POST", + // "id": "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.feedbackMessages.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. FeedbackMessage resource parent, format: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset_id}/feedbackThreads/{feedback_thread_id}.", + // "location": "path", + // "pattern": "^projects/[^/]+/datasets/[^/]+/annotatedDatasets/[^/]+/feedbackThreads/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/feedbackMessages", + // "request": { + // "$ref": "GoogleCloudDatalabelingV1beta1FeedbackMessage" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.feedbackMessages.delete": + +type ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Delete a FeedbackMessage. +func (r *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService) Delete(name string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall { + c := &ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.feedbackMessages.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Delete a FeedbackMessage.", + // "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/annotatedDatasets/{annotatedDatasetsId}/feedbackThreads/{feedbackThreadsId}/feedbackMessages/{feedbackMessagesId}", + // "httpMethod": "DELETE", + // "id": "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.feedbackMessages.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the FeedbackMessage that is going to be deleted. Format: 'projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset_id}/feedbackThreads/{feedback_thread_id}/feedbackMessages/{feedback_message_id}'.", + // "location": "path", + // "pattern": "^projects/[^/]+/datasets/[^/]+/annotatedDatasets/[^/]+/feedbackThreads/[^/]+/feedbackMessages/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.feedbackMessages.get": + +type ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get a FeedbackMessage object. +func (r *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService) Get(name string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall { + c := &ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.feedbackMessages.get" call. +// Exactly one of *GoogleCloudDatalabelingV1beta1FeedbackMessage or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDatalabelingV1beta1FeedbackMessage.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1FeedbackMessage, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDatalabelingV1beta1FeedbackMessage{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Get a FeedbackMessage object.", + // "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/annotatedDatasets/{annotatedDatasetsId}/feedbackThreads/{feedbackThreadsId}/feedbackMessages/{feedbackMessagesId}", + // "httpMethod": "GET", + // "id": "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.feedbackMessages.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the feedback. Format: 'projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset_id}/feedbackThreads/{feedback_thread_id}/feedbackMessages/{feedback_message_id}'.", + // "location": "path", + // "pattern": "^projects/[^/]+/datasets/[^/]+/annotatedDatasets/[^/]+/feedbackThreads/[^/]+/feedbackMessages/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleCloudDatalabelingV1beta1FeedbackMessage" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.feedbackMessages.list": + +type ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List FeedbackMessages with pagination. +func (r *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService) List(parent string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall { + c := &ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. +// Server may return fewer results than requested. Default value is 100. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall) PageSize(pageSize int64) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token +// identifying a page of results for the server to return. Typically +// obtained by ListFeedbackMessages.next_page_token of the previous +// [DataLabelingService.ListFeedbackMessages] call. Return first page if +// empty. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall) PageToken(pageToken string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/feedbackMessages") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.feedbackMessages.list" call. +// Exactly one of +// *GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse.ServerResp +// onse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "List FeedbackMessages with pagination.", + // "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/annotatedDatasets/{annotatedDatasetsId}/feedbackThreads/{feedbackThreadsId}/feedbackMessages", + // "httpMethod": "GET", + // "id": "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.feedbackMessages.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Optional. Requested page size. Server may return fewer results than requested. Default value is 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. A token identifying a page of results for the server to return. Typically obtained by ListFeedbackMessages.next_page_token of the previous [DataLabelingService.ListFeedbackMessages] call. Return first page if empty.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. FeedbackMessage resource parent. Format: \"projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset_id}/feedbackThreads/{feedback_thread_id}\"", + // "location": "path", + // "pattern": "^projects/[^/]+/datasets/[^/]+/annotatedDatasets/[^/]+/feedbackThreads/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/feedbackMessages", + // "response": { + // "$ref": "GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "datalabeling.projects.datasets.dataItems.get": + +type ProjectsDatasetsDataItemsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a data item in a dataset by resource name. This API can be +// called after data are imported into dataset. +func (r *ProjectsDatasetsDataItemsService) Get(name string) *ProjectsDatasetsDataItemsGetCall { + c := &ProjectsDatasetsDataItemsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsDatasetsDataItemsGetCall) Fields(s ...googleapi.Field) *ProjectsDatasetsDataItemsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsDatasetsDataItemsGetCall) IfNoneMatch(entityTag string) *ProjectsDatasetsDataItemsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsDatasetsDataItemsGetCall) Context(ctx context.Context) *ProjectsDatasetsDataItemsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsDatasetsDataItemsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDatasetsDataItemsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.datasets.dataItems.get" call. +// Exactly one of *GoogleCloudDatalabelingV1beta1DataItem or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudDatalabelingV1beta1DataItem.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsDatasetsDataItemsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1DataItem, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDatalabelingV1beta1DataItem{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a data item in a dataset by resource name. This API can be called after data are imported into dataset.", + // "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/dataItems/{dataItemsId}", + // "httpMethod": "GET", + // "id": "datalabeling.projects.datasets.dataItems.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the data item to get, format: projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/datasets/[^/]+/dataItems/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleCloudDatalabelingV1beta1DataItem" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.datasets.dataItems.list": + +type ProjectsDatasetsDataItemsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists data items in a dataset. This API can be called after +// data are imported into dataset. Pagination is supported. +func (r *ProjectsDatasetsDataItemsService) List(parent string) *ProjectsDatasetsDataItemsListCall { + c := &ProjectsDatasetsDataItemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filter is not supported +// at this moment. +func (c *ProjectsDatasetsDataItemsListCall) Filter(filter string) *ProjectsDatasetsDataItemsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. +// Server may return fewer results than requested. Default value is 100. +func (c *ProjectsDatasetsDataItemsListCall) PageSize(pageSize int64) *ProjectsDatasetsDataItemsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token +// identifying a page of results for the server to return. Typically +// obtained by ListDataItemsResponse.next_page_token of the previous +// [DataLabelingService.ListDataItems] call. Return first page if empty. +func (c *ProjectsDatasetsDataItemsListCall) PageToken(pageToken string) *ProjectsDatasetsDataItemsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsDatasetsDataItemsListCall) Fields(s ...googleapi.Field) *ProjectsDatasetsDataItemsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsDatasetsDataItemsListCall) IfNoneMatch(entityTag string) *ProjectsDatasetsDataItemsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsDatasetsDataItemsListCall) Context(ctx context.Context) *ProjectsDatasetsDataItemsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsDatasetsDataItemsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDatasetsDataItemsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dataItems") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.datasets.dataItems.list" call. +// Exactly one of *GoogleCloudDatalabelingV1beta1ListDataItemsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudDatalabelingV1beta1ListDataItemsResponse.ServerResponse.He +// ader or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsDatasetsDataItemsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListDataItemsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDatalabelingV1beta1ListDataItemsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists data items in a dataset. This API can be called after data are imported into dataset. Pagination is supported.", + // "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/dataItems", + // "httpMethod": "GET", + // "id": "datalabeling.projects.datasets.dataItems.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. Filter is not supported at this moment.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. Requested page size. Server may return fewer results than requested. Default value is 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. A token identifying a page of results for the server to return. Typically obtained by ListDataItemsResponse.next_page_token of the previous [DataLabelingService.ListDataItems] call. Return first page if empty.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Name of the dataset to list data items, format: projects/{project_id}/datasets/{dataset_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/datasets/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/dataItems", + // "response": { + // "$ref": "GoogleCloudDatalabelingV1beta1ListDataItemsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsDatasetsDataItemsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListDataItemsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "datalabeling.projects.datasets.evaluations.get": + +type ProjectsDatasetsEvaluationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets an evaluation by resource name (to search, use +// projects.evaluations.search). +func (r *ProjectsDatasetsEvaluationsService) Get(name string) *ProjectsDatasetsEvaluationsGetCall { + c := &ProjectsDatasetsEvaluationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsDatasetsEvaluationsGetCall) Fields(s ...googleapi.Field) *ProjectsDatasetsEvaluationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsDatasetsEvaluationsGetCall) IfNoneMatch(entityTag string) *ProjectsDatasetsEvaluationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsDatasetsEvaluationsGetCall) Context(ctx context.Context) *ProjectsDatasetsEvaluationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsDatasetsEvaluationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDatasetsEvaluationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.datasets.evaluations.get" call. +// Exactly one of *GoogleCloudDatalabelingV1beta1Evaluation or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDatalabelingV1beta1Evaluation.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsDatasetsEvaluationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1Evaluation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDatalabelingV1beta1Evaluation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets an evaluation by resource name (to search, use projects.evaluations.search).", + // "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/evaluations/{evaluationsId}", + // "httpMethod": "GET", + // "id": "datalabeling.projects.datasets.evaluations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the evaluation. Format: \"projects/{project_id}/datasets/ {dataset_id}/evaluations/{evaluation_id}'", + // "location": "path", + // "pattern": "^projects/[^/]+/datasets/[^/]+/evaluations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleCloudDatalabelingV1beta1Evaluation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.datasets.evaluations.exampleComparisons.search": + +type ProjectsDatasetsEvaluationsExampleComparisonsSearchCall struct { + s *Service + parent string + googleclouddatalabelingv1beta1searchexamplecomparisonsrequest *GoogleCloudDatalabelingV1beta1SearchExampleComparisonsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Search: Searches example comparisons from an evaluation. The return +// format is a list of example comparisons that show ground truth and +// prediction(s) for a single input. Search by providing an evaluation +// ID. +func (r *ProjectsDatasetsEvaluationsExampleComparisonsService) Search(parent string, googleclouddatalabelingv1beta1searchexamplecomparisonsrequest *GoogleCloudDatalabelingV1beta1SearchExampleComparisonsRequest) *ProjectsDatasetsEvaluationsExampleComparisonsSearchCall { + c := &ProjectsDatasetsEvaluationsExampleComparisonsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddatalabelingv1beta1searchexamplecomparisonsrequest = googleclouddatalabelingv1beta1searchexamplecomparisonsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsDatasetsEvaluationsExampleComparisonsSearchCall) Fields(s ...googleapi.Field) *ProjectsDatasetsEvaluationsExampleComparisonsSearchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsDatasetsEvaluationsExampleComparisonsSearchCall) Context(ctx context.Context) *ProjectsDatasetsEvaluationsExampleComparisonsSearchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsDatasetsEvaluationsExampleComparisonsSearchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDatasetsEvaluationsExampleComparisonsSearchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1searchexamplecomparisonsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/exampleComparisons:search") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.datasets.evaluations.exampleComparisons.search" call. +// Exactly one of +// *GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse.Server +// Response.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsDatasetsEvaluationsExampleComparisonsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Searches example comparisons from an evaluation. The return format is a list of example comparisons that show ground truth and prediction(s) for a single input. Search by providing an evaluation ID.", + // "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/evaluations/{evaluationsId}/exampleComparisons:search", + // "httpMethod": "POST", + // "id": "datalabeling.projects.datasets.evaluations.exampleComparisons.search", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Name of the Evaluation resource to search for example comparisons from. Format: \"projects/{project_id}/datasets/{dataset_id}/evaluations/ {evaluation_id}\"", + // "location": "path", + // "pattern": "^projects/[^/]+/datasets/[^/]+/evaluations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/exampleComparisons:search", + // "request": { + // "$ref": "GoogleCloudDatalabelingV1beta1SearchExampleComparisonsRequest" + // }, + // "response": { + // "$ref": "GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsDatasetsEvaluationsExampleComparisonsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse) error) error { + c.ctx_ = ctx + defer func(pt string) { c.googleclouddatalabelingv1beta1searchexamplecomparisonsrequest.PageToken = pt }(c.googleclouddatalabelingv1beta1searchexamplecomparisonsrequest.PageToken) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.googleclouddatalabelingv1beta1searchexamplecomparisonsrequest.PageToken = x.NextPageToken + } +} + +// method id "datalabeling.projects.datasets.image.label": + +type ProjectsDatasetsImageLabelCall struct { + s *Service + parent string + googleclouddatalabelingv1beta1labelimagerequest *GoogleCloudDatalabelingV1beta1LabelImageRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Label: Starts a labeling task for image. The type of image labeling +// task is configured by feature in the request. +func (r *ProjectsDatasetsImageService) Label(parent string, googleclouddatalabelingv1beta1labelimagerequest *GoogleCloudDatalabelingV1beta1LabelImageRequest) *ProjectsDatasetsImageLabelCall { + c := &ProjectsDatasetsImageLabelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddatalabelingv1beta1labelimagerequest = googleclouddatalabelingv1beta1labelimagerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsDatasetsImageLabelCall) Fields(s ...googleapi.Field) *ProjectsDatasetsImageLabelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsDatasetsImageLabelCall) Context(ctx context.Context) *ProjectsDatasetsImageLabelCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsDatasetsImageLabelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDatasetsImageLabelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1labelimagerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/image:label") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.datasets.image.label" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsDatasetsImageLabelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Starts a labeling task for image. The type of image labeling task is configured by feature in the request.", + // "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/image:label", + // "httpMethod": "POST", + // "id": "datalabeling.projects.datasets.image.label", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Name of the dataset to request labeling task, format: projects/{project_id}/datasets/{dataset_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/datasets/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/image:label", + // "request": { + // "$ref": "GoogleCloudDatalabelingV1beta1LabelImageRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.datasets.text.label": + +type ProjectsDatasetsTextLabelCall struct { + s *Service + parent string + googleclouddatalabelingv1beta1labeltextrequest *GoogleCloudDatalabelingV1beta1LabelTextRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Label: Starts a labeling task for text. The type of text labeling +// task is configured by feature in the request. +func (r *ProjectsDatasetsTextService) Label(parent string, googleclouddatalabelingv1beta1labeltextrequest *GoogleCloudDatalabelingV1beta1LabelTextRequest) *ProjectsDatasetsTextLabelCall { + c := &ProjectsDatasetsTextLabelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddatalabelingv1beta1labeltextrequest = googleclouddatalabelingv1beta1labeltextrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsDatasetsTextLabelCall) Fields(s ...googleapi.Field) *ProjectsDatasetsTextLabelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsDatasetsTextLabelCall) Context(ctx context.Context) *ProjectsDatasetsTextLabelCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsDatasetsTextLabelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDatasetsTextLabelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1labeltextrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/text:label") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.datasets.text.label" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsDatasetsTextLabelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Starts a labeling task for text. The type of text labeling task is configured by feature in the request.", + // "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/text:label", + // "httpMethod": "POST", + // "id": "datalabeling.projects.datasets.text.label", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Name of the data set to request labeling task, format: projects/{project_id}/datasets/{dataset_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/datasets/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/text:label", + // "request": { + // "$ref": "GoogleCloudDatalabelingV1beta1LabelTextRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.datasets.video.label": + +type ProjectsDatasetsVideoLabelCall struct { + s *Service + parent string + googleclouddatalabelingv1beta1labelvideorequest *GoogleCloudDatalabelingV1beta1LabelVideoRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Label: Starts a labeling task for video. The type of video labeling +// task is configured by feature in the request. +func (r *ProjectsDatasetsVideoService) Label(parent string, googleclouddatalabelingv1beta1labelvideorequest *GoogleCloudDatalabelingV1beta1LabelVideoRequest) *ProjectsDatasetsVideoLabelCall { + c := &ProjectsDatasetsVideoLabelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddatalabelingv1beta1labelvideorequest = googleclouddatalabelingv1beta1labelvideorequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsDatasetsVideoLabelCall) Fields(s ...googleapi.Field) *ProjectsDatasetsVideoLabelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsDatasetsVideoLabelCall) Context(ctx context.Context) *ProjectsDatasetsVideoLabelCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsDatasetsVideoLabelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDatasetsVideoLabelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1labelvideorequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/video:label") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.datasets.video.label" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsDatasetsVideoLabelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Starts a labeling task for video. The type of video labeling task is configured by feature in the request.", + // "flatPath": "v1beta1/projects/{projectsId}/datasets/{datasetsId}/video:label", + // "httpMethod": "POST", + // "id": "datalabeling.projects.datasets.video.label", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Name of the dataset to request labeling task, format: projects/{project_id}/datasets/{dataset_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/datasets/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/video:label", + // "request": { + // "$ref": "GoogleCloudDatalabelingV1beta1LabelVideoRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.evaluationJobs.create": + +type ProjectsEvaluationJobsCreateCall struct { + s *Service + parent string + googleclouddatalabelingv1beta1createevaluationjobrequest *GoogleCloudDatalabelingV1beta1CreateEvaluationJobRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates an evaluation job. +func (r *ProjectsEvaluationJobsService) Create(parent string, googleclouddatalabelingv1beta1createevaluationjobrequest *GoogleCloudDatalabelingV1beta1CreateEvaluationJobRequest) *ProjectsEvaluationJobsCreateCall { + c := &ProjectsEvaluationJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddatalabelingv1beta1createevaluationjobrequest = googleclouddatalabelingv1beta1createevaluationjobrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsEvaluationJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsEvaluationJobsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsEvaluationJobsCreateCall) Context(ctx context.Context) *ProjectsEvaluationJobsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsEvaluationJobsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsEvaluationJobsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1createevaluationjobrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/evaluationJobs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.evaluationJobs.create" call. +// Exactly one of *GoogleCloudDatalabelingV1beta1EvaluationJob or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDatalabelingV1beta1EvaluationJob.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsEvaluationJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1EvaluationJob, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDatalabelingV1beta1EvaluationJob{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates an evaluation job.", + // "flatPath": "v1beta1/projects/{projectsId}/evaluationJobs", + // "httpMethod": "POST", + // "id": "datalabeling.projects.evaluationJobs.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Evaluation job resource parent. Format: \"projects/{project_id}\"", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/evaluationJobs", + // "request": { + // "$ref": "GoogleCloudDatalabelingV1beta1CreateEvaluationJobRequest" + // }, + // "response": { + // "$ref": "GoogleCloudDatalabelingV1beta1EvaluationJob" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.evaluationJobs.delete": + +type ProjectsEvaluationJobsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Stops and deletes an evaluation job. +func (r *ProjectsEvaluationJobsService) Delete(name string) *ProjectsEvaluationJobsDeleteCall { + c := &ProjectsEvaluationJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsEvaluationJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsEvaluationJobsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsEvaluationJobsDeleteCall) Context(ctx context.Context) *ProjectsEvaluationJobsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsEvaluationJobsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsEvaluationJobsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.evaluationJobs.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsEvaluationJobsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Stops and deletes an evaluation job.", + // "flatPath": "v1beta1/projects/{projectsId}/evaluationJobs/{evaluationJobsId}", + // "httpMethod": "DELETE", + // "id": "datalabeling.projects.evaluationJobs.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the evaluation job that is going to be deleted. Format: \"projects/{project_id}/evaluationJobs/{evaluation_job_id}\"", + // "location": "path", + // "pattern": "^projects/[^/]+/evaluationJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.evaluationJobs.get": + +type ProjectsEvaluationJobsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets an evaluation job by resource name. +func (r *ProjectsEvaluationJobsService) Get(name string) *ProjectsEvaluationJobsGetCall { + c := &ProjectsEvaluationJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsEvaluationJobsGetCall) Fields(s ...googleapi.Field) *ProjectsEvaluationJobsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsEvaluationJobsGetCall) IfNoneMatch(entityTag string) *ProjectsEvaluationJobsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsEvaluationJobsGetCall) Context(ctx context.Context) *ProjectsEvaluationJobsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsEvaluationJobsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsEvaluationJobsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.evaluationJobs.get" call. +// Exactly one of *GoogleCloudDatalabelingV1beta1EvaluationJob or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDatalabelingV1beta1EvaluationJob.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsEvaluationJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1EvaluationJob, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDatalabelingV1beta1EvaluationJob{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets an evaluation job by resource name.", + // "flatPath": "v1beta1/projects/{projectsId}/evaluationJobs/{evaluationJobsId}", + // "httpMethod": "GET", + // "id": "datalabeling.projects.evaluationJobs.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the evaluation job. Format: \"projects/{project_id} /evaluationJobs/{evaluation_job_id}\"", + // "location": "path", + // "pattern": "^projects/[^/]+/evaluationJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleCloudDatalabelingV1beta1EvaluationJob" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.evaluationJobs.list": + +type ProjectsEvaluationJobsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all evaluation jobs within a project with possible +// filters. Pagination is supported. +func (r *ProjectsEvaluationJobsService) List(parent string) *ProjectsEvaluationJobsListCall { + c := &ProjectsEvaluationJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": You can filter the jobs +// to list by model_id (also known as model_name, as described in +// EvaluationJob.modelVersion) or by evaluation job state (as described +// in EvaluationJob.state). To filter by both criteria, use the `AND` +// operator or the `OR` operator. For example, you can use the following +// string for your filter: "evaluation_job.model_id = {model_name} AND +// evaluation_job.state = {evaluation_job_state}" +func (c *ProjectsEvaluationJobsListCall) Filter(filter string) *ProjectsEvaluationJobsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. +// Server may return fewer results than requested. Default value is 100. +func (c *ProjectsEvaluationJobsListCall) PageSize(pageSize int64) *ProjectsEvaluationJobsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token +// identifying a page of results for the server to return. Typically +// obtained by the nextPageToken in the response to the previous +// request. The request returns the first page if this is empty. +func (c *ProjectsEvaluationJobsListCall) PageToken(pageToken string) *ProjectsEvaluationJobsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsEvaluationJobsListCall) Fields(s ...googleapi.Field) *ProjectsEvaluationJobsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsEvaluationJobsListCall) IfNoneMatch(entityTag string) *ProjectsEvaluationJobsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsEvaluationJobsListCall) Context(ctx context.Context) *ProjectsEvaluationJobsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsEvaluationJobsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsEvaluationJobsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/evaluationJobs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.evaluationJobs.list" call. +// Exactly one of +// *GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse.ServerRespon +// se.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsEvaluationJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists all evaluation jobs within a project with possible filters. Pagination is supported.", + // "flatPath": "v1beta1/projects/{projectsId}/evaluationJobs", + // "httpMethod": "GET", + // "id": "datalabeling.projects.evaluationJobs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. You can filter the jobs to list by model_id (also known as model_name, as described in EvaluationJob.modelVersion) or by evaluation job state (as described in EvaluationJob.state). To filter by both criteria, use the `AND` operator or the `OR` operator. For example, you can use the following string for your filter: \"evaluation_job.model_id = {model_name} AND evaluation_job.state = {evaluation_job_state}\"", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. Requested page size. Server may return fewer results than requested. Default value is 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. A token identifying a page of results for the server to return. Typically obtained by the nextPageToken in the response to the previous request. The request returns the first page if this is empty.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Evaluation job resource parent. Format: \"projects/{project_id}\"", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/evaluationJobs", + // "response": { + // "$ref": "GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsEvaluationJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "datalabeling.projects.evaluationJobs.patch": + +type ProjectsEvaluationJobsPatchCall struct { + s *Service + name string + googleclouddatalabelingv1beta1evaluationjob *GoogleCloudDatalabelingV1beta1EvaluationJob + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates an evaluation job. You can only update certain fields +// of the job's EvaluationJobConfig: +// `humanAnnotationConfig.instruction`, `exampleCount`, and +// `exampleSamplePercentage`. If you want to change any other aspect of +// the evaluation job, you must delete the job and create a new one. +func (r *ProjectsEvaluationJobsService) Patch(name string, googleclouddatalabelingv1beta1evaluationjob *GoogleCloudDatalabelingV1beta1EvaluationJob) *ProjectsEvaluationJobsPatchCall { + c := &ProjectsEvaluationJobsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleclouddatalabelingv1beta1evaluationjob = googleclouddatalabelingv1beta1evaluationjob + return c +} + +// UpdateMask sets the optional parameter "updateMask": Mask for which +// fields to update. You can only provide the following fields: * +// `evaluationJobConfig.humanAnnotationConfig.instruction` * +// `evaluationJobConfig.exampleCount` * +// `evaluationJobConfig.exampleSamplePercentage` You can provide more +// than one of these fields by separating them with commas. +func (c *ProjectsEvaluationJobsPatchCall) UpdateMask(updateMask string) *ProjectsEvaluationJobsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsEvaluationJobsPatchCall) Fields(s ...googleapi.Field) *ProjectsEvaluationJobsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsEvaluationJobsPatchCall) Context(ctx context.Context) *ProjectsEvaluationJobsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsEvaluationJobsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsEvaluationJobsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1evaluationjob) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.evaluationJobs.patch" call. +// Exactly one of *GoogleCloudDatalabelingV1beta1EvaluationJob or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDatalabelingV1beta1EvaluationJob.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsEvaluationJobsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1EvaluationJob, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDatalabelingV1beta1EvaluationJob{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates an evaluation job. You can only update certain fields of the job's EvaluationJobConfig: `humanAnnotationConfig.instruction`, `exampleCount`, and `exampleSamplePercentage`. If you want to change any other aspect of the evaluation job, you must delete the job and create a new one.", + // "flatPath": "v1beta1/projects/{projectsId}/evaluationJobs/{evaluationJobsId}", + // "httpMethod": "PATCH", + // "id": "datalabeling.projects.evaluationJobs.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. After you create a job, Data Labeling Service assigns a name to the job with the following format: \"projects/{project_id}/evaluationJobs/ {evaluation_job_id}\"", + // "location": "path", + // "pattern": "^projects/[^/]+/evaluationJobs/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Optional. Mask for which fields to update. You can only provide the following fields: * `evaluationJobConfig.humanAnnotationConfig.instruction` * `evaluationJobConfig.exampleCount` * `evaluationJobConfig.exampleSamplePercentage` You can provide more than one of these fields by separating them with commas.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "GoogleCloudDatalabelingV1beta1EvaluationJob" + // }, + // "response": { + // "$ref": "GoogleCloudDatalabelingV1beta1EvaluationJob" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.evaluationJobs.pause": + +type ProjectsEvaluationJobsPauseCall struct { + s *Service + name string + googleclouddatalabelingv1beta1pauseevaluationjobrequest *GoogleCloudDatalabelingV1beta1PauseEvaluationJobRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Pause: Pauses an evaluation job. Pausing an evaluation job that is +// already in a `PAUSED` state is a no-op. +func (r *ProjectsEvaluationJobsService) Pause(name string, googleclouddatalabelingv1beta1pauseevaluationjobrequest *GoogleCloudDatalabelingV1beta1PauseEvaluationJobRequest) *ProjectsEvaluationJobsPauseCall { + c := &ProjectsEvaluationJobsPauseCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleclouddatalabelingv1beta1pauseevaluationjobrequest = googleclouddatalabelingv1beta1pauseevaluationjobrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsEvaluationJobsPauseCall) Fields(s ...googleapi.Field) *ProjectsEvaluationJobsPauseCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsEvaluationJobsPauseCall) Context(ctx context.Context) *ProjectsEvaluationJobsPauseCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsEvaluationJobsPauseCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsEvaluationJobsPauseCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1pauseevaluationjobrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:pause") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.evaluationJobs.pause" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsEvaluationJobsPauseCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Pauses an evaluation job. Pausing an evaluation job that is already in a `PAUSED` state is a no-op.", + // "flatPath": "v1beta1/projects/{projectsId}/evaluationJobs/{evaluationJobsId}:pause", + // "httpMethod": "POST", + // "id": "datalabeling.projects.evaluationJobs.pause", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the evaluation job that is going to be paused. Format: \"projects/{project_id}/evaluationJobs/{evaluation_job_id}\"", + // "location": "path", + // "pattern": "^projects/[^/]+/evaluationJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:pause", + // "request": { + // "$ref": "GoogleCloudDatalabelingV1beta1PauseEvaluationJobRequest" + // }, + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.evaluationJobs.resume": + +type ProjectsEvaluationJobsResumeCall struct { + s *Service + name string + googleclouddatalabelingv1beta1resumeevaluationjobrequest *GoogleCloudDatalabelingV1beta1ResumeEvaluationJobRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Resume: Resumes a paused evaluation job. A deleted evaluation job +// can't be resumed. Resuming a running or scheduled evaluation job is a +// no-op. +func (r *ProjectsEvaluationJobsService) Resume(name string, googleclouddatalabelingv1beta1resumeevaluationjobrequest *GoogleCloudDatalabelingV1beta1ResumeEvaluationJobRequest) *ProjectsEvaluationJobsResumeCall { + c := &ProjectsEvaluationJobsResumeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleclouddatalabelingv1beta1resumeevaluationjobrequest = googleclouddatalabelingv1beta1resumeevaluationjobrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsEvaluationJobsResumeCall) Fields(s ...googleapi.Field) *ProjectsEvaluationJobsResumeCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsEvaluationJobsResumeCall) Context(ctx context.Context) *ProjectsEvaluationJobsResumeCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsEvaluationJobsResumeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsEvaluationJobsResumeCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1resumeevaluationjobrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:resume") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.evaluationJobs.resume" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsEvaluationJobsResumeCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Resumes a paused evaluation job. A deleted evaluation job can't be resumed. Resuming a running or scheduled evaluation job is a no-op.", + // "flatPath": "v1beta1/projects/{projectsId}/evaluationJobs/{evaluationJobsId}:resume", + // "httpMethod": "POST", + // "id": "datalabeling.projects.evaluationJobs.resume", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the evaluation job that is going to be resumed. Format: \"projects/{project_id}/evaluationJobs/{evaluation_job_id}\"", + // "location": "path", + // "pattern": "^projects/[^/]+/evaluationJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:resume", + // "request": { + // "$ref": "GoogleCloudDatalabelingV1beta1ResumeEvaluationJobRequest" + // }, + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.evaluations.search": + +type ProjectsEvaluationsSearchCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Search: Searches evaluations within a project. +func (r *ProjectsEvaluationsService) Search(parent string) *ProjectsEvaluationsSearchCall { + c := &ProjectsEvaluationsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": To search evaluations, +// you can filter by the following: * evaluation_job.evaluation_job_id +// (the last part of EvaluationJob.name) * evaluation_job.model_id (the +// {model_name} portion of EvaluationJob.modelVersion) * +// evaluation_job.evaluation_job_run_time_start (Minimum threshold for +// the evaluationJobRunTime that created the evaluation) * +// evaluation_job.evaluation_job_run_time_end (Maximum threshold for the +// evaluationJobRunTime that created the evaluation) * +// evaluation_job.job_state (EvaluationJob.state) * +// annotation_spec.display_name (the Evaluation contains a metric for +// the annotation spec with this displayName) To filter by multiple +// critiera, use the `AND` operator or the `OR` operator. The following +// examples shows a string that filters by several critiera: +// "evaluation_job.evaluation_job_id = {evaluation_job_id} AND +// evaluation_job.model_id = {model_name} AND +// evaluation_job.evaluation_job_run_time_start = {timestamp_1} AND +// evaluation_job.evaluation_job_run_time_end = {timestamp_2} AND +// annotation_spec.display_name = {display_name}" +func (c *ProjectsEvaluationsSearchCall) Filter(filter string) *ProjectsEvaluationsSearchCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. +// Server may return fewer results than requested. Default value is 100. +func (c *ProjectsEvaluationsSearchCall) PageSize(pageSize int64) *ProjectsEvaluationsSearchCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token +// identifying a page of results for the server to return. Typically +// obtained by the nextPageToken of the response to a previous search +// request. If you don't specify this field, the API call requests the +// first page of the search. +func (c *ProjectsEvaluationsSearchCall) PageToken(pageToken string) *ProjectsEvaluationsSearchCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsEvaluationsSearchCall) Fields(s ...googleapi.Field) *ProjectsEvaluationsSearchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsEvaluationsSearchCall) IfNoneMatch(entityTag string) *ProjectsEvaluationsSearchCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsEvaluationsSearchCall) Context(ctx context.Context) *ProjectsEvaluationsSearchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsEvaluationsSearchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsEvaluationsSearchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/evaluations:search") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.evaluations.search" call. +// Exactly one of +// *GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse.ServerRespons +// e.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsEvaluationsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Searches evaluations within a project.", + // "flatPath": "v1beta1/projects/{projectsId}/evaluations:search", + // "httpMethod": "GET", + // "id": "datalabeling.projects.evaluations.search", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. To search evaluations, you can filter by the following: * evaluation_job.evaluation_job_id (the last part of EvaluationJob.name) * evaluation_job.model_id (the {model_name} portion of EvaluationJob.modelVersion) * evaluation_job.evaluation_job_run_time_start (Minimum threshold for the evaluationJobRunTime that created the evaluation) * evaluation_job.evaluation_job_run_time_end (Maximum threshold for the evaluationJobRunTime that created the evaluation) * evaluation_job.job_state (EvaluationJob.state) * annotation_spec.display_name (the Evaluation contains a metric for the annotation spec with this displayName) To filter by multiple critiera, use the `AND` operator or the `OR` operator. The following examples shows a string that filters by several critiera: \"evaluation_job.evaluation_job_id = {evaluation_job_id} AND evaluation_job.model_id = {model_name} AND evaluation_job.evaluation_job_run_time_start = {timestamp_1} AND evaluation_job.evaluation_job_run_time_end = {timestamp_2} AND annotation_spec.display_name = {display_name}\"", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. Requested page size. Server may return fewer results than requested. Default value is 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. A token identifying a page of results for the server to return. Typically obtained by the nextPageToken of the response to a previous search request. If you don't specify this field, the API call requests the first page of the search.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Evaluation search parent (project ID). Format: \"projects/ {project_id}\"", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/evaluations:search", + // "response": { + // "$ref": "GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsEvaluationsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "datalabeling.projects.instructions.create": + +type ProjectsInstructionsCreateCall struct { + s *Service + parent string + googleclouddatalabelingv1beta1createinstructionrequest *GoogleCloudDatalabelingV1beta1CreateInstructionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates an instruction for how data should be labeled. +func (r *ProjectsInstructionsService) Create(parent string, googleclouddatalabelingv1beta1createinstructionrequest *GoogleCloudDatalabelingV1beta1CreateInstructionRequest) *ProjectsInstructionsCreateCall { + c := &ProjectsInstructionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddatalabelingv1beta1createinstructionrequest = googleclouddatalabelingv1beta1createinstructionrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsInstructionsCreateCall) Fields(s ...googleapi.Field) *ProjectsInstructionsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsInstructionsCreateCall) Context(ctx context.Context) *ProjectsInstructionsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsInstructionsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsInstructionsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1createinstructionrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/instructions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.instructions.create" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsInstructionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates an instruction for how data should be labeled.", + // "flatPath": "v1beta1/projects/{projectsId}/instructions", + // "httpMethod": "POST", + // "id": "datalabeling.projects.instructions.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Instruction resource parent, format: projects/{project_id}", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/instructions", + // "request": { + // "$ref": "GoogleCloudDatalabelingV1beta1CreateInstructionRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.instructions.delete": + +type ProjectsInstructionsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes an instruction object by resource name. +func (r *ProjectsInstructionsService) Delete(name string) *ProjectsInstructionsDeleteCall { + c := &ProjectsInstructionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsInstructionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsInstructionsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsInstructionsDeleteCall) Context(ctx context.Context) *ProjectsInstructionsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsInstructionsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsInstructionsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.instructions.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsInstructionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes an instruction object by resource name.", + // "flatPath": "v1beta1/projects/{projectsId}/instructions/{instructionsId}", + // "httpMethod": "DELETE", + // "id": "datalabeling.projects.instructions.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Instruction resource name, format: projects/{project_id}/instructions/{instruction_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/instructions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.instructions.get": + +type ProjectsInstructionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets an instruction by resource name. +func (r *ProjectsInstructionsService) Get(name string) *ProjectsInstructionsGetCall { + c := &ProjectsInstructionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsInstructionsGetCall) Fields(s ...googleapi.Field) *ProjectsInstructionsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsInstructionsGetCall) IfNoneMatch(entityTag string) *ProjectsInstructionsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsInstructionsGetCall) Context(ctx context.Context) *ProjectsInstructionsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsInstructionsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsInstructionsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.instructions.get" call. +// Exactly one of *GoogleCloudDatalabelingV1beta1Instruction or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDatalabelingV1beta1Instruction.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsInstructionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1Instruction, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDatalabelingV1beta1Instruction{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets an instruction by resource name.", + // "flatPath": "v1beta1/projects/{projectsId}/instructions/{instructionsId}", + // "httpMethod": "GET", + // "id": "datalabeling.projects.instructions.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Instruction resource name, format: projects/{project_id}/instructions/{instruction_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/instructions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleCloudDatalabelingV1beta1Instruction" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.instructions.list": + +type ProjectsInstructionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists instructions for a project. Pagination is supported. +func (r *ProjectsInstructionsService) List(parent string) *ProjectsInstructionsListCall { + c := &ProjectsInstructionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filter is not supported +// at this moment. +func (c *ProjectsInstructionsListCall) Filter(filter string) *ProjectsInstructionsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. +// Server may return fewer results than requested. Default value is 100. +func (c *ProjectsInstructionsListCall) PageSize(pageSize int64) *ProjectsInstructionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token +// identifying a page of results for the server to return. Typically +// obtained by ListInstructionsResponse.next_page_token of the previous +// [DataLabelingService.ListInstructions] call. Return first page if +// empty. +func (c *ProjectsInstructionsListCall) PageToken(pageToken string) *ProjectsInstructionsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsInstructionsListCall) Fields(s ...googleapi.Field) *ProjectsInstructionsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsInstructionsListCall) IfNoneMatch(entityTag string) *ProjectsInstructionsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsInstructionsListCall) Context(ctx context.Context) *ProjectsInstructionsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsInstructionsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsInstructionsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/instructions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.instructions.list" call. +// Exactly one of +// *GoogleCloudDatalabelingV1beta1ListInstructionsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudDatalabelingV1beta1ListInstructionsResponse.ServerResponse +// .Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsInstructionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListInstructionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDatalabelingV1beta1ListInstructionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists instructions for a project. Pagination is supported.", + // "flatPath": "v1beta1/projects/{projectsId}/instructions", + // "httpMethod": "GET", + // "id": "datalabeling.projects.instructions.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. Filter is not supported at this moment.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. Requested page size. Server may return fewer results than requested. Default value is 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. A token identifying a page of results for the server to return. Typically obtained by ListInstructionsResponse.next_page_token of the previous [DataLabelingService.ListInstructions] call. Return first page if empty.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Instruction resource parent, format: projects/{project_id}", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/instructions", + // "response": { + // "$ref": "GoogleCloudDatalabelingV1beta1ListInstructionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsInstructionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListInstructionsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "datalabeling.projects.operations.cancel": + +type ProjectsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. +func (r *ProjectsOperationsService) Cancel(name string) *ProjectsOperationsCancelCall { + c := &ProjectsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsOperationsCancelCall) IfNoneMatch(entityTag string) *ProjectsOperationsCancelCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsOperationsCancelCall) Context(ctx context.Context) *ProjectsOperationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.operations.cancel" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + // "flatPath": "v1beta1/projects/{projectsId}/operations/{operationsId}:cancel", + // "httpMethod": "GET", + // "id": "datalabeling.projects.operations.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be cancelled.", + // "location": "path", + // "pattern": "^projects/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:cancel", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.operations.delete": + +type ProjectsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a long-running operation. This method indicates that +// the client is no longer interested in the operation result. It does +// not cancel the operation. If the server doesn't support this method, +// it returns `google.rpc.Code.UNIMPLEMENTED`. +func (r *ProjectsOperationsService) Delete(name string) *ProjectsOperationsDeleteCall { + c := &ProjectsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsOperationsDeleteCall) Context(ctx context.Context) *ProjectsOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.operations.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + // "flatPath": "v1beta1/projects/{projectsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "datalabeling.projects.operations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be deleted.", + // "location": "path", + // "pattern": "^projects/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.operations.get": + +type ProjectsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall { + c := &ProjectsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.operations.get" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1beta1/projects/{projectsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "datalabeling.projects.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalabeling.projects.operations.list": + +type ProjectsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to +// override the binding to use different resource name schemes, such as +// `users/*/operations`. To override the binding, API services can add a +// binding such as "/v1/{name=users/*}/operations" to their service +// configuration. For backwards compatibility, the default name includes +// the operations collection id, however overriding users must ensure +// the name binding is the parent resource, without the operations +// collection id. +func (r *ProjectsOperationsService) List(name string) *ProjectsOperationsListCall { + c := &ProjectsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsOperationsListCall) Filter(filter string) *ProjectsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsOperationsListCall) PageSize(pageSize int64) *ProjectsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsOperationsListCall) PageToken(pageToken string) *ProjectsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsOperationsListCall) Context(ctx context.Context) *ProjectsOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalabeling.projects.operations.list" call. +// Exactly one of *GoogleLongrunningListOperationsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleLongrunningListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "flatPath": "v1beta1/projects/{projectsId}/operations", + // "httpMethod": "GET", + // "id": "datalabeling.projects.operations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}/operations", + // "response": { + // "$ref": "GoogleLongrunningListOperationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} diff --git a/datamigration/v1beta1/datamigration-api.json b/datamigration/v1beta1/datamigration-api.json new file mode 100644 index 00000000000..89e22d72a91 --- /dev/null +++ b/datamigration/v1beta1/datamigration-api.json @@ -0,0 +1,2181 @@ +{ + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/cloud-platform": { + "description": "View and manage your data across Google Cloud Platform services" + } + } + } + }, + "basePath": "", + "baseUrl": "https://datamigration.googleapis.com/", + "batchPath": "batch", + "canonicalName": "Cloud Database Migration Service", + "description": "Manage Cloud Database Migration Service resources on Google Cloud Platform.", + "discoveryVersion": "v1", + "documentationLink": "https://cloud.google.com/datamigration/", + "fullyEncodeReservedExpansion": true, + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "id": "datamigration:v1beta1", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://datamigration.mtls.googleapis.com/", + "name": "datamigration", + "ownerDomain": "google.com", + "ownerName": "Google", + "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, + "alt": { + "default": "json", + "description": "Data format for response.", + "enum": [ + "json", + "media", + "proto" + ], + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query", + "type": "string" + }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, + "fields": { + "description": "Selector specifying which fields to include in a partial response.", + "location": "query", + "type": "string" + }, + "key": { + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "location": "query", + "type": "string" + }, + "oauth_token": { + "description": "OAuth 2.0 token for the current user.", + "location": "query", + "type": "string" + }, + "prettyPrint": { + "default": "true", + "description": "Returns response with indentations and line breaks.", + "location": "query", + "type": "boolean" + }, + "quotaUser": { + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query", + "type": "string" + }, + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query", + "type": "string" + } + }, + "protocol": "rest", + "resources": { + "projects": { + "resources": { + "locations": { + "methods": { + "get": { + "description": "Gets information about a location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}", + "httpMethod": "GET", + "id": "datamigration.projects.locations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Resource name for the location.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Location" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists information about the supported locations for this service.", + "flatPath": "v1beta1/projects/{projectsId}/locations", + "httpMethod": "GET", + "id": "datamigration.projects.locations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The resource that owns the locations collection, if applicable.", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}/locations", + "response": { + "$ref": "ListLocationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "connectionProfiles": { + "methods": { + "create": { + "description": "Creates a new connection profile in a given project and location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/connectionProfiles", + "httpMethod": "POST", + "id": "datamigration.projects.locations.connectionProfiles.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "connectionProfileId": { + "description": "Required. The connection profile identifier.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent, which owns this collection of connection profiles.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+parent}/connectionProfiles", + "request": { + "$ref": "ConnectionProfile" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single Database Migration Service connection profile. A connection profile can only be deleted if it is not in use by any active migration jobs.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/connectionProfiles/{connectionProfilesId}", + "httpMethod": "DELETE", + "id": "datamigration.projects.locations.connectionProfiles.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "force": { + "description": "In case of force delete, the CloudSQL replica database is also deleted (only for CloudSQL connection profile).", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. Name of the connection profile resource to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/connectionProfiles/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single connection profile.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/connectionProfiles/{connectionProfilesId}", + "httpMethod": "GET", + "id": "datamigration.projects.locations.connectionProfiles.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the connection profile resource to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/connectionProfiles/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "ConnectionProfile" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/connectionProfiles/{connectionProfilesId}:getIamPolicy", + "httpMethod": "GET", + "id": "datamigration.projects.locations.connectionProfiles.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/connectionProfiles/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:getIamPolicy", + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Retrieve a list of all connection profiles in a given project and location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/connectionProfiles", + "httpMethod": "GET", + "id": "datamigration.projects.locations.connectionProfiles.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "A filter expression that filters connection profiles listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, \u003e, or \u003c. For example, list connection profiles created this year by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z**. You can also filter nested fields. For example, you could specify **mySql.username = %lt;my_username%gt;** to list all connection profiles configured to connect with a specific username.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "the order by fields for the result.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of connection profiles to return. The service may return fewer than this value. If unspecified, at most 50 connection profiles will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListConnectionProfiles` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListConnectionProfiles` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent, which owns this collection of connection profiles.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/connectionProfiles", + "response": { + "$ref": "ListConnectionProfilesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Update the configuration of a single connection profile.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/connectionProfiles/{connectionProfilesId}", + "httpMethod": "PATCH", + "id": "datamigration.projects.locations.connectionProfiles.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of this connection profile resource in the form of projects/{project}/locations/{location}/instances/{instance}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/connectionProfiles/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Required. Field mask is used to specify the fields to be overwritten in the connection profile resource by the update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "request": { + "$ref": "ConnectionProfile" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/connectionProfiles/{connectionProfilesId}:setIamPolicy", + "httpMethod": "POST", + "id": "datamigration.projects.locations.connectionProfiles.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/connectionProfiles/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/connectionProfiles/{connectionProfilesId}:testIamPermissions", + "httpMethod": "POST", + "id": "datamigration.projects.locations.connectionProfiles.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/connectionProfiles/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "migrationJobs": { + "methods": { + "create": { + "description": "Creates a new migration job in a given project and location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs", + "httpMethod": "POST", + "id": "datamigration.projects.locations.migrationJobs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "migrationJobId": { + "description": "Required. The ID of the instance to create.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent, which owns this collection of migration jobs.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+parent}/migrationJobs", + "request": { + "$ref": "MigrationJob" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single migration job.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}", + "httpMethod": "DELETE", + "id": "datamigration.projects.locations.migrationJobs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "force": { + "description": "The destination CloudSQL connection profile is always deleted with the migration job. In case of force delete, the destination CloudSQL replica database is also deleted.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. Name of the migration job resource to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "generateSshScript": { + "description": "Generate a SSH configuration script to configure the reverse SSH connectivity.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:generateSshScript", + "httpMethod": "POST", + "id": "datamigration.projects.locations.migrationJobs.generateSshScript", + "parameterOrder": [ + "migrationJob" + ], + "parameters": { + "migrationJob": { + "description": "Name of the migration job resource to generate the SSH script.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+migrationJob}:generateSshScript", + "request": { + "$ref": "GenerateSshScriptRequest" + }, + "response": { + "$ref": "SshScript" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single migration job.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}", + "httpMethod": "GET", + "id": "datamigration.projects.locations.migrationJobs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the migration job resource to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "MigrationJob" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:getIamPolicy", + "httpMethod": "GET", + "id": "datamigration.projects.locations.migrationJobs.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:getIamPolicy", + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists migration jobs in a given project and location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs", + "httpMethod": "GET", + "id": "datamigration.projects.locations.migrationJobs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "A filter expression that filters migration jobs listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, \u003e, or \u003c. For example, list migration jobs created this year by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z.** You can also filter nested fields. For example, you could specify **reverseSshConnectivity.vmIp = \"1.2.3.4\"** to select all migration jobs connecting through the specific SSH tunnel bastion.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Sort the results based on the migration job name. Valid values are: \"name\", \"name asc\", and \"name desc\".", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of migration jobs to return. The service may return fewer than this value. If unspecified, at most 50 migration jobs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The nextPageToken value received in the previous call to migrationJobs.list, used in the subsequent request to retrieve the next page of results. On first call this should be left blank. When paginating, all other parameters provided to migrationJobs.list must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent, which owns this collection of migrationJobs.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/migrationJobs", + "response": { + "$ref": "ListMigrationJobsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the parameters of a single migration job.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}", + "httpMethod": "PATCH", + "id": "datamigration.projects.locations.migrationJobs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name (URI) of this migration job resource, in the form of: projects/{project}/locations/{location}/instances/{instance}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Required. Field mask is used to specify the fields to be overwritten in the migration job resource by the update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "request": { + "$ref": "MigrationJob" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "promote": { + "description": "Promote a migration job, stopping replication to the destination and promoting the destination to be a standalone database.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:promote", + "httpMethod": "POST", + "id": "datamigration.projects.locations.migrationJobs.promote", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Name of the migration job resource to promote.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:promote", + "request": { + "$ref": "PromoteMigrationJobRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "restart": { + "description": "Restart a stopped or failed migration job, resetting the destination instance to its original state and starting the migration process from scratch.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:restart", + "httpMethod": "POST", + "id": "datamigration.projects.locations.migrationJobs.restart", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Name of the migration job resource to restart.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:restart", + "request": { + "$ref": "RestartMigrationJobRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "resume": { + "description": "Resume a migration job that is currently stopped and is resumable (was stopped during CDC phase).", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:resume", + "httpMethod": "POST", + "id": "datamigration.projects.locations.migrationJobs.resume", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Name of the migration job resource to resume.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:resume", + "request": { + "$ref": "ResumeMigrationJobRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:setIamPolicy", + "httpMethod": "POST", + "id": "datamigration.projects.locations.migrationJobs.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "start": { + "description": "Start an already created migration job.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:start", + "httpMethod": "POST", + "id": "datamigration.projects.locations.migrationJobs.start", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Name of the migration job resource to start.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:start", + "request": { + "$ref": "StartMigrationJobRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "stop": { + "description": "Stops a running migration job.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:stop", + "httpMethod": "POST", + "id": "datamigration.projects.locations.migrationJobs.stop", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Name of the migration job resource to stop.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:stop", + "request": { + "$ref": "StopMigrationJobRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:testIamPermissions", + "httpMethod": "POST", + "id": "datamigration.projects.locations.migrationJobs.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "verify": { + "description": "Verify a migration job, making sure the destination can reach the source and that all configuration and prerequisites are met.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:verify", + "httpMethod": "POST", + "id": "datamigration.projects.locations.migrationJobs.verify", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Name of the migration job resource to verify.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:verify", + "request": { + "$ref": "VerifyMigrationJobRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "datamigration.projects.locations.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:cancel", + "request": { + "$ref": "CancelOperationRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "datamigration.projects.locations.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "datamigration.projects.locations.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations", + "httpMethod": "GET", + "id": "datamigration.projects.locations.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}/operations", + "response": { + "$ref": "ListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + } + }, + "revision": "20201028", + "rootUrl": "https://datamigration.googleapis.com/", + "schemas": { + "AuditConfig": { + "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.", + "id": "AuditConfig", + "properties": { + "auditLogConfigs": { + "description": "The configuration for logging of each type of permission.", + "items": { + "$ref": "AuditLogConfig" + }, + "type": "array" + }, + "service": { + "description": "Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.", + "type": "string" + } + }, + "type": "object" + }, + "AuditLogConfig": { + "description": "Provides the configuration for logging a type of permissions. Example: { \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.", + "id": "AuditLogConfig", + "properties": { + "exemptedMembers": { + "description": "Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.", + "items": { + "type": "string" + }, + "type": "array" + }, + "logType": { + "description": "The log type that this config enables.", + "enum": [ + "LOG_TYPE_UNSPECIFIED", + "ADMIN_READ", + "DATA_WRITE", + "DATA_READ" + ], + "enumDescriptions": [ + "Default case. Should never be this.", + "Admin reads. Example: CloudIAM getIamPolicy", + "Data writes. Example: CloudSQL Users create", + "Data reads. Example: CloudSQL Users list" + ], + "type": "string" + } + }, + "type": "object" + }, + "Binding": { + "description": "Associates `members` with a `role`.", + "id": "Binding", + "properties": { + "bindingId": { + "type": "string" + }, + "condition": { + "$ref": "Expr", + "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." + }, + "members": { + "description": "Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "items": { + "type": "string" + }, + "type": "array" + }, + "role": { + "description": "Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", + "type": "string" + } + }, + "type": "object" + }, + "CancelOperationRequest": { + "description": "The request message for Operations.CancelOperation.", + "id": "CancelOperationRequest", + "properties": {}, + "type": "object" + }, + "CloudSqlConnectionProfile": { + "description": "Specifies required connection parameters, and, optionally, the parameters required to create a Cloud SQL destination database instance.", + "id": "CloudSqlConnectionProfile", + "properties": { + "cloudSqlId": { + "description": "Output only. The Cloud SQL instance ID that this connection profile is associated with.", + "readOnly": true, + "type": "string" + }, + "privateIp": { + "description": "Output only. The Cloud SQL database instance's private IP.", + "readOnly": true, + "type": "string" + }, + "publicIp": { + "description": "Output only. The Cloud SQL database instance's public IP.", + "readOnly": true, + "type": "string" + }, + "settings": { + "$ref": "CloudSqlSettings", + "description": "Immutable. Metadata used to create the destination Cloud SQL database." + } + }, + "type": "object" + }, + "CloudSqlSettings": { + "description": "Settings for creating a Cloud SQL database instance.", + "id": "CloudSqlSettings", + "properties": { + "activationPolicy": { + "description": "The activation policy specifies when the instance is activated; it is applicable only when the instance state is 'RUNNABLE'. Valid values: 'ALWAYS': The instance is on, and remains so even in the absence of connection requests. `NEVER`: The instance is off; it is not activated, even if a connection request arrives.", + "enum": [ + "SQL_ACTIVATION_POLICY_UNSPECIFIED", + "ALWAYS", + "NEVER" + ], + "enumDescriptions": [ + "unspecified policy.", + "The instance is always up and running.", + "The instance should never spin up." + ], + "type": "string" + }, + "autoStorageIncrease": { + "description": "[default: ON] If you enable this setting, Cloud SQL checks your available storage every 30 seconds. If the available storage falls below a threshold size, Cloud SQL automatically adds additional storage capacity. If the available storage repeatedly falls below the threshold size, Cloud SQL continues to add storage until it reaches the maximum of 30 TB.", + "type": "boolean" + }, + "dataDiskSizeGb": { + "description": "The storage capacity available to the database, in GB. The minimum (and default) size is 10GB.", + "format": "int64", + "type": "string" + }, + "dataDiskType": { + "description": "The type of storage: `PD_SSD` (default) or `PD_HDD`.", + "enum": [ + "SQL_DATA_DISK_TYPE_UNSPECIFIED", + "PD_SSD", + "PD_HDD" + ], + "enumDescriptions": [ + "Unspecified.", + "SSD disk.", + "HDD disk." + ], + "type": "string" + }, + "databaseFlags": { + "additionalProperties": { + "type": "string" + }, + "description": "The database flags passed to the Cloud SQL instance at startup. An object containing a list of \"key\": value pairs. Example: { \"name\": \"wrench\", \"mass\": \"1.3kg\", \"count\": \"3\" }.", + "type": "object" + }, + "databaseVersion": { + "description": "The database engine type and version (such as `MYSQL_5_7` / `POSTGRES_9_6`).", + "enum": [ + "SQL_DATABASE_VERSION_UNSPECIFIED", + "MYSQL_5_6", + "MYSQL_5_7", + "MYSQL_8_0" + ], + "enumDescriptions": [ + "Unspecified version.", + "MySQL 5.6.", + "MySQL 5.7.", + "MySQL 8.0." + ], + "type": "string" + }, + "ipConfig": { + "$ref": "SqlIpConfig", + "description": "The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled." + }, + "rootPassword": { + "description": "Input only. Initial root password.", + "type": "string" + }, + "rootPasswordSet": { + "description": "Output only. Indicates If this connection profile root password is stored.", + "readOnly": true, + "type": "boolean" + }, + "sourceId": { + "description": "The Database Migration Service source connection profile ID, in the format: `projects/my_project_name/locations/us-central1/connectionProfiles/connection_profile_ID`", + "type": "string" + }, + "storageAutoResizeLimit": { + "description": "The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.", + "format": "int64", + "type": "string" + }, + "tier": { + "description": "The tier (or machine type) for this instance, for example: `db-n1-standard-1` (MySQL instances) or `db-custom-1-3840` (PostgreSQL instances). For more information, see [Cloud SQL Instance Settings](https://cloud.google.com/sql/docs/mysql/instance-settings).", + "type": "string" + }, + "userLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "The resource labels for a Cloud SQL instance to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of \"key\": \"value\" pairs. Example: `{ \"name\": \"wrench\", \"mass\": \"18kg\", \"count\": \"3\" }`.", + "type": "object" + }, + "zone": { + "description": "The Google Cloud Platform zone where your Cloud SQL datdabse instance is located.", + "type": "string" + } + }, + "type": "object" + }, + "ConnectionProfile": { + "description": "A connection profile definition.", + "id": "ConnectionProfile", + "properties": { + "cloudsql": { + "$ref": "CloudSqlConnectionProfile", + "description": "A CloudSQL database connection profile." + }, + "createTime": { + "description": "Output only. The timestamp when the resource was created. A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: \"2014-10-02T15:01:23.045123456Z\".", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "The connection profile display name.", + "type": "string" + }, + "error": { + "$ref": "Status", + "description": "Output only. The error details in case of state FAILED.", + "readOnly": true + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "The resource labels for connection profile to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of \"key\": \"value\" pairs. Example: `{ \"name\": \"wrench\", \"mass\": \"1.3kg\", \"count\": \"3\" }`.", + "type": "object" + }, + "mysql": { + "$ref": "MySqlConnectionProfile", + "description": "A MySQL database connection profile." + }, + "name": { + "description": "The name of this connection profile resource in the form of projects/{project}/locations/{location}/instances/{instance}.", + "type": "string" + }, + "provider": { + "description": "The database provider.", + "enum": [ + "DATABASE_PROVIDER_UNSPECIFIED", + "CLOUDSQL", + "RDS" + ], + "enumDescriptions": [ + "The database provider is unknown.", + "CloudSQL runs the database.", + "RDS runs the database." + ], + "type": "string" + }, + "state": { + "description": "The current connection profile state (e.g. DRAFT, READY, or FAILED).", + "enum": [ + "STATE_UNSPECIFIED", + "DRAFT", + "CREATING", + "READY", + "UPDATING", + "DELETING", + "DELETED", + "FAILED" + ], + "enumDescriptions": [ + "The state of the connection profile is unknown.", + "The connection profile is in draft mode and fully editable.", + "The connection profile is being created.", + "The connection profile is ready.", + "The connection profile is being updated.", + "The connection profile is being deleted.", + "The connection profile has been deleted.", + "The last action on the connection profile failed." + ], + "type": "string" + }, + "updateTime": { + "description": "Output only. The timestamp when the resource was last updated. A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: \"2014-10-02T15:01:23.045123456Z\".", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "DatabaseType": { + "description": "A message defining the database engine and provider.", + "id": "DatabaseType", + "properties": { + "engine": { + "description": "The database engine.", + "enum": [ + "DATABASE_ENGINE_UNSPECIFIED", + "MYSQL" + ], + "enumDescriptions": [ + "The source database engine of the migration job is unknown.", + "The source engine is MySQL." + ], + "type": "string" + }, + "provider": { + "description": "The database provider.", + "enum": [ + "DATABASE_PROVIDER_UNSPECIFIED", + "CLOUDSQL", + "RDS" + ], + "enumDescriptions": [ + "The database provider is unknown.", + "CloudSQL runs the database.", + "RDS runs the database." + ], + "type": "string" + } + }, + "type": "object" + }, + "Empty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "id": "Empty", + "properties": {}, + "type": "object" + }, + "Expr": { + "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", + "id": "Expr", + "properties": { + "description": { + "description": "Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.", + "type": "string" + }, + "expression": { + "description": "Textual representation of an expression in Common Expression Language syntax.", + "type": "string" + }, + "location": { + "description": "Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.", + "type": "string" + }, + "title": { + "description": "Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.", + "type": "string" + } + }, + "type": "object" + }, + "GenerateSshScriptRequest": { + "description": "Request message for 'GenerateSshScript' request.", + "id": "GenerateSshScriptRequest", + "properties": { + "vm": { + "description": "Required. Bastion VM Instance name to use or to create.", + "type": "string" + }, + "vmCreationConfig": { + "$ref": "VmCreationConfig", + "description": "The VM creation configuration" + }, + "vmPort": { + "description": "The port that will be open on the bastion host", + "format": "int32", + "type": "integer" + }, + "vmSelectionConfig": { + "$ref": "VmSelectionConfig", + "description": "The VM selection configuration" + } + }, + "type": "object" + }, + "GoogleCloudClouddmsV1beta1OperationMetadata": { + "description": "Represents the metadata of the long-running operation.", + "id": "GoogleCloudClouddmsV1beta1OperationMetadata", + "properties": { + "apiVersion": { + "description": "Output only. API version used to start the operation.", + "readOnly": true, + "type": "string" + }, + "createTime": { + "description": "Output only. The time the operation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "endTime": { + "description": "Output only. The time the operation finished running.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "requestedCancellation": { + "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "readOnly": true, + "type": "boolean" + }, + "statusMessage": { + "description": "Output only. Human-readable status of the operation, if any.", + "readOnly": true, + "type": "string" + }, + "target": { + "description": "Output only. Server-defined resource path for the target of the operation.", + "readOnly": true, + "type": "string" + }, + "verb": { + "description": "Output only. Name of the verb executed by the operation.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "ListConnectionProfilesResponse": { + "description": "Response message for 'ListConnectionProfiles' request.", + "id": "ListConnectionProfilesResponse", + "properties": { + "connectionProfiles": { + "description": "The response list of connection profiles.", + "items": { + "$ref": "ConnectionProfile" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListLocationsResponse": { + "description": "The response message for Locations.ListLocations.", + "id": "ListLocationsResponse", + "properties": { + "locations": { + "description": "A list of locations that matches the specified filter in the request.", + "items": { + "$ref": "Location" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + } + }, + "type": "object" + }, + "ListMigrationJobsResponse": { + "description": "Response message for 'ListMigrationJobs' request.", + "id": "ListMigrationJobsResponse", + "properties": { + "migrationJobs": { + "description": "The list of migration jobs objects.", + "items": { + "$ref": "MigrationJob" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListOperationsResponse": { + "description": "The response message for Operations.ListOperations.", + "id": "ListOperationsResponse", + "properties": { + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + }, + "operations": { + "description": "A list of operations that matches the specified filter in the request.", + "items": { + "$ref": "Operation" + }, + "type": "array" + } + }, + "type": "object" + }, + "Location": { + "description": "A resource that represents Google Cloud Platform location.", + "id": "Location", + "properties": { + "displayName": { + "description": "The friendly name for this location, typically a nearby city name. For example, \"Tokyo\".", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Cross-service attributes for the location. For example {\"cloud.googleapis.com/region\": \"us-east1\"}", + "type": "object" + }, + "locationId": { + "description": "The canonical id for this location. For example: `\"us-east1\"`.", + "type": "string" + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata. For example the available capacity at the given location.", + "type": "object" + }, + "name": { + "description": "Resource name for the location, which may vary between implementations. For example: `\"projects/example-project/locations/us-east1\"`", + "type": "string" + } + }, + "type": "object" + }, + "MigrationJob": { + "description": "Represents a Database Migration Service migration job object.", + "id": "MigrationJob", + "properties": { + "createTime": { + "description": "Output only. The timestamp when the migration job resource was created. A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: \"2014-10-02T15:01:23.045123456Z\".", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "destination": { + "description": "Required. The resource name (URI) of the destination connection profile.", + "type": "string" + }, + "destinationDatabase": { + "$ref": "DatabaseType", + "description": "The database engine type and provider of the destination." + }, + "displayName": { + "description": "The migration job display name.", + "type": "string" + }, + "dumpPath": { + "description": "The path to the dump file in Google Cloud Storage, in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).", + "type": "string" + }, + "duration": { + "description": "Output only. The duration of the migration job (in seconds). A duration in seconds with up to nine fractional digits, terminated by 's'. Example: \"3.5s\".", + "format": "google-duration", + "readOnly": true, + "type": "string" + }, + "endTime": { + "description": "Output only. If the migration job is completed, the time when it was completed.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "error": { + "$ref": "Status", + "description": "Output only. The error details in case of state FAILED.", + "readOnly": true + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "The resource labels for migration job to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of \"key\": \"value\" pairs. Example: `{ \"name\": \"wrench\", \"mass\": \"1.3kg\", \"count\": \"3\" }`.", + "type": "object" + }, + "name": { + "description": "The name (URI) of this migration job resource, in the form of: projects/{project}/locations/{location}/instances/{instance}.", + "type": "string" + }, + "phase": { + "description": "Output only. The current migration job phase.", + "enum": [ + "PHASE_UNSPECIFIED", + "FULL_DUMP", + "CDC", + "PROMOTE_IN_PROGRESS", + "WAITING_FOR_SOURCE_WRITES_TO_STOP", + "PREPARING_THE_DUMP" + ], + "enumDescriptions": [ + "The phase of the migration job is unknown.", + "The migration job is in the full dump phase.", + "The migration job is CDC phase.", + "The migration job is running the promote phase.", + "Only RDS flow - waiting for source writes to stop", + "Only RDS flow - the sources writes stopped, waiting for dump to begin" + ], + "readOnly": true, + "type": "string" + }, + "reverseSshConnectivity": { + "$ref": "ReverseSshConnectivity", + "description": "The details needed to communicate to the source over Reverse SSH tunnel connectivity." + }, + "source": { + "description": "Required. The resource name (URI) of the source connection profile.", + "type": "string" + }, + "sourceDatabase": { + "$ref": "DatabaseType", + "description": "The database engine type and provider of the source." + }, + "state": { + "description": "The current migration job state.", + "enum": [ + "STATE_UNSPECIFIED", + "MAINTENANCE", + "DRAFT", + "CREATING", + "NOT_STARTED", + "RUNNING", + "FAILED", + "COMPLETED", + "DELETING", + "STOPPING", + "STOPPED", + "DELETED", + "UPDATING", + "STARTING", + "RESTARTING", + "RESUMING" + ], + "enumDescriptions": [ + "The state of the migration job is unknown.", + "The migration job is down for maintenance.", + "The migration job is in draft mode and no resources are created.", + "The migration job is being created.", + "The migration job is created, not started and is fully editable.", + "The migration job is running.", + "The migration job failed.", + "The migration job has been completed.", + "The migration job is being deleted.", + "The migration job is being stopped.", + "The migration job is currently stopped.", + "The migration job has been deleted.", + "The migration job is being updated.", + "The migration job is starting.", + "The migration job is restarting.", + "The migration job is resuming." + ], + "type": "string" + }, + "staticIpConnectivity": { + "$ref": "StaticIpConnectivity", + "description": "static ip connectivity data (default, no additional details needed)." + }, + "type": { + "description": "Required. The migration job type.", + "enum": [ + "TYPE_UNSPECIFIED", + "ONE_TIME", + "CONTINUOUS" + ], + "enumDescriptions": [ + "The type of the migration job is unknown.", + "The migration job is a one time migration.", + "The migration job is a continuous migration." + ], + "type": "string" + }, + "updateTime": { + "description": "Output only. The timestamp when the migration job resource was last updated. A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: \"2014-10-02T15:01:23.045123456Z\".", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "vpcPeeringConnectivity": { + "$ref": "VpcPeeringConnectivity", + "description": "The details of the VPC network that the source database is located in." + } + }, + "type": "object" + }, + "MigrationJobVerificationError": { + "description": "Error message of a verification Migration job.", + "id": "MigrationJobVerificationError", + "properties": { + "errorCode": { + "description": "Output only. An instance of ErrorCode specifying the error that occurred.", + "enum": [ + "ERROR_CODE_UNSPECIFIED", + "CONNECTION_FAILURE", + "AUTHENTICATION_FAILURE", + "INVALID_CONNECTION_PROFILE_CONFIG", + "VERSION_INCOMPATIBILITY", + "CONNECTION_PROFILE_TYPES_INCOMPATIBILITY", + "UNSUPPORTED_GTID_MODE", + "UNSUPPORTED_DEFINER" + ], + "enumDescriptions": [ + "An unknown error occurred", + "We failed to connect to one of the connection profile.", + "We failed to authenticate to one of the connection profile.", + "One of the involved connection profiles has an invalid configuration.", + "The versions of the source and the destination are incompatible.", + "The types of the source and the destination are incompatible.", + "The gtid_mode is not supported, applicable for MySQL.", + "The definer is not supported." + ], + "readOnly": true, + "type": "string" + }, + "errorDetailMessage": { + "description": "Output only. A specific detailed error message, if supplied by the engine.", + "readOnly": true, + "type": "string" + }, + "errorMessage": { + "description": "Output only. A formatted message with further details about the error and a CTA.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "MySqlConnectionProfile": { + "description": "Specifies connection parameters required specifically for MySQL databases.", + "id": "MySqlConnectionProfile", + "properties": { + "cloudSqlId": { + "description": "If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.", + "type": "string" + }, + "host": { + "description": "Required. The IP or hostname of the source MySQL database.", + "type": "string" + }, + "password": { + "description": "Required. Input only. The password for the user that Database Migration Service will be using to connect to the database. This field is not returned on request, and the value is encrypted when stored in Database Migration Service.", + "type": "string" + }, + "passwordSet": { + "description": "Output only. Indicates If this connection profile password is stored.", + "readOnly": true, + "type": "boolean" + }, + "port": { + "description": "Required. The network port of the source MySQL database.", + "format": "int32", + "type": "integer" + }, + "ssl": { + "$ref": "SslConfig", + "description": "SSL configuration for the destination to connect to the source database." + }, + "username": { + "description": "Required. The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service.", + "type": "string" + } + }, + "type": "object" + }, + "Operation": { + "description": "This resource represents a long-running operation that is the result of a network API call.", + "id": "Operation", + "properties": { + "done": { + "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", + "type": "boolean" + }, + "error": { + "$ref": "Status", + "description": "The error result of the operation in case of failure or cancellation." + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "type": "object" + }, + "name": { + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", + "type": "string" + }, + "response": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "type": "object" + } + }, + "type": "object" + }, + "Policy": { + "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", + "id": "Policy", + "properties": { + "auditConfigs": { + "description": "Specifies cloud audit logging configuration for this policy.", + "items": { + "$ref": "AuditConfig" + }, + "type": "array" + }, + "bindings": { + "description": "Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.", + "items": { + "$ref": "Binding" + }, + "type": "array" + }, + "etag": { + "description": "`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.", + "format": "byte", + "type": "string" + }, + "version": { + "description": "Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "PromoteMigrationJobRequest": { + "description": "Request message for 'PromoteMigrationJob' request.", + "id": "PromoteMigrationJobRequest", + "properties": {}, + "type": "object" + }, + "RestartMigrationJobRequest": { + "description": "Request message for 'RestartMigrationJob' request.", + "id": "RestartMigrationJobRequest", + "properties": {}, + "type": "object" + }, + "ResumeMigrationJobRequest": { + "description": "Request message for 'ResumeMigrationJob' request.", + "id": "ResumeMigrationJobRequest", + "properties": {}, + "type": "object" + }, + "ReverseSshConnectivity": { + "description": "The details needed to configure a reverse SSH tunnel between the source and destination databases. These details will be used when calling the generateSshScript method (see https://cloud.google.com/database-migration/docs/reference/rest/v1beta1/projects.locations.migrationJobs/generateSshScript) to produce the script that will help set up the reverse SSH tunnel, and to set up the VPC peering between the Cloud SQL private network and the VPC.", + "id": "ReverseSshConnectivity", + "properties": { + "vm": { + "description": "The name of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.", + "type": "string" + }, + "vmIp": { + "description": "Required. The IP of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.", + "type": "string" + }, + "vmPort": { + "description": "Required. The forwarding port of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.", + "format": "int32", + "type": "integer" + }, + "vpc": { + "description": "The name of the VPC to peer with the Cloud SQL private network.", + "type": "string" + } + }, + "type": "object" + }, + "SetIamPolicyRequest": { + "description": "Request message for `SetIamPolicy` method.", + "id": "SetIamPolicyRequest", + "properties": { + "policy": { + "$ref": "Policy", + "description": "REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them." + }, + "updateMask": { + "description": "OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: \"bindings, etag\"`", + "format": "google-fieldmask", + "type": "string" + } + }, + "type": "object" + }, + "SqlAclEntry": { + "description": "An entry for an Access Control list.", + "id": "SqlAclEntry", + "properties": { + "expireTime": { + "description": "The time when this access control entry expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example: `2012-11-15T16:19:00.094Z`.", + "format": "google-datetime", + "type": "string" + }, + "label": { + "description": "A label to identify this entry.", + "type": "string" + }, + "ttl": { + "description": "Input only. The time-to-leave of this access control entry.", + "format": "google-duration", + "type": "string" + }, + "value": { + "description": "The allowlisted value for the access control list.", + "type": "string" + } + }, + "type": "object" + }, + "SqlIpConfig": { + "description": "IP Management configuration.", + "id": "SqlIpConfig", + "properties": { + "authorizedNetworks": { + "description": "The list of external networks that are allowed to connect to the instance using the IP. See https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as 'slash' notation (e.g. `192.168.100.0/24`).", + "items": { + "$ref": "SqlAclEntry" + }, + "type": "array" + }, + "enableIpv4": { + "description": "Whether the instance should be assigned an IPv4 address or not.", + "type": "boolean" + }, + "privateNetwork": { + "description": "The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`. This setting can be updated, but it cannot be removed after it is set.", + "type": "string" + }, + "requireSsl": { + "description": "Whether SSL connections over IP should be enforced or not.", + "type": "boolean" + } + }, + "type": "object" + }, + "SshScript": { + "description": "Response message for 'GenerateSshScript' request.", + "id": "SshScript", + "properties": { + "script": { + "description": "The ssh configuration script.", + "type": "string" + } + }, + "type": "object" + }, + "SslConfig": { + "description": "SSL configuration information.", + "id": "SslConfig", + "properties": { + "caCertificate": { + "description": "Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database server's certificate. The replica will use this certificate to verify it's connecting to the right host.", + "type": "string" + }, + "clientCertificate": { + "description": "Input only. The x509 PEM-encoded certificate that will be used by the replica to authenticate against the source database server.If this field is used then the 'client_key' field is mandatory.", + "type": "string" + }, + "clientKey": { + "description": "Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with the Client Certificate. If this field is used then the 'client_certificate' field is mandatory.", + "type": "string" + }, + "type": { + "description": "Output only. The ssl config type according to 'client_key', 'client_certificate' and 'ca_certificate'.", + "enum": [ + "SSL_TYPE_UNSPECIFIED", + "SERVER_ONLY", + "SERVER_CLIENT" + ], + "enumDescriptions": [ + "Unspecified.", + "Only 'ca_certificate' specified.", + "Both server ('ca_certificate'), and client ('client_key', 'client_certificate') specified." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "StartMigrationJobRequest": { + "description": "Request message for 'StartMigrationJob' request.", + "id": "StartMigrationJobRequest", + "properties": {}, + "type": "object" + }, + "StaticIpConnectivity": { + "description": "The source database will allow incoming connections from the destination database's public IP. You can retrieve the Cloud SQL instance's public IP from the Cloud SQL console or using Cloud SQL APIs. No additional configuration is required.", + "id": "StaticIpConnectivity", + "properties": {}, + "type": "object" + }, + "Status": { + "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", + "id": "Status", + "properties": { + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "format": "int32", + "type": "integer" + }, + "details": { + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", + "type": "string" + } + }, + "type": "object" + }, + "StopMigrationJobRequest": { + "description": "Request message for 'StopMigrationJob' request.", + "id": "StopMigrationJobRequest", + "properties": {}, + "type": "object" + }, + "TestIamPermissionsRequest": { + "description": "Request message for `TestIamPermissions` method.", + "id": "TestIamPermissionsRequest", + "properties": { + "permissions": { + "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "TestIamPermissionsResponse": { + "description": "Response message for `TestIamPermissions` method.", + "id": "TestIamPermissionsResponse", + "properties": { + "permissions": { + "description": "A subset of `TestPermissionsRequest.permissions` that the caller is allowed.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "VerifyMigrationJobRequest": { + "description": "Request message for 'VerifyMigrationJob' request.", + "id": "VerifyMigrationJobRequest", + "properties": {}, + "type": "object" + }, + "VmCreationConfig": { + "description": "VM creation configuration message", + "id": "VmCreationConfig", + "properties": { + "subnet": { + "description": "The subnet name the vm needs to be created in.", + "type": "string" + }, + "vmMachineType": { + "description": "Required. VM instance machine type to create.", + "type": "string" + }, + "vmZone": { + "description": "The Google Cloud Platform zone to create the VM in.", + "type": "string" + } + }, + "type": "object" + }, + "VmSelectionConfig": { + "description": "VM selection configuration message", + "id": "VmSelectionConfig", + "properties": { + "vmZone": { + "description": "Required. The Google Cloud Platform zone the VM is located.", + "type": "string" + } + }, + "type": "object" + }, + "VpcPeeringConnectivity": { + "description": "The details of the VPC where the source database is located in Google Cloud. We will use this information to set up the VPC peering connection between Cloud SQL and this VPC.", + "id": "VpcPeeringConnectivity", + "properties": { + "vpc": { + "description": "The name of the VPC network to peer with the Cloud SQL private network.", + "type": "string" + } + }, + "type": "object" + } + }, + "servicePath": "", + "title": "Database Migration API", + "version": "v1beta1", + "version_module": true +} \ No newline at end of file diff --git a/datamigration/v1beta1/datamigration-gen.go b/datamigration/v1beta1/datamigration-gen.go new file mode 100644 index 00000000000..dbd4a2bba3a --- /dev/null +++ b/datamigration/v1beta1/datamigration-gen.go @@ -0,0 +1,6551 @@ +// Copyright 2020 Google LLC. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated file. DO NOT EDIT. + +// Package datamigration provides access to the Database Migration API. +// +// For product documentation, see: https://cloud.google.com/datamigration/ +// +// Creating a client +// +// Usage example: +// +// import "google.golang.org/api/datamigration/v1beta1" +// ... +// ctx := context.Background() +// datamigrationService, err := datamigration.NewService(ctx) +// +// In this example, Google Application Default Credentials are used for authentication. +// +// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// +// Other authentication options +// +// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// +// datamigrationService, err := datamigration.NewService(ctx, option.WithAPIKey("AIza...")) +// +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// +// config := &oauth2.Config{...} +// // ... +// token, err := config.Exchange(ctx, ...) +// datamigrationService, err := datamigration.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) +// +// See https://godoc.org/google.golang.org/api/option/ for details on options. +package datamigration // import "google.golang.org/api/datamigration/v1beta1" + +import ( + "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + googleapi "google.golang.org/api/googleapi" + gensupport "google.golang.org/api/internal/gensupport" + option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" + htransport "google.golang.org/api/transport/http" +) + +// Always reference these packages, just in case the auto-generated code +// below doesn't. +var _ = bytes.NewBuffer +var _ = strconv.Itoa +var _ = fmt.Sprintf +var _ = json.NewDecoder +var _ = io.Copy +var _ = url.Parse +var _ = gensupport.MarshalJSON +var _ = googleapi.Version +var _ = errors.New +var _ = strings.Replace +var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint + +const apiId = "datamigration:v1beta1" +const apiName = "datamigration" +const apiVersion = "v1beta1" +const basePath = "https://datamigration.googleapis.com/" +const mtlsBasePath = "https://datamigration.mtls.googleapis.com/" + +// OAuth2 scopes used by this API. +const ( + // View and manage your data across Google Cloud Platform services + CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" +) + +// NewService creates a new Service. +func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + scopesOption := option.WithScopes( + "https://www.googleapis.com/auth/cloud-platform", + ) + // NOTE: prepend, so we don't override user-specified scopes. + opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + client, endpoint, err := htransport.NewClient(ctx, opts...) + if err != nil { + return nil, err + } + s, err := New(client) + if err != nil { + return nil, err + } + if endpoint != "" { + s.BasePath = endpoint + } + return s, nil +} + +// New creates a new Service. It uses the provided http.Client for requests. +// +// Deprecated: please use NewService instead. +// To provide a custom HTTP client, use option.WithHTTPClient. +// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. +func New(client *http.Client) (*Service, error) { + if client == nil { + return nil, errors.New("client is nil") + } + s := &Service{client: client, BasePath: basePath} + s.Projects = NewProjectsService(s) + return s, nil +} + +type Service struct { + client *http.Client + BasePath string // API endpoint base URL + UserAgent string // optional additional User-Agent fragment + + Projects *ProjectsService +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewProjectsService(s *Service) *ProjectsService { + rs := &ProjectsService{s: s} + rs.Locations = NewProjectsLocationsService(s) + return rs +} + +type ProjectsService struct { + s *Service + + Locations *ProjectsLocationsService +} + +func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { + rs := &ProjectsLocationsService{s: s} + rs.ConnectionProfiles = NewProjectsLocationsConnectionProfilesService(s) + rs.MigrationJobs = NewProjectsLocationsMigrationJobsService(s) + rs.Operations = NewProjectsLocationsOperationsService(s) + return rs +} + +type ProjectsLocationsService struct { + s *Service + + ConnectionProfiles *ProjectsLocationsConnectionProfilesService + + MigrationJobs *ProjectsLocationsMigrationJobsService + + Operations *ProjectsLocationsOperationsService +} + +func NewProjectsLocationsConnectionProfilesService(s *Service) *ProjectsLocationsConnectionProfilesService { + rs := &ProjectsLocationsConnectionProfilesService{s: s} + return rs +} + +type ProjectsLocationsConnectionProfilesService struct { + s *Service +} + +func NewProjectsLocationsMigrationJobsService(s *Service) *ProjectsLocationsMigrationJobsService { + rs := &ProjectsLocationsMigrationJobsService{s: s} + return rs +} + +type ProjectsLocationsMigrationJobsService struct { + s *Service +} + +func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { + rs := &ProjectsLocationsOperationsService{s: s} + return rs +} + +type ProjectsLocationsOperationsService struct { + s *Service +} + +// AuditConfig: Specifies the audit configuration for a service. The +// configuration determines which permission types are logged, and what +// identities, if any, are exempted from logging. An AuditConfig must +// have one or more AuditLogConfigs. If there are AuditConfigs for both +// `allServices` and a specific service, the union of the two +// AuditConfigs is used for that service: the log_types specified in +// each AuditConfig are enabled, and the exempted_members in each +// AuditLogConfig are exempted. Example Policy with multiple +// AuditConfigs: { "audit_configs": [ { "service": "allServices", +// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": +// [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { +// "log_type": "ADMIN_READ" } ] }, { "service": +// "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": +// "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ +// "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy +// enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts +// jose@example.com from DATA_READ logging, and aliya@example.com from +// DATA_WRITE logging. +type AuditConfig struct { + // AuditLogConfigs: The configuration for logging of each type of + // permission. + AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"` + + // Service: Specifies a service that will be enabled for audit logging. + // For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + // `allServices` is a special value that covers all services. + Service string `json:"service,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AuditLogConfigs") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AuditConfig) MarshalJSON() ([]byte, error) { + type NoMethod AuditConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AuditLogConfig: Provides the configuration for logging a type of +// permissions. Example: { "audit_log_configs": [ { "log_type": +// "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { +// "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and +// 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ +// logging. +type AuditLogConfig struct { + // ExemptedMembers: Specifies the identities that do not cause logging + // for this type of permission. Follows the same format of + // Binding.members. + ExemptedMembers []string `json:"exemptedMembers,omitempty"` + + // LogType: The log type that this config enables. + // + // Possible values: + // "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this. + // "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy + // "DATA_WRITE" - Data writes. Example: CloudSQL Users create + // "DATA_READ" - Data reads. Example: CloudSQL Users list + LogType string `json:"logType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExemptedMembers") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExemptedMembers") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { + type NoMethod AuditLogConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Binding: Associates `members` with a `role`. +type Binding struct { + BindingId string `json:"bindingId,omitempty"` + + // Condition: The condition that is associated with this binding. If the + // condition evaluates to `true`, then this binding applies to the + // current request. If the condition evaluates to `false`, then this + // binding does not apply to the current request. However, a different + // role binding might grant the same role to one or more of the members + // in this binding. To learn which resources support conditions in their + // IAM policies, see the [IAM + // documentation](https://cloud.google.com/iam/help/conditions/resource-p + // olicies). + Condition *Expr `json:"condition,omitempty"` + + // Members: Specifies the identities requesting access for a Cloud + // Platform resource. `members` can have the following values: * + // `allUsers`: A special identifier that represents anyone who is on the + // internet; with or without a Google account. * + // `allAuthenticatedUsers`: A special identifier that represents anyone + // who is authenticated with a Google account or a service account. * + // `user:{emailid}`: An email address that represents a specific Google + // account. For example, `alice@example.com` . * + // `serviceAccount:{emailid}`: An email address that represents a + // service account. For example, + // `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An + // email address that represents a Google group. For example, + // `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An + // email address (plus unique identifier) representing a user that has + // been recently deleted. For example, + // `alice@example.com?uid=123456789012345678901`. If the user is + // recovered, this value reverts to `user:{emailid}` and the recovered + // user retains the role in the binding. * + // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address + // (plus unique identifier) representing a service account that has been + // recently deleted. For example, + // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + // If the service account is undeleted, this value reverts to + // `serviceAccount:{emailid}` and the undeleted service account retains + // the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: + // An email address (plus unique identifier) representing a Google group + // that has been recently deleted. For example, + // `admins@example.com?uid=123456789012345678901`. If the group is + // recovered, this value reverts to `group:{emailid}` and the recovered + // group retains the role in the binding. * `domain:{domain}`: The G + // Suite domain (primary) that represents all the users of that domain. + // For example, `google.com` or `example.com`. + Members []string `json:"members,omitempty"` + + // Role: Role that is assigned to `members`. For example, + // `roles/viewer`, `roles/editor`, or `roles/owner`. + Role string `json:"role,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BindingId") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BindingId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Binding) MarshalJSON() ([]byte, error) { + type NoMethod Binding + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CancelOperationRequest: The request message for +// Operations.CancelOperation. +type CancelOperationRequest struct { +} + +// CloudSqlConnectionProfile: Specifies required connection parameters, +// and, optionally, the parameters required to create a Cloud SQL +// destination database instance. +type CloudSqlConnectionProfile struct { + // CloudSqlId: Output only. The Cloud SQL instance ID that this + // connection profile is associated with. + CloudSqlId string `json:"cloudSqlId,omitempty"` + + // PrivateIp: Output only. The Cloud SQL database instance's private IP. + PrivateIp string `json:"privateIp,omitempty"` + + // PublicIp: Output only. The Cloud SQL database instance's public IP. + PublicIp string `json:"publicIp,omitempty"` + + // Settings: Immutable. Metadata used to create the destination Cloud + // SQL database. + Settings *CloudSqlSettings `json:"settings,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CloudSqlId") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CloudSqlId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CloudSqlConnectionProfile) MarshalJSON() ([]byte, error) { + type NoMethod CloudSqlConnectionProfile + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CloudSqlSettings: Settings for creating a Cloud SQL database +// instance. +type CloudSqlSettings struct { + // ActivationPolicy: The activation policy specifies when the instance + // is activated; it is applicable only when the instance state is + // 'RUNNABLE'. Valid values: 'ALWAYS': The instance is on, and remains + // so even in the absence of connection requests. `NEVER`: The instance + // is off; it is not activated, even if a connection request arrives. + // + // Possible values: + // "SQL_ACTIVATION_POLICY_UNSPECIFIED" - unspecified policy. + // "ALWAYS" - The instance is always up and running. + // "NEVER" - The instance should never spin up. + ActivationPolicy string `json:"activationPolicy,omitempty"` + + // AutoStorageIncrease: [default: ON] If you enable this setting, Cloud + // SQL checks your available storage every 30 seconds. If the available + // storage falls below a threshold size, Cloud SQL automatically adds + // additional storage capacity. If the available storage repeatedly + // falls below the threshold size, Cloud SQL continues to add storage + // until it reaches the maximum of 30 TB. + AutoStorageIncrease bool `json:"autoStorageIncrease,omitempty"` + + // DataDiskSizeGb: The storage capacity available to the database, in + // GB. The minimum (and default) size is 10GB. + DataDiskSizeGb int64 `json:"dataDiskSizeGb,omitempty,string"` + + // DataDiskType: The type of storage: `PD_SSD` (default) or `PD_HDD`. + // + // Possible values: + // "SQL_DATA_DISK_TYPE_UNSPECIFIED" - Unspecified. + // "PD_SSD" - SSD disk. + // "PD_HDD" - HDD disk. + DataDiskType string `json:"dataDiskType,omitempty"` + + // DatabaseFlags: The database flags passed to the Cloud SQL instance at + // startup. An object containing a list of "key": value pairs. Example: + // { "name": "wrench", "mass": "1.3kg", "count": "3" }. + DatabaseFlags map[string]string `json:"databaseFlags,omitempty"` + + // DatabaseVersion: The database engine type and version (such as + // `MYSQL_5_7` / `POSTGRES_9_6`). + // + // Possible values: + // "SQL_DATABASE_VERSION_UNSPECIFIED" - Unspecified version. + // "MYSQL_5_6" - MySQL 5.6. + // "MYSQL_5_7" - MySQL 5.7. + // "MYSQL_8_0" - MySQL 8.0. + DatabaseVersion string `json:"databaseVersion,omitempty"` + + // IpConfig: The settings for IP Management. This allows to enable or + // disable the instance IP and manage which external networks can + // connect to the instance. The IPv4 address cannot be disabled. + IpConfig *SqlIpConfig `json:"ipConfig,omitempty"` + + // RootPassword: Input only. Initial root password. + RootPassword string `json:"rootPassword,omitempty"` + + // RootPasswordSet: Output only. Indicates If this connection profile + // root password is stored. + RootPasswordSet bool `json:"rootPasswordSet,omitempty"` + + // SourceId: The Database Migration Service source connection profile + // ID, in the format: + // `projects/my_project_name/locations/us-central1/connectionProfiles/con + // nection_profile_ID` + SourceId string `json:"sourceId,omitempty"` + + // StorageAutoResizeLimit: The maximum size to which storage capacity + // can be automatically increased. The default value is 0, which + // specifies that there is no limit. + StorageAutoResizeLimit int64 `json:"storageAutoResizeLimit,omitempty,string"` + + // Tier: The tier (or machine type) for this instance, for example: + // `db-n1-standard-1` (MySQL instances) or `db-custom-1-3840` + // (PostgreSQL instances). For more information, see [Cloud SQL Instance + // Settings](https://cloud.google.com/sql/docs/mysql/instance-settings). + Tier string `json:"tier,omitempty"` + + // UserLabels: The resource labels for a Cloud SQL instance to use to + // annotate any related underlying resources such as Compute Engine VMs. + // An object containing a list of "key": "value" pairs. Example: `{ + // "name": "wrench", "mass": "18kg", "count": "3" }`. + UserLabels map[string]string `json:"userLabels,omitempty"` + + // Zone: The Google Cloud Platform zone where your Cloud SQL datdabse + // instance is located. + Zone string `json:"zone,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ActivationPolicy") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ActivationPolicy") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CloudSqlSettings) MarshalJSON() ([]byte, error) { + type NoMethod CloudSqlSettings + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ConnectionProfile: A connection profile definition. +type ConnectionProfile struct { + // Cloudsql: A CloudSQL database connection profile. + Cloudsql *CloudSqlConnectionProfile `json:"cloudsql,omitempty"` + + // CreateTime: Output only. The timestamp when the resource was created. + // A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. + // Example: "2014-10-02T15:01:23.045123456Z". + CreateTime string `json:"createTime,omitempty"` + + // DisplayName: The connection profile display name. + DisplayName string `json:"displayName,omitempty"` + + // Error: Output only. The error details in case of state FAILED. + Error *Status `json:"error,omitempty"` + + // Labels: The resource labels for connection profile to use to annotate + // any related underlying resources such as Compute Engine VMs. An + // object containing a list of "key": "value" pairs. Example: `{ "name": + // "wrench", "mass": "1.3kg", "count": "3" }`. + Labels map[string]string `json:"labels,omitempty"` + + // Mysql: A MySQL database connection profile. + Mysql *MySqlConnectionProfile `json:"mysql,omitempty"` + + // Name: The name of this connection profile resource in the form of + // projects/{project}/locations/{location}/instances/{instance}. + Name string `json:"name,omitempty"` + + // Provider: The database provider. + // + // Possible values: + // "DATABASE_PROVIDER_UNSPECIFIED" - The database provider is unknown. + // "CLOUDSQL" - CloudSQL runs the database. + // "RDS" - RDS runs the database. + Provider string `json:"provider,omitempty"` + + // State: The current connection profile state (e.g. DRAFT, READY, or + // FAILED). + // + // Possible values: + // "STATE_UNSPECIFIED" - The state of the connection profile is + // unknown. + // "DRAFT" - The connection profile is in draft mode and fully + // editable. + // "CREATING" - The connection profile is being created. + // "READY" - The connection profile is ready. + // "UPDATING" - The connection profile is being updated. + // "DELETING" - The connection profile is being deleted. + // "DELETED" - The connection profile has been deleted. + // "FAILED" - The last action on the connection profile failed. + State string `json:"state,omitempty"` + + // UpdateTime: Output only. The timestamp when the resource was last + // updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to + // nanoseconds. Example: "2014-10-02T15:01:23.045123456Z". + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Cloudsql") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Cloudsql") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ConnectionProfile) MarshalJSON() ([]byte, error) { + type NoMethod ConnectionProfile + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DatabaseType: A message defining the database engine and provider. +type DatabaseType struct { + // Engine: The database engine. + // + // Possible values: + // "DATABASE_ENGINE_UNSPECIFIED" - The source database engine of the + // migration job is unknown. + // "MYSQL" - The source engine is MySQL. + Engine string `json:"engine,omitempty"` + + // Provider: The database provider. + // + // Possible values: + // "DATABASE_PROVIDER_UNSPECIFIED" - The database provider is unknown. + // "CLOUDSQL" - CloudSQL runs the database. + // "RDS" - RDS runs the database. + Provider string `json:"provider,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Engine") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Engine") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DatabaseType) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseType + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Empty: A generic empty message that you can re-use to avoid defining +// duplicated empty messages in your APIs. A typical example is to use +// it as the request or the response type of an API method. For +// instance: service Foo { rpc Bar(google.protobuf.Empty) returns +// (google.protobuf.Empty); } The JSON representation for `Empty` is +// empty JSON object `{}`. +type Empty struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// Expr: Represents a textual expression in the Common Expression +// Language (CEL) syntax. CEL is a C-like expression language. The +// syntax and semantics of CEL are documented at +// https://github.com/google/cel-spec. Example (Comparison): title: +// "Summary size limit" description: "Determines if a summary is less +// than 100 chars" expression: "document.summary.size() < 100" Example +// (Equality): title: "Requestor is owner" description: "Determines if +// requestor is the document owner" expression: "document.owner == +// request.auth.claims.email" Example (Logic): title: "Public documents" +// description: "Determine whether the document should be publicly +// visible" expression: "document.type != 'private' && document.type != +// 'internal'" Example (Data Manipulation): title: "Notification string" +// description: "Create a notification string with a timestamp." +// expression: "'New message received at ' + +// string(document.create_time)" The exact variables and functions that +// may be referenced within an expression are determined by the service +// that evaluates it. See the service documentation for additional +// information. +type Expr struct { + // Description: Optional. Description of the expression. This is a + // longer text which describes the expression, e.g. when hovered over it + // in a UI. + Description string `json:"description,omitempty"` + + // Expression: Textual representation of an expression in Common + // Expression Language syntax. + Expression string `json:"expression,omitempty"` + + // Location: Optional. String indicating the location of the expression + // for error reporting, e.g. a file name and a position in the file. + Location string `json:"location,omitempty"` + + // Title: Optional. Title for the expression, i.e. a short string + // describing its purpose. This can be used e.g. in UIs which allow to + // enter the expression. + Title string `json:"title,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Description") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Expr) MarshalJSON() ([]byte, error) { + type NoMethod Expr + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GenerateSshScriptRequest: Request message for 'GenerateSshScript' +// request. +type GenerateSshScriptRequest struct { + // Vm: Required. Bastion VM Instance name to use or to create. + Vm string `json:"vm,omitempty"` + + // VmCreationConfig: The VM creation configuration + VmCreationConfig *VmCreationConfig `json:"vmCreationConfig,omitempty"` + + // VmPort: The port that will be open on the bastion host + VmPort int64 `json:"vmPort,omitempty"` + + // VmSelectionConfig: The VM selection configuration + VmSelectionConfig *VmSelectionConfig `json:"vmSelectionConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Vm") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Vm") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GenerateSshScriptRequest) MarshalJSON() ([]byte, error) { + type NoMethod GenerateSshScriptRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudClouddmsV1beta1OperationMetadata: Represents the metadata +// of the long-running operation. +type GoogleCloudClouddmsV1beta1OperationMetadata struct { + // ApiVersion: Output only. API version used to start the operation. + ApiVersion string `json:"apiVersion,omitempty"` + + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + + // RequestedCancellation: Output only. Identifies whether the user has + // requested cancellation of the operation. Operations that have + // successfully been cancelled have Operation.error value with a + // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + RequestedCancellation bool `json:"requestedCancellation,omitempty"` + + // StatusMessage: Output only. Human-readable status of the operation, + // if any. + StatusMessage string `json:"statusMessage,omitempty"` + + // Target: Output only. Server-defined resource path for the target of + // the operation. + Target string `json:"target,omitempty"` + + // Verb: Output only. Name of the verb executed by the operation. + Verb string `json:"verb,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ApiVersion") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ApiVersion") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudClouddmsV1beta1OperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudClouddmsV1beta1OperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListConnectionProfilesResponse: Response message for +// 'ListConnectionProfiles' request. +type ListConnectionProfilesResponse struct { + // ConnectionProfiles: The response list of connection profiles. + ConnectionProfiles []*ConnectionProfile `json:"connectionProfiles,omitempty"` + + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Unreachable: Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ConnectionProfiles") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ConnectionProfiles") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ListConnectionProfilesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListConnectionProfilesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListLocationsResponse: The response message for +// Locations.ListLocations. +type ListLocationsResponse struct { + // Locations: A list of locations that matches the specified filter in + // the request. + Locations []*Location `json:"locations,omitempty"` + + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Locations") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Locations") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListLocationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListMigrationJobsResponse: Response message for 'ListMigrationJobs' +// request. +type ListMigrationJobsResponse struct { + // MigrationJobs: The list of migration jobs objects. + MigrationJobs []*MigrationJob `json:"migrationJobs,omitempty"` + + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Unreachable: Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "MigrationJobs") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MigrationJobs") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListMigrationJobsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListMigrationJobsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListOperationsResponse: The response message for +// Operations.ListOperations. +type ListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Operations: A list of operations that matches the specified filter in + // the request. + Operations []*Operation `json:"operations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListOperationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Location: A resource that represents Google Cloud Platform location. +type Location struct { + // DisplayName: The friendly name for this location, typically a nearby + // city name. For example, "Tokyo". + DisplayName string `json:"displayName,omitempty"` + + // Labels: Cross-service attributes for the location. For example + // {"cloud.googleapis.com/region": "us-east1"} + Labels map[string]string `json:"labels,omitempty"` + + // LocationId: The canonical id for this location. For example: + // "us-east1". + LocationId string `json:"locationId,omitempty"` + + // Metadata: Service-specific metadata. For example the available + // capacity at the given location. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: Resource name for the location, which may vary between + // implementations. For example: + // "projects/example-project/locations/us-east1" + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisplayName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Location) MarshalJSON() ([]byte, error) { + type NoMethod Location + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MigrationJob: Represents a Database Migration Service migration job +// object. +type MigrationJob struct { + // CreateTime: Output only. The timestamp when the migration job + // resource was created. A timestamp in RFC3339 UTC "Zulu" format, + // accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z". + CreateTime string `json:"createTime,omitempty"` + + // Destination: Required. The resource name (URI) of the destination + // connection profile. + Destination string `json:"destination,omitempty"` + + // DestinationDatabase: The database engine type and provider of the + // destination. + DestinationDatabase *DatabaseType `json:"destinationDatabase,omitempty"` + + // DisplayName: The migration job display name. + DisplayName string `json:"displayName,omitempty"` + + // DumpPath: The path to the dump file in Google Cloud Storage, in the + // format: (gs://[BUCKET_NAME]/[OBJECT_NAME]). + DumpPath string `json:"dumpPath,omitempty"` + + // Duration: Output only. The duration of the migration job (in + // seconds). A duration in seconds with up to nine fractional digits, + // terminated by 's'. Example: "3.5s". + Duration string `json:"duration,omitempty"` + + // EndTime: Output only. If the migration job is completed, the time + // when it was completed. + EndTime string `json:"endTime,omitempty"` + + // Error: Output only. The error details in case of state FAILED. + Error *Status `json:"error,omitempty"` + + // Labels: The resource labels for migration job to use to annotate any + // related underlying resources such as Compute Engine VMs. An object + // containing a list of "key": "value" pairs. Example: `{ "name": + // "wrench", "mass": "1.3kg", "count": "3" }`. + Labels map[string]string `json:"labels,omitempty"` + + // Name: The name (URI) of this migration job resource, in the form of: + // projects/{project}/locations/{location}/instances/{instance}. + Name string `json:"name,omitempty"` + + // Phase: Output only. The current migration job phase. + // + // Possible values: + // "PHASE_UNSPECIFIED" - The phase of the migration job is unknown. + // "FULL_DUMP" - The migration job is in the full dump phase. + // "CDC" - The migration job is CDC phase. + // "PROMOTE_IN_PROGRESS" - The migration job is running the promote + // phase. + // "WAITING_FOR_SOURCE_WRITES_TO_STOP" - Only RDS flow - waiting for + // source writes to stop + // "PREPARING_THE_DUMP" - Only RDS flow - the sources writes stopped, + // waiting for dump to begin + Phase string `json:"phase,omitempty"` + + // ReverseSshConnectivity: The details needed to communicate to the + // source over Reverse SSH tunnel connectivity. + ReverseSshConnectivity *ReverseSshConnectivity `json:"reverseSshConnectivity,omitempty"` + + // Source: Required. The resource name (URI) of the source connection + // profile. + Source string `json:"source,omitempty"` + + // SourceDatabase: The database engine type and provider of the source. + SourceDatabase *DatabaseType `json:"sourceDatabase,omitempty"` + + // State: The current migration job state. + // + // Possible values: + // "STATE_UNSPECIFIED" - The state of the migration job is unknown. + // "MAINTENANCE" - The migration job is down for maintenance. + // "DRAFT" - The migration job is in draft mode and no resources are + // created. + // "CREATING" - The migration job is being created. + // "NOT_STARTED" - The migration job is created, not started and is + // fully editable. + // "RUNNING" - The migration job is running. + // "FAILED" - The migration job failed. + // "COMPLETED" - The migration job has been completed. + // "DELETING" - The migration job is being deleted. + // "STOPPING" - The migration job is being stopped. + // "STOPPED" - The migration job is currently stopped. + // "DELETED" - The migration job has been deleted. + // "UPDATING" - The migration job is being updated. + // "STARTING" - The migration job is starting. + // "RESTARTING" - The migration job is restarting. + // "RESUMING" - The migration job is resuming. + State string `json:"state,omitempty"` + + // StaticIpConnectivity: static ip connectivity data (default, no + // additional details needed). + StaticIpConnectivity *StaticIpConnectivity `json:"staticIpConnectivity,omitempty"` + + // Type: Required. The migration job type. + // + // Possible values: + // "TYPE_UNSPECIFIED" - The type of the migration job is unknown. + // "ONE_TIME" - The migration job is a one time migration. + // "CONTINUOUS" - The migration job is a continuous migration. + Type string `json:"type,omitempty"` + + // UpdateTime: Output only. The timestamp when the migration job + // resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, + // accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z". + UpdateTime string `json:"updateTime,omitempty"` + + // VpcPeeringConnectivity: The details of the VPC network that the + // source database is located in. + VpcPeeringConnectivity *VpcPeeringConnectivity `json:"vpcPeeringConnectivity,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MigrationJob) MarshalJSON() ([]byte, error) { + type NoMethod MigrationJob + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MigrationJobVerificationError: Error message of a verification +// Migration job. +type MigrationJobVerificationError struct { + // ErrorCode: Output only. An instance of ErrorCode specifying the error + // that occurred. + // + // Possible values: + // "ERROR_CODE_UNSPECIFIED" - An unknown error occurred + // "CONNECTION_FAILURE" - We failed to connect to one of the + // connection profile. + // "AUTHENTICATION_FAILURE" - We failed to authenticate to one of the + // connection profile. + // "INVALID_CONNECTION_PROFILE_CONFIG" - One of the involved + // connection profiles has an invalid configuration. + // "VERSION_INCOMPATIBILITY" - The versions of the source and the + // destination are incompatible. + // "CONNECTION_PROFILE_TYPES_INCOMPATIBILITY" - The types of the + // source and the destination are incompatible. + // "UNSUPPORTED_GTID_MODE" - The gtid_mode is not supported, + // applicable for MySQL. + // "UNSUPPORTED_DEFINER" - The definer is not supported. + ErrorCode string `json:"errorCode,omitempty"` + + // ErrorDetailMessage: Output only. A specific detailed error message, + // if supplied by the engine. + ErrorDetailMessage string `json:"errorDetailMessage,omitempty"` + + // ErrorMessage: Output only. A formatted message with further details + // about the error and a CTA. + ErrorMessage string `json:"errorMessage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ErrorCode") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ErrorCode") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MigrationJobVerificationError) MarshalJSON() ([]byte, error) { + type NoMethod MigrationJobVerificationError + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MySqlConnectionProfile: Specifies connection parameters required +// specifically for MySQL databases. +type MySqlConnectionProfile struct { + // CloudSqlId: If the source is a Cloud SQL database, use this field to + // provide the Cloud SQL instance ID of the source. + CloudSqlId string `json:"cloudSqlId,omitempty"` + + // Host: Required. The IP or hostname of the source MySQL database. + Host string `json:"host,omitempty"` + + // Password: Required. Input only. The password for the user that + // Database Migration Service will be using to connect to the database. + // This field is not returned on request, and the value is encrypted + // when stored in Database Migration Service. + Password string `json:"password,omitempty"` + + // PasswordSet: Output only. Indicates If this connection profile + // password is stored. + PasswordSet bool `json:"passwordSet,omitempty"` + + // Port: Required. The network port of the source MySQL database. + Port int64 `json:"port,omitempty"` + + // Ssl: SSL configuration for the destination to connect to the source + // database. + Ssl *SslConfig `json:"ssl,omitempty"` + + // Username: Required. The username that Database Migration Service will + // use to connect to the database. The value is encrypted when stored in + // Database Migration Service. + Username string `json:"username,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CloudSqlId") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CloudSqlId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MySqlConnectionProfile) MarshalJSON() ([]byte, error) { + type NoMethod MySqlConnectionProfile + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Operation: This resource represents a long-running operation that is +// the result of a network API call. +type Operation struct { + // Done: If the value is `false`, it means the operation is still in + // progress. If `true`, the operation is completed, and either `error` + // or `response` is available. + Done bool `json:"done,omitempty"` + + // Error: The error result of the operation in case of failure or + // cancellation. + Error *Status `json:"error,omitempty"` + + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as + // create time. Some services might not provide such metadata. Any + // method that returns a long-running operation should document the + // metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: The server-assigned name, which is only unique within the same + // service that originally returns it. If you use the default HTTP + // mapping, the `name` should be a resource name ending with + // `operations/{unique_id}`. + Name string `json:"name,omitempty"` + + // Response: The normal response of the operation in case of success. If + // the original method returns no data on success, such as `Delete`, the + // response is `google.protobuf.Empty`. If the original method is + // standard `Get`/`Create`/`Update`, the response should be the + // resource. For other methods, the response should have the type + // `XxxResponse`, where `Xxx` is the original method name. For example, + // if the original method name is `TakeSnapshot()`, the inferred + // response type is `TakeSnapshotResponse`. + Response googleapi.RawMessage `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Done") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Done") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Operation) MarshalJSON() ([]byte, error) { + type NoMethod Operation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Policy: An Identity and Access Management (IAM) policy, which +// specifies access controls for Google Cloud resources. A `Policy` is a +// collection of `bindings`. A `binding` binds one or more `members` to +// a single `role`. Members can be user accounts, service accounts, +// Google groups, and domains (such as G Suite). A `role` is a named +// list of permissions; each `role` can be an IAM predefined role or a +// user-created custom role. For some types of Google Cloud resources, a +// `binding` can also specify a `condition`, which is a logical +// expression that allows access to a resource only if the expression +// evaluates to `true`. A condition can add constraints based on +// attributes of the request, the resource, or both. To learn which +// resources support conditions in their IAM policies, see the [IAM +// documentation](https://cloud.google.com/iam/help/conditions/resource-p +// olicies). **JSON example:** { "bindings": [ { "role": +// "roles/resourcemanager.organizationAdmin", "members": [ +// "user:mike@example.com", "group:admins@example.com", +// "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { +// "role": "roles/resourcemanager.organizationViewer", "members": [ +// "user:eve@example.com" ], "condition": { "title": "expirable access", +// "description": "Does not grant access after Sep 2020", "expression": +// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], +// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - +// members: - user:mike@example.com - group:admins@example.com - +// domain:google.com - +// serviceAccount:my-project-id@appspot.gserviceaccount.com role: +// roles/resourcemanager.organizationAdmin - members: - +// user:eve@example.com role: roles/resourcemanager.organizationViewer +// condition: title: expirable access description: Does not grant access +// after Sep 2020 expression: request.time < +// timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: +// 3 For a description of IAM and its features, see the [IAM +// documentation](https://cloud.google.com/iam/docs/). +type Policy struct { + // AuditConfigs: Specifies cloud audit logging configuration for this + // policy. + AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"` + + // Bindings: Associates a list of `members` to a `role`. Optionally, may + // specify a `condition` that determines how and when the `bindings` are + // applied. Each of the `bindings` must contain at least one member. + Bindings []*Binding `json:"bindings,omitempty"` + + // Etag: `etag` is used for optimistic concurrency control as a way to + // help prevent simultaneous updates of a policy from overwriting each + // other. It is strongly suggested that systems make use of the `etag` + // in the read-modify-write cycle to perform policy updates in order to + // avoid race conditions: An `etag` is returned in the response to + // `getIamPolicy`, and systems are expected to put that etag in the + // request to `setIamPolicy` to ensure that their change will be applied + // to the same version of the policy. **Important:** If you use IAM + // Conditions, you must include the `etag` field whenever you call + // `setIamPolicy`. If you omit this field, then IAM allows you to + // overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. + Etag string `json:"etag,omitempty"` + + // Version: Specifies the format of the policy. Valid values are `0`, + // `1`, and `3`. Requests that specify an invalid value are rejected. + // Any operation that affects conditional role bindings must specify + // version `3`. This requirement applies to the following operations: * + // Getting a policy that includes a conditional role binding * Adding a + // conditional role binding to a policy * Changing a conditional role + // binding in a policy * Removing any role binding, with or without a + // condition, from a policy that includes conditions **Important:** If + // you use IAM Conditions, you must include the `etag` field whenever + // you call `setIamPolicy`. If you omit this field, then IAM allows you + // to overwrite a version `3` policy with a version `1` policy, and all + // of the conditions in the version `3` policy are lost. If a policy + // does not include any conditions, operations on that policy may + // specify any valid version or leave the field unset. To learn which + // resources support conditions in their IAM policies, see the [IAM + // documentation](https://cloud.google.com/iam/help/conditions/resource-p + // olicies). + Version int64 `json:"version,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AuditConfigs") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AuditConfigs") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Policy) MarshalJSON() ([]byte, error) { + type NoMethod Policy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PromoteMigrationJobRequest: Request message for 'PromoteMigrationJob' +// request. +type PromoteMigrationJobRequest struct { +} + +// RestartMigrationJobRequest: Request message for 'RestartMigrationJob' +// request. +type RestartMigrationJobRequest struct { +} + +// ResumeMigrationJobRequest: Request message for 'ResumeMigrationJob' +// request. +type ResumeMigrationJobRequest struct { +} + +// ReverseSshConnectivity: The details needed to configure a reverse SSH +// tunnel between the source and destination databases. These details +// will be used when calling the generateSshScript method (see +// https://cloud.google.com/database-migration/docs/reference/rest/v1beta1/projects.locations.migrationJobs/generateSshScript) to produce the script that will help set up the reverse SSH tunnel, and to set up the VPC peering between the Cloud SQL private network and the +// VPC. +type ReverseSshConnectivity struct { + // Vm: The name of the virtual machine (Compute Engine) used as the + // bastion server for the SSH tunnel. + Vm string `json:"vm,omitempty"` + + // VmIp: Required. The IP of the virtual machine (Compute Engine) used + // as the bastion server for the SSH tunnel. + VmIp string `json:"vmIp,omitempty"` + + // VmPort: Required. The forwarding port of the virtual machine (Compute + // Engine) used as the bastion server for the SSH tunnel. + VmPort int64 `json:"vmPort,omitempty"` + + // Vpc: The name of the VPC to peer with the Cloud SQL private network. + Vpc string `json:"vpc,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Vm") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Vm") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ReverseSshConnectivity) MarshalJSON() ([]byte, error) { + type NoMethod ReverseSshConnectivity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SetIamPolicyRequest: Request message for `SetIamPolicy` method. +type SetIamPolicyRequest struct { + // Policy: REQUIRED: The complete policy to be applied to the + // `resource`. The size of the policy is limited to a few 10s of KB. An + // empty policy is a valid policy but certain Cloud Platform services + // (such as Projects) might reject them. + Policy *Policy `json:"policy,omitempty"` + + // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the + // policy to modify. Only the fields in the mask will be modified. If no + // mask is provided, the following default mask is used: `paths: + // "bindings, etag" + UpdateMask string `json:"updateMask,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Policy") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Policy") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { + type NoMethod SetIamPolicyRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SqlAclEntry: An entry for an Access Control list. +type SqlAclEntry struct { + // ExpireTime: The time when this access control entry expires in [RFC + // 3339](https://tools.ietf.org/html/rfc3339) format, for example: + // `2012-11-15T16:19:00.094Z`. + ExpireTime string `json:"expireTime,omitempty"` + + // Label: A label to identify this entry. + Label string `json:"label,omitempty"` + + // Ttl: Input only. The time-to-leave of this access control entry. + Ttl string `json:"ttl,omitempty"` + + // Value: The allowlisted value for the access control list. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExpireTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExpireTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SqlAclEntry) MarshalJSON() ([]byte, error) { + type NoMethod SqlAclEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SqlIpConfig: IP Management configuration. +type SqlIpConfig struct { + // AuthorizedNetworks: The list of external networks that are allowed to + // connect to the instance using the IP. See + // https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known + // as 'slash' notation (e.g. `192.168.100.0/24`). + AuthorizedNetworks []*SqlAclEntry `json:"authorizedNetworks,omitempty"` + + // EnableIpv4: Whether the instance should be assigned an IPv4 address + // or not. + EnableIpv4 bool `json:"enableIpv4,omitempty"` + + // PrivateNetwork: The resource link for the VPC network from which the + // Cloud SQL instance is accessible for private IP. For example, + // `/projects/myProject/global/networks/default`. This setting can be + // updated, but it cannot be removed after it is set. + PrivateNetwork string `json:"privateNetwork,omitempty"` + + // RequireSsl: Whether SSL connections over IP should be enforced or + // not. + RequireSsl bool `json:"requireSsl,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AuthorizedNetworks") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AuthorizedNetworks") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *SqlIpConfig) MarshalJSON() ([]byte, error) { + type NoMethod SqlIpConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SshScript: Response message for 'GenerateSshScript' request. +type SshScript struct { + // Script: The ssh configuration script. + Script string `json:"script,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Script") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Script") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SshScript) MarshalJSON() ([]byte, error) { + type NoMethod SshScript + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SslConfig: SSL configuration information. +type SslConfig struct { + // CaCertificate: Required. Input only. The x509 PEM-encoded certificate + // of the CA that signed the source database server's certificate. The + // replica will use this certificate to verify it's connecting to the + // right host. + CaCertificate string `json:"caCertificate,omitempty"` + + // ClientCertificate: Input only. The x509 PEM-encoded certificate that + // will be used by the replica to authenticate against the source + // database server.If this field is used then the 'client_key' field is + // mandatory. + ClientCertificate string `json:"clientCertificate,omitempty"` + + // ClientKey: Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded + // private key associated with the Client Certificate. If this field is + // used then the 'client_certificate' field is mandatory. + ClientKey string `json:"clientKey,omitempty"` + + // Type: Output only. The ssl config type according to 'client_key', + // 'client_certificate' and 'ca_certificate'. + // + // Possible values: + // "SSL_TYPE_UNSPECIFIED" - Unspecified. + // "SERVER_ONLY" - Only 'ca_certificate' specified. + // "SERVER_CLIENT" - Both server ('ca_certificate'), and client + // ('client_key', 'client_certificate') specified. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CaCertificate") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CaCertificate") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SslConfig) MarshalJSON() ([]byte, error) { + type NoMethod SslConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// StartMigrationJobRequest: Request message for 'StartMigrationJob' +// request. +type StartMigrationJobRequest struct { +} + +// StaticIpConnectivity: The source database will allow incoming +// connections from the destination database's public IP. You can +// retrieve the Cloud SQL instance's public IP from the Cloud SQL +// console or using Cloud SQL APIs. No additional configuration is +// required. +type StaticIpConnectivity struct { +} + +// Status: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs +// and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each +// `Status` message contains three pieces of data: error code, error +// message, and error details. You can find out more about this error +// model and how to work with it in the [API Design +// Guide](https://cloud.google.com/apis/design/errors). +type Status struct { + // Code: The status code, which should be an enum value of + // google.rpc.Code. + Code int64 `json:"code,omitempty"` + + // Details: A list of messages that carry the error details. There is a + // common set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Status) MarshalJSON() ([]byte, error) { + type NoMethod Status + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// StopMigrationJobRequest: Request message for 'StopMigrationJob' +// request. +type StopMigrationJobRequest struct { +} + +// TestIamPermissionsRequest: Request message for `TestIamPermissions` +// method. +type TestIamPermissionsRequest struct { + // Permissions: The set of permissions to check for the `resource`. + // Permissions with wildcards (such as '*' or 'storage.*') are not + // allowed. For more information see [IAM + // Overview](https://cloud.google.com/iam/docs/overview#permissions). + Permissions []string `json:"permissions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Permissions") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Permissions") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { + type NoMethod TestIamPermissionsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TestIamPermissionsResponse: Response message for `TestIamPermissions` +// method. +type TestIamPermissionsResponse struct { + // Permissions: A subset of `TestPermissionsRequest.permissions` that + // the caller is allowed. + Permissions []string `json:"permissions,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Permissions") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Permissions") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod TestIamPermissionsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// VerifyMigrationJobRequest: Request message for 'VerifyMigrationJob' +// request. +type VerifyMigrationJobRequest struct { +} + +// VmCreationConfig: VM creation configuration message +type VmCreationConfig struct { + // Subnet: The subnet name the vm needs to be created in. + Subnet string `json:"subnet,omitempty"` + + // VmMachineType: Required. VM instance machine type to create. + VmMachineType string `json:"vmMachineType,omitempty"` + + // VmZone: The Google Cloud Platform zone to create the VM in. + VmZone string `json:"vmZone,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Subnet") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Subnet") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *VmCreationConfig) MarshalJSON() ([]byte, error) { + type NoMethod VmCreationConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// VmSelectionConfig: VM selection configuration message +type VmSelectionConfig struct { + // VmZone: Required. The Google Cloud Platform zone the VM is located. + VmZone string `json:"vmZone,omitempty"` + + // ForceSendFields is a list of field names (e.g. "VmZone") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "VmZone") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *VmSelectionConfig) MarshalJSON() ([]byte, error) { + type NoMethod VmSelectionConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// VpcPeeringConnectivity: The details of the VPC where the source +// database is located in Google Cloud. We will use this information to +// set up the VPC peering connection between Cloud SQL and this VPC. +type VpcPeeringConnectivity struct { + // Vpc: The name of the VPC network to peer with the Cloud SQL private + // network. + Vpc string `json:"vpc,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Vpc") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Vpc") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *VpcPeeringConnectivity) MarshalJSON() ([]byte, error) { + type NoMethod VpcPeeringConnectivity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "datamigration.projects.locations.get": + +type ProjectsLocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information about a location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.get" call. +// Exactly one of *Location or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Location.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Location{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets information about a location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}", + // "httpMethod": "GET", + // "id": "datamigration.projects.locations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Resource name for the location.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Location" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.list": + +type ProjectsLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists information about the supported locations for this +// service. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/locations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.list" call. +// Exactly one of *ListLocationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListLocationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists information about the supported locations for this service.", + // "flatPath": "v1beta1/projects/{projectsId}/locations", + // "httpMethod": "GET", + // "id": "datamigration.projects.locations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The resource that owns the locations collection, if applicable.", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}/locations", + // "response": { + // "$ref": "ListLocationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "datamigration.projects.locations.connectionProfiles.create": + +type ProjectsLocationsConnectionProfilesCreateCall struct { + s *Service + parent string + connectionprofile *ConnectionProfile + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new connection profile in a given project and +// location. +func (r *ProjectsLocationsConnectionProfilesService) Create(parent string, connectionprofile *ConnectionProfile) *ProjectsLocationsConnectionProfilesCreateCall { + c := &ProjectsLocationsConnectionProfilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.connectionprofile = connectionprofile + return c +} + +// ConnectionProfileId sets the optional parameter +// "connectionProfileId": Required. The connection profile identifier. +func (c *ProjectsLocationsConnectionProfilesCreateCall) ConnectionProfileId(connectionProfileId string) *ProjectsLocationsConnectionProfilesCreateCall { + c.urlParams_.Set("connectionProfileId", connectionProfileId) + return c +} + +// RequestId sets the optional parameter "requestId": A unique id used +// to identify the request. If the server receives two requests with the +// same id, then the second request will be ignored. It is recommended +// to always set this value to a UUID. The id must contain only letters +// (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The +// maximum length is 40 characters. +func (c *ProjectsLocationsConnectionProfilesCreateCall) RequestId(requestId string) *ProjectsLocationsConnectionProfilesCreateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConnectionProfilesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConnectionProfilesCreateCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConnectionProfilesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConnectionProfilesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.connectionprofile) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/connectionProfiles") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.connectionProfiles.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsConnectionProfilesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new connection profile in a given project and location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/connectionProfiles", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.connectionProfiles.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "connectionProfileId": { + // "description": "Required. The connection profile identifier.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent, which owns this collection of connection profiles.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/connectionProfiles", + // "request": { + // "$ref": "ConnectionProfile" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.connectionProfiles.delete": + +type ProjectsLocationsConnectionProfilesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single Database Migration Service connection +// profile. A connection profile can only be deleted if it is not in use +// by any active migration jobs. +func (r *ProjectsLocationsConnectionProfilesService) Delete(name string) *ProjectsLocationsConnectionProfilesDeleteCall { + c := &ProjectsLocationsConnectionProfilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Force sets the optional parameter "force": In case of force delete, +// the CloudSQL replica database is also deleted (only for CloudSQL +// connection profile). +func (c *ProjectsLocationsConnectionProfilesDeleteCall) Force(force bool) *ProjectsLocationsConnectionProfilesDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + return c +} + +// RequestId sets the optional parameter "requestId": A unique id used +// to identify the request. If the server receives two requests with the +// same id, then the second request will be ignored. It is recommended +// to always set this value to a UUID. The id must contain only letters +// (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The +// maximum length is 40 characters. +func (c *ProjectsLocationsConnectionProfilesDeleteCall) RequestId(requestId string) *ProjectsLocationsConnectionProfilesDeleteCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConnectionProfilesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConnectionProfilesDeleteCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConnectionProfilesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConnectionProfilesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.connectionProfiles.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsConnectionProfilesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a single Database Migration Service connection profile. A connection profile can only be deleted if it is not in use by any active migration jobs.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/connectionProfiles/{connectionProfilesId}", + // "httpMethod": "DELETE", + // "id": "datamigration.projects.locations.connectionProfiles.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "force": { + // "description": "In case of force delete, the CloudSQL replica database is also deleted (only for CloudSQL connection profile).", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Required. Name of the connection profile resource to delete.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/connectionProfiles/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.connectionProfiles.get": + +type ProjectsLocationsConnectionProfilesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single connection profile. +func (r *ProjectsLocationsConnectionProfilesService) Get(name string) *ProjectsLocationsConnectionProfilesGetCall { + c := &ProjectsLocationsConnectionProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConnectionProfilesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsConnectionProfilesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionProfilesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConnectionProfilesGetCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConnectionProfilesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConnectionProfilesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.connectionProfiles.get" call. +// Exactly one of *ConnectionProfile or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ConnectionProfile.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsConnectionProfilesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionProfile, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ConnectionProfile{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets details of a single connection profile.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/connectionProfiles/{connectionProfilesId}", + // "httpMethod": "GET", + // "id": "datamigration.projects.locations.connectionProfiles.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the connection profile resource to get.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/connectionProfiles/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "ConnectionProfile" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.connectionProfiles.getIamPolicy": + +type ProjectsLocationsConnectionProfilesGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. +func (r *ProjectsLocationsConnectionProfilesService) GetIamPolicy(resource string) *ProjectsLocationsConnectionProfilesGetIamPolicyCall { + c := &ProjectsLocationsConnectionProfilesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The policy format version to be +// returned. Valid values are 0, 1, and 3. Requests specifying an +// invalid value will be rejected. Requests for policies with any +// conditional bindings must specify version 3. Policies without any +// conditional bindings may specify any valid value or leave the field +// unset. To learn which resources support conditions in their IAM +// policies, see the [IAM +// documentation](https://cloud.google.com/iam/help/conditions/resource-p +// olicies). +func (c *ProjectsLocationsConnectionProfilesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsConnectionProfilesGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConnectionProfilesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsConnectionProfilesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionProfilesGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConnectionProfilesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesGetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConnectionProfilesGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConnectionProfilesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.connectionProfiles.getIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsConnectionProfilesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/connectionProfiles/{connectionProfilesId}:getIamPolicy", + // "httpMethod": "GET", + // "id": "datamigration.projects.locations.connectionProfiles.getIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "options.requestedPolicyVersion": { + // "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/connectionProfiles/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:getIamPolicy", + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.connectionProfiles.list": + +type ProjectsLocationsConnectionProfilesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Retrieve a list of all connection profiles in a given project +// and location. +func (r *ProjectsLocationsConnectionProfilesService) List(parent string) *ProjectsLocationsConnectionProfilesListCall { + c := &ProjectsLocationsConnectionProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": A filter expression that +// filters connection profiles listed in the response. The expression +// must specify the field name, a comparison operator, and the value +// that you want to use for filtering. The value must be a string, a +// number, or a boolean. The comparison operator must be either =, !=, +// >, or <. For example, list connection profiles created this year by +// specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z**. You +// can also filter nested fields. For example, you could specify +// **mySql.username = %lt;my_username%gt;** to list all connection +// profiles configured to connect with a specific username. +func (c *ProjectsLocationsConnectionProfilesListCall) Filter(filter string) *ProjectsLocationsConnectionProfilesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": the order by fields +// for the result. +func (c *ProjectsLocationsConnectionProfilesListCall) OrderBy(orderBy string) *ProjectsLocationsConnectionProfilesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of connection profiles to return. The service may return fewer than +// this value. If unspecified, at most 50 connection profiles will be +// returned. The maximum value is 1000; values above 1000 will be +// coerced to 1000. +func (c *ProjectsLocationsConnectionProfilesListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionProfilesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListConnectionProfiles` call. Provide this +// to retrieve the subsequent page. When paginating, all other +// parameters provided to `ListConnectionProfiles` must match the call +// that provided the page token. +func (c *ProjectsLocationsConnectionProfilesListCall) PageToken(pageToken string) *ProjectsLocationsConnectionProfilesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConnectionProfilesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsConnectionProfilesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionProfilesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConnectionProfilesListCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConnectionProfilesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConnectionProfilesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/connectionProfiles") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.connectionProfiles.list" call. +// Exactly one of *ListConnectionProfilesResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListConnectionProfilesResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsConnectionProfilesListCall) Do(opts ...googleapi.CallOption) (*ListConnectionProfilesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListConnectionProfilesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Retrieve a list of all connection profiles in a given project and location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/connectionProfiles", + // "httpMethod": "GET", + // "id": "datamigration.projects.locations.connectionProfiles.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "A filter expression that filters connection profiles listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, \u003e, or \u003c. For example, list connection profiles created this year by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z**. You can also filter nested fields. For example, you could specify **mySql.username = %lt;my_username%gt;** to list all connection profiles configured to connect with a specific username.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "the order by fields for the result.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of connection profiles to return. The service may return fewer than this value. If unspecified, at most 50 connection profiles will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `ListConnectionProfiles` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListConnectionProfiles` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent, which owns this collection of connection profiles.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/connectionProfiles", + // "response": { + // "$ref": "ListConnectionProfilesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsConnectionProfilesListCall) Pages(ctx context.Context, f func(*ListConnectionProfilesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "datamigration.projects.locations.connectionProfiles.patch": + +type ProjectsLocationsConnectionProfilesPatchCall struct { + s *Service + name string + connectionprofile *ConnectionProfile + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Update the configuration of a single connection profile. +func (r *ProjectsLocationsConnectionProfilesService) Patch(name string, connectionprofile *ConnectionProfile) *ProjectsLocationsConnectionProfilesPatchCall { + c := &ProjectsLocationsConnectionProfilesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.connectionprofile = connectionprofile + return c +} + +// RequestId sets the optional parameter "requestId": A unique id used +// to identify the request. If the server receives two requests with the +// same id, then the second request will be ignored. It is recommended +// to always set this value to a UUID. The id must contain only letters +// (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The +// maximum length is 40 characters. +func (c *ProjectsLocationsConnectionProfilesPatchCall) RequestId(requestId string) *ProjectsLocationsConnectionProfilesPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Field +// mask is used to specify the fields to be overwritten in the +// connection profile resource by the update. +func (c *ProjectsLocationsConnectionProfilesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConnectionProfilesPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConnectionProfilesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConnectionProfilesPatchCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConnectionProfilesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConnectionProfilesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.connectionprofile) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.connectionProfiles.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsConnectionProfilesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Update the configuration of a single connection profile.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/connectionProfiles/{connectionProfilesId}", + // "httpMethod": "PATCH", + // "id": "datamigration.projects.locations.connectionProfiles.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of this connection profile resource in the form of projects/{project}/locations/{location}/instances/{instance}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/connectionProfiles/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + // "location": "query", + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. Field mask is used to specify the fields to be overwritten in the connection profile resource by the update.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "ConnectionProfile" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.connectionProfiles.setIamPolicy": + +type ProjectsLocationsConnectionProfilesSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +func (r *ProjectsLocationsConnectionProfilesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsConnectionProfilesSetIamPolicyCall { + c := &ProjectsLocationsConnectionProfilesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConnectionProfilesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConnectionProfilesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesSetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConnectionProfilesSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConnectionProfilesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.connectionProfiles.setIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsConnectionProfilesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/connectionProfiles/{connectionProfilesId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.connectionProfiles.setIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/connectionProfiles/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.connectionProfiles.testIamPermissions": + +type ProjectsLocationsConnectionProfilesTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. +func (r *ProjectsLocationsConnectionProfilesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsConnectionProfilesTestIamPermissionsCall { + c := &ProjectsLocationsConnectionProfilesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConnectionProfilesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConnectionProfilesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConnectionProfilesTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConnectionProfilesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.connectionProfiles.testIamPermissions" call. +// Exactly one of *TestIamPermissionsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsConnectionProfilesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &TestIamPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/connectionProfiles/{connectionProfilesId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.connectionProfiles.testIamPermissions", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/connectionProfiles/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:testIamPermissions", + // "request": { + // "$ref": "TestIamPermissionsRequest" + // }, + // "response": { + // "$ref": "TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.migrationJobs.create": + +type ProjectsLocationsMigrationJobsCreateCall struct { + s *Service + parent string + migrationjob *MigrationJob + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new migration job in a given project and location. +func (r *ProjectsLocationsMigrationJobsService) Create(parent string, migrationjob *MigrationJob) *ProjectsLocationsMigrationJobsCreateCall { + c := &ProjectsLocationsMigrationJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.migrationjob = migrationjob + return c +} + +// MigrationJobId sets the optional parameter "migrationJobId": +// Required. The ID of the instance to create. +func (c *ProjectsLocationsMigrationJobsCreateCall) MigrationJobId(migrationJobId string) *ProjectsLocationsMigrationJobsCreateCall { + c.urlParams_.Set("migrationJobId", migrationJobId) + return c +} + +// RequestId sets the optional parameter "requestId": A unique id used +// to identify the request. If the server receives two requests with the +// same id, then the second request will be ignored. It is recommended +// to always set this value to a UUID. The id must contain only letters +// (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The +// maximum length is 40 characters. +func (c *ProjectsLocationsMigrationJobsCreateCall) RequestId(requestId string) *ProjectsLocationsMigrationJobsCreateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsMigrationJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsMigrationJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsMigrationJobsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMigrationJobsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.migrationjob) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/migrationJobs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.migrationJobs.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsMigrationJobsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new migration job in a given project and location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.migrationJobs.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "migrationJobId": { + // "description": "Required. The ID of the instance to create.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent, which owns this collection of migration jobs.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/migrationJobs", + // "request": { + // "$ref": "MigrationJob" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.migrationJobs.delete": + +type ProjectsLocationsMigrationJobsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single migration job. +func (r *ProjectsLocationsMigrationJobsService) Delete(name string) *ProjectsLocationsMigrationJobsDeleteCall { + c := &ProjectsLocationsMigrationJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Force sets the optional parameter "force": The destination CloudSQL +// connection profile is always deleted with the migration job. In case +// of force delete, the destination CloudSQL replica database is also +// deleted. +func (c *ProjectsLocationsMigrationJobsDeleteCall) Force(force bool) *ProjectsLocationsMigrationJobsDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + return c +} + +// RequestId sets the optional parameter "requestId": A unique id used +// to identify the request. If the server receives two requests with the +// same id, then the second request will be ignored. It is recommended +// to always set this value to a UUID. The id must contain only letters +// (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The +// maximum length is 40 characters. +func (c *ProjectsLocationsMigrationJobsDeleteCall) RequestId(requestId string) *ProjectsLocationsMigrationJobsDeleteCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsMigrationJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsMigrationJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsMigrationJobsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMigrationJobsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.migrationJobs.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsMigrationJobsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a single migration job.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}", + // "httpMethod": "DELETE", + // "id": "datamigration.projects.locations.migrationJobs.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "force": { + // "description": "The destination CloudSQL connection profile is always deleted with the migration job. In case of force delete, the destination CloudSQL replica database is also deleted.", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Required. Name of the migration job resource to delete.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.migrationJobs.generateSshScript": + +type ProjectsLocationsMigrationJobsGenerateSshScriptCall struct { + s *Service + migrationJob string + generatesshscriptrequest *GenerateSshScriptRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// GenerateSshScript: Generate a SSH configuration script to configure +// the reverse SSH connectivity. +func (r *ProjectsLocationsMigrationJobsService) GenerateSshScript(migrationJob string, generatesshscriptrequest *GenerateSshScriptRequest) *ProjectsLocationsMigrationJobsGenerateSshScriptCall { + c := &ProjectsLocationsMigrationJobsGenerateSshScriptCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.migrationJob = migrationJob + c.generatesshscriptrequest = generatesshscriptrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsMigrationJobsGenerateSshScriptCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsGenerateSshScriptCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsMigrationJobsGenerateSshScriptCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsGenerateSshScriptCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsMigrationJobsGenerateSshScriptCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMigrationJobsGenerateSshScriptCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.generatesshscriptrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+migrationJob}:generateSshScript") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "migrationJob": c.migrationJob, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.migrationJobs.generateSshScript" call. +// Exactly one of *SshScript or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *SshScript.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsMigrationJobsGenerateSshScriptCall) Do(opts ...googleapi.CallOption) (*SshScript, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &SshScript{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Generate a SSH configuration script to configure the reverse SSH connectivity.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:generateSshScript", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.migrationJobs.generateSshScript", + // "parameterOrder": [ + // "migrationJob" + // ], + // "parameters": { + // "migrationJob": { + // "description": "Name of the migration job resource to generate the SSH script.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+migrationJob}:generateSshScript", + // "request": { + // "$ref": "GenerateSshScriptRequest" + // }, + // "response": { + // "$ref": "SshScript" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.migrationJobs.get": + +type ProjectsLocationsMigrationJobsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single migration job. +func (r *ProjectsLocationsMigrationJobsService) Get(name string) *ProjectsLocationsMigrationJobsGetCall { + c := &ProjectsLocationsMigrationJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsMigrationJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsMigrationJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMigrationJobsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsMigrationJobsGetCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsMigrationJobsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMigrationJobsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.migrationJobs.get" call. +// Exactly one of *MigrationJob or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *MigrationJob.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsMigrationJobsGetCall) Do(opts ...googleapi.CallOption) (*MigrationJob, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &MigrationJob{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets details of a single migration job.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}", + // "httpMethod": "GET", + // "id": "datamigration.projects.locations.migrationJobs.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the migration job resource to get.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "MigrationJob" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.migrationJobs.getIamPolicy": + +type ProjectsLocationsMigrationJobsGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. +func (r *ProjectsLocationsMigrationJobsService) GetIamPolicy(resource string) *ProjectsLocationsMigrationJobsGetIamPolicyCall { + c := &ProjectsLocationsMigrationJobsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The policy format version to be +// returned. Valid values are 0, 1, and 3. Requests specifying an +// invalid value will be rejected. Requests for policies with any +// conditional bindings must specify version 3. Policies without any +// conditional bindings may specify any valid value or leave the field +// unset. To learn which resources support conditions in their IAM +// policies, see the [IAM +// documentation](https://cloud.google.com/iam/help/conditions/resource-p +// olicies). +func (c *ProjectsLocationsMigrationJobsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsMigrationJobsGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsMigrationJobsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsMigrationJobsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsMigrationJobsGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsMigrationJobsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsGetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsMigrationJobsGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMigrationJobsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.migrationJobs.getIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsMigrationJobsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:getIamPolicy", + // "httpMethod": "GET", + // "id": "datamigration.projects.locations.migrationJobs.getIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "options.requestedPolicyVersion": { + // "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:getIamPolicy", + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.migrationJobs.list": + +type ProjectsLocationsMigrationJobsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists migration jobs in a given project and location. +func (r *ProjectsLocationsMigrationJobsService) List(parent string) *ProjectsLocationsMigrationJobsListCall { + c := &ProjectsLocationsMigrationJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": A filter expression that +// filters migration jobs listed in the response. The expression must +// specify the field name, a comparison operator, and the value that you +// want to use for filtering. The value must be a string, a number, or a +// boolean. The comparison operator must be either =, !=, >, or <. For +// example, list migration jobs created this year by specifying +// **createTime %gt; 2020-01-01T00:00:00.000000000Z.** You can also +// filter nested fields. For example, you could specify +// **reverseSshConnectivity.vmIp = "1.2.3.4"** to select all migration +// jobs connecting through the specific SSH tunnel bastion. +func (c *ProjectsLocationsMigrationJobsListCall) Filter(filter string) *ProjectsLocationsMigrationJobsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Sort the results based +// on the migration job name. Valid values are: "name", "name asc", and +// "name desc". +func (c *ProjectsLocationsMigrationJobsListCall) OrderBy(orderBy string) *ProjectsLocationsMigrationJobsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of migration jobs to return. The service may return fewer than this +// value. If unspecified, at most 50 migration jobs will be returned. +// The maximum value is 1000; values above 1000 will be coerced to 1000. +func (c *ProjectsLocationsMigrationJobsListCall) PageSize(pageSize int64) *ProjectsLocationsMigrationJobsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The nextPageToken +// value received in the previous call to migrationJobs.list, used in +// the subsequent request to retrieve the next page of results. On first +// call this should be left blank. When paginating, all other parameters +// provided to migrationJobs.list must match the call that provided the +// page token. +func (c *ProjectsLocationsMigrationJobsListCall) PageToken(pageToken string) *ProjectsLocationsMigrationJobsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsMigrationJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsMigrationJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMigrationJobsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsMigrationJobsListCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsMigrationJobsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMigrationJobsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/migrationJobs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.migrationJobs.list" call. +// Exactly one of *ListMigrationJobsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListMigrationJobsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsMigrationJobsListCall) Do(opts ...googleapi.CallOption) (*ListMigrationJobsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListMigrationJobsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists migration jobs in a given project and location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs", + // "httpMethod": "GET", + // "id": "datamigration.projects.locations.migrationJobs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "A filter expression that filters migration jobs listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, \u003e, or \u003c. For example, list migration jobs created this year by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z.** You can also filter nested fields. For example, you could specify **reverseSshConnectivity.vmIp = \"1.2.3.4\"** to select all migration jobs connecting through the specific SSH tunnel bastion.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Sort the results based on the migration job name. Valid values are: \"name\", \"name asc\", and \"name desc\".", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of migration jobs to return. The service may return fewer than this value. If unspecified, at most 50 migration jobs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The nextPageToken value received in the previous call to migrationJobs.list, used in the subsequent request to retrieve the next page of results. On first call this should be left blank. When paginating, all other parameters provided to migrationJobs.list must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent, which owns this collection of migrationJobs.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/migrationJobs", + // "response": { + // "$ref": "ListMigrationJobsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsMigrationJobsListCall) Pages(ctx context.Context, f func(*ListMigrationJobsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "datamigration.projects.locations.migrationJobs.patch": + +type ProjectsLocationsMigrationJobsPatchCall struct { + s *Service + name string + migrationjob *MigrationJob + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the parameters of a single migration job. +func (r *ProjectsLocationsMigrationJobsService) Patch(name string, migrationjob *MigrationJob) *ProjectsLocationsMigrationJobsPatchCall { + c := &ProjectsLocationsMigrationJobsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.migrationjob = migrationjob + return c +} + +// RequestId sets the optional parameter "requestId": A unique id used +// to identify the request. If the server receives two requests with the +// same id, then the second request will be ignored. It is recommended +// to always set this value to a UUID. The id must contain only letters +// (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The +// maximum length is 40 characters. +func (c *ProjectsLocationsMigrationJobsPatchCall) RequestId(requestId string) *ProjectsLocationsMigrationJobsPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Field +// mask is used to specify the fields to be overwritten in the migration +// job resource by the update. +func (c *ProjectsLocationsMigrationJobsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsMigrationJobsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsMigrationJobsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsMigrationJobsPatchCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsMigrationJobsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMigrationJobsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.migrationjob) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.migrationJobs.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsMigrationJobsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates the parameters of a single migration job.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}", + // "httpMethod": "PATCH", + // "id": "datamigration.projects.locations.migrationJobs.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name (URI) of this migration job resource, in the form of: projects/{project}/locations/{location}/instances/{instance}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "A unique id used to identify the request. If the server receives two requests with the same id, then the second request will be ignored. It is recommended to always set this value to a UUID. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + // "location": "query", + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. Field mask is used to specify the fields to be overwritten in the migration job resource by the update.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "MigrationJob" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.migrationJobs.promote": + +type ProjectsLocationsMigrationJobsPromoteCall struct { + s *Service + name string + promotemigrationjobrequest *PromoteMigrationJobRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Promote: Promote a migration job, stopping replication to the +// destination and promoting the destination to be a standalone +// database. +func (r *ProjectsLocationsMigrationJobsService) Promote(name string, promotemigrationjobrequest *PromoteMigrationJobRequest) *ProjectsLocationsMigrationJobsPromoteCall { + c := &ProjectsLocationsMigrationJobsPromoteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.promotemigrationjobrequest = promotemigrationjobrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsMigrationJobsPromoteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsPromoteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsMigrationJobsPromoteCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsPromoteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsMigrationJobsPromoteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMigrationJobsPromoteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.promotemigrationjobrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:promote") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.migrationJobs.promote" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsMigrationJobsPromoteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Promote a migration job, stopping replication to the destination and promoting the destination to be a standalone database.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:promote", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.migrationJobs.promote", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Name of the migration job resource to promote.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:promote", + // "request": { + // "$ref": "PromoteMigrationJobRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.migrationJobs.restart": + +type ProjectsLocationsMigrationJobsRestartCall struct { + s *Service + name string + restartmigrationjobrequest *RestartMigrationJobRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Restart: Restart a stopped or failed migration job, resetting the +// destination instance to its original state and starting the migration +// process from scratch. +func (r *ProjectsLocationsMigrationJobsService) Restart(name string, restartmigrationjobrequest *RestartMigrationJobRequest) *ProjectsLocationsMigrationJobsRestartCall { + c := &ProjectsLocationsMigrationJobsRestartCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.restartmigrationjobrequest = restartmigrationjobrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsMigrationJobsRestartCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsRestartCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsMigrationJobsRestartCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsRestartCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsMigrationJobsRestartCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMigrationJobsRestartCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.restartmigrationjobrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:restart") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.migrationJobs.restart" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsMigrationJobsRestartCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Restart a stopped or failed migration job, resetting the destination instance to its original state and starting the migration process from scratch.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:restart", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.migrationJobs.restart", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Name of the migration job resource to restart.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:restart", + // "request": { + // "$ref": "RestartMigrationJobRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.migrationJobs.resume": + +type ProjectsLocationsMigrationJobsResumeCall struct { + s *Service + name string + resumemigrationjobrequest *ResumeMigrationJobRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Resume: Resume a migration job that is currently stopped and is +// resumable (was stopped during CDC phase). +func (r *ProjectsLocationsMigrationJobsService) Resume(name string, resumemigrationjobrequest *ResumeMigrationJobRequest) *ProjectsLocationsMigrationJobsResumeCall { + c := &ProjectsLocationsMigrationJobsResumeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.resumemigrationjobrequest = resumemigrationjobrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsMigrationJobsResumeCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsResumeCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsMigrationJobsResumeCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsResumeCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsMigrationJobsResumeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMigrationJobsResumeCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.resumemigrationjobrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:resume") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.migrationJobs.resume" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsMigrationJobsResumeCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Resume a migration job that is currently stopped and is resumable (was stopped during CDC phase).", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:resume", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.migrationJobs.resume", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Name of the migration job resource to resume.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:resume", + // "request": { + // "$ref": "ResumeMigrationJobRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.migrationJobs.setIamPolicy": + +type ProjectsLocationsMigrationJobsSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +func (r *ProjectsLocationsMigrationJobsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsMigrationJobsSetIamPolicyCall { + c := &ProjectsLocationsMigrationJobsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsMigrationJobsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsMigrationJobsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsSetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsMigrationJobsSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMigrationJobsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.migrationJobs.setIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsMigrationJobsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.migrationJobs.setIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.migrationJobs.start": + +type ProjectsLocationsMigrationJobsStartCall struct { + s *Service + name string + startmigrationjobrequest *StartMigrationJobRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Start: Start an already created migration job. +func (r *ProjectsLocationsMigrationJobsService) Start(name string, startmigrationjobrequest *StartMigrationJobRequest) *ProjectsLocationsMigrationJobsStartCall { + c := &ProjectsLocationsMigrationJobsStartCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.startmigrationjobrequest = startmigrationjobrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsMigrationJobsStartCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsStartCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsMigrationJobsStartCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsStartCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsMigrationJobsStartCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMigrationJobsStartCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.startmigrationjobrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:start") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.migrationJobs.start" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsMigrationJobsStartCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Start an already created migration job.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:start", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.migrationJobs.start", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Name of the migration job resource to start.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:start", + // "request": { + // "$ref": "StartMigrationJobRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.migrationJobs.stop": + +type ProjectsLocationsMigrationJobsStopCall struct { + s *Service + name string + stopmigrationjobrequest *StopMigrationJobRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Stop: Stops a running migration job. +func (r *ProjectsLocationsMigrationJobsService) Stop(name string, stopmigrationjobrequest *StopMigrationJobRequest) *ProjectsLocationsMigrationJobsStopCall { + c := &ProjectsLocationsMigrationJobsStopCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.stopmigrationjobrequest = stopmigrationjobrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsMigrationJobsStopCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsStopCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsMigrationJobsStopCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsStopCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsMigrationJobsStopCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMigrationJobsStopCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.stopmigrationjobrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:stop") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.migrationJobs.stop" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsMigrationJobsStopCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Stops a running migration job.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:stop", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.migrationJobs.stop", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Name of the migration job resource to stop.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:stop", + // "request": { + // "$ref": "StopMigrationJobRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.migrationJobs.testIamPermissions": + +type ProjectsLocationsMigrationJobsTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. +func (r *ProjectsLocationsMigrationJobsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsMigrationJobsTestIamPermissionsCall { + c := &ProjectsLocationsMigrationJobsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsMigrationJobsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsMigrationJobsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsMigrationJobsTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMigrationJobsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.migrationJobs.testIamPermissions" call. +// Exactly one of *TestIamPermissionsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsMigrationJobsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &TestIamPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.migrationJobs.testIamPermissions", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:testIamPermissions", + // "request": { + // "$ref": "TestIamPermissionsRequest" + // }, + // "response": { + // "$ref": "TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.migrationJobs.verify": + +type ProjectsLocationsMigrationJobsVerifyCall struct { + s *Service + name string + verifymigrationjobrequest *VerifyMigrationJobRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Verify: Verify a migration job, making sure the destination can reach +// the source and that all configuration and prerequisites are met. +func (r *ProjectsLocationsMigrationJobsService) Verify(name string, verifymigrationjobrequest *VerifyMigrationJobRequest) *ProjectsLocationsMigrationJobsVerifyCall { + c := &ProjectsLocationsMigrationJobsVerifyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.verifymigrationjobrequest = verifymigrationjobrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsMigrationJobsVerifyCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsVerifyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsMigrationJobsVerifyCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsVerifyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsMigrationJobsVerifyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMigrationJobsVerifyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.verifymigrationjobrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:verify") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.migrationJobs.verify" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsMigrationJobsVerifyCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Verify a migration job, making sure the destination can reach the source and that all configuration and prerequisites are met.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:verify", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.migrationJobs.verify", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Name of the migration job resource to verify.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:verify", + // "request": { + // "$ref": "VerifyMigrationJobRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.operations.cancel": + +type ProjectsLocationsOperationsCancelCall struct { + s *Service + name string + canceloperationrequest *CancelOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. +func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall { + c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.canceloperationrequest = canceloperationrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.operations.cancel" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.operations.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be cancelled.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:cancel", + // "request": { + // "$ref": "CancelOperationRequest" + // }, + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.operations.delete": + +type ProjectsLocationsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a long-running operation. This method indicates that +// the client is no longer interested in the operation result. It does +// not cancel the operation. If the server doesn't support this method, +// it returns `google.rpc.Code.UNIMPLEMENTED`. +func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall { + c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.operations.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "datamigration.projects.locations.operations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be deleted.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.operations.get": + +type ProjectsLocationsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { + c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.operations.get" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "datamigration.projects.locations.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.operations.list": + +type ProjectsLocationsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to +// override the binding to use different resource name schemes, such as +// `users/*/operations`. To override the binding, API services can add a +// binding such as "/v1/{name=users/*}/operations" to their service +// configuration. For backwards compatibility, the default name includes +// the operations collection id, however overriding users must ensure +// the name binding is the parent resource, without the operations +// collection id. +func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { + c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.operations.list" call. +// Exactly one of *ListOperationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations", + // "httpMethod": "GET", + // "id": "datamigration.projects.locations.operations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}/operations", + // "response": { + // "$ref": "ListOperationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} diff --git a/dataproc/v1/dataproc-api.json b/dataproc/v1/dataproc-api.json index 44440181494..740733ae14a 100644 --- a/dataproc/v1/dataproc-api.json +++ b/dataproc/v1/dataproc-api.json @@ -2134,7 +2134,7 @@ } } }, - "revision": "20201015", + "revision": "20201029", "rootUrl": "https://dataproc.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2244,7 +2244,6 @@ "id": "Binding", "properties": { "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", "type": "string" }, "condition": { @@ -3297,7 +3296,7 @@ "type": "string" }, "kmsKeyUri": { - "description": "Required. The uri of the KMS key used to encrypt various sensitive files.", + "description": "Optional. The uri of the KMS key used to encrypt various sensitive files.", "type": "string" }, "realm": { @@ -3305,7 +3304,7 @@ "type": "string" }, "rootPrincipalPasswordUri": { - "description": "Required. The Cloud Storage URI of a KMS encrypted file containing the root principal password.", + "description": "Optional. The Cloud Storage URI of a KMS encrypted file containing the root principal password.", "type": "string" }, "tgtLifetimeHours": { diff --git a/dataproc/v1/dataproc-gen.go b/dataproc/v1/dataproc-gen.go index 9783838402b..2c906b4f9bf 100644 --- a/dataproc/v1/dataproc-gen.go +++ b/dataproc/v1/dataproc-gen.go @@ -515,8 +515,6 @@ func (s *BasicYarnAutoscalingConfig) UnmarshalJSON(data []byte) error { // Binding: Associates members with a role. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. BindingId string `json:"bindingId,omitempty"` // Condition: The condition that is associated with this binding.If the @@ -2138,7 +2136,7 @@ type KerberosConfig struct { // self-signed certificate. KeystoreUri string `json:"keystoreUri,omitempty"` - // KmsKeyUri: Required. The uri of the KMS key used to encrypt various + // KmsKeyUri: Optional. The uri of the KMS key used to encrypt various // sensitive files. KmsKeyUri string `json:"kmsKeyUri,omitempty"` @@ -2146,7 +2144,7 @@ type KerberosConfig struct { // specified, the uppercased domain of hostnames will be the realm. Realm string `json:"realm,omitempty"` - // RootPrincipalPasswordUri: Required. The Cloud Storage URI of a KMS + // RootPrincipalPasswordUri: Optional. The Cloud Storage URI of a KMS // encrypted file containing the root principal password. RootPrincipalPasswordUri string `json:"rootPrincipalPasswordUri,omitempty"` @@ -4085,7 +4083,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Header() http.Header { func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4224,7 +4222,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) Header() http.Header { func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4365,7 +4363,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Header() http.Header { func (c *ProjectsLocationsAutoscalingPoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4502,7 +4500,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Header() http.Hea func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4666,7 +4664,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesListCall) Header() http.Header { func (c *ProjectsLocationsAutoscalingPoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4835,7 +4833,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Header() http.Hea func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4980,7 +4978,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Header() ht func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5121,7 +5119,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Header() http.Header { func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5261,7 +5259,7 @@ func (c *ProjectsLocationsWorkflowTemplatesCreateCall) Header() http.Header { func (c *ProjectsLocationsWorkflowTemplatesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5408,7 +5406,7 @@ func (c *ProjectsLocationsWorkflowTemplatesDeleteCall) Header() http.Header { func (c *ProjectsLocationsWorkflowTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5564,7 +5562,7 @@ func (c *ProjectsLocationsWorkflowTemplatesGetCall) Header() http.Header { func (c *ProjectsLocationsWorkflowTemplatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5707,7 +5705,7 @@ func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) Header() http.Heade func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5858,7 +5856,7 @@ func (c *ProjectsLocationsWorkflowTemplatesInstantiateCall) Header() http.Header func (c *ProjectsLocationsWorkflowTemplatesInstantiateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6023,7 +6021,7 @@ func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) Header() http. func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6191,7 +6189,7 @@ func (c *ProjectsLocationsWorkflowTemplatesListCall) Header() http.Header { func (c *ProjectsLocationsWorkflowTemplatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6360,7 +6358,7 @@ func (c *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) Header() http.Heade func (c *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6505,7 +6503,7 @@ func (c *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) Header() http func (c *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6646,7 +6644,7 @@ func (c *ProjectsLocationsWorkflowTemplatesUpdateCall) Header() http.Header { func (c *ProjectsLocationsWorkflowTemplatesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6786,7 +6784,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesCreateCall) Header() http.Header { func (c *ProjectsRegionsAutoscalingPoliciesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6925,7 +6923,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesDeleteCall) Header() http.Header { func (c *ProjectsRegionsAutoscalingPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7066,7 +7064,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesGetCall) Header() http.Header { func (c *ProjectsRegionsAutoscalingPoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7203,7 +7201,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) Header() http.Heade func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7367,7 +7365,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesListCall) Header() http.Header { func (c *ProjectsRegionsAutoscalingPoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7536,7 +7534,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) Header() http.Heade func (c *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7681,7 +7679,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) Header() http func (c *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7822,7 +7820,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesUpdateCall) Header() http.Header { func (c *ProjectsRegionsAutoscalingPoliciesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7981,7 +7979,7 @@ func (c *ProjectsRegionsClustersCreateCall) Header() http.Header { func (c *ProjectsRegionsClustersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8160,7 +8158,7 @@ func (c *ProjectsRegionsClustersDeleteCall) Header() http.Header { func (c *ProjectsRegionsClustersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8327,7 +8325,7 @@ func (c *ProjectsRegionsClustersDiagnoseCall) Header() http.Header { func (c *ProjectsRegionsClustersDiagnoseCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8495,7 +8493,7 @@ func (c *ProjectsRegionsClustersGetCall) Header() http.Header { func (c *ProjectsRegionsClustersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8647,7 +8645,7 @@ func (c *ProjectsRegionsClustersGetIamPolicyCall) Header() http.Header { func (c *ProjectsRegionsClustersGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8831,7 +8829,7 @@ func (c *ProjectsRegionsClustersListCall) Header() http.Header { func (c *ProjectsRegionsClustersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9067,7 +9065,7 @@ func (c *ProjectsRegionsClustersPatchCall) Header() http.Header { func (c *ProjectsRegionsClustersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9241,7 +9239,7 @@ func (c *ProjectsRegionsClustersSetIamPolicyCall) Header() http.Header { func (c *ProjectsRegionsClustersSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9386,7 +9384,7 @@ func (c *ProjectsRegionsClustersTestIamPermissionsCall) Header() http.Header { func (c *ProjectsRegionsClustersTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9535,7 +9533,7 @@ func (c *ProjectsRegionsJobsCancelCall) Header() http.Header { func (c *ProjectsRegionsJobsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9693,7 +9691,7 @@ func (c *ProjectsRegionsJobsDeleteCall) Header() http.Header { func (c *ProjectsRegionsJobsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9853,7 +9851,7 @@ func (c *ProjectsRegionsJobsGetCall) Header() http.Header { func (c *ProjectsRegionsJobsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10005,7 +10003,7 @@ func (c *ProjectsRegionsJobsGetIamPolicyCall) Header() http.Header { func (c *ProjectsRegionsJobsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10206,7 +10204,7 @@ func (c *ProjectsRegionsJobsListCall) Header() http.Header { func (c *ProjectsRegionsJobsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10420,7 +10418,7 @@ func (c *ProjectsRegionsJobsPatchCall) Header() http.Header { func (c *ProjectsRegionsJobsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10583,7 +10581,7 @@ func (c *ProjectsRegionsJobsSetIamPolicyCall) Header() http.Header { func (c *ProjectsRegionsJobsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10725,7 +10723,7 @@ func (c *ProjectsRegionsJobsSubmitCall) Header() http.Header { func (c *ProjectsRegionsJobsSubmitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10874,7 +10872,7 @@ func (c *ProjectsRegionsJobsSubmitAsOperationCall) Header() http.Header { func (c *ProjectsRegionsJobsSubmitAsOperationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11026,7 +11024,7 @@ func (c *ProjectsRegionsJobsTestIamPermissionsCall) Header() http.Header { func (c *ProjectsRegionsJobsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11173,7 +11171,7 @@ func (c *ProjectsRegionsOperationsCancelCall) Header() http.Header { func (c *ProjectsRegionsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11306,7 +11304,7 @@ func (c *ProjectsRegionsOperationsDeleteCall) Header() http.Header { func (c *ProjectsRegionsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11449,7 +11447,7 @@ func (c *ProjectsRegionsOperationsGetCall) Header() http.Header { func (c *ProjectsRegionsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11586,7 +11584,7 @@ func (c *ProjectsRegionsOperationsGetIamPolicyCall) Header() http.Header { func (c *ProjectsRegionsOperationsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11765,7 +11763,7 @@ func (c *ProjectsRegionsOperationsListCall) Header() http.Header { func (c *ProjectsRegionsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11939,7 +11937,7 @@ func (c *ProjectsRegionsOperationsSetIamPolicyCall) Header() http.Header { func (c *ProjectsRegionsOperationsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12084,7 +12082,7 @@ func (c *ProjectsRegionsOperationsTestIamPermissionsCall) Header() http.Header { func (c *ProjectsRegionsOperationsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12224,7 +12222,7 @@ func (c *ProjectsRegionsWorkflowTemplatesCreateCall) Header() http.Header { func (c *ProjectsRegionsWorkflowTemplatesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12371,7 +12369,7 @@ func (c *ProjectsRegionsWorkflowTemplatesDeleteCall) Header() http.Header { func (c *ProjectsRegionsWorkflowTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12527,7 +12525,7 @@ func (c *ProjectsRegionsWorkflowTemplatesGetCall) Header() http.Header { func (c *ProjectsRegionsWorkflowTemplatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12670,7 +12668,7 @@ func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) Header() http.Header func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12821,7 +12819,7 @@ func (c *ProjectsRegionsWorkflowTemplatesInstantiateCall) Header() http.Header { func (c *ProjectsRegionsWorkflowTemplatesInstantiateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12986,7 +12984,7 @@ func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) Header() http.He func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13154,7 +13152,7 @@ func (c *ProjectsRegionsWorkflowTemplatesListCall) Header() http.Header { func (c *ProjectsRegionsWorkflowTemplatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13323,7 +13321,7 @@ func (c *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) Header() http.Header func (c *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13468,7 +13466,7 @@ func (c *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) Header() http.H func (c *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13609,7 +13607,7 @@ func (c *ProjectsRegionsWorkflowTemplatesUpdateCall) Header() http.Header { func (c *ProjectsRegionsWorkflowTemplatesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/dataproc/v1beta2/dataproc-api.json b/dataproc/v1beta2/dataproc-api.json index 7dc6aa754e6..f5f86cf8b44 100644 --- a/dataproc/v1beta2/dataproc-api.json +++ b/dataproc/v1beta2/dataproc-api.json @@ -2247,7 +2247,7 @@ } } }, - "revision": "20201015", + "revision": "20201029", "rootUrl": "https://dataproc.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2357,7 +2357,6 @@ "id": "Binding", "properties": { "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", "type": "string" }, "condition": { @@ -3432,7 +3431,7 @@ "type": "string" }, "kmsKeyUri": { - "description": "Required. The uri of the KMS key used to encrypt various sensitive files.", + "description": "Optional. The uri of the KMS key used to encrypt various sensitive files.", "type": "string" }, "realm": { @@ -3440,7 +3439,7 @@ "type": "string" }, "rootPrincipalPasswordUri": { - "description": "Required. The Cloud Storage URI of a KMS encrypted file containing the root principal password.", + "description": "Optional. The Cloud Storage URI of a KMS encrypted file containing the root principal password.", "type": "string" }, "tgtLifetimeHours": { diff --git a/dataproc/v1beta2/dataproc-gen.go b/dataproc/v1beta2/dataproc-gen.go index 0ba4ad3d95d..5eb7cd9de6a 100644 --- a/dataproc/v1beta2/dataproc-gen.go +++ b/dataproc/v1beta2/dataproc-gen.go @@ -511,8 +511,6 @@ func (s *BasicYarnAutoscalingConfig) UnmarshalJSON(data []byte) error { // Binding: Associates members with a role. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. BindingId string `json:"bindingId,omitempty"` // Condition: The condition that is associated with this binding.If the @@ -2185,7 +2183,7 @@ type KerberosConfig struct { // self-signed certificate. KeystoreUri string `json:"keystoreUri,omitempty"` - // KmsKeyUri: Required. The uri of the KMS key used to encrypt various + // KmsKeyUri: Optional. The uri of the KMS key used to encrypt various // sensitive files. KmsKeyUri string `json:"kmsKeyUri,omitempty"` @@ -2193,7 +2191,7 @@ type KerberosConfig struct { // specified, the uppercased domain of hostnames will be the realm. Realm string `json:"realm,omitempty"` - // RootPrincipalPasswordUri: Required. The Cloud Storage URI of a KMS + // RootPrincipalPasswordUri: Optional. The Cloud Storage URI of a KMS // encrypted file containing the root principal password. RootPrincipalPasswordUri string `json:"rootPrincipalPasswordUri,omitempty"` @@ -4318,7 +4316,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Header() http.Header { func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4457,7 +4455,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) Header() http.Header { func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4598,7 +4596,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Header() http.Header { func (c *ProjectsLocationsAutoscalingPoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4758,7 +4756,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Header() http.Hea func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4923,7 +4921,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesListCall) Header() http.Header { func (c *ProjectsLocationsAutoscalingPoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5092,7 +5090,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Header() http.Hea func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5237,7 +5235,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Header() ht func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5378,7 +5376,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Header() http.Header { func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5518,7 +5516,7 @@ func (c *ProjectsLocationsWorkflowTemplatesCreateCall) Header() http.Header { func (c *ProjectsLocationsWorkflowTemplatesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5665,7 +5663,7 @@ func (c *ProjectsLocationsWorkflowTemplatesDeleteCall) Header() http.Header { func (c *ProjectsLocationsWorkflowTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5821,7 +5819,7 @@ func (c *ProjectsLocationsWorkflowTemplatesGetCall) Header() http.Header { func (c *ProjectsLocationsWorkflowTemplatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5987,7 +5985,7 @@ func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) Header() http.Heade func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6139,7 +6137,7 @@ func (c *ProjectsLocationsWorkflowTemplatesInstantiateCall) Header() http.Header func (c *ProjectsLocationsWorkflowTemplatesInstantiateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6311,7 +6309,7 @@ func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) Header() http. func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6484,7 +6482,7 @@ func (c *ProjectsLocationsWorkflowTemplatesListCall) Header() http.Header { func (c *ProjectsLocationsWorkflowTemplatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6653,7 +6651,7 @@ func (c *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) Header() http.Heade func (c *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6798,7 +6796,7 @@ func (c *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) Header() http func (c *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6939,7 +6937,7 @@ func (c *ProjectsLocationsWorkflowTemplatesUpdateCall) Header() http.Header { func (c *ProjectsLocationsWorkflowTemplatesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7079,7 +7077,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesCreateCall) Header() http.Header { func (c *ProjectsRegionsAutoscalingPoliciesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7218,7 +7216,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesDeleteCall) Header() http.Header { func (c *ProjectsRegionsAutoscalingPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7359,7 +7357,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesGetCall) Header() http.Header { func (c *ProjectsRegionsAutoscalingPoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7519,7 +7517,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) Header() http.Heade func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7684,7 +7682,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesListCall) Header() http.Header { func (c *ProjectsRegionsAutoscalingPoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7853,7 +7851,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) Header() http.Heade func (c *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7998,7 +7996,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) Header() http func (c *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8139,7 +8137,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesUpdateCall) Header() http.Header { func (c *ProjectsRegionsAutoscalingPoliciesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8298,7 +8296,7 @@ func (c *ProjectsRegionsClustersCreateCall) Header() http.Header { func (c *ProjectsRegionsClustersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8477,7 +8475,7 @@ func (c *ProjectsRegionsClustersDeleteCall) Header() http.Header { func (c *ProjectsRegionsClustersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8642,7 +8640,7 @@ func (c *ProjectsRegionsClustersDiagnoseCall) Header() http.Header { func (c *ProjectsRegionsClustersDiagnoseCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8810,7 +8808,7 @@ func (c *ProjectsRegionsClustersGetCall) Header() http.Header { func (c *ProjectsRegionsClustersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8985,7 +8983,7 @@ func (c *ProjectsRegionsClustersGetIamPolicyCall) Header() http.Header { func (c *ProjectsRegionsClustersGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9170,7 +9168,7 @@ func (c *ProjectsRegionsClustersListCall) Header() http.Header { func (c *ProjectsRegionsClustersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9409,7 +9407,7 @@ func (c *ProjectsRegionsClustersPatchCall) Header() http.Header { func (c *ProjectsRegionsClustersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9583,7 +9581,7 @@ func (c *ProjectsRegionsClustersSetIamPolicyCall) Header() http.Header { func (c *ProjectsRegionsClustersSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9727,7 +9725,7 @@ func (c *ProjectsRegionsClustersStartCall) Header() http.Header { func (c *ProjectsRegionsClustersStartCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9886,7 +9884,7 @@ func (c *ProjectsRegionsClustersStopCall) Header() http.Header { func (c *ProjectsRegionsClustersStopCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10046,7 +10044,7 @@ func (c *ProjectsRegionsClustersTestIamPermissionsCall) Header() http.Header { func (c *ProjectsRegionsClustersTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10195,7 +10193,7 @@ func (c *ProjectsRegionsJobsCancelCall) Header() http.Header { func (c *ProjectsRegionsJobsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10353,7 +10351,7 @@ func (c *ProjectsRegionsJobsDeleteCall) Header() http.Header { func (c *ProjectsRegionsJobsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10513,7 +10511,7 @@ func (c *ProjectsRegionsJobsGetCall) Header() http.Header { func (c *ProjectsRegionsJobsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10688,7 +10686,7 @@ func (c *ProjectsRegionsJobsGetIamPolicyCall) Header() http.Header { func (c *ProjectsRegionsJobsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10890,7 +10888,7 @@ func (c *ProjectsRegionsJobsListCall) Header() http.Header { func (c *ProjectsRegionsJobsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11104,7 +11102,7 @@ func (c *ProjectsRegionsJobsPatchCall) Header() http.Header { func (c *ProjectsRegionsJobsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11267,7 +11265,7 @@ func (c *ProjectsRegionsJobsSetIamPolicyCall) Header() http.Header { func (c *ProjectsRegionsJobsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11409,7 +11407,7 @@ func (c *ProjectsRegionsJobsSubmitCall) Header() http.Header { func (c *ProjectsRegionsJobsSubmitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11558,7 +11556,7 @@ func (c *ProjectsRegionsJobsSubmitAsOperationCall) Header() http.Header { func (c *ProjectsRegionsJobsSubmitAsOperationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11710,7 +11708,7 @@ func (c *ProjectsRegionsJobsTestIamPermissionsCall) Header() http.Header { func (c *ProjectsRegionsJobsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11857,7 +11855,7 @@ func (c *ProjectsRegionsOperationsCancelCall) Header() http.Header { func (c *ProjectsRegionsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11990,7 +11988,7 @@ func (c *ProjectsRegionsOperationsDeleteCall) Header() http.Header { func (c *ProjectsRegionsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12133,7 +12131,7 @@ func (c *ProjectsRegionsOperationsGetCall) Header() http.Header { func (c *ProjectsRegionsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12293,7 +12291,7 @@ func (c *ProjectsRegionsOperationsGetIamPolicyCall) Header() http.Header { func (c *ProjectsRegionsOperationsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12473,7 +12471,7 @@ func (c *ProjectsRegionsOperationsListCall) Header() http.Header { func (c *ProjectsRegionsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12647,7 +12645,7 @@ func (c *ProjectsRegionsOperationsSetIamPolicyCall) Header() http.Header { func (c *ProjectsRegionsOperationsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12792,7 +12790,7 @@ func (c *ProjectsRegionsOperationsTestIamPermissionsCall) Header() http.Header { func (c *ProjectsRegionsOperationsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12932,7 +12930,7 @@ func (c *ProjectsRegionsWorkflowTemplatesCreateCall) Header() http.Header { func (c *ProjectsRegionsWorkflowTemplatesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13079,7 +13077,7 @@ func (c *ProjectsRegionsWorkflowTemplatesDeleteCall) Header() http.Header { func (c *ProjectsRegionsWorkflowTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13235,7 +13233,7 @@ func (c *ProjectsRegionsWorkflowTemplatesGetCall) Header() http.Header { func (c *ProjectsRegionsWorkflowTemplatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13401,7 +13399,7 @@ func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) Header() http.Header func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13553,7 +13551,7 @@ func (c *ProjectsRegionsWorkflowTemplatesInstantiateCall) Header() http.Header { func (c *ProjectsRegionsWorkflowTemplatesInstantiateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13725,7 +13723,7 @@ func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) Header() http.He func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13898,7 +13896,7 @@ func (c *ProjectsRegionsWorkflowTemplatesListCall) Header() http.Header { func (c *ProjectsRegionsWorkflowTemplatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14067,7 +14065,7 @@ func (c *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) Header() http.Header func (c *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14212,7 +14210,7 @@ func (c *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) Header() http.H func (c *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14353,7 +14351,7 @@ func (c *ProjectsRegionsWorkflowTemplatesUpdateCall) Header() http.Header { func (c *ProjectsRegionsWorkflowTemplatesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/datastore/v1/datastore-api.json b/datastore/v1/datastore-api.json index 45511134d77..2704e605a12 100644 --- a/datastore/v1/datastore-api.json +++ b/datastore/v1/datastore-api.json @@ -625,7 +625,7 @@ } } }, - "revision": "20200802", + "revision": "20201017", "rootUrl": "https://datastore.googleapis.com/", "schemas": { "AllocateIdsRequest": { @@ -1460,7 +1460,7 @@ "type": "object" }, "LatLng": { - "description": "An object representing a latitude/longitude pair. This is expressed as a pair of doubles representing degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. Values must be within normalized ranges.", + "description": "An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. Values must be within normalized ranges.", "id": "LatLng", "properties": { "latitude": { diff --git a/datastore/v1/datastore-gen.go b/datastore/v1/datastore-gen.go index dcefb1567cb..ac11b6f55a9 100644 --- a/datastore/v1/datastore-gen.go +++ b/datastore/v1/datastore-gen.go @@ -1652,8 +1652,8 @@ func (s *KindExpression) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// LatLng: An object representing a latitude/longitude pair. This is -// expressed as a pair of doubles representing degrees latitude and +// LatLng: An object that represents a latitude/longitude pair. This is +// expressed as a pair of doubles to represent degrees latitude and // degrees longitude. Unless specified otherwise, this must conform to // the WGS84 standard. Values must be within normalized ranges. type LatLng struct { @@ -2681,7 +2681,7 @@ func (c *ProjectsAllocateIdsCall) Header() http.Header { func (c *ProjectsAllocateIdsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2821,7 +2821,7 @@ func (c *ProjectsBeginTransactionCall) Header() http.Header { func (c *ProjectsBeginTransactionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2962,7 +2962,7 @@ func (c *ProjectsCommitCall) Header() http.Header { func (c *ProjectsCommitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3109,7 +3109,7 @@ func (c *ProjectsExportCall) Header() http.Header { func (c *ProjectsExportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3254,7 +3254,7 @@ func (c *ProjectsImportCall) Header() http.Header { func (c *ProjectsImportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3394,7 +3394,7 @@ func (c *ProjectsLookupCall) Header() http.Header { func (c *ProjectsLookupCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3535,7 +3535,7 @@ func (c *ProjectsReserveIdsCall) Header() http.Header { func (c *ProjectsReserveIdsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3675,7 +3675,7 @@ func (c *ProjectsRollbackCall) Header() http.Header { func (c *ProjectsRollbackCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3815,7 +3815,7 @@ func (c *ProjectsRunQueryCall) Header() http.Header { func (c *ProjectsRunQueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3963,7 +3963,7 @@ func (c *ProjectsIndexesCreateCall) Header() http.Header { func (c *ProjectsIndexesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4110,7 +4110,7 @@ func (c *ProjectsIndexesDeleteCall) Header() http.Header { func (c *ProjectsIndexesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4261,7 +4261,7 @@ func (c *ProjectsIndexesGetCall) Header() http.Header { func (c *ProjectsIndexesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4435,7 +4435,7 @@ func (c *ProjectsIndexesListCall) Header() http.Header { func (c *ProjectsIndexesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4615,7 +4615,7 @@ func (c *ProjectsOperationsCancelCall) Header() http.Header { func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4749,7 +4749,7 @@ func (c *ProjectsOperationsDeleteCall) Header() http.Header { func (c *ProjectsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4893,7 +4893,7 @@ func (c *ProjectsOperationsGetCall) Header() http.Header { func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5068,7 +5068,7 @@ func (c *ProjectsOperationsListCall) Header() http.Header { func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/datastore/v1beta1/datastore-gen.go b/datastore/v1beta1/datastore-gen.go index 1fa944af116..21d727377ed 100644 --- a/datastore/v1beta1/datastore-gen.go +++ b/datastore/v1beta1/datastore-gen.go @@ -979,7 +979,7 @@ func (c *ProjectsExportCall) Header() http.Header { func (c *ProjectsExportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1124,7 +1124,7 @@ func (c *ProjectsImportCall) Header() http.Header { func (c *ProjectsImportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/datastore/v1beta3/datastore-api.json b/datastore/v1beta3/datastore-api.json index f142719f409..4945201c4e3 100644 --- a/datastore/v1beta3/datastore-api.json +++ b/datastore/v1beta3/datastore-api.json @@ -307,7 +307,7 @@ } } }, - "revision": "20200802", + "revision": "20201017", "rootUrl": "https://datastore.googleapis.com/", "schemas": { "AllocateIdsRequest": { @@ -935,7 +935,7 @@ "type": "object" }, "LatLng": { - "description": "An object representing a latitude/longitude pair. This is expressed as a pair of doubles representing degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. Values must be within normalized ranges.", + "description": "An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. Values must be within normalized ranges.", "id": "LatLng", "properties": { "latitude": { diff --git a/datastore/v1beta3/datastore-gen.go b/datastore/v1beta3/datastore-gen.go index 9827a358455..c1f54a87e0c 100644 --- a/datastore/v1beta3/datastore-gen.go +++ b/datastore/v1beta3/datastore-gen.go @@ -1268,8 +1268,8 @@ func (s *KindExpression) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// LatLng: An object representing a latitude/longitude pair. This is -// expressed as a pair of doubles representing degrees latitude and +// LatLng: An object that represents a latitude/longitude pair. This is +// expressed as a pair of doubles to represent degrees latitude and // degrees longitude. Unless specified otherwise, this must conform to // the WGS84 standard. Values must be within normalized ranges. type LatLng struct { @@ -2255,7 +2255,7 @@ func (c *ProjectsAllocateIdsCall) Header() http.Header { func (c *ProjectsAllocateIdsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2395,7 +2395,7 @@ func (c *ProjectsBeginTransactionCall) Header() http.Header { func (c *ProjectsBeginTransactionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2536,7 +2536,7 @@ func (c *ProjectsCommitCall) Header() http.Header { func (c *ProjectsCommitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2676,7 +2676,7 @@ func (c *ProjectsLookupCall) Header() http.Header { func (c *ProjectsLookupCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2817,7 +2817,7 @@ func (c *ProjectsReserveIdsCall) Header() http.Header { func (c *ProjectsReserveIdsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2957,7 +2957,7 @@ func (c *ProjectsRollbackCall) Header() http.Header { func (c *ProjectsRollbackCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3097,7 +3097,7 @@ func (c *ProjectsRunQueryCall) Header() http.Header { func (c *ProjectsRunQueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/deploymentmanager/v0.alpha/deploymentmanager-api.json b/deploymentmanager/v0.alpha/deploymentmanager-api.json index 7cd2a1c0df3..fe1f195423e 100644 --- a/deploymentmanager/v0.alpha/deploymentmanager-api.json +++ b/deploymentmanager/v0.alpha/deploymentmanager-api.json @@ -17,36 +17,63 @@ } } }, - "basePath": "/deploymentmanager/alpha/projects/", - "baseUrl": "https://www.googleapis.com/deploymentmanager/alpha/projects/", - "batchPath": "batch/deploymentmanager/alpha", - "canonicalName": "Deployment Manager Alpha", - "description": "The Deployment Manager API allows users to declaratively configure, deploy and run complex solutions on the Google Cloud Platform.", + "basePath": "", + "baseUrl": "https://deploymentmanager.googleapis.com/", + "batchPath": "batch", + "canonicalName": "Deployment Manager", + "description": "The Google Cloud Deployment Manager v2 API provides services for configuring, deploying, and viewing Google Cloud services and APIs via templates which specify deployments of Cloud resources.", "discoveryVersion": "v1", - "documentationLink": "https://cloud.google.com/deployment-manager/", - "etag": "\"u9GIe6H63LSGq-9_t39K2Zx_EAc/63EX9BnMLuhjIkgK6mld1yuMPoE\"", + "documentationLink": "https://cloud.google.com/deployment-manager", "icons": { - "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", - "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" }, "id": "deploymentmanager:alpha", "kind": "discovery#restDescription", + "mtlsRootUrl": "https://deploymentmanager.mtls.googleapis.com/", "name": "deploymentmanager", "ownerDomain": "google.com", "ownerName": "Google", "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, "alt": { "default": "json", - "description": "Data format for the response.", + "description": "Data format for response.", "enum": [ - "json" + "json", + "media", + "proto" ], "enumDescriptions": [ - "Responses with Content-Type of application/json" + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" ], "location": "query", "type": "string" }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, "fields": { "description": "Selector specifying which fields to include in a partial response.", "location": "query", @@ -69,12 +96,17 @@ "type": "boolean" }, "quotaUser": { - "description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.", + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", "location": "query", "type": "string" }, - "userIp": { - "description": "Deprecated. Please use quotaUser instead.", + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", "location": "query", "type": "string" } @@ -85,6 +117,7 @@ "methods": { "delete": { "description": "Deletes a composite type.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}", "httpMethod": "DELETE", "id": "deploymentmanager.compositeTypes.delete", "parameterOrder": [ @@ -107,7 +140,7 @@ "type": "string" } }, - "path": "{project}/global/compositeTypes/{compositeType}", + "path": "deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}", "response": { "$ref": "Operation" }, @@ -118,6 +151,7 @@ }, "get": { "description": "Gets information about a specific composite type.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}", "httpMethod": "GET", "id": "deploymentmanager.compositeTypes.get", "parameterOrder": [ @@ -140,7 +174,7 @@ "type": "string" } }, - "path": "{project}/global/compositeTypes/{compositeType}", + "path": "deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}", "response": { "$ref": "CompositeType" }, @@ -153,6 +187,7 @@ }, "insert": { "description": "Creates a composite type.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/compositeTypes", "httpMethod": "POST", "id": "deploymentmanager.compositeTypes.insert", "parameterOrder": [ @@ -167,7 +202,7 @@ "type": "string" } }, - "path": "{project}/global/compositeTypes", + "path": "deploymentmanager/alpha/projects/{project}/global/compositeTypes", "request": { "$ref": "CompositeType" }, @@ -181,6 +216,7 @@ }, "list": { "description": "Lists all composite types for Deployment Manager.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/compositeTypes", "httpMethod": "GET", "id": "deploymentmanager.compositeTypes.list", "parameterOrder": [ @@ -188,7 +224,7 @@ ], "parameters": { "filter": { - "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", "location": "query", "type": "string" }, @@ -201,7 +237,7 @@ "type": "integer" }, "orderBy": { - "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", "location": "query", "type": "string" }, @@ -223,7 +259,7 @@ "type": "boolean" } }, - "path": "{project}/global/compositeTypes", + "path": "deploymentmanager/alpha/projects/{project}/global/compositeTypes", "response": { "$ref": "CompositeTypesListResponse" }, @@ -236,6 +272,7 @@ }, "patch": { "description": "Patches a composite type.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}", "httpMethod": "PATCH", "id": "deploymentmanager.compositeTypes.patch", "parameterOrder": [ @@ -258,7 +295,7 @@ "type": "string" } }, - "path": "{project}/global/compositeTypes/{compositeType}", + "path": "deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}", "request": { "$ref": "CompositeType" }, @@ -272,6 +309,7 @@ }, "update": { "description": "Updates a composite type.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}", "httpMethod": "PUT", "id": "deploymentmanager.compositeTypes.update", "parameterOrder": [ @@ -294,7 +332,7 @@ "type": "string" } }, - "path": "{project}/global/compositeTypes/{compositeType}", + "path": "deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}", "request": { "$ref": "CompositeType" }, @@ -312,6 +350,7 @@ "methods": { "cancelPreview": { "description": "Cancels and removes the preview currently associated with the deployment.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/cancelPreview", "httpMethod": "POST", "id": "deploymentmanager.deployments.cancelPreview", "parameterOrder": [ @@ -334,7 +373,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{deployment}/cancelPreview", + "path": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/cancelPreview", "request": { "$ref": "DeploymentsCancelPreviewRequest" }, @@ -348,6 +387,7 @@ }, "delete": { "description": "Deletes a deployment and all of the resources in the deployment.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}", "httpMethod": "DELETE", "id": "deploymentmanager.deployments.delete", "parameterOrder": [ @@ -359,8 +399,8 @@ "default": "DELETE", "description": "Sets the policy to use for deleting resources.", "enum": [ - "ABANDON", - "DELETE" + "DELETE", + "ABANDON" ], "enumDescriptions": [ "", @@ -383,7 +423,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{deployment}", + "path": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}", "response": { "$ref": "Operation" }, @@ -394,6 +434,7 @@ }, "get": { "description": "Gets information about a specific deployment.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}", "httpMethod": "GET", "id": "deploymentmanager.deployments.get", "parameterOrder": [ @@ -416,7 +457,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{deployment}", + "path": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}", "response": { "$ref": "Deployment" }, @@ -429,6 +470,7 @@ }, "getIamPolicy": { "description": "Gets the access control policy for a resource. May be empty if no such policy or resource exists.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/getIamPolicy", "httpMethod": "GET", "id": "deploymentmanager.deployments.getIamPolicy", "parameterOrder": [ @@ -457,7 +499,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{resource}/getIamPolicy", + "path": "deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/getIamPolicy", "response": { "$ref": "Policy" }, @@ -468,6 +510,7 @@ }, "insert": { "description": "Creates a deployment and all of the resources described by the deployment manifest.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments", "httpMethod": "POST", "id": "deploymentmanager.deployments.insert", "parameterOrder": [ @@ -478,9 +521,9 @@ "default": "CREATE_OR_ACQUIRE", "description": "Sets the policy to use for creating new resources.", "enum": [ + "CREATE_OR_ACQUIRE", "ACQUIRE", - "CREATE", - "CREATE_OR_ACQUIRE" + "CREATE" ], "enumDescriptions": [ "", @@ -503,7 +546,7 @@ "type": "string" } }, - "path": "{project}/global/deployments", + "path": "deploymentmanager/alpha/projects/{project}/global/deployments", "request": { "$ref": "Deployment" }, @@ -517,6 +560,7 @@ }, "list": { "description": "Lists all deployments for a given project.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments", "httpMethod": "GET", "id": "deploymentmanager.deployments.list", "parameterOrder": [ @@ -524,7 +568,7 @@ ], "parameters": { "filter": { - "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", "location": "query", "type": "string" }, @@ -537,7 +581,7 @@ "type": "integer" }, "orderBy": { - "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", "location": "query", "type": "string" }, @@ -559,7 +603,7 @@ "type": "boolean" } }, - "path": "{project}/global/deployments", + "path": "deploymentmanager/alpha/projects/{project}/global/deployments", "response": { "$ref": "DeploymentsListResponse" }, @@ -572,6 +616,7 @@ }, "patch": { "description": "Patches a deployment and all of the resources described by the deployment manifest.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}", "httpMethod": "PATCH", "id": "deploymentmanager.deployments.patch", "parameterOrder": [ @@ -583,9 +628,9 @@ "default": "CREATE_OR_ACQUIRE", "description": "Sets the policy to use for creating new resources.", "enum": [ + "CREATE_OR_ACQUIRE", "ACQUIRE", - "CREATE", - "CREATE_OR_ACQUIRE" + "CREATE" ], "enumDescriptions": [ "", @@ -599,8 +644,8 @@ "default": "DELETE", "description": "Sets the policy to use for deleting resources.", "enum": [ - "ABANDON", - "DELETE" + "DELETE", + "ABANDON" ], "enumDescriptions": [ "", @@ -630,7 +675,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{deployment}", + "path": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}", "request": { "$ref": "Deployment" }, @@ -644,6 +689,7 @@ }, "setIamPolicy": { "description": "Sets the access control policy on the specified resource. Replaces any existing policy.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/setIamPolicy", "httpMethod": "POST", "id": "deploymentmanager.deployments.setIamPolicy", "parameterOrder": [ @@ -666,7 +712,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{resource}/setIamPolicy", + "path": "deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/setIamPolicy", "request": { "$ref": "GlobalSetPolicyRequest" }, @@ -680,6 +726,7 @@ }, "stop": { "description": "Stops an ongoing operation. This does not roll back any work that has already been completed, but prevents any new work from being started.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/stop", "httpMethod": "POST", "id": "deploymentmanager.deployments.stop", "parameterOrder": [ @@ -702,7 +749,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{deployment}/stop", + "path": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/stop", "request": { "$ref": "DeploymentsStopRequest" }, @@ -716,6 +763,7 @@ }, "testIamPermissions": { "description": "Returns permissions that a caller has on the specified resource.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/testIamPermissions", "httpMethod": "POST", "id": "deploymentmanager.deployments.testIamPermissions", "parameterOrder": [ @@ -738,7 +786,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{resource}/testIamPermissions", + "path": "deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/testIamPermissions", "request": { "$ref": "TestPermissionsRequest" }, @@ -752,6 +800,7 @@ }, "update": { "description": "Updates a deployment and all of the resources described by the deployment manifest.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}", "httpMethod": "PUT", "id": "deploymentmanager.deployments.update", "parameterOrder": [ @@ -763,9 +812,9 @@ "default": "CREATE_OR_ACQUIRE", "description": "Sets the policy to use for creating new resources.", "enum": [ + "CREATE_OR_ACQUIRE", "ACQUIRE", - "CREATE", - "CREATE_OR_ACQUIRE" + "CREATE" ], "enumDescriptions": [ "", @@ -779,8 +828,8 @@ "default": "DELETE", "description": "Sets the policy to use for deleting resources.", "enum": [ - "ABANDON", - "DELETE" + "DELETE", + "ABANDON" ], "enumDescriptions": [ "", @@ -810,7 +859,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{deployment}", + "path": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}", "request": { "$ref": "Deployment" }, @@ -828,6 +877,7 @@ "methods": { "get": { "description": "Gets information about a specific manifest.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/manifests/{manifest}", "httpMethod": "GET", "id": "deploymentmanager.manifests.get", "parameterOrder": [ @@ -858,7 +908,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{deployment}/manifests/{manifest}", + "path": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/manifests/{manifest}", "response": { "$ref": "Manifest" }, @@ -871,6 +921,7 @@ }, "list": { "description": "Lists all manifests for a given deployment.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/manifests", "httpMethod": "GET", "id": "deploymentmanager.manifests.list", "parameterOrder": [ @@ -886,7 +937,7 @@ "type": "string" }, "filter": { - "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", "location": "query", "type": "string" }, @@ -899,7 +950,7 @@ "type": "integer" }, "orderBy": { - "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", "location": "query", "type": "string" }, @@ -921,7 +972,7 @@ "type": "boolean" } }, - "path": "{project}/global/deployments/{deployment}/manifests", + "path": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/manifests", "response": { "$ref": "ManifestsListResponse" }, @@ -938,6 +989,7 @@ "methods": { "get": { "description": "Gets information about a specific operation.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/operations/{operation}", "httpMethod": "GET", "id": "deploymentmanager.operations.get", "parameterOrder": [ @@ -959,7 +1011,7 @@ "type": "string" } }, - "path": "{project}/global/operations/{operation}", + "path": "deploymentmanager/alpha/projects/{project}/global/operations/{operation}", "response": { "$ref": "Operation" }, @@ -972,6 +1024,7 @@ }, "list": { "description": "Lists all operations for a project.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/operations", "httpMethod": "GET", "id": "deploymentmanager.operations.list", "parameterOrder": [ @@ -979,7 +1032,7 @@ ], "parameters": { "filter": { - "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", "location": "query", "type": "string" }, @@ -992,7 +1045,7 @@ "type": "integer" }, "orderBy": { - "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", "location": "query", "type": "string" }, @@ -1014,7 +1067,7 @@ "type": "boolean" } }, - "path": "{project}/global/operations", + "path": "deploymentmanager/alpha/projects/{project}/global/operations", "response": { "$ref": "OperationsListResponse" }, @@ -1031,6 +1084,7 @@ "methods": { "get": { "description": "Gets information about a single resource.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/resources/{resource}", "httpMethod": "GET", "id": "deploymentmanager.resources.get", "parameterOrder": [ @@ -1060,7 +1114,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{deployment}/resources/{resource}", + "path": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/resources/{resource}", "response": { "$ref": "Resource" }, @@ -1073,6 +1127,7 @@ }, "list": { "description": "Lists all resources in a given deployment.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/resources", "httpMethod": "GET", "id": "deploymentmanager.resources.list", "parameterOrder": [ @@ -1088,7 +1143,7 @@ "type": "string" }, "filter": { - "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", "location": "query", "type": "string" }, @@ -1101,7 +1156,7 @@ "type": "integer" }, "orderBy": { - "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", "location": "query", "type": "string" }, @@ -1123,7 +1178,7 @@ "type": "boolean" } }, - "path": "{project}/global/deployments/{deployment}/resources", + "path": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/resources", "response": { "$ref": "ResourcesListResponse" }, @@ -1140,6 +1195,7 @@ "methods": { "delete": { "description": "Deletes a type provider.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}", "httpMethod": "DELETE", "id": "deploymentmanager.typeProviders.delete", "parameterOrder": [ @@ -1162,7 +1218,7 @@ "type": "string" } }, - "path": "{project}/global/typeProviders/{typeProvider}", + "path": "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}", "response": { "$ref": "Operation" }, @@ -1173,6 +1229,7 @@ }, "get": { "description": "Gets information about a specific type provider.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}", "httpMethod": "GET", "id": "deploymentmanager.typeProviders.get", "parameterOrder": [ @@ -1195,7 +1252,7 @@ "type": "string" } }, - "path": "{project}/global/typeProviders/{typeProvider}", + "path": "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}", "response": { "$ref": "TypeProvider" }, @@ -1208,6 +1265,7 @@ }, "getType": { "description": "Gets a type info for a type provided by a TypeProvider.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}/types/{type}", "httpMethod": "GET", "id": "deploymentmanager.typeProviders.getType", "parameterOrder": [ @@ -1237,7 +1295,7 @@ "type": "string" } }, - "path": "{project}/global/typeProviders/{typeProvider}/types/{type}", + "path": "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}/types/{type}", "response": { "$ref": "TypeInfo" }, @@ -1250,6 +1308,7 @@ }, "insert": { "description": "Creates a type provider.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/typeProviders", "httpMethod": "POST", "id": "deploymentmanager.typeProviders.insert", "parameterOrder": [ @@ -1264,7 +1323,7 @@ "type": "string" } }, - "path": "{project}/global/typeProviders", + "path": "deploymentmanager/alpha/projects/{project}/global/typeProviders", "request": { "$ref": "TypeProvider" }, @@ -1278,6 +1337,7 @@ }, "list": { "description": "Lists all resource type providers for Deployment Manager.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/typeProviders", "httpMethod": "GET", "id": "deploymentmanager.typeProviders.list", "parameterOrder": [ @@ -1285,7 +1345,7 @@ ], "parameters": { "filter": { - "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", "location": "query", "type": "string" }, @@ -1298,7 +1358,7 @@ "type": "integer" }, "orderBy": { - "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", "location": "query", "type": "string" }, @@ -1320,7 +1380,7 @@ "type": "boolean" } }, - "path": "{project}/global/typeProviders", + "path": "deploymentmanager/alpha/projects/{project}/global/typeProviders", "response": { "$ref": "TypeProvidersListResponse" }, @@ -1333,6 +1393,7 @@ }, "listTypes": { "description": "Lists all the type info for a TypeProvider.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}/types", "httpMethod": "GET", "id": "deploymentmanager.typeProviders.listTypes", "parameterOrder": [ @@ -1341,7 +1402,7 @@ ], "parameters": { "filter": { - "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", "location": "query", "type": "string" }, @@ -1354,7 +1415,7 @@ "type": "integer" }, "orderBy": { - "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", "location": "query", "type": "string" }, @@ -1383,7 +1444,7 @@ "type": "string" } }, - "path": "{project}/global/typeProviders/{typeProvider}/types", + "path": "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}/types", "response": { "$ref": "TypeProvidersListTypesResponse" }, @@ -1396,6 +1457,7 @@ }, "patch": { "description": "Patches a type provider.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}", "httpMethod": "PATCH", "id": "deploymentmanager.typeProviders.patch", "parameterOrder": [ @@ -1418,7 +1480,7 @@ "type": "string" } }, - "path": "{project}/global/typeProviders/{typeProvider}", + "path": "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}", "request": { "$ref": "TypeProvider" }, @@ -1432,6 +1494,7 @@ }, "update": { "description": "Updates a type provider.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}", "httpMethod": "PUT", "id": "deploymentmanager.typeProviders.update", "parameterOrder": [ @@ -1454,7 +1517,7 @@ "type": "string" } }, - "path": "{project}/global/typeProviders/{typeProvider}", + "path": "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}", "request": { "$ref": "TypeProvider" }, @@ -1472,6 +1535,7 @@ "methods": { "get": { "description": "Gets information about a specific type.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/types/{type}", "httpMethod": "GET", "id": "deploymentmanager.types.get", "parameterOrder": [ @@ -1494,7 +1558,7 @@ "type": "string" } }, - "path": "{project}/global/types/{type}", + "path": "deploymentmanager/alpha/projects/{project}/global/types/{type}", "response": { "$ref": "Type" }, @@ -1507,6 +1571,7 @@ }, "list": { "description": "Lists all resource types for Deployment Manager.", + "flatPath": "deploymentmanager/alpha/projects/{project}/global/types", "httpMethod": "GET", "id": "deploymentmanager.types.list", "parameterOrder": [ @@ -1514,7 +1579,7 @@ ], "parameters": { "filter": { - "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", "location": "query", "type": "string" }, @@ -1527,7 +1592,7 @@ "type": "integer" }, "orderBy": { - "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", "location": "query", "type": "string" }, @@ -1549,7 +1614,7 @@ "type": "boolean" } }, - "path": "{project}/global/types", + "path": "deploymentmanager/alpha/projects/{project}/global/types", "response": { "$ref": "TypesListResponse" }, @@ -1563,8 +1628,8 @@ } } }, - "revision": "20200512", - "rootUrl": "https://www.googleapis.com/", + "revision": "20201113", + "rootUrl": "https://deploymentmanager.googleapis.com/", "schemas": { "AsyncOptions": { "description": "Async options that determine when a resource should finish.", @@ -1582,7 +1647,7 @@ "type": "object" }, "AuditConfig": { - "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs.\n\nIf there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted.\n\nExample Policy with multiple AuditConfigs:\n\n{ \"audit_configs\": [ { \"service\": \"allServices\" \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\", }, { \"log_type\": \"ADMIN_READ\", } ] }, { \"service\": \"sampleservice.googleapis.com\" \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] }\n\nFor sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.", + "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.", "id": "AuditConfig", "properties": { "auditLogConfigs": { @@ -1592,13 +1657,6 @@ }, "type": "array" }, - "exemptedMembers": { - "description": "", - "items": { - "type": "string" - }, - "type": "array" - }, "service": { "description": "Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.", "type": "string" @@ -1607,34 +1665,57 @@ "type": "object" }, "AuditLogConfig": { - "description": "Provides the configuration for logging a type of permissions. Example:\n\n{ \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\", } ] }\n\nThis enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.", + "description": "Provides the configuration for logging a type of permissions. Example: { \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.", "id": "AuditLogConfig", "properties": { "exemptedMembers": { - "description": "Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][].", + "description": "Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.", "items": { "type": "string" }, "type": "array" }, - "ignoreChildExemptions": { - "description": "", - "type": "boolean" - }, "logType": { "description": "The log type that this config enables.", + "enum": [ + "LOG_TYPE_UNSPECIFIED", + "ADMIN_READ", + "DATA_WRITE", + "DATA_READ" + ], + "enumDescriptions": [ + "Default case. Should never be this.", + "Admin reads. Example: CloudIAM getIamPolicy", + "Data writes. Example: CloudSQL Users create", + "Data reads. Example: CloudSQL Users list" + ], "type": "string" } }, "type": "object" }, - "AuthorizationLoggingOptions": { - "description": "Authorization-related information used by Cloud Audit Logging.", - "id": "AuthorizationLoggingOptions", + "BaseType": { + "description": "BaseType that describes a service-backed Type.", + "id": "BaseType", "properties": { - "permissionType": { - "description": "The type of the permission that was checked.", + "collectionOverrides": { + "description": "Allows resource handling overrides for specific collections", + "items": { + "$ref": "CollectionOverride" + }, + "type": "array" + }, + "credential": { + "$ref": "Credential", + "description": "Credential used when interacting with this type." + }, + "descriptorUrl": { + "description": "Descriptor Url for the this type.", "type": "string" + }, + "options": { + "$ref": "Options", + "description": "Options to apply when handling any resources in this service." } }, "type": "object" @@ -1658,10 +1739,10 @@ "properties": { "condition": { "$ref": "Expr", - "description": "The condition that is associated with this binding.\n\nIf the condition evaluates to `true`, then this binding applies to the current request.\n\nIf the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding.\n\nTo learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." + "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` .\n\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.\n\n* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding.\n\n* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding.\n\n* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.\n\n\n\n* `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.", + "description": "Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", "items": { "type": "string" }, @@ -1729,6 +1810,18 @@ "type": "string" }, "status": { + "enum": [ + "UNKNOWN_STATUS", + "DEPRECATED", + "EXPERIMENTAL", + "SUPPORTED" + ], + "enumDescriptions": [ + "", + "", + "", + "" + ], "type": "string" }, "templateContents": { @@ -1739,12 +1832,15 @@ "type": "object" }, "CompositeTypeLabelEntry": { + "description": "Label object for CompositeTypes", "id": "CompositeTypeLabelEntry", "properties": { "key": { + "description": "Key of the label", "type": "string" }, "value": { + "description": "Value of the label", "type": "string" } }, @@ -1768,38 +1864,7 @@ }, "type": "object" }, - "Condition": { - "description": "A condition to be met.", - "id": "Condition", - "properties": { - "iam": { - "description": "Trusted attributes supplied by the IAM system.", - "type": "string" - }, - "op": { - "description": "An operator to apply the subject with.", - "type": "string" - }, - "svc": { - "description": "Trusted attributes discharged by the service.", - "type": "string" - }, - "sys": { - "description": "Trusted attributes supplied by any service that owns resources and uses the IAM system for access control.", - "type": "string" - }, - "values": { - "description": "The objects of the condition.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, "ConfigFile": { - "description": "", "id": "ConfigFile", "properties": { "content": { @@ -1809,32 +1874,6 @@ }, "type": "object" }, - "ConfigurableService": { - "description": "BaseType that describes a service-backed Type.", - "id": "ConfigurableService", - "properties": { - "collectionOverrides": { - "description": "Allows resource handling overrides for specific collections", - "items": { - "$ref": "CollectionOverride" - }, - "type": "array" - }, - "credential": { - "$ref": "Credential", - "description": "Credential used when interacting with this type." - }, - "descriptorUrl": { - "description": "Descriptor Url for the this type.", - "type": "string" - }, - "options": { - "$ref": "Options", - "description": "Options to apply when handling any resources in this service." - } - }, - "type": "object" - }, "Credential": { "description": "The credential used by Deployment Manager and TypeProvider. Only one of the options is permitted.", "id": "Credential", @@ -1855,7 +1894,6 @@ "type": "object" }, "Deployment": { - "description": "", "id": "Deployment", "properties": { "credential": { @@ -1867,7 +1905,7 @@ "type": "string" }, "fingerprint": { - "description": "Provides a fingerprint to use in requests to modify a deployment, such as `update()`, `stop()`, and `cancelPreview()` requests. A fingerprint is a randomly generated value that must be provided with `update()`, `stop()`, and `cancelPreview()` requests to perform optimistic locking. This ensures optimistic concurrency so that only one request happens at a time.\n\nThe fingerprint is initially generated by Deployment Manager and changes after every request to modify data. To get the latest fingerprint value, perform a `get()` request to a deployment.", + "description": "Provides a fingerprint to use in requests to modify a deployment, such as `update()`, `stop()`, and `cancelPreview()` requests. A fingerprint is a randomly generated value that must be provided with `update()`, `stop()`, and `cancelPreview()` requests to perform optimistic locking. This ensures optimistic concurrency so that only one request happens at a time. The fingerprint is initially generated by Deployment Manager and changes after every request to modify data. To get the latest fingerprint value, perform a `get()` request to a deployment.", "format": "byte", "type": "string" }, @@ -1880,7 +1918,7 @@ "type": "string" }, "labels": { - "description": "Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.", + "description": "Map of One Platform labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.", "items": { "$ref": "DeploymentLabelEntry" }, @@ -1925,12 +1963,15 @@ "type": "object" }, "DeploymentLabelEntry": { + "description": "Label object for Deployments", "id": "DeploymentLabelEntry", "properties": { "key": { + "description": "Key of the label", "type": "string" }, "value": { + "description": "Value of the label", "type": "string" } }, @@ -1952,7 +1993,6 @@ "type": "object" }, "DeploymentUpdate": { - "description": "", "id": "DeploymentUpdate", "properties": { "credential": { @@ -1964,7 +2004,7 @@ "type": "string" }, "labels": { - "description": "Output only. Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.", + "description": "Map of One Platform labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.", "items": { "$ref": "DeploymentUpdateLabelEntry" }, @@ -1978,23 +2018,25 @@ "type": "object" }, "DeploymentUpdateLabelEntry": { + "description": "Label object for DeploymentUpdate", "id": "DeploymentUpdateLabelEntry", "properties": { "key": { + "description": "Key of the label", "type": "string" }, "value": { + "description": "Value of the label", "type": "string" } }, "type": "object" }, "DeploymentsCancelPreviewRequest": { - "description": "", "id": "DeploymentsCancelPreviewRequest", "properties": { "fingerprint": { - "description": "Specifies a fingerprint for `cancelPreview()` requests. A fingerprint is a randomly generated value that must be provided in `cancelPreview()` requests to perform optimistic locking. This ensures optimistic concurrency so that the deployment does not have conflicting requests (e.g. if someone attempts to make a new update request while another user attempts to cancel a preview, this would prevent one of the requests).\n\nThe fingerprint is initially generated by Deployment Manager and changes after every request to modify a deployment. To get the latest fingerprint value, perform a `get()` request on the deployment.", + "description": "Specifies a fingerprint for `cancelPreview()` requests. A fingerprint is a randomly generated value that must be provided in `cancelPreview()` requests to perform optimistic locking. This ensures optimistic concurrency so that the deployment does not have conflicting requests (e.g. if someone attempts to make a new update request while another user attempts to cancel a preview, this would prevent one of the requests). The fingerprint is initially generated by Deployment Manager and changes after every request to modify a deployment. To get the latest fingerprint value, perform a `get()` request on the deployment.", "format": "byte", "type": "string" } @@ -2020,11 +2062,10 @@ "type": "object" }, "DeploymentsStopRequest": { - "description": "", "id": "DeploymentsStopRequest", "properties": { "fingerprint": { - "description": "Specifies a fingerprint for `stop()` requests. A fingerprint is a randomly generated value that must be provided in `stop()` requests to perform optimistic locking. This ensures optimistic concurrency so that the deployment does not have conflicting requests (e.g. if someone attempts to make a new update request while another user attempts to stop an ongoing update request, this would prevent a collision).\n\nThe fingerprint is initially generated by Deployment Manager and changes after every request to modify a deployment. To get the latest fingerprint value, perform a `get()` request on the deployment.", + "description": "Specifies a fingerprint for `stop()` requests. A fingerprint is a randomly generated value that must be provided in `stop()` requests to perform optimistic locking. This ensures optimistic concurrency so that the deployment does not have conflicting requests (e.g. if someone attempts to make a new update request while another user attempts to stop an ongoing update request, this would prevent a collision). The fingerprint is initially generated by Deployment Manager and changes after every request to modify a deployment. To get the latest fingerprint value, perform a `get()` request on the deployment.", "format": "byte", "type": "string" } @@ -2032,7 +2073,6 @@ "type": "object" }, "Diagnostic": { - "description": "", "id": "Diagnostic", "properties": { "field": { @@ -2041,13 +2081,25 @@ }, "level": { "description": "Level to record this diagnostic.", + "enum": [ + "UNKNOWN", + "INFORMATION", + "WARNING", + "ERROR" + ], + "enumDescriptions": [ + "", + "If level is informational, it only gets displayed as part of the resource.", + "If level is warning, will end up in the resource as a warning.", + "If level is error, it will indicate an error occurred after finishCondition is set, and this field will populate resource errors and operation errors." + ], "type": "string" } }, "type": "object" }, "Expr": { - "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec.\n\nExample (Comparison):\n\ntitle: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\"\n\nExample (Equality):\n\ntitle: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\"\n\nExample (Logic):\n\ntitle: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\"\n\nExample (Data Manipulation):\n\ntitle: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\"\n\nThe exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", + "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", "id": "Expr", "properties": { "description": { @@ -2092,7 +2144,6 @@ "type": "object" }, "ImportFile": { - "description": "", "id": "ImportFile", "properties": { "content": { @@ -2116,6 +2167,20 @@ }, "location": { "description": "The location where this mapping applies.", + "enum": [ + "UNKNOWN", + "PATH", + "QUERY", + "BODY", + "HEADER" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "" + ], "type": "string" }, "methodMatch": { @@ -2129,90 +2194,7 @@ }, "type": "object" }, - "LogConfig": { - "description": "Specifies what kind of log the caller must write", - "id": "LogConfig", - "properties": { - "cloudAudit": { - "$ref": "LogConfigCloudAuditOptions", - "description": "Cloud audit options." - }, - "counter": { - "$ref": "LogConfigCounterOptions", - "description": "Counter options." - }, - "dataAccess": { - "$ref": "LogConfigDataAccessOptions", - "description": "Data access options." - } - }, - "type": "object" - }, - "LogConfigCloudAuditOptions": { - "description": "Write a Cloud Audit log", - "id": "LogConfigCloudAuditOptions", - "properties": { - "authorizationLoggingOptions": { - "$ref": "AuthorizationLoggingOptions", - "description": "Information used by the Cloud Audit Logging pipeline." - }, - "logName": { - "description": "The log_name to populate in the Cloud Audit Record.", - "type": "string" - } - }, - "type": "object" - }, - "LogConfigCounterOptions": { - "description": "Increment a streamz counter with the specified metric and field names.\n\nMetric names should start with a '/', generally be lowercase-only, and end in \"_count\". Field names should not contain an initial slash. The actual exported metric names will have \"/iam/policy\" prepended.\n\nField names correspond to IAM request parameters and field values are their respective values.\n\nSupported field names: - \"authority\", which is \"[token]\" if IAMContext.token is present, otherwise the value of IAMContext.authority_selector if present, and otherwise a representation of IAMContext.principal; or - \"iam_principal\", a representation of IAMContext.principal even if a token or authority selector is present; or - \"\" (empty string), resulting in a counter with no fields.\n\nExamples: counter { metric: \"/debug_access_count\" field: \"iam_principal\" } ==\u003e increment counter /iam/policy/debug_access_count {iam_principal=[value of IAMContext.principal]}", - "id": "LogConfigCounterOptions", - "properties": { - "customFields": { - "description": "Custom fields.", - "items": { - "$ref": "LogConfigCounterOptionsCustomField" - }, - "type": "array" - }, - "field": { - "description": "The field value to attribute.", - "type": "string" - }, - "metric": { - "description": "The metric to update.", - "type": "string" - } - }, - "type": "object" - }, - "LogConfigCounterOptionsCustomField": { - "description": "Custom fields. These can be used to create a counter with arbitrary field/value pairs. See: go/rpcsp-custom-fields.", - "id": "LogConfigCounterOptionsCustomField", - "properties": { - "name": { - "description": "Name is the field name.", - "type": "string" - }, - "value": { - "description": "Value is the field value. It is important that in contrast to the CounterOptions.field, the value here is a constant that is not derived from the IAMContext.", - "type": "string" - } - }, - "type": "object" - }, - "LogConfigDataAccessOptions": { - "description": "Write a Data Access (Gin) log", - "id": "LogConfigDataAccessOptions", - "properties": { - "logMode": { - "description": "", - "type": "string" - } - }, - "type": "object" - }, "Manifest": { - "description": "", "id": "Manifest", "properties": { "config": { @@ -2243,7 +2225,7 @@ "type": "string" }, "name": { - "description": "Output only.\n\nThe name of the manifest.", + "description": "Output only. The name of the manifest.", "type": "string" }, "selfLink": { @@ -2299,7 +2281,7 @@ "type": "object" }, "Operation": { - "description": "Represents an Operation resource.\n\nGoogle Compute Engine has three Operation resources:\n\n* [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)\n\nYou can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.\n\nOperations can be global, regional or zonal. \n- For global operations, use the `globalOperations` resource. \n- For regional operations, use the `regionOperations` resource. \n- For zonal operations, use the `zonalOperations` resource. \n\nFor more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)", + "description": "Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources.", "id": "Operation", "properties": { "clientOperationId": { @@ -2389,16 +2371,22 @@ "description": "[Output Only] Server-defined URL for the resource.", "type": "string" }, - "selfLinkWithId": { - "description": "[Output Only] Server-defined URL for this resource with the resource id.", - "type": "string" - }, "startTime": { "description": "[Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.", "type": "string" }, "status": { "description": "[Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`.", + "enum": [ + "PENDING", + "RUNNING", + "DONE" + ], + "enumDescriptions": [ + "", + "", + "" + ], "type": "string" }, "statusMessage": { @@ -2424,10 +2412,64 @@ "properties": { "code": { "description": "[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.", + "enum": [ + "DEPRECATED_RESOURCE_USED", + "NO_RESULTS_ON_PAGE", + "UNREACHABLE", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_NOT_RUNNING", + "INJECTED_KERNELS_DEPRECATED", + "REQUIRED_TOS_AGREEMENT", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "RESOURCE_NOT_DELETED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "NOT_CRITICAL_ERROR", + "CLEANUP_FAILED", + "FIELD_VALUE_OVERRIDEN", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "MISSING_TYPE_DEPENDENCY", + "EXTERNAL_API_WARNING", + "SCHEMA_VALIDATION_IGNORED", + "UNDECLARED_PROPERTIES", + "EXPERIMENTAL_TYPE_USED", + "DEPRECATED_TYPE_USED", + "PARTIAL_SUCCESS", + "LARGE_DEPLOYMENT_WARNING" + ], + "enumDescriptions": [ + "A link to a deprecated resource was created.", + "No results are present on a particular list page.", + "A given scope cannot be reached.", + "The route's nextHopIp address is not assigned to an instance on the network.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the same network as the route.", + "The route's next hop instance cannot ip forward.", + "The route's next hop instance does not have a status of RUNNING.", + "The operation involved use of an injected kernel, which is deprecated.", + "The user attempted to use a resource that requires a TOS they have not accepted.", + "The user created a boot disk that is larger than image size.", + "One or more of the resources set to auto-delete could not be deleted because they were in use.", + "Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.", + "Error which is not critical. We decided to continue the process despite the mentioned error.", + "Warning about failed cleanup of transient changes made by a failed operation.", + "Warning that value of a field has been overridden. Deprecated unused field.", + "Warning that a resource is in use.", + "A resource depends on a missing type", + "Warning that is present in an external api call", + "When a resource schema validation is ignored.", + "When undeclared properties in the schema are present", + "When deploying and at least one of the resources has a type marked as experimental", + "When deploying and at least one of the resources has a type marked as deprecated", + "Success is reported, but some results may be missing due to errors", + "When deploying a deployment with a exceedingly large number of resources" + ], "type": "string" }, "data": { - "description": "[Output Only] Metadata about this warning in key: value format. For example:\n\"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" }", + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", "items": { "properties": { "key": { @@ -2507,7 +2549,7 @@ "type": "object" }, "Policy": { - "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.\n\n\n\nA `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role.\n\nFor some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).\n\n**JSON example:**\n\n{ \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 }\n\n**YAML example:**\n\nbindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3\n\nFor a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", + "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", "id": "Policy", "properties": { "auditConfigs": { @@ -2525,23 +2567,12 @@ "type": "array" }, "etag": { - "description": "`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy.\n\n**Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.", + "description": "`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.", "format": "byte", "type": "string" }, - "iamOwned": { - "description": "", - "type": "boolean" - }, - "rules": { - "description": "If more than one rule is specified, the rules are applied in the following manner: - All matching LOG rules are always applied. - If any DENY/DENY_WITH_LOG rule matches, permission is denied. Logging will be applied if one or more matching rule requires logging. - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is granted. Logging will be applied if one or more matching rule requires logging. - Otherwise, if no rule applies, permission is denied.", - "items": { - "$ref": "Rule" - }, - "type": "array" - }, "version": { - "description": "Specifies the format of the policy.\n\nValid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected.\n\nAny operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations:\n\n* Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions\n\n**Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.\n\nIf a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.\n\nTo learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "description": "Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", "format": "int32", "type": "integer" } @@ -2549,7 +2580,6 @@ "type": "object" }, "PollingOptions": { - "description": "", "id": "PollingOptions", "properties": { "diagnostics": { @@ -2579,7 +2609,6 @@ "type": "object" }, "Resource": { - "description": "", "id": "Resource", "properties": { "accessControl": { @@ -2617,6 +2646,18 @@ "runtimePolicies": { "description": "Output only. In case this is an action, it will show the runtimePolicies on which this action will run in the deployment", "items": { + "enum": [ + "CREATE", + "DELETE", + "UPDATE_ON_CHANGE", + "UPDATE_ALWAYS" + ], + "enumDescriptions": [ + "The action will only be fired during create.", + "The action will only be fired when the action is removed from the deployment.", + "The action will fire during create, and if there is any changes on the inputs.", + "The action will fire during create, and every time there is an update to the deployment." + ], "type": "string" }, "type": "array" @@ -2643,10 +2684,64 @@ "properties": { "code": { "description": "[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.", + "enum": [ + "DEPRECATED_RESOURCE_USED", + "NO_RESULTS_ON_PAGE", + "UNREACHABLE", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_NOT_RUNNING", + "INJECTED_KERNELS_DEPRECATED", + "REQUIRED_TOS_AGREEMENT", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "RESOURCE_NOT_DELETED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "NOT_CRITICAL_ERROR", + "CLEANUP_FAILED", + "FIELD_VALUE_OVERRIDEN", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "MISSING_TYPE_DEPENDENCY", + "EXTERNAL_API_WARNING", + "SCHEMA_VALIDATION_IGNORED", + "UNDECLARED_PROPERTIES", + "EXPERIMENTAL_TYPE_USED", + "DEPRECATED_TYPE_USED", + "PARTIAL_SUCCESS", + "LARGE_DEPLOYMENT_WARNING" + ], + "enumDescriptions": [ + "A link to a deprecated resource was created.", + "No results are present on a particular list page.", + "A given scope cannot be reached.", + "The route's nextHopIp address is not assigned to an instance on the network.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the same network as the route.", + "The route's next hop instance cannot ip forward.", + "The route's next hop instance does not have a status of RUNNING.", + "The operation involved use of an injected kernel, which is deprecated.", + "The user attempted to use a resource that requires a TOS they have not accepted.", + "The user created a boot disk that is larger than image size.", + "One or more of the resources set to auto-delete could not be deleted because they were in use.", + "Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.", + "Error which is not critical. We decided to continue the process despite the mentioned error.", + "Warning about failed cleanup of transient changes made by a failed operation.", + "Warning that value of a field has been overridden. Deprecated unused field.", + "Warning that a resource is in use.", + "A resource depends on a missing type", + "Warning that is present in an external api call", + "When a resource schema validation is ignored.", + "When undeclared properties in the schema are present", + "When deploying and at least one of the resources has a type marked as experimental", + "When deploying and at least one of the resources has a type marked as deprecated", + "Success is reported, but some results may be missing due to errors", + "When deploying a deployment with a exceedingly large number of resources" + ], "type": "string" }, "data": { - "description": "[Output Only] Metadata about this warning in key: value format. For example:\n\"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" }", + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", "items": { "properties": { "key": { @@ -2686,7 +2781,6 @@ "type": "object" }, "ResourceUpdate": { - "description": "", "id": "ResourceUpdate", "properties": { "accessControl": { @@ -2730,6 +2824,22 @@ }, "intent": { "description": "Output only. The intent of the resource: `PREVIEW`, `UPDATE`, or `CANCEL`.", + "enum": [ + "CREATE_OR_ACQUIRE", + "DELETE", + "ACQUIRE", + "UPDATE", + "ABANDON", + "CREATE" + ], + "enumDescriptions": [ + "The resource is scheduled to be created, or if it already exists, acquired.", + "The resource is scheduled to be deleted.", + "The resource is scheduled to be acquired.", + "The resource is scheduled to be updated via the UPDATE method.", + "The resource is scheduled to be abandoned.", + "The resource is scheduled to be created." + ], "type": "string" }, "manifest": { @@ -2743,12 +2853,38 @@ "runtimePolicies": { "description": "Output only. In case this is an action, it will show the runtimePolicies that this action will have after updating the deployment.", "items": { + "enum": [ + "CREATE", + "DELETE", + "UPDATE_ON_CHANGE", + "UPDATE_ALWAYS" + ], + "enumDescriptions": [ + "The action will only be fired during create.", + "The action will only be fired when the action is removed from the deployment.", + "The action will fire during create, and if there is any changes on the inputs.", + "The action will fire during create, and every time there is an update to the deployment." + ], "type": "string" }, "type": "array" }, "state": { "description": "Output only. The state of the resource.", + "enum": [ + "PENDING", + "IN_PROGRESS", + "IN_PREVIEW", + "FAILED", + "ABORTED" + ], + "enumDescriptions": [ + "There are changes pending for this resource.", + "The service is executing changes on the resource.", + "The service is previewing changes on the resource.", + "The service has failed to change the resource.", + "The service has aborted trying to change the resource." + ], "type": "string" }, "warnings": { @@ -2757,10 +2893,64 @@ "properties": { "code": { "description": "[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.", + "enum": [ + "DEPRECATED_RESOURCE_USED", + "NO_RESULTS_ON_PAGE", + "UNREACHABLE", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_NOT_RUNNING", + "INJECTED_KERNELS_DEPRECATED", + "REQUIRED_TOS_AGREEMENT", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "RESOURCE_NOT_DELETED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "NOT_CRITICAL_ERROR", + "CLEANUP_FAILED", + "FIELD_VALUE_OVERRIDEN", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "MISSING_TYPE_DEPENDENCY", + "EXTERNAL_API_WARNING", + "SCHEMA_VALIDATION_IGNORED", + "UNDECLARED_PROPERTIES", + "EXPERIMENTAL_TYPE_USED", + "DEPRECATED_TYPE_USED", + "PARTIAL_SUCCESS", + "LARGE_DEPLOYMENT_WARNING" + ], + "enumDescriptions": [ + "A link to a deprecated resource was created.", + "No results are present on a particular list page.", + "A given scope cannot be reached.", + "The route's nextHopIp address is not assigned to an instance on the network.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the same network as the route.", + "The route's next hop instance cannot ip forward.", + "The route's next hop instance does not have a status of RUNNING.", + "The operation involved use of an injected kernel, which is deprecated.", + "The user attempted to use a resource that requires a TOS they have not accepted.", + "The user created a boot disk that is larger than image size.", + "One or more of the resources set to auto-delete could not be deleted because they were in use.", + "Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.", + "Error which is not critical. We decided to continue the process despite the mentioned error.", + "Warning about failed cleanup of transient changes made by a failed operation.", + "Warning that value of a field has been overridden. Deprecated unused field.", + "Warning that a resource is in use.", + "A resource depends on a missing type", + "Warning that is present in an external api call", + "When a resource schema validation is ignored.", + "When undeclared properties in the schema are present", + "When deploying and at least one of the resources has a type marked as experimental", + "When deploying and at least one of the resources has a type marked as deprecated", + "Success is reported, but some results may be missing due to errors", + "When deploying a deployment with a exceedingly large number of resources" + ], "type": "string" }, "data": { - "description": "[Output Only] Metadata about this warning in key: value format. For example:\n\"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" }", + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", "items": { "properties": { "key": { @@ -2806,56 +2996,6 @@ }, "type": "object" }, - "Rule": { - "description": "A rule to be applied in a Policy.", - "id": "Rule", - "properties": { - "action": { - "description": "Required", - "type": "string" - }, - "conditions": { - "description": "Additional restrictions that must be met. All conditions must pass for the rule to match.", - "items": { - "$ref": "Condition" - }, - "type": "array" - }, - "description": { - "description": "Human-readable description of the rule.", - "type": "string" - }, - "ins": { - "description": "If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.", - "items": { - "type": "string" - }, - "type": "array" - }, - "logConfigs": { - "description": "The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.", - "items": { - "$ref": "LogConfig" - }, - "type": "array" - }, - "notIns": { - "description": "If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.", - "items": { - "type": "string" - }, - "type": "array" - }, - "permissions": { - "description": "A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, "ServiceAccount": { "description": "Service Account used as a credential.", "id": "ServiceAccount", @@ -2868,7 +3008,6 @@ "type": "object" }, "TargetConfiguration": { - "description": "", "id": "TargetConfiguration", "properties": { "config": { @@ -2898,6 +3037,16 @@ }, "interpreter": { "description": "Which interpreter (python or jinja) should be used during expansion.", + "enum": [ + "UNKNOWN_INTERPRETER", + "PYTHON", + "JINJA" + ], + "enumDescriptions": [ + "", + "", + "" + ], "type": "string" }, "mainTemplate": { @@ -2945,8 +3094,8 @@ "description": "A resource type supported by Deployment Manager.", "id": "Type", "properties": { - "configurableService": { - "$ref": "ConfigurableService", + "base": { + "$ref": "BaseType", "description": "Base Type (configurable service) that backs this Type." }, "description": { @@ -2962,7 +3111,7 @@ "type": "string" }, "labels": { - "description": "Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.", + "description": "Map of One Platform labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.", "items": { "$ref": "TypeLabelEntry" }, @@ -3019,7 +3168,6 @@ "type": "object" }, "TypeInfoSchemaInfo": { - "description": "", "id": "TypeInfoSchemaInfo", "properties": { "input": { @@ -3034,12 +3182,15 @@ "type": "object" }, "TypeLabelEntry": { + "description": "Label object for Types", "id": "TypeLabelEntry", "properties": { "key": { + "description": "Key of the label", "type": "string" }, "value": { + "description": "Value of the label", "type": "string" } }, @@ -3085,7 +3236,7 @@ "type": "string" }, "labels": { - "description": "Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.", + "description": "Map of One Platform labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`", "items": { "$ref": "TypeProviderLabelEntry" }, @@ -3111,12 +3262,15 @@ "type": "object" }, "TypeProviderLabelEntry": { + "description": "Label object for TypeProviders", "id": "TypeProviderLabelEntry", "properties": { "key": { + "description": "Key of the label", "type": "string" }, "value": { + "description": "Value of the label", "type": "string" } }, @@ -3141,7 +3295,6 @@ "type": "object" }, "TypeProvidersListTypesResponse": { - "description": "", "id": "TypeProvidersListTypesResponse", "properties": { "nextPageToken": { @@ -3182,17 +3335,45 @@ "properties": { "schemaValidation": { "description": "Customize how deployment manager will validate the resource against schema errors.", + "enum": [ + "UNKNOWN", + "IGNORE", + "IGNORE_WITH_WARNINGS", + "FAIL" + ], + "enumDescriptions": [ + "", + "Ignore schema failures.", + "Ignore schema failures but display them as warnings.", + "Fail the resource if the schema is not valid, this is the default behavior." + ], "type": "string" }, "undeclaredProperties": { "description": "Specify what to do with extra properties when executing a request.", + "enum": [ + "UNKNOWN", + "INCLUDE", + "IGNORE", + "INCLUDE_WITH_WARNINGS", + "IGNORE_WITH_WARNINGS", + "FAIL" + ], + "enumDescriptions": [ + "", + "Always include even if not present on discovery doc.", + "Always ignore if not present on discovery doc.", + "Include on request, but emit a warning.", + "Ignore properties, but emit a warning.", + "Always fail if undeclared properties are present." + ], "type": "string" } }, "type": "object" } }, - "servicePath": "deploymentmanager/alpha/projects/", - "title": "Google Cloud Deployment Manager Alpha API", + "servicePath": "", + "title": "Cloud Deployment Manager V2 API", "version": "alpha" } \ No newline at end of file diff --git a/deploymentmanager/v0.alpha/deploymentmanager-gen.go b/deploymentmanager/v0.alpha/deploymentmanager-gen.go index f3b1c5cdc19..f43a15dfcdd 100644 --- a/deploymentmanager/v0.alpha/deploymentmanager-gen.go +++ b/deploymentmanager/v0.alpha/deploymentmanager-gen.go @@ -4,9 +4,9 @@ // Code generated file. DO NOT EDIT. -// Package deploymentmanager provides access to the Google Cloud Deployment Manager Alpha API. +// Package deploymentmanager provides access to the Cloud Deployment Manager V2 API. // -// For product documentation, see: https://cloud.google.com/deployment-manager/ +// For product documentation, see: https://cloud.google.com/deployment-manager // // Creating a client // @@ -78,7 +78,8 @@ var _ = internaloption.WithDefaultEndpoint const apiId = "deploymentmanager:alpha" const apiName = "deploymentmanager" const apiVersion = "alpha" -const basePath = "https://www.googleapis.com/deploymentmanager/alpha/projects/" +const basePath = "https://deploymentmanager.googleapis.com/" +const mtlsBasePath = "https://deploymentmanager.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( @@ -108,6 +109,7 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -269,33 +271,26 @@ func (s *AsyncOptions) MarshalJSON() ([]byte, error) { // AuditConfig: Specifies the audit configuration for a service. The // configuration determines which permission types are logged, and what // identities, if any, are exempted from logging. An AuditConfig must -// have one or more AuditLogConfigs. -// -// If there are AuditConfigs for both `allServices` and a specific -// service, the union of the two AuditConfigs is used for that service: -// the log_types specified in each AuditConfig are enabled, and the -// exempted_members in each AuditLogConfig are exempted. -// -// Example Policy with multiple AuditConfigs: -// -// { "audit_configs": [ { "service": "allServices" "audit_log_configs": -// [ { "log_type": "DATA_READ", "exempted_members": [ -// "user:jose@example.com" ] }, { "log_type": "DATA_WRITE", }, { -// "log_type": "ADMIN_READ", } ] }, { "service": -// "sampleservice.googleapis.com" "audit_log_configs": [ { "log_type": -// "DATA_READ", }, { "log_type": "DATA_WRITE", "exempted_members": [ -// "user:aliya@example.com" ] } ] } ] } -// -// For sampleservice, this policy enables DATA_READ, DATA_WRITE and -// ADMIN_READ logging. It also exempts jose@example.com from DATA_READ -// logging, and aliya@example.com from DATA_WRITE logging. +// have one or more AuditLogConfigs. If there are AuditConfigs for both +// `allServices` and a specific service, the union of the two +// AuditConfigs is used for that service: the log_types specified in +// each AuditConfig are enabled, and the exempted_members in each +// AuditLogConfig are exempted. Example Policy with multiple +// AuditConfigs: { "audit_configs": [ { "service": "allServices", +// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": +// [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { +// "log_type": "ADMIN_READ" } ] }, { "service": +// "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": +// "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ +// "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy +// enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts +// jose@example.com from DATA_READ logging, and aliya@example.com from +// DATA_WRITE logging. type AuditConfig struct { // AuditLogConfigs: The configuration for logging of each type of // permission. AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"` - ExemptedMembers []string `json:"exemptedMembers,omitempty"` - // Service: Specifies a service that will be enabled for audit logging. // For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. // `allServices` is a special value that covers all services. @@ -326,23 +321,24 @@ func (s *AuditConfig) MarshalJSON() ([]byte, error) { } // AuditLogConfig: Provides the configuration for logging a type of -// permissions. Example: -// -// { "audit_log_configs": [ { "log_type": "DATA_READ", -// "exempted_members": [ "user:jose@example.com" ] }, { "log_type": -// "DATA_WRITE", } ] } -// -// This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting -// jose@example.com from DATA_READ logging. +// permissions. Example: { "audit_log_configs": [ { "log_type": +// "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { +// "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and +// 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ +// logging. type AuditLogConfig struct { // ExemptedMembers: Specifies the identities that do not cause logging // for this type of permission. Follows the same format of - // [Binding.members][]. + // Binding.members. ExemptedMembers []string `json:"exemptedMembers,omitempty"` - IgnoreChildExemptions bool `json:"ignoreChildExemptions,omitempty"` - // LogType: The log type that this config enables. + // + // Possible values: + // "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this. + // "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy + // "DATA_WRITE" - Data writes. Example: CloudSQL Users create + // "DATA_READ" - Data reads. Example: CloudSQL Users list LogType string `json:"logType,omitempty"` // ForceSendFields is a list of field names (e.g. "ExemptedMembers") to @@ -369,21 +365,31 @@ func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AuthorizationLoggingOptions: Authorization-related information used -// by Cloud Audit Logging. -type AuthorizationLoggingOptions struct { - // PermissionType: The type of the permission that was checked. - PermissionType string `json:"permissionType,omitempty"` +// BaseType: BaseType that describes a service-backed Type. +type BaseType struct { + // CollectionOverrides: Allows resource handling overrides for specific + // collections + CollectionOverrides []*CollectionOverride `json:"collectionOverrides,omitempty"` - // ForceSendFields is a list of field names (e.g. "PermissionType") to - // unconditionally include in API requests. By default, fields with + // Credential: Credential used when interacting with this type. + Credential *Credential `json:"credential,omitempty"` + + // DescriptorUrl: Descriptor Url for the this type. + DescriptorUrl string `json:"descriptorUrl,omitempty"` + + // Options: Options to apply when handling any resources in this + // service. + Options *Options `json:"options,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CollectionOverrides") + // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PermissionType") to + // NullFields is a list of field names (e.g. "CollectionOverrides") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -393,8 +399,8 @@ type AuthorizationLoggingOptions struct { NullFields []string `json:"-"` } -func (s *AuthorizationLoggingOptions) MarshalJSON() ([]byte, error) { - type NoMethod AuthorizationLoggingOptions +func (s *BaseType) MarshalJSON() ([]byte, error) { + type NoMethod BaseType raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } @@ -430,68 +436,49 @@ func (s *BasicAuth) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { - // Condition: The condition that is associated with this binding. - // - // If the condition evaluates to `true`, then this binding applies to - // the current request. - // - // If the condition evaluates to `false`, then this binding does not - // apply to the current request. However, a different role binding might - // grant the same role to one or more of the members in this - // binding. - // - // To learn which resources support conditions in their IAM policies, - // see the [IAM + // Condition: The condition that is associated with this binding. If the + // condition evaluates to `true`, then this binding applies to the + // current request. If the condition evaluates to `false`, then this + // binding does not apply to the current request. However, a different + // role binding might grant the same role to one or more of the members + // in this binding. To learn which resources support conditions in their + // IAM policies, see the [IAM // documentation](https://cloud.google.com/iam/help/conditions/resource-p // olicies). Condition *Expr `json:"condition,omitempty"` // Members: Specifies the identities requesting access for a Cloud - // Platform resource. `members` can have the following values: - // - // * `allUsers`: A special identifier that represents anyone who is on - // the internet; with or without a Google account. - // - // * `allAuthenticatedUsers`: A special identifier that represents - // anyone who is authenticated with a Google account or a service - // account. - // - // * `user:{emailid}`: An email address that represents a specific - // Google account. For example, `alice@example.com` . - // - // - // - // * `serviceAccount:{emailid}`: An email address that represents a + // Platform resource. `members` can have the following values: * + // `allUsers`: A special identifier that represents anyone who is on the + // internet; with or without a Google account. * + // `allAuthenticatedUsers`: A special identifier that represents anyone + // who is authenticated with a Google account or a service account. * + // `user:{emailid}`: An email address that represents a specific Google + // account. For example, `alice@example.com` . * + // `serviceAccount:{emailid}`: An email address that represents a // service account. For example, - // `my-other-app@appspot.gserviceaccount.com`. - // - // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. - // - // * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus - // unique identifier) representing a user that has been recently - // deleted. For example, `alice@example.com?uid=123456789012345678901`. - // If the user is recovered, this value reverts to `user:{emailid}` and - // the recovered user retains the role in the binding. - // - // * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address + // `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An + // email address that represents a Google group. For example, + // `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An + // email address (plus unique identifier) representing a user that has + // been recently deleted. For example, + // `alice@example.com?uid=123456789012345678901`. If the user is + // recovered, this value reverts to `user:{emailid}` and the recovered + // user retains the role in the binding. * + // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address // (plus unique identifier) representing a service account that has been // recently deleted. For example, // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. // If the service account is undeleted, this value reverts to // `serviceAccount:{emailid}` and the undeleted service account retains - // the role in the binding. - // - // * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus - // unique identifier) representing a Google group that has been recently - // deleted. For example, `admins@example.com?uid=123456789012345678901`. - // If the group is recovered, this value reverts to `group:{emailid}` - // and the recovered group retains the role in the binding. - // - // - // - // * `domain:{domain}`: The G Suite domain (primary) that represents all - // the users of that domain. For example, `google.com` or `example.com`. + // the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: + // An email address (plus unique identifier) representing a Google group + // that has been recently deleted. For example, + // `admins@example.com?uid=123456789012345678901`. If the group is + // recovered, this value reverts to `group:{emailid}` and the recovered + // group retains the role in the binding. * `domain:{domain}`: The G + // Suite domain (primary) that represents all the users of that domain. + // For example, `google.com` or `example.com`. Members []string `json:"members,omitempty"` // Role: Role that is assigned to `members`. For example, @@ -588,6 +575,11 @@ type CompositeType struct { // SelfLink: Output only. Server defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` + // Possible values: + // "UNKNOWN_STATUS" + // "DEPRECATED" + // "EXPERIMENTAL" + // "SUPPORTED" Status string `json:"status,omitempty"` // TemplateContents: Files for the template type. @@ -620,9 +612,12 @@ func (s *CompositeType) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CompositeTypeLabelEntry: Label object for CompositeTypes type CompositeTypeLabelEntry struct { + // Key: Key of the label Key string `json:"key,omitempty"` + // Value: Value of the label Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") to @@ -686,47 +681,6 @@ func (s *CompositeTypesListResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Condition: A condition to be met. -type Condition struct { - // Iam: Trusted attributes supplied by the IAM system. - Iam string `json:"iam,omitempty"` - - // Op: An operator to apply the subject with. - Op string `json:"op,omitempty"` - - // Svc: Trusted attributes discharged by the service. - Svc string `json:"svc,omitempty"` - - // Sys: Trusted attributes supplied by any service that owns resources - // and uses the IAM system for access control. - Sys string `json:"sys,omitempty"` - - // Values: The objects of the condition. - Values []string `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Iam") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Iam") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *Condition) MarshalJSON() ([]byte, error) { - type NoMethod Condition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - type ConfigFile struct { // Content: The contents of the file. Content string `json:"content,omitempty"` @@ -754,46 +708,6 @@ func (s *ConfigFile) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ConfigurableService: BaseType that describes a service-backed Type. -type ConfigurableService struct { - // CollectionOverrides: Allows resource handling overrides for specific - // collections - CollectionOverrides []*CollectionOverride `json:"collectionOverrides,omitempty"` - - // Credential: Credential used when interacting with this type. - Credential *Credential `json:"credential,omitempty"` - - // DescriptorUrl: Descriptor Url for the this type. - DescriptorUrl string `json:"descriptorUrl,omitempty"` - - // Options: Options to apply when handling any resources in this - // service. - Options *Options `json:"options,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CollectionOverrides") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CollectionOverrides") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *ConfigurableService) MarshalJSON() ([]byte, error) { - type NoMethod ConfigurableService - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // Credential: The credential used by Deployment Manager and // TypeProvider. Only one of the options is permitted. type Credential struct { @@ -842,11 +756,10 @@ type Deployment struct { // requests. A fingerprint is a randomly generated value that must be // provided with `update()`, `stop()`, and `cancelPreview()` requests to // perform optimistic locking. This ensures optimistic concurrency so - // that only one request happens at a time. - // - // The fingerprint is initially generated by Deployment Manager and - // changes after every request to modify data. To get the latest - // fingerprint value, perform a `get()` request to a deployment. + // that only one request happens at a time. The fingerprint is initially + // generated by Deployment Manager and changes after every request to + // modify data. To get the latest fingerprint value, perform a `get()` + // request to a deployment. Fingerprint string `json:"fingerprint,omitempty"` Id uint64 `json:"id,omitempty,string"` @@ -854,12 +767,12 @@ type Deployment struct { // InsertTime: Output only. Creation timestamp in RFC3339 text format. InsertTime string `json:"insertTime,omitempty"` - // Labels: Map of labels; provided by the client when the resource is - // created or updated. Specifically: Label keys must be between 1 and 63 - // characters long and must conform to the following regular expression: - // `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 - // characters long and must conform to the regular expression - // `([a-z]([-a-z0-9]*[a-z0-9])?)?`. + // Labels: Map of One Platform labels; provided by the client when the + // resource is created or updated. Specifically: Label keys must be + // between 1 and 63 characters long and must conform to the following + // regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be + // between 0 and 63 characters long and must conform to the regular + // expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. Labels []*DeploymentLabelEntry `json:"labels,omitempty"` // Manifest: Output only. URL of the manifest representing the last @@ -926,9 +839,12 @@ func (s *Deployment) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DeploymentLabelEntry: Label object for Deployments type DeploymentLabelEntry struct { + // Key: Key of the label Key string `json:"key,omitempty"` + // Value: Value of the label Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") to @@ -994,7 +910,7 @@ type DeploymentUpdate struct { // the deployment after the current update has been applied. Description string `json:"description,omitempty"` - // Labels: Output only. Map of labels; provided by the client when the + // Labels: Map of One Platform labels; provided by the client when the // resource is created or updated. Specifically: Label keys must be // between 1 and 63 characters long and must conform to the following // regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be @@ -1029,9 +945,12 @@ func (s *DeploymentUpdate) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DeploymentUpdateLabelEntry: Label object for DeploymentUpdate type DeploymentUpdateLabelEntry struct { + // Key: Key of the label Key string `json:"key,omitempty"` + // Value: Value of the label Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") to @@ -1064,11 +983,10 @@ type DeploymentsCancelPreviewRequest struct { // ensures optimistic concurrency so that the deployment does not have // conflicting requests (e.g. if someone attempts to make a new update // request while another user attempts to cancel a preview, this would - // prevent one of the requests). - // - // The fingerprint is initially generated by Deployment Manager and - // changes after every request to modify a deployment. To get the latest - // fingerprint value, perform a `get()` request on the deployment. + // prevent one of the requests). The fingerprint is initially generated + // by Deployment Manager and changes after every request to modify a + // deployment. To get the latest fingerprint value, perform a `get()` + // request on the deployment. Fingerprint string `json:"fingerprint,omitempty"` // ForceSendFields is a list of field names (e.g. "Fingerprint") to @@ -1139,11 +1057,10 @@ type DeploymentsStopRequest struct { // optimistic concurrency so that the deployment does not have // conflicting requests (e.g. if someone attempts to make a new update // request while another user attempts to stop an ongoing update - // request, this would prevent a collision). - // - // The fingerprint is initially generated by Deployment Manager and - // changes after every request to modify a deployment. To get the latest - // fingerprint value, perform a `get()` request on the deployment. + // request, this would prevent a collision). The fingerprint is + // initially generated by Deployment Manager and changes after every + // request to modify a deployment. To get the latest fingerprint value, + // perform a `get()` request on the deployment. Fingerprint string `json:"fingerprint,omitempty"` // ForceSendFields is a list of field names (e.g. "Fingerprint") to @@ -1175,6 +1092,16 @@ type Diagnostic struct { Field string `json:"field,omitempty"` // Level: Level to record this diagnostic. + // + // Possible values: + // "UNKNOWN" + // "INFORMATION" - If level is informational, it only gets displayed + // as part of the resource. + // "WARNING" - If level is warning, will end up in the resource as a + // warning. + // "ERROR" - If level is error, it will indicate an error occurred + // after finishCondition is set, and this field will populate resource + // errors and operation errors. Level string `json:"level,omitempty"` // ForceSendFields is a list of field names (e.g. "Field") to @@ -1203,35 +1130,21 @@ func (s *Diagnostic) MarshalJSON() ([]byte, error) { // Expr: Represents a textual expression in the Common Expression // Language (CEL) syntax. CEL is a C-like expression language. The // syntax and semantics of CEL are documented at -// https://github.com/google/cel-spec. -// -// Example (Comparison): -// -// title: "Summary size limit" description: "Determines if a summary is -// less than 100 chars" expression: "document.summary.size() < -// 100" -// -// Example (Equality): -// -// title: "Requestor is owner" description: "Determines if requestor is -// the document owner" expression: "document.owner == -// request.auth.claims.email" -// -// Example (Logic): -// -// title: "Public documents" description: "Determine whether the -// document should be publicly visible" expression: "document.type != -// 'private' && document.type != 'internal'" -// -// Example (Data Manipulation): -// -// title: "Notification string" description: "Create a notification -// string with a timestamp." expression: "'New message received at ' + -// string(document.create_time)" -// -// The exact variables and functions that may be referenced within an -// expression are determined by the service that evaluates it. See the -// service documentation for additional information. +// https://github.com/google/cel-spec. Example (Comparison): title: +// "Summary size limit" description: "Determines if a summary is less +// than 100 chars" expression: "document.summary.size() < 100" Example +// (Equality): title: "Requestor is owner" description: "Determines if +// requestor is the document owner" expression: "document.owner == +// request.auth.claims.email" Example (Logic): title: "Public documents" +// description: "Determine whether the document should be publicly +// visible" expression: "document.type != 'private' && document.type != +// 'internal'" Example (Data Manipulation): title: "Notification string" +// description: "Create a notification string with a timestamp." +// expression: "'New message received at ' + +// string(document.create_time)" The exact variables and functions that +// may be referenced within an expression are determined by the service +// that evaluates it. See the service documentation for additional +// information. type Expr struct { // Description: Optional. Description of the expression. This is a // longer text which describes the expression, e.g. when hovered over it @@ -1350,6 +1263,13 @@ type InputMapping struct { FieldName string `json:"fieldName,omitempty"` // Location: The location where this mapping applies. + // + // Possible values: + // "UNKNOWN" + // "PATH" + // "QUERY" + // "BODY" + // "HEADER" Location string `json:"location,omitempty"` // MethodMatch: Regex to evaluate on method to decide if input applies. @@ -1381,192 +1301,6 @@ func (s *InputMapping) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// LogConfig: Specifies what kind of log the caller must write -type LogConfig struct { - // CloudAudit: Cloud audit options. - CloudAudit *LogConfigCloudAuditOptions `json:"cloudAudit,omitempty"` - - // Counter: Counter options. - Counter *LogConfigCounterOptions `json:"counter,omitempty"` - - // DataAccess: Data access options. - DataAccess *LogConfigDataAccessOptions `json:"dataAccess,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CloudAudit") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CloudAudit") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *LogConfig) MarshalJSON() ([]byte, error) { - type NoMethod LogConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// LogConfigCloudAuditOptions: Write a Cloud Audit log -type LogConfigCloudAuditOptions struct { - // AuthorizationLoggingOptions: Information used by the Cloud Audit - // Logging pipeline. - AuthorizationLoggingOptions *AuthorizationLoggingOptions `json:"authorizationLoggingOptions,omitempty"` - - // LogName: The log_name to populate in the Cloud Audit Record. - LogName string `json:"logName,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AuthorizationLoggingOptions") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "AuthorizationLoggingOptions") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *LogConfigCloudAuditOptions) MarshalJSON() ([]byte, error) { - type NoMethod LogConfigCloudAuditOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// LogConfigCounterOptions: Increment a streamz counter with the -// specified metric and field names. -// -// Metric names should start with a '/', generally be lowercase-only, -// and end in "_count". Field names should not contain an initial slash. -// The actual exported metric names will have "/iam/policy" -// prepended. -// -// Field names correspond to IAM request parameters and field values are -// their respective values. -// -// Supported field names: - "authority", which is "[token]" if -// IAMContext.token is present, otherwise the value of -// IAMContext.authority_selector if present, and otherwise a -// representation of IAMContext.principal; or - "iam_principal", a -// representation of IAMContext.principal even if a token or authority -// selector is present; or - "" (empty string), resulting in a counter -// with no fields. -// -// Examples: counter { metric: "/debug_access_count" field: -// "iam_principal" } ==> increment counter -// /iam/policy/debug_access_count {iam_principal=[value of -// IAMContext.principal]} -type LogConfigCounterOptions struct { - // CustomFields: Custom fields. - CustomFields []*LogConfigCounterOptionsCustomField `json:"customFields,omitempty"` - - // Field: The field value to attribute. - Field string `json:"field,omitempty"` - - // Metric: The metric to update. - Metric string `json:"metric,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CustomFields") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CustomFields") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *LogConfigCounterOptions) MarshalJSON() ([]byte, error) { - type NoMethod LogConfigCounterOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// LogConfigCounterOptionsCustomField: Custom fields. These can be used -// to create a counter with arbitrary field/value pairs. See: -// go/rpcsp-custom-fields. -type LogConfigCounterOptionsCustomField struct { - // Name: Name is the field name. - Name string `json:"name,omitempty"` - - // Value: Value is the field value. It is important that in contrast to - // the CounterOptions.field, the value here is a constant that is not - // derived from the IAMContext. - Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *LogConfigCounterOptionsCustomField) MarshalJSON() ([]byte, error) { - type NoMethod LogConfigCounterOptionsCustomField - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// LogConfigDataAccessOptions: Write a Data Access (Gin) log -type LogConfigDataAccessOptions struct { - LogMode string `json:"logMode,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LogMode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LogMode") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *LogConfigDataAccessOptions) MarshalJSON() ([]byte, error) { - type NoMethod LogConfigDataAccessOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - type Manifest struct { // Config: Output only. The YAML configuration for this manifest. Config *ConfigFile `json:"config,omitempty"` @@ -1586,9 +1320,7 @@ type Manifest struct { // Layout: Output only. The YAML layout for this manifest. Layout string `json:"layout,omitempty"` - // Name: Output only. - // - // The name of the manifest. + // Name: Output only. The name of the manifest. Name string `json:"name,omitempty"` // SelfLink: Output only. Self link for the manifest. @@ -1705,30 +1437,20 @@ func (s *MethodMap) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Operation: Represents an Operation resource. -// -// Google Compute Engine has three Operation resources: -// -// * +// Operation: Represents an Operation resource. Google Compute Engine +// has three Operation resources: * // [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) // * // [Regional](/compute/docs/reference/rest/{$api_version}/regionOperation // s) * // [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) -// -// Y -// ou can use an operation resource to manage asynchronous API requests. -// For more information, read Handling API responses. -// -// Operations can be global, regional or zonal. -// - For global operations, use the `globalOperations` resource. -// - For regional operations, use the `regionOperations` resource. -// - For zonal operations, use the `zonalOperations` resource. -// -// For more information, read Global, Regional, and Zonal Resources. -// (== resource_for {$api_version}.globalOperations ==) (== resource_for -// {$api_version}.regionOperations ==) (== resource_for -// {$api_version}.zoneOperations ==) +// You can use an operation resource to manage asynchronous API +// requests. For more information, read Handling API responses. +// Operations can be global, regional or zonal. - For global operations, +// use the `globalOperations` resource. - For regional operations, use +// the `regionOperations` resource. - For zonal operations, use the +// `zonalOperations` resource. For more information, read Global, +// Regional, and Zonal Resources. type Operation struct { // ClientOperationId: [Output Only] The value of `requestId` if you // provided it in the request. Not present otherwise. @@ -1792,16 +1514,17 @@ type Operation struct { // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` - // SelfLinkWithId: [Output Only] Server-defined URL for this resource - // with the resource id. - SelfLinkWithId string `json:"selfLinkWithId,omitempty"` - // StartTime: [Output Only] The time that this operation was started by // the server. This value is in RFC3339 text format. StartTime string `json:"startTime,omitempty"` // Status: [Output Only] The status of the operation, which can be one // of the following: `PENDING`, `RUNNING`, or `DONE`. + // + // Possible values: + // "PENDING" + // "RUNNING" + // "DONE" Status string `json:"status,omitempty"` // StatusMessage: [Output Only] An optional textual description of the @@ -1925,11 +1648,64 @@ type OperationWarnings struct { // Code: [Output Only] A warning code, if applicable. For example, // Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in // the response. + // + // Possible values: + // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was + // created. + // "NO_RESULTS_ON_PAGE" - No results are present on a particular list + // page. + // "UNREACHABLE" - A given scope cannot be reached. + // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is + // not assigned to an instance on the network. + // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL + // refers to an instance that does not exist. + // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance + // URL refers to an instance that is not on the same network as the + // route. + // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot + // ip forward. + // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not + // have a status of RUNNING. + // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an + // injected kernel, which is deprecated. + // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource + // that requires a TOS they have not accepted. + // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk + // that is larger than image size. + // "RESOURCE_NOT_DELETED" - One or more of the resources set to + // auto-delete could not be deleted because they were in use. + // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in + // instance group manager is valid as such, but its application does not + // make a lot of sense, because it allows only single instance in + // instance group. + // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to + // continue the process despite the mentioned error. + // "CLEANUP_FAILED" - Warning about failed cleanup of transient + // changes made by a failed operation. + // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been + // overridden. Deprecated unused field. + // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a + // resource is in use. + // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type + // "EXTERNAL_API_WARNING" - Warning that is present in an external api + // call + // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is + // ignored. + // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema + // are present + // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as experimental + // "DEPRECATED_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as deprecated + // "PARTIAL_SUCCESS" - Success is reported, but some results may be + // missing due to errors + // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a + // exceedingly large number of resources Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. - // For example: - // "data": [ { "key": "scope", "value": "zones/us-east1-d" } + // For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" + // } Data []*OperationWarningsData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning @@ -2076,50 +1852,37 @@ func (s *Options) MarshalJSON() ([]byte, error) { } // Policy: An Identity and Access Management (IAM) policy, which -// specifies access controls for Google Cloud resources. -// -// -// -// A `Policy` is a collection of `bindings`. A `binding` binds one or -// more `members` to a single `role`. Members can be user accounts, -// service accounts, Google groups, and domains (such as G Suite). A -// `role` is a named list of permissions; each `role` can be an IAM -// predefined role or a user-created custom role. -// -// For some types of Google Cloud resources, a `binding` can also -// specify a `condition`, which is a logical expression that allows -// access to a resource only if the expression evaluates to `true`. A -// condition can add constraints based on attributes of the request, the -// resource, or both. To learn which resources support conditions in -// their IAM policies, see the [IAM +// specifies access controls for Google Cloud resources. A `Policy` is a +// collection of `bindings`. A `binding` binds one or more `members` to +// a single `role`. Members can be user accounts, service accounts, +// Google groups, and domains (such as G Suite). A `role` is a named +// list of permissions; each `role` can be an IAM predefined role or a +// user-created custom role. For some types of Google Cloud resources, a +// `binding` can also specify a `condition`, which is a logical +// expression that allows access to a resource only if the expression +// evaluates to `true`. A condition can add constraints based on +// attributes of the request, the resource, or both. To learn which +// resources support conditions in their IAM policies, see the [IAM // documentation](https://cloud.google.com/iam/help/conditions/resource-p -// olicies). -// -// **JSON example:** -// -// { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", -// "members": [ "user:mike@example.com", "group:admins@example.com", +// olicies). **JSON example:** { "bindings": [ { "role": +// "roles/resourcemanager.organizationAdmin", "members": [ +// "user:mike@example.com", "group:admins@example.com", // "domain:google.com", // "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { // "role": "roles/resourcemanager.organizationViewer", "members": [ // "user:eve@example.com" ], "condition": { "title": "expirable access", // "description": "Does not grant access after Sep 2020", "expression": // "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], -// "etag": "BwWWja0YfJA=", "version": 3 } -// -// **YAML example:** -// -// bindings: - members: - user:mike@example.com - -// group:admins@example.com - domain:google.com - +// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - +// members: - user:mike@example.com - group:admins@example.com - +// domain:google.com - // serviceAccount:my-project-id@appspot.gserviceaccount.com role: // roles/resourcemanager.organizationAdmin - members: - // user:eve@example.com role: roles/resourcemanager.organizationViewer // condition: title: expirable access description: Does not grant access // after Sep 2020 expression: request.time < // timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: -// 3 -// -// For a description of IAM and its features, see the [IAM +// 3 For a description of IAM and its features, see the [IAM // documentation](https://cloud.google.com/iam/docs/). type Policy struct { // AuditConfigs: Specifies cloud audit logging configuration for this @@ -2138,50 +1901,28 @@ type Policy struct { // avoid race conditions: An `etag` is returned in the response to // `getIamPolicy`, and systems are expected to put that etag in the // request to `setIamPolicy` to ensure that their change will be applied - // to the same version of the policy. - // - // **Important:** If you use IAM Conditions, you must include the `etag` - // field whenever you call `setIamPolicy`. If you omit this field, then - // IAM allows you to overwrite a version `3` policy with a version `1` - // policy, and all of the conditions in the version `3` policy are lost. + // to the same version of the policy. **Important:** If you use IAM + // Conditions, you must include the `etag` field whenever you call + // `setIamPolicy`. If you omit this field, then IAM allows you to + // overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. Etag string `json:"etag,omitempty"` - IamOwned bool `json:"iamOwned,omitempty"` - - // Rules: If more than one rule is specified, the rules are applied in - // the following manner: - All matching LOG rules are always applied. - - // If any DENY/DENY_WITH_LOG rule matches, permission is denied. Logging - // will be applied if one or more matching rule requires logging. - - // Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is - // granted. Logging will be applied if one or more matching rule - // requires logging. - Otherwise, if no rule applies, permission is - // denied. - Rules []*Rule `json:"rules,omitempty"` - - // Version: Specifies the format of the policy. - // - // Valid values are `0`, `1`, and `3`. Requests that specify an invalid - // value are rejected. - // + // Version: Specifies the format of the policy. Valid values are `0`, + // `1`, and `3`. Requests that specify an invalid value are rejected. // Any operation that affects conditional role bindings must specify - // version `3`. This requirement applies to the following operations: - // - // * Getting a policy that includes a conditional role binding * Adding - // a conditional role binding to a policy * Changing a conditional role + // version `3`. This requirement applies to the following operations: * + // Getting a policy that includes a conditional role binding * Adding a + // conditional role binding to a policy * Changing a conditional role // binding in a policy * Removing any role binding, with or without a - // condition, from a policy that includes conditions - // - // **Important:** If you use IAM Conditions, you must include the `etag` - // field whenever you call `setIamPolicy`. If you omit this field, then - // IAM allows you to overwrite a version `3` policy with a version `1` - // policy, and all of the conditions in the version `3` policy are - // lost. - // - // If a policy does not include any conditions, operations on that - // policy may specify any valid version or leave the field unset. - // - // To learn which resources support conditions in their IAM policies, - // see the [IAM + // condition, from a policy that includes conditions **Important:** If + // you use IAM Conditions, you must include the `etag` field whenever + // you call `setIamPolicy`. If you omit this field, then IAM allows you + // to overwrite a version `3` policy with a version `1` policy, and all + // of the conditions in the version `3` policy are lost. If a policy + // does not include any conditions, operations on that policy may + // specify any valid version or leave the field unset. To learn which + // resources support conditions in their IAM policies, see the [IAM // documentation](https://cloud.google.com/iam/help/conditions/resource-p // olicies). Version int64 `json:"version,omitempty"` @@ -2289,6 +2030,15 @@ type Resource struct { // RuntimePolicies: Output only. In case this is an action, it will show // the runtimePolicies on which this action will run in the deployment + // + // Possible values: + // "CREATE" - The action will only be fired during create. + // "DELETE" - The action will only be fired when the action is removed + // from the deployment. + // "UPDATE_ON_CHANGE" - The action will fire during create, and if + // there is any changes on the inputs. + // "UPDATE_ALWAYS" - The action will fire during create, and every + // time there is an update to the deployment. RuntimePolicies []string `json:"runtimePolicies,omitempty"` // Type: Output only. The type of the resource, for example @@ -2341,11 +2091,64 @@ type ResourceWarnings struct { // Code: [Output Only] A warning code, if applicable. For example, // Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in // the response. + // + // Possible values: + // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was + // created. + // "NO_RESULTS_ON_PAGE" - No results are present on a particular list + // page. + // "UNREACHABLE" - A given scope cannot be reached. + // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is + // not assigned to an instance on the network. + // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL + // refers to an instance that does not exist. + // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance + // URL refers to an instance that is not on the same network as the + // route. + // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot + // ip forward. + // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not + // have a status of RUNNING. + // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an + // injected kernel, which is deprecated. + // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource + // that requires a TOS they have not accepted. + // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk + // that is larger than image size. + // "RESOURCE_NOT_DELETED" - One or more of the resources set to + // auto-delete could not be deleted because they were in use. + // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in + // instance group manager is valid as such, but its application does not + // make a lot of sense, because it allows only single instance in + // instance group. + // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to + // continue the process despite the mentioned error. + // "CLEANUP_FAILED" - Warning about failed cleanup of transient + // changes made by a failed operation. + // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been + // overridden. Deprecated unused field. + // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a + // resource is in use. + // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type + // "EXTERNAL_API_WARNING" - Warning that is present in an external api + // call + // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is + // ignored. + // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema + // are present + // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as experimental + // "DEPRECATED_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as deprecated + // "PARTIAL_SUCCESS" - Success is reported, but some results may be + // missing due to errors + // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a + // exceedingly large number of resources Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. - // For example: - // "data": [ { "key": "scope", "value": "zones/us-east1-d" } + // For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" + // } Data []*ResourceWarningsData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning @@ -2459,6 +2262,16 @@ type ResourceUpdate struct { // Intent: Output only. The intent of the resource: `PREVIEW`, `UPDATE`, // or `CANCEL`. + // + // Possible values: + // "CREATE_OR_ACQUIRE" - The resource is scheduled to be created, or + // if it already exists, acquired. + // "DELETE" - The resource is scheduled to be deleted. + // "ACQUIRE" - The resource is scheduled to be acquired. + // "UPDATE" - The resource is scheduled to be updated via the UPDATE + // method. + // "ABANDON" - The resource is scheduled to be abandoned. + // "CREATE" - The resource is scheduled to be created. Intent string `json:"intent,omitempty"` // Manifest: Output only. URL of the manifest representing the update @@ -2473,9 +2286,25 @@ type ResourceUpdate struct { // RuntimePolicies: Output only. In case this is an action, it will show // the runtimePolicies that this action will have after updating the // deployment. + // + // Possible values: + // "CREATE" - The action will only be fired during create. + // "DELETE" - The action will only be fired when the action is removed + // from the deployment. + // "UPDATE_ON_CHANGE" - The action will fire during create, and if + // there is any changes on the inputs. + // "UPDATE_ALWAYS" - The action will fire during create, and every + // time there is an update to the deployment. RuntimePolicies []string `json:"runtimePolicies,omitempty"` // State: Output only. The state of the resource. + // + // Possible values: + // "PENDING" - There are changes pending for this resource. + // "IN_PROGRESS" - The service is executing changes on the resource. + // "IN_PREVIEW" - The service is previewing changes on the resource. + // "FAILED" - The service has failed to change the resource. + // "ABORTED" - The service has aborted trying to change the resource. State string `json:"state,omitempty"` // Warnings: Output only. If warning messages are generated during @@ -2573,11 +2402,64 @@ type ResourceUpdateWarnings struct { // Code: [Output Only] A warning code, if applicable. For example, // Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in // the response. + // + // Possible values: + // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was + // created. + // "NO_RESULTS_ON_PAGE" - No results are present on a particular list + // page. + // "UNREACHABLE" - A given scope cannot be reached. + // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is + // not assigned to an instance on the network. + // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL + // refers to an instance that does not exist. + // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance + // URL refers to an instance that is not on the same network as the + // route. + // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot + // ip forward. + // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not + // have a status of RUNNING. + // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an + // injected kernel, which is deprecated. + // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource + // that requires a TOS they have not accepted. + // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk + // that is larger than image size. + // "RESOURCE_NOT_DELETED" - One or more of the resources set to + // auto-delete could not be deleted because they were in use. + // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in + // instance group manager is valid as such, but its application does not + // make a lot of sense, because it allows only single instance in + // instance group. + // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to + // continue the process despite the mentioned error. + // "CLEANUP_FAILED" - Warning about failed cleanup of transient + // changes made by a failed operation. + // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been + // overridden. Deprecated unused field. + // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a + // resource is in use. + // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type + // "EXTERNAL_API_WARNING" - Warning that is present in an external api + // call + // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is + // ignored. + // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema + // are present + // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as experimental + // "DEPRECATED_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as deprecated + // "PARTIAL_SUCCESS" - Success is reported, but some results may be + // missing due to errors + // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a + // exceedingly large number of resources Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. - // For example: - // "data": [ { "key": "scope", "value": "zones/us-east1-d" } + // For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" + // } Data []*ResourceUpdateWarningsData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning @@ -2681,59 +2563,6 @@ func (s *ResourcesListResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Rule: A rule to be applied in a Policy. -type Rule struct { - // Action: Required - Action string `json:"action,omitempty"` - - // Conditions: Additional restrictions that must be met. All conditions - // must pass for the rule to match. - Conditions []*Condition `json:"conditions,omitempty"` - - // Description: Human-readable description of the rule. - Description string `json:"description,omitempty"` - - // Ins: If one or more 'in' clauses are specified, the rule matches if - // the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries. - Ins []string `json:"ins,omitempty"` - - // LogConfigs: The config returned to callers of - // tech.iam.IAM.CheckPolicy for any entries that match the LOG action. - LogConfigs []*LogConfig `json:"logConfigs,omitempty"` - - // NotIns: If one or more 'not_in' clauses are specified, the rule - // matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the - // entries. - NotIns []string `json:"notIns,omitempty"` - - // Permissions: A permission is a string of form '..' (e.g., - // 'storage.buckets.list'). A value of '*' matches all permissions, and - // a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs. - Permissions []string `json:"permissions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Action") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Action") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *Rule) MarshalJSON() ([]byte, error) { - type NoMethod Rule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // ServiceAccount: Service Account used as a credential. type ServiceAccount struct { // Email: The IAM service account email address like @@ -2803,6 +2632,11 @@ type TemplateContents struct { // Interpreter: Which interpreter (python or jinja) should be used // during expansion. + // + // Possible values: + // "UNKNOWN_INTERPRETER" + // "PYTHON" + // "JINJA" Interpreter string `json:"interpreter,omitempty"` // MainTemplate: The filename of the mainTemplate @@ -2900,9 +2734,8 @@ func (s *TestPermissionsResponse) MarshalJSON() ([]byte, error) { // Type: A resource type supported by Deployment Manager. type Type struct { - // ConfigurableService: Base Type (configurable service) that backs this - // Type. - ConfigurableService *ConfigurableService `json:"configurableService,omitempty"` + // Base: Base Type (configurable service) that backs this Type. + Base *BaseType `json:"base,omitempty"` // Description: An optional textual description of the resource; // provided by the client when the resource is created. @@ -2913,12 +2746,12 @@ type Type struct { // InsertTime: Output only. Creation timestamp in RFC3339 text format. InsertTime string `json:"insertTime,omitempty"` - // Labels: Map of labels; provided by the client when the resource is - // created or updated. Specifically: Label keys must be between 1 and 63 - // characters long and must conform to the following regular expression: - // `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 - // characters long and must conform to the regular expression - // `([a-z]([-a-z0-9]*[a-z0-9])?)?`. + // Labels: Map of One Platform labels; provided by the client when the + // resource is created or updated. Specifically: Label keys must be + // between 1 and 63 characters long and must conform to the following + // regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be + // between 0 and 63 characters long and must conform to the regular + // expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. Labels []*TypeLabelEntry `json:"labels,omitempty"` // Name: Name of the type. @@ -2935,21 +2768,20 @@ type Type struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ConfigurableService") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "Base") to + // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ConfigurableService") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "Base") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } @@ -3047,9 +2879,12 @@ func (s *TypeInfoSchemaInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TypeLabelEntry: Label object for Types type TypeLabelEntry struct { + // Key: Key of the label Key string `json:"key,omitempty"` + // Value: Value of the label Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") to @@ -3107,12 +2942,12 @@ type TypeProvider struct { // InsertTime: Output only. Creation timestamp in RFC3339 text format. InsertTime string `json:"insertTime,omitempty"` - // Labels: Map of labels; provided by the client when the resource is - // created or updated. Specifically: Label keys must be between 1 and 63 - // characters long and must conform to the following regular expression: - // `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 - // characters long and must conform to the regular expression - // `([a-z]([-a-z0-9]*[a-z0-9])?)?`. + // Labels: Map of One Platform labels; provided by the client when the + // resource is created or updated. Specifically: Label keys must be + // between 1 and 63 characters long and must conform to the following + // regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be + // between 0 and 63 characters long and must conform to the regular + // expression `([a-z]([-a-z0-9]*[a-z0-9])?)?` Labels []*TypeProviderLabelEntry `json:"labels,omitempty"` // Name: Name of the resource; provided by the client when the resource @@ -3163,9 +2998,12 @@ func (s *TypeProvider) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TypeProviderLabelEntry: Label object for TypeProviders type TypeProviderLabelEntry struct { + // Key: Key of the label Key string `json:"key,omitempty"` + // Value: Value of the label Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") to @@ -3304,10 +3142,26 @@ func (s *TypesListResponse) MarshalJSON() ([]byte, error) { type ValidationOptions struct { // SchemaValidation: Customize how deployment manager will validate the // resource against schema errors. + // + // Possible values: + // "UNKNOWN" + // "IGNORE" - Ignore schema failures. + // "IGNORE_WITH_WARNINGS" - Ignore schema failures but display them as + // warnings. + // "FAIL" - Fail the resource if the schema is not valid, this is the + // default behavior. SchemaValidation string `json:"schemaValidation,omitempty"` // UndeclaredProperties: Specify what to do with extra properties when // executing a request. + // + // Possible values: + // "UNKNOWN" + // "INCLUDE" - Always include even if not present on discovery doc. + // "IGNORE" - Always ignore if not present on discovery doc. + // "INCLUDE_WITH_WARNINGS" - Include on request, but emit a warning. + // "IGNORE_WITH_WARNINGS" - Ignore properties, but emit a warning. + // "FAIL" - Always fail if undeclared properties are present. UndeclaredProperties string `json:"undeclaredProperties,omitempty"` // ForceSendFields is a list of field names (e.g. "SchemaValidation") to @@ -3380,7 +3234,7 @@ func (c *CompositeTypesDeleteCall) Header() http.Header { func (c *CompositeTypesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3388,7 +3242,7 @@ func (c *CompositeTypesDeleteCall) doRequest(alt string) (*http.Response, error) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/compositeTypes/{compositeType}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -3441,6 +3295,7 @@ func (c *CompositeTypesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, return ret, nil // { // "description": "Deletes a composite type.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}", // "httpMethod": "DELETE", // "id": "deploymentmanager.compositeTypes.delete", // "parameterOrder": [ @@ -3463,7 +3318,7 @@ func (c *CompositeTypesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, // "type": "string" // } // }, - // "path": "{project}/global/compositeTypes/{compositeType}", + // "path": "deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}", // "response": { // "$ref": "Operation" // }, @@ -3532,7 +3387,7 @@ func (c *CompositeTypesGetCall) Header() http.Header { func (c *CompositeTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3543,7 +3398,7 @@ func (c *CompositeTypesGetCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/compositeTypes/{compositeType}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -3596,6 +3451,7 @@ func (c *CompositeTypesGetCall) Do(opts ...googleapi.CallOption) (*CompositeType return ret, nil // { // "description": "Gets information about a specific composite type.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}", // "httpMethod": "GET", // "id": "deploymentmanager.compositeTypes.get", // "parameterOrder": [ @@ -3618,7 +3474,7 @@ func (c *CompositeTypesGetCall) Do(opts ...googleapi.CallOption) (*CompositeType // "type": "string" // } // }, - // "path": "{project}/global/compositeTypes/{compositeType}", + // "path": "deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}", // "response": { // "$ref": "CompositeType" // }, @@ -3678,7 +3534,7 @@ func (c *CompositeTypesInsertCall) Header() http.Header { func (c *CompositeTypesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3691,7 +3547,7 @@ func (c *CompositeTypesInsertCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/compositeTypes") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/compositeTypes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -3743,6 +3599,7 @@ func (c *CompositeTypesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, return ret, nil // { // "description": "Creates a composite type.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/compositeTypes", // "httpMethod": "POST", // "id": "deploymentmanager.compositeTypes.insert", // "parameterOrder": [ @@ -3757,7 +3614,7 @@ func (c *CompositeTypesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, // "type": "string" // } // }, - // "path": "{project}/global/compositeTypes", + // "path": "deploymentmanager/alpha/projects/{project}/global/compositeTypes", // "request": { // "$ref": "CompositeType" // }, @@ -3795,24 +3652,19 @@ func (r *CompositeTypesService) List(project string) *CompositeTypesListCall { // the field name, a comparison operator, and the value that you want to // use for filtering. The value must be a string, a number, or a // boolean. The comparison operator must be either `=`, `!=`, `>`, or -// `<`. -// -// For example, if you are filtering Compute Engine instances, you can -// exclude instances named `example-instance` by specifying `name != -// example-instance`. -// -// You can also filter nested fields. For example, you could specify -// `scheduling.automaticRestart = false` to include instances only if -// they are not scheduled for automatic restarts. You can use filtering -// on nested fields to filter based on resource labels. -// -// To filter on multiple expressions, provide each separate expression -// within parentheses. For example: ``` (scheduling.automaticRestart = -// true) (cpuPlatform = "Intel Skylake") ``` By default, each expression -// is an `AND` expression. However, you can include `AND` and `OR` -// expressions explicitly. For example: ``` (cpuPlatform = "Intel -// Skylake") OR (cpuPlatform = "Intel Broadwell") AND -// (scheduling.automaticRestart = true) ``` +// `<`. For example, if you are filtering Compute Engine instances, you +// can exclude instances named `example-instance` by specifying `name != +// example-instance`. You can also filter nested fields. For example, +// you could specify `scheduling.automaticRestart = false` to include +// instances only if they are not scheduled for automatic restarts. You +// can use filtering on nested fields to filter based on resource +// labels. To filter on multiple expressions, provide each separate +// expression within parentheses. For example: ``` +// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") +// ``` By default, each expression is an `AND` expression. However, you +// can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") +// AND (scheduling.automaticRestart = true) ``` func (c *CompositeTypesListCall) Filter(filter string) *CompositeTypesListCall { c.urlParams_.Set("filter", filter) return c @@ -3831,17 +3683,13 @@ func (c *CompositeTypesListCall) MaxResults(maxResults int64) *CompositeTypesLis // OrderBy sets the optional parameter "orderBy": Sorts list results by // a certain order. By default, results are returned in alphanumerical -// order based on the resource name. -// -// You can also sort results in descending order based on the creation -// timestamp using `orderBy="creationTimestamp desc". This sorts -// results based on the `creationTimestamp` field in reverse -// chronological order (newest result first). Use this to sort resources -// like operations so that the newest operation is returned -// first. -// -// Currently, only sorting by `name` or `creationTimestamp desc` is -// supported. +// order based on the resource name. You can also sort results in +// descending order based on the creation timestamp using +// `orderBy="creationTimestamp desc". This sorts results based on the +// `creationTimestamp` field in reverse chronological order (newest +// result first). Use this to sort resources like operations so that the +// newest operation is returned first. Currently, only sorting by `name` +// or `creationTimestamp desc` is supported. func (c *CompositeTypesListCall) OrderBy(orderBy string) *CompositeTypesListCall { c.urlParams_.Set("orderBy", orderBy) return c @@ -3901,7 +3749,7 @@ func (c *CompositeTypesListCall) Header() http.Header { func (c *CompositeTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3912,7 +3760,7 @@ func (c *CompositeTypesListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/compositeTypes") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/compositeTypes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -3964,6 +3812,7 @@ func (c *CompositeTypesListCall) Do(opts ...googleapi.CallOption) (*CompositeTyp return ret, nil // { // "description": "Lists all composite types for Deployment Manager.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/compositeTypes", // "httpMethod": "GET", // "id": "deploymentmanager.compositeTypes.list", // "parameterOrder": [ @@ -3971,7 +3820,7 @@ func (c *CompositeTypesListCall) Do(opts ...googleapi.CallOption) (*CompositeTyp // ], // "parameters": { // "filter": { - // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", // "location": "query", // "type": "string" // }, @@ -3984,7 +3833,7 @@ func (c *CompositeTypesListCall) Do(opts ...googleapi.CallOption) (*CompositeTyp // "type": "integer" // }, // "orderBy": { - // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", // "location": "query", // "type": "string" // }, @@ -4006,7 +3855,7 @@ func (c *CompositeTypesListCall) Do(opts ...googleapi.CallOption) (*CompositeTyp // "type": "boolean" // } // }, - // "path": "{project}/global/compositeTypes", + // "path": "deploymentmanager/alpha/projects/{project}/global/compositeTypes", // "response": { // "$ref": "CompositeTypesListResponse" // }, @@ -4089,7 +3938,7 @@ func (c *CompositeTypesPatchCall) Header() http.Header { func (c *CompositeTypesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4102,7 +3951,7 @@ func (c *CompositeTypesPatchCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/compositeTypes/{compositeType}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -4155,6 +4004,7 @@ func (c *CompositeTypesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, return ret, nil // { // "description": "Patches a composite type.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}", // "httpMethod": "PATCH", // "id": "deploymentmanager.compositeTypes.patch", // "parameterOrder": [ @@ -4177,7 +4027,7 @@ func (c *CompositeTypesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, // "type": "string" // } // }, - // "path": "{project}/global/compositeTypes/{compositeType}", + // "path": "deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}", // "request": { // "$ref": "CompositeType" // }, @@ -4240,7 +4090,7 @@ func (c *CompositeTypesUpdateCall) Header() http.Header { func (c *CompositeTypesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4253,7 +4103,7 @@ func (c *CompositeTypesUpdateCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/compositeTypes/{compositeType}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -4306,6 +4156,7 @@ func (c *CompositeTypesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, return ret, nil // { // "description": "Updates a composite type.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}", // "httpMethod": "PUT", // "id": "deploymentmanager.compositeTypes.update", // "parameterOrder": [ @@ -4328,7 +4179,7 @@ func (c *CompositeTypesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, // "type": "string" // } // }, - // "path": "{project}/global/compositeTypes/{compositeType}", + // "path": "deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}", // "request": { // "$ref": "CompositeType" // }, @@ -4392,7 +4243,7 @@ func (c *DeploymentsCancelPreviewCall) Header() http.Header { func (c *DeploymentsCancelPreviewCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4405,7 +4256,7 @@ func (c *DeploymentsCancelPreviewCall) doRequest(alt string) (*http.Response, er reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}/cancelPreview") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/cancelPreview") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -4458,6 +4309,7 @@ func (c *DeploymentsCancelPreviewCall) Do(opts ...googleapi.CallOption) (*Operat return ret, nil // { // "description": "Cancels and removes the preview currently associated with the deployment.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/cancelPreview", // "httpMethod": "POST", // "id": "deploymentmanager.deployments.cancelPreview", // "parameterOrder": [ @@ -4480,7 +4332,7 @@ func (c *DeploymentsCancelPreviewCall) Do(opts ...googleapi.CallOption) (*Operat // "type": "string" // } // }, - // "path": "{project}/global/deployments/{deployment}/cancelPreview", + // "path": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/cancelPreview", // "request": { // "$ref": "DeploymentsCancelPreviewRequest" // }, @@ -4519,8 +4371,8 @@ func (r *DeploymentsService) Delete(project string, deployment string) *Deployme // policy to use for deleting resources. // // Possible values: -// "ABANDON" // "DELETE" (default) +// "ABANDON" func (c *DeploymentsDeleteCall) DeletePolicy(deletePolicy string) *DeploymentsDeleteCall { c.urlParams_.Set("deletePolicy", deletePolicy) return c @@ -4553,7 +4405,7 @@ func (c *DeploymentsDeleteCall) Header() http.Header { func (c *DeploymentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4561,7 +4413,7 @@ func (c *DeploymentsDeleteCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -4614,6 +4466,7 @@ func (c *DeploymentsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, er return ret, nil // { // "description": "Deletes a deployment and all of the resources in the deployment.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}", // "httpMethod": "DELETE", // "id": "deploymentmanager.deployments.delete", // "parameterOrder": [ @@ -4625,8 +4478,8 @@ func (c *DeploymentsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, er // "default": "DELETE", // "description": "Sets the policy to use for deleting resources.", // "enum": [ - // "ABANDON", - // "DELETE" + // "DELETE", + // "ABANDON" // ], // "enumDescriptions": [ // "", @@ -4649,7 +4502,7 @@ func (c *DeploymentsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, er // "type": "string" // } // }, - // "path": "{project}/global/deployments/{deployment}", + // "path": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}", // "response": { // "$ref": "Operation" // }, @@ -4718,7 +4571,7 @@ func (c *DeploymentsGetCall) Header() http.Header { func (c *DeploymentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4729,7 +4582,7 @@ func (c *DeploymentsGetCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -4782,6 +4635,7 @@ func (c *DeploymentsGetCall) Do(opts ...googleapi.CallOption) (*Deployment, erro return ret, nil // { // "description": "Gets information about a specific deployment.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}", // "httpMethod": "GET", // "id": "deploymentmanager.deployments.get", // "parameterOrder": [ @@ -4804,7 +4658,7 @@ func (c *DeploymentsGetCall) Do(opts ...googleapi.CallOption) (*Deployment, erro // "type": "string" // } // }, - // "path": "{project}/global/deployments/{deployment}", + // "path": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}", // "response": { // "$ref": "Deployment" // }, @@ -4883,7 +4737,7 @@ func (c *DeploymentsGetIamPolicyCall) Header() http.Header { func (c *DeploymentsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4894,7 +4748,7 @@ func (c *DeploymentsGetIamPolicyCall) doRequest(alt string) (*http.Response, err var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{resource}/getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/getIamPolicy") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -4947,6 +4801,7 @@ func (c *DeploymentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, return ret, nil // { // "description": "Gets the access control policy for a resource. May be empty if no such policy or resource exists.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/getIamPolicy", // "httpMethod": "GET", // "id": "deploymentmanager.deployments.getIamPolicy", // "parameterOrder": [ @@ -4975,7 +4830,7 @@ func (c *DeploymentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, // "type": "string" // } // }, - // "path": "{project}/global/deployments/{resource}/getIamPolicy", + // "path": "deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/getIamPolicy", // "response": { // "$ref": "Policy" // }, @@ -5011,9 +4866,9 @@ func (r *DeploymentsService) Insert(project string, deployment *Deployment) *Dep // policy to use for creating new resources. // // Possible values: +// "CREATE_OR_ACQUIRE" (default) // "ACQUIRE" // "CREATE" -// "CREATE_OR_ACQUIRE" (default) func (c *DeploymentsInsertCall) CreatePolicy(createPolicy string) *DeploymentsInsertCall { c.urlParams_.Set("createPolicy", createPolicy) return c @@ -5060,7 +4915,7 @@ func (c *DeploymentsInsertCall) Header() http.Header { func (c *DeploymentsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5073,7 +4928,7 @@ func (c *DeploymentsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/deployments") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -5125,6 +4980,7 @@ func (c *DeploymentsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, er return ret, nil // { // "description": "Creates a deployment and all of the resources described by the deployment manifest.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments", // "httpMethod": "POST", // "id": "deploymentmanager.deployments.insert", // "parameterOrder": [ @@ -5135,9 +4991,9 @@ func (c *DeploymentsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, er // "default": "CREATE_OR_ACQUIRE", // "description": "Sets the policy to use for creating new resources.", // "enum": [ + // "CREATE_OR_ACQUIRE", // "ACQUIRE", - // "CREATE", - // "CREATE_OR_ACQUIRE" + // "CREATE" // ], // "enumDescriptions": [ // "", @@ -5160,7 +5016,7 @@ func (c *DeploymentsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, er // "type": "string" // } // }, - // "path": "{project}/global/deployments", + // "path": "deploymentmanager/alpha/projects/{project}/global/deployments", // "request": { // "$ref": "Deployment" // }, @@ -5198,24 +5054,19 @@ func (r *DeploymentsService) List(project string) *DeploymentsListCall { // the field name, a comparison operator, and the value that you want to // use for filtering. The value must be a string, a number, or a // boolean. The comparison operator must be either `=`, `!=`, `>`, or -// `<`. -// -// For example, if you are filtering Compute Engine instances, you can -// exclude instances named `example-instance` by specifying `name != -// example-instance`. -// -// You can also filter nested fields. For example, you could specify -// `scheduling.automaticRestart = false` to include instances only if -// they are not scheduled for automatic restarts. You can use filtering -// on nested fields to filter based on resource labels. -// -// To filter on multiple expressions, provide each separate expression -// within parentheses. For example: ``` (scheduling.automaticRestart = -// true) (cpuPlatform = "Intel Skylake") ``` By default, each expression -// is an `AND` expression. However, you can include `AND` and `OR` -// expressions explicitly. For example: ``` (cpuPlatform = "Intel -// Skylake") OR (cpuPlatform = "Intel Broadwell") AND -// (scheduling.automaticRestart = true) ``` +// `<`. For example, if you are filtering Compute Engine instances, you +// can exclude instances named `example-instance` by specifying `name != +// example-instance`. You can also filter nested fields. For example, +// you could specify `scheduling.automaticRestart = false` to include +// instances only if they are not scheduled for automatic restarts. You +// can use filtering on nested fields to filter based on resource +// labels. To filter on multiple expressions, provide each separate +// expression within parentheses. For example: ``` +// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") +// ``` By default, each expression is an `AND` expression. However, you +// can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") +// AND (scheduling.automaticRestart = true) ``` func (c *DeploymentsListCall) Filter(filter string) *DeploymentsListCall { c.urlParams_.Set("filter", filter) return c @@ -5234,17 +5085,13 @@ func (c *DeploymentsListCall) MaxResults(maxResults int64) *DeploymentsListCall // OrderBy sets the optional parameter "orderBy": Sorts list results by // a certain order. By default, results are returned in alphanumerical -// order based on the resource name. -// -// You can also sort results in descending order based on the creation -// timestamp using `orderBy="creationTimestamp desc". This sorts -// results based on the `creationTimestamp` field in reverse -// chronological order (newest result first). Use this to sort resources -// like operations so that the newest operation is returned -// first. -// -// Currently, only sorting by `name` or `creationTimestamp desc` is -// supported. +// order based on the resource name. You can also sort results in +// descending order based on the creation timestamp using +// `orderBy="creationTimestamp desc". This sorts results based on the +// `creationTimestamp` field in reverse chronological order (newest +// result first). Use this to sort resources like operations so that the +// newest operation is returned first. Currently, only sorting by `name` +// or `creationTimestamp desc` is supported. func (c *DeploymentsListCall) OrderBy(orderBy string) *DeploymentsListCall { c.urlParams_.Set("orderBy", orderBy) return c @@ -5304,7 +5151,7 @@ func (c *DeploymentsListCall) Header() http.Header { func (c *DeploymentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5315,7 +5162,7 @@ func (c *DeploymentsListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/deployments") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -5367,6 +5214,7 @@ func (c *DeploymentsListCall) Do(opts ...googleapi.CallOption) (*DeploymentsList return ret, nil // { // "description": "Lists all deployments for a given project.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments", // "httpMethod": "GET", // "id": "deploymentmanager.deployments.list", // "parameterOrder": [ @@ -5374,7 +5222,7 @@ func (c *DeploymentsListCall) Do(opts ...googleapi.CallOption) (*DeploymentsList // ], // "parameters": { // "filter": { - // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", // "location": "query", // "type": "string" // }, @@ -5387,7 +5235,7 @@ func (c *DeploymentsListCall) Do(opts ...googleapi.CallOption) (*DeploymentsList // "type": "integer" // }, // "orderBy": { - // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", // "location": "query", // "type": "string" // }, @@ -5409,7 +5257,7 @@ func (c *DeploymentsListCall) Do(opts ...googleapi.CallOption) (*DeploymentsList // "type": "boolean" // } // }, - // "path": "{project}/global/deployments", + // "path": "deploymentmanager/alpha/projects/{project}/global/deployments", // "response": { // "$ref": "DeploymentsListResponse" // }, @@ -5470,9 +5318,9 @@ func (r *DeploymentsService) Patch(project string, deployment string, deployment // policy to use for creating new resources. // // Possible values: +// "CREATE_OR_ACQUIRE" (default) // "ACQUIRE" // "CREATE" -// "CREATE_OR_ACQUIRE" (default) func (c *DeploymentsPatchCall) CreatePolicy(createPolicy string) *DeploymentsPatchCall { c.urlParams_.Set("createPolicy", createPolicy) return c @@ -5482,8 +5330,8 @@ func (c *DeploymentsPatchCall) CreatePolicy(createPolicy string) *DeploymentsPat // policy to use for deleting resources. // // Possible values: -// "ABANDON" // "DELETE" (default) +// "ABANDON" func (c *DeploymentsPatchCall) DeletePolicy(deletePolicy string) *DeploymentsPatchCall { c.urlParams_.Set("deletePolicy", deletePolicy) return c @@ -5532,7 +5380,7 @@ func (c *DeploymentsPatchCall) Header() http.Header { func (c *DeploymentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5545,7 +5393,7 @@ func (c *DeploymentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -5598,6 +5446,7 @@ func (c *DeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, err return ret, nil // { // "description": "Patches a deployment and all of the resources described by the deployment manifest.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}", // "httpMethod": "PATCH", // "id": "deploymentmanager.deployments.patch", // "parameterOrder": [ @@ -5609,9 +5458,9 @@ func (c *DeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, err // "default": "CREATE_OR_ACQUIRE", // "description": "Sets the policy to use for creating new resources.", // "enum": [ + // "CREATE_OR_ACQUIRE", // "ACQUIRE", - // "CREATE", - // "CREATE_OR_ACQUIRE" + // "CREATE" // ], // "enumDescriptions": [ // "", @@ -5625,8 +5474,8 @@ func (c *DeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, err // "default": "DELETE", // "description": "Sets the policy to use for deleting resources.", // "enum": [ - // "ABANDON", - // "DELETE" + // "DELETE", + // "ABANDON" // ], // "enumDescriptions": [ // "", @@ -5656,7 +5505,7 @@ func (c *DeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, err // "type": "string" // } // }, - // "path": "{project}/global/deployments/{deployment}", + // "path": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}", // "request": { // "$ref": "Deployment" // }, @@ -5720,7 +5569,7 @@ func (c *DeploymentsSetIamPolicyCall) Header() http.Header { func (c *DeploymentsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5733,7 +5582,7 @@ func (c *DeploymentsSetIamPolicyCall) doRequest(alt string) (*http.Response, err reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{resource}/setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/setIamPolicy") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -5786,6 +5635,7 @@ func (c *DeploymentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, return ret, nil // { // "description": "Sets the access control policy on the specified resource. Replaces any existing policy.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/setIamPolicy", // "httpMethod": "POST", // "id": "deploymentmanager.deployments.setIamPolicy", // "parameterOrder": [ @@ -5808,7 +5658,7 @@ func (c *DeploymentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, // "type": "string" // } // }, - // "path": "{project}/global/deployments/{resource}/setIamPolicy", + // "path": "deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/setIamPolicy", // "request": { // "$ref": "GlobalSetPolicyRequest" // }, @@ -5873,7 +5723,7 @@ func (c *DeploymentsStopCall) Header() http.Header { func (c *DeploymentsStopCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5886,7 +5736,7 @@ func (c *DeploymentsStopCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}/stop") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/stop") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -5939,6 +5789,7 @@ func (c *DeploymentsStopCall) Do(opts ...googleapi.CallOption) (*Operation, erro return ret, nil // { // "description": "Stops an ongoing operation. This does not roll back any work that has already been completed, but prevents any new work from being started.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/stop", // "httpMethod": "POST", // "id": "deploymentmanager.deployments.stop", // "parameterOrder": [ @@ -5961,7 +5812,7 @@ func (c *DeploymentsStopCall) Do(opts ...googleapi.CallOption) (*Operation, erro // "type": "string" // } // }, - // "path": "{project}/global/deployments/{deployment}/stop", + // "path": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/stop", // "request": { // "$ref": "DeploymentsStopRequest" // }, @@ -6025,7 +5876,7 @@ func (c *DeploymentsTestIamPermissionsCall) Header() http.Header { func (c *DeploymentsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6038,7 +5889,7 @@ func (c *DeploymentsTestIamPermissionsCall) doRequest(alt string) (*http.Respons reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{resource}/testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/testIamPermissions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -6091,6 +5942,7 @@ func (c *DeploymentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*T return ret, nil // { // "description": "Returns permissions that a caller has on the specified resource.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/testIamPermissions", // "httpMethod": "POST", // "id": "deploymentmanager.deployments.testIamPermissions", // "parameterOrder": [ @@ -6113,7 +5965,7 @@ func (c *DeploymentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*T // "type": "string" // } // }, - // "path": "{project}/global/deployments/{resource}/testIamPermissions", + // "path": "deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/testIamPermissions", // "request": { // "$ref": "TestPermissionsRequest" // }, @@ -6154,9 +6006,9 @@ func (r *DeploymentsService) Update(project string, deployment string, deploymen // policy to use for creating new resources. // // Possible values: +// "CREATE_OR_ACQUIRE" (default) // "ACQUIRE" // "CREATE" -// "CREATE_OR_ACQUIRE" (default) func (c *DeploymentsUpdateCall) CreatePolicy(createPolicy string) *DeploymentsUpdateCall { c.urlParams_.Set("createPolicy", createPolicy) return c @@ -6166,8 +6018,8 @@ func (c *DeploymentsUpdateCall) CreatePolicy(createPolicy string) *DeploymentsUp // policy to use for deleting resources. // // Possible values: -// "ABANDON" // "DELETE" (default) +// "ABANDON" func (c *DeploymentsUpdateCall) DeletePolicy(deletePolicy string) *DeploymentsUpdateCall { c.urlParams_.Set("deletePolicy", deletePolicy) return c @@ -6216,7 +6068,7 @@ func (c *DeploymentsUpdateCall) Header() http.Header { func (c *DeploymentsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6229,7 +6081,7 @@ func (c *DeploymentsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -6282,6 +6134,7 @@ func (c *DeploymentsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, er return ret, nil // { // "description": "Updates a deployment and all of the resources described by the deployment manifest.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}", // "httpMethod": "PUT", // "id": "deploymentmanager.deployments.update", // "parameterOrder": [ @@ -6293,9 +6146,9 @@ func (c *DeploymentsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, er // "default": "CREATE_OR_ACQUIRE", // "description": "Sets the policy to use for creating new resources.", // "enum": [ + // "CREATE_OR_ACQUIRE", // "ACQUIRE", - // "CREATE", - // "CREATE_OR_ACQUIRE" + // "CREATE" // ], // "enumDescriptions": [ // "", @@ -6309,8 +6162,8 @@ func (c *DeploymentsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, er // "default": "DELETE", // "description": "Sets the policy to use for deleting resources.", // "enum": [ - // "ABANDON", - // "DELETE" + // "DELETE", + // "ABANDON" // ], // "enumDescriptions": [ // "", @@ -6340,7 +6193,7 @@ func (c *DeploymentsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, er // "type": "string" // } // }, - // "path": "{project}/global/deployments/{deployment}", + // "path": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}", // "request": { // "$ref": "Deployment" // }, @@ -6414,7 +6267,7 @@ func (c *ManifestsGetCall) Header() http.Header { func (c *ManifestsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6425,7 +6278,7 @@ func (c *ManifestsGetCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}/manifests/{manifest}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/manifests/{manifest}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -6479,6 +6332,7 @@ func (c *ManifestsGetCall) Do(opts ...googleapi.CallOption) (*Manifest, error) { return ret, nil // { // "description": "Gets information about a specific manifest.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/manifests/{manifest}", // "httpMethod": "GET", // "id": "deploymentmanager.manifests.get", // "parameterOrder": [ @@ -6509,7 +6363,7 @@ func (c *ManifestsGetCall) Do(opts ...googleapi.CallOption) (*Manifest, error) { // "type": "string" // } // }, - // "path": "{project}/global/deployments/{deployment}/manifests/{manifest}", + // "path": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/manifests/{manifest}", // "response": { // "$ref": "Manifest" // }, @@ -6548,24 +6402,19 @@ func (r *ManifestsService) List(project string, deployment string) *ManifestsLis // the field name, a comparison operator, and the value that you want to // use for filtering. The value must be a string, a number, or a // boolean. The comparison operator must be either `=`, `!=`, `>`, or -// `<`. -// -// For example, if you are filtering Compute Engine instances, you can -// exclude instances named `example-instance` by specifying `name != -// example-instance`. -// -// You can also filter nested fields. For example, you could specify -// `scheduling.automaticRestart = false` to include instances only if -// they are not scheduled for automatic restarts. You can use filtering -// on nested fields to filter based on resource labels. -// -// To filter on multiple expressions, provide each separate expression -// within parentheses. For example: ``` (scheduling.automaticRestart = -// true) (cpuPlatform = "Intel Skylake") ``` By default, each expression -// is an `AND` expression. However, you can include `AND` and `OR` -// expressions explicitly. For example: ``` (cpuPlatform = "Intel -// Skylake") OR (cpuPlatform = "Intel Broadwell") AND -// (scheduling.automaticRestart = true) ``` +// `<`. For example, if you are filtering Compute Engine instances, you +// can exclude instances named `example-instance` by specifying `name != +// example-instance`. You can also filter nested fields. For example, +// you could specify `scheduling.automaticRestart = false` to include +// instances only if they are not scheduled for automatic restarts. You +// can use filtering on nested fields to filter based on resource +// labels. To filter on multiple expressions, provide each separate +// expression within parentheses. For example: ``` +// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") +// ``` By default, each expression is an `AND` expression. However, you +// can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") +// AND (scheduling.automaticRestart = true) ``` func (c *ManifestsListCall) Filter(filter string) *ManifestsListCall { c.urlParams_.Set("filter", filter) return c @@ -6584,17 +6433,13 @@ func (c *ManifestsListCall) MaxResults(maxResults int64) *ManifestsListCall { // OrderBy sets the optional parameter "orderBy": Sorts list results by // a certain order. By default, results are returned in alphanumerical -// order based on the resource name. -// -// You can also sort results in descending order based on the creation -// timestamp using `orderBy="creationTimestamp desc". This sorts -// results based on the `creationTimestamp` field in reverse -// chronological order (newest result first). Use this to sort resources -// like operations so that the newest operation is returned -// first. -// -// Currently, only sorting by `name` or `creationTimestamp desc` is -// supported. +// order based on the resource name. You can also sort results in +// descending order based on the creation timestamp using +// `orderBy="creationTimestamp desc". This sorts results based on the +// `creationTimestamp` field in reverse chronological order (newest +// result first). Use this to sort resources like operations so that the +// newest operation is returned first. Currently, only sorting by `name` +// or `creationTimestamp desc` is supported. func (c *ManifestsListCall) OrderBy(orderBy string) *ManifestsListCall { c.urlParams_.Set("orderBy", orderBy) return c @@ -6654,7 +6499,7 @@ func (c *ManifestsListCall) Header() http.Header { func (c *ManifestsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6665,7 +6510,7 @@ func (c *ManifestsListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}/manifests") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/manifests") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -6718,6 +6563,7 @@ func (c *ManifestsListCall) Do(opts ...googleapi.CallOption) (*ManifestsListResp return ret, nil // { // "description": "Lists all manifests for a given deployment.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/manifests", // "httpMethod": "GET", // "id": "deploymentmanager.manifests.list", // "parameterOrder": [ @@ -6733,7 +6579,7 @@ func (c *ManifestsListCall) Do(opts ...googleapi.CallOption) (*ManifestsListResp // "type": "string" // }, // "filter": { - // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", // "location": "query", // "type": "string" // }, @@ -6746,7 +6592,7 @@ func (c *ManifestsListCall) Do(opts ...googleapi.CallOption) (*ManifestsListResp // "type": "integer" // }, // "orderBy": { - // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", // "location": "query", // "type": "string" // }, @@ -6768,7 +6614,7 @@ func (c *ManifestsListCall) Do(opts ...googleapi.CallOption) (*ManifestsListResp // "type": "boolean" // } // }, - // "path": "{project}/global/deployments/{deployment}/manifests", + // "path": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/manifests", // "response": { // "$ref": "ManifestsListResponse" // }, @@ -6860,7 +6706,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6871,7 +6717,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/operations/{operation}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/operations/{operation}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -6924,6 +6770,7 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) return ret, nil // { // "description": "Gets information about a specific operation.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/operations/{operation}", // "httpMethod": "GET", // "id": "deploymentmanager.operations.get", // "parameterOrder": [ @@ -6945,7 +6792,7 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) // "type": "string" // } // }, - // "path": "{project}/global/operations/{operation}", + // "path": "deploymentmanager/alpha/projects/{project}/global/operations/{operation}", // "response": { // "$ref": "Operation" // }, @@ -6982,24 +6829,19 @@ func (r *OperationsService) List(project string) *OperationsListCall { // the field name, a comparison operator, and the value that you want to // use for filtering. The value must be a string, a number, or a // boolean. The comparison operator must be either `=`, `!=`, `>`, or -// `<`. -// -// For example, if you are filtering Compute Engine instances, you can -// exclude instances named `example-instance` by specifying `name != -// example-instance`. -// -// You can also filter nested fields. For example, you could specify -// `scheduling.automaticRestart = false` to include instances only if -// they are not scheduled for automatic restarts. You can use filtering -// on nested fields to filter based on resource labels. -// -// To filter on multiple expressions, provide each separate expression -// within parentheses. For example: ``` (scheduling.automaticRestart = -// true) (cpuPlatform = "Intel Skylake") ``` By default, each expression -// is an `AND` expression. However, you can include `AND` and `OR` -// expressions explicitly. For example: ``` (cpuPlatform = "Intel -// Skylake") OR (cpuPlatform = "Intel Broadwell") AND -// (scheduling.automaticRestart = true) ``` +// `<`. For example, if you are filtering Compute Engine instances, you +// can exclude instances named `example-instance` by specifying `name != +// example-instance`. You can also filter nested fields. For example, +// you could specify `scheduling.automaticRestart = false` to include +// instances only if they are not scheduled for automatic restarts. You +// can use filtering on nested fields to filter based on resource +// labels. To filter on multiple expressions, provide each separate +// expression within parentheses. For example: ``` +// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") +// ``` By default, each expression is an `AND` expression. However, you +// can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") +// AND (scheduling.automaticRestart = true) ``` func (c *OperationsListCall) Filter(filter string) *OperationsListCall { c.urlParams_.Set("filter", filter) return c @@ -7018,17 +6860,13 @@ func (c *OperationsListCall) MaxResults(maxResults int64) *OperationsListCall { // OrderBy sets the optional parameter "orderBy": Sorts list results by // a certain order. By default, results are returned in alphanumerical -// order based on the resource name. -// -// You can also sort results in descending order based on the creation -// timestamp using `orderBy="creationTimestamp desc". This sorts -// results based on the `creationTimestamp` field in reverse -// chronological order (newest result first). Use this to sort resources -// like operations so that the newest operation is returned -// first. -// -// Currently, only sorting by `name` or `creationTimestamp desc` is -// supported. +// order based on the resource name. You can also sort results in +// descending order based on the creation timestamp using +// `orderBy="creationTimestamp desc". This sorts results based on the +// `creationTimestamp` field in reverse chronological order (newest +// result first). Use this to sort resources like operations so that the +// newest operation is returned first. Currently, only sorting by `name` +// or `creationTimestamp desc` is supported. func (c *OperationsListCall) OrderBy(orderBy string) *OperationsListCall { c.urlParams_.Set("orderBy", orderBy) return c @@ -7088,7 +6926,7 @@ func (c *OperationsListCall) Header() http.Header { func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7099,7 +6937,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -7151,6 +6989,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*OperationsListRe return ret, nil // { // "description": "Lists all operations for a project.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/operations", // "httpMethod": "GET", // "id": "deploymentmanager.operations.list", // "parameterOrder": [ @@ -7158,7 +6997,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*OperationsListRe // ], // "parameters": { // "filter": { - // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", // "location": "query", // "type": "string" // }, @@ -7171,7 +7010,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*OperationsListRe // "type": "integer" // }, // "orderBy": { - // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", // "location": "query", // "type": "string" // }, @@ -7193,7 +7032,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*OperationsListRe // "type": "boolean" // } // }, - // "path": "{project}/global/operations", + // "path": "deploymentmanager/alpha/projects/{project}/global/operations", // "response": { // "$ref": "OperationsListResponse" // }, @@ -7287,7 +7126,7 @@ func (c *ResourcesGetCall) Header() http.Header { func (c *ResourcesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7298,7 +7137,7 @@ func (c *ResourcesGetCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}/resources/{resource}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/resources/{resource}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -7352,6 +7191,7 @@ func (c *ResourcesGetCall) Do(opts ...googleapi.CallOption) (*Resource, error) { return ret, nil // { // "description": "Gets information about a single resource.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/resources/{resource}", // "httpMethod": "GET", // "id": "deploymentmanager.resources.get", // "parameterOrder": [ @@ -7381,7 +7221,7 @@ func (c *ResourcesGetCall) Do(opts ...googleapi.CallOption) (*Resource, error) { // "type": "string" // } // }, - // "path": "{project}/global/deployments/{deployment}/resources/{resource}", + // "path": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/resources/{resource}", // "response": { // "$ref": "Resource" // }, @@ -7420,24 +7260,19 @@ func (r *ResourcesService) List(project string, deployment string) *ResourcesLis // the field name, a comparison operator, and the value that you want to // use for filtering. The value must be a string, a number, or a // boolean. The comparison operator must be either `=`, `!=`, `>`, or -// `<`. -// -// For example, if you are filtering Compute Engine instances, you can -// exclude instances named `example-instance` by specifying `name != -// example-instance`. -// -// You can also filter nested fields. For example, you could specify -// `scheduling.automaticRestart = false` to include instances only if -// they are not scheduled for automatic restarts. You can use filtering -// on nested fields to filter based on resource labels. -// -// To filter on multiple expressions, provide each separate expression -// within parentheses. For example: ``` (scheduling.automaticRestart = -// true) (cpuPlatform = "Intel Skylake") ``` By default, each expression -// is an `AND` expression. However, you can include `AND` and `OR` -// expressions explicitly. For example: ``` (cpuPlatform = "Intel -// Skylake") OR (cpuPlatform = "Intel Broadwell") AND -// (scheduling.automaticRestart = true) ``` +// `<`. For example, if you are filtering Compute Engine instances, you +// can exclude instances named `example-instance` by specifying `name != +// example-instance`. You can also filter nested fields. For example, +// you could specify `scheduling.automaticRestart = false` to include +// instances only if they are not scheduled for automatic restarts. You +// can use filtering on nested fields to filter based on resource +// labels. To filter on multiple expressions, provide each separate +// expression within parentheses. For example: ``` +// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") +// ``` By default, each expression is an `AND` expression. However, you +// can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") +// AND (scheduling.automaticRestart = true) ``` func (c *ResourcesListCall) Filter(filter string) *ResourcesListCall { c.urlParams_.Set("filter", filter) return c @@ -7456,17 +7291,13 @@ func (c *ResourcesListCall) MaxResults(maxResults int64) *ResourcesListCall { // OrderBy sets the optional parameter "orderBy": Sorts list results by // a certain order. By default, results are returned in alphanumerical -// order based on the resource name. -// -// You can also sort results in descending order based on the creation -// timestamp using `orderBy="creationTimestamp desc". This sorts -// results based on the `creationTimestamp` field in reverse -// chronological order (newest result first). Use this to sort resources -// like operations so that the newest operation is returned -// first. -// -// Currently, only sorting by `name` or `creationTimestamp desc` is -// supported. +// order based on the resource name. You can also sort results in +// descending order based on the creation timestamp using +// `orderBy="creationTimestamp desc". This sorts results based on the +// `creationTimestamp` field in reverse chronological order (newest +// result first). Use this to sort resources like operations so that the +// newest operation is returned first. Currently, only sorting by `name` +// or `creationTimestamp desc` is supported. func (c *ResourcesListCall) OrderBy(orderBy string) *ResourcesListCall { c.urlParams_.Set("orderBy", orderBy) return c @@ -7526,7 +7357,7 @@ func (c *ResourcesListCall) Header() http.Header { func (c *ResourcesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7537,7 +7368,7 @@ func (c *ResourcesListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}/resources") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/resources") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -7590,6 +7421,7 @@ func (c *ResourcesListCall) Do(opts ...googleapi.CallOption) (*ResourcesListResp return ret, nil // { // "description": "Lists all resources in a given deployment.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/resources", // "httpMethod": "GET", // "id": "deploymentmanager.resources.list", // "parameterOrder": [ @@ -7605,7 +7437,7 @@ func (c *ResourcesListCall) Do(opts ...googleapi.CallOption) (*ResourcesListResp // "type": "string" // }, // "filter": { - // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", // "location": "query", // "type": "string" // }, @@ -7618,7 +7450,7 @@ func (c *ResourcesListCall) Do(opts ...googleapi.CallOption) (*ResourcesListResp // "type": "integer" // }, // "orderBy": { - // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", // "location": "query", // "type": "string" // }, @@ -7640,7 +7472,7 @@ func (c *ResourcesListCall) Do(opts ...googleapi.CallOption) (*ResourcesListResp // "type": "boolean" // } // }, - // "path": "{project}/global/deployments/{deployment}/resources", + // "path": "deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/resources", // "response": { // "$ref": "ResourcesListResponse" // }, @@ -7721,7 +7553,7 @@ func (c *TypeProvidersDeleteCall) Header() http.Header { func (c *TypeProvidersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7729,7 +7561,7 @@ func (c *TypeProvidersDeleteCall) doRequest(alt string) (*http.Response, error) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/typeProviders/{typeProvider}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -7782,6 +7614,7 @@ func (c *TypeProvidersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, return ret, nil // { // "description": "Deletes a type provider.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}", // "httpMethod": "DELETE", // "id": "deploymentmanager.typeProviders.delete", // "parameterOrder": [ @@ -7804,7 +7637,7 @@ func (c *TypeProvidersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, // "type": "string" // } // }, - // "path": "{project}/global/typeProviders/{typeProvider}", + // "path": "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}", // "response": { // "$ref": "Operation" // }, @@ -7873,7 +7706,7 @@ func (c *TypeProvidersGetCall) Header() http.Header { func (c *TypeProvidersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7884,7 +7717,7 @@ func (c *TypeProvidersGetCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/typeProviders/{typeProvider}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -7937,6 +7770,7 @@ func (c *TypeProvidersGetCall) Do(opts ...googleapi.CallOption) (*TypeProvider, return ret, nil // { // "description": "Gets information about a specific type provider.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}", // "httpMethod": "GET", // "id": "deploymentmanager.typeProviders.get", // "parameterOrder": [ @@ -7959,7 +7793,7 @@ func (c *TypeProvidersGetCall) Do(opts ...googleapi.CallOption) (*TypeProvider, // "type": "string" // } // }, - // "path": "{project}/global/typeProviders/{typeProvider}", + // "path": "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}", // "response": { // "$ref": "TypeProvider" // }, @@ -8032,7 +7866,7 @@ func (c *TypeProvidersGetTypeCall) Header() http.Header { func (c *TypeProvidersGetTypeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8043,7 +7877,7 @@ func (c *TypeProvidersGetTypeCall) doRequest(alt string) (*http.Response, error) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/typeProviders/{typeProvider}/types/{type}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}/types/{type}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -8097,6 +7931,7 @@ func (c *TypeProvidersGetTypeCall) Do(opts ...googleapi.CallOption) (*TypeInfo, return ret, nil // { // "description": "Gets a type info for a type provided by a TypeProvider.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}/types/{type}", // "httpMethod": "GET", // "id": "deploymentmanager.typeProviders.getType", // "parameterOrder": [ @@ -8126,7 +7961,7 @@ func (c *TypeProvidersGetTypeCall) Do(opts ...googleapi.CallOption) (*TypeInfo, // "type": "string" // } // }, - // "path": "{project}/global/typeProviders/{typeProvider}/types/{type}", + // "path": "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}/types/{type}", // "response": { // "$ref": "TypeInfo" // }, @@ -8186,7 +8021,7 @@ func (c *TypeProvidersInsertCall) Header() http.Header { func (c *TypeProvidersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8199,7 +8034,7 @@ func (c *TypeProvidersInsertCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/typeProviders") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/typeProviders") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -8251,6 +8086,7 @@ func (c *TypeProvidersInsertCall) Do(opts ...googleapi.CallOption) (*Operation, return ret, nil // { // "description": "Creates a type provider.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/typeProviders", // "httpMethod": "POST", // "id": "deploymentmanager.typeProviders.insert", // "parameterOrder": [ @@ -8265,7 +8101,7 @@ func (c *TypeProvidersInsertCall) Do(opts ...googleapi.CallOption) (*Operation, // "type": "string" // } // }, - // "path": "{project}/global/typeProviders", + // "path": "deploymentmanager/alpha/projects/{project}/global/typeProviders", // "request": { // "$ref": "TypeProvider" // }, @@ -8303,24 +8139,19 @@ func (r *TypeProvidersService) List(project string) *TypeProvidersListCall { // the field name, a comparison operator, and the value that you want to // use for filtering. The value must be a string, a number, or a // boolean. The comparison operator must be either `=`, `!=`, `>`, or -// `<`. -// -// For example, if you are filtering Compute Engine instances, you can -// exclude instances named `example-instance` by specifying `name != -// example-instance`. -// -// You can also filter nested fields. For example, you could specify -// `scheduling.automaticRestart = false` to include instances only if -// they are not scheduled for automatic restarts. You can use filtering -// on nested fields to filter based on resource labels. -// -// To filter on multiple expressions, provide each separate expression -// within parentheses. For example: ``` (scheduling.automaticRestart = -// true) (cpuPlatform = "Intel Skylake") ``` By default, each expression -// is an `AND` expression. However, you can include `AND` and `OR` -// expressions explicitly. For example: ``` (cpuPlatform = "Intel -// Skylake") OR (cpuPlatform = "Intel Broadwell") AND -// (scheduling.automaticRestart = true) ``` +// `<`. For example, if you are filtering Compute Engine instances, you +// can exclude instances named `example-instance` by specifying `name != +// example-instance`. You can also filter nested fields. For example, +// you could specify `scheduling.automaticRestart = false` to include +// instances only if they are not scheduled for automatic restarts. You +// can use filtering on nested fields to filter based on resource +// labels. To filter on multiple expressions, provide each separate +// expression within parentheses. For example: ``` +// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") +// ``` By default, each expression is an `AND` expression. However, you +// can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") +// AND (scheduling.automaticRestart = true) ``` func (c *TypeProvidersListCall) Filter(filter string) *TypeProvidersListCall { c.urlParams_.Set("filter", filter) return c @@ -8339,17 +8170,13 @@ func (c *TypeProvidersListCall) MaxResults(maxResults int64) *TypeProvidersListC // OrderBy sets the optional parameter "orderBy": Sorts list results by // a certain order. By default, results are returned in alphanumerical -// order based on the resource name. -// -// You can also sort results in descending order based on the creation -// timestamp using `orderBy="creationTimestamp desc". This sorts -// results based on the `creationTimestamp` field in reverse -// chronological order (newest result first). Use this to sort resources -// like operations so that the newest operation is returned -// first. -// -// Currently, only sorting by `name` or `creationTimestamp desc` is -// supported. +// order based on the resource name. You can also sort results in +// descending order based on the creation timestamp using +// `orderBy="creationTimestamp desc". This sorts results based on the +// `creationTimestamp` field in reverse chronological order (newest +// result first). Use this to sort resources like operations so that the +// newest operation is returned first. Currently, only sorting by `name` +// or `creationTimestamp desc` is supported. func (c *TypeProvidersListCall) OrderBy(orderBy string) *TypeProvidersListCall { c.urlParams_.Set("orderBy", orderBy) return c @@ -8409,7 +8236,7 @@ func (c *TypeProvidersListCall) Header() http.Header { func (c *TypeProvidersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8420,7 +8247,7 @@ func (c *TypeProvidersListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/typeProviders") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/typeProviders") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -8472,6 +8299,7 @@ func (c *TypeProvidersListCall) Do(opts ...googleapi.CallOption) (*TypeProviders return ret, nil // { // "description": "Lists all resource type providers for Deployment Manager.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/typeProviders", // "httpMethod": "GET", // "id": "deploymentmanager.typeProviders.list", // "parameterOrder": [ @@ -8479,7 +8307,7 @@ func (c *TypeProvidersListCall) Do(opts ...googleapi.CallOption) (*TypeProviders // ], // "parameters": { // "filter": { - // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", // "location": "query", // "type": "string" // }, @@ -8492,7 +8320,7 @@ func (c *TypeProvidersListCall) Do(opts ...googleapi.CallOption) (*TypeProviders // "type": "integer" // }, // "orderBy": { - // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", // "location": "query", // "type": "string" // }, @@ -8514,7 +8342,7 @@ func (c *TypeProvidersListCall) Do(opts ...googleapi.CallOption) (*TypeProviders // "type": "boolean" // } // }, - // "path": "{project}/global/typeProviders", + // "path": "deploymentmanager/alpha/projects/{project}/global/typeProviders", // "response": { // "$ref": "TypeProvidersListResponse" // }, @@ -8574,24 +8402,19 @@ func (r *TypeProvidersService) ListTypes(project string, typeProvider string) *T // the field name, a comparison operator, and the value that you want to // use for filtering. The value must be a string, a number, or a // boolean. The comparison operator must be either `=`, `!=`, `>`, or -// `<`. -// -// For example, if you are filtering Compute Engine instances, you can -// exclude instances named `example-instance` by specifying `name != -// example-instance`. -// -// You can also filter nested fields. For example, you could specify -// `scheduling.automaticRestart = false` to include instances only if -// they are not scheduled for automatic restarts. You can use filtering -// on nested fields to filter based on resource labels. -// -// To filter on multiple expressions, provide each separate expression -// within parentheses. For example: ``` (scheduling.automaticRestart = -// true) (cpuPlatform = "Intel Skylake") ``` By default, each expression -// is an `AND` expression. However, you can include `AND` and `OR` -// expressions explicitly. For example: ``` (cpuPlatform = "Intel -// Skylake") OR (cpuPlatform = "Intel Broadwell") AND -// (scheduling.automaticRestart = true) ``` +// `<`. For example, if you are filtering Compute Engine instances, you +// can exclude instances named `example-instance` by specifying `name != +// example-instance`. You can also filter nested fields. For example, +// you could specify `scheduling.automaticRestart = false` to include +// instances only if they are not scheduled for automatic restarts. You +// can use filtering on nested fields to filter based on resource +// labels. To filter on multiple expressions, provide each separate +// expression within parentheses. For example: ``` +// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") +// ``` By default, each expression is an `AND` expression. However, you +// can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") +// AND (scheduling.automaticRestart = true) ``` func (c *TypeProvidersListTypesCall) Filter(filter string) *TypeProvidersListTypesCall { c.urlParams_.Set("filter", filter) return c @@ -8610,17 +8433,13 @@ func (c *TypeProvidersListTypesCall) MaxResults(maxResults int64) *TypeProviders // OrderBy sets the optional parameter "orderBy": Sorts list results by // a certain order. By default, results are returned in alphanumerical -// order based on the resource name. -// -// You can also sort results in descending order based on the creation -// timestamp using `orderBy="creationTimestamp desc". This sorts -// results based on the `creationTimestamp` field in reverse -// chronological order (newest result first). Use this to sort resources -// like operations so that the newest operation is returned -// first. -// -// Currently, only sorting by `name` or `creationTimestamp desc` is -// supported. +// order based on the resource name. You can also sort results in +// descending order based on the creation timestamp using +// `orderBy="creationTimestamp desc". This sorts results based on the +// `creationTimestamp` field in reverse chronological order (newest +// result first). Use this to sort resources like operations so that the +// newest operation is returned first. Currently, only sorting by `name` +// or `creationTimestamp desc` is supported. func (c *TypeProvidersListTypesCall) OrderBy(orderBy string) *TypeProvidersListTypesCall { c.urlParams_.Set("orderBy", orderBy) return c @@ -8680,7 +8499,7 @@ func (c *TypeProvidersListTypesCall) Header() http.Header { func (c *TypeProvidersListTypesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8691,7 +8510,7 @@ func (c *TypeProvidersListTypesCall) doRequest(alt string) (*http.Response, erro var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/typeProviders/{typeProvider}/types") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}/types") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -8744,6 +8563,7 @@ func (c *TypeProvidersListTypesCall) Do(opts ...googleapi.CallOption) (*TypeProv return ret, nil // { // "description": "Lists all the type info for a TypeProvider.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}/types", // "httpMethod": "GET", // "id": "deploymentmanager.typeProviders.listTypes", // "parameterOrder": [ @@ -8752,7 +8572,7 @@ func (c *TypeProvidersListTypesCall) Do(opts ...googleapi.CallOption) (*TypeProv // ], // "parameters": { // "filter": { - // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", // "location": "query", // "type": "string" // }, @@ -8765,7 +8585,7 @@ func (c *TypeProvidersListTypesCall) Do(opts ...googleapi.CallOption) (*TypeProv // "type": "integer" // }, // "orderBy": { - // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", // "location": "query", // "type": "string" // }, @@ -8794,7 +8614,7 @@ func (c *TypeProvidersListTypesCall) Do(opts ...googleapi.CallOption) (*TypeProv // "type": "string" // } // }, - // "path": "{project}/global/typeProviders/{typeProvider}/types", + // "path": "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}/types", // "response": { // "$ref": "TypeProvidersListTypesResponse" // }, @@ -8877,7 +8697,7 @@ func (c *TypeProvidersPatchCall) Header() http.Header { func (c *TypeProvidersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8890,7 +8710,7 @@ func (c *TypeProvidersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/typeProviders/{typeProvider}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -8943,6 +8763,7 @@ func (c *TypeProvidersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, e return ret, nil // { // "description": "Patches a type provider.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}", // "httpMethod": "PATCH", // "id": "deploymentmanager.typeProviders.patch", // "parameterOrder": [ @@ -8965,7 +8786,7 @@ func (c *TypeProvidersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, e // "type": "string" // } // }, - // "path": "{project}/global/typeProviders/{typeProvider}", + // "path": "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}", // "request": { // "$ref": "TypeProvider" // }, @@ -9028,7 +8849,7 @@ func (c *TypeProvidersUpdateCall) Header() http.Header { func (c *TypeProvidersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9041,7 +8862,7 @@ func (c *TypeProvidersUpdateCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/typeProviders/{typeProvider}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -9094,6 +8915,7 @@ func (c *TypeProvidersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, return ret, nil // { // "description": "Updates a type provider.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}", // "httpMethod": "PUT", // "id": "deploymentmanager.typeProviders.update", // "parameterOrder": [ @@ -9116,7 +8938,7 @@ func (c *TypeProvidersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, // "type": "string" // } // }, - // "path": "{project}/global/typeProviders/{typeProvider}", + // "path": "deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}", // "request": { // "$ref": "TypeProvider" // }, @@ -9188,7 +9010,7 @@ func (c *TypesGetCall) Header() http.Header { func (c *TypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9199,7 +9021,7 @@ func (c *TypesGetCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/types/{type}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/types/{type}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -9252,6 +9074,7 @@ func (c *TypesGetCall) Do(opts ...googleapi.CallOption) (*Type, error) { return ret, nil // { // "description": "Gets information about a specific type.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/types/{type}", // "httpMethod": "GET", // "id": "deploymentmanager.types.get", // "parameterOrder": [ @@ -9274,7 +9097,7 @@ func (c *TypesGetCall) Do(opts ...googleapi.CallOption) (*Type, error) { // "type": "string" // } // }, - // "path": "{project}/global/types/{type}", + // "path": "deploymentmanager/alpha/projects/{project}/global/types/{type}", // "response": { // "$ref": "Type" // }, @@ -9311,24 +9134,19 @@ func (r *TypesService) List(project string) *TypesListCall { // the field name, a comparison operator, and the value that you want to // use for filtering. The value must be a string, a number, or a // boolean. The comparison operator must be either `=`, `!=`, `>`, or -// `<`. -// -// For example, if you are filtering Compute Engine instances, you can -// exclude instances named `example-instance` by specifying `name != -// example-instance`. -// -// You can also filter nested fields. For example, you could specify -// `scheduling.automaticRestart = false` to include instances only if -// they are not scheduled for automatic restarts. You can use filtering -// on nested fields to filter based on resource labels. -// -// To filter on multiple expressions, provide each separate expression -// within parentheses. For example: ``` (scheduling.automaticRestart = -// true) (cpuPlatform = "Intel Skylake") ``` By default, each expression -// is an `AND` expression. However, you can include `AND` and `OR` -// expressions explicitly. For example: ``` (cpuPlatform = "Intel -// Skylake") OR (cpuPlatform = "Intel Broadwell") AND -// (scheduling.automaticRestart = true) ``` +// `<`. For example, if you are filtering Compute Engine instances, you +// can exclude instances named `example-instance` by specifying `name != +// example-instance`. You can also filter nested fields. For example, +// you could specify `scheduling.automaticRestart = false` to include +// instances only if they are not scheduled for automatic restarts. You +// can use filtering on nested fields to filter based on resource +// labels. To filter on multiple expressions, provide each separate +// expression within parentheses. For example: ``` +// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") +// ``` By default, each expression is an `AND` expression. However, you +// can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") +// AND (scheduling.automaticRestart = true) ``` func (c *TypesListCall) Filter(filter string) *TypesListCall { c.urlParams_.Set("filter", filter) return c @@ -9347,17 +9165,13 @@ func (c *TypesListCall) MaxResults(maxResults int64) *TypesListCall { // OrderBy sets the optional parameter "orderBy": Sorts list results by // a certain order. By default, results are returned in alphanumerical -// order based on the resource name. -// -// You can also sort results in descending order based on the creation -// timestamp using `orderBy="creationTimestamp desc". This sorts -// results based on the `creationTimestamp` field in reverse -// chronological order (newest result first). Use this to sort resources -// like operations so that the newest operation is returned -// first. -// -// Currently, only sorting by `name` or `creationTimestamp desc` is -// supported. +// order based on the resource name. You can also sort results in +// descending order based on the creation timestamp using +// `orderBy="creationTimestamp desc". This sorts results based on the +// `creationTimestamp` field in reverse chronological order (newest +// result first). Use this to sort resources like operations so that the +// newest operation is returned first. Currently, only sorting by `name` +// or `creationTimestamp desc` is supported. func (c *TypesListCall) OrderBy(orderBy string) *TypesListCall { c.urlParams_.Set("orderBy", orderBy) return c @@ -9417,7 +9231,7 @@ func (c *TypesListCall) Header() http.Header { func (c *TypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9428,7 +9242,7 @@ func (c *TypesListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/types") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/alpha/projects/{project}/global/types") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -9480,6 +9294,7 @@ func (c *TypesListCall) Do(opts ...googleapi.CallOption) (*TypesListResponse, er return ret, nil // { // "description": "Lists all resource types for Deployment Manager.", + // "flatPath": "deploymentmanager/alpha/projects/{project}/global/types", // "httpMethod": "GET", // "id": "deploymentmanager.types.list", // "parameterOrder": [ @@ -9487,7 +9302,7 @@ func (c *TypesListCall) Do(opts ...googleapi.CallOption) (*TypesListResponse, er // ], // "parameters": { // "filter": { - // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", // "location": "query", // "type": "string" // }, @@ -9500,7 +9315,7 @@ func (c *TypesListCall) Do(opts ...googleapi.CallOption) (*TypesListResponse, er // "type": "integer" // }, // "orderBy": { - // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", // "location": "query", // "type": "string" // }, @@ -9522,7 +9337,7 @@ func (c *TypesListCall) Do(opts ...googleapi.CallOption) (*TypesListResponse, er // "type": "boolean" // } // }, - // "path": "{project}/global/types", + // "path": "deploymentmanager/alpha/projects/{project}/global/types", // "response": { // "$ref": "TypesListResponse" // }, diff --git a/deploymentmanager/v2/deploymentmanager-api.json b/deploymentmanager/v2/deploymentmanager-api.json index d84949a1464..dc519054c15 100644 --- a/deploymentmanager/v2/deploymentmanager-api.json +++ b/deploymentmanager/v2/deploymentmanager-api.json @@ -17,36 +17,63 @@ } } }, - "basePath": "/deploymentmanager/v2/projects/", - "baseUrl": "https://www.googleapis.com/deploymentmanager/v2/projects/", - "batchPath": "batch/deploymentmanager/v2", + "basePath": "", + "baseUrl": "https://deploymentmanager.googleapis.com/", + "batchPath": "batch", "canonicalName": "Deployment Manager", - "description": "Declares, configures, and deploys complex solutions on Google Cloud Platform.", + "description": "The Google Cloud Deployment Manager v2 API provides services for configuring, deploying, and viewing Google Cloud services and APIs via templates which specify deployments of Cloud resources.", "discoveryVersion": "v1", - "documentationLink": "https://cloud.google.com/deployment-manager/", - "etag": "\"u9GIe6H63LSGq-9_t39K2Zx_EAc/rm2hC5Ge9lVw-ih0zrA9raUXK0c\"", + "documentationLink": "https://cloud.google.com/deployment-manager", "icons": { - "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", - "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" }, "id": "deploymentmanager:v2", "kind": "discovery#restDescription", + "mtlsRootUrl": "https://deploymentmanager.mtls.googleapis.com/", "name": "deploymentmanager", "ownerDomain": "google.com", "ownerName": "Google", "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, "alt": { "default": "json", - "description": "Data format for the response.", + "description": "Data format for response.", "enum": [ - "json" + "json", + "media", + "proto" ], "enumDescriptions": [ - "Responses with Content-Type of application/json" + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" ], "location": "query", "type": "string" }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, "fields": { "description": "Selector specifying which fields to include in a partial response.", "location": "query", @@ -69,12 +96,17 @@ "type": "boolean" }, "quotaUser": { - "description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.", + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", "location": "query", "type": "string" }, - "userIp": { - "description": "Deprecated. Please use quotaUser instead.", + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", "location": "query", "type": "string" } @@ -85,6 +117,7 @@ "methods": { "cancelPreview": { "description": "Cancels and removes the preview currently associated with the deployment.", + "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/cancelPreview", "httpMethod": "POST", "id": "deploymentmanager.deployments.cancelPreview", "parameterOrder": [ @@ -107,7 +140,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{deployment}/cancelPreview", + "path": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/cancelPreview", "request": { "$ref": "DeploymentsCancelPreviewRequest" }, @@ -121,6 +154,7 @@ }, "delete": { "description": "Deletes a deployment and all of the resources in the deployment.", + "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}", "httpMethod": "DELETE", "id": "deploymentmanager.deployments.delete", "parameterOrder": [ @@ -132,8 +166,8 @@ "default": "DELETE", "description": "Sets the policy to use for deleting resources.", "enum": [ - "ABANDON", - "DELETE" + "DELETE", + "ABANDON" ], "enumDescriptions": [ "", @@ -156,7 +190,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{deployment}", + "path": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}", "response": { "$ref": "Operation" }, @@ -167,6 +201,7 @@ }, "get": { "description": "Gets information about a specific deployment.", + "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}", "httpMethod": "GET", "id": "deploymentmanager.deployments.get", "parameterOrder": [ @@ -189,7 +224,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{deployment}", + "path": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}", "response": { "$ref": "Deployment" }, @@ -202,6 +237,7 @@ }, "getIamPolicy": { "description": "Gets the access control policy for a resource. May be empty if no such policy or resource exists.", + "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments/{resource}/getIamPolicy", "httpMethod": "GET", "id": "deploymentmanager.deployments.getIamPolicy", "parameterOrder": [ @@ -209,6 +245,12 @@ "resource" ], "parameters": { + "optionsRequestedPolicyVersion": { + "description": "Requested IAM Policy version.", + "format": "int32", + "location": "query", + "type": "integer" + }, "project": { "description": "Project ID for this request.", "location": "path", @@ -224,7 +266,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{resource}/getIamPolicy", + "path": "deploymentmanager/v2/projects/{project}/global/deployments/{resource}/getIamPolicy", "response": { "$ref": "Policy" }, @@ -235,6 +277,7 @@ }, "insert": { "description": "Creates a deployment and all of the resources described by the deployment manifest.", + "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments", "httpMethod": "POST", "id": "deploymentmanager.deployments.insert", "parameterOrder": [ @@ -245,8 +288,8 @@ "default": "CREATE_OR_ACQUIRE", "description": "Sets the policy to use for creating new resources.", "enum": [ - "ACQUIRE", - "CREATE_OR_ACQUIRE" + "CREATE_OR_ACQUIRE", + "ACQUIRE" ], "enumDescriptions": [ "", @@ -268,7 +311,7 @@ "type": "string" } }, - "path": "{project}/global/deployments", + "path": "deploymentmanager/v2/projects/{project}/global/deployments", "request": { "$ref": "Deployment" }, @@ -282,6 +325,7 @@ }, "list": { "description": "Lists all deployments for a given project.", + "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments", "httpMethod": "GET", "id": "deploymentmanager.deployments.list", "parameterOrder": [ @@ -289,7 +333,7 @@ ], "parameters": { "filter": { - "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", "location": "query", "type": "string" }, @@ -302,7 +346,7 @@ "type": "integer" }, "orderBy": { - "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", "location": "query", "type": "string" }, @@ -317,9 +361,14 @@ "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", "required": true, "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.", + "location": "query", + "type": "boolean" } }, - "path": "{project}/global/deployments", + "path": "deploymentmanager/v2/projects/{project}/global/deployments", "response": { "$ref": "DeploymentsListResponse" }, @@ -332,6 +381,7 @@ }, "patch": { "description": "Patches a deployment and all of the resources described by the deployment manifest.", + "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}", "httpMethod": "PATCH", "id": "deploymentmanager.deployments.patch", "parameterOrder": [ @@ -343,8 +393,8 @@ "default": "CREATE_OR_ACQUIRE", "description": "Sets the policy to use for creating new resources.", "enum": [ - "ACQUIRE", - "CREATE_OR_ACQUIRE" + "CREATE_OR_ACQUIRE", + "ACQUIRE" ], "enumDescriptions": [ "", @@ -357,8 +407,8 @@ "default": "DELETE", "description": "Sets the policy to use for deleting resources.", "enum": [ - "ABANDON", - "DELETE" + "DELETE", + "ABANDON" ], "enumDescriptions": [ "", @@ -388,7 +438,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{deployment}", + "path": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}", "request": { "$ref": "Deployment" }, @@ -402,6 +452,7 @@ }, "setIamPolicy": { "description": "Sets the access control policy on the specified resource. Replaces any existing policy.", + "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments/{resource}/setIamPolicy", "httpMethod": "POST", "id": "deploymentmanager.deployments.setIamPolicy", "parameterOrder": [ @@ -424,7 +475,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{resource}/setIamPolicy", + "path": "deploymentmanager/v2/projects/{project}/global/deployments/{resource}/setIamPolicy", "request": { "$ref": "GlobalSetPolicyRequest" }, @@ -438,6 +489,7 @@ }, "stop": { "description": "Stops an ongoing operation. This does not roll back any work that has already been completed, but prevents any new work from being started.", + "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/stop", "httpMethod": "POST", "id": "deploymentmanager.deployments.stop", "parameterOrder": [ @@ -460,7 +512,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{deployment}/stop", + "path": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/stop", "request": { "$ref": "DeploymentsStopRequest" }, @@ -474,6 +526,7 @@ }, "testIamPermissions": { "description": "Returns permissions that a caller has on the specified resource.", + "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments/{resource}/testIamPermissions", "httpMethod": "POST", "id": "deploymentmanager.deployments.testIamPermissions", "parameterOrder": [ @@ -496,7 +549,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{resource}/testIamPermissions", + "path": "deploymentmanager/v2/projects/{project}/global/deployments/{resource}/testIamPermissions", "request": { "$ref": "TestPermissionsRequest" }, @@ -510,6 +563,7 @@ }, "update": { "description": "Updates a deployment and all of the resources described by the deployment manifest.", + "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}", "httpMethod": "PUT", "id": "deploymentmanager.deployments.update", "parameterOrder": [ @@ -521,8 +575,8 @@ "default": "CREATE_OR_ACQUIRE", "description": "Sets the policy to use for creating new resources.", "enum": [ - "ACQUIRE", - "CREATE_OR_ACQUIRE" + "CREATE_OR_ACQUIRE", + "ACQUIRE" ], "enumDescriptions": [ "", @@ -535,8 +589,8 @@ "default": "DELETE", "description": "Sets the policy to use for deleting resources.", "enum": [ - "ABANDON", - "DELETE" + "DELETE", + "ABANDON" ], "enumDescriptions": [ "", @@ -566,7 +620,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{deployment}", + "path": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}", "request": { "$ref": "Deployment" }, @@ -584,6 +638,7 @@ "methods": { "get": { "description": "Gets information about a specific manifest.", + "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/manifests/{manifest}", "httpMethod": "GET", "id": "deploymentmanager.manifests.get", "parameterOrder": [ @@ -614,7 +669,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{deployment}/manifests/{manifest}", + "path": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/manifests/{manifest}", "response": { "$ref": "Manifest" }, @@ -627,6 +682,7 @@ }, "list": { "description": "Lists all manifests for a given deployment.", + "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/manifests", "httpMethod": "GET", "id": "deploymentmanager.manifests.list", "parameterOrder": [ @@ -642,7 +698,7 @@ "type": "string" }, "filter": { - "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", "location": "query", "type": "string" }, @@ -655,7 +711,7 @@ "type": "integer" }, "orderBy": { - "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", "location": "query", "type": "string" }, @@ -670,9 +726,14 @@ "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", "required": true, "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.", + "location": "query", + "type": "boolean" } }, - "path": "{project}/global/deployments/{deployment}/manifests", + "path": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/manifests", "response": { "$ref": "ManifestsListResponse" }, @@ -689,6 +750,7 @@ "methods": { "get": { "description": "Gets information about a specific operation.", + "flatPath": "deploymentmanager/v2/projects/{project}/global/operations/{operation}", "httpMethod": "GET", "id": "deploymentmanager.operations.get", "parameterOrder": [ @@ -710,7 +772,7 @@ "type": "string" } }, - "path": "{project}/global/operations/{operation}", + "path": "deploymentmanager/v2/projects/{project}/global/operations/{operation}", "response": { "$ref": "Operation" }, @@ -723,6 +785,7 @@ }, "list": { "description": "Lists all operations for a project.", + "flatPath": "deploymentmanager/v2/projects/{project}/global/operations", "httpMethod": "GET", "id": "deploymentmanager.operations.list", "parameterOrder": [ @@ -730,7 +793,7 @@ ], "parameters": { "filter": { - "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", "location": "query", "type": "string" }, @@ -743,7 +806,7 @@ "type": "integer" }, "orderBy": { - "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", "location": "query", "type": "string" }, @@ -758,9 +821,14 @@ "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", "required": true, "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.", + "location": "query", + "type": "boolean" } }, - "path": "{project}/global/operations", + "path": "deploymentmanager/v2/projects/{project}/global/operations", "response": { "$ref": "OperationsListResponse" }, @@ -777,6 +845,7 @@ "methods": { "get": { "description": "Gets information about a single resource.", + "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/resources/{resource}", "httpMethod": "GET", "id": "deploymentmanager.resources.get", "parameterOrder": [ @@ -806,7 +875,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{deployment}/resources/{resource}", + "path": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/resources/{resource}", "response": { "$ref": "Resource" }, @@ -819,6 +888,7 @@ }, "list": { "description": "Lists all resources in a given deployment.", + "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/resources", "httpMethod": "GET", "id": "deploymentmanager.resources.list", "parameterOrder": [ @@ -834,7 +904,7 @@ "type": "string" }, "filter": { - "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", "location": "query", "type": "string" }, @@ -847,7 +917,7 @@ "type": "integer" }, "orderBy": { - "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", "location": "query", "type": "string" }, @@ -862,9 +932,14 @@ "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", "required": true, "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.", + "location": "query", + "type": "boolean" } }, - "path": "{project}/global/deployments/{deployment}/resources", + "path": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/resources", "response": { "$ref": "ResourcesListResponse" }, @@ -881,6 +956,7 @@ "methods": { "list": { "description": "Lists all resource types for Deployment Manager.", + "flatPath": "deploymentmanager/v2/projects/{project}/global/types", "httpMethod": "GET", "id": "deploymentmanager.types.list", "parameterOrder": [ @@ -888,7 +964,7 @@ ], "parameters": { "filter": { - "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", "location": "query", "type": "string" }, @@ -901,7 +977,7 @@ "type": "integer" }, "orderBy": { - "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", "location": "query", "type": "string" }, @@ -916,9 +992,14 @@ "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", "required": true, "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.", + "location": "query", + "type": "boolean" } }, - "path": "{project}/global/types", + "path": "deploymentmanager/v2/projects/{project}/global/types", "response": { "$ref": "TypesListResponse" }, @@ -932,11 +1013,11 @@ } } }, - "revision": "20200512", - "rootUrl": "https://www.googleapis.com/", + "revision": "20201113", + "rootUrl": "https://deploymentmanager.googleapis.com/", "schemas": { "AuditConfig": { - "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs.\n\nIf there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted.\n\nExample Policy with multiple AuditConfigs:\n\n{ \"audit_configs\": [ { \"service\": \"allServices\" \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\", }, { \"log_type\": \"ADMIN_READ\", } ] }, { \"service\": \"sampleservice.googleapis.com\" \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] }\n\nFor sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.", + "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.", "id": "AuditConfig", "properties": { "auditLogConfigs": { @@ -946,13 +1027,6 @@ }, "type": "array" }, - "exemptedMembers": { - "description": "", - "items": { - "type": "string" - }, - "type": "array" - }, "service": { "description": "Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.", "type": "string" @@ -961,33 +1035,30 @@ "type": "object" }, "AuditLogConfig": { - "description": "Provides the configuration for logging a type of permissions. Example:\n\n{ \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\", } ] }\n\nThis enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.", + "description": "Provides the configuration for logging a type of permissions. Example: { \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.", "id": "AuditLogConfig", "properties": { "exemptedMembers": { - "description": "Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][].", + "description": "Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.", "items": { "type": "string" }, "type": "array" }, - "ignoreChildExemptions": { - "description": "", - "type": "boolean" - }, "logType": { "description": "The log type that this config enables.", - "type": "string" - } - }, - "type": "object" - }, - "AuthorizationLoggingOptions": { - "description": "Authorization-related information used by Cloud Audit Logging.", - "id": "AuthorizationLoggingOptions", - "properties": { - "permissionType": { - "description": "The type of the permission that was checked.", + "enum": [ + "LOG_TYPE_UNSPECIFIED", + "ADMIN_READ", + "DATA_WRITE", + "DATA_READ" + ], + "enumDescriptions": [ + "Default case. Should never be this.", + "Admin reads. Example: CloudIAM getIamPolicy", + "Data writes. Example: CloudSQL Users create", + "Data reads. Example: CloudSQL Users list" + ], "type": "string" } }, @@ -999,10 +1070,10 @@ "properties": { "condition": { "$ref": "Expr", - "description": "The condition that is associated with this binding.\n\nIf the condition evaluates to `true`, then this binding applies to the current request.\n\nIf the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding.\n\nTo learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." + "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` .\n\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.\n\n* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding.\n\n* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding.\n\n* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.\n\n\n\n* `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.", + "description": "Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", "items": { "type": "string" }, @@ -1015,38 +1086,7 @@ }, "type": "object" }, - "Condition": { - "description": "A condition to be met.", - "id": "Condition", - "properties": { - "iam": { - "description": "Trusted attributes supplied by the IAM system.", - "type": "string" - }, - "op": { - "description": "An operator to apply the subject with.", - "type": "string" - }, - "svc": { - "description": "Trusted attributes discharged by the service.", - "type": "string" - }, - "sys": { - "description": "Trusted attributes supplied by any service that owns resources and uses the IAM system for access control.", - "type": "string" - }, - "values": { - "description": "The objects of the condition.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, "ConfigFile": { - "description": "", "id": "ConfigFile", "properties": { "content": { @@ -1057,7 +1097,6 @@ "type": "object" }, "Deployment": { - "description": "", "id": "Deployment", "properties": { "description": { @@ -1065,7 +1104,7 @@ "type": "string" }, "fingerprint": { - "description": "Provides a fingerprint to use in requests to modify a deployment, such as `update()`, `stop()`, and `cancelPreview()` requests. A fingerprint is a randomly generated value that must be provided with `update()`, `stop()`, and `cancelPreview()` requests to perform optimistic locking. This ensures optimistic concurrency so that only one request happens at a time.\n\nThe fingerprint is initially generated by Deployment Manager and changes after every request to modify data. To get the latest fingerprint value, perform a `get()` request to a deployment.", + "description": "Provides a fingerprint to use in requests to modify a deployment, such as `update()`, `stop()`, and `cancelPreview()` requests. A fingerprint is a randomly generated value that must be provided with `update()`, `stop()`, and `cancelPreview()` requests to perform optimistic locking. This ensures optimistic concurrency so that only one request happens at a time. The fingerprint is initially generated by Deployment Manager and changes after every request to modify data. To get the latest fingerprint value, perform a `get()` request to a deployment.", "format": "byte", "type": "string" }, @@ -1078,7 +1117,7 @@ "type": "string" }, "labels": { - "description": "Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.", + "description": "Map of One Platform labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.", "items": { "$ref": "DeploymentLabelEntry" }, @@ -1116,19 +1155,21 @@ "type": "object" }, "DeploymentLabelEntry": { + "description": "Label object for Deployments", "id": "DeploymentLabelEntry", "properties": { "key": { + "description": "Key of the label", "type": "string" }, "value": { + "description": "Value of the label", "type": "string" } }, "type": "object" }, "DeploymentUpdate": { - "description": "", "id": "DeploymentUpdate", "properties": { "description": { @@ -1136,7 +1177,7 @@ "type": "string" }, "labels": { - "description": "Output only. Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.", + "description": "Map of One Platform labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.", "items": { "$ref": "DeploymentUpdateLabelEntry" }, @@ -1150,23 +1191,25 @@ "type": "object" }, "DeploymentUpdateLabelEntry": { + "description": "Label object for DeploymentUpdate", "id": "DeploymentUpdateLabelEntry", "properties": { "key": { + "description": "Key of the label", "type": "string" }, "value": { + "description": "Value of the label", "type": "string" } }, "type": "object" }, "DeploymentsCancelPreviewRequest": { - "description": "", "id": "DeploymentsCancelPreviewRequest", "properties": { "fingerprint": { - "description": "Specifies a fingerprint for `cancelPreview()` requests. A fingerprint is a randomly generated value that must be provided in `cancelPreview()` requests to perform optimistic locking. This ensures optimistic concurrency so that the deployment does not have conflicting requests (e.g. if someone attempts to make a new update request while another user attempts to cancel a preview, this would prevent one of the requests).\n\nThe fingerprint is initially generated by Deployment Manager and changes after every request to modify a deployment. To get the latest fingerprint value, perform a `get()` request on the deployment.", + "description": "Specifies a fingerprint for `cancelPreview()` requests. A fingerprint is a randomly generated value that must be provided in `cancelPreview()` requests to perform optimistic locking. This ensures optimistic concurrency so that the deployment does not have conflicting requests (e.g. if someone attempts to make a new update request while another user attempts to cancel a preview, this would prevent one of the requests). The fingerprint is initially generated by Deployment Manager and changes after every request to modify a deployment. To get the latest fingerprint value, perform a `get()` request on the deployment.", "format": "byte", "type": "string" } @@ -1192,11 +1235,10 @@ "type": "object" }, "DeploymentsStopRequest": { - "description": "", "id": "DeploymentsStopRequest", "properties": { "fingerprint": { - "description": "Specifies a fingerprint for `stop()` requests. A fingerprint is a randomly generated value that must be provided in `stop()` requests to perform optimistic locking. This ensures optimistic concurrency so that the deployment does not have conflicting requests (e.g. if someone attempts to make a new update request while another user attempts to stop an ongoing update request, this would prevent a collision).\n\nThe fingerprint is initially generated by Deployment Manager and changes after every request to modify a deployment. To get the latest fingerprint value, perform a `get()` request on the deployment.", + "description": "Specifies a fingerprint for `stop()` requests. A fingerprint is a randomly generated value that must be provided in `stop()` requests to perform optimistic locking. This ensures optimistic concurrency so that the deployment does not have conflicting requests (e.g. if someone attempts to make a new update request while another user attempts to stop an ongoing update request, this would prevent a collision). The fingerprint is initially generated by Deployment Manager and changes after every request to modify a deployment. To get the latest fingerprint value, perform a `get()` request on the deployment.", "format": "byte", "type": "string" } @@ -1204,7 +1246,7 @@ "type": "object" }, "Expr": { - "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec.\n\nExample (Comparison):\n\ntitle: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\"\n\nExample (Equality):\n\ntitle: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\"\n\nExample (Logic):\n\ntitle: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\"\n\nExample (Data Manipulation):\n\ntitle: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\"\n\nThe exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", + "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", "id": "Expr", "properties": { "description": { @@ -1249,7 +1291,6 @@ "type": "object" }, "ImportFile": { - "description": "", "id": "ImportFile", "properties": { "content": { @@ -1263,90 +1304,7 @@ }, "type": "object" }, - "LogConfig": { - "description": "Specifies what kind of log the caller must write", - "id": "LogConfig", - "properties": { - "cloudAudit": { - "$ref": "LogConfigCloudAuditOptions", - "description": "Cloud audit options." - }, - "counter": { - "$ref": "LogConfigCounterOptions", - "description": "Counter options." - }, - "dataAccess": { - "$ref": "LogConfigDataAccessOptions", - "description": "Data access options." - } - }, - "type": "object" - }, - "LogConfigCloudAuditOptions": { - "description": "Write a Cloud Audit log", - "id": "LogConfigCloudAuditOptions", - "properties": { - "authorizationLoggingOptions": { - "$ref": "AuthorizationLoggingOptions", - "description": "Information used by the Cloud Audit Logging pipeline." - }, - "logName": { - "description": "The log_name to populate in the Cloud Audit Record.", - "type": "string" - } - }, - "type": "object" - }, - "LogConfigCounterOptions": { - "description": "Increment a streamz counter with the specified metric and field names.\n\nMetric names should start with a '/', generally be lowercase-only, and end in \"_count\". Field names should not contain an initial slash. The actual exported metric names will have \"/iam/policy\" prepended.\n\nField names correspond to IAM request parameters and field values are their respective values.\n\nSupported field names: - \"authority\", which is \"[token]\" if IAMContext.token is present, otherwise the value of IAMContext.authority_selector if present, and otherwise a representation of IAMContext.principal; or - \"iam_principal\", a representation of IAMContext.principal even if a token or authority selector is present; or - \"\" (empty string), resulting in a counter with no fields.\n\nExamples: counter { metric: \"/debug_access_count\" field: \"iam_principal\" } ==\u003e increment counter /iam/policy/debug_access_count {iam_principal=[value of IAMContext.principal]}", - "id": "LogConfigCounterOptions", - "properties": { - "customFields": { - "description": "Custom fields.", - "items": { - "$ref": "LogConfigCounterOptionsCustomField" - }, - "type": "array" - }, - "field": { - "description": "The field value to attribute.", - "type": "string" - }, - "metric": { - "description": "The metric to update.", - "type": "string" - } - }, - "type": "object" - }, - "LogConfigCounterOptionsCustomField": { - "description": "Custom fields. These can be used to create a counter with arbitrary field/value pairs. See: go/rpcsp-custom-fields.", - "id": "LogConfigCounterOptionsCustomField", - "properties": { - "name": { - "description": "Name is the field name.", - "type": "string" - }, - "value": { - "description": "Value is the field value. It is important that in contrast to the CounterOptions.field, the value here is a constant that is not derived from the IAMContext.", - "type": "string" - } - }, - "type": "object" - }, - "LogConfigDataAccessOptions": { - "description": "Write a Data Access (Gin) log", - "id": "LogConfigDataAccessOptions", - "properties": { - "logMode": { - "description": "", - "type": "string" - } - }, - "type": "object" - }, "Manifest": { - "description": "", "id": "Manifest", "properties": { "config": { @@ -1377,7 +1335,7 @@ "type": "string" }, "name": { - "description": "Output only.\n\nThe name of the manifest.", + "description": "Output only. The name of the manifest.", "type": "string" }, "selfLink": { @@ -1406,7 +1364,7 @@ "type": "object" }, "Operation": { - "description": "Represents an Operation resource.\n\nGoogle Compute Engine has three Operation resources:\n\n* [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)\n\nYou can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.\n\nOperations can be global, regional or zonal. \n- For global operations, use the `globalOperations` resource. \n- For regional operations, use the `regionOperations` resource. \n- For zonal operations, use the `zonalOperations` resource. \n\nFor more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)", + "description": "Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources.", "id": "Operation", "properties": { "clientOperationId": { @@ -1502,6 +1460,16 @@ }, "status": { "description": "[Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`.", + "enum": [ + "PENDING", + "RUNNING", + "DONE" + ], + "enumDescriptions": [ + "", + "", + "" + ], "type": "string" }, "statusMessage": { @@ -1527,10 +1495,64 @@ "properties": { "code": { "description": "[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.", + "enum": [ + "DEPRECATED_RESOURCE_USED", + "NO_RESULTS_ON_PAGE", + "UNREACHABLE", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_NOT_RUNNING", + "INJECTED_KERNELS_DEPRECATED", + "REQUIRED_TOS_AGREEMENT", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "RESOURCE_NOT_DELETED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "NOT_CRITICAL_ERROR", + "CLEANUP_FAILED", + "FIELD_VALUE_OVERRIDEN", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "MISSING_TYPE_DEPENDENCY", + "EXTERNAL_API_WARNING", + "SCHEMA_VALIDATION_IGNORED", + "UNDECLARED_PROPERTIES", + "EXPERIMENTAL_TYPE_USED", + "DEPRECATED_TYPE_USED", + "PARTIAL_SUCCESS", + "LARGE_DEPLOYMENT_WARNING" + ], + "enumDescriptions": [ + "A link to a deprecated resource was created.", + "No results are present on a particular list page.", + "A given scope cannot be reached.", + "The route's nextHopIp address is not assigned to an instance on the network.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the same network as the route.", + "The route's next hop instance cannot ip forward.", + "The route's next hop instance does not have a status of RUNNING.", + "The operation involved use of an injected kernel, which is deprecated.", + "The user attempted to use a resource that requires a TOS they have not accepted.", + "The user created a boot disk that is larger than image size.", + "One or more of the resources set to auto-delete could not be deleted because they were in use.", + "Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.", + "Error which is not critical. We decided to continue the process despite the mentioned error.", + "Warning about failed cleanup of transient changes made by a failed operation.", + "Warning that value of a field has been overridden. Deprecated unused field.", + "Warning that a resource is in use.", + "A resource depends on a missing type", + "Warning that is present in an external api call", + "When a resource schema validation is ignored.", + "When undeclared properties in the schema are present", + "When deploying and at least one of the resources has a type marked as experimental", + "When deploying and at least one of the resources has a type marked as deprecated", + "Success is reported, but some results may be missing due to errors", + "When deploying a deployment with a exceedingly large number of resources" + ], "type": "string" }, "data": { - "description": "[Output Only] Metadata about this warning in key: value format. For example:\n\"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" }", + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", "items": { "properties": { "key": { @@ -1581,7 +1603,7 @@ "type": "object" }, "Policy": { - "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.\n\n\n\nA `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role.\n\nFor some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).\n\n**JSON example:**\n\n{ \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 }\n\n**YAML example:**\n\nbindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3\n\nFor a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", + "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", "id": "Policy", "properties": { "auditConfigs": { @@ -1599,23 +1621,12 @@ "type": "array" }, "etag": { - "description": "`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy.\n\n**Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.", + "description": "`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.", "format": "byte", "type": "string" }, - "iamOwned": { - "description": "", - "type": "boolean" - }, - "rules": { - "description": "If more than one rule is specified, the rules are applied in the following manner: - All matching LOG rules are always applied. - If any DENY/DENY_WITH_LOG rule matches, permission is denied. Logging will be applied if one or more matching rule requires logging. - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is granted. Logging will be applied if one or more matching rule requires logging. - Otherwise, if no rule applies, permission is denied.", - "items": { - "$ref": "Rule" - }, - "type": "array" - }, "version": { - "description": "Specifies the format of the policy.\n\nValid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected.\n\nAny operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations:\n\n* Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions\n\n**Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.\n\nIf a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.\n\nTo learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "description": "Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", "format": "int32", "type": "integer" } @@ -1623,7 +1634,6 @@ "type": "object" }, "Resource": { - "description": "", "id": "Resource", "properties": { "accessControl": { @@ -1676,10 +1686,64 @@ "properties": { "code": { "description": "[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.", + "enum": [ + "DEPRECATED_RESOURCE_USED", + "NO_RESULTS_ON_PAGE", + "UNREACHABLE", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_NOT_RUNNING", + "INJECTED_KERNELS_DEPRECATED", + "REQUIRED_TOS_AGREEMENT", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "RESOURCE_NOT_DELETED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "NOT_CRITICAL_ERROR", + "CLEANUP_FAILED", + "FIELD_VALUE_OVERRIDEN", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "MISSING_TYPE_DEPENDENCY", + "EXTERNAL_API_WARNING", + "SCHEMA_VALIDATION_IGNORED", + "UNDECLARED_PROPERTIES", + "EXPERIMENTAL_TYPE_USED", + "DEPRECATED_TYPE_USED", + "PARTIAL_SUCCESS", + "LARGE_DEPLOYMENT_WARNING" + ], + "enumDescriptions": [ + "A link to a deprecated resource was created.", + "No results are present on a particular list page.", + "A given scope cannot be reached.", + "The route's nextHopIp address is not assigned to an instance on the network.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the same network as the route.", + "The route's next hop instance cannot ip forward.", + "The route's next hop instance does not have a status of RUNNING.", + "The operation involved use of an injected kernel, which is deprecated.", + "The user attempted to use a resource that requires a TOS they have not accepted.", + "The user created a boot disk that is larger than image size.", + "One or more of the resources set to auto-delete could not be deleted because they were in use.", + "Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.", + "Error which is not critical. We decided to continue the process despite the mentioned error.", + "Warning about failed cleanup of transient changes made by a failed operation.", + "Warning that value of a field has been overridden. Deprecated unused field.", + "Warning that a resource is in use.", + "A resource depends on a missing type", + "Warning that is present in an external api call", + "When a resource schema validation is ignored.", + "When undeclared properties in the schema are present", + "When deploying and at least one of the resources has a type marked as experimental", + "When deploying and at least one of the resources has a type marked as deprecated", + "Success is reported, but some results may be missing due to errors", + "When deploying a deployment with a exceedingly large number of resources" + ], "type": "string" }, "data": { - "description": "[Output Only] Metadata about this warning in key: value format. For example:\n\"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" }", + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", "items": { "properties": { "key": { @@ -1719,7 +1783,6 @@ "type": "object" }, "ResourceUpdate": { - "description": "", "id": "ResourceUpdate", "properties": { "accessControl": { @@ -1759,6 +1822,22 @@ }, "intent": { "description": "Output only. The intent of the resource: `PREVIEW`, `UPDATE`, or `CANCEL`.", + "enum": [ + "CREATE_OR_ACQUIRE", + "DELETE", + "ACQUIRE", + "UPDATE", + "ABANDON", + "CREATE" + ], + "enumDescriptions": [ + "The resource is scheduled to be created, or if it already exists, acquired.", + "The resource is scheduled to be deleted.", + "The resource is scheduled to be acquired.", + "The resource is scheduled to be updated via the UPDATE method.", + "The resource is scheduled to be abandoned.", + "The resource is scheduled to be created." + ], "type": "string" }, "manifest": { @@ -1771,6 +1850,20 @@ }, "state": { "description": "Output only. The state of the resource.", + "enum": [ + "PENDING", + "IN_PROGRESS", + "IN_PREVIEW", + "FAILED", + "ABORTED" + ], + "enumDescriptions": [ + "There are changes pending for this resource.", + "The service is executing changes on the resource.", + "The service is previewing changes on the resource.", + "The service has failed to change the resource.", + "The service has aborted trying to change the resource." + ], "type": "string" }, "warnings": { @@ -1779,10 +1872,64 @@ "properties": { "code": { "description": "[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.", + "enum": [ + "DEPRECATED_RESOURCE_USED", + "NO_RESULTS_ON_PAGE", + "UNREACHABLE", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_NOT_RUNNING", + "INJECTED_KERNELS_DEPRECATED", + "REQUIRED_TOS_AGREEMENT", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "RESOURCE_NOT_DELETED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "NOT_CRITICAL_ERROR", + "CLEANUP_FAILED", + "FIELD_VALUE_OVERRIDEN", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "MISSING_TYPE_DEPENDENCY", + "EXTERNAL_API_WARNING", + "SCHEMA_VALIDATION_IGNORED", + "UNDECLARED_PROPERTIES", + "EXPERIMENTAL_TYPE_USED", + "DEPRECATED_TYPE_USED", + "PARTIAL_SUCCESS", + "LARGE_DEPLOYMENT_WARNING" + ], + "enumDescriptions": [ + "A link to a deprecated resource was created.", + "No results are present on a particular list page.", + "A given scope cannot be reached.", + "The route's nextHopIp address is not assigned to an instance on the network.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the same network as the route.", + "The route's next hop instance cannot ip forward.", + "The route's next hop instance does not have a status of RUNNING.", + "The operation involved use of an injected kernel, which is deprecated.", + "The user attempted to use a resource that requires a TOS they have not accepted.", + "The user created a boot disk that is larger than image size.", + "One or more of the resources set to auto-delete could not be deleted because they were in use.", + "Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.", + "Error which is not critical. We decided to continue the process despite the mentioned error.", + "Warning about failed cleanup of transient changes made by a failed operation.", + "Warning that value of a field has been overridden. Deprecated unused field.", + "Warning that a resource is in use.", + "A resource depends on a missing type", + "Warning that is present in an external api call", + "When a resource schema validation is ignored.", + "When undeclared properties in the schema are present", + "When deploying and at least one of the resources has a type marked as experimental", + "When deploying and at least one of the resources has a type marked as deprecated", + "Success is reported, but some results may be missing due to errors", + "When deploying a deployment with a exceedingly large number of resources" + ], "type": "string" }, "data": { - "description": "[Output Only] Metadata about this warning in key: value format. For example:\n\"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" }", + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", "items": { "properties": { "key": { @@ -1828,58 +1975,7 @@ }, "type": "object" }, - "Rule": { - "description": "A rule to be applied in a Policy.", - "id": "Rule", - "properties": { - "action": { - "description": "Required", - "type": "string" - }, - "conditions": { - "description": "Additional restrictions that must be met. All conditions must pass for the rule to match.", - "items": { - "$ref": "Condition" - }, - "type": "array" - }, - "description": { - "description": "Human-readable description of the rule.", - "type": "string" - }, - "ins": { - "description": "If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.", - "items": { - "type": "string" - }, - "type": "array" - }, - "logConfigs": { - "description": "The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.", - "items": { - "$ref": "LogConfig" - }, - "type": "array" - }, - "notIns": { - "description": "If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.", - "items": { - "type": "string" - }, - "type": "array" - }, - "permissions": { - "description": "A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, "TargetConfiguration": { - "description": "", "id": "TargetConfiguration", "properties": { "config": { @@ -1968,7 +2064,7 @@ "type": "object" } }, - "servicePath": "deploymentmanager/v2/projects/", - "title": "Google Cloud Deployment Manager API", + "servicePath": "", + "title": "Cloud Deployment Manager V2 API", "version": "v2" } \ No newline at end of file diff --git a/deploymentmanager/v2/deploymentmanager-gen.go b/deploymentmanager/v2/deploymentmanager-gen.go index 0d0b53cd132..ed475d5df3c 100644 --- a/deploymentmanager/v2/deploymentmanager-gen.go +++ b/deploymentmanager/v2/deploymentmanager-gen.go @@ -4,9 +4,9 @@ // Code generated file. DO NOT EDIT. -// Package deploymentmanager provides access to the Google Cloud Deployment Manager API. +// Package deploymentmanager provides access to the Cloud Deployment Manager V2 API. // -// For product documentation, see: https://cloud.google.com/deployment-manager/ +// For product documentation, see: https://cloud.google.com/deployment-manager // // Creating a client // @@ -78,7 +78,8 @@ var _ = internaloption.WithDefaultEndpoint const apiId = "deploymentmanager:v2" const apiName = "deploymentmanager" const apiVersion = "v2" -const basePath = "https://www.googleapis.com/deploymentmanager/v2/projects/" +const basePath = "https://deploymentmanager.googleapis.com/" +const mtlsBasePath = "https://deploymentmanager.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( @@ -108,6 +109,7 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -211,33 +213,26 @@ type TypesService struct { // AuditConfig: Specifies the audit configuration for a service. The // configuration determines which permission types are logged, and what // identities, if any, are exempted from logging. An AuditConfig must -// have one or more AuditLogConfigs. -// -// If there are AuditConfigs for both `allServices` and a specific -// service, the union of the two AuditConfigs is used for that service: -// the log_types specified in each AuditConfig are enabled, and the -// exempted_members in each AuditLogConfig are exempted. -// -// Example Policy with multiple AuditConfigs: -// -// { "audit_configs": [ { "service": "allServices" "audit_log_configs": -// [ { "log_type": "DATA_READ", "exempted_members": [ -// "user:jose@example.com" ] }, { "log_type": "DATA_WRITE", }, { -// "log_type": "ADMIN_READ", } ] }, { "service": -// "sampleservice.googleapis.com" "audit_log_configs": [ { "log_type": -// "DATA_READ", }, { "log_type": "DATA_WRITE", "exempted_members": [ -// "user:aliya@example.com" ] } ] } ] } -// -// For sampleservice, this policy enables DATA_READ, DATA_WRITE and -// ADMIN_READ logging. It also exempts jose@example.com from DATA_READ -// logging, and aliya@example.com from DATA_WRITE logging. +// have one or more AuditLogConfigs. If there are AuditConfigs for both +// `allServices` and a specific service, the union of the two +// AuditConfigs is used for that service: the log_types specified in +// each AuditConfig are enabled, and the exempted_members in each +// AuditLogConfig are exempted. Example Policy with multiple +// AuditConfigs: { "audit_configs": [ { "service": "allServices", +// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": +// [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { +// "log_type": "ADMIN_READ" } ] }, { "service": +// "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": +// "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ +// "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy +// enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts +// jose@example.com from DATA_READ logging, and aliya@example.com from +// DATA_WRITE logging. type AuditConfig struct { // AuditLogConfigs: The configuration for logging of each type of // permission. AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"` - ExemptedMembers []string `json:"exemptedMembers,omitempty"` - // Service: Specifies a service that will be enabled for audit logging. // For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. // `allServices` is a special value that covers all services. @@ -268,23 +263,24 @@ func (s *AuditConfig) MarshalJSON() ([]byte, error) { } // AuditLogConfig: Provides the configuration for logging a type of -// permissions. Example: -// -// { "audit_log_configs": [ { "log_type": "DATA_READ", -// "exempted_members": [ "user:jose@example.com" ] }, { "log_type": -// "DATA_WRITE", } ] } -// -// This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting -// jose@example.com from DATA_READ logging. +// permissions. Example: { "audit_log_configs": [ { "log_type": +// "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { +// "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and +// 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ +// logging. type AuditLogConfig struct { // ExemptedMembers: Specifies the identities that do not cause logging // for this type of permission. Follows the same format of - // [Binding.members][]. + // Binding.members. ExemptedMembers []string `json:"exemptedMembers,omitempty"` - IgnoreChildExemptions bool `json:"ignoreChildExemptions,omitempty"` - // LogType: The log type that this config enables. + // + // Possible values: + // "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this. + // "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy + // "DATA_WRITE" - Data writes. Example: CloudSQL Users create + // "DATA_READ" - Data reads. Example: CloudSQL Users list LogType string `json:"logType,omitempty"` // ForceSendFields is a list of field names (e.g. "ExemptedMembers") to @@ -311,100 +307,51 @@ func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AuthorizationLoggingOptions: Authorization-related information used -// by Cloud Audit Logging. -type AuthorizationLoggingOptions struct { - // PermissionType: The type of the permission that was checked. - PermissionType string `json:"permissionType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "PermissionType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PermissionType") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *AuthorizationLoggingOptions) MarshalJSON() ([]byte, error) { - type NoMethod AuthorizationLoggingOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // Binding: Associates `members` with a `role`. type Binding struct { - // Condition: The condition that is associated with this binding. - // - // If the condition evaluates to `true`, then this binding applies to - // the current request. - // - // If the condition evaluates to `false`, then this binding does not - // apply to the current request. However, a different role binding might - // grant the same role to one or more of the members in this - // binding. - // - // To learn which resources support conditions in their IAM policies, - // see the [IAM + // Condition: The condition that is associated with this binding. If the + // condition evaluates to `true`, then this binding applies to the + // current request. If the condition evaluates to `false`, then this + // binding does not apply to the current request. However, a different + // role binding might grant the same role to one or more of the members + // in this binding. To learn which resources support conditions in their + // IAM policies, see the [IAM // documentation](https://cloud.google.com/iam/help/conditions/resource-p // olicies). Condition *Expr `json:"condition,omitempty"` // Members: Specifies the identities requesting access for a Cloud - // Platform resource. `members` can have the following values: - // - // * `allUsers`: A special identifier that represents anyone who is on - // the internet; with or without a Google account. - // - // * `allAuthenticatedUsers`: A special identifier that represents - // anyone who is authenticated with a Google account or a service - // account. - // - // * `user:{emailid}`: An email address that represents a specific - // Google account. For example, `alice@example.com` . - // - // - // - // * `serviceAccount:{emailid}`: An email address that represents a + // Platform resource. `members` can have the following values: * + // `allUsers`: A special identifier that represents anyone who is on the + // internet; with or without a Google account. * + // `allAuthenticatedUsers`: A special identifier that represents anyone + // who is authenticated with a Google account or a service account. * + // `user:{emailid}`: An email address that represents a specific Google + // account. For example, `alice@example.com` . * + // `serviceAccount:{emailid}`: An email address that represents a // service account. For example, - // `my-other-app@appspot.gserviceaccount.com`. - // - // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. - // - // * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus - // unique identifier) representing a user that has been recently - // deleted. For example, `alice@example.com?uid=123456789012345678901`. - // If the user is recovered, this value reverts to `user:{emailid}` and - // the recovered user retains the role in the binding. - // - // * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address + // `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An + // email address that represents a Google group. For example, + // `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An + // email address (plus unique identifier) representing a user that has + // been recently deleted. For example, + // `alice@example.com?uid=123456789012345678901`. If the user is + // recovered, this value reverts to `user:{emailid}` and the recovered + // user retains the role in the binding. * + // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address // (plus unique identifier) representing a service account that has been // recently deleted. For example, // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. // If the service account is undeleted, this value reverts to // `serviceAccount:{emailid}` and the undeleted service account retains - // the role in the binding. - // - // * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus - // unique identifier) representing a Google group that has been recently - // deleted. For example, `admins@example.com?uid=123456789012345678901`. - // If the group is recovered, this value reverts to `group:{emailid}` - // and the recovered group retains the role in the binding. - // - // - // - // * `domain:{domain}`: The G Suite domain (primary) that represents all - // the users of that domain. For example, `google.com` or `example.com`. + // the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: + // An email address (plus unique identifier) representing a Google group + // that has been recently deleted. For example, + // `admins@example.com?uid=123456789012345678901`. If the group is + // recovered, this value reverts to `group:{emailid}` and the recovered + // group retains the role in the binding. * `domain:{domain}`: The G + // Suite domain (primary) that represents all the users of that domain. + // For example, `google.com` or `example.com`. Members []string `json:"members,omitempty"` // Role: Role that is assigned to `members`. For example, @@ -434,47 +381,6 @@ func (s *Binding) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Condition: A condition to be met. -type Condition struct { - // Iam: Trusted attributes supplied by the IAM system. - Iam string `json:"iam,omitempty"` - - // Op: An operator to apply the subject with. - Op string `json:"op,omitempty"` - - // Svc: Trusted attributes discharged by the service. - Svc string `json:"svc,omitempty"` - - // Sys: Trusted attributes supplied by any service that owns resources - // and uses the IAM system for access control. - Sys string `json:"sys,omitempty"` - - // Values: The objects of the condition. - Values []string `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Iam") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Iam") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *Condition) MarshalJSON() ([]byte, error) { - type NoMethod Condition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - type ConfigFile struct { // Content: The contents of the file. Content string `json:"content,omitempty"` @@ -511,11 +417,10 @@ type Deployment struct { // requests. A fingerprint is a randomly generated value that must be // provided with `update()`, `stop()`, and `cancelPreview()` requests to // perform optimistic locking. This ensures optimistic concurrency so - // that only one request happens at a time. - // - // The fingerprint is initially generated by Deployment Manager and - // changes after every request to modify data. To get the latest - // fingerprint value, perform a `get()` request to a deployment. + // that only one request happens at a time. The fingerprint is initially + // generated by Deployment Manager and changes after every request to + // modify data. To get the latest fingerprint value, perform a `get()` + // request to a deployment. Fingerprint string `json:"fingerprint,omitempty"` Id uint64 `json:"id,omitempty,string"` @@ -523,12 +428,12 @@ type Deployment struct { // InsertTime: Output only. Creation timestamp in RFC3339 text format. InsertTime string `json:"insertTime,omitempty"` - // Labels: Map of labels; provided by the client when the resource is - // created or updated. Specifically: Label keys must be between 1 and 63 - // characters long and must conform to the following regular expression: - // `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 - // characters long and must conform to the regular expression - // `([a-z]([-a-z0-9]*[a-z0-9])?)?`. + // Labels: Map of One Platform labels; provided by the client when the + // resource is created or updated. Specifically: Label keys must be + // between 1 and 63 characters long and must conform to the following + // regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be + // between 0 and 63 characters long and must conform to the regular + // expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. Labels []*DeploymentLabelEntry `json:"labels,omitempty"` // Manifest: Output only. URL of the manifest representing the last @@ -591,9 +496,12 @@ func (s *Deployment) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DeploymentLabelEntry: Label object for Deployments type DeploymentLabelEntry struct { + // Key: Key of the label Key string `json:"key,omitempty"` + // Value: Value of the label Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") to @@ -624,7 +532,7 @@ type DeploymentUpdate struct { // the deployment after the current update has been applied. Description string `json:"description,omitempty"` - // Labels: Output only. Map of labels; provided by the client when the + // Labels: Map of One Platform labels; provided by the client when the // resource is created or updated. Specifically: Label keys must be // between 1 and 63 characters long and must conform to the following // regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be @@ -659,9 +567,12 @@ func (s *DeploymentUpdate) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DeploymentUpdateLabelEntry: Label object for DeploymentUpdate type DeploymentUpdateLabelEntry struct { + // Key: Key of the label Key string `json:"key,omitempty"` + // Value: Value of the label Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") to @@ -694,11 +605,10 @@ type DeploymentsCancelPreviewRequest struct { // ensures optimistic concurrency so that the deployment does not have // conflicting requests (e.g. if someone attempts to make a new update // request while another user attempts to cancel a preview, this would - // prevent one of the requests). - // - // The fingerprint is initially generated by Deployment Manager and - // changes after every request to modify a deployment. To get the latest - // fingerprint value, perform a `get()` request on the deployment. + // prevent one of the requests). The fingerprint is initially generated + // by Deployment Manager and changes after every request to modify a + // deployment. To get the latest fingerprint value, perform a `get()` + // request on the deployment. Fingerprint string `json:"fingerprint,omitempty"` // ForceSendFields is a list of field names (e.g. "Fingerprint") to @@ -769,11 +679,10 @@ type DeploymentsStopRequest struct { // optimistic concurrency so that the deployment does not have // conflicting requests (e.g. if someone attempts to make a new update // request while another user attempts to stop an ongoing update - // request, this would prevent a collision). - // - // The fingerprint is initially generated by Deployment Manager and - // changes after every request to modify a deployment. To get the latest - // fingerprint value, perform a `get()` request on the deployment. + // request, this would prevent a collision). The fingerprint is + // initially generated by Deployment Manager and changes after every + // request to modify a deployment. To get the latest fingerprint value, + // perform a `get()` request on the deployment. Fingerprint string `json:"fingerprint,omitempty"` // ForceSendFields is a list of field names (e.g. "Fingerprint") to @@ -802,35 +711,21 @@ func (s *DeploymentsStopRequest) MarshalJSON() ([]byte, error) { // Expr: Represents a textual expression in the Common Expression // Language (CEL) syntax. CEL is a C-like expression language. The // syntax and semantics of CEL are documented at -// https://github.com/google/cel-spec. -// -// Example (Comparison): -// -// title: "Summary size limit" description: "Determines if a summary is -// less than 100 chars" expression: "document.summary.size() < -// 100" -// -// Example (Equality): -// -// title: "Requestor is owner" description: "Determines if requestor is -// the document owner" expression: "document.owner == -// request.auth.claims.email" -// -// Example (Logic): -// -// title: "Public documents" description: "Determine whether the -// document should be publicly visible" expression: "document.type != -// 'private' && document.type != 'internal'" -// -// Example (Data Manipulation): -// -// title: "Notification string" description: "Create a notification -// string with a timestamp." expression: "'New message received at ' + -// string(document.create_time)" -// -// The exact variables and functions that may be referenced within an -// expression are determined by the service that evaluates it. See the -// service documentation for additional information. +// https://github.com/google/cel-spec. Example (Comparison): title: +// "Summary size limit" description: "Determines if a summary is less +// than 100 chars" expression: "document.summary.size() < 100" Example +// (Equality): title: "Requestor is owner" description: "Determines if +// requestor is the document owner" expression: "document.owner == +// request.auth.claims.email" Example (Logic): title: "Public documents" +// description: "Determine whether the document should be publicly +// visible" expression: "document.type != 'private' && document.type != +// 'internal'" Example (Data Manipulation): title: "Notification string" +// description: "Create a notification string with a timestamp." +// expression: "'New message received at ' + +// string(document.create_time)" The exact variables and functions that +// may be referenced within an expression are determined by the service +// that evaluates it. See the service documentation for additional +// information. type Expr struct { // Description: Optional. Description of the expression. This is a // longer text which describes the expression, e.g. when hovered over it @@ -941,192 +836,6 @@ func (s *ImportFile) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// LogConfig: Specifies what kind of log the caller must write -type LogConfig struct { - // CloudAudit: Cloud audit options. - CloudAudit *LogConfigCloudAuditOptions `json:"cloudAudit,omitempty"` - - // Counter: Counter options. - Counter *LogConfigCounterOptions `json:"counter,omitempty"` - - // DataAccess: Data access options. - DataAccess *LogConfigDataAccessOptions `json:"dataAccess,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CloudAudit") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CloudAudit") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *LogConfig) MarshalJSON() ([]byte, error) { - type NoMethod LogConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// LogConfigCloudAuditOptions: Write a Cloud Audit log -type LogConfigCloudAuditOptions struct { - // AuthorizationLoggingOptions: Information used by the Cloud Audit - // Logging pipeline. - AuthorizationLoggingOptions *AuthorizationLoggingOptions `json:"authorizationLoggingOptions,omitempty"` - - // LogName: The log_name to populate in the Cloud Audit Record. - LogName string `json:"logName,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AuthorizationLoggingOptions") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "AuthorizationLoggingOptions") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *LogConfigCloudAuditOptions) MarshalJSON() ([]byte, error) { - type NoMethod LogConfigCloudAuditOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// LogConfigCounterOptions: Increment a streamz counter with the -// specified metric and field names. -// -// Metric names should start with a '/', generally be lowercase-only, -// and end in "_count". Field names should not contain an initial slash. -// The actual exported metric names will have "/iam/policy" -// prepended. -// -// Field names correspond to IAM request parameters and field values are -// their respective values. -// -// Supported field names: - "authority", which is "[token]" if -// IAMContext.token is present, otherwise the value of -// IAMContext.authority_selector if present, and otherwise a -// representation of IAMContext.principal; or - "iam_principal", a -// representation of IAMContext.principal even if a token or authority -// selector is present; or - "" (empty string), resulting in a counter -// with no fields. -// -// Examples: counter { metric: "/debug_access_count" field: -// "iam_principal" } ==> increment counter -// /iam/policy/debug_access_count {iam_principal=[value of -// IAMContext.principal]} -type LogConfigCounterOptions struct { - // CustomFields: Custom fields. - CustomFields []*LogConfigCounterOptionsCustomField `json:"customFields,omitempty"` - - // Field: The field value to attribute. - Field string `json:"field,omitempty"` - - // Metric: The metric to update. - Metric string `json:"metric,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CustomFields") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CustomFields") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *LogConfigCounterOptions) MarshalJSON() ([]byte, error) { - type NoMethod LogConfigCounterOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// LogConfigCounterOptionsCustomField: Custom fields. These can be used -// to create a counter with arbitrary field/value pairs. See: -// go/rpcsp-custom-fields. -type LogConfigCounterOptionsCustomField struct { - // Name: Name is the field name. - Name string `json:"name,omitempty"` - - // Value: Value is the field value. It is important that in contrast to - // the CounterOptions.field, the value here is a constant that is not - // derived from the IAMContext. - Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *LogConfigCounterOptionsCustomField) MarshalJSON() ([]byte, error) { - type NoMethod LogConfigCounterOptionsCustomField - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// LogConfigDataAccessOptions: Write a Data Access (Gin) log -type LogConfigDataAccessOptions struct { - LogMode string `json:"logMode,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LogMode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LogMode") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *LogConfigDataAccessOptions) MarshalJSON() ([]byte, error) { - type NoMethod LogConfigDataAccessOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - type Manifest struct { // Config: Output only. The YAML configuration for this manifest. Config *ConfigFile `json:"config,omitempty"` @@ -1146,9 +855,7 @@ type Manifest struct { // Layout: Output only. The YAML layout for this manifest. Layout string `json:"layout,omitempty"` - // Name: Output only. - // - // The name of the manifest. + // Name: Output only. The name of the manifest. Name string `json:"name,omitempty"` // SelfLink: Output only. Self link for the manifest. @@ -1219,30 +926,20 @@ func (s *ManifestsListResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Operation: Represents an Operation resource. -// -// Google Compute Engine has three Operation resources: -// -// * +// Operation: Represents an Operation resource. Google Compute Engine +// has three Operation resources: * // [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) // * // [Regional](/compute/docs/reference/rest/{$api_version}/regionOperation // s) * // [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) -// -// Y -// ou can use an operation resource to manage asynchronous API requests. -// For more information, read Handling API responses. -// -// Operations can be global, regional or zonal. -// - For global operations, use the `globalOperations` resource. -// - For regional operations, use the `regionOperations` resource. -// - For zonal operations, use the `zonalOperations` resource. -// -// For more information, read Global, Regional, and Zonal Resources. -// (== resource_for {$api_version}.globalOperations ==) (== resource_for -// {$api_version}.regionOperations ==) (== resource_for -// {$api_version}.zoneOperations ==) +// You can use an operation resource to manage asynchronous API +// requests. For more information, read Handling API responses. +// Operations can be global, regional or zonal. - For global operations, +// use the `globalOperations` resource. - For regional operations, use +// the `regionOperations` resource. - For zonal operations, use the +// `zonalOperations` resource. For more information, read Global, +// Regional, and Zonal Resources. type Operation struct { // ClientOperationId: [Output Only] The value of `requestId` if you // provided it in the request. Not present otherwise. @@ -1312,6 +1009,11 @@ type Operation struct { // Status: [Output Only] The status of the operation, which can be one // of the following: `PENDING`, `RUNNING`, or `DONE`. + // + // Possible values: + // "PENDING" + // "RUNNING" + // "DONE" Status string `json:"status,omitempty"` // StatusMessage: [Output Only] An optional textual description of the @@ -1435,11 +1137,64 @@ type OperationWarnings struct { // Code: [Output Only] A warning code, if applicable. For example, // Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in // the response. + // + // Possible values: + // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was + // created. + // "NO_RESULTS_ON_PAGE" - No results are present on a particular list + // page. + // "UNREACHABLE" - A given scope cannot be reached. + // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is + // not assigned to an instance on the network. + // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL + // refers to an instance that does not exist. + // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance + // URL refers to an instance that is not on the same network as the + // route. + // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot + // ip forward. + // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not + // have a status of RUNNING. + // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an + // injected kernel, which is deprecated. + // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource + // that requires a TOS they have not accepted. + // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk + // that is larger than image size. + // "RESOURCE_NOT_DELETED" - One or more of the resources set to + // auto-delete could not be deleted because they were in use. + // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in + // instance group manager is valid as such, but its application does not + // make a lot of sense, because it allows only single instance in + // instance group. + // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to + // continue the process despite the mentioned error. + // "CLEANUP_FAILED" - Warning about failed cleanup of transient + // changes made by a failed operation. + // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been + // overridden. Deprecated unused field. + // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a + // resource is in use. + // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type + // "EXTERNAL_API_WARNING" - Warning that is present in an external api + // call + // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is + // ignored. + // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema + // are present + // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as experimental + // "DEPRECATED_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as deprecated + // "PARTIAL_SUCCESS" - Success is reported, but some results may be + // missing due to errors + // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a + // exceedingly large number of resources Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. - // For example: - // "data": [ { "key": "scope", "value": "zones/us-east1-d" } + // For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" + // } Data []*OperationWarningsData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning @@ -1545,50 +1300,37 @@ func (s *OperationsListResponse) MarshalJSON() ([]byte, error) { } // Policy: An Identity and Access Management (IAM) policy, which -// specifies access controls for Google Cloud resources. -// -// -// -// A `Policy` is a collection of `bindings`. A `binding` binds one or -// more `members` to a single `role`. Members can be user accounts, -// service accounts, Google groups, and domains (such as G Suite). A -// `role` is a named list of permissions; each `role` can be an IAM -// predefined role or a user-created custom role. -// -// For some types of Google Cloud resources, a `binding` can also -// specify a `condition`, which is a logical expression that allows -// access to a resource only if the expression evaluates to `true`. A -// condition can add constraints based on attributes of the request, the -// resource, or both. To learn which resources support conditions in -// their IAM policies, see the [IAM +// specifies access controls for Google Cloud resources. A `Policy` is a +// collection of `bindings`. A `binding` binds one or more `members` to +// a single `role`. Members can be user accounts, service accounts, +// Google groups, and domains (such as G Suite). A `role` is a named +// list of permissions; each `role` can be an IAM predefined role or a +// user-created custom role. For some types of Google Cloud resources, a +// `binding` can also specify a `condition`, which is a logical +// expression that allows access to a resource only if the expression +// evaluates to `true`. A condition can add constraints based on +// attributes of the request, the resource, or both. To learn which +// resources support conditions in their IAM policies, see the [IAM // documentation](https://cloud.google.com/iam/help/conditions/resource-p -// olicies). -// -// **JSON example:** -// -// { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", -// "members": [ "user:mike@example.com", "group:admins@example.com", +// olicies). **JSON example:** { "bindings": [ { "role": +// "roles/resourcemanager.organizationAdmin", "members": [ +// "user:mike@example.com", "group:admins@example.com", // "domain:google.com", // "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { // "role": "roles/resourcemanager.organizationViewer", "members": [ // "user:eve@example.com" ], "condition": { "title": "expirable access", // "description": "Does not grant access after Sep 2020", "expression": // "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], -// "etag": "BwWWja0YfJA=", "version": 3 } -// -// **YAML example:** -// -// bindings: - members: - user:mike@example.com - -// group:admins@example.com - domain:google.com - +// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - +// members: - user:mike@example.com - group:admins@example.com - +// domain:google.com - // serviceAccount:my-project-id@appspot.gserviceaccount.com role: // roles/resourcemanager.organizationAdmin - members: - // user:eve@example.com role: roles/resourcemanager.organizationViewer // condition: title: expirable access description: Does not grant access // after Sep 2020 expression: request.time < // timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: -// 3 -// -// For a description of IAM and its features, see the [IAM +// 3 For a description of IAM and its features, see the [IAM // documentation](https://cloud.google.com/iam/docs/). type Policy struct { // AuditConfigs: Specifies cloud audit logging configuration for this @@ -1607,50 +1349,28 @@ type Policy struct { // avoid race conditions: An `etag` is returned in the response to // `getIamPolicy`, and systems are expected to put that etag in the // request to `setIamPolicy` to ensure that their change will be applied - // to the same version of the policy. - // - // **Important:** If you use IAM Conditions, you must include the `etag` - // field whenever you call `setIamPolicy`. If you omit this field, then - // IAM allows you to overwrite a version `3` policy with a version `1` - // policy, and all of the conditions in the version `3` policy are lost. + // to the same version of the policy. **Important:** If you use IAM + // Conditions, you must include the `etag` field whenever you call + // `setIamPolicy`. If you omit this field, then IAM allows you to + // overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. Etag string `json:"etag,omitempty"` - IamOwned bool `json:"iamOwned,omitempty"` - - // Rules: If more than one rule is specified, the rules are applied in - // the following manner: - All matching LOG rules are always applied. - - // If any DENY/DENY_WITH_LOG rule matches, permission is denied. Logging - // will be applied if one or more matching rule requires logging. - - // Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is - // granted. Logging will be applied if one or more matching rule - // requires logging. - Otherwise, if no rule applies, permission is - // denied. - Rules []*Rule `json:"rules,omitempty"` - - // Version: Specifies the format of the policy. - // - // Valid values are `0`, `1`, and `3`. Requests that specify an invalid - // value are rejected. - // + // Version: Specifies the format of the policy. Valid values are `0`, + // `1`, and `3`. Requests that specify an invalid value are rejected. // Any operation that affects conditional role bindings must specify - // version `3`. This requirement applies to the following operations: - // - // * Getting a policy that includes a conditional role binding * Adding - // a conditional role binding to a policy * Changing a conditional role + // version `3`. This requirement applies to the following operations: * + // Getting a policy that includes a conditional role binding * Adding a + // conditional role binding to a policy * Changing a conditional role // binding in a policy * Removing any role binding, with or without a - // condition, from a policy that includes conditions - // - // **Important:** If you use IAM Conditions, you must include the `etag` - // field whenever you call `setIamPolicy`. If you omit this field, then - // IAM allows you to overwrite a version `3` policy with a version `1` - // policy, and all of the conditions in the version `3` policy are - // lost. - // - // If a policy does not include any conditions, operations on that - // policy may specify any valid version or leave the field unset. - // - // To learn which resources support conditions in their IAM policies, - // see the [IAM + // condition, from a policy that includes conditions **Important:** If + // you use IAM Conditions, you must include the `etag` field whenever + // you call `setIamPolicy`. If you omit this field, then IAM allows you + // to overwrite a version `3` policy with a version `1` policy, and all + // of the conditions in the version `3` policy are lost. If a policy + // does not include any conditions, operations on that policy may + // specify any valid version or leave the field unset. To learn which + // resources support conditions in their IAM policies, see the [IAM // documentation](https://cloud.google.com/iam/help/conditions/resource-p // olicies). Version int64 `json:"version,omitempty"` @@ -1758,11 +1478,64 @@ type ResourceWarnings struct { // Code: [Output Only] A warning code, if applicable. For example, // Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in // the response. + // + // Possible values: + // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was + // created. + // "NO_RESULTS_ON_PAGE" - No results are present on a particular list + // page. + // "UNREACHABLE" - A given scope cannot be reached. + // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is + // not assigned to an instance on the network. + // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL + // refers to an instance that does not exist. + // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance + // URL refers to an instance that is not on the same network as the + // route. + // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot + // ip forward. + // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not + // have a status of RUNNING. + // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an + // injected kernel, which is deprecated. + // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource + // that requires a TOS they have not accepted. + // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk + // that is larger than image size. + // "RESOURCE_NOT_DELETED" - One or more of the resources set to + // auto-delete could not be deleted because they were in use. + // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in + // instance group manager is valid as such, but its application does not + // make a lot of sense, because it allows only single instance in + // instance group. + // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to + // continue the process despite the mentioned error. + // "CLEANUP_FAILED" - Warning about failed cleanup of transient + // changes made by a failed operation. + // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been + // overridden. Deprecated unused field. + // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a + // resource is in use. + // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type + // "EXTERNAL_API_WARNING" - Warning that is present in an external api + // call + // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is + // ignored. + // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema + // are present + // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as experimental + // "DEPRECATED_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as deprecated + // "PARTIAL_SUCCESS" - Success is reported, but some results may be + // missing due to errors + // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a + // exceedingly large number of resources Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. - // For example: - // "data": [ { "key": "scope", "value": "zones/us-east1-d" } + // For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" + // } Data []*ResourceWarningsData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning @@ -1872,6 +1645,16 @@ type ResourceUpdate struct { // Intent: Output only. The intent of the resource: `PREVIEW`, `UPDATE`, // or `CANCEL`. + // + // Possible values: + // "CREATE_OR_ACQUIRE" - The resource is scheduled to be created, or + // if it already exists, acquired. + // "DELETE" - The resource is scheduled to be deleted. + // "ACQUIRE" - The resource is scheduled to be acquired. + // "UPDATE" - The resource is scheduled to be updated via the UPDATE + // method. + // "ABANDON" - The resource is scheduled to be abandoned. + // "CREATE" - The resource is scheduled to be created. Intent string `json:"intent,omitempty"` // Manifest: Output only. URL of the manifest representing the update @@ -1884,6 +1667,13 @@ type ResourceUpdate struct { Properties string `json:"properties,omitempty"` // State: Output only. The state of the resource. + // + // Possible values: + // "PENDING" - There are changes pending for this resource. + // "IN_PROGRESS" - The service is executing changes on the resource. + // "IN_PREVIEW" - The service is previewing changes on the resource. + // "FAILED" - The service has failed to change the resource. + // "ABORTED" - The service has aborted trying to change the resource. State string `json:"state,omitempty"` // Warnings: Output only. If warning messages are generated during @@ -1981,11 +1771,64 @@ type ResourceUpdateWarnings struct { // Code: [Output Only] A warning code, if applicable. For example, // Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in // the response. + // + // Possible values: + // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was + // created. + // "NO_RESULTS_ON_PAGE" - No results are present on a particular list + // page. + // "UNREACHABLE" - A given scope cannot be reached. + // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is + // not assigned to an instance on the network. + // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL + // refers to an instance that does not exist. + // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance + // URL refers to an instance that is not on the same network as the + // route. + // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot + // ip forward. + // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not + // have a status of RUNNING. + // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an + // injected kernel, which is deprecated. + // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource + // that requires a TOS they have not accepted. + // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk + // that is larger than image size. + // "RESOURCE_NOT_DELETED" - One or more of the resources set to + // auto-delete could not be deleted because they were in use. + // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in + // instance group manager is valid as such, but its application does not + // make a lot of sense, because it allows only single instance in + // instance group. + // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to + // continue the process despite the mentioned error. + // "CLEANUP_FAILED" - Warning about failed cleanup of transient + // changes made by a failed operation. + // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been + // overridden. Deprecated unused field. + // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a + // resource is in use. + // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type + // "EXTERNAL_API_WARNING" - Warning that is present in an external api + // call + // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is + // ignored. + // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema + // are present + // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as experimental + // "DEPRECATED_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as deprecated + // "PARTIAL_SUCCESS" - Success is reported, but some results may be + // missing due to errors + // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a + // exceedingly large number of resources Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. - // For example: - // "data": [ { "key": "scope", "value": "zones/us-east1-d" } + // For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" + // } Data []*ResourceUpdateWarningsData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning @@ -2089,59 +1932,6 @@ func (s *ResourcesListResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Rule: A rule to be applied in a Policy. -type Rule struct { - // Action: Required - Action string `json:"action,omitempty"` - - // Conditions: Additional restrictions that must be met. All conditions - // must pass for the rule to match. - Conditions []*Condition `json:"conditions,omitempty"` - - // Description: Human-readable description of the rule. - Description string `json:"description,omitempty"` - - // Ins: If one or more 'in' clauses are specified, the rule matches if - // the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries. - Ins []string `json:"ins,omitempty"` - - // LogConfigs: The config returned to callers of - // tech.iam.IAM.CheckPolicy for any entries that match the LOG action. - LogConfigs []*LogConfig `json:"logConfigs,omitempty"` - - // NotIns: If one or more 'not_in' clauses are specified, the rule - // matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the - // entries. - NotIns []string `json:"notIns,omitempty"` - - // Permissions: A permission is a string of form '..' (e.g., - // 'storage.buckets.list'). A value of '*' matches all permissions, and - // a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs. - Permissions []string `json:"permissions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Action") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Action") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *Rule) MarshalJSON() ([]byte, error) { - type NoMethod Rule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - type TargetConfiguration struct { // Config: The configuration to use for this deployment. Config *ConfigFile `json:"config,omitempty"` @@ -2361,7 +2151,7 @@ func (c *DeploymentsCancelPreviewCall) Header() http.Header { func (c *DeploymentsCancelPreviewCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2374,7 +2164,7 @@ func (c *DeploymentsCancelPreviewCall) doRequest(alt string) (*http.Response, er reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}/cancelPreview") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/cancelPreview") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -2427,6 +2217,7 @@ func (c *DeploymentsCancelPreviewCall) Do(opts ...googleapi.CallOption) (*Operat return ret, nil // { // "description": "Cancels and removes the preview currently associated with the deployment.", + // "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/cancelPreview", // "httpMethod": "POST", // "id": "deploymentmanager.deployments.cancelPreview", // "parameterOrder": [ @@ -2449,7 +2240,7 @@ func (c *DeploymentsCancelPreviewCall) Do(opts ...googleapi.CallOption) (*Operat // "type": "string" // } // }, - // "path": "{project}/global/deployments/{deployment}/cancelPreview", + // "path": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/cancelPreview", // "request": { // "$ref": "DeploymentsCancelPreviewRequest" // }, @@ -2488,8 +2279,8 @@ func (r *DeploymentsService) Delete(project string, deployment string) *Deployme // policy to use for deleting resources. // // Possible values: -// "ABANDON" // "DELETE" (default) +// "ABANDON" func (c *DeploymentsDeleteCall) DeletePolicy(deletePolicy string) *DeploymentsDeleteCall { c.urlParams_.Set("deletePolicy", deletePolicy) return c @@ -2522,7 +2313,7 @@ func (c *DeploymentsDeleteCall) Header() http.Header { func (c *DeploymentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2530,7 +2321,7 @@ func (c *DeploymentsDeleteCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -2583,6 +2374,7 @@ func (c *DeploymentsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, er return ret, nil // { // "description": "Deletes a deployment and all of the resources in the deployment.", + // "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}", // "httpMethod": "DELETE", // "id": "deploymentmanager.deployments.delete", // "parameterOrder": [ @@ -2594,8 +2386,8 @@ func (c *DeploymentsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, er // "default": "DELETE", // "description": "Sets the policy to use for deleting resources.", // "enum": [ - // "ABANDON", - // "DELETE" + // "DELETE", + // "ABANDON" // ], // "enumDescriptions": [ // "", @@ -2618,7 +2410,7 @@ func (c *DeploymentsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, er // "type": "string" // } // }, - // "path": "{project}/global/deployments/{deployment}", + // "path": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}", // "response": { // "$ref": "Operation" // }, @@ -2687,7 +2479,7 @@ func (c *DeploymentsGetCall) Header() http.Header { func (c *DeploymentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2698,7 +2490,7 @@ func (c *DeploymentsGetCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -2751,6 +2543,7 @@ func (c *DeploymentsGetCall) Do(opts ...googleapi.CallOption) (*Deployment, erro return ret, nil // { // "description": "Gets information about a specific deployment.", + // "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}", // "httpMethod": "GET", // "id": "deploymentmanager.deployments.get", // "parameterOrder": [ @@ -2773,7 +2566,7 @@ func (c *DeploymentsGetCall) Do(opts ...googleapi.CallOption) (*Deployment, erro // "type": "string" // } // }, - // "path": "{project}/global/deployments/{deployment}", + // "path": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}", // "response": { // "$ref": "Deployment" // }, @@ -2808,6 +2601,13 @@ func (r *DeploymentsService) GetIamPolicy(project string, resource string) *Depl return c } +// OptionsRequestedPolicyVersion sets the optional parameter +// "optionsRequestedPolicyVersion": Requested IAM Policy version. +func (c *DeploymentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *DeploymentsGetIamPolicyCall { + c.urlParams_.Set("optionsRequestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -2845,7 +2645,7 @@ func (c *DeploymentsGetIamPolicyCall) Header() http.Header { func (c *DeploymentsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2856,7 +2656,7 @@ func (c *DeploymentsGetIamPolicyCall) doRequest(alt string) (*http.Response, err var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{resource}/getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2/projects/{project}/global/deployments/{resource}/getIamPolicy") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -2909,6 +2709,7 @@ func (c *DeploymentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, return ret, nil // { // "description": "Gets the access control policy for a resource. May be empty if no such policy or resource exists.", + // "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments/{resource}/getIamPolicy", // "httpMethod": "GET", // "id": "deploymentmanager.deployments.getIamPolicy", // "parameterOrder": [ @@ -2916,6 +2717,12 @@ func (c *DeploymentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, // "resource" // ], // "parameters": { + // "optionsRequestedPolicyVersion": { + // "description": "Requested IAM Policy version.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, // "project": { // "description": "Project ID for this request.", // "location": "path", @@ -2931,7 +2738,7 @@ func (c *DeploymentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, // "type": "string" // } // }, - // "path": "{project}/global/deployments/{resource}/getIamPolicy", + // "path": "deploymentmanager/v2/projects/{project}/global/deployments/{resource}/getIamPolicy", // "response": { // "$ref": "Policy" // }, @@ -2967,8 +2774,8 @@ func (r *DeploymentsService) Insert(project string, deployment *Deployment) *Dep // policy to use for creating new resources. // // Possible values: -// "ACQUIRE" // "CREATE_OR_ACQUIRE" (default) +// "ACQUIRE" func (c *DeploymentsInsertCall) CreatePolicy(createPolicy string) *DeploymentsInsertCall { c.urlParams_.Set("createPolicy", createPolicy) return c @@ -3015,7 +2822,7 @@ func (c *DeploymentsInsertCall) Header() http.Header { func (c *DeploymentsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3028,7 +2835,7 @@ func (c *DeploymentsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2/projects/{project}/global/deployments") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -3080,6 +2887,7 @@ func (c *DeploymentsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, er return ret, nil // { // "description": "Creates a deployment and all of the resources described by the deployment manifest.", + // "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments", // "httpMethod": "POST", // "id": "deploymentmanager.deployments.insert", // "parameterOrder": [ @@ -3090,8 +2898,8 @@ func (c *DeploymentsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, er // "default": "CREATE_OR_ACQUIRE", // "description": "Sets the policy to use for creating new resources.", // "enum": [ - // "ACQUIRE", - // "CREATE_OR_ACQUIRE" + // "CREATE_OR_ACQUIRE", + // "ACQUIRE" // ], // "enumDescriptions": [ // "", @@ -3113,7 +2921,7 @@ func (c *DeploymentsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, er // "type": "string" // } // }, - // "path": "{project}/global/deployments", + // "path": "deploymentmanager/v2/projects/{project}/global/deployments", // "request": { // "$ref": "Deployment" // }, @@ -3151,24 +2959,19 @@ func (r *DeploymentsService) List(project string) *DeploymentsListCall { // the field name, a comparison operator, and the value that you want to // use for filtering. The value must be a string, a number, or a // boolean. The comparison operator must be either `=`, `!=`, `>`, or -// `<`. -// -// For example, if you are filtering Compute Engine instances, you can -// exclude instances named `example-instance` by specifying `name != -// example-instance`. -// -// You can also filter nested fields. For example, you could specify -// `scheduling.automaticRestart = false` to include instances only if -// they are not scheduled for automatic restarts. You can use filtering -// on nested fields to filter based on resource labels. -// -// To filter on multiple expressions, provide each separate expression -// within parentheses. For example: ``` (scheduling.automaticRestart = -// true) (cpuPlatform = "Intel Skylake") ``` By default, each expression -// is an `AND` expression. However, you can include `AND` and `OR` -// expressions explicitly. For example: ``` (cpuPlatform = "Intel -// Skylake") OR (cpuPlatform = "Intel Broadwell") AND -// (scheduling.automaticRestart = true) ``` +// `<`. For example, if you are filtering Compute Engine instances, you +// can exclude instances named `example-instance` by specifying `name != +// example-instance`. You can also filter nested fields. For example, +// you could specify `scheduling.automaticRestart = false` to include +// instances only if they are not scheduled for automatic restarts. You +// can use filtering on nested fields to filter based on resource +// labels. To filter on multiple expressions, provide each separate +// expression within parentheses. For example: ``` +// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") +// ``` By default, each expression is an `AND` expression. However, you +// can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") +// AND (scheduling.automaticRestart = true) ``` func (c *DeploymentsListCall) Filter(filter string) *DeploymentsListCall { c.urlParams_.Set("filter", filter) return c @@ -3187,17 +2990,13 @@ func (c *DeploymentsListCall) MaxResults(maxResults int64) *DeploymentsListCall // OrderBy sets the optional parameter "orderBy": Sorts list results by // a certain order. By default, results are returned in alphanumerical -// order based on the resource name. -// -// You can also sort results in descending order based on the creation -// timestamp using `orderBy="creationTimestamp desc". This sorts -// results based on the `creationTimestamp` field in reverse -// chronological order (newest result first). Use this to sort resources -// like operations so that the newest operation is returned -// first. -// -// Currently, only sorting by `name` or `creationTimestamp desc` is -// supported. +// order based on the resource name. You can also sort results in +// descending order based on the creation timestamp using +// `orderBy="creationTimestamp desc". This sorts results based on the +// `creationTimestamp` field in reverse chronological order (newest +// result first). Use this to sort resources like operations so that the +// newest operation is returned first. Currently, only sorting by `name` +// or `creationTimestamp desc` is supported. func (c *DeploymentsListCall) OrderBy(orderBy string) *DeploymentsListCall { c.urlParams_.Set("orderBy", orderBy) return c @@ -3211,6 +3010,15 @@ func (c *DeploymentsListCall) PageToken(pageToken string) *DeploymentsListCall { return c } +// ReturnPartialSuccess sets the optional parameter +// "returnPartialSuccess": Opt-in for partial success behavior which +// provides partial results in case of failure. The default value is +// false and the logic is the same as today. +func (c *DeploymentsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *DeploymentsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -3248,7 +3056,7 @@ func (c *DeploymentsListCall) Header() http.Header { func (c *DeploymentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3259,7 +3067,7 @@ func (c *DeploymentsListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2/projects/{project}/global/deployments") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -3311,6 +3119,7 @@ func (c *DeploymentsListCall) Do(opts ...googleapi.CallOption) (*DeploymentsList return ret, nil // { // "description": "Lists all deployments for a given project.", + // "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments", // "httpMethod": "GET", // "id": "deploymentmanager.deployments.list", // "parameterOrder": [ @@ -3318,7 +3127,7 @@ func (c *DeploymentsListCall) Do(opts ...googleapi.CallOption) (*DeploymentsList // ], // "parameters": { // "filter": { - // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", // "location": "query", // "type": "string" // }, @@ -3331,7 +3140,7 @@ func (c *DeploymentsListCall) Do(opts ...googleapi.CallOption) (*DeploymentsList // "type": "integer" // }, // "orderBy": { - // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", // "location": "query", // "type": "string" // }, @@ -3346,9 +3155,14 @@ func (c *DeploymentsListCall) Do(opts ...googleapi.CallOption) (*DeploymentsList // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "returnPartialSuccess": { + // "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.", + // "location": "query", + // "type": "boolean" // } // }, - // "path": "{project}/global/deployments", + // "path": "deploymentmanager/v2/projects/{project}/global/deployments", // "response": { // "$ref": "DeploymentsListResponse" // }, @@ -3409,8 +3223,8 @@ func (r *DeploymentsService) Patch(project string, deployment string, deployment // policy to use for creating new resources. // // Possible values: -// "ACQUIRE" // "CREATE_OR_ACQUIRE" (default) +// "ACQUIRE" func (c *DeploymentsPatchCall) CreatePolicy(createPolicy string) *DeploymentsPatchCall { c.urlParams_.Set("createPolicy", createPolicy) return c @@ -3420,8 +3234,8 @@ func (c *DeploymentsPatchCall) CreatePolicy(createPolicy string) *DeploymentsPat // policy to use for deleting resources. // // Possible values: -// "ABANDON" // "DELETE" (default) +// "ABANDON" func (c *DeploymentsPatchCall) DeletePolicy(deletePolicy string) *DeploymentsPatchCall { c.urlParams_.Set("deletePolicy", deletePolicy) return c @@ -3470,7 +3284,7 @@ func (c *DeploymentsPatchCall) Header() http.Header { func (c *DeploymentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3483,7 +3297,7 @@ func (c *DeploymentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -3536,6 +3350,7 @@ func (c *DeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, err return ret, nil // { // "description": "Patches a deployment and all of the resources described by the deployment manifest.", + // "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}", // "httpMethod": "PATCH", // "id": "deploymentmanager.deployments.patch", // "parameterOrder": [ @@ -3547,8 +3362,8 @@ func (c *DeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, err // "default": "CREATE_OR_ACQUIRE", // "description": "Sets the policy to use for creating new resources.", // "enum": [ - // "ACQUIRE", - // "CREATE_OR_ACQUIRE" + // "CREATE_OR_ACQUIRE", + // "ACQUIRE" // ], // "enumDescriptions": [ // "", @@ -3561,8 +3376,8 @@ func (c *DeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, err // "default": "DELETE", // "description": "Sets the policy to use for deleting resources.", // "enum": [ - // "ABANDON", - // "DELETE" + // "DELETE", + // "ABANDON" // ], // "enumDescriptions": [ // "", @@ -3592,7 +3407,7 @@ func (c *DeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, err // "type": "string" // } // }, - // "path": "{project}/global/deployments/{deployment}", + // "path": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}", // "request": { // "$ref": "Deployment" // }, @@ -3656,7 +3471,7 @@ func (c *DeploymentsSetIamPolicyCall) Header() http.Header { func (c *DeploymentsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3669,7 +3484,7 @@ func (c *DeploymentsSetIamPolicyCall) doRequest(alt string) (*http.Response, err reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{resource}/setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2/projects/{project}/global/deployments/{resource}/setIamPolicy") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -3722,6 +3537,7 @@ func (c *DeploymentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, return ret, nil // { // "description": "Sets the access control policy on the specified resource. Replaces any existing policy.", + // "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments/{resource}/setIamPolicy", // "httpMethod": "POST", // "id": "deploymentmanager.deployments.setIamPolicy", // "parameterOrder": [ @@ -3744,7 +3560,7 @@ func (c *DeploymentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, // "type": "string" // } // }, - // "path": "{project}/global/deployments/{resource}/setIamPolicy", + // "path": "deploymentmanager/v2/projects/{project}/global/deployments/{resource}/setIamPolicy", // "request": { // "$ref": "GlobalSetPolicyRequest" // }, @@ -3809,7 +3625,7 @@ func (c *DeploymentsStopCall) Header() http.Header { func (c *DeploymentsStopCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3822,7 +3638,7 @@ func (c *DeploymentsStopCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}/stop") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/stop") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -3875,6 +3691,7 @@ func (c *DeploymentsStopCall) Do(opts ...googleapi.CallOption) (*Operation, erro return ret, nil // { // "description": "Stops an ongoing operation. This does not roll back any work that has already been completed, but prevents any new work from being started.", + // "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/stop", // "httpMethod": "POST", // "id": "deploymentmanager.deployments.stop", // "parameterOrder": [ @@ -3897,7 +3714,7 @@ func (c *DeploymentsStopCall) Do(opts ...googleapi.CallOption) (*Operation, erro // "type": "string" // } // }, - // "path": "{project}/global/deployments/{deployment}/stop", + // "path": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/stop", // "request": { // "$ref": "DeploymentsStopRequest" // }, @@ -3961,7 +3778,7 @@ func (c *DeploymentsTestIamPermissionsCall) Header() http.Header { func (c *DeploymentsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3974,7 +3791,7 @@ func (c *DeploymentsTestIamPermissionsCall) doRequest(alt string) (*http.Respons reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{resource}/testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2/projects/{project}/global/deployments/{resource}/testIamPermissions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -4027,6 +3844,7 @@ func (c *DeploymentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*T return ret, nil // { // "description": "Returns permissions that a caller has on the specified resource.", + // "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments/{resource}/testIamPermissions", // "httpMethod": "POST", // "id": "deploymentmanager.deployments.testIamPermissions", // "parameterOrder": [ @@ -4049,7 +3867,7 @@ func (c *DeploymentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*T // "type": "string" // } // }, - // "path": "{project}/global/deployments/{resource}/testIamPermissions", + // "path": "deploymentmanager/v2/projects/{project}/global/deployments/{resource}/testIamPermissions", // "request": { // "$ref": "TestPermissionsRequest" // }, @@ -4090,8 +3908,8 @@ func (r *DeploymentsService) Update(project string, deployment string, deploymen // policy to use for creating new resources. // // Possible values: -// "ACQUIRE" // "CREATE_OR_ACQUIRE" (default) +// "ACQUIRE" func (c *DeploymentsUpdateCall) CreatePolicy(createPolicy string) *DeploymentsUpdateCall { c.urlParams_.Set("createPolicy", createPolicy) return c @@ -4101,8 +3919,8 @@ func (c *DeploymentsUpdateCall) CreatePolicy(createPolicy string) *DeploymentsUp // policy to use for deleting resources. // // Possible values: -// "ABANDON" // "DELETE" (default) +// "ABANDON" func (c *DeploymentsUpdateCall) DeletePolicy(deletePolicy string) *DeploymentsUpdateCall { c.urlParams_.Set("deletePolicy", deletePolicy) return c @@ -4151,7 +3969,7 @@ func (c *DeploymentsUpdateCall) Header() http.Header { func (c *DeploymentsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4164,7 +3982,7 @@ func (c *DeploymentsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -4217,6 +4035,7 @@ func (c *DeploymentsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, er return ret, nil // { // "description": "Updates a deployment and all of the resources described by the deployment manifest.", + // "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}", // "httpMethod": "PUT", // "id": "deploymentmanager.deployments.update", // "parameterOrder": [ @@ -4228,8 +4047,8 @@ func (c *DeploymentsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, er // "default": "CREATE_OR_ACQUIRE", // "description": "Sets the policy to use for creating new resources.", // "enum": [ - // "ACQUIRE", - // "CREATE_OR_ACQUIRE" + // "CREATE_OR_ACQUIRE", + // "ACQUIRE" // ], // "enumDescriptions": [ // "", @@ -4242,8 +4061,8 @@ func (c *DeploymentsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, er // "default": "DELETE", // "description": "Sets the policy to use for deleting resources.", // "enum": [ - // "ABANDON", - // "DELETE" + // "DELETE", + // "ABANDON" // ], // "enumDescriptions": [ // "", @@ -4273,7 +4092,7 @@ func (c *DeploymentsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, er // "type": "string" // } // }, - // "path": "{project}/global/deployments/{deployment}", + // "path": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}", // "request": { // "$ref": "Deployment" // }, @@ -4347,7 +4166,7 @@ func (c *ManifestsGetCall) Header() http.Header { func (c *ManifestsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4358,7 +4177,7 @@ func (c *ManifestsGetCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}/manifests/{manifest}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/manifests/{manifest}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -4412,6 +4231,7 @@ func (c *ManifestsGetCall) Do(opts ...googleapi.CallOption) (*Manifest, error) { return ret, nil // { // "description": "Gets information about a specific manifest.", + // "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/manifests/{manifest}", // "httpMethod": "GET", // "id": "deploymentmanager.manifests.get", // "parameterOrder": [ @@ -4442,7 +4262,7 @@ func (c *ManifestsGetCall) Do(opts ...googleapi.CallOption) (*Manifest, error) { // "type": "string" // } // }, - // "path": "{project}/global/deployments/{deployment}/manifests/{manifest}", + // "path": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/manifests/{manifest}", // "response": { // "$ref": "Manifest" // }, @@ -4481,24 +4301,19 @@ func (r *ManifestsService) List(project string, deployment string) *ManifestsLis // the field name, a comparison operator, and the value that you want to // use for filtering. The value must be a string, a number, or a // boolean. The comparison operator must be either `=`, `!=`, `>`, or -// `<`. -// -// For example, if you are filtering Compute Engine instances, you can -// exclude instances named `example-instance` by specifying `name != -// example-instance`. -// -// You can also filter nested fields. For example, you could specify -// `scheduling.automaticRestart = false` to include instances only if -// they are not scheduled for automatic restarts. You can use filtering -// on nested fields to filter based on resource labels. -// -// To filter on multiple expressions, provide each separate expression -// within parentheses. For example: ``` (scheduling.automaticRestart = -// true) (cpuPlatform = "Intel Skylake") ``` By default, each expression -// is an `AND` expression. However, you can include `AND` and `OR` -// expressions explicitly. For example: ``` (cpuPlatform = "Intel -// Skylake") OR (cpuPlatform = "Intel Broadwell") AND -// (scheduling.automaticRestart = true) ``` +// `<`. For example, if you are filtering Compute Engine instances, you +// can exclude instances named `example-instance` by specifying `name != +// example-instance`. You can also filter nested fields. For example, +// you could specify `scheduling.automaticRestart = false` to include +// instances only if they are not scheduled for automatic restarts. You +// can use filtering on nested fields to filter based on resource +// labels. To filter on multiple expressions, provide each separate +// expression within parentheses. For example: ``` +// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") +// ``` By default, each expression is an `AND` expression. However, you +// can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") +// AND (scheduling.automaticRestart = true) ``` func (c *ManifestsListCall) Filter(filter string) *ManifestsListCall { c.urlParams_.Set("filter", filter) return c @@ -4517,17 +4332,13 @@ func (c *ManifestsListCall) MaxResults(maxResults int64) *ManifestsListCall { // OrderBy sets the optional parameter "orderBy": Sorts list results by // a certain order. By default, results are returned in alphanumerical -// order based on the resource name. -// -// You can also sort results in descending order based on the creation -// timestamp using `orderBy="creationTimestamp desc". This sorts -// results based on the `creationTimestamp` field in reverse -// chronological order (newest result first). Use this to sort resources -// like operations so that the newest operation is returned -// first. -// -// Currently, only sorting by `name` or `creationTimestamp desc` is -// supported. +// order based on the resource name. You can also sort results in +// descending order based on the creation timestamp using +// `orderBy="creationTimestamp desc". This sorts results based on the +// `creationTimestamp` field in reverse chronological order (newest +// result first). Use this to sort resources like operations so that the +// newest operation is returned first. Currently, only sorting by `name` +// or `creationTimestamp desc` is supported. func (c *ManifestsListCall) OrderBy(orderBy string) *ManifestsListCall { c.urlParams_.Set("orderBy", orderBy) return c @@ -4541,6 +4352,15 @@ func (c *ManifestsListCall) PageToken(pageToken string) *ManifestsListCall { return c } +// ReturnPartialSuccess sets the optional parameter +// "returnPartialSuccess": Opt-in for partial success behavior which +// provides partial results in case of failure. The default value is +// false and the logic is the same as today. +func (c *ManifestsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ManifestsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -4578,7 +4398,7 @@ func (c *ManifestsListCall) Header() http.Header { func (c *ManifestsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4589,7 +4409,7 @@ func (c *ManifestsListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}/manifests") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/manifests") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -4642,6 +4462,7 @@ func (c *ManifestsListCall) Do(opts ...googleapi.CallOption) (*ManifestsListResp return ret, nil // { // "description": "Lists all manifests for a given deployment.", + // "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/manifests", // "httpMethod": "GET", // "id": "deploymentmanager.manifests.list", // "parameterOrder": [ @@ -4657,7 +4478,7 @@ func (c *ManifestsListCall) Do(opts ...googleapi.CallOption) (*ManifestsListResp // "type": "string" // }, // "filter": { - // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", // "location": "query", // "type": "string" // }, @@ -4670,7 +4491,7 @@ func (c *ManifestsListCall) Do(opts ...googleapi.CallOption) (*ManifestsListResp // "type": "integer" // }, // "orderBy": { - // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", // "location": "query", // "type": "string" // }, @@ -4685,9 +4506,14 @@ func (c *ManifestsListCall) Do(opts ...googleapi.CallOption) (*ManifestsListResp // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "returnPartialSuccess": { + // "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.", + // "location": "query", + // "type": "boolean" // } // }, - // "path": "{project}/global/deployments/{deployment}/manifests", + // "path": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/manifests", // "response": { // "$ref": "ManifestsListResponse" // }, @@ -4779,7 +4605,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4790,7 +4616,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/operations/{operation}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2/projects/{project}/global/operations/{operation}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -4843,6 +4669,7 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) return ret, nil // { // "description": "Gets information about a specific operation.", + // "flatPath": "deploymentmanager/v2/projects/{project}/global/operations/{operation}", // "httpMethod": "GET", // "id": "deploymentmanager.operations.get", // "parameterOrder": [ @@ -4864,7 +4691,7 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) // "type": "string" // } // }, - // "path": "{project}/global/operations/{operation}", + // "path": "deploymentmanager/v2/projects/{project}/global/operations/{operation}", // "response": { // "$ref": "Operation" // }, @@ -4901,24 +4728,19 @@ func (r *OperationsService) List(project string) *OperationsListCall { // the field name, a comparison operator, and the value that you want to // use for filtering. The value must be a string, a number, or a // boolean. The comparison operator must be either `=`, `!=`, `>`, or -// `<`. -// -// For example, if you are filtering Compute Engine instances, you can -// exclude instances named `example-instance` by specifying `name != -// example-instance`. -// -// You can also filter nested fields. For example, you could specify -// `scheduling.automaticRestart = false` to include instances only if -// they are not scheduled for automatic restarts. You can use filtering -// on nested fields to filter based on resource labels. -// -// To filter on multiple expressions, provide each separate expression -// within parentheses. For example: ``` (scheduling.automaticRestart = -// true) (cpuPlatform = "Intel Skylake") ``` By default, each expression -// is an `AND` expression. However, you can include `AND` and `OR` -// expressions explicitly. For example: ``` (cpuPlatform = "Intel -// Skylake") OR (cpuPlatform = "Intel Broadwell") AND -// (scheduling.automaticRestart = true) ``` +// `<`. For example, if you are filtering Compute Engine instances, you +// can exclude instances named `example-instance` by specifying `name != +// example-instance`. You can also filter nested fields. For example, +// you could specify `scheduling.automaticRestart = false` to include +// instances only if they are not scheduled for automatic restarts. You +// can use filtering on nested fields to filter based on resource +// labels. To filter on multiple expressions, provide each separate +// expression within parentheses. For example: ``` +// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") +// ``` By default, each expression is an `AND` expression. However, you +// can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") +// AND (scheduling.automaticRestart = true) ``` func (c *OperationsListCall) Filter(filter string) *OperationsListCall { c.urlParams_.Set("filter", filter) return c @@ -4937,17 +4759,13 @@ func (c *OperationsListCall) MaxResults(maxResults int64) *OperationsListCall { // OrderBy sets the optional parameter "orderBy": Sorts list results by // a certain order. By default, results are returned in alphanumerical -// order based on the resource name. -// -// You can also sort results in descending order based on the creation -// timestamp using `orderBy="creationTimestamp desc". This sorts -// results based on the `creationTimestamp` field in reverse -// chronological order (newest result first). Use this to sort resources -// like operations so that the newest operation is returned -// first. -// -// Currently, only sorting by `name` or `creationTimestamp desc` is -// supported. +// order based on the resource name. You can also sort results in +// descending order based on the creation timestamp using +// `orderBy="creationTimestamp desc". This sorts results based on the +// `creationTimestamp` field in reverse chronological order (newest +// result first). Use this to sort resources like operations so that the +// newest operation is returned first. Currently, only sorting by `name` +// or `creationTimestamp desc` is supported. func (c *OperationsListCall) OrderBy(orderBy string) *OperationsListCall { c.urlParams_.Set("orderBy", orderBy) return c @@ -4961,6 +4779,15 @@ func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall { return c } +// ReturnPartialSuccess sets the optional parameter +// "returnPartialSuccess": Opt-in for partial success behavior which +// provides partial results in case of failure. The default value is +// false and the logic is the same as today. +func (c *OperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *OperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -4998,7 +4825,7 @@ func (c *OperationsListCall) Header() http.Header { func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5009,7 +4836,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2/projects/{project}/global/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -5061,6 +4888,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*OperationsListRe return ret, nil // { // "description": "Lists all operations for a project.", + // "flatPath": "deploymentmanager/v2/projects/{project}/global/operations", // "httpMethod": "GET", // "id": "deploymentmanager.operations.list", // "parameterOrder": [ @@ -5068,7 +4896,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*OperationsListRe // ], // "parameters": { // "filter": { - // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", // "location": "query", // "type": "string" // }, @@ -5081,7 +4909,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*OperationsListRe // "type": "integer" // }, // "orderBy": { - // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", // "location": "query", // "type": "string" // }, @@ -5096,9 +4924,14 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*OperationsListRe // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "returnPartialSuccess": { + // "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.", + // "location": "query", + // "type": "boolean" // } // }, - // "path": "{project}/global/operations", + // "path": "deploymentmanager/v2/projects/{project}/global/operations", // "response": { // "$ref": "OperationsListResponse" // }, @@ -5192,7 +5025,7 @@ func (c *ResourcesGetCall) Header() http.Header { func (c *ResourcesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5203,7 +5036,7 @@ func (c *ResourcesGetCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}/resources/{resource}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/resources/{resource}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -5257,6 +5090,7 @@ func (c *ResourcesGetCall) Do(opts ...googleapi.CallOption) (*Resource, error) { return ret, nil // { // "description": "Gets information about a single resource.", + // "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/resources/{resource}", // "httpMethod": "GET", // "id": "deploymentmanager.resources.get", // "parameterOrder": [ @@ -5286,7 +5120,7 @@ func (c *ResourcesGetCall) Do(opts ...googleapi.CallOption) (*Resource, error) { // "type": "string" // } // }, - // "path": "{project}/global/deployments/{deployment}/resources/{resource}", + // "path": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/resources/{resource}", // "response": { // "$ref": "Resource" // }, @@ -5325,24 +5159,19 @@ func (r *ResourcesService) List(project string, deployment string) *ResourcesLis // the field name, a comparison operator, and the value that you want to // use for filtering. The value must be a string, a number, or a // boolean. The comparison operator must be either `=`, `!=`, `>`, or -// `<`. -// -// For example, if you are filtering Compute Engine instances, you can -// exclude instances named `example-instance` by specifying `name != -// example-instance`. -// -// You can also filter nested fields. For example, you could specify -// `scheduling.automaticRestart = false` to include instances only if -// they are not scheduled for automatic restarts. You can use filtering -// on nested fields to filter based on resource labels. -// -// To filter on multiple expressions, provide each separate expression -// within parentheses. For example: ``` (scheduling.automaticRestart = -// true) (cpuPlatform = "Intel Skylake") ``` By default, each expression -// is an `AND` expression. However, you can include `AND` and `OR` -// expressions explicitly. For example: ``` (cpuPlatform = "Intel -// Skylake") OR (cpuPlatform = "Intel Broadwell") AND -// (scheduling.automaticRestart = true) ``` +// `<`. For example, if you are filtering Compute Engine instances, you +// can exclude instances named `example-instance` by specifying `name != +// example-instance`. You can also filter nested fields. For example, +// you could specify `scheduling.automaticRestart = false` to include +// instances only if they are not scheduled for automatic restarts. You +// can use filtering on nested fields to filter based on resource +// labels. To filter on multiple expressions, provide each separate +// expression within parentheses. For example: ``` +// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") +// ``` By default, each expression is an `AND` expression. However, you +// can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") +// AND (scheduling.automaticRestart = true) ``` func (c *ResourcesListCall) Filter(filter string) *ResourcesListCall { c.urlParams_.Set("filter", filter) return c @@ -5361,17 +5190,13 @@ func (c *ResourcesListCall) MaxResults(maxResults int64) *ResourcesListCall { // OrderBy sets the optional parameter "orderBy": Sorts list results by // a certain order. By default, results are returned in alphanumerical -// order based on the resource name. -// -// You can also sort results in descending order based on the creation -// timestamp using `orderBy="creationTimestamp desc". This sorts -// results based on the `creationTimestamp` field in reverse -// chronological order (newest result first). Use this to sort resources -// like operations so that the newest operation is returned -// first. -// -// Currently, only sorting by `name` or `creationTimestamp desc` is -// supported. +// order based on the resource name. You can also sort results in +// descending order based on the creation timestamp using +// `orderBy="creationTimestamp desc". This sorts results based on the +// `creationTimestamp` field in reverse chronological order (newest +// result first). Use this to sort resources like operations so that the +// newest operation is returned first. Currently, only sorting by `name` +// or `creationTimestamp desc` is supported. func (c *ResourcesListCall) OrderBy(orderBy string) *ResourcesListCall { c.urlParams_.Set("orderBy", orderBy) return c @@ -5385,6 +5210,15 @@ func (c *ResourcesListCall) PageToken(pageToken string) *ResourcesListCall { return c } +// ReturnPartialSuccess sets the optional parameter +// "returnPartialSuccess": Opt-in for partial success behavior which +// provides partial results in case of failure. The default value is +// false and the logic is the same as today. +func (c *ResourcesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ResourcesListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -5422,7 +5256,7 @@ func (c *ResourcesListCall) Header() http.Header { func (c *ResourcesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5433,7 +5267,7 @@ func (c *ResourcesListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}/resources") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/resources") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -5486,6 +5320,7 @@ func (c *ResourcesListCall) Do(opts ...googleapi.CallOption) (*ResourcesListResp return ret, nil // { // "description": "Lists all resources in a given deployment.", + // "flatPath": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/resources", // "httpMethod": "GET", // "id": "deploymentmanager.resources.list", // "parameterOrder": [ @@ -5501,7 +5336,7 @@ func (c *ResourcesListCall) Do(opts ...googleapi.CallOption) (*ResourcesListResp // "type": "string" // }, // "filter": { - // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", // "location": "query", // "type": "string" // }, @@ -5514,7 +5349,7 @@ func (c *ResourcesListCall) Do(opts ...googleapi.CallOption) (*ResourcesListResp // "type": "integer" // }, // "orderBy": { - // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", // "location": "query", // "type": "string" // }, @@ -5529,9 +5364,14 @@ func (c *ResourcesListCall) Do(opts ...googleapi.CallOption) (*ResourcesListResp // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "returnPartialSuccess": { + // "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.", + // "location": "query", + // "type": "boolean" // } // }, - // "path": "{project}/global/deployments/{deployment}/resources", + // "path": "deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/resources", // "response": { // "$ref": "ResourcesListResponse" // }, @@ -5589,24 +5429,19 @@ func (r *TypesService) List(project string) *TypesListCall { // the field name, a comparison operator, and the value that you want to // use for filtering. The value must be a string, a number, or a // boolean. The comparison operator must be either `=`, `!=`, `>`, or -// `<`. -// -// For example, if you are filtering Compute Engine instances, you can -// exclude instances named `example-instance` by specifying `name != -// example-instance`. -// -// You can also filter nested fields. For example, you could specify -// `scheduling.automaticRestart = false` to include instances only if -// they are not scheduled for automatic restarts. You can use filtering -// on nested fields to filter based on resource labels. -// -// To filter on multiple expressions, provide each separate expression -// within parentheses. For example: ``` (scheduling.automaticRestart = -// true) (cpuPlatform = "Intel Skylake") ``` By default, each expression -// is an `AND` expression. However, you can include `AND` and `OR` -// expressions explicitly. For example: ``` (cpuPlatform = "Intel -// Skylake") OR (cpuPlatform = "Intel Broadwell") AND -// (scheduling.automaticRestart = true) ``` +// `<`. For example, if you are filtering Compute Engine instances, you +// can exclude instances named `example-instance` by specifying `name != +// example-instance`. You can also filter nested fields. For example, +// you could specify `scheduling.automaticRestart = false` to include +// instances only if they are not scheduled for automatic restarts. You +// can use filtering on nested fields to filter based on resource +// labels. To filter on multiple expressions, provide each separate +// expression within parentheses. For example: ``` +// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") +// ``` By default, each expression is an `AND` expression. However, you +// can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") +// AND (scheduling.automaticRestart = true) ``` func (c *TypesListCall) Filter(filter string) *TypesListCall { c.urlParams_.Set("filter", filter) return c @@ -5625,17 +5460,13 @@ func (c *TypesListCall) MaxResults(maxResults int64) *TypesListCall { // OrderBy sets the optional parameter "orderBy": Sorts list results by // a certain order. By default, results are returned in alphanumerical -// order based on the resource name. -// -// You can also sort results in descending order based on the creation -// timestamp using `orderBy="creationTimestamp desc". This sorts -// results based on the `creationTimestamp` field in reverse -// chronological order (newest result first). Use this to sort resources -// like operations so that the newest operation is returned -// first. -// -// Currently, only sorting by `name` or `creationTimestamp desc` is -// supported. +// order based on the resource name. You can also sort results in +// descending order based on the creation timestamp using +// `orderBy="creationTimestamp desc". This sorts results based on the +// `creationTimestamp` field in reverse chronological order (newest +// result first). Use this to sort resources like operations so that the +// newest operation is returned first. Currently, only sorting by `name` +// or `creationTimestamp desc` is supported. func (c *TypesListCall) OrderBy(orderBy string) *TypesListCall { c.urlParams_.Set("orderBy", orderBy) return c @@ -5649,6 +5480,15 @@ func (c *TypesListCall) PageToken(pageToken string) *TypesListCall { return c } +// ReturnPartialSuccess sets the optional parameter +// "returnPartialSuccess": Opt-in for partial success behavior which +// provides partial results in case of failure. The default value is +// false and the logic is the same as today. +func (c *TypesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TypesListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -5686,7 +5526,7 @@ func (c *TypesListCall) Header() http.Header { func (c *TypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5697,7 +5537,7 @@ func (c *TypesListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/types") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2/projects/{project}/global/types") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -5749,6 +5589,7 @@ func (c *TypesListCall) Do(opts ...googleapi.CallOption) (*TypesListResponse, er return ret, nil // { // "description": "Lists all resource types for Deployment Manager.", + // "flatPath": "deploymentmanager/v2/projects/{project}/global/types", // "httpMethod": "GET", // "id": "deploymentmanager.types.list", // "parameterOrder": [ @@ -5756,7 +5597,7 @@ func (c *TypesListCall) Do(opts ...googleapi.CallOption) (*TypesListResponse, er // ], // "parameters": { // "filter": { - // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", // "location": "query", // "type": "string" // }, @@ -5769,7 +5610,7 @@ func (c *TypesListCall) Do(opts ...googleapi.CallOption) (*TypesListResponse, er // "type": "integer" // }, // "orderBy": { - // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", // "location": "query", // "type": "string" // }, @@ -5784,9 +5625,14 @@ func (c *TypesListCall) Do(opts ...googleapi.CallOption) (*TypesListResponse, er // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "returnPartialSuccess": { + // "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.", + // "location": "query", + // "type": "boolean" // } // }, - // "path": "{project}/global/types", + // "path": "deploymentmanager/v2/projects/{project}/global/types", // "response": { // "$ref": "TypesListResponse" // }, diff --git a/deploymentmanager/v2beta/deploymentmanager-api.json b/deploymentmanager/v2beta/deploymentmanager-api.json index e5a80141e1c..172fbc6600e 100644 --- a/deploymentmanager/v2beta/deploymentmanager-api.json +++ b/deploymentmanager/v2beta/deploymentmanager-api.json @@ -17,36 +17,63 @@ } } }, - "basePath": "/deploymentmanager/v2beta/projects/", - "baseUrl": "https://www.googleapis.com/deploymentmanager/v2beta/projects/", - "batchPath": "batch/deploymentmanager/v2beta", - "canonicalName": "Deployment Manager V2Beta", - "description": "The Deployment Manager API allows users to declaratively configure, deploy and run complex solutions on the Google Cloud Platform.", + "basePath": "", + "baseUrl": "https://deploymentmanager.googleapis.com/", + "batchPath": "batch", + "canonicalName": "Deployment Manager", + "description": "The Google Cloud Deployment Manager v2 API provides services for configuring, deploying, and viewing Google Cloud services and APIs via templates which specify deployments of Cloud resources.", "discoveryVersion": "v1", - "documentationLink": "https://developers.google.com/deployment-manager/", - "etag": "\"u9GIe6H63LSGq-9_t39K2Zx_EAc/XcbOzngoh8gZXdZugVBduEYcx6w\"", + "documentationLink": "https://cloud.google.com/deployment-manager", "icons": { - "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", - "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" }, "id": "deploymentmanager:v2beta", "kind": "discovery#restDescription", + "mtlsRootUrl": "https://deploymentmanager.mtls.googleapis.com/", "name": "deploymentmanager", "ownerDomain": "google.com", "ownerName": "Google", "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, "alt": { "default": "json", - "description": "Data format for the response.", + "description": "Data format for response.", "enum": [ - "json" + "json", + "media", + "proto" ], "enumDescriptions": [ - "Responses with Content-Type of application/json" + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" ], "location": "query", "type": "string" }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, "fields": { "description": "Selector specifying which fields to include in a partial response.", "location": "query", @@ -69,12 +96,17 @@ "type": "boolean" }, "quotaUser": { - "description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.", + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query", + "type": "string" + }, + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", "location": "query", "type": "string" }, - "userIp": { - "description": "Deprecated. Please use quotaUser instead.", + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", "location": "query", "type": "string" } @@ -85,6 +117,7 @@ "methods": { "delete": { "description": "Deletes a composite type.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}", "httpMethod": "DELETE", "id": "deploymentmanager.compositeTypes.delete", "parameterOrder": [ @@ -107,7 +140,7 @@ "type": "string" } }, - "path": "{project}/global/compositeTypes/{compositeType}", + "path": "deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}", "response": { "$ref": "Operation" }, @@ -118,6 +151,7 @@ }, "get": { "description": "Gets information about a specific composite type.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}", "httpMethod": "GET", "id": "deploymentmanager.compositeTypes.get", "parameterOrder": [ @@ -140,7 +174,7 @@ "type": "string" } }, - "path": "{project}/global/compositeTypes/{compositeType}", + "path": "deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}", "response": { "$ref": "CompositeType" }, @@ -153,6 +187,7 @@ }, "insert": { "description": "Creates a composite type.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/compositeTypes", "httpMethod": "POST", "id": "deploymentmanager.compositeTypes.insert", "parameterOrder": [ @@ -167,7 +202,7 @@ "type": "string" } }, - "path": "{project}/global/compositeTypes", + "path": "deploymentmanager/v2beta/projects/{project}/global/compositeTypes", "request": { "$ref": "CompositeType" }, @@ -181,6 +216,7 @@ }, "list": { "description": "Lists all composite types for Deployment Manager.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/compositeTypes", "httpMethod": "GET", "id": "deploymentmanager.compositeTypes.list", "parameterOrder": [ @@ -188,7 +224,7 @@ ], "parameters": { "filter": { - "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", "location": "query", "type": "string" }, @@ -201,7 +237,7 @@ "type": "integer" }, "orderBy": { - "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", "location": "query", "type": "string" }, @@ -216,9 +252,14 @@ "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", "required": true, "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.", + "location": "query", + "type": "boolean" } }, - "path": "{project}/global/compositeTypes", + "path": "deploymentmanager/v2beta/projects/{project}/global/compositeTypes", "response": { "$ref": "CompositeTypesListResponse" }, @@ -231,6 +272,7 @@ }, "patch": { "description": "Patches a composite type.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}", "httpMethod": "PATCH", "id": "deploymentmanager.compositeTypes.patch", "parameterOrder": [ @@ -253,7 +295,7 @@ "type": "string" } }, - "path": "{project}/global/compositeTypes/{compositeType}", + "path": "deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}", "request": { "$ref": "CompositeType" }, @@ -267,6 +309,7 @@ }, "update": { "description": "Updates a composite type.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}", "httpMethod": "PUT", "id": "deploymentmanager.compositeTypes.update", "parameterOrder": [ @@ -289,7 +332,7 @@ "type": "string" } }, - "path": "{project}/global/compositeTypes/{compositeType}", + "path": "deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}", "request": { "$ref": "CompositeType" }, @@ -307,6 +350,7 @@ "methods": { "cancelPreview": { "description": "Cancels and removes the preview currently associated with the deployment.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/cancelPreview", "httpMethod": "POST", "id": "deploymentmanager.deployments.cancelPreview", "parameterOrder": [ @@ -329,7 +373,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{deployment}/cancelPreview", + "path": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/cancelPreview", "request": { "$ref": "DeploymentsCancelPreviewRequest" }, @@ -343,6 +387,7 @@ }, "delete": { "description": "Deletes a deployment and all of the resources in the deployment.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}", "httpMethod": "DELETE", "id": "deploymentmanager.deployments.delete", "parameterOrder": [ @@ -354,8 +399,8 @@ "default": "DELETE", "description": "Sets the policy to use for deleting resources.", "enum": [ - "ABANDON", - "DELETE" + "DELETE", + "ABANDON" ], "enumDescriptions": [ "", @@ -378,7 +423,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{deployment}", + "path": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}", "response": { "$ref": "Operation" }, @@ -389,6 +434,7 @@ }, "get": { "description": "Gets information about a specific deployment.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}", "httpMethod": "GET", "id": "deploymentmanager.deployments.get", "parameterOrder": [ @@ -411,7 +457,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{deployment}", + "path": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}", "response": { "$ref": "Deployment" }, @@ -424,6 +470,7 @@ }, "getIamPolicy": { "description": "Gets the access control policy for a resource. May be empty if no such policy or resource exists.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/getIamPolicy", "httpMethod": "GET", "id": "deploymentmanager.deployments.getIamPolicy", "parameterOrder": [ @@ -431,6 +478,12 @@ "resource" ], "parameters": { + "optionsRequestedPolicyVersion": { + "description": "Requested IAM Policy version.", + "format": "int32", + "location": "query", + "type": "integer" + }, "project": { "description": "Project ID for this request.", "location": "path", @@ -446,7 +499,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{resource}/getIamPolicy", + "path": "deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/getIamPolicy", "response": { "$ref": "Policy" }, @@ -457,6 +510,7 @@ }, "insert": { "description": "Creates a deployment and all of the resources described by the deployment manifest.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments", "httpMethod": "POST", "id": "deploymentmanager.deployments.insert", "parameterOrder": [ @@ -467,9 +521,9 @@ "default": "CREATE_OR_ACQUIRE", "description": "Sets the policy to use for creating new resources.", "enum": [ + "CREATE_OR_ACQUIRE", "ACQUIRE", - "CREATE", - "CREATE_OR_ACQUIRE" + "CREATE" ], "enumDescriptions": [ "", @@ -492,7 +546,7 @@ "type": "string" } }, - "path": "{project}/global/deployments", + "path": "deploymentmanager/v2beta/projects/{project}/global/deployments", "request": { "$ref": "Deployment" }, @@ -506,6 +560,7 @@ }, "list": { "description": "Lists all deployments for a given project.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments", "httpMethod": "GET", "id": "deploymentmanager.deployments.list", "parameterOrder": [ @@ -513,7 +568,7 @@ ], "parameters": { "filter": { - "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", "location": "query", "type": "string" }, @@ -526,7 +581,7 @@ "type": "integer" }, "orderBy": { - "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", "location": "query", "type": "string" }, @@ -541,9 +596,14 @@ "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", "required": true, "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.", + "location": "query", + "type": "boolean" } }, - "path": "{project}/global/deployments", + "path": "deploymentmanager/v2beta/projects/{project}/global/deployments", "response": { "$ref": "DeploymentsListResponse" }, @@ -556,6 +616,7 @@ }, "patch": { "description": "Patches a deployment and all of the resources described by the deployment manifest.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}", "httpMethod": "PATCH", "id": "deploymentmanager.deployments.patch", "parameterOrder": [ @@ -567,9 +628,9 @@ "default": "CREATE_OR_ACQUIRE", "description": "Sets the policy to use for creating new resources.", "enum": [ + "CREATE_OR_ACQUIRE", "ACQUIRE", - "CREATE", - "CREATE_OR_ACQUIRE" + "CREATE" ], "enumDescriptions": [ "", @@ -583,8 +644,8 @@ "default": "DELETE", "description": "Sets the policy to use for deleting resources.", "enum": [ - "ABANDON", - "DELETE" + "DELETE", + "ABANDON" ], "enumDescriptions": [ "", @@ -614,7 +675,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{deployment}", + "path": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}", "request": { "$ref": "Deployment" }, @@ -628,6 +689,7 @@ }, "setIamPolicy": { "description": "Sets the access control policy on the specified resource. Replaces any existing policy.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/setIamPolicy", "httpMethod": "POST", "id": "deploymentmanager.deployments.setIamPolicy", "parameterOrder": [ @@ -650,7 +712,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{resource}/setIamPolicy", + "path": "deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/setIamPolicy", "request": { "$ref": "GlobalSetPolicyRequest" }, @@ -664,6 +726,7 @@ }, "stop": { "description": "Stops an ongoing operation. This does not roll back any work that has already been completed, but prevents any new work from being started.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/stop", "httpMethod": "POST", "id": "deploymentmanager.deployments.stop", "parameterOrder": [ @@ -686,7 +749,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{deployment}/stop", + "path": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/stop", "request": { "$ref": "DeploymentsStopRequest" }, @@ -700,6 +763,7 @@ }, "testIamPermissions": { "description": "Returns permissions that a caller has on the specified resource.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/testIamPermissions", "httpMethod": "POST", "id": "deploymentmanager.deployments.testIamPermissions", "parameterOrder": [ @@ -722,7 +786,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{resource}/testIamPermissions", + "path": "deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/testIamPermissions", "request": { "$ref": "TestPermissionsRequest" }, @@ -736,6 +800,7 @@ }, "update": { "description": "Updates a deployment and all of the resources described by the deployment manifest.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}", "httpMethod": "PUT", "id": "deploymentmanager.deployments.update", "parameterOrder": [ @@ -747,9 +812,9 @@ "default": "CREATE_OR_ACQUIRE", "description": "Sets the policy to use for creating new resources.", "enum": [ + "CREATE_OR_ACQUIRE", "ACQUIRE", - "CREATE", - "CREATE_OR_ACQUIRE" + "CREATE" ], "enumDescriptions": [ "", @@ -763,8 +828,8 @@ "default": "DELETE", "description": "Sets the policy to use for deleting resources.", "enum": [ - "ABANDON", - "DELETE" + "DELETE", + "ABANDON" ], "enumDescriptions": [ "", @@ -794,7 +859,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{deployment}", + "path": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}", "request": { "$ref": "Deployment" }, @@ -812,6 +877,7 @@ "methods": { "get": { "description": "Gets information about a specific manifest.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/manifests/{manifest}", "httpMethod": "GET", "id": "deploymentmanager.manifests.get", "parameterOrder": [ @@ -842,7 +908,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{deployment}/manifests/{manifest}", + "path": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/manifests/{manifest}", "response": { "$ref": "Manifest" }, @@ -855,6 +921,7 @@ }, "list": { "description": "Lists all manifests for a given deployment.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/manifests", "httpMethod": "GET", "id": "deploymentmanager.manifests.list", "parameterOrder": [ @@ -870,7 +937,7 @@ "type": "string" }, "filter": { - "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", "location": "query", "type": "string" }, @@ -883,7 +950,7 @@ "type": "integer" }, "orderBy": { - "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", "location": "query", "type": "string" }, @@ -898,9 +965,14 @@ "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", "required": true, "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.", + "location": "query", + "type": "boolean" } }, - "path": "{project}/global/deployments/{deployment}/manifests", + "path": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/manifests", "response": { "$ref": "ManifestsListResponse" }, @@ -917,6 +989,7 @@ "methods": { "get": { "description": "Gets information about a specific operation.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/operations/{operation}", "httpMethod": "GET", "id": "deploymentmanager.operations.get", "parameterOrder": [ @@ -938,7 +1011,7 @@ "type": "string" } }, - "path": "{project}/global/operations/{operation}", + "path": "deploymentmanager/v2beta/projects/{project}/global/operations/{operation}", "response": { "$ref": "Operation" }, @@ -951,6 +1024,7 @@ }, "list": { "description": "Lists all operations for a project.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/operations", "httpMethod": "GET", "id": "deploymentmanager.operations.list", "parameterOrder": [ @@ -958,7 +1032,7 @@ ], "parameters": { "filter": { - "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", "location": "query", "type": "string" }, @@ -971,7 +1045,7 @@ "type": "integer" }, "orderBy": { - "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", "location": "query", "type": "string" }, @@ -986,9 +1060,14 @@ "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", "required": true, "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.", + "location": "query", + "type": "boolean" } }, - "path": "{project}/global/operations", + "path": "deploymentmanager/v2beta/projects/{project}/global/operations", "response": { "$ref": "OperationsListResponse" }, @@ -1005,6 +1084,7 @@ "methods": { "get": { "description": "Gets information about a single resource.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/resources/{resource}", "httpMethod": "GET", "id": "deploymentmanager.resources.get", "parameterOrder": [ @@ -1034,7 +1114,7 @@ "type": "string" } }, - "path": "{project}/global/deployments/{deployment}/resources/{resource}", + "path": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/resources/{resource}", "response": { "$ref": "Resource" }, @@ -1047,6 +1127,7 @@ }, "list": { "description": "Lists all resources in a given deployment.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/resources", "httpMethod": "GET", "id": "deploymentmanager.resources.list", "parameterOrder": [ @@ -1062,7 +1143,7 @@ "type": "string" }, "filter": { - "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", "location": "query", "type": "string" }, @@ -1075,7 +1156,7 @@ "type": "integer" }, "orderBy": { - "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", "location": "query", "type": "string" }, @@ -1090,9 +1171,14 @@ "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", "required": true, "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.", + "location": "query", + "type": "boolean" } }, - "path": "{project}/global/deployments/{deployment}/resources", + "path": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/resources", "response": { "$ref": "ResourcesListResponse" }, @@ -1109,6 +1195,7 @@ "methods": { "delete": { "description": "Deletes a type provider.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}", "httpMethod": "DELETE", "id": "deploymentmanager.typeProviders.delete", "parameterOrder": [ @@ -1131,7 +1218,7 @@ "type": "string" } }, - "path": "{project}/global/typeProviders/{typeProvider}", + "path": "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}", "response": { "$ref": "Operation" }, @@ -1142,6 +1229,7 @@ }, "get": { "description": "Gets information about a specific type provider.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}", "httpMethod": "GET", "id": "deploymentmanager.typeProviders.get", "parameterOrder": [ @@ -1164,7 +1252,7 @@ "type": "string" } }, - "path": "{project}/global/typeProviders/{typeProvider}", + "path": "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}", "response": { "$ref": "TypeProvider" }, @@ -1177,6 +1265,7 @@ }, "getType": { "description": "Gets a type info for a type provided by a TypeProvider.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}/types/{type}", "httpMethod": "GET", "id": "deploymentmanager.typeProviders.getType", "parameterOrder": [ @@ -1206,7 +1295,7 @@ "type": "string" } }, - "path": "{project}/global/typeProviders/{typeProvider}/types/{type}", + "path": "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}/types/{type}", "response": { "$ref": "TypeInfo" }, @@ -1219,6 +1308,7 @@ }, "insert": { "description": "Creates a type provider.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/typeProviders", "httpMethod": "POST", "id": "deploymentmanager.typeProviders.insert", "parameterOrder": [ @@ -1233,7 +1323,7 @@ "type": "string" } }, - "path": "{project}/global/typeProviders", + "path": "deploymentmanager/v2beta/projects/{project}/global/typeProviders", "request": { "$ref": "TypeProvider" }, @@ -1247,6 +1337,7 @@ }, "list": { "description": "Lists all resource type providers for Deployment Manager.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/typeProviders", "httpMethod": "GET", "id": "deploymentmanager.typeProviders.list", "parameterOrder": [ @@ -1254,7 +1345,7 @@ ], "parameters": { "filter": { - "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", "location": "query", "type": "string" }, @@ -1267,7 +1358,7 @@ "type": "integer" }, "orderBy": { - "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", "location": "query", "type": "string" }, @@ -1282,9 +1373,14 @@ "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", "required": true, "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.", + "location": "query", + "type": "boolean" } }, - "path": "{project}/global/typeProviders", + "path": "deploymentmanager/v2beta/projects/{project}/global/typeProviders", "response": { "$ref": "TypeProvidersListResponse" }, @@ -1297,6 +1393,7 @@ }, "listTypes": { "description": "Lists all the type info for a TypeProvider.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}/types", "httpMethod": "GET", "id": "deploymentmanager.typeProviders.listTypes", "parameterOrder": [ @@ -1305,7 +1402,7 @@ ], "parameters": { "filter": { - "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", "location": "query", "type": "string" }, @@ -1318,7 +1415,7 @@ "type": "integer" }, "orderBy": { - "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", "location": "query", "type": "string" }, @@ -1334,6 +1431,11 @@ "required": true, "type": "string" }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.", + "location": "query", + "type": "boolean" + }, "typeProvider": { "description": "The name of the type provider for this request.", "location": "path", @@ -1342,7 +1444,7 @@ "type": "string" } }, - "path": "{project}/global/typeProviders/{typeProvider}/types", + "path": "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}/types", "response": { "$ref": "TypeProvidersListTypesResponse" }, @@ -1355,6 +1457,7 @@ }, "patch": { "description": "Patches a type provider.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}", "httpMethod": "PATCH", "id": "deploymentmanager.typeProviders.patch", "parameterOrder": [ @@ -1377,7 +1480,7 @@ "type": "string" } }, - "path": "{project}/global/typeProviders/{typeProvider}", + "path": "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}", "request": { "$ref": "TypeProvider" }, @@ -1391,6 +1494,7 @@ }, "update": { "description": "Updates a type provider.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}", "httpMethod": "PUT", "id": "deploymentmanager.typeProviders.update", "parameterOrder": [ @@ -1413,7 +1517,7 @@ "type": "string" } }, - "path": "{project}/global/typeProviders/{typeProvider}", + "path": "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}", "request": { "$ref": "TypeProvider" }, @@ -1431,6 +1535,7 @@ "methods": { "list": { "description": "Lists all resource types for Deployment Manager.", + "flatPath": "deploymentmanager/v2beta/projects/{project}/global/types", "httpMethod": "GET", "id": "deploymentmanager.types.list", "parameterOrder": [ @@ -1438,7 +1543,7 @@ ], "parameters": { "filter": { - "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", "location": "query", "type": "string" }, @@ -1451,7 +1556,7 @@ "type": "integer" }, "orderBy": { - "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", "location": "query", "type": "string" }, @@ -1466,9 +1571,14 @@ "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", "required": true, "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.", + "location": "query", + "type": "boolean" } }, - "path": "{project}/global/types", + "path": "deploymentmanager/v2beta/projects/{project}/global/types", "response": { "$ref": "TypesListResponse" }, @@ -1482,8 +1592,8 @@ } } }, - "revision": "20200512", - "rootUrl": "https://www.googleapis.com/", + "revision": "20201113", + "rootUrl": "https://deploymentmanager.googleapis.com/", "schemas": { "AsyncOptions": { "description": "Async options that determine when a resource should finish.", @@ -1501,7 +1611,7 @@ "type": "object" }, "AuditConfig": { - "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs.\n\nIf there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted.\n\nExample Policy with multiple AuditConfigs:\n\n{ \"audit_configs\": [ { \"service\": \"allServices\" \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\", }, { \"log_type\": \"ADMIN_READ\", } ] }, { \"service\": \"sampleservice.googleapis.com\" \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] }\n\nFor sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.", + "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.", "id": "AuditConfig", "properties": { "auditLogConfigs": { @@ -1511,13 +1621,6 @@ }, "type": "array" }, - "exemptedMembers": { - "description": "", - "items": { - "type": "string" - }, - "type": "array" - }, "service": { "description": "Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.", "type": "string" @@ -1526,33 +1629,30 @@ "type": "object" }, "AuditLogConfig": { - "description": "Provides the configuration for logging a type of permissions. Example:\n\n{ \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\", } ] }\n\nThis enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.", + "description": "Provides the configuration for logging a type of permissions. Example: { \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.", "id": "AuditLogConfig", "properties": { "exemptedMembers": { - "description": "Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][].", + "description": "Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.", "items": { "type": "string" }, "type": "array" }, - "ignoreChildExemptions": { - "description": "", - "type": "boolean" - }, "logType": { "description": "The log type that this config enables.", - "type": "string" - } - }, - "type": "object" - }, - "AuthorizationLoggingOptions": { - "description": "Authorization-related information used by Cloud Audit Logging.", - "id": "AuthorizationLoggingOptions", - "properties": { - "permissionType": { - "description": "The type of the permission that was checked.", + "enum": [ + "LOG_TYPE_UNSPECIFIED", + "ADMIN_READ", + "DATA_WRITE", + "DATA_READ" + ], + "enumDescriptions": [ + "Default case. Should never be this.", + "Admin reads. Example: CloudIAM getIamPolicy", + "Data writes. Example: CloudSQL Users create", + "Data reads. Example: CloudSQL Users list" + ], "type": "string" } }, @@ -1603,10 +1703,10 @@ "properties": { "condition": { "$ref": "Expr", - "description": "The condition that is associated with this binding.\n\nIf the condition evaluates to `true`, then this binding applies to the current request.\n\nIf the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding.\n\nTo learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." + "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` .\n\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.\n\n* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding.\n\n* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding.\n\n* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.\n\n\n\n* `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.", + "description": "Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", "items": { "type": "string" }, @@ -1670,6 +1770,18 @@ "type": "string" }, "status": { + "enum": [ + "UNKNOWN_STATUS", + "DEPRECATED", + "EXPERIMENTAL", + "SUPPORTED" + ], + "enumDescriptions": [ + "", + "", + "", + "" + ], "type": "string" }, "templateContents": { @@ -1680,12 +1792,15 @@ "type": "object" }, "CompositeTypeLabelEntry": { + "description": "Label object for CompositeTypes", "id": "CompositeTypeLabelEntry", "properties": { "key": { + "description": "Key of the label", "type": "string" }, "value": { + "description": "Value of the label", "type": "string" } }, @@ -1709,38 +1824,7 @@ }, "type": "object" }, - "Condition": { - "description": "A condition to be met.", - "id": "Condition", - "properties": { - "iam": { - "description": "Trusted attributes supplied by the IAM system.", - "type": "string" - }, - "op": { - "description": "An operator to apply the subject with.", - "type": "string" - }, - "svc": { - "description": "Trusted attributes discharged by the service.", - "type": "string" - }, - "sys": { - "description": "Trusted attributes supplied by any service that owns resources and uses the IAM system for access control.", - "type": "string" - }, - "values": { - "description": "The objects of the condition.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, "ConfigFile": { - "description": "", "id": "ConfigFile", "properties": { "content": { @@ -1770,7 +1854,6 @@ "type": "object" }, "Deployment": { - "description": "", "id": "Deployment", "properties": { "description": { @@ -1778,7 +1861,7 @@ "type": "string" }, "fingerprint": { - "description": "Provides a fingerprint to use in requests to modify a deployment, such as `update()`, `stop()`, and `cancelPreview()` requests. A fingerprint is a randomly generated value that must be provided with `update()`, `stop()`, and `cancelPreview()` requests to perform optimistic locking. This ensures optimistic concurrency so that only one request happens at a time.\n\nThe fingerprint is initially generated by Deployment Manager and changes after every request to modify data. To get the latest fingerprint value, perform a `get()` request to a deployment.", + "description": "Provides a fingerprint to use in requests to modify a deployment, such as `update()`, `stop()`, and `cancelPreview()` requests. A fingerprint is a randomly generated value that must be provided with `update()`, `stop()`, and `cancelPreview()` requests to perform optimistic locking. This ensures optimistic concurrency so that only one request happens at a time. The fingerprint is initially generated by Deployment Manager and changes after every request to modify data. To get the latest fingerprint value, perform a `get()` request to a deployment.", "format": "byte", "type": "string" }, @@ -1791,7 +1874,7 @@ "type": "string" }, "labels": { - "description": "Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.", + "description": "Map of One Platform labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.", "items": { "$ref": "DeploymentLabelEntry" }, @@ -1829,19 +1912,21 @@ "type": "object" }, "DeploymentLabelEntry": { + "description": "Label object for Deployments", "id": "DeploymentLabelEntry", "properties": { "key": { + "description": "Key of the label", "type": "string" }, "value": { + "description": "Value of the label", "type": "string" } }, "type": "object" }, "DeploymentUpdate": { - "description": "", "id": "DeploymentUpdate", "properties": { "description": { @@ -1849,7 +1934,7 @@ "type": "string" }, "labels": { - "description": "Output only. Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.", + "description": "Map of One Platform labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.", "items": { "$ref": "DeploymentUpdateLabelEntry" }, @@ -1863,23 +1948,25 @@ "type": "object" }, "DeploymentUpdateLabelEntry": { + "description": "Label object for DeploymentUpdate", "id": "DeploymentUpdateLabelEntry", "properties": { "key": { + "description": "Key of the label", "type": "string" }, "value": { + "description": "Value of the label", "type": "string" } }, "type": "object" }, "DeploymentsCancelPreviewRequest": { - "description": "", "id": "DeploymentsCancelPreviewRequest", "properties": { "fingerprint": { - "description": "Specifies a fingerprint for `cancelPreview()` requests. A fingerprint is a randomly generated value that must be provided in `cancelPreview()` requests to perform optimistic locking. This ensures optimistic concurrency so that the deployment does not have conflicting requests (e.g. if someone attempts to make a new update request while another user attempts to cancel a preview, this would prevent one of the requests).\n\nThe fingerprint is initially generated by Deployment Manager and changes after every request to modify a deployment. To get the latest fingerprint value, perform a `get()` request on the deployment.", + "description": "Specifies a fingerprint for `cancelPreview()` requests. A fingerprint is a randomly generated value that must be provided in `cancelPreview()` requests to perform optimistic locking. This ensures optimistic concurrency so that the deployment does not have conflicting requests (e.g. if someone attempts to make a new update request while another user attempts to cancel a preview, this would prevent one of the requests). The fingerprint is initially generated by Deployment Manager and changes after every request to modify a deployment. To get the latest fingerprint value, perform a `get()` request on the deployment.", "format": "byte", "type": "string" } @@ -1905,11 +1992,10 @@ "type": "object" }, "DeploymentsStopRequest": { - "description": "", "id": "DeploymentsStopRequest", "properties": { "fingerprint": { - "description": "Specifies a fingerprint for `stop()` requests. A fingerprint is a randomly generated value that must be provided in `stop()` requests to perform optimistic locking. This ensures optimistic concurrency so that the deployment does not have conflicting requests (e.g. if someone attempts to make a new update request while another user attempts to stop an ongoing update request, this would prevent a collision).\n\nThe fingerprint is initially generated by Deployment Manager and changes after every request to modify a deployment. To get the latest fingerprint value, perform a `get()` request on the deployment.", + "description": "Specifies a fingerprint for `stop()` requests. A fingerprint is a randomly generated value that must be provided in `stop()` requests to perform optimistic locking. This ensures optimistic concurrency so that the deployment does not have conflicting requests (e.g. if someone attempts to make a new update request while another user attempts to stop an ongoing update request, this would prevent a collision). The fingerprint is initially generated by Deployment Manager and changes after every request to modify a deployment. To get the latest fingerprint value, perform a `get()` request on the deployment.", "format": "byte", "type": "string" } @@ -1917,7 +2003,6 @@ "type": "object" }, "Diagnostic": { - "description": "", "id": "Diagnostic", "properties": { "field": { @@ -1926,13 +2011,25 @@ }, "level": { "description": "Level to record this diagnostic.", + "enum": [ + "UNKNOWN", + "INFORMATION", + "WARNING", + "ERROR" + ], + "enumDescriptions": [ + "", + "If level is informational, it only gets displayed as part of the resource.", + "If level is warning, will end up in the resource as a warning.", + "If level is error, it will indicate an error occurred after finishCondition is set, and this field will populate resource errors and operation errors." + ], "type": "string" } }, "type": "object" }, "Expr": { - "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec.\n\nExample (Comparison):\n\ntitle: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\"\n\nExample (Equality):\n\ntitle: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\"\n\nExample (Logic):\n\ntitle: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\"\n\nExample (Data Manipulation):\n\ntitle: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\"\n\nThe exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", + "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", "id": "Expr", "properties": { "description": { @@ -1977,7 +2074,6 @@ "type": "object" }, "ImportFile": { - "description": "", "id": "ImportFile", "properties": { "content": { @@ -2001,6 +2097,20 @@ }, "location": { "description": "The location where this mapping applies.", + "enum": [ + "UNKNOWN", + "PATH", + "QUERY", + "BODY", + "HEADER" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "" + ], "type": "string" }, "methodMatch": { @@ -2014,90 +2124,7 @@ }, "type": "object" }, - "LogConfig": { - "description": "Specifies what kind of log the caller must write", - "id": "LogConfig", - "properties": { - "cloudAudit": { - "$ref": "LogConfigCloudAuditOptions", - "description": "Cloud audit options." - }, - "counter": { - "$ref": "LogConfigCounterOptions", - "description": "Counter options." - }, - "dataAccess": { - "$ref": "LogConfigDataAccessOptions", - "description": "Data access options." - } - }, - "type": "object" - }, - "LogConfigCloudAuditOptions": { - "description": "Write a Cloud Audit log", - "id": "LogConfigCloudAuditOptions", - "properties": { - "authorizationLoggingOptions": { - "$ref": "AuthorizationLoggingOptions", - "description": "Information used by the Cloud Audit Logging pipeline." - }, - "logName": { - "description": "The log_name to populate in the Cloud Audit Record.", - "type": "string" - } - }, - "type": "object" - }, - "LogConfigCounterOptions": { - "description": "Increment a streamz counter with the specified metric and field names.\n\nMetric names should start with a '/', generally be lowercase-only, and end in \"_count\". Field names should not contain an initial slash. The actual exported metric names will have \"/iam/policy\" prepended.\n\nField names correspond to IAM request parameters and field values are their respective values.\n\nSupported field names: - \"authority\", which is \"[token]\" if IAMContext.token is present, otherwise the value of IAMContext.authority_selector if present, and otherwise a representation of IAMContext.principal; or - \"iam_principal\", a representation of IAMContext.principal even if a token or authority selector is present; or - \"\" (empty string), resulting in a counter with no fields.\n\nExamples: counter { metric: \"/debug_access_count\" field: \"iam_principal\" } ==\u003e increment counter /iam/policy/debug_access_count {iam_principal=[value of IAMContext.principal]}", - "id": "LogConfigCounterOptions", - "properties": { - "customFields": { - "description": "Custom fields.", - "items": { - "$ref": "LogConfigCounterOptionsCustomField" - }, - "type": "array" - }, - "field": { - "description": "The field value to attribute.", - "type": "string" - }, - "metric": { - "description": "The metric to update.", - "type": "string" - } - }, - "type": "object" - }, - "LogConfigCounterOptionsCustomField": { - "description": "Custom fields. These can be used to create a counter with arbitrary field/value pairs. See: go/rpcsp-custom-fields.", - "id": "LogConfigCounterOptionsCustomField", - "properties": { - "name": { - "description": "Name is the field name.", - "type": "string" - }, - "value": { - "description": "Value is the field value. It is important that in contrast to the CounterOptions.field, the value here is a constant that is not derived from the IAMContext.", - "type": "string" - } - }, - "type": "object" - }, - "LogConfigDataAccessOptions": { - "description": "Write a Data Access (Gin) log", - "id": "LogConfigDataAccessOptions", - "properties": { - "logMode": { - "description": "", - "type": "string" - } - }, - "type": "object" - }, "Manifest": { - "description": "", "id": "Manifest", "properties": { "config": { @@ -2128,7 +2155,7 @@ "type": "string" }, "name": { - "description": "Output only.\n\nThe name of the manifest.", + "description": "Output only. The name of the manifest.", "type": "string" }, "selfLink": { @@ -2157,7 +2184,7 @@ "type": "object" }, "Operation": { - "description": "Represents an Operation resource.\n\nGoogle Compute Engine has three Operation resources:\n\n* [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)\n\nYou can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.\n\nOperations can be global, regional or zonal. \n- For global operations, use the `globalOperations` resource. \n- For regional operations, use the `regionOperations` resource. \n- For zonal operations, use the `zonalOperations` resource. \n\nFor more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)", + "description": "Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources.", "id": "Operation", "properties": { "clientOperationId": { @@ -2253,6 +2280,16 @@ }, "status": { "description": "[Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`.", + "enum": [ + "PENDING", + "RUNNING", + "DONE" + ], + "enumDescriptions": [ + "", + "", + "" + ], "type": "string" }, "statusMessage": { @@ -2278,10 +2315,64 @@ "properties": { "code": { "description": "[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.", + "enum": [ + "DEPRECATED_RESOURCE_USED", + "NO_RESULTS_ON_PAGE", + "UNREACHABLE", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_NOT_RUNNING", + "INJECTED_KERNELS_DEPRECATED", + "REQUIRED_TOS_AGREEMENT", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "RESOURCE_NOT_DELETED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "NOT_CRITICAL_ERROR", + "CLEANUP_FAILED", + "FIELD_VALUE_OVERRIDEN", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "MISSING_TYPE_DEPENDENCY", + "EXTERNAL_API_WARNING", + "SCHEMA_VALIDATION_IGNORED", + "UNDECLARED_PROPERTIES", + "EXPERIMENTAL_TYPE_USED", + "DEPRECATED_TYPE_USED", + "PARTIAL_SUCCESS", + "LARGE_DEPLOYMENT_WARNING" + ], + "enumDescriptions": [ + "A link to a deprecated resource was created.", + "No results are present on a particular list page.", + "A given scope cannot be reached.", + "The route's nextHopIp address is not assigned to an instance on the network.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the same network as the route.", + "The route's next hop instance cannot ip forward.", + "The route's next hop instance does not have a status of RUNNING.", + "The operation involved use of an injected kernel, which is deprecated.", + "The user attempted to use a resource that requires a TOS they have not accepted.", + "The user created a boot disk that is larger than image size.", + "One or more of the resources set to auto-delete could not be deleted because they were in use.", + "Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.", + "Error which is not critical. We decided to continue the process despite the mentioned error.", + "Warning about failed cleanup of transient changes made by a failed operation.", + "Warning that value of a field has been overridden. Deprecated unused field.", + "Warning that a resource is in use.", + "A resource depends on a missing type", + "Warning that is present in an external api call", + "When a resource schema validation is ignored.", + "When undeclared properties in the schema are present", + "When deploying and at least one of the resources has a type marked as experimental", + "When deploying and at least one of the resources has a type marked as deprecated", + "Success is reported, but some results may be missing due to errors", + "When deploying a deployment with a exceedingly large number of resources" + ], "type": "string" }, "data": { - "description": "[Output Only] Metadata about this warning in key: value format. For example:\n\"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" }", + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", "items": { "properties": { "key": { @@ -2361,7 +2452,7 @@ "type": "object" }, "Policy": { - "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.\n\n\n\nA `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role.\n\nFor some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).\n\n**JSON example:**\n\n{ \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 }\n\n**YAML example:**\n\nbindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3\n\nFor a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", + "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", "id": "Policy", "properties": { "auditConfigs": { @@ -2379,23 +2470,12 @@ "type": "array" }, "etag": { - "description": "`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy.\n\n**Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.", + "description": "`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.", "format": "byte", "type": "string" }, - "iamOwned": { - "description": "", - "type": "boolean" - }, - "rules": { - "description": "If more than one rule is specified, the rules are applied in the following manner: - All matching LOG rules are always applied. - If any DENY/DENY_WITH_LOG rule matches, permission is denied. Logging will be applied if one or more matching rule requires logging. - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is granted. Logging will be applied if one or more matching rule requires logging. - Otherwise, if no rule applies, permission is denied.", - "items": { - "$ref": "Rule" - }, - "type": "array" - }, "version": { - "description": "Specifies the format of the policy.\n\nValid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected.\n\nAny operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations:\n\n* Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions\n\n**Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.\n\nIf a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.\n\nTo learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "description": "Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", "format": "int32", "type": "integer" } @@ -2403,7 +2483,6 @@ "type": "object" }, "PollingOptions": { - "description": "", "id": "PollingOptions", "properties": { "diagnostics": { @@ -2433,7 +2512,6 @@ "type": "object" }, "Resource": { - "description": "", "id": "Resource", "properties": { "accessControl": { @@ -2486,10 +2564,64 @@ "properties": { "code": { "description": "[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.", + "enum": [ + "DEPRECATED_RESOURCE_USED", + "NO_RESULTS_ON_PAGE", + "UNREACHABLE", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_NOT_RUNNING", + "INJECTED_KERNELS_DEPRECATED", + "REQUIRED_TOS_AGREEMENT", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "RESOURCE_NOT_DELETED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "NOT_CRITICAL_ERROR", + "CLEANUP_FAILED", + "FIELD_VALUE_OVERRIDEN", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "MISSING_TYPE_DEPENDENCY", + "EXTERNAL_API_WARNING", + "SCHEMA_VALIDATION_IGNORED", + "UNDECLARED_PROPERTIES", + "EXPERIMENTAL_TYPE_USED", + "DEPRECATED_TYPE_USED", + "PARTIAL_SUCCESS", + "LARGE_DEPLOYMENT_WARNING" + ], + "enumDescriptions": [ + "A link to a deprecated resource was created.", + "No results are present on a particular list page.", + "A given scope cannot be reached.", + "The route's nextHopIp address is not assigned to an instance on the network.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the same network as the route.", + "The route's next hop instance cannot ip forward.", + "The route's next hop instance does not have a status of RUNNING.", + "The operation involved use of an injected kernel, which is deprecated.", + "The user attempted to use a resource that requires a TOS they have not accepted.", + "The user created a boot disk that is larger than image size.", + "One or more of the resources set to auto-delete could not be deleted because they were in use.", + "Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.", + "Error which is not critical. We decided to continue the process despite the mentioned error.", + "Warning about failed cleanup of transient changes made by a failed operation.", + "Warning that value of a field has been overridden. Deprecated unused field.", + "Warning that a resource is in use.", + "A resource depends on a missing type", + "Warning that is present in an external api call", + "When a resource schema validation is ignored.", + "When undeclared properties in the schema are present", + "When deploying and at least one of the resources has a type marked as experimental", + "When deploying and at least one of the resources has a type marked as deprecated", + "Success is reported, but some results may be missing due to errors", + "When deploying a deployment with a exceedingly large number of resources" + ], "type": "string" }, "data": { - "description": "[Output Only] Metadata about this warning in key: value format. For example:\n\"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" }", + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", "items": { "properties": { "key": { @@ -2529,7 +2661,6 @@ "type": "object" }, "ResourceUpdate": { - "description": "", "id": "ResourceUpdate", "properties": { "accessControl": { @@ -2569,6 +2700,22 @@ }, "intent": { "description": "Output only. The intent of the resource: `PREVIEW`, `UPDATE`, or `CANCEL`.", + "enum": [ + "CREATE_OR_ACQUIRE", + "DELETE", + "ACQUIRE", + "UPDATE", + "ABANDON", + "CREATE" + ], + "enumDescriptions": [ + "The resource is scheduled to be created, or if it already exists, acquired.", + "The resource is scheduled to be deleted.", + "The resource is scheduled to be acquired.", + "The resource is scheduled to be updated via the UPDATE method.", + "The resource is scheduled to be abandoned.", + "The resource is scheduled to be created." + ], "type": "string" }, "manifest": { @@ -2581,6 +2728,20 @@ }, "state": { "description": "Output only. The state of the resource.", + "enum": [ + "PENDING", + "IN_PROGRESS", + "IN_PREVIEW", + "FAILED", + "ABORTED" + ], + "enumDescriptions": [ + "There are changes pending for this resource.", + "The service is executing changes on the resource.", + "The service is previewing changes on the resource.", + "The service has failed to change the resource.", + "The service has aborted trying to change the resource." + ], "type": "string" }, "warnings": { @@ -2589,10 +2750,64 @@ "properties": { "code": { "description": "[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.", + "enum": [ + "DEPRECATED_RESOURCE_USED", + "NO_RESULTS_ON_PAGE", + "UNREACHABLE", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_NOT_RUNNING", + "INJECTED_KERNELS_DEPRECATED", + "REQUIRED_TOS_AGREEMENT", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "RESOURCE_NOT_DELETED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "NOT_CRITICAL_ERROR", + "CLEANUP_FAILED", + "FIELD_VALUE_OVERRIDEN", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "MISSING_TYPE_DEPENDENCY", + "EXTERNAL_API_WARNING", + "SCHEMA_VALIDATION_IGNORED", + "UNDECLARED_PROPERTIES", + "EXPERIMENTAL_TYPE_USED", + "DEPRECATED_TYPE_USED", + "PARTIAL_SUCCESS", + "LARGE_DEPLOYMENT_WARNING" + ], + "enumDescriptions": [ + "A link to a deprecated resource was created.", + "No results are present on a particular list page.", + "A given scope cannot be reached.", + "The route's nextHopIp address is not assigned to an instance on the network.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the same network as the route.", + "The route's next hop instance cannot ip forward.", + "The route's next hop instance does not have a status of RUNNING.", + "The operation involved use of an injected kernel, which is deprecated.", + "The user attempted to use a resource that requires a TOS they have not accepted.", + "The user created a boot disk that is larger than image size.", + "One or more of the resources set to auto-delete could not be deleted because they were in use.", + "Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.", + "Error which is not critical. We decided to continue the process despite the mentioned error.", + "Warning about failed cleanup of transient changes made by a failed operation.", + "Warning that value of a field has been overridden. Deprecated unused field.", + "Warning that a resource is in use.", + "A resource depends on a missing type", + "Warning that is present in an external api call", + "When a resource schema validation is ignored.", + "When undeclared properties in the schema are present", + "When deploying and at least one of the resources has a type marked as experimental", + "When deploying and at least one of the resources has a type marked as deprecated", + "Success is reported, but some results may be missing due to errors", + "When deploying a deployment with a exceedingly large number of resources" + ], "type": "string" }, "data": { - "description": "[Output Only] Metadata about this warning in key: value format. For example:\n\"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" }", + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", "items": { "properties": { "key": { @@ -2638,56 +2853,6 @@ }, "type": "object" }, - "Rule": { - "description": "A rule to be applied in a Policy.", - "id": "Rule", - "properties": { - "action": { - "description": "Required", - "type": "string" - }, - "conditions": { - "description": "Additional restrictions that must be met. All conditions must pass for the rule to match.", - "items": { - "$ref": "Condition" - }, - "type": "array" - }, - "description": { - "description": "Human-readable description of the rule.", - "type": "string" - }, - "ins": { - "description": "If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.", - "items": { - "type": "string" - }, - "type": "array" - }, - "logConfigs": { - "description": "The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.", - "items": { - "$ref": "LogConfig" - }, - "type": "array" - }, - "notIns": { - "description": "If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.", - "items": { - "type": "string" - }, - "type": "array" - }, - "permissions": { - "description": "A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, "ServiceAccount": { "description": "Service Account used as a credential.", "id": "ServiceAccount", @@ -2700,7 +2865,6 @@ "type": "object" }, "TargetConfiguration": { - "description": "", "id": "TargetConfiguration", "properties": { "config": { @@ -2730,6 +2894,16 @@ }, "interpreter": { "description": "Which interpreter (python or jinja) should be used during expansion.", + "enum": [ + "UNKNOWN_INTERPRETER", + "PYTHON", + "JINJA" + ], + "enumDescriptions": [ + "", + "", + "" + ], "type": "string" }, "mainTemplate": { @@ -2794,7 +2968,7 @@ "type": "string" }, "labels": { - "description": "Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.", + "description": "Map of One Platform labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.", "items": { "$ref": "TypeLabelEntry" }, @@ -2851,7 +3025,6 @@ "type": "object" }, "TypeInfoSchemaInfo": { - "description": "", "id": "TypeInfoSchemaInfo", "properties": { "input": { @@ -2866,12 +3039,15 @@ "type": "object" }, "TypeLabelEntry": { + "description": "Label object for Types", "id": "TypeLabelEntry", "properties": { "key": { + "description": "Key of the label", "type": "string" }, "value": { + "description": "Value of the label", "type": "string" } }, @@ -2917,7 +3093,7 @@ "type": "string" }, "labels": { - "description": "Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.", + "description": "Map of One Platform labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`", "items": { "$ref": "TypeProviderLabelEntry" }, @@ -2943,12 +3119,15 @@ "type": "object" }, "TypeProviderLabelEntry": { + "description": "Label object for TypeProviders", "id": "TypeProviderLabelEntry", "properties": { "key": { + "description": "Key of the label", "type": "string" }, "value": { + "description": "Value of the label", "type": "string" } }, @@ -2973,7 +3152,6 @@ "type": "object" }, "TypeProvidersListTypesResponse": { - "description": "", "id": "TypeProvidersListTypesResponse", "properties": { "nextPageToken": { @@ -3014,17 +3192,45 @@ "properties": { "schemaValidation": { "description": "Customize how deployment manager will validate the resource against schema errors.", + "enum": [ + "UNKNOWN", + "IGNORE", + "IGNORE_WITH_WARNINGS", + "FAIL" + ], + "enumDescriptions": [ + "", + "Ignore schema failures.", + "Ignore schema failures but display them as warnings.", + "Fail the resource if the schema is not valid, this is the default behavior." + ], "type": "string" }, "undeclaredProperties": { "description": "Specify what to do with extra properties when executing a request.", + "enum": [ + "UNKNOWN", + "INCLUDE", + "IGNORE", + "INCLUDE_WITH_WARNINGS", + "IGNORE_WITH_WARNINGS", + "FAIL" + ], + "enumDescriptions": [ + "", + "Always include even if not present on discovery doc.", + "Always ignore if not present on discovery doc.", + "Include on request, but emit a warning.", + "Ignore properties, but emit a warning.", + "Always fail if undeclared properties are present." + ], "type": "string" } }, "type": "object" } }, - "servicePath": "deploymentmanager/v2beta/projects/", - "title": "Google Cloud Deployment Manager API V2Beta Methods", + "servicePath": "", + "title": "Cloud Deployment Manager V2 API", "version": "v2beta" } \ No newline at end of file diff --git a/deploymentmanager/v2beta/deploymentmanager-gen.go b/deploymentmanager/v2beta/deploymentmanager-gen.go index 9e23e4213ba..d1fb016fb84 100644 --- a/deploymentmanager/v2beta/deploymentmanager-gen.go +++ b/deploymentmanager/v2beta/deploymentmanager-gen.go @@ -4,9 +4,9 @@ // Code generated file. DO NOT EDIT. -// Package deploymentmanager provides access to the Google Cloud Deployment Manager API V2Beta Methods. +// Package deploymentmanager provides access to the Cloud Deployment Manager V2 API. // -// For product documentation, see: https://developers.google.com/deployment-manager/ +// For product documentation, see: https://cloud.google.com/deployment-manager // // Creating a client // @@ -78,7 +78,8 @@ var _ = internaloption.WithDefaultEndpoint const apiId = "deploymentmanager:v2beta" const apiName = "deploymentmanager" const apiVersion = "v2beta" -const basePath = "https://www.googleapis.com/deploymentmanager/v2beta/projects/" +const basePath = "https://deploymentmanager.googleapis.com/" +const mtlsBasePath = "https://deploymentmanager.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( @@ -108,6 +109,7 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -269,33 +271,26 @@ func (s *AsyncOptions) MarshalJSON() ([]byte, error) { // AuditConfig: Specifies the audit configuration for a service. The // configuration determines which permission types are logged, and what // identities, if any, are exempted from logging. An AuditConfig must -// have one or more AuditLogConfigs. -// -// If there are AuditConfigs for both `allServices` and a specific -// service, the union of the two AuditConfigs is used for that service: -// the log_types specified in each AuditConfig are enabled, and the -// exempted_members in each AuditLogConfig are exempted. -// -// Example Policy with multiple AuditConfigs: -// -// { "audit_configs": [ { "service": "allServices" "audit_log_configs": -// [ { "log_type": "DATA_READ", "exempted_members": [ -// "user:jose@example.com" ] }, { "log_type": "DATA_WRITE", }, { -// "log_type": "ADMIN_READ", } ] }, { "service": -// "sampleservice.googleapis.com" "audit_log_configs": [ { "log_type": -// "DATA_READ", }, { "log_type": "DATA_WRITE", "exempted_members": [ -// "user:aliya@example.com" ] } ] } ] } -// -// For sampleservice, this policy enables DATA_READ, DATA_WRITE and -// ADMIN_READ logging. It also exempts jose@example.com from DATA_READ -// logging, and aliya@example.com from DATA_WRITE logging. +// have one or more AuditLogConfigs. If there are AuditConfigs for both +// `allServices` and a specific service, the union of the two +// AuditConfigs is used for that service: the log_types specified in +// each AuditConfig are enabled, and the exempted_members in each +// AuditLogConfig are exempted. Example Policy with multiple +// AuditConfigs: { "audit_configs": [ { "service": "allServices", +// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": +// [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { +// "log_type": "ADMIN_READ" } ] }, { "service": +// "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": +// "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ +// "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy +// enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts +// jose@example.com from DATA_READ logging, and aliya@example.com from +// DATA_WRITE logging. type AuditConfig struct { // AuditLogConfigs: The configuration for logging of each type of // permission. AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"` - ExemptedMembers []string `json:"exemptedMembers,omitempty"` - // Service: Specifies a service that will be enabled for audit logging. // For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. // `allServices` is a special value that covers all services. @@ -326,23 +321,24 @@ func (s *AuditConfig) MarshalJSON() ([]byte, error) { } // AuditLogConfig: Provides the configuration for logging a type of -// permissions. Example: -// -// { "audit_log_configs": [ { "log_type": "DATA_READ", -// "exempted_members": [ "user:jose@example.com" ] }, { "log_type": -// "DATA_WRITE", } ] } -// -// This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting -// jose@example.com from DATA_READ logging. +// permissions. Example: { "audit_log_configs": [ { "log_type": +// "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { +// "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and +// 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ +// logging. type AuditLogConfig struct { // ExemptedMembers: Specifies the identities that do not cause logging // for this type of permission. Follows the same format of - // [Binding.members][]. + // Binding.members. ExemptedMembers []string `json:"exemptedMembers,omitempty"` - IgnoreChildExemptions bool `json:"ignoreChildExemptions,omitempty"` - // LogType: The log type that this config enables. + // + // Possible values: + // "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this. + // "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy + // "DATA_WRITE" - Data writes. Example: CloudSQL Users create + // "DATA_READ" - Data reads. Example: CloudSQL Users list LogType string `json:"logType,omitempty"` // ForceSendFields is a list of field names (e.g. "ExemptedMembers") to @@ -369,36 +365,6 @@ func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AuthorizationLoggingOptions: Authorization-related information used -// by Cloud Audit Logging. -type AuthorizationLoggingOptions struct { - // PermissionType: The type of the permission that was checked. - PermissionType string `json:"permissionType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "PermissionType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PermissionType") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *AuthorizationLoggingOptions) MarshalJSON() ([]byte, error) { - type NoMethod AuthorizationLoggingOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // BaseType: BaseType that describes a service-backed Type. type BaseType struct { // CollectionOverrides: Allows resource handling overrides for specific @@ -470,68 +436,49 @@ func (s *BasicAuth) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { - // Condition: The condition that is associated with this binding. - // - // If the condition evaluates to `true`, then this binding applies to - // the current request. - // - // If the condition evaluates to `false`, then this binding does not - // apply to the current request. However, a different role binding might - // grant the same role to one or more of the members in this - // binding. - // - // To learn which resources support conditions in their IAM policies, - // see the [IAM + // Condition: The condition that is associated with this binding. If the + // condition evaluates to `true`, then this binding applies to the + // current request. If the condition evaluates to `false`, then this + // binding does not apply to the current request. However, a different + // role binding might grant the same role to one or more of the members + // in this binding. To learn which resources support conditions in their + // IAM policies, see the [IAM // documentation](https://cloud.google.com/iam/help/conditions/resource-p // olicies). Condition *Expr `json:"condition,omitempty"` // Members: Specifies the identities requesting access for a Cloud - // Platform resource. `members` can have the following values: - // - // * `allUsers`: A special identifier that represents anyone who is on - // the internet; with or without a Google account. - // - // * `allAuthenticatedUsers`: A special identifier that represents - // anyone who is authenticated with a Google account or a service - // account. - // - // * `user:{emailid}`: An email address that represents a specific - // Google account. For example, `alice@example.com` . - // - // - // - // * `serviceAccount:{emailid}`: An email address that represents a + // Platform resource. `members` can have the following values: * + // `allUsers`: A special identifier that represents anyone who is on the + // internet; with or without a Google account. * + // `allAuthenticatedUsers`: A special identifier that represents anyone + // who is authenticated with a Google account or a service account. * + // `user:{emailid}`: An email address that represents a specific Google + // account. For example, `alice@example.com` . * + // `serviceAccount:{emailid}`: An email address that represents a // service account. For example, - // `my-other-app@appspot.gserviceaccount.com`. - // - // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. - // - // * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus - // unique identifier) representing a user that has been recently - // deleted. For example, `alice@example.com?uid=123456789012345678901`. - // If the user is recovered, this value reverts to `user:{emailid}` and - // the recovered user retains the role in the binding. - // - // * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address + // `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An + // email address that represents a Google group. For example, + // `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An + // email address (plus unique identifier) representing a user that has + // been recently deleted. For example, + // `alice@example.com?uid=123456789012345678901`. If the user is + // recovered, this value reverts to `user:{emailid}` and the recovered + // user retains the role in the binding. * + // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address // (plus unique identifier) representing a service account that has been // recently deleted. For example, // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. // If the service account is undeleted, this value reverts to // `serviceAccount:{emailid}` and the undeleted service account retains - // the role in the binding. - // - // * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus - // unique identifier) representing a Google group that has been recently - // deleted. For example, `admins@example.com?uid=123456789012345678901`. - // If the group is recovered, this value reverts to `group:{emailid}` - // and the recovered group retains the role in the binding. - // - // - // - // * `domain:{domain}`: The G Suite domain (primary) that represents all - // the users of that domain. For example, `google.com` or `example.com`. + // the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: + // An email address (plus unique identifier) representing a Google group + // that has been recently deleted. For example, + // `admins@example.com?uid=123456789012345678901`. If the group is + // recovered, this value reverts to `group:{emailid}` and the recovered + // group retains the role in the binding. * `domain:{domain}`: The G + // Suite domain (primary) that represents all the users of that domain. + // For example, `google.com` or `example.com`. Members []string `json:"members,omitempty"` // Role: Role that is assigned to `members`. For example, @@ -624,6 +571,11 @@ type CompositeType struct { // SelfLink: Output only. Server defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` + // Possible values: + // "UNKNOWN_STATUS" + // "DEPRECATED" + // "EXPERIMENTAL" + // "SUPPORTED" Status string `json:"status,omitempty"` // TemplateContents: Files for the template type. @@ -656,9 +608,12 @@ func (s *CompositeType) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CompositeTypeLabelEntry: Label object for CompositeTypes type CompositeTypeLabelEntry struct { + // Key: Key of the label Key string `json:"key,omitempty"` + // Value: Value of the label Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") to @@ -722,47 +677,6 @@ func (s *CompositeTypesListResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Condition: A condition to be met. -type Condition struct { - // Iam: Trusted attributes supplied by the IAM system. - Iam string `json:"iam,omitempty"` - - // Op: An operator to apply the subject with. - Op string `json:"op,omitempty"` - - // Svc: Trusted attributes discharged by the service. - Svc string `json:"svc,omitempty"` - - // Sys: Trusted attributes supplied by any service that owns resources - // and uses the IAM system for access control. - Sys string `json:"sys,omitempty"` - - // Values: The objects of the condition. - Values []string `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Iam") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Iam") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *Condition) MarshalJSON() ([]byte, error) { - type NoMethod Condition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - type ConfigFile struct { // Content: The contents of the file. Content string `json:"content,omitempty"` @@ -835,11 +749,10 @@ type Deployment struct { // requests. A fingerprint is a randomly generated value that must be // provided with `update()`, `stop()`, and `cancelPreview()` requests to // perform optimistic locking. This ensures optimistic concurrency so - // that only one request happens at a time. - // - // The fingerprint is initially generated by Deployment Manager and - // changes after every request to modify data. To get the latest - // fingerprint value, perform a `get()` request to a deployment. + // that only one request happens at a time. The fingerprint is initially + // generated by Deployment Manager and changes after every request to + // modify data. To get the latest fingerprint value, perform a `get()` + // request to a deployment. Fingerprint string `json:"fingerprint,omitempty"` Id uint64 `json:"id,omitempty,string"` @@ -847,12 +760,12 @@ type Deployment struct { // InsertTime: Output only. Creation timestamp in RFC3339 text format. InsertTime string `json:"insertTime,omitempty"` - // Labels: Map of labels; provided by the client when the resource is - // created or updated. Specifically: Label keys must be between 1 and 63 - // characters long and must conform to the following regular expression: - // `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 - // characters long and must conform to the regular expression - // `([a-z]([-a-z0-9]*[a-z0-9])?)?`. + // Labels: Map of One Platform labels; provided by the client when the + // resource is created or updated. Specifically: Label keys must be + // between 1 and 63 characters long and must conform to the following + // regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be + // between 0 and 63 characters long and must conform to the regular + // expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. Labels []*DeploymentLabelEntry `json:"labels,omitempty"` // Manifest: Output only. URL of the manifest representing the last @@ -915,9 +828,12 @@ func (s *Deployment) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DeploymentLabelEntry: Label object for Deployments type DeploymentLabelEntry struct { + // Key: Key of the label Key string `json:"key,omitempty"` + // Value: Value of the label Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") to @@ -948,7 +864,7 @@ type DeploymentUpdate struct { // the deployment after the current update has been applied. Description string `json:"description,omitempty"` - // Labels: Output only. Map of labels; provided by the client when the + // Labels: Map of One Platform labels; provided by the client when the // resource is created or updated. Specifically: Label keys must be // between 1 and 63 characters long and must conform to the following // regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be @@ -983,9 +899,12 @@ func (s *DeploymentUpdate) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DeploymentUpdateLabelEntry: Label object for DeploymentUpdate type DeploymentUpdateLabelEntry struct { + // Key: Key of the label Key string `json:"key,omitempty"` + // Value: Value of the label Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") to @@ -1018,11 +937,10 @@ type DeploymentsCancelPreviewRequest struct { // ensures optimistic concurrency so that the deployment does not have // conflicting requests (e.g. if someone attempts to make a new update // request while another user attempts to cancel a preview, this would - // prevent one of the requests). - // - // The fingerprint is initially generated by Deployment Manager and - // changes after every request to modify a deployment. To get the latest - // fingerprint value, perform a `get()` request on the deployment. + // prevent one of the requests). The fingerprint is initially generated + // by Deployment Manager and changes after every request to modify a + // deployment. To get the latest fingerprint value, perform a `get()` + // request on the deployment. Fingerprint string `json:"fingerprint,omitempty"` // ForceSendFields is a list of field names (e.g. "Fingerprint") to @@ -1093,11 +1011,10 @@ type DeploymentsStopRequest struct { // optimistic concurrency so that the deployment does not have // conflicting requests (e.g. if someone attempts to make a new update // request while another user attempts to stop an ongoing update - // request, this would prevent a collision). - // - // The fingerprint is initially generated by Deployment Manager and - // changes after every request to modify a deployment. To get the latest - // fingerprint value, perform a `get()` request on the deployment. + // request, this would prevent a collision). The fingerprint is + // initially generated by Deployment Manager and changes after every + // request to modify a deployment. To get the latest fingerprint value, + // perform a `get()` request on the deployment. Fingerprint string `json:"fingerprint,omitempty"` // ForceSendFields is a list of field names (e.g. "Fingerprint") to @@ -1129,6 +1046,16 @@ type Diagnostic struct { Field string `json:"field,omitempty"` // Level: Level to record this diagnostic. + // + // Possible values: + // "UNKNOWN" + // "INFORMATION" - If level is informational, it only gets displayed + // as part of the resource. + // "WARNING" - If level is warning, will end up in the resource as a + // warning. + // "ERROR" - If level is error, it will indicate an error occurred + // after finishCondition is set, and this field will populate resource + // errors and operation errors. Level string `json:"level,omitempty"` // ForceSendFields is a list of field names (e.g. "Field") to @@ -1157,35 +1084,21 @@ func (s *Diagnostic) MarshalJSON() ([]byte, error) { // Expr: Represents a textual expression in the Common Expression // Language (CEL) syntax. CEL is a C-like expression language. The // syntax and semantics of CEL are documented at -// https://github.com/google/cel-spec. -// -// Example (Comparison): -// -// title: "Summary size limit" description: "Determines if a summary is -// less than 100 chars" expression: "document.summary.size() < -// 100" -// -// Example (Equality): -// -// title: "Requestor is owner" description: "Determines if requestor is -// the document owner" expression: "document.owner == -// request.auth.claims.email" -// -// Example (Logic): -// -// title: "Public documents" description: "Determine whether the -// document should be publicly visible" expression: "document.type != -// 'private' && document.type != 'internal'" -// -// Example (Data Manipulation): -// -// title: "Notification string" description: "Create a notification -// string with a timestamp." expression: "'New message received at ' + -// string(document.create_time)" -// -// The exact variables and functions that may be referenced within an -// expression are determined by the service that evaluates it. See the -// service documentation for additional information. +// https://github.com/google/cel-spec. Example (Comparison): title: +// "Summary size limit" description: "Determines if a summary is less +// than 100 chars" expression: "document.summary.size() < 100" Example +// (Equality): title: "Requestor is owner" description: "Determines if +// requestor is the document owner" expression: "document.owner == +// request.auth.claims.email" Example (Logic): title: "Public documents" +// description: "Determine whether the document should be publicly +// visible" expression: "document.type != 'private' && document.type != +// 'internal'" Example (Data Manipulation): title: "Notification string" +// description: "Create a notification string with a timestamp." +// expression: "'New message received at ' + +// string(document.create_time)" The exact variables and functions that +// may be referenced within an expression are determined by the service +// that evaluates it. See the service documentation for additional +// information. type Expr struct { // Description: Optional. Description of the expression. This is a // longer text which describes the expression, e.g. when hovered over it @@ -1304,6 +1217,13 @@ type InputMapping struct { FieldName string `json:"fieldName,omitempty"` // Location: The location where this mapping applies. + // + // Possible values: + // "UNKNOWN" + // "PATH" + // "QUERY" + // "BODY" + // "HEADER" Location string `json:"location,omitempty"` // MethodMatch: Regex to evaluate on method to decide if input applies. @@ -1335,192 +1255,6 @@ func (s *InputMapping) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// LogConfig: Specifies what kind of log the caller must write -type LogConfig struct { - // CloudAudit: Cloud audit options. - CloudAudit *LogConfigCloudAuditOptions `json:"cloudAudit,omitempty"` - - // Counter: Counter options. - Counter *LogConfigCounterOptions `json:"counter,omitempty"` - - // DataAccess: Data access options. - DataAccess *LogConfigDataAccessOptions `json:"dataAccess,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CloudAudit") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CloudAudit") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *LogConfig) MarshalJSON() ([]byte, error) { - type NoMethod LogConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// LogConfigCloudAuditOptions: Write a Cloud Audit log -type LogConfigCloudAuditOptions struct { - // AuthorizationLoggingOptions: Information used by the Cloud Audit - // Logging pipeline. - AuthorizationLoggingOptions *AuthorizationLoggingOptions `json:"authorizationLoggingOptions,omitempty"` - - // LogName: The log_name to populate in the Cloud Audit Record. - LogName string `json:"logName,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AuthorizationLoggingOptions") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "AuthorizationLoggingOptions") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *LogConfigCloudAuditOptions) MarshalJSON() ([]byte, error) { - type NoMethod LogConfigCloudAuditOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// LogConfigCounterOptions: Increment a streamz counter with the -// specified metric and field names. -// -// Metric names should start with a '/', generally be lowercase-only, -// and end in "_count". Field names should not contain an initial slash. -// The actual exported metric names will have "/iam/policy" -// prepended. -// -// Field names correspond to IAM request parameters and field values are -// their respective values. -// -// Supported field names: - "authority", which is "[token]" if -// IAMContext.token is present, otherwise the value of -// IAMContext.authority_selector if present, and otherwise a -// representation of IAMContext.principal; or - "iam_principal", a -// representation of IAMContext.principal even if a token or authority -// selector is present; or - "" (empty string), resulting in a counter -// with no fields. -// -// Examples: counter { metric: "/debug_access_count" field: -// "iam_principal" } ==> increment counter -// /iam/policy/debug_access_count {iam_principal=[value of -// IAMContext.principal]} -type LogConfigCounterOptions struct { - // CustomFields: Custom fields. - CustomFields []*LogConfigCounterOptionsCustomField `json:"customFields,omitempty"` - - // Field: The field value to attribute. - Field string `json:"field,omitempty"` - - // Metric: The metric to update. - Metric string `json:"metric,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CustomFields") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CustomFields") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *LogConfigCounterOptions) MarshalJSON() ([]byte, error) { - type NoMethod LogConfigCounterOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// LogConfigCounterOptionsCustomField: Custom fields. These can be used -// to create a counter with arbitrary field/value pairs. See: -// go/rpcsp-custom-fields. -type LogConfigCounterOptionsCustomField struct { - // Name: Name is the field name. - Name string `json:"name,omitempty"` - - // Value: Value is the field value. It is important that in contrast to - // the CounterOptions.field, the value here is a constant that is not - // derived from the IAMContext. - Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *LogConfigCounterOptionsCustomField) MarshalJSON() ([]byte, error) { - type NoMethod LogConfigCounterOptionsCustomField - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// LogConfigDataAccessOptions: Write a Data Access (Gin) log -type LogConfigDataAccessOptions struct { - LogMode string `json:"logMode,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LogMode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LogMode") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *LogConfigDataAccessOptions) MarshalJSON() ([]byte, error) { - type NoMethod LogConfigDataAccessOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - type Manifest struct { // Config: Output only. The YAML configuration for this manifest. Config *ConfigFile `json:"config,omitempty"` @@ -1540,9 +1274,7 @@ type Manifest struct { // Layout: Output only. The YAML layout for this manifest. Layout string `json:"layout,omitempty"` - // Name: Output only. - // - // The name of the manifest. + // Name: Output only. The name of the manifest. Name string `json:"name,omitempty"` // SelfLink: Output only. Self link for the manifest. @@ -1613,30 +1345,20 @@ func (s *ManifestsListResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Operation: Represents an Operation resource. -// -// Google Compute Engine has three Operation resources: -// -// * +// Operation: Represents an Operation resource. Google Compute Engine +// has three Operation resources: * // [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) // * // [Regional](/compute/docs/reference/rest/{$api_version}/regionOperation // s) * // [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) -// -// Y -// ou can use an operation resource to manage asynchronous API requests. -// For more information, read Handling API responses. -// -// Operations can be global, regional or zonal. -// - For global operations, use the `globalOperations` resource. -// - For regional operations, use the `regionOperations` resource. -// - For zonal operations, use the `zonalOperations` resource. -// -// For more information, read Global, Regional, and Zonal Resources. -// (== resource_for {$api_version}.globalOperations ==) (== resource_for -// {$api_version}.regionOperations ==) (== resource_for -// {$api_version}.zoneOperations ==) +// You can use an operation resource to manage asynchronous API +// requests. For more information, read Handling API responses. +// Operations can be global, regional or zonal. - For global operations, +// use the `globalOperations` resource. - For regional operations, use +// the `regionOperations` resource. - For zonal operations, use the +// `zonalOperations` resource. For more information, read Global, +// Regional, and Zonal Resources. type Operation struct { // ClientOperationId: [Output Only] The value of `requestId` if you // provided it in the request. Not present otherwise. @@ -1706,6 +1428,11 @@ type Operation struct { // Status: [Output Only] The status of the operation, which can be one // of the following: `PENDING`, `RUNNING`, or `DONE`. + // + // Possible values: + // "PENDING" + // "RUNNING" + // "DONE" Status string `json:"status,omitempty"` // StatusMessage: [Output Only] An optional textual description of the @@ -1829,11 +1556,64 @@ type OperationWarnings struct { // Code: [Output Only] A warning code, if applicable. For example, // Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in // the response. + // + // Possible values: + // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was + // created. + // "NO_RESULTS_ON_PAGE" - No results are present on a particular list + // page. + // "UNREACHABLE" - A given scope cannot be reached. + // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is + // not assigned to an instance on the network. + // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL + // refers to an instance that does not exist. + // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance + // URL refers to an instance that is not on the same network as the + // route. + // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot + // ip forward. + // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not + // have a status of RUNNING. + // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an + // injected kernel, which is deprecated. + // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource + // that requires a TOS they have not accepted. + // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk + // that is larger than image size. + // "RESOURCE_NOT_DELETED" - One or more of the resources set to + // auto-delete could not be deleted because they were in use. + // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in + // instance group manager is valid as such, but its application does not + // make a lot of sense, because it allows only single instance in + // instance group. + // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to + // continue the process despite the mentioned error. + // "CLEANUP_FAILED" - Warning about failed cleanup of transient + // changes made by a failed operation. + // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been + // overridden. Deprecated unused field. + // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a + // resource is in use. + // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type + // "EXTERNAL_API_WARNING" - Warning that is present in an external api + // call + // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is + // ignored. + // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema + // are present + // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as experimental + // "DEPRECATED_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as deprecated + // "PARTIAL_SUCCESS" - Success is reported, but some results may be + // missing due to errors + // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a + // exceedingly large number of resources Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. - // For example: - // "data": [ { "key": "scope", "value": "zones/us-east1-d" } + // For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" + // } Data []*OperationWarningsData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning @@ -1985,50 +1765,37 @@ func (s *Options) MarshalJSON() ([]byte, error) { } // Policy: An Identity and Access Management (IAM) policy, which -// specifies access controls for Google Cloud resources. -// -// -// -// A `Policy` is a collection of `bindings`. A `binding` binds one or -// more `members` to a single `role`. Members can be user accounts, -// service accounts, Google groups, and domains (such as G Suite). A -// `role` is a named list of permissions; each `role` can be an IAM -// predefined role or a user-created custom role. -// -// For some types of Google Cloud resources, a `binding` can also -// specify a `condition`, which is a logical expression that allows -// access to a resource only if the expression evaluates to `true`. A -// condition can add constraints based on attributes of the request, the -// resource, or both. To learn which resources support conditions in -// their IAM policies, see the [IAM +// specifies access controls for Google Cloud resources. A `Policy` is a +// collection of `bindings`. A `binding` binds one or more `members` to +// a single `role`. Members can be user accounts, service accounts, +// Google groups, and domains (such as G Suite). A `role` is a named +// list of permissions; each `role` can be an IAM predefined role or a +// user-created custom role. For some types of Google Cloud resources, a +// `binding` can also specify a `condition`, which is a logical +// expression that allows access to a resource only if the expression +// evaluates to `true`. A condition can add constraints based on +// attributes of the request, the resource, or both. To learn which +// resources support conditions in their IAM policies, see the [IAM // documentation](https://cloud.google.com/iam/help/conditions/resource-p -// olicies). -// -// **JSON example:** -// -// { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", -// "members": [ "user:mike@example.com", "group:admins@example.com", +// olicies). **JSON example:** { "bindings": [ { "role": +// "roles/resourcemanager.organizationAdmin", "members": [ +// "user:mike@example.com", "group:admins@example.com", // "domain:google.com", // "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { // "role": "roles/resourcemanager.organizationViewer", "members": [ // "user:eve@example.com" ], "condition": { "title": "expirable access", // "description": "Does not grant access after Sep 2020", "expression": // "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], -// "etag": "BwWWja0YfJA=", "version": 3 } -// -// **YAML example:** -// -// bindings: - members: - user:mike@example.com - -// group:admins@example.com - domain:google.com - +// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - +// members: - user:mike@example.com - group:admins@example.com - +// domain:google.com - // serviceAccount:my-project-id@appspot.gserviceaccount.com role: // roles/resourcemanager.organizationAdmin - members: - // user:eve@example.com role: roles/resourcemanager.organizationViewer // condition: title: expirable access description: Does not grant access // after Sep 2020 expression: request.time < // timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: -// 3 -// -// For a description of IAM and its features, see the [IAM +// 3 For a description of IAM and its features, see the [IAM // documentation](https://cloud.google.com/iam/docs/). type Policy struct { // AuditConfigs: Specifies cloud audit logging configuration for this @@ -2047,50 +1814,28 @@ type Policy struct { // avoid race conditions: An `etag` is returned in the response to // `getIamPolicy`, and systems are expected to put that etag in the // request to `setIamPolicy` to ensure that their change will be applied - // to the same version of the policy. - // - // **Important:** If you use IAM Conditions, you must include the `etag` - // field whenever you call `setIamPolicy`. If you omit this field, then - // IAM allows you to overwrite a version `3` policy with a version `1` - // policy, and all of the conditions in the version `3` policy are lost. + // to the same version of the policy. **Important:** If you use IAM + // Conditions, you must include the `etag` field whenever you call + // `setIamPolicy`. If you omit this field, then IAM allows you to + // overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. Etag string `json:"etag,omitempty"` - IamOwned bool `json:"iamOwned,omitempty"` - - // Rules: If more than one rule is specified, the rules are applied in - // the following manner: - All matching LOG rules are always applied. - - // If any DENY/DENY_WITH_LOG rule matches, permission is denied. Logging - // will be applied if one or more matching rule requires logging. - - // Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is - // granted. Logging will be applied if one or more matching rule - // requires logging. - Otherwise, if no rule applies, permission is - // denied. - Rules []*Rule `json:"rules,omitempty"` - - // Version: Specifies the format of the policy. - // - // Valid values are `0`, `1`, and `3`. Requests that specify an invalid - // value are rejected. - // + // Version: Specifies the format of the policy. Valid values are `0`, + // `1`, and `3`. Requests that specify an invalid value are rejected. // Any operation that affects conditional role bindings must specify - // version `3`. This requirement applies to the following operations: - // - // * Getting a policy that includes a conditional role binding * Adding - // a conditional role binding to a policy * Changing a conditional role + // version `3`. This requirement applies to the following operations: * + // Getting a policy that includes a conditional role binding * Adding a + // conditional role binding to a policy * Changing a conditional role // binding in a policy * Removing any role binding, with or without a - // condition, from a policy that includes conditions - // - // **Important:** If you use IAM Conditions, you must include the `etag` - // field whenever you call `setIamPolicy`. If you omit this field, then - // IAM allows you to overwrite a version `3` policy with a version `1` - // policy, and all of the conditions in the version `3` policy are - // lost. - // - // If a policy does not include any conditions, operations on that - // policy may specify any valid version or leave the field unset. - // - // To learn which resources support conditions in their IAM policies, - // see the [IAM + // condition, from a policy that includes conditions **Important:** If + // you use IAM Conditions, you must include the `etag` field whenever + // you call `setIamPolicy`. If you omit this field, then IAM allows you + // to overwrite a version `3` policy with a version `1` policy, and all + // of the conditions in the version `3` policy are lost. If a policy + // does not include any conditions, operations on that policy may + // specify any valid version or leave the field unset. To learn which + // resources support conditions in their IAM policies, see the [IAM // documentation](https://cloud.google.com/iam/help/conditions/resource-p // olicies). Version int64 `json:"version,omitempty"` @@ -2242,11 +1987,64 @@ type ResourceWarnings struct { // Code: [Output Only] A warning code, if applicable. For example, // Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in // the response. + // + // Possible values: + // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was + // created. + // "NO_RESULTS_ON_PAGE" - No results are present on a particular list + // page. + // "UNREACHABLE" - A given scope cannot be reached. + // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is + // not assigned to an instance on the network. + // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL + // refers to an instance that does not exist. + // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance + // URL refers to an instance that is not on the same network as the + // route. + // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot + // ip forward. + // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not + // have a status of RUNNING. + // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an + // injected kernel, which is deprecated. + // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource + // that requires a TOS they have not accepted. + // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk + // that is larger than image size. + // "RESOURCE_NOT_DELETED" - One or more of the resources set to + // auto-delete could not be deleted because they were in use. + // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in + // instance group manager is valid as such, but its application does not + // make a lot of sense, because it allows only single instance in + // instance group. + // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to + // continue the process despite the mentioned error. + // "CLEANUP_FAILED" - Warning about failed cleanup of transient + // changes made by a failed operation. + // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been + // overridden. Deprecated unused field. + // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a + // resource is in use. + // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type + // "EXTERNAL_API_WARNING" - Warning that is present in an external api + // call + // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is + // ignored. + // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema + // are present + // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as experimental + // "DEPRECATED_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as deprecated + // "PARTIAL_SUCCESS" - Success is reported, but some results may be + // missing due to errors + // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a + // exceedingly large number of resources Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. - // For example: - // "data": [ { "key": "scope", "value": "zones/us-east1-d" } + // For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" + // } Data []*ResourceWarningsData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning @@ -2356,6 +2154,16 @@ type ResourceUpdate struct { // Intent: Output only. The intent of the resource: `PREVIEW`, `UPDATE`, // or `CANCEL`. + // + // Possible values: + // "CREATE_OR_ACQUIRE" - The resource is scheduled to be created, or + // if it already exists, acquired. + // "DELETE" - The resource is scheduled to be deleted. + // "ACQUIRE" - The resource is scheduled to be acquired. + // "UPDATE" - The resource is scheduled to be updated via the UPDATE + // method. + // "ABANDON" - The resource is scheduled to be abandoned. + // "CREATE" - The resource is scheduled to be created. Intent string `json:"intent,omitempty"` // Manifest: Output only. URL of the manifest representing the update @@ -2368,6 +2176,13 @@ type ResourceUpdate struct { Properties string `json:"properties,omitempty"` // State: Output only. The state of the resource. + // + // Possible values: + // "PENDING" - There are changes pending for this resource. + // "IN_PROGRESS" - The service is executing changes on the resource. + // "IN_PREVIEW" - The service is previewing changes on the resource. + // "FAILED" - The service has failed to change the resource. + // "ABORTED" - The service has aborted trying to change the resource. State string `json:"state,omitempty"` // Warnings: Output only. If warning messages are generated during @@ -2465,11 +2280,64 @@ type ResourceUpdateWarnings struct { // Code: [Output Only] A warning code, if applicable. For example, // Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in // the response. + // + // Possible values: + // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was + // created. + // "NO_RESULTS_ON_PAGE" - No results are present on a particular list + // page. + // "UNREACHABLE" - A given scope cannot be reached. + // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is + // not assigned to an instance on the network. + // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL + // refers to an instance that does not exist. + // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance + // URL refers to an instance that is not on the same network as the + // route. + // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot + // ip forward. + // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not + // have a status of RUNNING. + // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an + // injected kernel, which is deprecated. + // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource + // that requires a TOS they have not accepted. + // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk + // that is larger than image size. + // "RESOURCE_NOT_DELETED" - One or more of the resources set to + // auto-delete could not be deleted because they were in use. + // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in + // instance group manager is valid as such, but its application does not + // make a lot of sense, because it allows only single instance in + // instance group. + // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to + // continue the process despite the mentioned error. + // "CLEANUP_FAILED" - Warning about failed cleanup of transient + // changes made by a failed operation. + // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been + // overridden. Deprecated unused field. + // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a + // resource is in use. + // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type + // "EXTERNAL_API_WARNING" - Warning that is present in an external api + // call + // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is + // ignored. + // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema + // are present + // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as experimental + // "DEPRECATED_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as deprecated + // "PARTIAL_SUCCESS" - Success is reported, but some results may be + // missing due to errors + // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a + // exceedingly large number of resources Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. - // For example: - // "data": [ { "key": "scope", "value": "zones/us-east1-d" } + // For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" + // } Data []*ResourceUpdateWarningsData `json:"data,omitempty"` // Message: [Output Only] A human-readable description of the warning @@ -2573,59 +2441,6 @@ func (s *ResourcesListResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Rule: A rule to be applied in a Policy. -type Rule struct { - // Action: Required - Action string `json:"action,omitempty"` - - // Conditions: Additional restrictions that must be met. All conditions - // must pass for the rule to match. - Conditions []*Condition `json:"conditions,omitempty"` - - // Description: Human-readable description of the rule. - Description string `json:"description,omitempty"` - - // Ins: If one or more 'in' clauses are specified, the rule matches if - // the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries. - Ins []string `json:"ins,omitempty"` - - // LogConfigs: The config returned to callers of - // tech.iam.IAM.CheckPolicy for any entries that match the LOG action. - LogConfigs []*LogConfig `json:"logConfigs,omitempty"` - - // NotIns: If one or more 'not_in' clauses are specified, the rule - // matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the - // entries. - NotIns []string `json:"notIns,omitempty"` - - // Permissions: A permission is a string of form '..' (e.g., - // 'storage.buckets.list'). A value of '*' matches all permissions, and - // a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs. - Permissions []string `json:"permissions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Action") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Action") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *Rule) MarshalJSON() ([]byte, error) { - type NoMethod Rule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // ServiceAccount: Service Account used as a credential. type ServiceAccount struct { // Email: The IAM service account email address like @@ -2695,6 +2510,11 @@ type TemplateContents struct { // Interpreter: Which interpreter (python or jinja) should be used // during expansion. + // + // Possible values: + // "UNKNOWN_INTERPRETER" + // "PYTHON" + // "JINJA" Interpreter string `json:"interpreter,omitempty"` // MainTemplate: The filename of the mainTemplate @@ -2804,12 +2624,12 @@ type Type struct { // InsertTime: Output only. Creation timestamp in RFC3339 text format. InsertTime string `json:"insertTime,omitempty"` - // Labels: Map of labels; provided by the client when the resource is - // created or updated. Specifically: Label keys must be between 1 and 63 - // characters long and must conform to the following regular expression: - // `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 - // characters long and must conform to the regular expression - // `([a-z]([-a-z0-9]*[a-z0-9])?)?`. + // Labels: Map of One Platform labels; provided by the client when the + // resource is created or updated. Specifically: Label keys must be + // between 1 and 63 characters long and must conform to the following + // regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be + // between 0 and 63 characters long and must conform to the regular + // expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. Labels []*TypeLabelEntry `json:"labels,omitempty"` // Name: Name of the type. @@ -2933,9 +2753,12 @@ func (s *TypeInfoSchemaInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TypeLabelEntry: Label object for Types type TypeLabelEntry struct { + // Key: Key of the label Key string `json:"key,omitempty"` + // Value: Value of the label Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") to @@ -2993,12 +2816,12 @@ type TypeProvider struct { // InsertTime: Output only. Creation timestamp in RFC3339 text format. InsertTime string `json:"insertTime,omitempty"` - // Labels: Map of labels; provided by the client when the resource is - // created or updated. Specifically: Label keys must be between 1 and 63 - // characters long and must conform to the following regular expression: - // `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 - // characters long and must conform to the regular expression - // `([a-z]([-a-z0-9]*[a-z0-9])?)?`. + // Labels: Map of One Platform labels; provided by the client when the + // resource is created or updated. Specifically: Label keys must be + // between 1 and 63 characters long and must conform to the following + // regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be + // between 0 and 63 characters long and must conform to the regular + // expression `([a-z]([-a-z0-9]*[a-z0-9])?)?` Labels []*TypeProviderLabelEntry `json:"labels,omitempty"` // Name: Name of the resource; provided by the client when the resource @@ -3049,9 +2872,12 @@ func (s *TypeProvider) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TypeProviderLabelEntry: Label object for TypeProviders type TypeProviderLabelEntry struct { + // Key: Key of the label Key string `json:"key,omitempty"` + // Value: Value of the label Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") to @@ -3190,10 +3016,26 @@ func (s *TypesListResponse) MarshalJSON() ([]byte, error) { type ValidationOptions struct { // SchemaValidation: Customize how deployment manager will validate the // resource against schema errors. + // + // Possible values: + // "UNKNOWN" + // "IGNORE" - Ignore schema failures. + // "IGNORE_WITH_WARNINGS" - Ignore schema failures but display them as + // warnings. + // "FAIL" - Fail the resource if the schema is not valid, this is the + // default behavior. SchemaValidation string `json:"schemaValidation,omitempty"` // UndeclaredProperties: Specify what to do with extra properties when // executing a request. + // + // Possible values: + // "UNKNOWN" + // "INCLUDE" - Always include even if not present on discovery doc. + // "IGNORE" - Always ignore if not present on discovery doc. + // "INCLUDE_WITH_WARNINGS" - Include on request, but emit a warning. + // "IGNORE_WITH_WARNINGS" - Ignore properties, but emit a warning. + // "FAIL" - Always fail if undeclared properties are present. UndeclaredProperties string `json:"undeclaredProperties,omitempty"` // ForceSendFields is a list of field names (e.g. "SchemaValidation") to @@ -3266,7 +3108,7 @@ func (c *CompositeTypesDeleteCall) Header() http.Header { func (c *CompositeTypesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3274,7 +3116,7 @@ func (c *CompositeTypesDeleteCall) doRequest(alt string) (*http.Response, error) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/compositeTypes/{compositeType}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -3327,6 +3169,7 @@ func (c *CompositeTypesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, return ret, nil // { // "description": "Deletes a composite type.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}", // "httpMethod": "DELETE", // "id": "deploymentmanager.compositeTypes.delete", // "parameterOrder": [ @@ -3349,7 +3192,7 @@ func (c *CompositeTypesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, // "type": "string" // } // }, - // "path": "{project}/global/compositeTypes/{compositeType}", + // "path": "deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}", // "response": { // "$ref": "Operation" // }, @@ -3418,7 +3261,7 @@ func (c *CompositeTypesGetCall) Header() http.Header { func (c *CompositeTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3429,7 +3272,7 @@ func (c *CompositeTypesGetCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/compositeTypes/{compositeType}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -3482,6 +3325,7 @@ func (c *CompositeTypesGetCall) Do(opts ...googleapi.CallOption) (*CompositeType return ret, nil // { // "description": "Gets information about a specific composite type.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}", // "httpMethod": "GET", // "id": "deploymentmanager.compositeTypes.get", // "parameterOrder": [ @@ -3504,7 +3348,7 @@ func (c *CompositeTypesGetCall) Do(opts ...googleapi.CallOption) (*CompositeType // "type": "string" // } // }, - // "path": "{project}/global/compositeTypes/{compositeType}", + // "path": "deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}", // "response": { // "$ref": "CompositeType" // }, @@ -3564,7 +3408,7 @@ func (c *CompositeTypesInsertCall) Header() http.Header { func (c *CompositeTypesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3577,7 +3421,7 @@ func (c *CompositeTypesInsertCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/compositeTypes") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/compositeTypes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -3629,6 +3473,7 @@ func (c *CompositeTypesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, return ret, nil // { // "description": "Creates a composite type.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/compositeTypes", // "httpMethod": "POST", // "id": "deploymentmanager.compositeTypes.insert", // "parameterOrder": [ @@ -3643,7 +3488,7 @@ func (c *CompositeTypesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, // "type": "string" // } // }, - // "path": "{project}/global/compositeTypes", + // "path": "deploymentmanager/v2beta/projects/{project}/global/compositeTypes", // "request": { // "$ref": "CompositeType" // }, @@ -3681,24 +3526,19 @@ func (r *CompositeTypesService) List(project string) *CompositeTypesListCall { // the field name, a comparison operator, and the value that you want to // use for filtering. The value must be a string, a number, or a // boolean. The comparison operator must be either `=`, `!=`, `>`, or -// `<`. -// -// For example, if you are filtering Compute Engine instances, you can -// exclude instances named `example-instance` by specifying `name != -// example-instance`. -// -// You can also filter nested fields. For example, you could specify -// `scheduling.automaticRestart = false` to include instances only if -// they are not scheduled for automatic restarts. You can use filtering -// on nested fields to filter based on resource labels. -// -// To filter on multiple expressions, provide each separate expression -// within parentheses. For example: ``` (scheduling.automaticRestart = -// true) (cpuPlatform = "Intel Skylake") ``` By default, each expression -// is an `AND` expression. However, you can include `AND` and `OR` -// expressions explicitly. For example: ``` (cpuPlatform = "Intel -// Skylake") OR (cpuPlatform = "Intel Broadwell") AND -// (scheduling.automaticRestart = true) ``` +// `<`. For example, if you are filtering Compute Engine instances, you +// can exclude instances named `example-instance` by specifying `name != +// example-instance`. You can also filter nested fields. For example, +// you could specify `scheduling.automaticRestart = false` to include +// instances only if they are not scheduled for automatic restarts. You +// can use filtering on nested fields to filter based on resource +// labels. To filter on multiple expressions, provide each separate +// expression within parentheses. For example: ``` +// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") +// ``` By default, each expression is an `AND` expression. However, you +// can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") +// AND (scheduling.automaticRestart = true) ``` func (c *CompositeTypesListCall) Filter(filter string) *CompositeTypesListCall { c.urlParams_.Set("filter", filter) return c @@ -3717,17 +3557,13 @@ func (c *CompositeTypesListCall) MaxResults(maxResults int64) *CompositeTypesLis // OrderBy sets the optional parameter "orderBy": Sorts list results by // a certain order. By default, results are returned in alphanumerical -// order based on the resource name. -// -// You can also sort results in descending order based on the creation -// timestamp using `orderBy="creationTimestamp desc". This sorts -// results based on the `creationTimestamp` field in reverse -// chronological order (newest result first). Use this to sort resources -// like operations so that the newest operation is returned -// first. -// -// Currently, only sorting by `name` or `creationTimestamp desc` is -// supported. +// order based on the resource name. You can also sort results in +// descending order based on the creation timestamp using +// `orderBy="creationTimestamp desc". This sorts results based on the +// `creationTimestamp` field in reverse chronological order (newest +// result first). Use this to sort resources like operations so that the +// newest operation is returned first. Currently, only sorting by `name` +// or `creationTimestamp desc` is supported. func (c *CompositeTypesListCall) OrderBy(orderBy string) *CompositeTypesListCall { c.urlParams_.Set("orderBy", orderBy) return c @@ -3741,6 +3577,15 @@ func (c *CompositeTypesListCall) PageToken(pageToken string) *CompositeTypesList return c } +// ReturnPartialSuccess sets the optional parameter +// "returnPartialSuccess": Opt-in for partial success behavior which +// provides partial results in case of failure. The default value is +// false and the logic is the same as today. +func (c *CompositeTypesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *CompositeTypesListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -3778,7 +3623,7 @@ func (c *CompositeTypesListCall) Header() http.Header { func (c *CompositeTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3789,7 +3634,7 @@ func (c *CompositeTypesListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/compositeTypes") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/compositeTypes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -3841,6 +3686,7 @@ func (c *CompositeTypesListCall) Do(opts ...googleapi.CallOption) (*CompositeTyp return ret, nil // { // "description": "Lists all composite types for Deployment Manager.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/compositeTypes", // "httpMethod": "GET", // "id": "deploymentmanager.compositeTypes.list", // "parameterOrder": [ @@ -3848,7 +3694,7 @@ func (c *CompositeTypesListCall) Do(opts ...googleapi.CallOption) (*CompositeTyp // ], // "parameters": { // "filter": { - // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", // "location": "query", // "type": "string" // }, @@ -3861,7 +3707,7 @@ func (c *CompositeTypesListCall) Do(opts ...googleapi.CallOption) (*CompositeTyp // "type": "integer" // }, // "orderBy": { - // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", // "location": "query", // "type": "string" // }, @@ -3876,9 +3722,14 @@ func (c *CompositeTypesListCall) Do(opts ...googleapi.CallOption) (*CompositeTyp // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "returnPartialSuccess": { + // "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.", + // "location": "query", + // "type": "boolean" // } // }, - // "path": "{project}/global/compositeTypes", + // "path": "deploymentmanager/v2beta/projects/{project}/global/compositeTypes", // "response": { // "$ref": "CompositeTypesListResponse" // }, @@ -3961,7 +3812,7 @@ func (c *CompositeTypesPatchCall) Header() http.Header { func (c *CompositeTypesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3974,7 +3825,7 @@ func (c *CompositeTypesPatchCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/compositeTypes/{compositeType}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -4027,6 +3878,7 @@ func (c *CompositeTypesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, return ret, nil // { // "description": "Patches a composite type.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}", // "httpMethod": "PATCH", // "id": "deploymentmanager.compositeTypes.patch", // "parameterOrder": [ @@ -4049,7 +3901,7 @@ func (c *CompositeTypesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, // "type": "string" // } // }, - // "path": "{project}/global/compositeTypes/{compositeType}", + // "path": "deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}", // "request": { // "$ref": "CompositeType" // }, @@ -4112,7 +3964,7 @@ func (c *CompositeTypesUpdateCall) Header() http.Header { func (c *CompositeTypesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4125,7 +3977,7 @@ func (c *CompositeTypesUpdateCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/compositeTypes/{compositeType}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -4178,6 +4030,7 @@ func (c *CompositeTypesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, return ret, nil // { // "description": "Updates a composite type.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}", // "httpMethod": "PUT", // "id": "deploymentmanager.compositeTypes.update", // "parameterOrder": [ @@ -4200,7 +4053,7 @@ func (c *CompositeTypesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, // "type": "string" // } // }, - // "path": "{project}/global/compositeTypes/{compositeType}", + // "path": "deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}", // "request": { // "$ref": "CompositeType" // }, @@ -4264,7 +4117,7 @@ func (c *DeploymentsCancelPreviewCall) Header() http.Header { func (c *DeploymentsCancelPreviewCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4277,7 +4130,7 @@ func (c *DeploymentsCancelPreviewCall) doRequest(alt string) (*http.Response, er reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}/cancelPreview") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/cancelPreview") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -4330,6 +4183,7 @@ func (c *DeploymentsCancelPreviewCall) Do(opts ...googleapi.CallOption) (*Operat return ret, nil // { // "description": "Cancels and removes the preview currently associated with the deployment.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/cancelPreview", // "httpMethod": "POST", // "id": "deploymentmanager.deployments.cancelPreview", // "parameterOrder": [ @@ -4352,7 +4206,7 @@ func (c *DeploymentsCancelPreviewCall) Do(opts ...googleapi.CallOption) (*Operat // "type": "string" // } // }, - // "path": "{project}/global/deployments/{deployment}/cancelPreview", + // "path": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/cancelPreview", // "request": { // "$ref": "DeploymentsCancelPreviewRequest" // }, @@ -4391,8 +4245,8 @@ func (r *DeploymentsService) Delete(project string, deployment string) *Deployme // policy to use for deleting resources. // // Possible values: -// "ABANDON" // "DELETE" (default) +// "ABANDON" func (c *DeploymentsDeleteCall) DeletePolicy(deletePolicy string) *DeploymentsDeleteCall { c.urlParams_.Set("deletePolicy", deletePolicy) return c @@ -4425,7 +4279,7 @@ func (c *DeploymentsDeleteCall) Header() http.Header { func (c *DeploymentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4433,7 +4287,7 @@ func (c *DeploymentsDeleteCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -4486,6 +4340,7 @@ func (c *DeploymentsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, er return ret, nil // { // "description": "Deletes a deployment and all of the resources in the deployment.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}", // "httpMethod": "DELETE", // "id": "deploymentmanager.deployments.delete", // "parameterOrder": [ @@ -4497,8 +4352,8 @@ func (c *DeploymentsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, er // "default": "DELETE", // "description": "Sets the policy to use for deleting resources.", // "enum": [ - // "ABANDON", - // "DELETE" + // "DELETE", + // "ABANDON" // ], // "enumDescriptions": [ // "", @@ -4521,7 +4376,7 @@ func (c *DeploymentsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, er // "type": "string" // } // }, - // "path": "{project}/global/deployments/{deployment}", + // "path": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}", // "response": { // "$ref": "Operation" // }, @@ -4590,7 +4445,7 @@ func (c *DeploymentsGetCall) Header() http.Header { func (c *DeploymentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4601,7 +4456,7 @@ func (c *DeploymentsGetCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -4654,6 +4509,7 @@ func (c *DeploymentsGetCall) Do(opts ...googleapi.CallOption) (*Deployment, erro return ret, nil // { // "description": "Gets information about a specific deployment.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}", // "httpMethod": "GET", // "id": "deploymentmanager.deployments.get", // "parameterOrder": [ @@ -4676,7 +4532,7 @@ func (c *DeploymentsGetCall) Do(opts ...googleapi.CallOption) (*Deployment, erro // "type": "string" // } // }, - // "path": "{project}/global/deployments/{deployment}", + // "path": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}", // "response": { // "$ref": "Deployment" // }, @@ -4711,6 +4567,13 @@ func (r *DeploymentsService) GetIamPolicy(project string, resource string) *Depl return c } +// OptionsRequestedPolicyVersion sets the optional parameter +// "optionsRequestedPolicyVersion": Requested IAM Policy version. +func (c *DeploymentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *DeploymentsGetIamPolicyCall { + c.urlParams_.Set("optionsRequestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -4748,7 +4611,7 @@ func (c *DeploymentsGetIamPolicyCall) Header() http.Header { func (c *DeploymentsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4759,7 +4622,7 @@ func (c *DeploymentsGetIamPolicyCall) doRequest(alt string) (*http.Response, err var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{resource}/getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/getIamPolicy") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -4812,6 +4675,7 @@ func (c *DeploymentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, return ret, nil // { // "description": "Gets the access control policy for a resource. May be empty if no such policy or resource exists.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/getIamPolicy", // "httpMethod": "GET", // "id": "deploymentmanager.deployments.getIamPolicy", // "parameterOrder": [ @@ -4819,6 +4683,12 @@ func (c *DeploymentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, // "resource" // ], // "parameters": { + // "optionsRequestedPolicyVersion": { + // "description": "Requested IAM Policy version.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, // "project": { // "description": "Project ID for this request.", // "location": "path", @@ -4834,7 +4704,7 @@ func (c *DeploymentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, // "type": "string" // } // }, - // "path": "{project}/global/deployments/{resource}/getIamPolicy", + // "path": "deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/getIamPolicy", // "response": { // "$ref": "Policy" // }, @@ -4870,9 +4740,9 @@ func (r *DeploymentsService) Insert(project string, deployment *Deployment) *Dep // policy to use for creating new resources. // // Possible values: +// "CREATE_OR_ACQUIRE" (default) // "ACQUIRE" // "CREATE" -// "CREATE_OR_ACQUIRE" (default) func (c *DeploymentsInsertCall) CreatePolicy(createPolicy string) *DeploymentsInsertCall { c.urlParams_.Set("createPolicy", createPolicy) return c @@ -4919,7 +4789,7 @@ func (c *DeploymentsInsertCall) Header() http.Header { func (c *DeploymentsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4932,7 +4802,7 @@ func (c *DeploymentsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/deployments") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -4984,6 +4854,7 @@ func (c *DeploymentsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, er return ret, nil // { // "description": "Creates a deployment and all of the resources described by the deployment manifest.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments", // "httpMethod": "POST", // "id": "deploymentmanager.deployments.insert", // "parameterOrder": [ @@ -4994,9 +4865,9 @@ func (c *DeploymentsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, er // "default": "CREATE_OR_ACQUIRE", // "description": "Sets the policy to use for creating new resources.", // "enum": [ + // "CREATE_OR_ACQUIRE", // "ACQUIRE", - // "CREATE", - // "CREATE_OR_ACQUIRE" + // "CREATE" // ], // "enumDescriptions": [ // "", @@ -5019,7 +4890,7 @@ func (c *DeploymentsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, er // "type": "string" // } // }, - // "path": "{project}/global/deployments", + // "path": "deploymentmanager/v2beta/projects/{project}/global/deployments", // "request": { // "$ref": "Deployment" // }, @@ -5057,24 +4928,19 @@ func (r *DeploymentsService) List(project string) *DeploymentsListCall { // the field name, a comparison operator, and the value that you want to // use for filtering. The value must be a string, a number, or a // boolean. The comparison operator must be either `=`, `!=`, `>`, or -// `<`. -// -// For example, if you are filtering Compute Engine instances, you can -// exclude instances named `example-instance` by specifying `name != -// example-instance`. -// -// You can also filter nested fields. For example, you could specify -// `scheduling.automaticRestart = false` to include instances only if -// they are not scheduled for automatic restarts. You can use filtering -// on nested fields to filter based on resource labels. -// -// To filter on multiple expressions, provide each separate expression -// within parentheses. For example: ``` (scheduling.automaticRestart = -// true) (cpuPlatform = "Intel Skylake") ``` By default, each expression -// is an `AND` expression. However, you can include `AND` and `OR` -// expressions explicitly. For example: ``` (cpuPlatform = "Intel -// Skylake") OR (cpuPlatform = "Intel Broadwell") AND -// (scheduling.automaticRestart = true) ``` +// `<`. For example, if you are filtering Compute Engine instances, you +// can exclude instances named `example-instance` by specifying `name != +// example-instance`. You can also filter nested fields. For example, +// you could specify `scheduling.automaticRestart = false` to include +// instances only if they are not scheduled for automatic restarts. You +// can use filtering on nested fields to filter based on resource +// labels. To filter on multiple expressions, provide each separate +// expression within parentheses. For example: ``` +// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") +// ``` By default, each expression is an `AND` expression. However, you +// can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") +// AND (scheduling.automaticRestart = true) ``` func (c *DeploymentsListCall) Filter(filter string) *DeploymentsListCall { c.urlParams_.Set("filter", filter) return c @@ -5093,17 +4959,13 @@ func (c *DeploymentsListCall) MaxResults(maxResults int64) *DeploymentsListCall // OrderBy sets the optional parameter "orderBy": Sorts list results by // a certain order. By default, results are returned in alphanumerical -// order based on the resource name. -// -// You can also sort results in descending order based on the creation -// timestamp using `orderBy="creationTimestamp desc". This sorts -// results based on the `creationTimestamp` field in reverse -// chronological order (newest result first). Use this to sort resources -// like operations so that the newest operation is returned -// first. -// -// Currently, only sorting by `name` or `creationTimestamp desc` is -// supported. +// order based on the resource name. You can also sort results in +// descending order based on the creation timestamp using +// `orderBy="creationTimestamp desc". This sorts results based on the +// `creationTimestamp` field in reverse chronological order (newest +// result first). Use this to sort resources like operations so that the +// newest operation is returned first. Currently, only sorting by `name` +// or `creationTimestamp desc` is supported. func (c *DeploymentsListCall) OrderBy(orderBy string) *DeploymentsListCall { c.urlParams_.Set("orderBy", orderBy) return c @@ -5117,6 +4979,15 @@ func (c *DeploymentsListCall) PageToken(pageToken string) *DeploymentsListCall { return c } +// ReturnPartialSuccess sets the optional parameter +// "returnPartialSuccess": Opt-in for partial success behavior which +// provides partial results in case of failure. The default value is +// false and the logic is the same as today. +func (c *DeploymentsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *DeploymentsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -5154,7 +5025,7 @@ func (c *DeploymentsListCall) Header() http.Header { func (c *DeploymentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5165,7 +5036,7 @@ func (c *DeploymentsListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/deployments") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -5217,6 +5088,7 @@ func (c *DeploymentsListCall) Do(opts ...googleapi.CallOption) (*DeploymentsList return ret, nil // { // "description": "Lists all deployments for a given project.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments", // "httpMethod": "GET", // "id": "deploymentmanager.deployments.list", // "parameterOrder": [ @@ -5224,7 +5096,7 @@ func (c *DeploymentsListCall) Do(opts ...googleapi.CallOption) (*DeploymentsList // ], // "parameters": { // "filter": { - // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", // "location": "query", // "type": "string" // }, @@ -5237,7 +5109,7 @@ func (c *DeploymentsListCall) Do(opts ...googleapi.CallOption) (*DeploymentsList // "type": "integer" // }, // "orderBy": { - // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", // "location": "query", // "type": "string" // }, @@ -5252,9 +5124,14 @@ func (c *DeploymentsListCall) Do(opts ...googleapi.CallOption) (*DeploymentsList // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "returnPartialSuccess": { + // "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.", + // "location": "query", + // "type": "boolean" // } // }, - // "path": "{project}/global/deployments", + // "path": "deploymentmanager/v2beta/projects/{project}/global/deployments", // "response": { // "$ref": "DeploymentsListResponse" // }, @@ -5315,9 +5192,9 @@ func (r *DeploymentsService) Patch(project string, deployment string, deployment // policy to use for creating new resources. // // Possible values: +// "CREATE_OR_ACQUIRE" (default) // "ACQUIRE" // "CREATE" -// "CREATE_OR_ACQUIRE" (default) func (c *DeploymentsPatchCall) CreatePolicy(createPolicy string) *DeploymentsPatchCall { c.urlParams_.Set("createPolicy", createPolicy) return c @@ -5327,8 +5204,8 @@ func (c *DeploymentsPatchCall) CreatePolicy(createPolicy string) *DeploymentsPat // policy to use for deleting resources. // // Possible values: -// "ABANDON" // "DELETE" (default) +// "ABANDON" func (c *DeploymentsPatchCall) DeletePolicy(deletePolicy string) *DeploymentsPatchCall { c.urlParams_.Set("deletePolicy", deletePolicy) return c @@ -5377,7 +5254,7 @@ func (c *DeploymentsPatchCall) Header() http.Header { func (c *DeploymentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5390,7 +5267,7 @@ func (c *DeploymentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -5443,6 +5320,7 @@ func (c *DeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, err return ret, nil // { // "description": "Patches a deployment and all of the resources described by the deployment manifest.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}", // "httpMethod": "PATCH", // "id": "deploymentmanager.deployments.patch", // "parameterOrder": [ @@ -5454,9 +5332,9 @@ func (c *DeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, err // "default": "CREATE_OR_ACQUIRE", // "description": "Sets the policy to use for creating new resources.", // "enum": [ + // "CREATE_OR_ACQUIRE", // "ACQUIRE", - // "CREATE", - // "CREATE_OR_ACQUIRE" + // "CREATE" // ], // "enumDescriptions": [ // "", @@ -5470,8 +5348,8 @@ func (c *DeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, err // "default": "DELETE", // "description": "Sets the policy to use for deleting resources.", // "enum": [ - // "ABANDON", - // "DELETE" + // "DELETE", + // "ABANDON" // ], // "enumDescriptions": [ // "", @@ -5501,7 +5379,7 @@ func (c *DeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, err // "type": "string" // } // }, - // "path": "{project}/global/deployments/{deployment}", + // "path": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}", // "request": { // "$ref": "Deployment" // }, @@ -5565,7 +5443,7 @@ func (c *DeploymentsSetIamPolicyCall) Header() http.Header { func (c *DeploymentsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5578,7 +5456,7 @@ func (c *DeploymentsSetIamPolicyCall) doRequest(alt string) (*http.Response, err reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{resource}/setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/setIamPolicy") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -5631,6 +5509,7 @@ func (c *DeploymentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, return ret, nil // { // "description": "Sets the access control policy on the specified resource. Replaces any existing policy.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/setIamPolicy", // "httpMethod": "POST", // "id": "deploymentmanager.deployments.setIamPolicy", // "parameterOrder": [ @@ -5653,7 +5532,7 @@ func (c *DeploymentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, // "type": "string" // } // }, - // "path": "{project}/global/deployments/{resource}/setIamPolicy", + // "path": "deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/setIamPolicy", // "request": { // "$ref": "GlobalSetPolicyRequest" // }, @@ -5718,7 +5597,7 @@ func (c *DeploymentsStopCall) Header() http.Header { func (c *DeploymentsStopCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5731,7 +5610,7 @@ func (c *DeploymentsStopCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}/stop") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/stop") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -5784,6 +5663,7 @@ func (c *DeploymentsStopCall) Do(opts ...googleapi.CallOption) (*Operation, erro return ret, nil // { // "description": "Stops an ongoing operation. This does not roll back any work that has already been completed, but prevents any new work from being started.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/stop", // "httpMethod": "POST", // "id": "deploymentmanager.deployments.stop", // "parameterOrder": [ @@ -5806,7 +5686,7 @@ func (c *DeploymentsStopCall) Do(opts ...googleapi.CallOption) (*Operation, erro // "type": "string" // } // }, - // "path": "{project}/global/deployments/{deployment}/stop", + // "path": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/stop", // "request": { // "$ref": "DeploymentsStopRequest" // }, @@ -5870,7 +5750,7 @@ func (c *DeploymentsTestIamPermissionsCall) Header() http.Header { func (c *DeploymentsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5883,7 +5763,7 @@ func (c *DeploymentsTestIamPermissionsCall) doRequest(alt string) (*http.Respons reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{resource}/testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/testIamPermissions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -5936,6 +5816,7 @@ func (c *DeploymentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*T return ret, nil // { // "description": "Returns permissions that a caller has on the specified resource.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/testIamPermissions", // "httpMethod": "POST", // "id": "deploymentmanager.deployments.testIamPermissions", // "parameterOrder": [ @@ -5958,7 +5839,7 @@ func (c *DeploymentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*T // "type": "string" // } // }, - // "path": "{project}/global/deployments/{resource}/testIamPermissions", + // "path": "deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/testIamPermissions", // "request": { // "$ref": "TestPermissionsRequest" // }, @@ -5999,9 +5880,9 @@ func (r *DeploymentsService) Update(project string, deployment string, deploymen // policy to use for creating new resources. // // Possible values: +// "CREATE_OR_ACQUIRE" (default) // "ACQUIRE" // "CREATE" -// "CREATE_OR_ACQUIRE" (default) func (c *DeploymentsUpdateCall) CreatePolicy(createPolicy string) *DeploymentsUpdateCall { c.urlParams_.Set("createPolicy", createPolicy) return c @@ -6011,8 +5892,8 @@ func (c *DeploymentsUpdateCall) CreatePolicy(createPolicy string) *DeploymentsUp // policy to use for deleting resources. // // Possible values: -// "ABANDON" // "DELETE" (default) +// "ABANDON" func (c *DeploymentsUpdateCall) DeletePolicy(deletePolicy string) *DeploymentsUpdateCall { c.urlParams_.Set("deletePolicy", deletePolicy) return c @@ -6061,7 +5942,7 @@ func (c *DeploymentsUpdateCall) Header() http.Header { func (c *DeploymentsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6074,7 +5955,7 @@ func (c *DeploymentsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -6127,6 +6008,7 @@ func (c *DeploymentsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, er return ret, nil // { // "description": "Updates a deployment and all of the resources described by the deployment manifest.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}", // "httpMethod": "PUT", // "id": "deploymentmanager.deployments.update", // "parameterOrder": [ @@ -6138,9 +6020,9 @@ func (c *DeploymentsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, er // "default": "CREATE_OR_ACQUIRE", // "description": "Sets the policy to use for creating new resources.", // "enum": [ + // "CREATE_OR_ACQUIRE", // "ACQUIRE", - // "CREATE", - // "CREATE_OR_ACQUIRE" + // "CREATE" // ], // "enumDescriptions": [ // "", @@ -6154,8 +6036,8 @@ func (c *DeploymentsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, er // "default": "DELETE", // "description": "Sets the policy to use for deleting resources.", // "enum": [ - // "ABANDON", - // "DELETE" + // "DELETE", + // "ABANDON" // ], // "enumDescriptions": [ // "", @@ -6185,7 +6067,7 @@ func (c *DeploymentsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, er // "type": "string" // } // }, - // "path": "{project}/global/deployments/{deployment}", + // "path": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}", // "request": { // "$ref": "Deployment" // }, @@ -6259,7 +6141,7 @@ func (c *ManifestsGetCall) Header() http.Header { func (c *ManifestsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6270,7 +6152,7 @@ func (c *ManifestsGetCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}/manifests/{manifest}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/manifests/{manifest}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -6324,6 +6206,7 @@ func (c *ManifestsGetCall) Do(opts ...googleapi.CallOption) (*Manifest, error) { return ret, nil // { // "description": "Gets information about a specific manifest.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/manifests/{manifest}", // "httpMethod": "GET", // "id": "deploymentmanager.manifests.get", // "parameterOrder": [ @@ -6354,7 +6237,7 @@ func (c *ManifestsGetCall) Do(opts ...googleapi.CallOption) (*Manifest, error) { // "type": "string" // } // }, - // "path": "{project}/global/deployments/{deployment}/manifests/{manifest}", + // "path": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/manifests/{manifest}", // "response": { // "$ref": "Manifest" // }, @@ -6393,24 +6276,19 @@ func (r *ManifestsService) List(project string, deployment string) *ManifestsLis // the field name, a comparison operator, and the value that you want to // use for filtering. The value must be a string, a number, or a // boolean. The comparison operator must be either `=`, `!=`, `>`, or -// `<`. -// -// For example, if you are filtering Compute Engine instances, you can -// exclude instances named `example-instance` by specifying `name != -// example-instance`. -// -// You can also filter nested fields. For example, you could specify -// `scheduling.automaticRestart = false` to include instances only if -// they are not scheduled for automatic restarts. You can use filtering -// on nested fields to filter based on resource labels. -// -// To filter on multiple expressions, provide each separate expression -// within parentheses. For example: ``` (scheduling.automaticRestart = -// true) (cpuPlatform = "Intel Skylake") ``` By default, each expression -// is an `AND` expression. However, you can include `AND` and `OR` -// expressions explicitly. For example: ``` (cpuPlatform = "Intel -// Skylake") OR (cpuPlatform = "Intel Broadwell") AND -// (scheduling.automaticRestart = true) ``` +// `<`. For example, if you are filtering Compute Engine instances, you +// can exclude instances named `example-instance` by specifying `name != +// example-instance`. You can also filter nested fields. For example, +// you could specify `scheduling.automaticRestart = false` to include +// instances only if they are not scheduled for automatic restarts. You +// can use filtering on nested fields to filter based on resource +// labels. To filter on multiple expressions, provide each separate +// expression within parentheses. For example: ``` +// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") +// ``` By default, each expression is an `AND` expression. However, you +// can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") +// AND (scheduling.automaticRestart = true) ``` func (c *ManifestsListCall) Filter(filter string) *ManifestsListCall { c.urlParams_.Set("filter", filter) return c @@ -6429,17 +6307,13 @@ func (c *ManifestsListCall) MaxResults(maxResults int64) *ManifestsListCall { // OrderBy sets the optional parameter "orderBy": Sorts list results by // a certain order. By default, results are returned in alphanumerical -// order based on the resource name. -// -// You can also sort results in descending order based on the creation -// timestamp using `orderBy="creationTimestamp desc". This sorts -// results based on the `creationTimestamp` field in reverse -// chronological order (newest result first). Use this to sort resources -// like operations so that the newest operation is returned -// first. -// -// Currently, only sorting by `name` or `creationTimestamp desc` is -// supported. +// order based on the resource name. You can also sort results in +// descending order based on the creation timestamp using +// `orderBy="creationTimestamp desc". This sorts results based on the +// `creationTimestamp` field in reverse chronological order (newest +// result first). Use this to sort resources like operations so that the +// newest operation is returned first. Currently, only sorting by `name` +// or `creationTimestamp desc` is supported. func (c *ManifestsListCall) OrderBy(orderBy string) *ManifestsListCall { c.urlParams_.Set("orderBy", orderBy) return c @@ -6453,6 +6327,15 @@ func (c *ManifestsListCall) PageToken(pageToken string) *ManifestsListCall { return c } +// ReturnPartialSuccess sets the optional parameter +// "returnPartialSuccess": Opt-in for partial success behavior which +// provides partial results in case of failure. The default value is +// false and the logic is the same as today. +func (c *ManifestsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ManifestsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -6490,7 +6373,7 @@ func (c *ManifestsListCall) Header() http.Header { func (c *ManifestsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6501,7 +6384,7 @@ func (c *ManifestsListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}/manifests") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/manifests") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -6554,6 +6437,7 @@ func (c *ManifestsListCall) Do(opts ...googleapi.CallOption) (*ManifestsListResp return ret, nil // { // "description": "Lists all manifests for a given deployment.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/manifests", // "httpMethod": "GET", // "id": "deploymentmanager.manifests.list", // "parameterOrder": [ @@ -6569,7 +6453,7 @@ func (c *ManifestsListCall) Do(opts ...googleapi.CallOption) (*ManifestsListResp // "type": "string" // }, // "filter": { - // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", // "location": "query", // "type": "string" // }, @@ -6582,7 +6466,7 @@ func (c *ManifestsListCall) Do(opts ...googleapi.CallOption) (*ManifestsListResp // "type": "integer" // }, // "orderBy": { - // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", // "location": "query", // "type": "string" // }, @@ -6597,9 +6481,14 @@ func (c *ManifestsListCall) Do(opts ...googleapi.CallOption) (*ManifestsListResp // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "returnPartialSuccess": { + // "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.", + // "location": "query", + // "type": "boolean" // } // }, - // "path": "{project}/global/deployments/{deployment}/manifests", + // "path": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/manifests", // "response": { // "$ref": "ManifestsListResponse" // }, @@ -6691,7 +6580,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6702,7 +6591,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/operations/{operation}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/operations/{operation}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -6755,6 +6644,7 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) return ret, nil // { // "description": "Gets information about a specific operation.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/operations/{operation}", // "httpMethod": "GET", // "id": "deploymentmanager.operations.get", // "parameterOrder": [ @@ -6776,7 +6666,7 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) // "type": "string" // } // }, - // "path": "{project}/global/operations/{operation}", + // "path": "deploymentmanager/v2beta/projects/{project}/global/operations/{operation}", // "response": { // "$ref": "Operation" // }, @@ -6813,24 +6703,19 @@ func (r *OperationsService) List(project string) *OperationsListCall { // the field name, a comparison operator, and the value that you want to // use for filtering. The value must be a string, a number, or a // boolean. The comparison operator must be either `=`, `!=`, `>`, or -// `<`. -// -// For example, if you are filtering Compute Engine instances, you can -// exclude instances named `example-instance` by specifying `name != -// example-instance`. -// -// You can also filter nested fields. For example, you could specify -// `scheduling.automaticRestart = false` to include instances only if -// they are not scheduled for automatic restarts. You can use filtering -// on nested fields to filter based on resource labels. -// -// To filter on multiple expressions, provide each separate expression -// within parentheses. For example: ``` (scheduling.automaticRestart = -// true) (cpuPlatform = "Intel Skylake") ``` By default, each expression -// is an `AND` expression. However, you can include `AND` and `OR` -// expressions explicitly. For example: ``` (cpuPlatform = "Intel -// Skylake") OR (cpuPlatform = "Intel Broadwell") AND -// (scheduling.automaticRestart = true) ``` +// `<`. For example, if you are filtering Compute Engine instances, you +// can exclude instances named `example-instance` by specifying `name != +// example-instance`. You can also filter nested fields. For example, +// you could specify `scheduling.automaticRestart = false` to include +// instances only if they are not scheduled for automatic restarts. You +// can use filtering on nested fields to filter based on resource +// labels. To filter on multiple expressions, provide each separate +// expression within parentheses. For example: ``` +// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") +// ``` By default, each expression is an `AND` expression. However, you +// can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") +// AND (scheduling.automaticRestart = true) ``` func (c *OperationsListCall) Filter(filter string) *OperationsListCall { c.urlParams_.Set("filter", filter) return c @@ -6849,17 +6734,13 @@ func (c *OperationsListCall) MaxResults(maxResults int64) *OperationsListCall { // OrderBy sets the optional parameter "orderBy": Sorts list results by // a certain order. By default, results are returned in alphanumerical -// order based on the resource name. -// -// You can also sort results in descending order based on the creation -// timestamp using `orderBy="creationTimestamp desc". This sorts -// results based on the `creationTimestamp` field in reverse -// chronological order (newest result first). Use this to sort resources -// like operations so that the newest operation is returned -// first. -// -// Currently, only sorting by `name` or `creationTimestamp desc` is -// supported. +// order based on the resource name. You can also sort results in +// descending order based on the creation timestamp using +// `orderBy="creationTimestamp desc". This sorts results based on the +// `creationTimestamp` field in reverse chronological order (newest +// result first). Use this to sort resources like operations so that the +// newest operation is returned first. Currently, only sorting by `name` +// or `creationTimestamp desc` is supported. func (c *OperationsListCall) OrderBy(orderBy string) *OperationsListCall { c.urlParams_.Set("orderBy", orderBy) return c @@ -6873,6 +6754,15 @@ func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall { return c } +// ReturnPartialSuccess sets the optional parameter +// "returnPartialSuccess": Opt-in for partial success behavior which +// provides partial results in case of failure. The default value is +// false and the logic is the same as today. +func (c *OperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *OperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -6910,7 +6800,7 @@ func (c *OperationsListCall) Header() http.Header { func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6921,7 +6811,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -6973,6 +6863,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*OperationsListRe return ret, nil // { // "description": "Lists all operations for a project.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/operations", // "httpMethod": "GET", // "id": "deploymentmanager.operations.list", // "parameterOrder": [ @@ -6980,7 +6871,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*OperationsListRe // ], // "parameters": { // "filter": { - // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", // "location": "query", // "type": "string" // }, @@ -6993,7 +6884,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*OperationsListRe // "type": "integer" // }, // "orderBy": { - // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", // "location": "query", // "type": "string" // }, @@ -7008,9 +6899,14 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*OperationsListRe // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "returnPartialSuccess": { + // "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.", + // "location": "query", + // "type": "boolean" // } // }, - // "path": "{project}/global/operations", + // "path": "deploymentmanager/v2beta/projects/{project}/global/operations", // "response": { // "$ref": "OperationsListResponse" // }, @@ -7104,7 +7000,7 @@ func (c *ResourcesGetCall) Header() http.Header { func (c *ResourcesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7115,7 +7011,7 @@ func (c *ResourcesGetCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}/resources/{resource}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/resources/{resource}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -7169,6 +7065,7 @@ func (c *ResourcesGetCall) Do(opts ...googleapi.CallOption) (*Resource, error) { return ret, nil // { // "description": "Gets information about a single resource.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/resources/{resource}", // "httpMethod": "GET", // "id": "deploymentmanager.resources.get", // "parameterOrder": [ @@ -7198,7 +7095,7 @@ func (c *ResourcesGetCall) Do(opts ...googleapi.CallOption) (*Resource, error) { // "type": "string" // } // }, - // "path": "{project}/global/deployments/{deployment}/resources/{resource}", + // "path": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/resources/{resource}", // "response": { // "$ref": "Resource" // }, @@ -7237,24 +7134,19 @@ func (r *ResourcesService) List(project string, deployment string) *ResourcesLis // the field name, a comparison operator, and the value that you want to // use for filtering. The value must be a string, a number, or a // boolean. The comparison operator must be either `=`, `!=`, `>`, or -// `<`. -// -// For example, if you are filtering Compute Engine instances, you can -// exclude instances named `example-instance` by specifying `name != -// example-instance`. -// -// You can also filter nested fields. For example, you could specify -// `scheduling.automaticRestart = false` to include instances only if -// they are not scheduled for automatic restarts. You can use filtering -// on nested fields to filter based on resource labels. -// -// To filter on multiple expressions, provide each separate expression -// within parentheses. For example: ``` (scheduling.automaticRestart = -// true) (cpuPlatform = "Intel Skylake") ``` By default, each expression -// is an `AND` expression. However, you can include `AND` and `OR` -// expressions explicitly. For example: ``` (cpuPlatform = "Intel -// Skylake") OR (cpuPlatform = "Intel Broadwell") AND -// (scheduling.automaticRestart = true) ``` +// `<`. For example, if you are filtering Compute Engine instances, you +// can exclude instances named `example-instance` by specifying `name != +// example-instance`. You can also filter nested fields. For example, +// you could specify `scheduling.automaticRestart = false` to include +// instances only if they are not scheduled for automatic restarts. You +// can use filtering on nested fields to filter based on resource +// labels. To filter on multiple expressions, provide each separate +// expression within parentheses. For example: ``` +// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") +// ``` By default, each expression is an `AND` expression. However, you +// can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") +// AND (scheduling.automaticRestart = true) ``` func (c *ResourcesListCall) Filter(filter string) *ResourcesListCall { c.urlParams_.Set("filter", filter) return c @@ -7273,17 +7165,13 @@ func (c *ResourcesListCall) MaxResults(maxResults int64) *ResourcesListCall { // OrderBy sets the optional parameter "orderBy": Sorts list results by // a certain order. By default, results are returned in alphanumerical -// order based on the resource name. -// -// You can also sort results in descending order based on the creation -// timestamp using `orderBy="creationTimestamp desc". This sorts -// results based on the `creationTimestamp` field in reverse -// chronological order (newest result first). Use this to sort resources -// like operations so that the newest operation is returned -// first. -// -// Currently, only sorting by `name` or `creationTimestamp desc` is -// supported. +// order based on the resource name. You can also sort results in +// descending order based on the creation timestamp using +// `orderBy="creationTimestamp desc". This sorts results based on the +// `creationTimestamp` field in reverse chronological order (newest +// result first). Use this to sort resources like operations so that the +// newest operation is returned first. Currently, only sorting by `name` +// or `creationTimestamp desc` is supported. func (c *ResourcesListCall) OrderBy(orderBy string) *ResourcesListCall { c.urlParams_.Set("orderBy", orderBy) return c @@ -7297,6 +7185,15 @@ func (c *ResourcesListCall) PageToken(pageToken string) *ResourcesListCall { return c } +// ReturnPartialSuccess sets the optional parameter +// "returnPartialSuccess": Opt-in for partial success behavior which +// provides partial results in case of failure. The default value is +// false and the logic is the same as today. +func (c *ResourcesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ResourcesListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -7334,7 +7231,7 @@ func (c *ResourcesListCall) Header() http.Header { func (c *ResourcesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7345,7 +7242,7 @@ func (c *ResourcesListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/deployments/{deployment}/resources") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/resources") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -7398,6 +7295,7 @@ func (c *ResourcesListCall) Do(opts ...googleapi.CallOption) (*ResourcesListResp return ret, nil // { // "description": "Lists all resources in a given deployment.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/resources", // "httpMethod": "GET", // "id": "deploymentmanager.resources.list", // "parameterOrder": [ @@ -7413,7 +7311,7 @@ func (c *ResourcesListCall) Do(opts ...googleapi.CallOption) (*ResourcesListResp // "type": "string" // }, // "filter": { - // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", // "location": "query", // "type": "string" // }, @@ -7426,7 +7324,7 @@ func (c *ResourcesListCall) Do(opts ...googleapi.CallOption) (*ResourcesListResp // "type": "integer" // }, // "orderBy": { - // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", // "location": "query", // "type": "string" // }, @@ -7441,9 +7339,14 @@ func (c *ResourcesListCall) Do(opts ...googleapi.CallOption) (*ResourcesListResp // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "returnPartialSuccess": { + // "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.", + // "location": "query", + // "type": "boolean" // } // }, - // "path": "{project}/global/deployments/{deployment}/resources", + // "path": "deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/resources", // "response": { // "$ref": "ResourcesListResponse" // }, @@ -7524,7 +7427,7 @@ func (c *TypeProvidersDeleteCall) Header() http.Header { func (c *TypeProvidersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7532,7 +7435,7 @@ func (c *TypeProvidersDeleteCall) doRequest(alt string) (*http.Response, error) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/typeProviders/{typeProvider}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -7585,6 +7488,7 @@ func (c *TypeProvidersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, return ret, nil // { // "description": "Deletes a type provider.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}", // "httpMethod": "DELETE", // "id": "deploymentmanager.typeProviders.delete", // "parameterOrder": [ @@ -7607,7 +7511,7 @@ func (c *TypeProvidersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, // "type": "string" // } // }, - // "path": "{project}/global/typeProviders/{typeProvider}", + // "path": "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}", // "response": { // "$ref": "Operation" // }, @@ -7676,7 +7580,7 @@ func (c *TypeProvidersGetCall) Header() http.Header { func (c *TypeProvidersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7687,7 +7591,7 @@ func (c *TypeProvidersGetCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/typeProviders/{typeProvider}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -7740,6 +7644,7 @@ func (c *TypeProvidersGetCall) Do(opts ...googleapi.CallOption) (*TypeProvider, return ret, nil // { // "description": "Gets information about a specific type provider.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}", // "httpMethod": "GET", // "id": "deploymentmanager.typeProviders.get", // "parameterOrder": [ @@ -7762,7 +7667,7 @@ func (c *TypeProvidersGetCall) Do(opts ...googleapi.CallOption) (*TypeProvider, // "type": "string" // } // }, - // "path": "{project}/global/typeProviders/{typeProvider}", + // "path": "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}", // "response": { // "$ref": "TypeProvider" // }, @@ -7835,7 +7740,7 @@ func (c *TypeProvidersGetTypeCall) Header() http.Header { func (c *TypeProvidersGetTypeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7846,7 +7751,7 @@ func (c *TypeProvidersGetTypeCall) doRequest(alt string) (*http.Response, error) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/typeProviders/{typeProvider}/types/{type}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}/types/{type}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -7900,6 +7805,7 @@ func (c *TypeProvidersGetTypeCall) Do(opts ...googleapi.CallOption) (*TypeInfo, return ret, nil // { // "description": "Gets a type info for a type provided by a TypeProvider.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}/types/{type}", // "httpMethod": "GET", // "id": "deploymentmanager.typeProviders.getType", // "parameterOrder": [ @@ -7929,7 +7835,7 @@ func (c *TypeProvidersGetTypeCall) Do(opts ...googleapi.CallOption) (*TypeInfo, // "type": "string" // } // }, - // "path": "{project}/global/typeProviders/{typeProvider}/types/{type}", + // "path": "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}/types/{type}", // "response": { // "$ref": "TypeInfo" // }, @@ -7989,7 +7895,7 @@ func (c *TypeProvidersInsertCall) Header() http.Header { func (c *TypeProvidersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8002,7 +7908,7 @@ func (c *TypeProvidersInsertCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/typeProviders") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/typeProviders") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -8054,6 +7960,7 @@ func (c *TypeProvidersInsertCall) Do(opts ...googleapi.CallOption) (*Operation, return ret, nil // { // "description": "Creates a type provider.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/typeProviders", // "httpMethod": "POST", // "id": "deploymentmanager.typeProviders.insert", // "parameterOrder": [ @@ -8068,7 +7975,7 @@ func (c *TypeProvidersInsertCall) Do(opts ...googleapi.CallOption) (*Operation, // "type": "string" // } // }, - // "path": "{project}/global/typeProviders", + // "path": "deploymentmanager/v2beta/projects/{project}/global/typeProviders", // "request": { // "$ref": "TypeProvider" // }, @@ -8106,24 +8013,19 @@ func (r *TypeProvidersService) List(project string) *TypeProvidersListCall { // the field name, a comparison operator, and the value that you want to // use for filtering. The value must be a string, a number, or a // boolean. The comparison operator must be either `=`, `!=`, `>`, or -// `<`. -// -// For example, if you are filtering Compute Engine instances, you can -// exclude instances named `example-instance` by specifying `name != -// example-instance`. -// -// You can also filter nested fields. For example, you could specify -// `scheduling.automaticRestart = false` to include instances only if -// they are not scheduled for automatic restarts. You can use filtering -// on nested fields to filter based on resource labels. -// -// To filter on multiple expressions, provide each separate expression -// within parentheses. For example: ``` (scheduling.automaticRestart = -// true) (cpuPlatform = "Intel Skylake") ``` By default, each expression -// is an `AND` expression. However, you can include `AND` and `OR` -// expressions explicitly. For example: ``` (cpuPlatform = "Intel -// Skylake") OR (cpuPlatform = "Intel Broadwell") AND -// (scheduling.automaticRestart = true) ``` +// `<`. For example, if you are filtering Compute Engine instances, you +// can exclude instances named `example-instance` by specifying `name != +// example-instance`. You can also filter nested fields. For example, +// you could specify `scheduling.automaticRestart = false` to include +// instances only if they are not scheduled for automatic restarts. You +// can use filtering on nested fields to filter based on resource +// labels. To filter on multiple expressions, provide each separate +// expression within parentheses. For example: ``` +// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") +// ``` By default, each expression is an `AND` expression. However, you +// can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") +// AND (scheduling.automaticRestart = true) ``` func (c *TypeProvidersListCall) Filter(filter string) *TypeProvidersListCall { c.urlParams_.Set("filter", filter) return c @@ -8142,17 +8044,13 @@ func (c *TypeProvidersListCall) MaxResults(maxResults int64) *TypeProvidersListC // OrderBy sets the optional parameter "orderBy": Sorts list results by // a certain order. By default, results are returned in alphanumerical -// order based on the resource name. -// -// You can also sort results in descending order based on the creation -// timestamp using `orderBy="creationTimestamp desc". This sorts -// results based on the `creationTimestamp` field in reverse -// chronological order (newest result first). Use this to sort resources -// like operations so that the newest operation is returned -// first. -// -// Currently, only sorting by `name` or `creationTimestamp desc` is -// supported. +// order based on the resource name. You can also sort results in +// descending order based on the creation timestamp using +// `orderBy="creationTimestamp desc". This sorts results based on the +// `creationTimestamp` field in reverse chronological order (newest +// result first). Use this to sort resources like operations so that the +// newest operation is returned first. Currently, only sorting by `name` +// or `creationTimestamp desc` is supported. func (c *TypeProvidersListCall) OrderBy(orderBy string) *TypeProvidersListCall { c.urlParams_.Set("orderBy", orderBy) return c @@ -8166,6 +8064,15 @@ func (c *TypeProvidersListCall) PageToken(pageToken string) *TypeProvidersListCa return c } +// ReturnPartialSuccess sets the optional parameter +// "returnPartialSuccess": Opt-in for partial success behavior which +// provides partial results in case of failure. The default value is +// false and the logic is the same as today. +func (c *TypeProvidersListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TypeProvidersListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -8203,7 +8110,7 @@ func (c *TypeProvidersListCall) Header() http.Header { func (c *TypeProvidersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8214,7 +8121,7 @@ func (c *TypeProvidersListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/typeProviders") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/typeProviders") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -8266,6 +8173,7 @@ func (c *TypeProvidersListCall) Do(opts ...googleapi.CallOption) (*TypeProviders return ret, nil // { // "description": "Lists all resource type providers for Deployment Manager.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/typeProviders", // "httpMethod": "GET", // "id": "deploymentmanager.typeProviders.list", // "parameterOrder": [ @@ -8273,7 +8181,7 @@ func (c *TypeProvidersListCall) Do(opts ...googleapi.CallOption) (*TypeProviders // ], // "parameters": { // "filter": { - // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", // "location": "query", // "type": "string" // }, @@ -8286,7 +8194,7 @@ func (c *TypeProvidersListCall) Do(opts ...googleapi.CallOption) (*TypeProviders // "type": "integer" // }, // "orderBy": { - // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", // "location": "query", // "type": "string" // }, @@ -8301,9 +8209,14 @@ func (c *TypeProvidersListCall) Do(opts ...googleapi.CallOption) (*TypeProviders // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "returnPartialSuccess": { + // "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.", + // "location": "query", + // "type": "boolean" // } // }, - // "path": "{project}/global/typeProviders", + // "path": "deploymentmanager/v2beta/projects/{project}/global/typeProviders", // "response": { // "$ref": "TypeProvidersListResponse" // }, @@ -8363,24 +8276,19 @@ func (r *TypeProvidersService) ListTypes(project string, typeProvider string) *T // the field name, a comparison operator, and the value that you want to // use for filtering. The value must be a string, a number, or a // boolean. The comparison operator must be either `=`, `!=`, `>`, or -// `<`. -// -// For example, if you are filtering Compute Engine instances, you can -// exclude instances named `example-instance` by specifying `name != -// example-instance`. -// -// You can also filter nested fields. For example, you could specify -// `scheduling.automaticRestart = false` to include instances only if -// they are not scheduled for automatic restarts. You can use filtering -// on nested fields to filter based on resource labels. -// -// To filter on multiple expressions, provide each separate expression -// within parentheses. For example: ``` (scheduling.automaticRestart = -// true) (cpuPlatform = "Intel Skylake") ``` By default, each expression -// is an `AND` expression. However, you can include `AND` and `OR` -// expressions explicitly. For example: ``` (cpuPlatform = "Intel -// Skylake") OR (cpuPlatform = "Intel Broadwell") AND -// (scheduling.automaticRestart = true) ``` +// `<`. For example, if you are filtering Compute Engine instances, you +// can exclude instances named `example-instance` by specifying `name != +// example-instance`. You can also filter nested fields. For example, +// you could specify `scheduling.automaticRestart = false` to include +// instances only if they are not scheduled for automatic restarts. You +// can use filtering on nested fields to filter based on resource +// labels. To filter on multiple expressions, provide each separate +// expression within parentheses. For example: ``` +// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") +// ``` By default, each expression is an `AND` expression. However, you +// can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") +// AND (scheduling.automaticRestart = true) ``` func (c *TypeProvidersListTypesCall) Filter(filter string) *TypeProvidersListTypesCall { c.urlParams_.Set("filter", filter) return c @@ -8399,17 +8307,13 @@ func (c *TypeProvidersListTypesCall) MaxResults(maxResults int64) *TypeProviders // OrderBy sets the optional parameter "orderBy": Sorts list results by // a certain order. By default, results are returned in alphanumerical -// order based on the resource name. -// -// You can also sort results in descending order based on the creation -// timestamp using `orderBy="creationTimestamp desc". This sorts -// results based on the `creationTimestamp` field in reverse -// chronological order (newest result first). Use this to sort resources -// like operations so that the newest operation is returned -// first. -// -// Currently, only sorting by `name` or `creationTimestamp desc` is -// supported. +// order based on the resource name. You can also sort results in +// descending order based on the creation timestamp using +// `orderBy="creationTimestamp desc". This sorts results based on the +// `creationTimestamp` field in reverse chronological order (newest +// result first). Use this to sort resources like operations so that the +// newest operation is returned first. Currently, only sorting by `name` +// or `creationTimestamp desc` is supported. func (c *TypeProvidersListTypesCall) OrderBy(orderBy string) *TypeProvidersListTypesCall { c.urlParams_.Set("orderBy", orderBy) return c @@ -8423,6 +8327,15 @@ func (c *TypeProvidersListTypesCall) PageToken(pageToken string) *TypeProvidersL return c } +// ReturnPartialSuccess sets the optional parameter +// "returnPartialSuccess": Opt-in for partial success behavior which +// provides partial results in case of failure. The default value is +// false and the logic is the same as today. +func (c *TypeProvidersListTypesCall) ReturnPartialSuccess(returnPartialSuccess bool) *TypeProvidersListTypesCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -8460,7 +8373,7 @@ func (c *TypeProvidersListTypesCall) Header() http.Header { func (c *TypeProvidersListTypesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8471,7 +8384,7 @@ func (c *TypeProvidersListTypesCall) doRequest(alt string) (*http.Response, erro var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/typeProviders/{typeProvider}/types") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}/types") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -8524,6 +8437,7 @@ func (c *TypeProvidersListTypesCall) Do(opts ...googleapi.CallOption) (*TypeProv return ret, nil // { // "description": "Lists all the type info for a TypeProvider.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}/types", // "httpMethod": "GET", // "id": "deploymentmanager.typeProviders.listTypes", // "parameterOrder": [ @@ -8532,7 +8446,7 @@ func (c *TypeProvidersListTypesCall) Do(opts ...googleapi.CallOption) (*TypeProv // ], // "parameters": { // "filter": { - // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", // "location": "query", // "type": "string" // }, @@ -8545,7 +8459,7 @@ func (c *TypeProvidersListTypesCall) Do(opts ...googleapi.CallOption) (*TypeProv // "type": "integer" // }, // "orderBy": { - // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", // "location": "query", // "type": "string" // }, @@ -8561,6 +8475,11 @@ func (c *TypeProvidersListTypesCall) Do(opts ...googleapi.CallOption) (*TypeProv // "required": true, // "type": "string" // }, + // "returnPartialSuccess": { + // "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.", + // "location": "query", + // "type": "boolean" + // }, // "typeProvider": { // "description": "The name of the type provider for this request.", // "location": "path", @@ -8569,7 +8488,7 @@ func (c *TypeProvidersListTypesCall) Do(opts ...googleapi.CallOption) (*TypeProv // "type": "string" // } // }, - // "path": "{project}/global/typeProviders/{typeProvider}/types", + // "path": "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}/types", // "response": { // "$ref": "TypeProvidersListTypesResponse" // }, @@ -8652,7 +8571,7 @@ func (c *TypeProvidersPatchCall) Header() http.Header { func (c *TypeProvidersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8665,7 +8584,7 @@ func (c *TypeProvidersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/typeProviders/{typeProvider}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -8718,6 +8637,7 @@ func (c *TypeProvidersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, e return ret, nil // { // "description": "Patches a type provider.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}", // "httpMethod": "PATCH", // "id": "deploymentmanager.typeProviders.patch", // "parameterOrder": [ @@ -8740,7 +8660,7 @@ func (c *TypeProvidersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, e // "type": "string" // } // }, - // "path": "{project}/global/typeProviders/{typeProvider}", + // "path": "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}", // "request": { // "$ref": "TypeProvider" // }, @@ -8803,7 +8723,7 @@ func (c *TypeProvidersUpdateCall) Header() http.Header { func (c *TypeProvidersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8816,7 +8736,7 @@ func (c *TypeProvidersUpdateCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/typeProviders/{typeProvider}") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -8869,6 +8789,7 @@ func (c *TypeProvidersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, return ret, nil // { // "description": "Updates a type provider.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}", // "httpMethod": "PUT", // "id": "deploymentmanager.typeProviders.update", // "parameterOrder": [ @@ -8891,7 +8812,7 @@ func (c *TypeProvidersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, // "type": "string" // } // }, - // "path": "{project}/global/typeProviders/{typeProvider}", + // "path": "deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}", // "request": { // "$ref": "TypeProvider" // }, @@ -8929,24 +8850,19 @@ func (r *TypesService) List(project string) *TypesListCall { // the field name, a comparison operator, and the value that you want to // use for filtering. The value must be a string, a number, or a // boolean. The comparison operator must be either `=`, `!=`, `>`, or -// `<`. -// -// For example, if you are filtering Compute Engine instances, you can -// exclude instances named `example-instance` by specifying `name != -// example-instance`. -// -// You can also filter nested fields. For example, you could specify -// `scheduling.automaticRestart = false` to include instances only if -// they are not scheduled for automatic restarts. You can use filtering -// on nested fields to filter based on resource labels. -// -// To filter on multiple expressions, provide each separate expression -// within parentheses. For example: ``` (scheduling.automaticRestart = -// true) (cpuPlatform = "Intel Skylake") ``` By default, each expression -// is an `AND` expression. However, you can include `AND` and `OR` -// expressions explicitly. For example: ``` (cpuPlatform = "Intel -// Skylake") OR (cpuPlatform = "Intel Broadwell") AND -// (scheduling.automaticRestart = true) ``` +// `<`. For example, if you are filtering Compute Engine instances, you +// can exclude instances named `example-instance` by specifying `name != +// example-instance`. You can also filter nested fields. For example, +// you could specify `scheduling.automaticRestart = false` to include +// instances only if they are not scheduled for automatic restarts. You +// can use filtering on nested fields to filter based on resource +// labels. To filter on multiple expressions, provide each separate +// expression within parentheses. For example: ``` +// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") +// ``` By default, each expression is an `AND` expression. However, you +// can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") +// AND (scheduling.automaticRestart = true) ``` func (c *TypesListCall) Filter(filter string) *TypesListCall { c.urlParams_.Set("filter", filter) return c @@ -8965,17 +8881,13 @@ func (c *TypesListCall) MaxResults(maxResults int64) *TypesListCall { // OrderBy sets the optional parameter "orderBy": Sorts list results by // a certain order. By default, results are returned in alphanumerical -// order based on the resource name. -// -// You can also sort results in descending order based on the creation -// timestamp using `orderBy="creationTimestamp desc". This sorts -// results based on the `creationTimestamp` field in reverse -// chronological order (newest result first). Use this to sort resources -// like operations so that the newest operation is returned -// first. -// -// Currently, only sorting by `name` or `creationTimestamp desc` is -// supported. +// order based on the resource name. You can also sort results in +// descending order based on the creation timestamp using +// `orderBy="creationTimestamp desc". This sorts results based on the +// `creationTimestamp` field in reverse chronological order (newest +// result first). Use this to sort resources like operations so that the +// newest operation is returned first. Currently, only sorting by `name` +// or `creationTimestamp desc` is supported. func (c *TypesListCall) OrderBy(orderBy string) *TypesListCall { c.urlParams_.Set("orderBy", orderBy) return c @@ -8989,6 +8901,15 @@ func (c *TypesListCall) PageToken(pageToken string) *TypesListCall { return c } +// ReturnPartialSuccess sets the optional parameter +// "returnPartialSuccess": Opt-in for partial success behavior which +// provides partial results in case of failure. The default value is +// false and the logic is the same as today. +func (c *TypesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *TypesListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -9026,7 +8947,7 @@ func (c *TypesListCall) Header() http.Header { func (c *TypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9037,7 +8958,7 @@ func (c *TypesListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/global/types") + urls := googleapi.ResolveRelative(c.s.BasePath, "deploymentmanager/v2beta/projects/{project}/global/types") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -9089,6 +9010,7 @@ func (c *TypesListCall) Do(opts ...googleapi.CallOption) (*TypesListResponse, er return ret, nil // { // "description": "Lists all resource types for Deployment Manager.", + // "flatPath": "deploymentmanager/v2beta/projects/{project}/global/types", // "httpMethod": "GET", // "id": "deploymentmanager.types.list", // "parameterOrder": [ @@ -9096,7 +9018,7 @@ func (c *TypesListCall) Do(opts ...googleapi.CallOption) (*TypesListResponse, er // ], // "parameters": { // "filter": { - // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`.\n\nFor example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.\n\nYou can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.\n\nTo filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", + // "description": "A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `\u003e`, or `\u003c`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ```", // "location": "query", // "type": "string" // }, @@ -9109,7 +9031,7 @@ func (c *TypesListCall) Do(opts ...googleapi.CallOption) (*TypesListResponse, er // "type": "integer" // }, // "orderBy": { - // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or `creationTimestamp desc` is supported.", + // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", // "location": "query", // "type": "string" // }, @@ -9124,9 +9046,14 @@ func (c *TypesListCall) Do(opts ...googleapi.CallOption) (*TypesListResponse, er // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "returnPartialSuccess": { + // "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.", + // "location": "query", + // "type": "boolean" // } // }, - // "path": "{project}/global/types", + // "path": "deploymentmanager/v2beta/projects/{project}/global/types", // "response": { // "$ref": "TypesListResponse" // }, diff --git a/dfareporting/v3.3/dfareporting-api.json b/dfareporting/v3.3/dfareporting-api.json index 996caae7fc4..4ff435c31b1 100644 --- a/dfareporting/v3.3/dfareporting-api.json +++ b/dfareporting/v3.3/dfareporting-api.json @@ -4004,7 +4004,7 @@ "type": "string" }, "profileId": { - "description": "The DFA user profile ID.", + "description": "The Campaign Manager 360 user profile ID.", "format": "int64", "location": "path", "required": true, @@ -4669,7 +4669,7 @@ "type": "string" }, "profileId": { - "description": "The DFA profile ID.", + "description": "The Campaign Manager 360 user profile ID.", "format": "int64", "location": "path", "required": true, @@ -7796,7 +7796,7 @@ ], "parameters": { "profileId": { - "description": "The DFA user profile ID.", + "description": "The Campaign Manager 360 user profile ID.", "format": "int64", "location": "path", "required": true, @@ -7826,7 +7826,7 @@ ], "parameters": { "profileId": { - "description": "The DFA user profile ID.", + "description": "The Campaign Manager 360 user profile ID.", "format": "int64", "location": "path", "required": true, @@ -7858,7 +7858,7 @@ ], "parameters": { "profileId": { - "description": "The DFA user profile ID.", + "description": "The Campaign Manager 360 user profile ID.", "format": "int64", "location": "path", "required": true, @@ -7900,7 +7900,7 @@ "type": "string" }, "profileId": { - "description": "The DFA user profile ID.", + "description": "The Campaign Manager 360 user profile ID.", "format": "int64", "location": "path", "required": true, @@ -8006,7 +8006,7 @@ ], "parameters": { "profileId": { - "description": "The DFA profile ID.", + "description": "The Campaign Manager 360 user profile ID.", "format": "int64", "location": "path", "required": true, @@ -8045,7 +8045,7 @@ ], "parameters": { "profileId": { - "description": "The DFA user profile ID.", + "description": "The Campaign Manager 360 user profile ID.", "format": "int64", "location": "path", "required": true, @@ -8084,7 +8084,7 @@ ], "parameters": { "profileId": { - "description": "The DFA user profile ID.", + "description": "The Campaign Manager 360 user profile ID.", "format": "int64", "location": "path", "required": true, @@ -8125,7 +8125,7 @@ "type": "string" }, "profileId": { - "description": "The DFA user profile ID.", + "description": "The Campaign Manager 360 user profile ID.", "format": "int64", "location": "path", "required": true, @@ -8173,7 +8173,7 @@ "type": "string" }, "profileId": { - "description": "The DFA profile ID.", + "description": "The Campaign Manager 360 user profile ID.", "format": "int64", "location": "path", "required": true, @@ -9638,7 +9638,7 @@ } } }, - "revision": "20200921", + "revision": "20201102", "rootUrl": "https://dfareporting.googleapis.com/", "schemas": { "Account": { @@ -11119,7 +11119,7 @@ "type": "boolean" }, "enabledSizes": { - "description": "Whitelist of companion sizes to be served to this placement. Set this list to null or empty to serve all companion sizes.", + "description": "Allowlist of companion sizes to be served to this placement. Set this list to null or empty to serve all companion sizes.", "items": { "$ref": "Size" }, @@ -11590,9 +11590,11 @@ "enum": [ "CREATIVE_AUTHORING_SOURCE_DCM", "CREATIVE_AUTHORING_SOURCE_DBM", - "CREATIVE_AUTHORING_SOURCE_STUDIO" + "CREATIVE_AUTHORING_SOURCE_STUDIO", + "CREATIVE_AUTHORING_SOURCE_GWD" ], "enumDescriptions": [ + "", "", "", "" @@ -16587,7 +16589,7 @@ "description": "Lookback window settings for this placement." }, "name": { - "description": "Name of this placement.This is a required field and must be less than 256 characters long.", + "description": "Name of this placement.This is a required field and must be less than or equal to 256 characters long.", "type": "string" }, "paymentApproved": { @@ -18514,7 +18516,7 @@ "type": "boolean" }, "enabledSizes": { - "description": "Whitelist of companion sizes to be served via this site template. Set this list to null or empty to serve all companion sizes.", + "description": "Allowlist of companion sizes to be served via this site template. Set this list to null or empty to serve all companion sizes.", "items": { "$ref": "Size" }, @@ -18650,7 +18652,7 @@ "id": "SiteTranscodeSetting", "properties": { "enabledVideoFormats": { - "description": "Whitelist of video formats to be served to this site template. Set this list to null or empty to serve all video formats.", + "description": "Allowlist of video formats to be served to this site template. Set this list to null or empty to serve all video formats.", "items": { "format": "int32", "type": "integer" @@ -19340,7 +19342,7 @@ "id": "TranscodeSetting", "properties": { "enabledVideoFormats": { - "description": "Whitelist of video formats to be served to this placement. Set this list to null or empty to serve all video formats.", + "description": "Allowlist of video formats to be served to this placement. Set this list to null or empty to serve all video formats.", "items": { "format": "int32", "type": "integer" @@ -19960,6 +19962,6 @@ } }, "servicePath": "dfareporting/v3.3/", - "title": "DCM/DFA Reporting And Trafficking API", + "title": "Campaign Manager 360 API", "version": "v3.3" } \ No newline at end of file diff --git a/dfareporting/v3.3/dfareporting-gen.go b/dfareporting/v3.3/dfareporting-gen.go index 88218055687..7e76487a0c2 100644 --- a/dfareporting/v3.3/dfareporting-gen.go +++ b/dfareporting/v3.3/dfareporting-gen.go @@ -4,7 +4,7 @@ // Code generated file. DO NOT EDIT. -// Package dfareporting provides access to the DCM/DFA Reporting And Trafficking API. +// Package dfareporting provides access to the Campaign Manager 360 API. // // For product documentation, see: https://developers.google.com/doubleclick-advertisers/ // @@ -2930,7 +2930,7 @@ type CompanionSetting struct { // placement. CompanionsDisabled bool `json:"companionsDisabled,omitempty"` - // EnabledSizes: Whitelist of companion sizes to be served to this + // EnabledSizes: Allowlist of companion sizes to be served to this // placement. Set this list to null or empty to serve all companion // sizes. EnabledSizes []*Size `json:"enabledSizes,omitempty"` @@ -3697,6 +3697,7 @@ type Creative struct { // "CREATIVE_AUTHORING_SOURCE_DCM" // "CREATIVE_AUTHORING_SOURCE_DBM" // "CREATIVE_AUTHORING_SOURCE_STUDIO" + // "CREATIVE_AUTHORING_SOURCE_GWD" AuthoringSource string `json:"authoringSource,omitempty"` // AuthoringTool: Authoring tool for HTML5 banner creatives. This is a @@ -9665,7 +9666,7 @@ type Placement struct { LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` // Name: Name of this placement.This is a required field and must be - // less than 256 characters long. + // less than or equal to 256 characters long. Name string `json:"name,omitempty"` // PaymentApproved: Whether payment was approved for this placement. @@ -12092,7 +12093,7 @@ type SiteCompanionSetting struct { // template. CompanionsDisabled bool `json:"companionsDisabled,omitempty"` - // EnabledSizes: Whitelist of companion sizes to be served via this site + // EnabledSizes: Allowlist of companion sizes to be served via this site // template. Set this list to null or empty to serve all companion // sizes. EnabledSizes []*Size `json:"enabledSizes,omitempty"` @@ -12293,7 +12294,7 @@ func (s *SiteSkippableSetting) MarshalJSON() ([]byte, error) { // SiteTranscodeSetting: Transcode Settings type SiteTranscodeSetting struct { - // EnabledVideoFormats: Whitelist of video formats to be served to this + // EnabledVideoFormats: Allowlist of video formats to be served to this // site template. Set this list to null or empty to serve all video // formats. EnabledVideoFormats []int64 `json:"enabledVideoFormats,omitempty"` @@ -13265,7 +13266,7 @@ func (s *ThirdPartyTrackingUrl) MarshalJSON() ([]byte, error) { // TranscodeSetting: Transcode Settings type TranscodeSetting struct { - // EnabledVideoFormats: Whitelist of video formats to be served to this + // EnabledVideoFormats: Allowlist of video formats to be served to this // placement. Set this list to null or empty to serve all video formats. EnabledVideoFormats []int64 `json:"enabledVideoFormats,omitempty"` @@ -14082,7 +14083,7 @@ func (c *AccountActiveAdSummariesGetCall) Header() http.Header { func (c *AccountActiveAdSummariesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14237,7 +14238,7 @@ func (c *AccountPermissionGroupsGetCall) Header() http.Header { func (c *AccountPermissionGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14390,7 +14391,7 @@ func (c *AccountPermissionGroupsListCall) Header() http.Header { func (c *AccountPermissionGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14537,7 +14538,7 @@ func (c *AccountPermissionsGetCall) Header() http.Header { func (c *AccountPermissionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14690,7 +14691,7 @@ func (c *AccountPermissionsListCall) Header() http.Header { func (c *AccountPermissionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14836,7 +14837,7 @@ func (c *AccountUserProfilesGetCall) Header() http.Header { func (c *AccountUserProfilesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14980,7 +14981,7 @@ func (c *AccountUserProfilesInsertCall) Header() http.Header { func (c *AccountUserProfilesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15212,7 +15213,7 @@ func (c *AccountUserProfilesListCall) Header() http.Header { func (c *AccountUserProfilesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15441,7 +15442,7 @@ func (c *AccountUserProfilesPatchCall) Header() http.Header { func (c *AccountUserProfilesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15589,7 +15590,7 @@ func (c *AccountUserProfilesUpdateCall) Header() http.Header { func (c *AccountUserProfilesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15740,7 +15741,7 @@ func (c *AccountsGetCall) Header() http.Header { func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15962,7 +15963,7 @@ func (c *AccountsListCall) Header() http.Header { func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16179,7 +16180,7 @@ func (c *AccountsPatchCall) Header() http.Header { func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16327,7 +16328,7 @@ func (c *AccountsUpdateCall) Header() http.Header { func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16478,7 +16479,7 @@ func (c *AdsGetCall) Header() http.Header { func (c *AdsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16622,7 +16623,7 @@ func (c *AdsInsertCall) Header() http.Header { func (c *AdsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17007,7 +17008,7 @@ func (c *AdsListCall) Header() http.Header { func (c *AdsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17352,7 +17353,7 @@ func (c *AdsPatchCall) Header() http.Header { func (c *AdsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17500,7 +17501,7 @@ func (c *AdsUpdateCall) Header() http.Header { func (c *AdsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17640,7 +17641,7 @@ func (c *AdvertiserGroupsDeleteCall) Header() http.Header { func (c *AdvertiserGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17764,7 +17765,7 @@ func (c *AdvertiserGroupsGetCall) Header() http.Header { func (c *AdvertiserGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17908,7 +17909,7 @@ func (c *AdvertiserGroupsInsertCall) Header() http.Header { func (c *AdvertiserGroupsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18119,7 +18120,7 @@ func (c *AdvertiserGroupsListCall) Header() http.Header { func (c *AdvertiserGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18331,7 +18332,7 @@ func (c *AdvertiserGroupsPatchCall) Header() http.Header { func (c *AdvertiserGroupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18479,7 +18480,7 @@ func (c *AdvertiserGroupsUpdateCall) Header() http.Header { func (c *AdvertiserGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18630,7 +18631,7 @@ func (c *AdvertiserLandingPagesGetCall) Header() http.Header { func (c *AdvertiserLandingPagesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18774,7 +18775,7 @@ func (c *AdvertiserLandingPagesInsertCall) Header() http.Header { func (c *AdvertiserLandingPagesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19020,7 +19021,7 @@ func (c *AdvertiserLandingPagesListCall) Header() http.Header { func (c *AdvertiserLandingPagesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19258,7 +19259,7 @@ func (c *AdvertiserLandingPagesPatchCall) Header() http.Header { func (c *AdvertiserLandingPagesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19406,7 +19407,7 @@ func (c *AdvertiserLandingPagesUpdateCall) Header() http.Header { func (c *AdvertiserLandingPagesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19557,7 +19558,7 @@ func (c *AdvertisersGetCall) Header() http.Header { func (c *AdvertisersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19701,7 +19702,7 @@ func (c *AdvertisersInsertCall) Header() http.Header { func (c *AdvertisersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19967,7 +19968,7 @@ func (c *AdvertisersListCall) Header() http.Header { func (c *AdvertisersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20222,7 +20223,7 @@ func (c *AdvertisersPatchCall) Header() http.Header { func (c *AdvertisersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20370,7 +20371,7 @@ func (c *AdvertisersUpdateCall) Header() http.Header { func (c *AdvertisersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20519,7 +20520,7 @@ func (c *BrowsersListCall) Header() http.Header { func (c *BrowsersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20658,7 +20659,7 @@ func (c *CampaignCreativeAssociationsInsertCall) Header() http.Header { func (c *CampaignCreativeAssociationsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20844,7 +20845,7 @@ func (c *CampaignCreativeAssociationsListCall) Header() http.Header { func (c *CampaignCreativeAssociationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21050,7 +21051,7 @@ func (c *CampaignsGetCall) Header() http.Header { func (c *CampaignsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21194,7 +21195,7 @@ func (c *CampaignsInsertCall) Header() http.Header { func (c *CampaignsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21469,7 +21470,7 @@ func (c *CampaignsListCall) Header() http.Header { func (c *CampaignsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21724,7 +21725,7 @@ func (c *CampaignsPatchCall) Header() http.Header { func (c *CampaignsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21872,7 +21873,7 @@ func (c *CampaignsUpdateCall) Header() http.Header { func (c *CampaignsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22023,7 +22024,7 @@ func (c *ChangeLogsGetCall) Header() http.Header { func (c *ChangeLogsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22332,7 +22333,7 @@ func (c *ChangeLogsListCall) Header() http.Header { func (c *ChangeLogsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22719,7 +22720,7 @@ func (c *CitiesListCall) Header() http.Header { func (c *CitiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22891,7 +22892,7 @@ func (c *ConnectionTypesGetCall) Header() http.Header { func (c *ConnectionTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23044,7 +23045,7 @@ func (c *ConnectionTypesListCall) Header() http.Header { func (c *ConnectionTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23179,7 +23180,7 @@ func (c *ContentCategoriesDeleteCall) Header() http.Header { func (c *ContentCategoriesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23303,7 +23304,7 @@ func (c *ContentCategoriesGetCall) Header() http.Header { func (c *ContentCategoriesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23447,7 +23448,7 @@ func (c *ContentCategoriesInsertCall) Header() http.Header { func (c *ContentCategoriesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23658,7 +23659,7 @@ func (c *ContentCategoriesListCall) Header() http.Header { func (c *ContentCategoriesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23870,7 +23871,7 @@ func (c *ContentCategoriesPatchCall) Header() http.Header { func (c *ContentCategoriesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24018,7 +24019,7 @@ func (c *ContentCategoriesUpdateCall) Header() http.Header { func (c *ContentCategoriesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24158,7 +24159,7 @@ func (c *ConversionsBatchinsertCall) Header() http.Header { func (c *ConversionsBatchinsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24298,7 +24299,7 @@ func (c *ConversionsBatchupdateCall) Header() http.Header { func (c *ConversionsBatchupdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24449,7 +24450,7 @@ func (c *CountriesGetCall) Header() http.Header { func (c *CountriesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24602,7 +24603,7 @@ func (c *CountriesListCall) Header() http.Header { func (c *CountriesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24779,7 +24780,7 @@ func (c *CreativeAssetsInsertCall) Header() http.Header { func (c *CreativeAssetsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24971,7 +24972,7 @@ func (c *CreativeFieldValuesDeleteCall) Header() http.Header { func (c *CreativeFieldValuesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25106,7 +25107,7 @@ func (c *CreativeFieldValuesGetCall) Header() http.Header { func (c *CreativeFieldValuesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25261,7 +25262,7 @@ func (c *CreativeFieldValuesInsertCall) Header() http.Header { func (c *CreativeFieldValuesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25477,7 +25478,7 @@ func (c *CreativeFieldValuesListCall) Header() http.Header { func (c *CreativeFieldValuesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25700,7 +25701,7 @@ func (c *CreativeFieldValuesPatchCall) Header() http.Header { func (c *CreativeFieldValuesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25859,7 +25860,7 @@ func (c *CreativeFieldValuesUpdateCall) Header() http.Header { func (c *CreativeFieldValuesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26008,7 +26009,7 @@ func (c *CreativeFieldsDeleteCall) Header() http.Header { func (c *CreativeFieldsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26132,7 +26133,7 @@ func (c *CreativeFieldsGetCall) Header() http.Header { func (c *CreativeFieldsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26276,7 +26277,7 @@ func (c *CreativeFieldsInsertCall) Header() http.Header { func (c *CreativeFieldsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26498,7 +26499,7 @@ func (c *CreativeFieldsListCall) Header() http.Header { func (c *CreativeFieldsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26717,7 +26718,7 @@ func (c *CreativeFieldsPatchCall) Header() http.Header { func (c *CreativeFieldsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26865,7 +26866,7 @@ func (c *CreativeFieldsUpdateCall) Header() http.Header { func (c *CreativeFieldsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27016,7 +27017,7 @@ func (c *CreativeGroupsGetCall) Header() http.Header { func (c *CreativeGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27160,7 +27161,7 @@ func (c *CreativeGroupsInsertCall) Header() http.Header { func (c *CreativeGroupsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27389,7 +27390,7 @@ func (c *CreativeGroupsListCall) Header() http.Header { func (c *CreativeGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27616,7 +27617,7 @@ func (c *CreativeGroupsPatchCall) Header() http.Header { func (c *CreativeGroupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27764,7 +27765,7 @@ func (c *CreativeGroupsUpdateCall) Header() http.Header { func (c *CreativeGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27915,7 +27916,7 @@ func (c *CreativesGetCall) Header() http.Header { func (c *CreativesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28059,7 +28060,7 @@ func (c *CreativesInsertCall) Header() http.Header { func (c *CreativesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28383,7 +28384,7 @@ func (c *CreativesListCall) Header() http.Header { func (c *CreativesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28711,7 +28712,7 @@ func (c *CreativesPatchCall) Header() http.Header { func (c *CreativesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28859,7 +28860,7 @@ func (c *CreativesUpdateCall) Header() http.Header { func (c *CreativesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29014,7 +29015,7 @@ func (c *DimensionValuesQueryCall) Header() http.Header { func (c *DimensionValuesQueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29101,7 +29102,7 @@ func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionV // "type": "string" // }, // "profileId": { - // "description": "The DFA user profile ID.", + // "description": "The Campaign Manager 360 user profile ID.", // "format": "int64", // "location": "path", // "required": true, @@ -29200,7 +29201,7 @@ func (c *DirectorySitesGetCall) Header() http.Header { func (c *DirectorySitesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29344,7 +29345,7 @@ func (c *DirectorySitesInsertCall) Header() http.Header { func (c *DirectorySitesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29594,7 +29595,7 @@ func (c *DirectorySitesListCall) Header() http.Header { func (c *DirectorySitesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29831,7 +29832,7 @@ func (c *DynamicTargetingKeysDeleteCall) Header() http.Header { func (c *DynamicTargetingKeysDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29974,7 +29975,7 @@ func (c *DynamicTargetingKeysInsertCall) Header() http.Header { func (c *DynamicTargetingKeysInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30157,7 +30158,7 @@ func (c *DynamicTargetingKeysListCall) Header() http.Header { func (c *DynamicTargetingKeysListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30327,7 +30328,7 @@ func (c *EventTagsDeleteCall) Header() http.Header { func (c *EventTagsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30451,7 +30452,7 @@ func (c *EventTagsGetCall) Header() http.Header { func (c *EventTagsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30595,7 +30596,7 @@ func (c *EventTagsInsertCall) Header() http.Header { func (c *EventTagsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30852,7 +30853,7 @@ func (c *EventTagsListCall) Header() http.Header { func (c *EventTagsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31073,7 +31074,7 @@ func (c *EventTagsPatchCall) Header() http.Header { func (c *EventTagsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31221,7 +31222,7 @@ func (c *EventTagsUpdateCall) Header() http.Header { func (c *EventTagsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31373,7 +31374,7 @@ func (c *FilesGetCall) Header() http.Header { func (c *FilesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31591,7 +31592,7 @@ func (c *FilesListCall) Header() http.Header { func (c *FilesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31676,7 +31677,7 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { // "type": "string" // }, // "profileId": { - // "description": "The DFA profile ID.", + // "description": "The Campaign Manager 360 user profile ID.", // "format": "int64", // "location": "path", // "required": true, @@ -31805,7 +31806,7 @@ func (c *FloodlightActivitiesDeleteCall) Header() http.Header { func (c *FloodlightActivitiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31924,7 +31925,7 @@ func (c *FloodlightActivitiesGeneratetagCall) Header() http.Header { func (c *FloodlightActivitiesGeneratetagCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -32074,7 +32075,7 @@ func (c *FloodlightActivitiesGetCall) Header() http.Header { func (c *FloodlightActivitiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -32218,7 +32219,7 @@ func (c *FloodlightActivitiesInsertCall) Header() http.Header { func (c *FloodlightActivitiesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -32495,7 +32496,7 @@ func (c *FloodlightActivitiesListCall) Header() http.Header { func (c *FloodlightActivitiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -32754,7 +32755,7 @@ func (c *FloodlightActivitiesPatchCall) Header() http.Header { func (c *FloodlightActivitiesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -32902,7 +32903,7 @@ func (c *FloodlightActivitiesUpdateCall) Header() http.Header { func (c *FloodlightActivitiesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -33053,7 +33054,7 @@ func (c *FloodlightActivityGroupsGetCall) Header() http.Header { func (c *FloodlightActivityGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -33197,7 +33198,7 @@ func (c *FloodlightActivityGroupsInsertCall) Header() http.Header { func (c *FloodlightActivityGroupsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -33439,7 +33440,7 @@ func (c *FloodlightActivityGroupsListCall) Header() http.Header { func (c *FloodlightActivityGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -33677,7 +33678,7 @@ func (c *FloodlightActivityGroupsPatchCall) Header() http.Header { func (c *FloodlightActivityGroupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -33825,7 +33826,7 @@ func (c *FloodlightActivityGroupsUpdateCall) Header() http.Header { func (c *FloodlightActivityGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -33976,7 +33977,7 @@ func (c *FloodlightConfigurationsGetCall) Header() http.Header { func (c *FloodlightConfigurationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -34142,7 +34143,7 @@ func (c *FloodlightConfigurationsListCall) Header() http.Header { func (c *FloodlightConfigurationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -34287,7 +34288,7 @@ func (c *FloodlightConfigurationsPatchCall) Header() http.Header { func (c *FloodlightConfigurationsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -34435,7 +34436,7 @@ func (c *FloodlightConfigurationsUpdateCall) Header() http.Header { func (c *FloodlightConfigurationsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -34588,7 +34589,7 @@ func (c *InventoryItemsGetCall) Header() http.Header { func (c *InventoryItemsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -34840,7 +34841,7 @@ func (c *InventoryItemsListCall) Header() http.Header { func (c *InventoryItemsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -35095,7 +35096,7 @@ func (c *LanguagesListCall) Header() http.Header { func (c *LanguagesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -35239,7 +35240,7 @@ func (c *MetrosListCall) Header() http.Header { func (c *MetrosListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -35385,7 +35386,7 @@ func (c *MobileAppsGetCall) Header() http.Header { func (c *MobileAppsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -35582,7 +35583,7 @@ func (c *MobileAppsListCall) Header() http.Header { func (c *MobileAppsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -35790,7 +35791,7 @@ func (c *MobileCarriersGetCall) Header() http.Header { func (c *MobileCarriersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -35943,7 +35944,7 @@ func (c *MobileCarriersListCall) Header() http.Header { func (c *MobileCarriersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -36089,7 +36090,7 @@ func (c *OperatingSystemVersionsGetCall) Header() http.Header { func (c *OperatingSystemVersionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -36242,7 +36243,7 @@ func (c *OperatingSystemVersionsListCall) Header() http.Header { func (c *OperatingSystemVersionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -36389,7 +36390,7 @@ func (c *OperatingSystemsGetCall) Header() http.Header { func (c *OperatingSystemsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -36542,7 +36543,7 @@ func (c *OperatingSystemsListCall) Header() http.Header { func (c *OperatingSystemsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -36690,7 +36691,7 @@ func (c *OrderDocumentsGetCall) Header() http.Header { func (c *OrderDocumentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -36945,7 +36946,7 @@ func (c *OrderDocumentsListCall) Header() http.Header { func (c *OrderDocumentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -37196,7 +37197,7 @@ func (c *OrdersGetCall) Header() http.Header { func (c *OrdersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -37431,7 +37432,7 @@ func (c *OrdersListCall) Header() http.Header { func (c *OrdersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -37668,7 +37669,7 @@ func (c *PlacementGroupsGetCall) Header() http.Header { func (c *PlacementGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -37812,7 +37813,7 @@ func (c *PlacementGroupsInsertCall) Header() http.Header { func (c *PlacementGroupsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -38163,7 +38164,7 @@ func (c *PlacementGroupsListCall) Header() http.Header { func (c *PlacementGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -38477,7 +38478,7 @@ func (c *PlacementGroupsPatchCall) Header() http.Header { func (c *PlacementGroupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -38625,7 +38626,7 @@ func (c *PlacementGroupsUpdateCall) Header() http.Header { func (c *PlacementGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -38765,7 +38766,7 @@ func (c *PlacementStrategiesDeleteCall) Header() http.Header { func (c *PlacementStrategiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -38889,7 +38890,7 @@ func (c *PlacementStrategiesGetCall) Header() http.Header { func (c *PlacementStrategiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -39033,7 +39034,7 @@ func (c *PlacementStrategiesInsertCall) Header() http.Header { func (c *PlacementStrategiesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -39244,7 +39245,7 @@ func (c *PlacementStrategiesListCall) Header() http.Header { func (c *PlacementStrategiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -39456,7 +39457,7 @@ func (c *PlacementStrategiesPatchCall) Header() http.Header { func (c *PlacementStrategiesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -39604,7 +39605,7 @@ func (c *PlacementStrategiesUpdateCall) Header() http.Header { func (c *PlacementStrategiesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -39789,7 +39790,7 @@ func (c *PlacementsGeneratetagsCall) Header() http.Header { func (c *PlacementsGeneratetagsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -39993,7 +39994,7 @@ func (c *PlacementsGetCall) Header() http.Header { func (c *PlacementsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -40137,7 +40138,7 @@ func (c *PlacementsInsertCall) Header() http.Header { func (c *PlacementsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -40524,7 +40525,7 @@ func (c *PlacementsListCall) Header() http.Header { func (c *PlacementsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -40874,7 +40875,7 @@ func (c *PlacementsPatchCall) Header() http.Header { func (c *PlacementsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -41022,7 +41023,7 @@ func (c *PlacementsUpdateCall) Header() http.Header { func (c *PlacementsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -41173,7 +41174,7 @@ func (c *PlatformTypesGetCall) Header() http.Header { func (c *PlatformTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -41326,7 +41327,7 @@ func (c *PlatformTypesListCall) Header() http.Header { func (c *PlatformTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -41472,7 +41473,7 @@ func (c *PostalCodesGetCall) Header() http.Header { func (c *PostalCodesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -41624,7 +41625,7 @@ func (c *PostalCodesListCall) Header() http.Header { func (c *PostalCodesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -41770,7 +41771,7 @@ func (c *ProjectsGetCall) Header() http.Header { func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -41995,7 +41996,7 @@ func (c *ProjectsListCall) Header() http.Header { func (c *ProjectsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -42221,7 +42222,7 @@ func (c *RegionsListCall) Header() http.Header { func (c *RegionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -42367,7 +42368,7 @@ func (c *RemarketingListSharesGetCall) Header() http.Header { func (c *RemarketingListSharesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -42513,7 +42514,7 @@ func (c *RemarketingListSharesPatchCall) Header() http.Header { func (c *RemarketingListSharesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -42661,7 +42662,7 @@ func (c *RemarketingListSharesUpdateCall) Header() http.Header { func (c *RemarketingListSharesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -42812,7 +42813,7 @@ func (c *RemarketingListsGetCall) Header() http.Header { func (c *RemarketingListsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -42956,7 +42957,7 @@ func (c *RemarketingListsInsertCall) Header() http.Header { func (c *RemarketingListsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -43171,7 +43172,7 @@ func (c *RemarketingListsListCall) Header() http.Header { func (c *RemarketingListsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -43395,7 +43396,7 @@ func (c *RemarketingListsPatchCall) Header() http.Header { func (c *RemarketingListsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -43543,7 +43544,7 @@ func (c *RemarketingListsUpdateCall) Header() http.Header { func (c *RemarketingListsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -43683,7 +43684,7 @@ func (c *ReportsDeleteCall) Header() http.Header { func (c *ReportsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -43728,7 +43729,7 @@ func (c *ReportsDeleteCall) Do(opts ...googleapi.CallOption) error { // ], // "parameters": { // "profileId": { - // "description": "The DFA user profile ID.", + // "description": "The Campaign Manager 360 user profile ID.", // "format": "int64", // "location": "path", // "required": true, @@ -43807,7 +43808,7 @@ func (c *ReportsGetCall) Header() http.Header { func (c *ReportsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -43880,7 +43881,7 @@ func (c *ReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) { // ], // "parameters": { // "profileId": { - // "description": "The DFA user profile ID.", + // "description": "The Campaign Manager 360 user profile ID.", // "format": "int64", // "location": "path", // "required": true, @@ -43951,7 +43952,7 @@ func (c *ReportsInsertCall) Header() http.Header { func (c *ReportsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -44024,7 +44025,7 @@ func (c *ReportsInsertCall) Do(opts ...googleapi.CallOption) (*Report, error) { // ], // "parameters": { // "profileId": { - // "description": "The DFA user profile ID.", + // "description": "The Campaign Manager 360 user profile ID.", // "format": "int64", // "location": "path", // "required": true, @@ -44148,7 +44149,7 @@ func (c *ReportsListCall) Header() http.Header { func (c *ReportsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -44233,7 +44234,7 @@ func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) // "type": "string" // }, // "profileId": { - // "description": "The DFA user profile ID.", + // "description": "The Campaign Manager 360 user profile ID.", // "format": "int64", // "location": "path", // "required": true, @@ -44365,7 +44366,7 @@ func (c *ReportsPatchCall) Header() http.Header { func (c *ReportsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -44521,7 +44522,7 @@ func (c *ReportsRunCall) Header() http.Header { func (c *ReportsRunCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -44591,7 +44592,7 @@ func (c *ReportsRunCall) Do(opts ...googleapi.CallOption) (*File, error) { // ], // "parameters": { // "profileId": { - // "description": "The DFA profile ID.", + // "description": "The Campaign Manager 360 user profile ID.", // "format": "int64", // "location": "path", // "required": true, @@ -44670,7 +44671,7 @@ func (c *ReportsUpdateCall) Header() http.Header { func (c *ReportsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -44745,7 +44746,7 @@ func (c *ReportsUpdateCall) Do(opts ...googleapi.CallOption) (*Report, error) { // ], // "parameters": { // "profileId": { - // "description": "The DFA user profile ID.", + // "description": "The Campaign Manager 360 user profile ID.", // "format": "int64", // "location": "path", // "required": true, @@ -44821,7 +44822,7 @@ func (c *ReportsCompatibleFieldsQueryCall) Header() http.Header { func (c *ReportsCompatibleFieldsQueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -44894,7 +44895,7 @@ func (c *ReportsCompatibleFieldsQueryCall) Do(opts ...googleapi.CallOption) (*Co // ], // "parameters": { // "profileId": { - // "description": "The DFA user profile ID.", + // "description": "The Campaign Manager 360 user profile ID.", // "format": "int64", // "location": "path", // "required": true, @@ -44975,7 +44976,7 @@ func (c *ReportsFilesGetCall) Header() http.Header { func (c *ReportsFilesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -45073,7 +45074,7 @@ func (c *ReportsFilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { // "type": "string" // }, // "profileId": { - // "description": "The DFA user profile ID.", + // "description": "The Campaign Manager 360 user profile ID.", // "format": "int64", // "location": "path", // "required": true, @@ -45192,7 +45193,7 @@ func (c *ReportsFilesListCall) Header() http.Header { func (c *ReportsFilesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -45279,7 +45280,7 @@ func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, erro // "type": "string" // }, // "profileId": { - // "description": "The DFA profile ID.", + // "description": "The Campaign Manager 360 user profile ID.", // "format": "int64", // "location": "path", // "required": true, @@ -45410,7 +45411,7 @@ func (c *SitesGetCall) Header() http.Header { func (c *SitesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -45554,7 +45555,7 @@ func (c *SitesInsertCall) Header() http.Header { func (c *SitesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -45837,7 +45838,7 @@ func (c *SitesListCall) Header() http.Header { func (c *SitesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -46099,7 +46100,7 @@ func (c *SitesPatchCall) Header() http.Header { func (c *SitesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -46247,7 +46248,7 @@ func (c *SitesUpdateCall) Header() http.Header { func (c *SitesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -46398,7 +46399,7 @@ func (c *SizesGetCall) Header() http.Header { func (c *SizesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -46542,7 +46543,7 @@ func (c *SizesInsertCall) Header() http.Header { func (c *SizesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -46726,7 +46727,7 @@ func (c *SizesListCall) Header() http.Header { func (c *SizesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -46900,7 +46901,7 @@ func (c *SubaccountsGetCall) Header() http.Header { func (c *SubaccountsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -47044,7 +47045,7 @@ func (c *SubaccountsInsertCall) Header() http.Header { func (c *SubaccountsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -47254,7 +47255,7 @@ func (c *SubaccountsListCall) Header() http.Header { func (c *SubaccountsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -47466,7 +47467,7 @@ func (c *SubaccountsPatchCall) Header() http.Header { func (c *SubaccountsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -47614,7 +47615,7 @@ func (c *SubaccountsUpdateCall) Header() http.Header { func (c *SubaccountsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -47765,7 +47766,7 @@ func (c *TargetableRemarketingListsGetCall) Header() http.Header { func (c *TargetableRemarketingListsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -47976,7 +47977,7 @@ func (c *TargetableRemarketingListsListCall) Header() http.Header { func (c *TargetableRemarketingListsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -48204,7 +48205,7 @@ func (c *TargetingTemplatesGetCall) Header() http.Header { func (c *TargetingTemplatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -48348,7 +48349,7 @@ func (c *TargetingTemplatesInsertCall) Header() http.Header { func (c *TargetingTemplatesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -48565,7 +48566,7 @@ func (c *TargetingTemplatesListCall) Header() http.Header { func (c *TargetingTemplatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -48783,7 +48784,7 @@ func (c *TargetingTemplatesPatchCall) Header() http.Header { func (c *TargetingTemplatesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -48931,7 +48932,7 @@ func (c *TargetingTemplatesUpdateCall) Header() http.Header { func (c *TargetingTemplatesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -49080,7 +49081,7 @@ func (c *UserProfilesGetCall) Header() http.Header { func (c *UserProfilesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -49224,7 +49225,7 @@ func (c *UserProfilesListCall) Header() http.Header { func (c *UserProfilesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -49359,7 +49360,7 @@ func (c *UserRolePermissionGroupsGetCall) Header() http.Header { func (c *UserRolePermissionGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -49512,7 +49513,7 @@ func (c *UserRolePermissionGroupsListCall) Header() http.Header { func (c *UserRolePermissionGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -49659,7 +49660,7 @@ func (c *UserRolePermissionsGetCall) Header() http.Header { func (c *UserRolePermissionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -49823,7 +49824,7 @@ func (c *UserRolePermissionsListCall) Header() http.Header { func (c *UserRolePermissionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -49965,7 +49966,7 @@ func (c *UserRolesDeleteCall) Header() http.Header { func (c *UserRolesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -50089,7 +50090,7 @@ func (c *UserRolesGetCall) Header() http.Header { func (c *UserRolesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -50233,7 +50234,7 @@ func (c *UserRolesInsertCall) Header() http.Header { func (c *UserRolesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -50458,7 +50459,7 @@ func (c *UserRolesListCall) Header() http.Header { func (c *UserRolesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -50681,7 +50682,7 @@ func (c *UserRolesPatchCall) Header() http.Header { func (c *UserRolesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -50829,7 +50830,7 @@ func (c *UserRolesUpdateCall) Header() http.Header { func (c *UserRolesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -50980,7 +50981,7 @@ func (c *VideoFormatsGetCall) Header() http.Header { func (c *VideoFormatsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -51133,7 +51134,7 @@ func (c *VideoFormatsListCall) Header() http.Header { func (c *VideoFormatsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/dfareporting/v3.4/dfareporting-api.json b/dfareporting/v3.4/dfareporting-api.json index 4ef6864bbfe..3956bdb6757 100644 --- a/dfareporting/v3.4/dfareporting-api.json +++ b/dfareporting/v3.4/dfareporting-api.json @@ -4036,7 +4036,7 @@ "type": "string" }, "profileId": { - "description": "The DFA user profile ID.", + "description": "The Campaign Manager 360 user profile ID.", "format": "int64", "location": "path", "required": true, @@ -4701,7 +4701,7 @@ "type": "string" }, "profileId": { - "description": "The DFA profile ID.", + "description": "The Campaign Manager 360 user profile ID.", "format": "int64", "location": "path", "required": true, @@ -7828,7 +7828,7 @@ ], "parameters": { "profileId": { - "description": "The DFA user profile ID.", + "description": "The Campaign Manager 360 user profile ID.", "format": "int64", "location": "path", "required": true, @@ -7858,7 +7858,7 @@ ], "parameters": { "profileId": { - "description": "The DFA user profile ID.", + "description": "The Campaign Manager 360 user profile ID.", "format": "int64", "location": "path", "required": true, @@ -7890,7 +7890,7 @@ ], "parameters": { "profileId": { - "description": "The DFA user profile ID.", + "description": "The Campaign Manager 360 user profile ID.", "format": "int64", "location": "path", "required": true, @@ -7932,7 +7932,7 @@ "type": "string" }, "profileId": { - "description": "The DFA user profile ID.", + "description": "The Campaign Manager 360 user profile ID.", "format": "int64", "location": "path", "required": true, @@ -8038,7 +8038,7 @@ ], "parameters": { "profileId": { - "description": "The DFA profile ID.", + "description": "The Campaign Manager 360 user profile ID.", "format": "int64", "location": "path", "required": true, @@ -8077,7 +8077,7 @@ ], "parameters": { "profileId": { - "description": "The DFA user profile ID.", + "description": "The Campaign Manager 360 user profile ID.", "format": "int64", "location": "path", "required": true, @@ -8116,7 +8116,7 @@ ], "parameters": { "profileId": { - "description": "The DFA user profile ID.", + "description": "The Campaign Manager 360 user profile ID.", "format": "int64", "location": "path", "required": true, @@ -8157,7 +8157,7 @@ "type": "string" }, "profileId": { - "description": "The DFA user profile ID.", + "description": "The Campaign Manager 360 user profile ID.", "format": "int64", "location": "path", "required": true, @@ -8205,7 +8205,7 @@ "type": "string" }, "profileId": { - "description": "The DFA profile ID.", + "description": "The Campaign Manager 360 user profile ID.", "format": "int64", "location": "path", "required": true, @@ -9670,7 +9670,7 @@ } } }, - "revision": "20200921", + "revision": "20201102", "rootUrl": "https://dfareporting.googleapis.com/", "schemas": { "Account": { @@ -11235,7 +11235,7 @@ "type": "boolean" }, "enabledSizes": { - "description": "Whitelist of companion sizes to be served to this placement. Set this list to null or empty to serve all companion sizes.", + "description": "Allowlist of companion sizes to be served to this placement. Set this list to null or empty to serve all companion sizes.", "items": { "$ref": "Size" }, @@ -11718,9 +11718,11 @@ "enum": [ "CREATIVE_AUTHORING_SOURCE_DCM", "CREATIVE_AUTHORING_SOURCE_DBM", - "CREATIVE_AUTHORING_SOURCE_STUDIO" + "CREATIVE_AUTHORING_SOURCE_STUDIO", + "CREATIVE_AUTHORING_SOURCE_GWD" ], "enumDescriptions": [ + "", "", "", "" @@ -17226,7 +17228,7 @@ "description": "Lookback window settings for this placement." }, "name": { - "description": "Name of this placement.This is a required field and must be less than 256 characters long.", + "description": "Name of this placement.This is a required field and must be less than or equal to 256 characters long.", "type": "string" }, "paymentApproved": { @@ -19245,7 +19247,7 @@ "type": "boolean" }, "enabledSizes": { - "description": "Whitelist of companion sizes to be served via this site template. Set this list to null or empty to serve all companion sizes.", + "description": "Allowlist of companion sizes to be served via this site template. Set this list to null or empty to serve all companion sizes.", "items": { "$ref": "Size" }, @@ -19381,7 +19383,7 @@ "id": "SiteTranscodeSetting", "properties": { "enabledVideoFormats": { - "description": "Whitelist of video formats to be served to this site template. Set this list to null or empty to serve all video formats.", + "description": "Allowlist of video formats to be served to this site template. Set this list to null or empty to serve all video formats.", "items": { "format": "int32", "type": "integer" @@ -20079,7 +20081,7 @@ "id": "TranscodeSetting", "properties": { "enabledVideoFormats": { - "description": "Whitelist of video formats to be served to this placement. Set this list to null or empty to serve all video formats.", + "description": "Allowlist of video formats to be served to this placement. Set this list to null or empty to serve all video formats.", "items": { "format": "int32", "type": "integer" @@ -20707,6 +20709,6 @@ } }, "servicePath": "dfareporting/v3.4/", - "title": "DCM/DFA Reporting And Trafficking API", + "title": "Campaign Manager 360 API", "version": "v3.4" } \ No newline at end of file diff --git a/dfareporting/v3.4/dfareporting-gen.go b/dfareporting/v3.4/dfareporting-gen.go index 40a9828c088..d9862b7e258 100644 --- a/dfareporting/v3.4/dfareporting-gen.go +++ b/dfareporting/v3.4/dfareporting-gen.go @@ -4,7 +4,7 @@ // Code generated file. DO NOT EDIT. -// Package dfareporting provides access to the DCM/DFA Reporting And Trafficking API. +// Package dfareporting provides access to the Campaign Manager 360 API. // // For product documentation, see: https://developers.google.com/doubleclick-advertisers/ // @@ -3062,7 +3062,7 @@ type CompanionSetting struct { // placement. CompanionsDisabled bool `json:"companionsDisabled,omitempty"` - // EnabledSizes: Whitelist of companion sizes to be served to this + // EnabledSizes: Allowlist of companion sizes to be served to this // placement. Set this list to null or empty to serve all companion // sizes. EnabledSizes []*Size `json:"enabledSizes,omitempty"` @@ -3843,6 +3843,7 @@ type Creative struct { // "CREATIVE_AUTHORING_SOURCE_DCM" // "CREATIVE_AUTHORING_SOURCE_DBM" // "CREATIVE_AUTHORING_SOURCE_STUDIO" + // "CREATIVE_AUTHORING_SOURCE_GWD" AuthoringSource string `json:"authoringSource,omitempty"` // AuthoringTool: Authoring tool for HTML5 banner creatives. This is a @@ -10538,7 +10539,7 @@ type Placement struct { LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` // Name: Name of this placement.This is a required field and must be - // less than 256 characters long. + // less than or equal to 256 characters long. Name string `json:"name,omitempty"` // PaymentApproved: Whether payment was approved for this placement. @@ -13072,7 +13073,7 @@ type SiteCompanionSetting struct { // template. CompanionsDisabled bool `json:"companionsDisabled,omitempty"` - // EnabledSizes: Whitelist of companion sizes to be served via this site + // EnabledSizes: Allowlist of companion sizes to be served via this site // template. Set this list to null or empty to serve all companion // sizes. EnabledSizes []*Size `json:"enabledSizes,omitempty"` @@ -13273,7 +13274,7 @@ func (s *SiteSkippableSetting) MarshalJSON() ([]byte, error) { // SiteTranscodeSetting: Transcode Settings type SiteTranscodeSetting struct { - // EnabledVideoFormats: Whitelist of video formats to be served to this + // EnabledVideoFormats: Allowlist of video formats to be served to this // site template. Set this list to null or empty to serve all video // formats. EnabledVideoFormats []int64 `json:"enabledVideoFormats,omitempty"` @@ -14253,7 +14254,7 @@ func (s *ThirdPartyTrackingUrl) MarshalJSON() ([]byte, error) { // TranscodeSetting: Transcode Settings type TranscodeSetting struct { - // EnabledVideoFormats: Whitelist of video formats to be served to this + // EnabledVideoFormats: Allowlist of video formats to be served to this // placement. Set this list to null or empty to serve all video formats. EnabledVideoFormats []int64 `json:"enabledVideoFormats,omitempty"` @@ -15078,7 +15079,7 @@ func (c *AccountActiveAdSummariesGetCall) Header() http.Header { func (c *AccountActiveAdSummariesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15233,7 +15234,7 @@ func (c *AccountPermissionGroupsGetCall) Header() http.Header { func (c *AccountPermissionGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15386,7 +15387,7 @@ func (c *AccountPermissionGroupsListCall) Header() http.Header { func (c *AccountPermissionGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15533,7 +15534,7 @@ func (c *AccountPermissionsGetCall) Header() http.Header { func (c *AccountPermissionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15686,7 +15687,7 @@ func (c *AccountPermissionsListCall) Header() http.Header { func (c *AccountPermissionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15832,7 +15833,7 @@ func (c *AccountUserProfilesGetCall) Header() http.Header { func (c *AccountUserProfilesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15976,7 +15977,7 @@ func (c *AccountUserProfilesInsertCall) Header() http.Header { func (c *AccountUserProfilesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16208,7 +16209,7 @@ func (c *AccountUserProfilesListCall) Header() http.Header { func (c *AccountUserProfilesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16437,7 +16438,7 @@ func (c *AccountUserProfilesPatchCall) Header() http.Header { func (c *AccountUserProfilesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16585,7 +16586,7 @@ func (c *AccountUserProfilesUpdateCall) Header() http.Header { func (c *AccountUserProfilesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16736,7 +16737,7 @@ func (c *AccountsGetCall) Header() http.Header { func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16958,7 +16959,7 @@ func (c *AccountsListCall) Header() http.Header { func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17175,7 +17176,7 @@ func (c *AccountsPatchCall) Header() http.Header { func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17323,7 +17324,7 @@ func (c *AccountsUpdateCall) Header() http.Header { func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17474,7 +17475,7 @@ func (c *AdsGetCall) Header() http.Header { func (c *AdsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17618,7 +17619,7 @@ func (c *AdsInsertCall) Header() http.Header { func (c *AdsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18003,7 +18004,7 @@ func (c *AdsListCall) Header() http.Header { func (c *AdsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18348,7 +18349,7 @@ func (c *AdsPatchCall) Header() http.Header { func (c *AdsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18496,7 +18497,7 @@ func (c *AdsUpdateCall) Header() http.Header { func (c *AdsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18636,7 +18637,7 @@ func (c *AdvertiserGroupsDeleteCall) Header() http.Header { func (c *AdvertiserGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18760,7 +18761,7 @@ func (c *AdvertiserGroupsGetCall) Header() http.Header { func (c *AdvertiserGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18904,7 +18905,7 @@ func (c *AdvertiserGroupsInsertCall) Header() http.Header { func (c *AdvertiserGroupsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19115,7 +19116,7 @@ func (c *AdvertiserGroupsListCall) Header() http.Header { func (c *AdvertiserGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19327,7 +19328,7 @@ func (c *AdvertiserGroupsPatchCall) Header() http.Header { func (c *AdvertiserGroupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19475,7 +19476,7 @@ func (c *AdvertiserGroupsUpdateCall) Header() http.Header { func (c *AdvertiserGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19626,7 +19627,7 @@ func (c *AdvertiserLandingPagesGetCall) Header() http.Header { func (c *AdvertiserLandingPagesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19770,7 +19771,7 @@ func (c *AdvertiserLandingPagesInsertCall) Header() http.Header { func (c *AdvertiserLandingPagesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20016,7 +20017,7 @@ func (c *AdvertiserLandingPagesListCall) Header() http.Header { func (c *AdvertiserLandingPagesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20254,7 +20255,7 @@ func (c *AdvertiserLandingPagesPatchCall) Header() http.Header { func (c *AdvertiserLandingPagesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20402,7 +20403,7 @@ func (c *AdvertiserLandingPagesUpdateCall) Header() http.Header { func (c *AdvertiserLandingPagesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20553,7 +20554,7 @@ func (c *AdvertisersGetCall) Header() http.Header { func (c *AdvertisersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20697,7 +20698,7 @@ func (c *AdvertisersInsertCall) Header() http.Header { func (c *AdvertisersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20963,7 +20964,7 @@ func (c *AdvertisersListCall) Header() http.Header { func (c *AdvertisersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21218,7 +21219,7 @@ func (c *AdvertisersPatchCall) Header() http.Header { func (c *AdvertisersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21366,7 +21367,7 @@ func (c *AdvertisersUpdateCall) Header() http.Header { func (c *AdvertisersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21515,7 +21516,7 @@ func (c *BrowsersListCall) Header() http.Header { func (c *BrowsersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21654,7 +21655,7 @@ func (c *CampaignCreativeAssociationsInsertCall) Header() http.Header { func (c *CampaignCreativeAssociationsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21840,7 +21841,7 @@ func (c *CampaignCreativeAssociationsListCall) Header() http.Header { func (c *CampaignCreativeAssociationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22046,7 +22047,7 @@ func (c *CampaignsGetCall) Header() http.Header { func (c *CampaignsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22190,7 +22191,7 @@ func (c *CampaignsInsertCall) Header() http.Header { func (c *CampaignsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22465,7 +22466,7 @@ func (c *CampaignsListCall) Header() http.Header { func (c *CampaignsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22720,7 +22721,7 @@ func (c *CampaignsPatchCall) Header() http.Header { func (c *CampaignsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22868,7 +22869,7 @@ func (c *CampaignsUpdateCall) Header() http.Header { func (c *CampaignsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23019,7 +23020,7 @@ func (c *ChangeLogsGetCall) Header() http.Header { func (c *ChangeLogsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23328,7 +23329,7 @@ func (c *ChangeLogsListCall) Header() http.Header { func (c *ChangeLogsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23715,7 +23716,7 @@ func (c *CitiesListCall) Header() http.Header { func (c *CitiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23887,7 +23888,7 @@ func (c *ConnectionTypesGetCall) Header() http.Header { func (c *ConnectionTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24040,7 +24041,7 @@ func (c *ConnectionTypesListCall) Header() http.Header { func (c *ConnectionTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24175,7 +24176,7 @@ func (c *ContentCategoriesDeleteCall) Header() http.Header { func (c *ContentCategoriesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24299,7 +24300,7 @@ func (c *ContentCategoriesGetCall) Header() http.Header { func (c *ContentCategoriesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24443,7 +24444,7 @@ func (c *ContentCategoriesInsertCall) Header() http.Header { func (c *ContentCategoriesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24654,7 +24655,7 @@ func (c *ContentCategoriesListCall) Header() http.Header { func (c *ContentCategoriesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24866,7 +24867,7 @@ func (c *ContentCategoriesPatchCall) Header() http.Header { func (c *ContentCategoriesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25014,7 +25015,7 @@ func (c *ContentCategoriesUpdateCall) Header() http.Header { func (c *ContentCategoriesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25154,7 +25155,7 @@ func (c *ConversionsBatchinsertCall) Header() http.Header { func (c *ConversionsBatchinsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25294,7 +25295,7 @@ func (c *ConversionsBatchupdateCall) Header() http.Header { func (c *ConversionsBatchupdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25445,7 +25446,7 @@ func (c *CountriesGetCall) Header() http.Header { func (c *CountriesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25598,7 +25599,7 @@ func (c *CountriesListCall) Header() http.Header { func (c *CountriesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25775,7 +25776,7 @@ func (c *CreativeAssetsInsertCall) Header() http.Header { func (c *CreativeAssetsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25967,7 +25968,7 @@ func (c *CreativeFieldValuesDeleteCall) Header() http.Header { func (c *CreativeFieldValuesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26102,7 +26103,7 @@ func (c *CreativeFieldValuesGetCall) Header() http.Header { func (c *CreativeFieldValuesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26257,7 +26258,7 @@ func (c *CreativeFieldValuesInsertCall) Header() http.Header { func (c *CreativeFieldValuesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26473,7 +26474,7 @@ func (c *CreativeFieldValuesListCall) Header() http.Header { func (c *CreativeFieldValuesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26696,7 +26697,7 @@ func (c *CreativeFieldValuesPatchCall) Header() http.Header { func (c *CreativeFieldValuesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26855,7 +26856,7 @@ func (c *CreativeFieldValuesUpdateCall) Header() http.Header { func (c *CreativeFieldValuesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27004,7 +27005,7 @@ func (c *CreativeFieldsDeleteCall) Header() http.Header { func (c *CreativeFieldsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27128,7 +27129,7 @@ func (c *CreativeFieldsGetCall) Header() http.Header { func (c *CreativeFieldsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27272,7 +27273,7 @@ func (c *CreativeFieldsInsertCall) Header() http.Header { func (c *CreativeFieldsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27494,7 +27495,7 @@ func (c *CreativeFieldsListCall) Header() http.Header { func (c *CreativeFieldsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27713,7 +27714,7 @@ func (c *CreativeFieldsPatchCall) Header() http.Header { func (c *CreativeFieldsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27861,7 +27862,7 @@ func (c *CreativeFieldsUpdateCall) Header() http.Header { func (c *CreativeFieldsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28012,7 +28013,7 @@ func (c *CreativeGroupsGetCall) Header() http.Header { func (c *CreativeGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28156,7 +28157,7 @@ func (c *CreativeGroupsInsertCall) Header() http.Header { func (c *CreativeGroupsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28385,7 +28386,7 @@ func (c *CreativeGroupsListCall) Header() http.Header { func (c *CreativeGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28612,7 +28613,7 @@ func (c *CreativeGroupsPatchCall) Header() http.Header { func (c *CreativeGroupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28760,7 +28761,7 @@ func (c *CreativeGroupsUpdateCall) Header() http.Header { func (c *CreativeGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28911,7 +28912,7 @@ func (c *CreativesGetCall) Header() http.Header { func (c *CreativesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29055,7 +29056,7 @@ func (c *CreativesInsertCall) Header() http.Header { func (c *CreativesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29379,7 +29380,7 @@ func (c *CreativesListCall) Header() http.Header { func (c *CreativesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29707,7 +29708,7 @@ func (c *CreativesPatchCall) Header() http.Header { func (c *CreativesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29855,7 +29856,7 @@ func (c *CreativesUpdateCall) Header() http.Header { func (c *CreativesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29995,7 +29996,7 @@ func (c *CustomEventsBatchinsertCall) Header() http.Header { func (c *CustomEventsBatchinsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30150,7 +30151,7 @@ func (c *DimensionValuesQueryCall) Header() http.Header { func (c *DimensionValuesQueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30237,7 +30238,7 @@ func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionV // "type": "string" // }, // "profileId": { - // "description": "The DFA user profile ID.", + // "description": "The Campaign Manager 360 user profile ID.", // "format": "int64", // "location": "path", // "required": true, @@ -30336,7 +30337,7 @@ func (c *DirectorySitesGetCall) Header() http.Header { func (c *DirectorySitesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30480,7 +30481,7 @@ func (c *DirectorySitesInsertCall) Header() http.Header { func (c *DirectorySitesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30730,7 +30731,7 @@ func (c *DirectorySitesListCall) Header() http.Header { func (c *DirectorySitesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30967,7 +30968,7 @@ func (c *DynamicTargetingKeysDeleteCall) Header() http.Header { func (c *DynamicTargetingKeysDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31110,7 +31111,7 @@ func (c *DynamicTargetingKeysInsertCall) Header() http.Header { func (c *DynamicTargetingKeysInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31293,7 +31294,7 @@ func (c *DynamicTargetingKeysListCall) Header() http.Header { func (c *DynamicTargetingKeysListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31463,7 +31464,7 @@ func (c *EventTagsDeleteCall) Header() http.Header { func (c *EventTagsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31587,7 +31588,7 @@ func (c *EventTagsGetCall) Header() http.Header { func (c *EventTagsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31731,7 +31732,7 @@ func (c *EventTagsInsertCall) Header() http.Header { func (c *EventTagsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31988,7 +31989,7 @@ func (c *EventTagsListCall) Header() http.Header { func (c *EventTagsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -32209,7 +32210,7 @@ func (c *EventTagsPatchCall) Header() http.Header { func (c *EventTagsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -32357,7 +32358,7 @@ func (c *EventTagsUpdateCall) Header() http.Header { func (c *EventTagsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -32509,7 +32510,7 @@ func (c *FilesGetCall) Header() http.Header { func (c *FilesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -32727,7 +32728,7 @@ func (c *FilesListCall) Header() http.Header { func (c *FilesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -32812,7 +32813,7 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { // "type": "string" // }, // "profileId": { - // "description": "The DFA profile ID.", + // "description": "The Campaign Manager 360 user profile ID.", // "format": "int64", // "location": "path", // "required": true, @@ -32941,7 +32942,7 @@ func (c *FloodlightActivitiesDeleteCall) Header() http.Header { func (c *FloodlightActivitiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -33060,7 +33061,7 @@ func (c *FloodlightActivitiesGeneratetagCall) Header() http.Header { func (c *FloodlightActivitiesGeneratetagCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -33210,7 +33211,7 @@ func (c *FloodlightActivitiesGetCall) Header() http.Header { func (c *FloodlightActivitiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -33354,7 +33355,7 @@ func (c *FloodlightActivitiesInsertCall) Header() http.Header { func (c *FloodlightActivitiesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -33631,7 +33632,7 @@ func (c *FloodlightActivitiesListCall) Header() http.Header { func (c *FloodlightActivitiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -33890,7 +33891,7 @@ func (c *FloodlightActivitiesPatchCall) Header() http.Header { func (c *FloodlightActivitiesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -34038,7 +34039,7 @@ func (c *FloodlightActivitiesUpdateCall) Header() http.Header { func (c *FloodlightActivitiesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -34189,7 +34190,7 @@ func (c *FloodlightActivityGroupsGetCall) Header() http.Header { func (c *FloodlightActivityGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -34333,7 +34334,7 @@ func (c *FloodlightActivityGroupsInsertCall) Header() http.Header { func (c *FloodlightActivityGroupsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -34575,7 +34576,7 @@ func (c *FloodlightActivityGroupsListCall) Header() http.Header { func (c *FloodlightActivityGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -34813,7 +34814,7 @@ func (c *FloodlightActivityGroupsPatchCall) Header() http.Header { func (c *FloodlightActivityGroupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -34961,7 +34962,7 @@ func (c *FloodlightActivityGroupsUpdateCall) Header() http.Header { func (c *FloodlightActivityGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -35112,7 +35113,7 @@ func (c *FloodlightConfigurationsGetCall) Header() http.Header { func (c *FloodlightConfigurationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -35278,7 +35279,7 @@ func (c *FloodlightConfigurationsListCall) Header() http.Header { func (c *FloodlightConfigurationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -35423,7 +35424,7 @@ func (c *FloodlightConfigurationsPatchCall) Header() http.Header { func (c *FloodlightConfigurationsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -35571,7 +35572,7 @@ func (c *FloodlightConfigurationsUpdateCall) Header() http.Header { func (c *FloodlightConfigurationsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -35724,7 +35725,7 @@ func (c *InventoryItemsGetCall) Header() http.Header { func (c *InventoryItemsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -35976,7 +35977,7 @@ func (c *InventoryItemsListCall) Header() http.Header { func (c *InventoryItemsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -36231,7 +36232,7 @@ func (c *LanguagesListCall) Header() http.Header { func (c *LanguagesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -36375,7 +36376,7 @@ func (c *MetrosListCall) Header() http.Header { func (c *MetrosListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -36521,7 +36522,7 @@ func (c *MobileAppsGetCall) Header() http.Header { func (c *MobileAppsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -36718,7 +36719,7 @@ func (c *MobileAppsListCall) Header() http.Header { func (c *MobileAppsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -36926,7 +36927,7 @@ func (c *MobileCarriersGetCall) Header() http.Header { func (c *MobileCarriersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -37079,7 +37080,7 @@ func (c *MobileCarriersListCall) Header() http.Header { func (c *MobileCarriersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -37225,7 +37226,7 @@ func (c *OperatingSystemVersionsGetCall) Header() http.Header { func (c *OperatingSystemVersionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -37378,7 +37379,7 @@ func (c *OperatingSystemVersionsListCall) Header() http.Header { func (c *OperatingSystemVersionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -37525,7 +37526,7 @@ func (c *OperatingSystemsGetCall) Header() http.Header { func (c *OperatingSystemsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -37678,7 +37679,7 @@ func (c *OperatingSystemsListCall) Header() http.Header { func (c *OperatingSystemsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -37826,7 +37827,7 @@ func (c *OrderDocumentsGetCall) Header() http.Header { func (c *OrderDocumentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -38081,7 +38082,7 @@ func (c *OrderDocumentsListCall) Header() http.Header { func (c *OrderDocumentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -38332,7 +38333,7 @@ func (c *OrdersGetCall) Header() http.Header { func (c *OrdersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -38567,7 +38568,7 @@ func (c *OrdersListCall) Header() http.Header { func (c *OrdersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -38804,7 +38805,7 @@ func (c *PlacementGroupsGetCall) Header() http.Header { func (c *PlacementGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -38948,7 +38949,7 @@ func (c *PlacementGroupsInsertCall) Header() http.Header { func (c *PlacementGroupsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -39299,7 +39300,7 @@ func (c *PlacementGroupsListCall) Header() http.Header { func (c *PlacementGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -39613,7 +39614,7 @@ func (c *PlacementGroupsPatchCall) Header() http.Header { func (c *PlacementGroupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -39761,7 +39762,7 @@ func (c *PlacementGroupsUpdateCall) Header() http.Header { func (c *PlacementGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -39901,7 +39902,7 @@ func (c *PlacementStrategiesDeleteCall) Header() http.Header { func (c *PlacementStrategiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -40025,7 +40026,7 @@ func (c *PlacementStrategiesGetCall) Header() http.Header { func (c *PlacementStrategiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -40169,7 +40170,7 @@ func (c *PlacementStrategiesInsertCall) Header() http.Header { func (c *PlacementStrategiesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -40380,7 +40381,7 @@ func (c *PlacementStrategiesListCall) Header() http.Header { func (c *PlacementStrategiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -40592,7 +40593,7 @@ func (c *PlacementStrategiesPatchCall) Header() http.Header { func (c *PlacementStrategiesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -40740,7 +40741,7 @@ func (c *PlacementStrategiesUpdateCall) Header() http.Header { func (c *PlacementStrategiesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -40925,7 +40926,7 @@ func (c *PlacementsGeneratetagsCall) Header() http.Header { func (c *PlacementsGeneratetagsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -41129,7 +41130,7 @@ func (c *PlacementsGetCall) Header() http.Header { func (c *PlacementsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -41273,7 +41274,7 @@ func (c *PlacementsInsertCall) Header() http.Header { func (c *PlacementsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -41660,7 +41661,7 @@ func (c *PlacementsListCall) Header() http.Header { func (c *PlacementsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -42010,7 +42011,7 @@ func (c *PlacementsPatchCall) Header() http.Header { func (c *PlacementsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -42158,7 +42159,7 @@ func (c *PlacementsUpdateCall) Header() http.Header { func (c *PlacementsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -42309,7 +42310,7 @@ func (c *PlatformTypesGetCall) Header() http.Header { func (c *PlatformTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -42462,7 +42463,7 @@ func (c *PlatformTypesListCall) Header() http.Header { func (c *PlatformTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -42608,7 +42609,7 @@ func (c *PostalCodesGetCall) Header() http.Header { func (c *PostalCodesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -42760,7 +42761,7 @@ func (c *PostalCodesListCall) Header() http.Header { func (c *PostalCodesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -42906,7 +42907,7 @@ func (c *ProjectsGetCall) Header() http.Header { func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -43131,7 +43132,7 @@ func (c *ProjectsListCall) Header() http.Header { func (c *ProjectsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -43357,7 +43358,7 @@ func (c *RegionsListCall) Header() http.Header { func (c *RegionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -43503,7 +43504,7 @@ func (c *RemarketingListSharesGetCall) Header() http.Header { func (c *RemarketingListSharesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -43649,7 +43650,7 @@ func (c *RemarketingListSharesPatchCall) Header() http.Header { func (c *RemarketingListSharesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -43797,7 +43798,7 @@ func (c *RemarketingListSharesUpdateCall) Header() http.Header { func (c *RemarketingListSharesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -43948,7 +43949,7 @@ func (c *RemarketingListsGetCall) Header() http.Header { func (c *RemarketingListsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -44092,7 +44093,7 @@ func (c *RemarketingListsInsertCall) Header() http.Header { func (c *RemarketingListsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -44307,7 +44308,7 @@ func (c *RemarketingListsListCall) Header() http.Header { func (c *RemarketingListsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -44531,7 +44532,7 @@ func (c *RemarketingListsPatchCall) Header() http.Header { func (c *RemarketingListsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -44679,7 +44680,7 @@ func (c *RemarketingListsUpdateCall) Header() http.Header { func (c *RemarketingListsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -44819,7 +44820,7 @@ func (c *ReportsDeleteCall) Header() http.Header { func (c *ReportsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -44864,7 +44865,7 @@ func (c *ReportsDeleteCall) Do(opts ...googleapi.CallOption) error { // ], // "parameters": { // "profileId": { - // "description": "The DFA user profile ID.", + // "description": "The Campaign Manager 360 user profile ID.", // "format": "int64", // "location": "path", // "required": true, @@ -44943,7 +44944,7 @@ func (c *ReportsGetCall) Header() http.Header { func (c *ReportsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -45016,7 +45017,7 @@ func (c *ReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) { // ], // "parameters": { // "profileId": { - // "description": "The DFA user profile ID.", + // "description": "The Campaign Manager 360 user profile ID.", // "format": "int64", // "location": "path", // "required": true, @@ -45087,7 +45088,7 @@ func (c *ReportsInsertCall) Header() http.Header { func (c *ReportsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -45160,7 +45161,7 @@ func (c *ReportsInsertCall) Do(opts ...googleapi.CallOption) (*Report, error) { // ], // "parameters": { // "profileId": { - // "description": "The DFA user profile ID.", + // "description": "The Campaign Manager 360 user profile ID.", // "format": "int64", // "location": "path", // "required": true, @@ -45284,7 +45285,7 @@ func (c *ReportsListCall) Header() http.Header { func (c *ReportsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -45369,7 +45370,7 @@ func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) // "type": "string" // }, // "profileId": { - // "description": "The DFA user profile ID.", + // "description": "The Campaign Manager 360 user profile ID.", // "format": "int64", // "location": "path", // "required": true, @@ -45501,7 +45502,7 @@ func (c *ReportsPatchCall) Header() http.Header { func (c *ReportsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -45657,7 +45658,7 @@ func (c *ReportsRunCall) Header() http.Header { func (c *ReportsRunCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -45727,7 +45728,7 @@ func (c *ReportsRunCall) Do(opts ...googleapi.CallOption) (*File, error) { // ], // "parameters": { // "profileId": { - // "description": "The DFA profile ID.", + // "description": "The Campaign Manager 360 user profile ID.", // "format": "int64", // "location": "path", // "required": true, @@ -45806,7 +45807,7 @@ func (c *ReportsUpdateCall) Header() http.Header { func (c *ReportsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -45881,7 +45882,7 @@ func (c *ReportsUpdateCall) Do(opts ...googleapi.CallOption) (*Report, error) { // ], // "parameters": { // "profileId": { - // "description": "The DFA user profile ID.", + // "description": "The Campaign Manager 360 user profile ID.", // "format": "int64", // "location": "path", // "required": true, @@ -45957,7 +45958,7 @@ func (c *ReportsCompatibleFieldsQueryCall) Header() http.Header { func (c *ReportsCompatibleFieldsQueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -46030,7 +46031,7 @@ func (c *ReportsCompatibleFieldsQueryCall) Do(opts ...googleapi.CallOption) (*Co // ], // "parameters": { // "profileId": { - // "description": "The DFA user profile ID.", + // "description": "The Campaign Manager 360 user profile ID.", // "format": "int64", // "location": "path", // "required": true, @@ -46111,7 +46112,7 @@ func (c *ReportsFilesGetCall) Header() http.Header { func (c *ReportsFilesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -46209,7 +46210,7 @@ func (c *ReportsFilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { // "type": "string" // }, // "profileId": { - // "description": "The DFA user profile ID.", + // "description": "The Campaign Manager 360 user profile ID.", // "format": "int64", // "location": "path", // "required": true, @@ -46328,7 +46329,7 @@ func (c *ReportsFilesListCall) Header() http.Header { func (c *ReportsFilesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -46415,7 +46416,7 @@ func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, erro // "type": "string" // }, // "profileId": { - // "description": "The DFA profile ID.", + // "description": "The Campaign Manager 360 user profile ID.", // "format": "int64", // "location": "path", // "required": true, @@ -46546,7 +46547,7 @@ func (c *SitesGetCall) Header() http.Header { func (c *SitesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -46690,7 +46691,7 @@ func (c *SitesInsertCall) Header() http.Header { func (c *SitesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -46973,7 +46974,7 @@ func (c *SitesListCall) Header() http.Header { func (c *SitesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -47235,7 +47236,7 @@ func (c *SitesPatchCall) Header() http.Header { func (c *SitesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -47383,7 +47384,7 @@ func (c *SitesUpdateCall) Header() http.Header { func (c *SitesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -47534,7 +47535,7 @@ func (c *SizesGetCall) Header() http.Header { func (c *SizesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -47678,7 +47679,7 @@ func (c *SizesInsertCall) Header() http.Header { func (c *SizesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -47862,7 +47863,7 @@ func (c *SizesListCall) Header() http.Header { func (c *SizesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -48036,7 +48037,7 @@ func (c *SubaccountsGetCall) Header() http.Header { func (c *SubaccountsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -48180,7 +48181,7 @@ func (c *SubaccountsInsertCall) Header() http.Header { func (c *SubaccountsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -48390,7 +48391,7 @@ func (c *SubaccountsListCall) Header() http.Header { func (c *SubaccountsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -48602,7 +48603,7 @@ func (c *SubaccountsPatchCall) Header() http.Header { func (c *SubaccountsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -48750,7 +48751,7 @@ func (c *SubaccountsUpdateCall) Header() http.Header { func (c *SubaccountsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -48901,7 +48902,7 @@ func (c *TargetableRemarketingListsGetCall) Header() http.Header { func (c *TargetableRemarketingListsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -49112,7 +49113,7 @@ func (c *TargetableRemarketingListsListCall) Header() http.Header { func (c *TargetableRemarketingListsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -49340,7 +49341,7 @@ func (c *TargetingTemplatesGetCall) Header() http.Header { func (c *TargetingTemplatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -49484,7 +49485,7 @@ func (c *TargetingTemplatesInsertCall) Header() http.Header { func (c *TargetingTemplatesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -49701,7 +49702,7 @@ func (c *TargetingTemplatesListCall) Header() http.Header { func (c *TargetingTemplatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -49919,7 +49920,7 @@ func (c *TargetingTemplatesPatchCall) Header() http.Header { func (c *TargetingTemplatesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -50067,7 +50068,7 @@ func (c *TargetingTemplatesUpdateCall) Header() http.Header { func (c *TargetingTemplatesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -50216,7 +50217,7 @@ func (c *UserProfilesGetCall) Header() http.Header { func (c *UserProfilesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -50360,7 +50361,7 @@ func (c *UserProfilesListCall) Header() http.Header { func (c *UserProfilesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -50495,7 +50496,7 @@ func (c *UserRolePermissionGroupsGetCall) Header() http.Header { func (c *UserRolePermissionGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -50648,7 +50649,7 @@ func (c *UserRolePermissionGroupsListCall) Header() http.Header { func (c *UserRolePermissionGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -50795,7 +50796,7 @@ func (c *UserRolePermissionsGetCall) Header() http.Header { func (c *UserRolePermissionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -50959,7 +50960,7 @@ func (c *UserRolePermissionsListCall) Header() http.Header { func (c *UserRolePermissionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -51101,7 +51102,7 @@ func (c *UserRolesDeleteCall) Header() http.Header { func (c *UserRolesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -51225,7 +51226,7 @@ func (c *UserRolesGetCall) Header() http.Header { func (c *UserRolesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -51369,7 +51370,7 @@ func (c *UserRolesInsertCall) Header() http.Header { func (c *UserRolesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -51594,7 +51595,7 @@ func (c *UserRolesListCall) Header() http.Header { func (c *UserRolesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -51817,7 +51818,7 @@ func (c *UserRolesPatchCall) Header() http.Header { func (c *UserRolesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -51965,7 +51966,7 @@ func (c *UserRolesUpdateCall) Header() http.Header { func (c *UserRolesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -52116,7 +52117,7 @@ func (c *VideoFormatsGetCall) Header() http.Header { func (c *VideoFormatsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -52269,7 +52270,7 @@ func (c *VideoFormatsListCall) Header() http.Header { func (c *VideoFormatsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/dialogflow/v2/dialogflow-api.json b/dialogflow/v2/dialogflow-api.json index de1d5da2111..1b7c8902213 100644 --- a/dialogflow/v2/dialogflow-api.json +++ b/dialogflow/v2/dialogflow-api.json @@ -2065,7 +2065,7 @@ } } }, - "revision": "20201017", + "revision": "20201116", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3PageInfo": { @@ -4858,6 +4858,13 @@ "timeZone": { "description": "The time zone of this conversational query from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris. If not provided, the time zone specified in agent settings is used.", "type": "string" + }, + "webhookHeaders": { + "additionalProperties": { + "type": "string" + }, + "description": "This field can be used to pass HTTP headers for a webhook call. These headers will be sent to webhook along with the headers that have been configured through Dialogflow web console. The headers defined within this field will overwrite the headers configured through Dialogflow console if there is a conflict. Header names are case-insensitive. Google's specified headers are not allowed. Including: \"Host\", \"Content-Length\", \"Connection\", \"From\", \"User-Agent\", \"Accept-Encoding\", \"If-Modified-Since\", \"If-None-Match\", \"X-Forwarded-For\", etc.", + "type": "object" } }, "type": "object" @@ -6974,12 +6981,6 @@ }, "type": "object" }, - "GoogleCloudDialogflowV3alpha1RunTestCaseMetadata": { - "description": "Metadata returned for the TestCases.RunTestCase long running operation.", - "id": "GoogleCloudDialogflowV3alpha1RunTestCaseMetadata", - "properties": {}, - "type": "object" - }, "GoogleLongrunningListOperationsResponse": { "description": "The response message for Operations.ListOperations.", "id": "GoogleLongrunningListOperationsResponse", diff --git a/dialogflow/v2/dialogflow-gen.go b/dialogflow/v2/dialogflow-gen.go index a890124fc31..8dac82f12ef 100644 --- a/dialogflow/v2/dialogflow-gen.go +++ b/dialogflow/v2/dialogflow-gen.go @@ -5228,6 +5228,17 @@ type GoogleCloudDialogflowV2QueryParameters struct { // specified in agent settings is used. TimeZone string `json:"timeZone,omitempty"` + // WebhookHeaders: This field can be used to pass HTTP headers for a + // webhook call. These headers will be sent to webhook along with the + // headers that have been configured through Dialogflow web console. The + // headers defined within this field will overwrite the headers + // configured through Dialogflow console if there is a conflict. Header + // names are case-insensitive. Google's specified headers are not + // allowed. Including: "Host", "Content-Length", "Connection", "From", + // "User-Agent", "Accept-Encoding", "If-Modified-Since", + // "If-None-Match", "X-Forwarded-For", etc. + WebhookHeaders map[string]string `json:"webhookHeaders,omitempty"` + // ForceSendFields is a list of field names (e.g. "Contexts") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, @@ -9016,11 +9027,6 @@ func (s *GoogleCloudDialogflowV2beta1WebhookResponse) MarshalJSON() ([]byte, err return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV3alpha1RunTestCaseMetadata: Metadata returned -// for the TestCases.RunTestCase long running operation. -type GoogleCloudDialogflowV3alpha1RunTestCaseMetadata struct { -} - // GoogleLongrunningListOperationsResponse: The response message for // Operations.ListOperations. type GoogleLongrunningListOperationsResponse struct { @@ -9273,7 +9279,7 @@ func (c *ProjectsDeleteAgentCall) Header() http.Header { func (c *ProjectsDeleteAgentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9415,7 +9421,7 @@ func (c *ProjectsGetAgentCall) Header() http.Header { func (c *ProjectsGetAgentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9558,7 +9564,7 @@ func (c *ProjectsSetAgentCall) Header() http.Header { func (c *ProjectsSetAgentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9705,7 +9711,7 @@ func (c *ProjectsAgentExportCall) Header() http.Header { func (c *ProjectsAgentExportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9855,7 +9861,7 @@ func (c *ProjectsAgentGetFulfillmentCall) Header() http.Header { func (c *ProjectsAgentGetFulfillmentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10014,7 +10020,7 @@ func (c *ProjectsAgentGetValidationResultCall) Header() http.Header { func (c *ProjectsAgentGetValidationResultCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10165,7 +10171,7 @@ func (c *ProjectsAgentImportCall) Header() http.Header { func (c *ProjectsAgentImportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10314,7 +10320,7 @@ func (c *ProjectsAgentRestoreCall) Header() http.Header { func (c *ProjectsAgentRestoreCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10484,7 +10490,7 @@ func (c *ProjectsAgentSearchCall) Header() http.Header { func (c *ProjectsAgentSearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10654,7 +10660,7 @@ func (c *ProjectsAgentTrainCall) Header() http.Header { func (c *ProjectsAgentTrainCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10803,7 +10809,7 @@ func (c *ProjectsAgentUpdateFulfillmentCall) Header() http.Header { func (c *ProjectsAgentUpdateFulfillmentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10951,7 +10957,7 @@ func (c *ProjectsAgentEntityTypesBatchDeleteCall) Header() http.Header { func (c *ProjectsAgentEntityTypesBatchDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11093,7 +11099,7 @@ func (c *ProjectsAgentEntityTypesBatchUpdateCall) Header() http.Header { func (c *ProjectsAgentEntityTypesBatchUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11245,7 +11251,7 @@ func (c *ProjectsAgentEntityTypesCreateCall) Header() http.Header { func (c *ProjectsAgentEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11390,7 +11396,7 @@ func (c *ProjectsAgentEntityTypesDeleteCall) Header() http.Header { func (c *ProjectsAgentEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11543,7 +11549,7 @@ func (c *ProjectsAgentEntityTypesGetCall) Header() http.Header { func (c *ProjectsAgentEntityTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11719,7 +11725,7 @@ func (c *ProjectsAgentEntityTypesListCall) Header() http.Header { func (c *ProjectsAgentEntityTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11912,7 +11918,7 @@ func (c *ProjectsAgentEntityTypesPatchCall) Header() http.Header { func (c *ProjectsAgentEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12066,7 +12072,7 @@ func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Header() http.Header { func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12207,7 +12213,7 @@ func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Header() http.Header { func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12350,7 +12356,7 @@ func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Header() http.Header { func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12515,7 +12521,7 @@ func (c *ProjectsAgentEnvironmentsListCall) Header() http.Header { func (c *ProjectsAgentEnvironmentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12683,7 +12689,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Header() http func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12819,7 +12825,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Header() http.H func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12963,7 +12969,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Header() http func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13102,7 +13108,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Header() http func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13244,7 +13250,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Header() http.He func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13403,7 +13409,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Header() http.H func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13580,7 +13586,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Header() http. func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13731,7 +13737,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Header() h func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13875,7 +13881,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Header() h func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14019,7 +14025,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Header() http func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14183,7 +14189,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Header() htt func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14362,7 +14368,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Header() ht func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14511,7 +14517,7 @@ func (c *ProjectsAgentIntentsBatchDeleteCall) Header() http.Header { func (c *ProjectsAgentIntentsBatchDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14653,7 +14659,7 @@ func (c *ProjectsAgentIntentsBatchUpdateCall) Header() http.Header { func (c *ProjectsAgentIntentsBatchUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14817,7 +14823,7 @@ func (c *ProjectsAgentIntentsCreateCall) Header() http.Header { func (c *ProjectsAgentIntentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14975,7 +14981,7 @@ func (c *ProjectsAgentIntentsDeleteCall) Header() http.Header { func (c *ProjectsAgentIntentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15140,7 +15146,7 @@ func (c *ProjectsAgentIntentsGetCall) Header() http.Header { func (c *ProjectsAgentIntentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15340,7 +15346,7 @@ func (c *ProjectsAgentIntentsListCall) Header() http.Header { func (c *ProjectsAgentIntentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15558,7 +15564,7 @@ func (c *ProjectsAgentIntentsPatchCall) Header() http.Header { func (c *ProjectsAgentIntentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15721,7 +15727,7 @@ func (c *ProjectsAgentSessionsDeleteContextsCall) Header() http.Header { func (c *ProjectsAgentSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15857,7 +15863,7 @@ func (c *ProjectsAgentSessionsDetectIntentCall) Header() http.Header { func (c *ProjectsAgentSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16001,7 +16007,7 @@ func (c *ProjectsAgentSessionsContextsCreateCall) Header() http.Header { func (c *ProjectsAgentSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16140,7 +16146,7 @@ func (c *ProjectsAgentSessionsContextsDeleteCall) Header() http.Header { func (c *ProjectsAgentSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16282,7 +16288,7 @@ func (c *ProjectsAgentSessionsContextsGetCall) Header() http.Header { func (c *ProjectsAgentSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16441,7 +16447,7 @@ func (c *ProjectsAgentSessionsContextsListCall) Header() http.Header { func (c *ProjectsAgentSessionsContextsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16618,7 +16624,7 @@ func (c *ProjectsAgentSessionsContextsPatchCall) Header() http.Header { func (c *ProjectsAgentSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16769,7 +16775,7 @@ func (c *ProjectsAgentSessionsEntityTypesCreateCall) Header() http.Header { func (c *ProjectsAgentSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16913,7 +16919,7 @@ func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Header() http.Header { func (c *ProjectsAgentSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17057,7 +17063,7 @@ func (c *ProjectsAgentSessionsEntityTypesGetCall) Header() http.Header { func (c *ProjectsAgentSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17221,7 +17227,7 @@ func (c *ProjectsAgentSessionsEntityTypesListCall) Header() http.Header { func (c *ProjectsAgentSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17400,7 +17406,7 @@ func (c *ProjectsAgentSessionsEntityTypesPatchCall) Header() http.Header { func (c *ProjectsAgentSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17556,7 +17562,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17700,7 +17706,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17875,7 +17881,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18056,7 +18062,7 @@ func (c *ProjectsOperationsCancelCall) Header() http.Header { func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18200,7 +18206,7 @@ func (c *ProjectsOperationsGetCall) Header() http.Header { func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18375,7 +18381,7 @@ func (c *ProjectsOperationsListCall) Header() http.Header { func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/dialogflow/v2beta1/dialogflow-api.json b/dialogflow/v2beta1/dialogflow-api.json index f4e54190bc4..8e18a602e1c 100644 --- a/dialogflow/v2beta1/dialogflow-api.json +++ b/dialogflow/v2beta1/dialogflow-api.json @@ -1663,6 +1663,11 @@ "parent" ], "parameters": { + "importGcsCustomMetadata": { + "description": "Whether to import custom metadata from Google Cloud Storage. Only valid when the document source is Google Cloud Storage URI.", + "location": "query", + "type": "boolean" + }, "parent": { "description": "Required. The knowledge base to create a document for. Format: `projects//knowledgeBases/`.", "location": "path", @@ -1813,7 +1818,7 @@ ] }, "reload": { - "description": "Reloads the specified document from its specified source, content_uri or content. The previously loaded content of the document will be deleted. Note: Even when the content of the document has not changed, there still may be side effects because of internal implementation changes. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.", + "description": "Reloads the specified document from its specified source, content_uri or content. The previously loaded content of the document will be deleted. Note: Even when the content of the document has not changed, there still may be side effects because of internal implementation changes. Note: If the document source is Google Cloud Storage URI, its metadata will be replaced with the custom metadata from Google Cloud Storage if the `import_gcs_custom_metadata` field is set to true in the request. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.", "flatPath": "v2beta1/projects/{projectsId}/agent/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}:reload", "httpMethod": "POST", "id": "dialogflow.projects.agent.knowledgeBases.documents.reload", @@ -2400,6 +2405,11 @@ "parent" ], "parameters": { + "importGcsCustomMetadata": { + "description": "Whether to import custom metadata from Google Cloud Storage. Only valid when the document source is Google Cloud Storage URI.", + "location": "query", + "type": "boolean" + }, "parent": { "description": "Required. The knowledge base to create a document for. Format: `projects//knowledgeBases/`.", "location": "path", @@ -2550,7 +2560,7 @@ ] }, "reload": { - "description": "Reloads the specified document from its specified source, content_uri or content. The previously loaded content of the document will be deleted. Note: Even when the content of the document has not changed, there still may be side effects because of internal implementation changes. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.", + "description": "Reloads the specified document from its specified source, content_uri or content. The previously loaded content of the document will be deleted. Note: Even when the content of the document has not changed, there still may be side effects because of internal implementation changes. Note: If the document source is Google Cloud Storage URI, its metadata will be replaced with the custom metadata from Google Cloud Storage if the `import_gcs_custom_metadata` field is set to true in the request. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.", "flatPath": "v2beta1/projects/{projectsId}/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}:reload", "httpMethod": "POST", "id": "dialogflow.projects.knowledgeBases.documents.reload", @@ -4537,7 +4547,7 @@ } } }, - "revision": "20201017", + "revision": "20201116", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3PageInfo": { @@ -9181,7 +9191,7 @@ "additionalProperties": { "type": "string" }, - "description": "This field can be used to pass HTTP headers for a webhook call. These headers will be sent to webhook alone with the headers that have been configured through Dialogflow web console. The headers defined within this field will overwrite the headers configured through Dialogflow console if there is a conflict. Header names are case-insensitive. Google's specified headers are not allowed. Including: \"Host\", \"Content-Length\", \"Connection\", \"From\", \"User-Agent\", \"Accept-Encoding\", \"If-Modified-Since\", \"If-None-Match\", \"X-Forwarded-For\", etc.", + "description": "This field can be used to pass HTTP headers for a webhook call. These headers will be sent to webhook along with the headers that have been configured through Dialogflow web console. The headers defined within this field will overwrite the headers configured through Dialogflow console if there is a conflict. Header names are case-insensitive. Google's specified headers are not allowed. Including: \"Host\", \"Content-Length\", \"Connection\", \"From\", \"User-Agent\", \"Accept-Encoding\", \"If-Modified-Since\", \"If-None-Match\", \"X-Forwarded-For\", etc.", "type": "object" } }, @@ -9285,6 +9295,10 @@ "gcsSource": { "$ref": "GoogleCloudDialogflowV2beta1GcsSource", "description": "The path for a Cloud Storage source file for reloading document content. If not provided, the Document's existing source will be reloaded." + }, + "importGcsCustomMetadata": { + "description": "Whether to import custom metadata from Google Cloud Storage. Only valid when the document source is Google Cloud Storage URI.", + "type": "boolean" } }, "type": "object" @@ -9641,12 +9655,6 @@ }, "type": "object" }, - "GoogleCloudDialogflowV3alpha1RunTestCaseMetadata": { - "description": "Metadata returned for the TestCases.RunTestCase long running operation.", - "id": "GoogleCloudDialogflowV3alpha1RunTestCaseMetadata", - "properties": {}, - "type": "object" - }, "GoogleLongrunningListOperationsResponse": { "description": "The response message for Operations.ListOperations.", "id": "GoogleLongrunningListOperationsResponse", diff --git a/dialogflow/v2beta1/dialogflow-gen.go b/dialogflow/v2beta1/dialogflow-gen.go index c2f347d8d28..197fee4e2b1 100644 --- a/dialogflow/v2beta1/dialogflow-gen.go +++ b/dialogflow/v2beta1/dialogflow-gen.go @@ -8643,7 +8643,7 @@ type GoogleCloudDialogflowV2beta1QueryParameters struct { TimeZone string `json:"timeZone,omitempty"` // WebhookHeaders: This field can be used to pass HTTP headers for a - // webhook call. These headers will be sent to webhook alone with the + // webhook call. These headers will be sent to webhook along with the // headers that have been configured through Dialogflow web console. The // headers defined within this field will overwrite the headers // configured through Dialogflow console if there is a conflict. Header @@ -8825,6 +8825,11 @@ type GoogleCloudDialogflowV2beta1ReloadDocumentRequest struct { // will be reloaded. GcsSource *GoogleCloudDialogflowV2beta1GcsSource `json:"gcsSource,omitempty"` + // ImportGcsCustomMetadata: Whether to import custom metadata from + // Google Cloud Storage. Only valid when the document source is Google + // Cloud Storage URI. + ImportGcsCustomMetadata bool `json:"importGcsCustomMetadata,omitempty"` + // ForceSendFields is a list of field names (e.g. "GcsSource") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, @@ -9605,11 +9610,6 @@ func (s *GoogleCloudDialogflowV2beta1WebhookResponse) MarshalJSON() ([]byte, err return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV3alpha1RunTestCaseMetadata: Metadata returned -// for the TestCases.RunTestCase long running operation. -type GoogleCloudDialogflowV3alpha1RunTestCaseMetadata struct { -} - // GoogleLongrunningListOperationsResponse: The response message for // Operations.ListOperations. type GoogleLongrunningListOperationsResponse struct { @@ -9862,7 +9862,7 @@ func (c *ProjectsDeleteAgentCall) Header() http.Header { func (c *ProjectsDeleteAgentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10004,7 +10004,7 @@ func (c *ProjectsGetAgentCall) Header() http.Header { func (c *ProjectsGetAgentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10148,7 +10148,7 @@ func (c *ProjectsSetAgentCall) Header() http.Header { func (c *ProjectsSetAgentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10296,7 +10296,7 @@ func (c *ProjectsAgentExportCall) Header() http.Header { func (c *ProjectsAgentExportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10446,7 +10446,7 @@ func (c *ProjectsAgentGetFulfillmentCall) Header() http.Header { func (c *ProjectsAgentGetFulfillmentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10605,7 +10605,7 @@ func (c *ProjectsAgentGetValidationResultCall) Header() http.Header { func (c *ProjectsAgentGetValidationResultCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10757,7 +10757,7 @@ func (c *ProjectsAgentImportCall) Header() http.Header { func (c *ProjectsAgentImportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10906,7 +10906,7 @@ func (c *ProjectsAgentRestoreCall) Header() http.Header { func (c *ProjectsAgentRestoreCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11076,7 +11076,7 @@ func (c *ProjectsAgentSearchCall) Header() http.Header { func (c *ProjectsAgentSearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11246,7 +11246,7 @@ func (c *ProjectsAgentTrainCall) Header() http.Header { func (c *ProjectsAgentTrainCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11395,7 +11395,7 @@ func (c *ProjectsAgentUpdateFulfillmentCall) Header() http.Header { func (c *ProjectsAgentUpdateFulfillmentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11543,7 +11543,7 @@ func (c *ProjectsAgentEntityTypesBatchDeleteCall) Header() http.Header { func (c *ProjectsAgentEntityTypesBatchDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11685,7 +11685,7 @@ func (c *ProjectsAgentEntityTypesBatchUpdateCall) Header() http.Header { func (c *ProjectsAgentEntityTypesBatchUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11837,7 +11837,7 @@ func (c *ProjectsAgentEntityTypesCreateCall) Header() http.Header { func (c *ProjectsAgentEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11982,7 +11982,7 @@ func (c *ProjectsAgentEntityTypesDeleteCall) Header() http.Header { func (c *ProjectsAgentEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12135,7 +12135,7 @@ func (c *ProjectsAgentEntityTypesGetCall) Header() http.Header { func (c *ProjectsAgentEntityTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12311,7 +12311,7 @@ func (c *ProjectsAgentEntityTypesListCall) Header() http.Header { func (c *ProjectsAgentEntityTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12504,7 +12504,7 @@ func (c *ProjectsAgentEntityTypesPatchCall) Header() http.Header { func (c *ProjectsAgentEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12658,7 +12658,7 @@ func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Header() http.Header { func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12799,7 +12799,7 @@ func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Header() http.Header { func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12942,7 +12942,7 @@ func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Header() http.Header { func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13107,7 +13107,7 @@ func (c *ProjectsAgentEnvironmentsListCall) Header() http.Header { func (c *ProjectsAgentEnvironmentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13275,7 +13275,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Header() http func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13411,7 +13411,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Header() http.H func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13555,7 +13555,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Header() http func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13695,7 +13695,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Header() http func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13837,7 +13837,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Header() http.He func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13997,7 +13997,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Header() http.H func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14174,7 +14174,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Header() http. func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14326,7 +14326,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Header() h func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14470,7 +14470,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Header() h func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14614,7 +14614,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Header() http func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14778,7 +14778,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Header() htt func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14958,7 +14958,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Header() ht func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15107,7 +15107,7 @@ func (c *ProjectsAgentIntentsBatchDeleteCall) Header() http.Header { func (c *ProjectsAgentIntentsBatchDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15249,7 +15249,7 @@ func (c *ProjectsAgentIntentsBatchUpdateCall) Header() http.Header { func (c *ProjectsAgentIntentsBatchUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15413,7 +15413,7 @@ func (c *ProjectsAgentIntentsCreateCall) Header() http.Header { func (c *ProjectsAgentIntentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15572,7 +15572,7 @@ func (c *ProjectsAgentIntentsDeleteCall) Header() http.Header { func (c *ProjectsAgentIntentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15737,7 +15737,7 @@ func (c *ProjectsAgentIntentsGetCall) Header() http.Header { func (c *ProjectsAgentIntentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15938,7 +15938,7 @@ func (c *ProjectsAgentIntentsListCall) Header() http.Header { func (c *ProjectsAgentIntentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16156,7 +16156,7 @@ func (c *ProjectsAgentIntentsPatchCall) Header() http.Header { func (c *ProjectsAgentIntentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16324,7 +16324,7 @@ func (c *ProjectsAgentKnowledgeBasesCreateCall) Header() http.Header { func (c *ProjectsAgentKnowledgeBasesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16475,7 +16475,7 @@ func (c *ProjectsAgentKnowledgeBasesDeleteCall) Header() http.Header { func (c *ProjectsAgentKnowledgeBasesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16624,7 +16624,7 @@ func (c *ProjectsAgentKnowledgeBasesGetCall) Header() http.Header { func (c *ProjectsAgentKnowledgeBasesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16806,7 +16806,7 @@ func (c *ProjectsAgentKnowledgeBasesListCall) Header() http.Header { func (c *ProjectsAgentKnowledgeBasesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16993,7 +16993,7 @@ func (c *ProjectsAgentKnowledgeBasesPatchCall) Header() http.Header { func (c *ProjectsAgentKnowledgeBasesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17117,6 +17117,15 @@ func (r *ProjectsAgentKnowledgeBasesDocumentsService) Create(parent string, goog return c } +// ImportGcsCustomMetadata sets the optional parameter +// "importGcsCustomMetadata": Whether to import custom metadata from +// Google Cloud Storage. Only valid when the document source is Google +// Cloud Storage URI. +func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) ImportGcsCustomMetadata(importGcsCustomMetadata bool) *ProjectsAgentKnowledgeBasesDocumentsCreateCall { + c.urlParams_.Set("importGcsCustomMetadata", fmt.Sprint(importGcsCustomMetadata)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -17144,7 +17153,7 @@ func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) Header() http.Header { func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17216,6 +17225,11 @@ func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) Do(opts ...googleapi.Ca // "parent" // ], // "parameters": { + // "importGcsCustomMetadata": { + // "description": "Whether to import custom metadata from Google Cloud Storage. Only valid when the document source is Google Cloud Storage URI.", + // "location": "query", + // "type": "boolean" + // }, // "parent": { // "description": "Required. The knowledge base to create a document for. Format: `projects//knowledgeBases/`.", // "location": "path", @@ -17285,7 +17299,7 @@ func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) Header() http.Header { func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17429,7 +17443,7 @@ func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) Header() http.Header { func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17607,7 +17621,7 @@ func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Header() http.Header { func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17793,7 +17807,7 @@ func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) Header() http.Header { func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17909,7 +17923,10 @@ type ProjectsAgentKnowledgeBasesDocumentsReloadCall struct { // content_uri or content. The previously loaded content of the document // will be deleted. Note: Even when the content of the document has not // changed, there still may be side effects because of internal -// implementation changes. Note: The +// implementation changes. Note: If the document source is Google Cloud +// Storage URI, its metadata will be replaced with the custom metadata +// from Google Cloud Storage if the `import_gcs_custom_metadata` field +// is set to true in the request. Note: The // `projects.agent.knowledgeBases.documents` resource is deprecated; // only use `projects.knowledgeBases.documents`. func (r *ProjectsAgentKnowledgeBasesDocumentsService) Reload(name string, googleclouddialogflowv2beta1reloaddocumentrequest *GoogleCloudDialogflowV2beta1ReloadDocumentRequest) *ProjectsAgentKnowledgeBasesDocumentsReloadCall { @@ -17946,7 +17963,7 @@ func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) Header() http.Header { func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18010,7 +18027,7 @@ func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Reloads the specified document from its specified source, content_uri or content. The previously loaded content of the document will be deleted. Note: Even when the content of the document has not changed, there still may be side effects because of internal implementation changes. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.", + // "description": "Reloads the specified document from its specified source, content_uri or content. The previously loaded content of the document will be deleted. Note: Even when the content of the document has not changed, there still may be side effects because of internal implementation changes. Note: If the document source is Google Cloud Storage URI, its metadata will be replaced with the custom metadata from Google Cloud Storage if the `import_gcs_custom_metadata` field is set to true in the request. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.", // "flatPath": "v2beta1/projects/{projectsId}/agent/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}:reload", // "httpMethod": "POST", // "id": "dialogflow.projects.agent.knowledgeBases.documents.reload", @@ -18085,7 +18102,7 @@ func (c *ProjectsAgentSessionsDeleteContextsCall) Header() http.Header { func (c *ProjectsAgentSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18221,7 +18238,7 @@ func (c *ProjectsAgentSessionsDetectIntentCall) Header() http.Header { func (c *ProjectsAgentSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18365,7 +18382,7 @@ func (c *ProjectsAgentSessionsContextsCreateCall) Header() http.Header { func (c *ProjectsAgentSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18505,7 +18522,7 @@ func (c *ProjectsAgentSessionsContextsDeleteCall) Header() http.Header { func (c *ProjectsAgentSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18647,7 +18664,7 @@ func (c *ProjectsAgentSessionsContextsGetCall) Header() http.Header { func (c *ProjectsAgentSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18807,7 +18824,7 @@ func (c *ProjectsAgentSessionsContextsListCall) Header() http.Header { func (c *ProjectsAgentSessionsContextsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18984,7 +19001,7 @@ func (c *ProjectsAgentSessionsContextsPatchCall) Header() http.Header { func (c *ProjectsAgentSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19136,7 +19153,7 @@ func (c *ProjectsAgentSessionsEntityTypesCreateCall) Header() http.Header { func (c *ProjectsAgentSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19280,7 +19297,7 @@ func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Header() http.Header { func (c *ProjectsAgentSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19424,7 +19441,7 @@ func (c *ProjectsAgentSessionsEntityTypesGetCall) Header() http.Header { func (c *ProjectsAgentSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19588,7 +19605,7 @@ func (c *ProjectsAgentSessionsEntityTypesListCall) Header() http.Header { func (c *ProjectsAgentSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19768,7 +19785,7 @@ func (c *ProjectsAgentSessionsEntityTypesPatchCall) Header() http.Header { func (c *ProjectsAgentSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19919,7 +19936,7 @@ func (c *ProjectsKnowledgeBasesCreateCall) Header() http.Header { func (c *ProjectsKnowledgeBasesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20070,7 +20087,7 @@ func (c *ProjectsKnowledgeBasesDeleteCall) Header() http.Header { func (c *ProjectsKnowledgeBasesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20219,7 +20236,7 @@ func (c *ProjectsKnowledgeBasesGetCall) Header() http.Header { func (c *ProjectsKnowledgeBasesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20401,7 +20418,7 @@ func (c *ProjectsKnowledgeBasesListCall) Header() http.Header { func (c *ProjectsKnowledgeBasesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20588,7 +20605,7 @@ func (c *ProjectsKnowledgeBasesPatchCall) Header() http.Header { func (c *ProjectsKnowledgeBasesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20712,6 +20729,15 @@ func (r *ProjectsKnowledgeBasesDocumentsService) Create(parent string, googleclo return c } +// ImportGcsCustomMetadata sets the optional parameter +// "importGcsCustomMetadata": Whether to import custom metadata from +// Google Cloud Storage. Only valid when the document source is Google +// Cloud Storage URI. +func (c *ProjectsKnowledgeBasesDocumentsCreateCall) ImportGcsCustomMetadata(importGcsCustomMetadata bool) *ProjectsKnowledgeBasesDocumentsCreateCall { + c.urlParams_.Set("importGcsCustomMetadata", fmt.Sprint(importGcsCustomMetadata)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -20739,7 +20765,7 @@ func (c *ProjectsKnowledgeBasesDocumentsCreateCall) Header() http.Header { func (c *ProjectsKnowledgeBasesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20811,6 +20837,11 @@ func (c *ProjectsKnowledgeBasesDocumentsCreateCall) Do(opts ...googleapi.CallOpt // "parent" // ], // "parameters": { + // "importGcsCustomMetadata": { + // "description": "Whether to import custom metadata from Google Cloud Storage. Only valid when the document source is Google Cloud Storage URI.", + // "location": "query", + // "type": "boolean" + // }, // "parent": { // "description": "Required. The knowledge base to create a document for. Format: `projects//knowledgeBases/`.", // "location": "path", @@ -20880,7 +20911,7 @@ func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) Header() http.Header { func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21024,7 +21055,7 @@ func (c *ProjectsKnowledgeBasesDocumentsGetCall) Header() http.Header { func (c *ProjectsKnowledgeBasesDocumentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21202,7 +21233,7 @@ func (c *ProjectsKnowledgeBasesDocumentsListCall) Header() http.Header { func (c *ProjectsKnowledgeBasesDocumentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21388,7 +21419,7 @@ func (c *ProjectsKnowledgeBasesDocumentsPatchCall) Header() http.Header { func (c *ProjectsKnowledgeBasesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21504,7 +21535,10 @@ type ProjectsKnowledgeBasesDocumentsReloadCall struct { // content_uri or content. The previously loaded content of the document // will be deleted. Note: Even when the content of the document has not // changed, there still may be side effects because of internal -// implementation changes. Note: The +// implementation changes. Note: If the document source is Google Cloud +// Storage URI, its metadata will be replaced with the custom metadata +// from Google Cloud Storage if the `import_gcs_custom_metadata` field +// is set to true in the request. Note: The // `projects.agent.knowledgeBases.documents` resource is deprecated; // only use `projects.knowledgeBases.documents`. func (r *ProjectsKnowledgeBasesDocumentsService) Reload(name string, googleclouddialogflowv2beta1reloaddocumentrequest *GoogleCloudDialogflowV2beta1ReloadDocumentRequest) *ProjectsKnowledgeBasesDocumentsReloadCall { @@ -21541,7 +21575,7 @@ func (c *ProjectsKnowledgeBasesDocumentsReloadCall) Header() http.Header { func (c *ProjectsKnowledgeBasesDocumentsReloadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21605,7 +21639,7 @@ func (c *ProjectsKnowledgeBasesDocumentsReloadCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Reloads the specified document from its specified source, content_uri or content. The previously loaded content of the document will be deleted. Note: Even when the content of the document has not changed, there still may be side effects because of internal implementation changes. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.", + // "description": "Reloads the specified document from its specified source, content_uri or content. The previously loaded content of the document will be deleted. Note: Even when the content of the document has not changed, there still may be side effects because of internal implementation changes. Note: If the document source is Google Cloud Storage URI, its metadata will be replaced with the custom metadata from Google Cloud Storage if the `import_gcs_custom_metadata` field is set to true in the request. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.", // "flatPath": "v2beta1/projects/{projectsId}/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}:reload", // "httpMethod": "POST", // "id": "dialogflow.projects.knowledgeBases.documents.reload", @@ -21680,7 +21714,7 @@ func (c *ProjectsLocationsDeleteAgentCall) Header() http.Header { func (c *ProjectsLocationsDeleteAgentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21822,7 +21856,7 @@ func (c *ProjectsLocationsGetAgentCall) Header() http.Header { func (c *ProjectsLocationsGetAgentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21966,7 +22000,7 @@ func (c *ProjectsLocationsSetAgentCall) Header() http.Header { func (c *ProjectsLocationsSetAgentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22114,7 +22148,7 @@ func (c *ProjectsLocationsAgentExportCall) Header() http.Header { func (c *ProjectsLocationsAgentExportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22264,7 +22298,7 @@ func (c *ProjectsLocationsAgentGetFulfillmentCall) Header() http.Header { func (c *ProjectsLocationsAgentGetFulfillmentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22423,7 +22457,7 @@ func (c *ProjectsLocationsAgentGetValidationResultCall) Header() http.Header { func (c *ProjectsLocationsAgentGetValidationResultCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22575,7 +22609,7 @@ func (c *ProjectsLocationsAgentImportCall) Header() http.Header { func (c *ProjectsLocationsAgentImportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22724,7 +22758,7 @@ func (c *ProjectsLocationsAgentRestoreCall) Header() http.Header { func (c *ProjectsLocationsAgentRestoreCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22894,7 +22928,7 @@ func (c *ProjectsLocationsAgentSearchCall) Header() http.Header { func (c *ProjectsLocationsAgentSearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23064,7 +23098,7 @@ func (c *ProjectsLocationsAgentTrainCall) Header() http.Header { func (c *ProjectsLocationsAgentTrainCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23213,7 +23247,7 @@ func (c *ProjectsLocationsAgentUpdateFulfillmentCall) Header() http.Header { func (c *ProjectsLocationsAgentUpdateFulfillmentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23361,7 +23395,7 @@ func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) Header() http.Header func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23503,7 +23537,7 @@ func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) Header() http.Header func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23655,7 +23689,7 @@ func (c *ProjectsLocationsAgentEntityTypesCreateCall) Header() http.Header { func (c *ProjectsLocationsAgentEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23800,7 +23834,7 @@ func (c *ProjectsLocationsAgentEntityTypesDeleteCall) Header() http.Header { func (c *ProjectsLocationsAgentEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23953,7 +23987,7 @@ func (c *ProjectsLocationsAgentEntityTypesGetCall) Header() http.Header { func (c *ProjectsLocationsAgentEntityTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24129,7 +24163,7 @@ func (c *ProjectsLocationsAgentEntityTypesListCall) Header() http.Header { func (c *ProjectsLocationsAgentEntityTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24322,7 +24356,7 @@ func (c *ProjectsLocationsAgentEntityTypesPatchCall) Header() http.Header { func (c *ProjectsLocationsAgentEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24476,7 +24510,7 @@ func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) Header() http func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24617,7 +24651,7 @@ func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) Header() http func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24760,7 +24794,7 @@ func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) Header() http func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24925,7 +24959,7 @@ func (c *ProjectsLocationsAgentEnvironmentsListCall) Header() http.Header { func (c *ProjectsLocationsAgentEnvironmentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25093,7 +25127,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) Head func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25229,7 +25263,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) Header func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25373,7 +25407,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) Head func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25513,7 +25547,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) Head func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25655,7 +25689,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) Header( func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25815,7 +25849,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Header func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25992,7 +26026,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) Heade func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26144,7 +26178,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) H func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26288,7 +26322,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) H func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26432,7 +26466,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Head func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26596,7 +26630,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Hea func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26776,7 +26810,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) He func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26925,7 +26959,7 @@ func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) Header() http.Header { func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27067,7 +27101,7 @@ func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) Header() http.Header { func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27231,7 +27265,7 @@ func (c *ProjectsLocationsAgentIntentsCreateCall) Header() http.Header { func (c *ProjectsLocationsAgentIntentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27390,7 +27424,7 @@ func (c *ProjectsLocationsAgentIntentsDeleteCall) Header() http.Header { func (c *ProjectsLocationsAgentIntentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27555,7 +27589,7 @@ func (c *ProjectsLocationsAgentIntentsGetCall) Header() http.Header { func (c *ProjectsLocationsAgentIntentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27756,7 +27790,7 @@ func (c *ProjectsLocationsAgentIntentsListCall) Header() http.Header { func (c *ProjectsLocationsAgentIntentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27974,7 +28008,7 @@ func (c *ProjectsLocationsAgentIntentsPatchCall) Header() http.Header { func (c *ProjectsLocationsAgentIntentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28138,7 +28172,7 @@ func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) Header() http.Header func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28274,7 +28308,7 @@ func (c *ProjectsLocationsAgentSessionsDetectIntentCall) Header() http.Header { func (c *ProjectsLocationsAgentSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28418,7 +28452,7 @@ func (c *ProjectsLocationsAgentSessionsContextsCreateCall) Header() http.Header func (c *ProjectsLocationsAgentSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28558,7 +28592,7 @@ func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) Header() http.Header func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28700,7 +28734,7 @@ func (c *ProjectsLocationsAgentSessionsContextsGetCall) Header() http.Header { func (c *ProjectsLocationsAgentSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28860,7 +28894,7 @@ func (c *ProjectsLocationsAgentSessionsContextsListCall) Header() http.Header { func (c *ProjectsLocationsAgentSessionsContextsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29037,7 +29071,7 @@ func (c *ProjectsLocationsAgentSessionsContextsPatchCall) Header() http.Header { func (c *ProjectsLocationsAgentSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29189,7 +29223,7 @@ func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) Header() http.Head func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29333,7 +29367,7 @@ func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) Header() http.Head func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29477,7 +29511,7 @@ func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) Header() http.Header func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29641,7 +29675,7 @@ func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Header() http.Header func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29821,7 +29855,7 @@ func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) Header() http.Heade func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29977,7 +30011,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30121,7 +30155,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30296,7 +30330,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30477,7 +30511,7 @@ func (c *ProjectsOperationsCancelCall) Header() http.Header { func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30621,7 +30655,7 @@ func (c *ProjectsOperationsGetCall) Header() http.Header { func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30796,7 +30830,7 @@ func (c *ProjectsOperationsListCall) Header() http.Header { func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/dialogflow/v3beta1/dialogflow-api.json b/dialogflow/v3beta1/dialogflow-api.json index 59f88d4eff4..bd69f4725c4 100644 --- a/dialogflow/v3beta1/dialogflow-api.json +++ b/dialogflow/v3beta1/dialogflow-api.json @@ -2525,7 +2525,7 @@ } } }, - "revision": "20201017", + "revision": "20201112", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3PageInfo": { @@ -3585,6 +3585,10 @@ "description": "An intent represents a user's intent to interact with a conversational agent. You can provide information for the Dialogflow API to use to match user input to an intent by adding training phrases (i.e., examples of user input) to your intent.", "id": "GoogleCloudDialogflowCxV3beta1Intent", "properties": { + "description": { + "description": "Optional. Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters.", + "type": "string" + }, "displayName": { "description": "Required. The human-readable name of the intent, unique within the agent.", "type": "string" @@ -3593,6 +3597,13 @@ "description": "Indicates whether this is a fallback intent. Currently only default fallback intent is allowed in the agent, which is added upon agent creation. Adding training phrases to fallback intent is useful in the case of requests that are mistakenly matched, since training phrases assigned to fallback intents act as negative examples that triggers no-match event.", "type": "boolean" }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The key/value metadata to label an intent. Labels can contain lowercase letters, digits and the symbols '-' and '_'. International characters are allowed, including letters from unicase alphabets. Keys must start with a letter. Keys and values can be no longer than 63 characters and no more than 128 bytes. Prefix \"sys-\" is reserved for Dialogflow defined labels. Currently allowed Dialogflow defined labels include: * sys-head * sys-contextual The above labels do not require value. \"sys-head\" means the intent is a head intent. \"sys-contextual\" means the intent is a contextual intent.", + "type": "object" + }, "name": { "description": "The unique identifier of the intent. Required for the Intents.UpdateIntent method. Intents.CreateIntent populates the name automatically. Format: `projects//locations//agents//intents/`.", "type": "string" @@ -3909,6 +3920,10 @@ "format": "float", "type": "number" }, + "event": { + "description": "The event that matched the query. Only filled for `EVENT` match type.", + "type": "string" + }, "intent": { "$ref": "GoogleCloudDialogflowCxV3beta1Intent", "description": "The Intent that matched the query. Some, not all fields are filled in this message, including but not limited to: `name` and `display_name`. Only filled for `INTENT` match type." @@ -3921,7 +3936,8 @@ "DIRECT_INTENT", "PARAMETER_FILLING", "NO_MATCH", - "NO_INPUT" + "NO_INPUT", + "EVENT" ], "enumDescriptions": [ "Not specified. Should never be used.", @@ -3929,7 +3945,8 @@ "The query directly triggered an intent.", "The query was used for parameter filling.", "No match was found for the query.", - "Indicates an empty query." + "Indicates an empty query.", + "The query directly triggered an event." ], "type": "string" }, @@ -8124,12 +8141,6 @@ }, "type": "object" }, - "GoogleCloudDialogflowV3alpha1RunTestCaseMetadata": { - "description": "Metadata returned for the TestCases.RunTestCase long running operation.", - "id": "GoogleCloudDialogflowV3alpha1RunTestCaseMetadata", - "properties": {}, - "type": "object" - }, "GoogleLongrunningListOperationsResponse": { "description": "The response message for Operations.ListOperations.", "id": "GoogleLongrunningListOperationsResponse", diff --git a/dialogflow/v3beta1/dialogflow-gen.go b/dialogflow/v3beta1/dialogflow-gen.go index 61da16236a0..0a647228b2c 100644 --- a/dialogflow/v3beta1/dialogflow-gen.go +++ b/dialogflow/v3beta1/dialogflow-gen.go @@ -2430,6 +2430,11 @@ func (s *GoogleCloudDialogflowCxV3beta1InputAudioConfig) MarshalJSON() ([]byte, // intent by adding training phrases (i.e., examples of user input) to // your intent. type GoogleCloudDialogflowCxV3beta1Intent struct { + // Description: Optional. Human readable description for better + // understanding an intent like its scope, content, result etc. Maximum + // character limit: 140 characters. + Description string `json:"description,omitempty"` + // DisplayName: Required. The human-readable name of the intent, unique // within the agent. DisplayName string `json:"displayName,omitempty"` @@ -2442,6 +2447,18 @@ type GoogleCloudDialogflowCxV3beta1Intent struct { // examples that triggers no-match event. IsFallback bool `json:"isFallback,omitempty"` + // Labels: Optional. The key/value metadata to label an intent. Labels + // can contain lowercase letters, digits and the symbols '-' and '_'. + // International characters are allowed, including letters from unicase + // alphabets. Keys must start with a letter. Keys and values can be no + // longer than 63 characters and no more than 128 bytes. Prefix "sys-" + // is reserved for Dialogflow defined labels. Currently allowed + // Dialogflow defined labels include: * sys-head * sys-contextual The + // above labels do not require value. "sys-head" means the intent is a + // head intent. "sys-contextual" means the intent is a contextual + // intent. + Labels map[string]string `json:"labels,omitempty"` + // Name: The unique identifier of the intent. Required for the // Intents.UpdateIntent method. Intents.CreateIntent populates the name // automatically. Format: `projects//locations//agents//intents/`. @@ -2465,7 +2482,7 @@ type GoogleCloudDialogflowCxV3beta1Intent struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to + // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -2473,7 +2490,7 @@ type GoogleCloudDialogflowCxV3beta1Intent struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DisplayName") to include + // NullFields is a list of field names (e.g. "Description") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as @@ -3119,6 +3136,10 @@ type GoogleCloudDialogflowCxV3beta1Match struct { // change in implementation. Confidence float64 `json:"confidence,omitempty"` + // Event: The event that matched the query. Only filled for `EVENT` + // match type. + Event string `json:"event,omitempty"` + // Intent: The Intent that matched the query. Some, not all fields are // filled in this message, including but not limited to: `name` and // `display_name`. Only filled for `INTENT` match type. @@ -3133,6 +3154,7 @@ type GoogleCloudDialogflowCxV3beta1Match struct { // "PARAMETER_FILLING" - The query was used for parameter filling. // "NO_MATCH" - No match was found for the query. // "NO_INPUT" - Indicates an empty query. + // "EVENT" - The query directly triggered an event. MatchType string `json:"matchType,omitempty"` // Parameters: The collection of parameters extracted from the query. @@ -10425,11 +10447,6 @@ func (s *GoogleCloudDialogflowV2beta1WebhookResponse) MarshalJSON() ([]byte, err return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV3alpha1RunTestCaseMetadata: Metadata returned -// for the TestCases.RunTestCase long running operation. -type GoogleCloudDialogflowV3alpha1RunTestCaseMetadata struct { -} - // GoogleLongrunningListOperationsResponse: The response message for // Operations.ListOperations. type GoogleLongrunningListOperationsResponse struct { @@ -10684,7 +10701,7 @@ func (c *ProjectsLocationsAgentsCreateCall) Header() http.Header { func (c *ProjectsLocationsAgentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10824,7 +10841,7 @@ func (c *ProjectsLocationsAgentsDeleteCall) Header() http.Header { func (c *ProjectsLocationsAgentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10957,7 +10974,7 @@ func (c *ProjectsLocationsAgentsExportCall) Header() http.Header { func (c *ProjectsLocationsAgentsExportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11107,7 +11124,7 @@ func (c *ProjectsLocationsAgentsGetCall) Header() http.Header { func (c *ProjectsLocationsAgentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11267,7 +11284,7 @@ func (c *ProjectsLocationsAgentsListCall) Header() http.Header { func (c *ProjectsLocationsAgentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11445,7 +11462,7 @@ func (c *ProjectsLocationsAgentsPatchCall) Header() http.Header { func (c *ProjectsLocationsAgentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11595,7 +11612,7 @@ func (c *ProjectsLocationsAgentsRestoreCall) Header() http.Header { func (c *ProjectsLocationsAgentsRestoreCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11749,7 +11766,7 @@ func (c *ProjectsLocationsAgentsEntityTypesCreateCall) Header() http.Header { func (c *ProjectsLocationsAgentsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11908,7 +11925,7 @@ func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) Header() http.Header { func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12068,7 +12085,7 @@ func (c *ProjectsLocationsAgentsEntityTypesGetCall) Header() http.Header { func (c *ProjectsLocationsAgentsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12247,7 +12264,7 @@ func (c *ProjectsLocationsAgentsEntityTypesListCall) Header() http.Header { func (c *ProjectsLocationsAgentsEntityTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12442,7 +12459,7 @@ func (c *ProjectsLocationsAgentsEntityTypesPatchCall) Header() http.Header { func (c *ProjectsLocationsAgentsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12596,7 +12613,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsCreateCall) Header() http.Header { func (c *ProjectsLocationsAgentsEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12735,7 +12752,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsDeleteCall) Header() http.Header { func (c *ProjectsLocationsAgentsEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12877,7 +12894,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsGetCall) Header() http.Header { func (c *ProjectsLocationsAgentsEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13038,7 +13055,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsListCall) Header() http.Header { func (c *ProjectsLocationsAgentsEnvironmentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13233,7 +13250,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) Header func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13411,7 +13428,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsPatchCall) Header() http.Header { func (c *ProjectsLocationsAgentsEnvironmentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13561,7 +13578,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall) Header() h func (c *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13706,7 +13723,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall) Header() func (c *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13850,7 +13867,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall) Header() ht func (c *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13994,7 +14011,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall) Heade func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14135,7 +14152,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall) Heade func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14277,7 +14294,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall) Header() func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14439,7 +14456,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) Header( func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14617,7 +14634,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall) Header func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14779,7 +14796,7 @@ func (c *ProjectsLocationsAgentsFlowsCreateCall) Header() http.Header { func (c *ProjectsLocationsAgentsFlowsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14936,7 +14953,7 @@ func (c *ProjectsLocationsAgentsFlowsDeleteCall) Header() http.Header { func (c *ProjectsLocationsAgentsFlowsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15096,7 +15113,7 @@ func (c *ProjectsLocationsAgentsFlowsGetCall) Header() http.Header { func (c *ProjectsLocationsAgentsFlowsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15274,7 +15291,7 @@ func (c *ProjectsLocationsAgentsFlowsListCall) Header() http.Header { func (c *ProjectsLocationsAgentsFlowsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15470,7 +15487,7 @@ func (c *ProjectsLocationsAgentsFlowsPatchCall) Header() http.Header { func (c *ProjectsLocationsAgentsFlowsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15624,7 +15641,7 @@ func (c *ProjectsLocationsAgentsFlowsTrainCall) Header() http.Header { func (c *ProjectsLocationsAgentsFlowsTrainCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15782,7 +15799,7 @@ func (c *ProjectsLocationsAgentsFlowsPagesCreateCall) Header() http.Header { func (c *ProjectsLocationsAgentsFlowsPagesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15939,7 +15956,7 @@ func (c *ProjectsLocationsAgentsFlowsPagesDeleteCall) Header() http.Header { func (c *ProjectsLocationsAgentsFlowsPagesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16103,7 +16120,7 @@ func (c *ProjectsLocationsAgentsFlowsPagesGetCall) Header() http.Header { func (c *ProjectsLocationsAgentsFlowsPagesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16285,7 +16302,7 @@ func (c *ProjectsLocationsAgentsFlowsPagesListCall) Header() http.Header { func (c *ProjectsLocationsAgentsFlowsPagesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16485,7 +16502,7 @@ func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) Header() http.Header { func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16650,7 +16667,7 @@ func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall) Header() h func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16808,7 +16825,7 @@ func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall) Header() h func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16967,7 +16984,7 @@ func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) Header() http func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17146,7 +17163,7 @@ func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) Header() htt func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17341,7 +17358,7 @@ func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) Header() ht func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17495,7 +17512,7 @@ func (c *ProjectsLocationsAgentsFlowsVersionsCreateCall) Header() http.Header { func (c *ProjectsLocationsAgentsFlowsVersionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17634,7 +17651,7 @@ func (c *ProjectsLocationsAgentsFlowsVersionsDeleteCall) Header() http.Header { func (c *ProjectsLocationsAgentsFlowsVersionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17776,7 +17793,7 @@ func (c *ProjectsLocationsAgentsFlowsVersionsGetCall) Header() http.Header { func (c *ProjectsLocationsAgentsFlowsVersionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17936,7 +17953,7 @@ func (c *ProjectsLocationsAgentsFlowsVersionsListCall) Header() http.Header { func (c *ProjectsLocationsAgentsFlowsVersionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18106,7 +18123,7 @@ func (c *ProjectsLocationsAgentsFlowsVersionsLoadCall) Header() http.Header { func (c *ProjectsLocationsAgentsFlowsVersionsLoadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18255,7 +18272,7 @@ func (c *ProjectsLocationsAgentsFlowsVersionsPatchCall) Header() http.Header { func (c *ProjectsLocationsAgentsFlowsVersionsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18415,7 +18432,7 @@ func (c *ProjectsLocationsAgentsIntentsCreateCall) Header() http.Header { func (c *ProjectsLocationsAgentsIntentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18560,7 +18577,7 @@ func (c *ProjectsLocationsAgentsIntentsDeleteCall) Header() http.Header { func (c *ProjectsLocationsAgentsIntentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18714,7 +18731,7 @@ func (c *ProjectsLocationsAgentsIntentsGetCall) Header() http.Header { func (c *ProjectsLocationsAgentsIntentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18905,7 +18922,7 @@ func (c *ProjectsLocationsAgentsIntentsListCall) Header() http.Header { func (c *ProjectsLocationsAgentsIntentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19115,7 +19132,7 @@ func (c *ProjectsLocationsAgentsIntentsPatchCall) Header() http.Header { func (c *ProjectsLocationsAgentsIntentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19271,7 +19288,7 @@ func (c *ProjectsLocationsAgentsSessionsDetectIntentCall) Header() http.Header { func (c *ProjectsLocationsAgentsSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19416,7 +19433,7 @@ func (c *ProjectsLocationsAgentsSessionsFulfillIntentCall) Header() http.Header func (c *ProjectsLocationsAgentsSessionsFulfillIntentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19560,7 +19577,7 @@ func (c *ProjectsLocationsAgentsSessionsMatchIntentCall) Header() http.Header { func (c *ProjectsLocationsAgentsSessionsMatchIntentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19704,7 +19721,7 @@ func (c *ProjectsLocationsAgentsSessionsEntityTypesCreateCall) Header() http.Hea func (c *ProjectsLocationsAgentsSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19845,7 +19862,7 @@ func (c *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall) Header() http.Hea func (c *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19987,7 +20004,7 @@ func (c *ProjectsLocationsAgentsSessionsEntityTypesGetCall) Header() http.Header func (c *ProjectsLocationsAgentsSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20149,7 +20166,7 @@ func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) Header() http.Heade func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20327,7 +20344,7 @@ func (c *ProjectsLocationsAgentsSessionsEntityTypesPatchCall) Header() http.Head func (c *ProjectsLocationsAgentsSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20476,7 +20493,7 @@ func (c *ProjectsLocationsAgentsWebhooksCreateCall) Header() http.Header { func (c *ProjectsLocationsAgentsWebhooksCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20628,7 +20645,7 @@ func (c *ProjectsLocationsAgentsWebhooksDeleteCall) Header() http.Header { func (c *ProjectsLocationsAgentsWebhooksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20775,7 +20792,7 @@ func (c *ProjectsLocationsAgentsWebhooksGetCall) Header() http.Header { func (c *ProjectsLocationsAgentsWebhooksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20935,7 +20952,7 @@ func (c *ProjectsLocationsAgentsWebhooksListCall) Header() http.Header { func (c *ProjectsLocationsAgentsWebhooksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21113,7 +21130,7 @@ func (c *ProjectsLocationsAgentsWebhooksPatchCall) Header() http.Header { func (c *ProjectsLocationsAgentsWebhooksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21268,7 +21285,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21412,7 +21429,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21587,7 +21604,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21768,7 +21785,7 @@ func (c *ProjectsOperationsCancelCall) Header() http.Header { func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21912,7 +21929,7 @@ func (c *ProjectsOperationsGetCall) Header() http.Header { func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22087,7 +22104,7 @@ func (c *ProjectsOperationsListCall) Header() http.Header { func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/digitalassetlinks/v1/digitalassetlinks-gen.go b/digitalassetlinks/v1/digitalassetlinks-gen.go index 55a18b92c7e..e63a574c3d0 100644 --- a/digitalassetlinks/v1/digitalassetlinks-gen.go +++ b/digitalassetlinks/v1/digitalassetlinks-gen.go @@ -689,7 +689,7 @@ func (c *AssetlinksCheckCall) Header() http.Header { func (c *AssetlinksCheckCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -933,7 +933,7 @@ func (c *StatementsListCall) Header() http.Header { func (c *StatementsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/discovery/v1/discovery-gen.go b/discovery/v1/discovery-gen.go index c3a93deded0..417e7d96b7d 100644 --- a/discovery/v1/discovery-gen.go +++ b/discovery/v1/discovery-gen.go @@ -1054,7 +1054,7 @@ func (c *ApisGetRestCall) Header() http.Header { func (c *ApisGetRestCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1213,7 +1213,7 @@ func (c *ApisListCall) Header() http.Header { func (c *ApisListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/displayvideo/v1/displayvideo-api.json b/displayvideo/v1/displayvideo-api.json index 7475d44dc87..0059a054673 100644 --- a/displayvideo/v1/displayvideo-api.json +++ b/displayvideo/v1/displayvideo-api.json @@ -1597,7 +1597,7 @@ "type": "string" }, "filter": { - "description": "Allows filtering by line item properties. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * The operator used on `flight.dateRange.endDate` must be LESS THAN (\u003c). * The operator used on `warningMessages` must be `HAS (:)`. * The operators used on all other fields must be `EQUALS (=)`. * Supported fields: - `campaignId` - `displayName` - `insertionOrderId` - `entityStatus` - `lineItemId` - `lineItemType` - `flight.dateRange.endDate` (input formatted as YYYY-MM-DD) - `warningMessages` Examples: * All line items under an insertion order: `insertionOrderId=\"1234\"` * All `ENTITY_STATUS_ACTIVE` or `ENTITY_STATUS_PAUSED` and `LINE_ITEM_TYPE_DISPLAY_DEFAULT` line items under an advertiser: `(entityStatus=\"ENTITY_STATUS_ACTIVE\" OR entityStatus=\"ENTITY_STATUS_PAUSED\") AND lineItemType=\"LINE_ITEM_TYPE_DISPLAY_DEFAULT\"` * All line items whose flight dates end before March 28, 2019: `flight.dateRange.endDate\u003c\"2019-03-28\"` * All line items that have `NO_VALID_CREATIVE` in `warningMessages`: `warningMessages:\"NO_VALID_CREATIVE\"` The length of this field should be no more than 500 characters.", + "description": "Allows filtering by line item properties. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * The operator used on `flight.dateRange.endDate` must be LESS THAN (\u003c). * The operator used on `warningMessages` must be `HAS (:)`. * The operators used on all other fields must be `EQUALS (=)`. * Supported fields: - `campaignId` - `displayName` - `insertionOrderId` - `entityStatus` - `lineItemId` - `lineItemType` - `flight.dateRange.endDate` (input formatted as YYYY-MM-DD) - `warningMessages` - `flight.triggerId` Examples: * All line items under an insertion order: `insertionOrderId=\"1234\"` * All `ENTITY_STATUS_ACTIVE` or `ENTITY_STATUS_PAUSED` and `LINE_ITEM_TYPE_DISPLAY_DEFAULT` line items under an advertiser: `(entityStatus=\"ENTITY_STATUS_ACTIVE\" OR entityStatus=\"ENTITY_STATUS_PAUSED\") AND lineItemType=\"LINE_ITEM_TYPE_DISPLAY_DEFAULT\"` * All line items whose flight dates end before March 28, 2019: `flight.dateRange.endDate\u003c\"2019-03-28\"` * All line items that have `NO_VALID_CREATIVE` in `warningMessages`: `warningMessages:\"NO_VALID_CREATIVE\"` The length of this field should be no more than 500 characters.", "location": "query", "type": "string" }, @@ -2547,6 +2547,241 @@ } } }, + "manualTriggers": { + "methods": { + "activate": { + "description": "Activates a manual trigger. Each activation of the manual trigger must be at least 5 minutes apart, otherwise an error will be returned.", + "flatPath": "v1/advertisers/{advertisersId}/manualTriggers/{manualTriggersId}:activate", + "httpMethod": "POST", + "id": "displayvideo.advertisers.manualTriggers.activate", + "parameterOrder": [ + "advertiserId", + "triggerId" + ], + "parameters": { + "advertiserId": { + "description": "Required. The ID of the advertiser that the manual trigger belongs.", + "format": "int64", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + }, + "triggerId": { + "description": "Required. The ID of the manual trigger to activate.", + "format": "int64", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/advertisers/{+advertiserId}/manualTriggers/{+triggerId}:activate", + "request": { + "$ref": "ActivateManualTriggerRequest" + }, + "response": { + "$ref": "ManualTrigger" + }, + "scopes": [ + "https://www.googleapis.com/auth/display-video" + ] + }, + "create": { + "description": "Creates a new manual trigger. Returns the newly created manual trigger if successful.", + "flatPath": "v1/advertisers/{advertisersId}/manualTriggers", + "httpMethod": "POST", + "id": "displayvideo.advertisers.manualTriggers.create", + "parameterOrder": [ + "advertiserId" + ], + "parameters": { + "advertiserId": { + "description": "Required. Immutable. The unique ID of the advertiser that the manual trigger belongs to.", + "format": "int64", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/advertisers/{+advertiserId}/manualTriggers", + "request": { + "$ref": "ManualTrigger" + }, + "response": { + "$ref": "ManualTrigger" + }, + "scopes": [ + "https://www.googleapis.com/auth/display-video" + ] + }, + "deactivate": { + "description": "Deactivates a manual trigger.", + "flatPath": "v1/advertisers/{advertisersId}/manualTriggers/{manualTriggersId}:deactivate", + "httpMethod": "POST", + "id": "displayvideo.advertisers.manualTriggers.deactivate", + "parameterOrder": [ + "advertiserId", + "triggerId" + ], + "parameters": { + "advertiserId": { + "description": "Required. The ID of the advertiser that the manual trigger belongs.", + "format": "int64", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + }, + "triggerId": { + "description": "Required. The ID of the manual trigger to deactivate.", + "format": "int64", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/advertisers/{+advertiserId}/manualTriggers/{+triggerId}:deactivate", + "request": { + "$ref": "DeactivateManualTriggerRequest" + }, + "response": { + "$ref": "ManualTrigger" + }, + "scopes": [ + "https://www.googleapis.com/auth/display-video" + ] + }, + "get": { + "description": "Gets a manual trigger.", + "flatPath": "v1/advertisers/{advertisersId}/manualTriggers/{manualTriggersId}", + "httpMethod": "GET", + "id": "displayvideo.advertisers.manualTriggers.get", + "parameterOrder": [ + "advertiserId", + "triggerId" + ], + "parameters": { + "advertiserId": { + "description": "Required. The ID of the advertiser this manual trigger belongs to.", + "format": "int64", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + }, + "triggerId": { + "description": "Required. The ID of the manual trigger to fetch.", + "format": "int64", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/advertisers/{+advertiserId}/manualTriggers/{+triggerId}", + "response": { + "$ref": "ManualTrigger" + }, + "scopes": [ + "https://www.googleapis.com/auth/display-video" + ] + }, + "list": { + "description": "Lists manual triggers that are accessible to the current user for a given advertiser ID. The order is defined by the order_by parameter. A single advertiser_id is required.", + "flatPath": "v1/advertisers/{advertisersId}/manualTriggers", + "httpMethod": "GET", + "id": "displayvideo.advertisers.manualTriggers.list", + "parameterOrder": [ + "advertiserId" + ], + "parameters": { + "advertiserId": { + "description": "Required. The ID of the advertiser that the fetched manual triggers belong to.", + "format": "int64", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + }, + "filter": { + "description": "Allows filtering by manual trigger properties. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * The operator must be `EQUALS (=)`. * Supported fields: - `displayName` - `state` Examples: * All active manual triggers under an advertiser: `state=\"ACTIVE\"` The length of this field should be no more than 500 characters.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Field by which to sort the list. Acceptable values are: * `displayName` (default) * `state` The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. For example, `displayName desc`.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Requested page size. Must be between `1` and `100`. If unspecified will default to `100`.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListManualTriggers` method. If not specified, the first page of results will be returned.", + "location": "query", + "type": "string" + } + }, + "path": "v1/advertisers/{+advertiserId}/manualTriggers", + "response": { + "$ref": "ListManualTriggersResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/display-video" + ] + }, + "patch": { + "description": "Updates a manual trigger. Returns the updated manual trigger if successful.", + "flatPath": "v1/advertisers/{advertisersId}/manualTriggers/{manualTriggersId}", + "httpMethod": "PATCH", + "id": "displayvideo.advertisers.manualTriggers.patch", + "parameterOrder": [ + "advertiserId", + "triggerId" + ], + "parameters": { + "advertiserId": { + "description": "Required. Immutable. The unique ID of the advertiser that the manual trigger belongs to.", + "format": "int64", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + }, + "triggerId": { + "description": "Output only. The unique ID of the manual trigger.", + "format": "int64", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The mask to control which fields to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/advertisers/{+advertiserId}/manualTriggers/{+triggerId}", + "request": { + "$ref": "ManualTrigger" + }, + "response": { + "$ref": "ManualTrigger" + }, + "scopes": [ + "https://www.googleapis.com/auth/display-video" + ] + } + } + }, "negativeKeywordLists": { "methods": { "create": { @@ -5906,9 +6141,15 @@ } } }, - "revision": "20201015", + "revision": "20201112", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { + "ActivateManualTriggerRequest": { + "description": "Request message for ManualTriggerService.ActivateManualTrigger.", + "id": "ActivateManualTriggerRequest", + "properties": {}, + "type": "object" + }, "ActiveViewVideoViewabilityMetricConfig": { "description": "Configuration for custom Active View video viewability metrics.", "id": "ActiveViewVideoViewabilityMetricConfig", @@ -6143,7 +6384,7 @@ "properties": { "cmHybridConfig": { "$ref": "CmHybridConfig", - "description": "The configuration for advertisers that use both Campaign Manager (CM) and third-party ad servers." + "description": "The configuration for advertisers that use both Campaign Manager 360 (CM360) and third-party ad servers." }, "thirdPartyOnlyConfig": { "$ref": "ThirdPartyOnlyConfig", @@ -6170,7 +6411,7 @@ "type": "boolean" }, "videoCreativeDataSharingAuthorized": { - "description": "By setting this field to `true`, you, on behalf of your company, authorize Google to use video creatives associated with this Display \u0026 Video 360 advertiser to provide reporting and features related to the advertiser's television campaigns. Applicable only when the advertiser has a CM hybrid ad server configuration.", + "description": "By setting this field to `true`, you, on behalf of your company, authorize Google to use video creatives associated with this Display \u0026 Video 360 advertiser to provide reporting and features related to the advertiser's television campaigns. Applicable only when the advertiser has a CM360 hybrid ad server configuration.", "type": "boolean" } }, @@ -6200,7 +6441,7 @@ "type": "string" }, "timeZone": { - "description": "Output only. The standard TZ database name of the advertiser's time zone. For example, `America/New_York`. See more at: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones For CM hybrid advertisers, the time zone is the same as that of the associated CM account; for third-party only advertisers, the time zone is the same as that of the parent partner.", + "description": "Output only. The standard TZ database name of the advertiser's time zone. For example, `America/New_York`. See more at: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones For CM360 hybrid advertisers, the time zone is the same as that of the associated CM360 account; for third-party only advertisers, the time zone is the same as that of the parent partner.", "readOnly": true, "type": "string" } @@ -7555,16 +7796,16 @@ "type": "object" }, "CmHybridConfig": { - "description": "Settings for advertisers that use both Campaign Manager (CM) and third-party ad servers.", + "description": "Settings for advertisers that use both Campaign Manager 360 (CM360) and third-party ad servers.", "id": "CmHybridConfig", "properties": { "cmAccountId": { - "description": "Required. Immutable. Account ID of the CM Floodlight configuration linked with the DV360 advertiser.", + "description": "Required. Immutable. Account ID of the CM360 Floodlight configuration linked with the DV360 advertiser.", "format": "int64", "type": "string" }, "cmFloodlightConfigId": { - "description": "Required. Immutable. ID of the CM Floodlight configuration linked with the DV360 advertiser.", + "description": "Required. Immutable. ID of the CM360 Floodlight configuration linked with the DV360 advertiser.", "format": "int64", "type": "string" }, @@ -7573,7 +7814,7 @@ "type": "boolean" }, "cmSyncableSiteIds": { - "description": "A list of CM sites whose placements will be synced to DV360 as creatives. If absent or empty in CreateAdvertiser method, the system will automatically create a CM site. Removing sites from this list may cause DV360 creatives synced from CM to be deleted. At least one site must be specified.", + "description": "A list of CM360 sites whose placements will be synced to DV360 as creatives. If absent or empty in CreateAdvertiser method, the system will automatically create a CM360 site. Removing sites from this list may cause DV360 creatives synced from CM360 to be deleted. At least one site must be specified.", "items": { "format": "int64", "type": "string" @@ -7581,32 +7822,32 @@ "type": "array" }, "dv360ToCmCostReportingEnabled": { - "description": "Whether or not to report DV360 cost to CM.", + "description": "Whether or not to report DV360 cost to CM360.", "type": "boolean" }, "dv360ToCmDataSharingEnabled": { - "description": "Whether or not to include DV360 data in CM data transfer reports.", + "description": "Whether or not to include DV360 data in CM360 data transfer reports.", "type": "boolean" } }, "type": "object" }, "CmTrackingAd": { - "description": "A Campaign Manager tracking ad.", + "description": "A Campaign Manager 360 tracking ad.", "id": "CmTrackingAd", "properties": { "cmAdId": { - "description": "The ad ID of the campaign manager tracking Ad.", + "description": "The ad ID of the campaign manager 360 tracking Ad.", "format": "int64", "type": "string" }, "cmCreativeId": { - "description": "The creative ID of the campaign manager tracking Ad.", + "description": "The creative ID of the campaign manager 360 tracking Ad.", "format": "int64", "type": "string" }, "cmPlacementId": { - "description": "The placement ID of the campaign manager tracking Ad.", + "description": "The placement ID of the campaign manager 360 tracking Ad.", "format": "int64", "type": "string" } @@ -8010,14 +8251,14 @@ "type": "array" }, "cmPlacementId": { - "description": "Output only. The unique ID of the Campaign Manager placement associated with the creative. This field is only applicable for creatives that are synced from Campaign Manager.", + "description": "Output only. The unique ID of the Campaign Manager 360 placement associated with the creative. This field is only applicable for creatives that are synced from Campaign Manager.", "format": "int64", "readOnly": true, "type": "string" }, "cmTrackingAd": { "$ref": "CmTrackingAd", - "description": "The Campaign Manager tracking ad associated with the creative. Optional for the following creative_type when created by an advertiser that uses both Campaign Manager and third-party ad serving: * `CREATIVE_TYPE_NATIVE` * `CREATIVE_TYPE_NATIVE_SITE_SQUARE` * `CREATIVE_TYPE_NATIVE_APP_INSTALL` * `CREATIVE_TYPE_NATIVE_APP_INSTALL_SQUARE` Output only for other cases." + "description": "The Campaign Manager 360 tracking ad associated with the creative. Optional for the following creative_type when created by an advertiser that uses both Campaign Manager 360 and third-party ad serving: * `CREATIVE_TYPE_NATIVE` * `CREATIVE_TYPE_NATIVE_SITE_SQUARE` * `CREATIVE_TYPE_NATIVE_APP_INSTALL` * `CREATIVE_TYPE_NATIVE_APP_INSTALL_SQUARE` Output only for other cases." }, "companionCreativeIds": { "description": "The IDs of companion creatives for a video creative. You can assign existing display creatives (with image or HTML5 assets) to serve surrounding the publisher's video player. Companions display around the video player while the video is playing and remain after the video has completed. Creatives contain additional dimensions can not be companion creatives. This field is only supported for following creative_type: * `CREATIVE_TYPE_AUDIO` * `CREATIVE_TYPE_VIDEO`", @@ -8193,10 +8434,10 @@ ], "enumDescriptions": [ "Hosting source is not specified or is unknown in this version.", - "A creative synced from Campaign Manager. Create and update methods are **not** supported for this hosting type.", + "A creative synced from Campaign Manager 360. Create and update methods are **not** supported for this hosting type.", "A creative hosted by a third-party ad server (3PAS). Create and update methods are supported for this hosting type if the creative_type is one of the following: * `CREATIVE_TYPE_EXPANDABLE` * `CREATIVE_TYPE_STANDARD` * `CREATIVE_TYPE_VIDEO`", - "A creative created in DV360 and hosted by Campaign Manager. Create and update methods are supported for this hosting type if the creative_type is one of the following: * `CREATIVE_TYPE_AUDIO` * `CREATIVE_TYPE_NATIVE` * `CREATIVE_TYPE_NATIVE_APP_INSTALL` * `CREATIVE_TYPE_NATIVE_APP_INSTALL_SQUARE` * `CREATIVE_TYPE_NATIVE_SITE_SQUARE` * `CREATIVE_TYPE_NATIVE_VIDEO` * `CREATIVE_TYPE_STANDARD` * `CREATIVE_TYPE_VIDEO`", - "A rich media creative created in Studio and hosted by Campaign Manager. Create and update methods are **not** supported for this hosting type." + "A creative created in DV360 and hosted by Campaign Manager 360. Create and update methods are supported for this hosting type if the creative_type is one of the following: * `CREATIVE_TYPE_AUDIO` * `CREATIVE_TYPE_NATIVE` * `CREATIVE_TYPE_NATIVE_APP_INSTALL` * `CREATIVE_TYPE_NATIVE_APP_INSTALL_SQUARE` * `CREATIVE_TYPE_NATIVE_SITE_SQUARE` * `CREATIVE_TYPE_NATIVE_VIDEO` * `CREATIVE_TYPE_STANDARD` * `CREATIVE_TYPE_VIDEO`", + "A rich media creative created in Studio and hosted by Campaign Manager 360. Create and update methods are **not** supported for this hosting type." ], "type": "string" }, @@ -8258,7 +8499,7 @@ "type": "boolean" }, "requirePingForAttribution": { - "description": "Optional. Indicates that the creative will wait for a return ping for attribution. Only valid when using a Campaign Manager tracking ad with a third-party ad server parameter and the ${DC_DBM_TOKEN} macro. Optional and only valid for third-party tag creatives or third-party VAST tag creatives. Third-party tag creatives are creatives with following hosting_source: * `HOSTING_SOURCE_THIRD_PARTY` combined with following creative_type: * `CREATIVE_TYPE_STANDARD` * `CREATIVE_TYPE_EXPANDABLE` Third-party VAST tag creatives are creatives with following hosting_source: * `HOSTING_SOURCE_THIRD_PARTY` combined with following creative_type: * `CREATIVE_TYPE_VIDEO`", + "description": "Optional. Indicates that the creative will wait for a return ping for attribution. Only valid when using a Campaign Manager 360 tracking ad with a third-party ad server parameter and the ${DC_DBM_TOKEN} macro. Optional and only valid for third-party tag creatives or third-party VAST tag creatives. Third-party tag creatives are creatives with following hosting_source: * `HOSTING_SOURCE_THIRD_PARTY` combined with following creative_type: * `CREATIVE_TYPE_STANDARD` * `CREATIVE_TYPE_EXPANDABLE` Third-party VAST tag creatives are creatives with following hosting_source: * `HOSTING_SOURCE_THIRD_PARTY` combined with following creative_type: * `CREATIVE_TYPE_VIDEO`", "type": "boolean" }, "reviewStatus": { @@ -8589,6 +8830,12 @@ }, "type": "object" }, + "DeactivateManualTriggerRequest": { + "description": "Request message for ManualTriggerService.DeactivateManualTrigger.", + "id": "DeactivateManualTriggerRequest", + "properties": {}, + "type": "object" + }, "DeleteAssignedTargetingOptionsRequest": { "description": "A request listing which assigned targeting options of a given targeting type should be deleted.", "id": "DeleteAssignedTargetingOptionsRequest", @@ -8889,6 +9136,11 @@ "$ref": "DoubleVerifyBrandSafetyCategories", "description": "DV Brand Safety Controls." }, + "customSegmentId": { + "description": "The custom segment ID provided by DoubleVerify. The ID must start with \"51\" and consist of eight digits. Custom segment ID cannot be specified along with any of the following fields: * brand_safety_categories * avoided_age_ratings * app_star_rating * fraud_invalid_traffic", + "format": "int64", + "type": "string" + }, "displayViewability": { "$ref": "DoubleVerifyDisplayViewability", "description": "Display viewability settings (applicable to display line items only)." @@ -9341,6 +9593,7 @@ "EXCHANGE_INMOBI", "EXCHANGE_SMAATO", "EXCHANGE_AJA", + "EXCHANGE_SUPERSHIP", "EXCHANGE_NEXSTAR_DIGITAL", "EXCHANGE_WAZE" ], @@ -9403,6 +9656,7 @@ "InMobi.", "Smaato", "Aja.", + "Supership.", "Nexstar Digital.", "Waze." ], @@ -9491,6 +9745,7 @@ "EXCHANGE_INMOBI", "EXCHANGE_SMAATO", "EXCHANGE_AJA", + "EXCHANGE_SUPERSHIP", "EXCHANGE_NEXSTAR_DIGITAL", "EXCHANGE_WAZE" ], @@ -9553,6 +9808,7 @@ "InMobi.", "Smaato", "Aja.", + "Supership.", "Nexstar Digital.", "Waze." ], @@ -9642,6 +9898,7 @@ "EXCHANGE_INMOBI", "EXCHANGE_SMAATO", "EXCHANGE_AJA", + "EXCHANGE_SUPERSHIP", "EXCHANGE_NEXSTAR_DIGITAL", "EXCHANGE_WAZE" ], @@ -9704,6 +9961,7 @@ "InMobi.", "Smaato", "Aja.", + "Supership.", "Nexstar Digital.", "Waze." ], @@ -9770,7 +10028,7 @@ "enumDescriptions": [ "Default value when audience source is not specified or is unknown.", "Originated from Display \u0026 Video 360.", - "Originated from Campaign Manager.", + "Originated from Campaign Manager 360.", "Originated from Google Ad Manager.", "Originated from Search Ads 360.", "Originated from Youtube.", @@ -10517,7 +10775,7 @@ }, "bidStrategy": { "$ref": "BiddingStrategy", - "description": "Optional. The bidding strategy of the insertion order. By default, fixed_bid is set." + "description": "The bidding strategy of the insertion order. By default, fixed_bid is set." }, "budget": { "$ref": "InsertionOrderBudget", @@ -10668,6 +10926,14 @@ "description": "Details of Integral Ad Science settings.", "id": "IntegralAdScience", "properties": { + "customSegmentId": { + "description": "The custom segment ID provided by Integral Ad Science. The ID must be between `1000001` and `1999999`, inclusive.", + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + }, "displayViewability": { "description": "Display Viewability section (applicable to display line items only).", "enum": [ @@ -10984,6 +11250,7 @@ "EXCHANGE_INMOBI", "EXCHANGE_SMAATO", "EXCHANGE_AJA", + "EXCHANGE_SUPERSHIP", "EXCHANGE_NEXSTAR_DIGITAL", "EXCHANGE_WAZE" ], @@ -11046,6 +11313,7 @@ "InMobi.", "Smaato", "Aja.", + "Supership.", "Nexstar Digital.", "Waze." ], @@ -11305,7 +11573,7 @@ "type": "object" }, "LineItem": { - "description": "A single line item.", + "description": "A single line item. Next id: 24", "id": "LineItem", "properties": { "advertiserId": { @@ -11439,6 +11707,10 @@ "$ref": "PartnerRevenueModel", "description": "Required. The partner revenue model setting of the line item." }, + "targetingExpansion": { + "$ref": "TargetingExpansionConfig", + "description": "The [targeting expansion](https://support.google.com/displayvideo/answer/10191558) settings of the line item. This config is only applicable when eligible audience list targeting is assigned to the line item." + }, "updateTime": { "description": "Output only. The timestamp when the line item was last updated. Assigned by the system.", "format": "google-datetime", @@ -11550,14 +11822,21 @@ "enum": [ "LINE_ITEM_FLIGHT_DATE_TYPE_UNSPECIFIED", "LINE_ITEM_FLIGHT_DATE_TYPE_INHERITED", - "LINE_ITEM_FLIGHT_DATE_TYPE_CUSTOM" + "LINE_ITEM_FLIGHT_DATE_TYPE_CUSTOM", + "LINE_ITEM_FLIGHT_DATE_TYPE_TRIGGER" ], "enumDescriptions": [ "Type value is not specified or is unknown in this version.", "The line item's flight dates are inherited from its parent insertion order.", - "The line item uses its own custom flight dates." + "The line item uses its own custom flight dates.", + "The line item uses a trigger." ], "type": "string" + }, + "triggerId": { + "description": "The ID of the manual trigger associated with the line item. * Required when flight_date_type is `LINE_ITEM_FLIGHT_DATE_TYPE_TRIGGER`. Must not be set otherwise. * When set, the line item's flight dates are inherited from its parent insertion order. * Active line items will spend when the selected trigger is activated within the parent insertion order's flight dates.", + "format": "int64", + "type": "string" } }, "type": "object" @@ -11873,6 +12152,23 @@ }, "type": "object" }, + "ListManualTriggersResponse": { + "id": "ListManualTriggersResponse", + "properties": { + "manualTriggers": { + "description": "The list of manual triggers. This list will be absent if empty.", + "items": { + "$ref": "ManualTrigger" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token to retrieve the next page of results. Pass this value in the page_token field in the subsequent call to `ListManualTriggers` method to retrieve the next page of results.", + "type": "string" + } + }, + "type": "object" + }, "ListNegativeKeywordListsResponse": { "description": "Response message for NegativeKeywordListService.ListNegativeKeywordLists.", "id": "ListNegativeKeywordListsResponse", @@ -12054,6 +12350,59 @@ }, "type": "object" }, + "ManualTrigger": { + "description": "A single manual trigger in Display \u0026 Video 360.", + "id": "ManualTrigger", + "properties": { + "activationDurationMinutes": { + "description": "Required. The maximum duration of each activation in minutes. Must be between 1 and 360 inclusive. After this duration, the trigger will be automatically deactivated.", + "format": "int64", + "type": "string" + }, + "advertiserId": { + "description": "Required. Immutable. The unique ID of the advertiser that the manual trigger belongs to.", + "format": "int64", + "type": "string" + }, + "displayName": { + "description": "Required. The display name of the manual trigger. Must be UTF-8 encoded with a maximum size of 240 bytes.", + "type": "string" + }, + "latestActivationTime": { + "description": "Output only. The timestamp of the trigger's latest activation.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Output only. The resource name of the manual trigger.", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. The state of the manual trigger. Will be set to the `INACTIVE` state upon creation.", + "enum": [ + "STATE_UNSPECIFIED", + "INACTIVE", + "ACTIVE" + ], + "enumDescriptions": [ + "Default value when state is not specified or is unknown in this version.", + "The trigger is currently inactive and ready to be activated.", + "The trigger is currently active (activated)." + ], + "readOnly": true, + "type": "string" + }, + "triggerId": { + "description": "Output only. The unique ID of the manual trigger.", + "format": "int64", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "MaximizeSpendBidStrategy": { "description": "A strategy that automatically adjusts the bid to optimize a specified performance goal while spending the full budget.", "id": "MaximizeSpendBidStrategy", @@ -12100,11 +12449,11 @@ "id": "MeasurementConfig", "properties": { "dv360ToCmCostReportingEnabled": { - "description": "Whether or not to report DV360 cost to CM.", + "description": "Whether or not to report DV360 cost to CM360.", "type": "boolean" }, "dv360ToCmDataSharingEnabled": { - "description": "Whether or not to include DV360 data in CM data transfer reports.", + "description": "Whether or not to include DV360 data in CM360 data transfer reports.", "type": "boolean" } }, @@ -13298,6 +13647,39 @@ }, "type": "object" }, + "TargetingExpansionConfig": { + "description": "Settings that control the targeting expansion of the line item. Targeting expansion allows the line item to reach a larger audience based on the original audience list and the targeting expansion level.", + "id": "TargetingExpansionConfig", + "properties": { + "excludeFirstPartyAudience": { + "description": "Required. Whether to exclude first party audiences from targeting. Similar audiences of the excluded first party lists will not be excluded. Only applicable when a first-party audience is positively targeted (directly or included in a combined audience), otherwise this selection will be ignored.", + "type": "boolean" + }, + "targetingExpansionLevel": { + "description": "Required. Magnitude of expansion for applicable targeting under this line item.", + "enum": [ + "TARGETING_EXPANSION_LEVEL_UNSPECIFIED", + "NO_EXPANSION", + "LEAST_EXPANSION", + "SOME_EXPANSION", + "BALANCED_EXPANSION", + "MORE_EXPANSION", + "MOST_EXPANSION" + ], + "enumDescriptions": [ + "Targeting expansion level is not specified or is unknown in this version.", + "Targeting expansion off.", + "Conservative targeting expansion, lowest reach.", + "Moderately conservative targeting expansion, lower reach.", + "Moderate targeting expansion, medium reach.", + "Moderately aggressive targeting expansion, higher reach.", + "Aggressive targeting expansion, highest reach." + ], + "type": "string" + } + }, + "type": "object" + }, "TargetingOption": { "description": "Represents a single targeting option, which is a targetable concept in DV360.", "id": "TargetingOption", @@ -13707,7 +14089,7 @@ "Use Ad-ID to provide the Universal Ad ID.", "Use clearcast.co.uk to provide the Universal Ad ID.", "Use Display \u0026 Video 360 to provide the Universal Ad ID.", - "Use Campaign Manager to provide the Universal Ad ID." + "Use Campaign Manager 360 to provide the Universal Ad ID." ], "type": "string" } diff --git a/displayvideo/v1/displayvideo-gen.go b/displayvideo/v1/displayvideo-gen.go index 45e97f69f09..3796c773130 100644 --- a/displayvideo/v1/displayvideo-gen.go +++ b/displayvideo/v1/displayvideo-gen.go @@ -202,6 +202,7 @@ func NewAdvertisersService(s *Service) *AdvertisersService { rs.InsertionOrders = NewAdvertisersInsertionOrdersService(s) rs.LineItems = NewAdvertisersLineItemsService(s) rs.LocationLists = NewAdvertisersLocationListsService(s) + rs.ManualTriggers = NewAdvertisersManualTriggersService(s) rs.NegativeKeywordLists = NewAdvertisersNegativeKeywordListsService(s) rs.TargetingTypes = NewAdvertisersTargetingTypesService(s) return rs @@ -224,6 +225,8 @@ type AdvertisersService struct { LocationLists *AdvertisersLocationListsService + ManualTriggers *AdvertisersManualTriggersService + NegativeKeywordLists *AdvertisersNegativeKeywordListsService TargetingTypes *AdvertisersTargetingTypesService @@ -340,6 +343,15 @@ type AdvertisersLocationListsAssignedLocationsService struct { s *Service } +func NewAdvertisersManualTriggersService(s *Service) *AdvertisersManualTriggersService { + rs := &AdvertisersManualTriggersService{s: s} + return rs +} + +type AdvertisersManualTriggersService struct { + s *Service +} + func NewAdvertisersNegativeKeywordListsService(s *Service) *AdvertisersNegativeKeywordListsService { rs := &AdvertisersNegativeKeywordListsService{s: s} rs.NegativeKeywords = NewAdvertisersNegativeKeywordListsNegativeKeywordsService(s) @@ -583,6 +595,11 @@ type UsersService struct { s *Service } +// ActivateManualTriggerRequest: Request message for +// ManualTriggerService.ActivateManualTrigger. +type ActivateManualTriggerRequest struct { +} + // ActiveViewVideoViewabilityMetricConfig: Configuration for custom // Active View video viewability metrics. type ActiveViewVideoViewabilityMetricConfig struct { @@ -826,7 +843,7 @@ func (s *Advertiser) MarshalJSON() ([]byte, error) { // advertiser. type AdvertiserAdServerConfig struct { // CmHybridConfig: The configuration for advertisers that use both - // Campaign Manager (CM) and third-party ad servers. + // Campaign Manager 360 (CM360) and third-party ad servers. CmHybridConfig *CmHybridConfig `json:"cmHybridConfig,omitempty"` // ThirdPartyOnlyConfig: The configuration for advertisers that use @@ -880,7 +897,7 @@ type AdvertiserCreativeConfig struct { // you, on behalf of your company, authorize Google to use video // creatives associated with this Display & Video 360 advertiser to // provide reporting and features related to the advertiser's television - // campaigns. Applicable only when the advertiser has a CM hybrid ad + // campaigns. Applicable only when the advertiser has a CM360 hybrid ad // server configuration. VideoCreativeDataSharingAuthorized bool `json:"videoCreativeDataSharingAuthorized,omitempty"` @@ -967,9 +984,9 @@ type AdvertiserGeneralConfig struct { // TimeZone: Output only. The standard TZ database name of the // advertiser's time zone. For example, `America/New_York`. See more at: - // https://en.wikipedia.org/wiki/List_of_tz_database_time_zones For CM - // hybrid advertisers, the time zone is the same as that of the - // associated CM account; for third-party only advertisers, the time + // https://en.wikipedia.org/wiki/List_of_tz_database_time_zones For + // CM360 hybrid advertisers, the time zone is the same as that of the + // associated CM360 account; for third-party only advertisers, the time // zone is the same as that of the parent partner. TimeZone string `json:"timeZone,omitempty"` @@ -3414,13 +3431,13 @@ func (s *ChannelAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { } // CmHybridConfig: Settings for advertisers that use both Campaign -// Manager (CM) and third-party ad servers. +// Manager 360 (CM360) and third-party ad servers. type CmHybridConfig struct { - // CmAccountId: Required. Immutable. Account ID of the CM Floodlight + // CmAccountId: Required. Immutable. Account ID of the CM360 Floodlight // configuration linked with the DV360 advertiser. CmAccountId int64 `json:"cmAccountId,omitempty,string"` - // CmFloodlightConfigId: Required. Immutable. ID of the CM Floodlight + // CmFloodlightConfigId: Required. Immutable. ID of the CM360 Floodlight // configuration linked with the DV360 advertiser. CmFloodlightConfigId int64 `json:"cmFloodlightConfigId,omitempty,string"` @@ -3430,19 +3447,19 @@ type CmHybridConfig struct { // this Display & Video 360 advertiser. CmFloodlightLinkingAuthorized bool `json:"cmFloodlightLinkingAuthorized,omitempty"` - // CmSyncableSiteIds: A list of CM sites whose placements will be synced - // to DV360 as creatives. If absent or empty in CreateAdvertiser method, - // the system will automatically create a CM site. Removing sites from - // this list may cause DV360 creatives synced from CM to be deleted. At - // least one site must be specified. + // CmSyncableSiteIds: A list of CM360 sites whose placements will be + // synced to DV360 as creatives. If absent or empty in CreateAdvertiser + // method, the system will automatically create a CM360 site. Removing + // sites from this list may cause DV360 creatives synced from CM360 to + // be deleted. At least one site must be specified. CmSyncableSiteIds googleapi.Int64s `json:"cmSyncableSiteIds,omitempty"` // Dv360ToCmCostReportingEnabled: Whether or not to report DV360 cost to - // CM. + // CM360. Dv360ToCmCostReportingEnabled bool `json:"dv360ToCmCostReportingEnabled,omitempty"` // Dv360ToCmDataSharingEnabled: Whether or not to include DV360 data in - // CM data transfer reports. + // CM360 data transfer reports. Dv360ToCmDataSharingEnabled bool `json:"dv360ToCmDataSharingEnabled,omitempty"` // ForceSendFields is a list of field names (e.g. "CmAccountId") to @@ -3468,15 +3485,17 @@ func (s *CmHybridConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CmTrackingAd: A Campaign Manager tracking ad. +// CmTrackingAd: A Campaign Manager 360 tracking ad. type CmTrackingAd struct { - // CmAdId: The ad ID of the campaign manager tracking Ad. + // CmAdId: The ad ID of the campaign manager 360 tracking Ad. CmAdId int64 `json:"cmAdId,omitempty,string"` - // CmCreativeId: The creative ID of the campaign manager tracking Ad. + // CmCreativeId: The creative ID of the campaign manager 360 tracking + // Ad. CmCreativeId int64 `json:"cmCreativeId,omitempty,string"` - // CmPlacementId: The placement ID of the campaign manager tracking Ad. + // CmPlacementId: The placement ID of the campaign manager 360 tracking + // Ad. CmPlacementId int64 `json:"cmPlacementId,omitempty,string"` // ForceSendFields is a list of field names (e.g. "CmAdId") to @@ -4154,15 +4173,15 @@ type Creative struct { // `ASSET_ROLE_POLITE_LOAD` Assets []*AssetAssociation `json:"assets,omitempty"` - // CmPlacementId: Output only. The unique ID of the Campaign Manager + // CmPlacementId: Output only. The unique ID of the Campaign Manager 360 // placement associated with the creative. This field is only applicable // for creatives that are synced from Campaign Manager. CmPlacementId int64 `json:"cmPlacementId,omitempty,string"` - // CmTrackingAd: The Campaign Manager tracking ad associated with the - // creative. Optional for the following creative_type when created by an - // advertiser that uses both Campaign Manager and third-party ad - // serving: * `CREATIVE_TYPE_NATIVE` * + // CmTrackingAd: The Campaign Manager 360 tracking ad associated with + // the creative. Optional for the following creative_type when created + // by an advertiser that uses both Campaign Manager 360 and third-party + // ad serving: * `CREATIVE_TYPE_NATIVE` * // `CREATIVE_TYPE_NATIVE_SITE_SQUARE` * // `CREATIVE_TYPE_NATIVE_APP_INSTALL` * // `CREATIVE_TYPE_NATIVE_APP_INSTALL_SQUARE` Output only for other @@ -4345,7 +4364,7 @@ type Creative struct { // Possible values: // "HOSTING_SOURCE_UNSPECIFIED" - Hosting source is not specified or // is unknown in this version. - // "HOSTING_SOURCE_CM" - A creative synced from Campaign Manager. + // "HOSTING_SOURCE_CM" - A creative synced from Campaign Manager 360. // Create and update methods are **not** supported for this hosting // type. // "HOSTING_SOURCE_THIRD_PARTY" - A creative hosted by a third-party @@ -4354,16 +4373,16 @@ type Creative struct { // `CREATIVE_TYPE_EXPANDABLE` * `CREATIVE_TYPE_STANDARD` * // `CREATIVE_TYPE_VIDEO` // "HOSTING_SOURCE_HOSTED" - A creative created in DV360 and hosted by - // Campaign Manager. Create and update methods are supported for this - // hosting type if the creative_type is one of the following: * + // Campaign Manager 360. Create and update methods are supported for + // this hosting type if the creative_type is one of the following: * // `CREATIVE_TYPE_AUDIO` * `CREATIVE_TYPE_NATIVE` * // `CREATIVE_TYPE_NATIVE_APP_INSTALL` * // `CREATIVE_TYPE_NATIVE_APP_INSTALL_SQUARE` * // `CREATIVE_TYPE_NATIVE_SITE_SQUARE` * `CREATIVE_TYPE_NATIVE_VIDEO` * // `CREATIVE_TYPE_STANDARD` * `CREATIVE_TYPE_VIDEO` // "HOSTING_SOURCE_RICH_MEDIA" - A rich media creative created in - // Studio and hosted by Campaign Manager. Create and update methods are - // **not** supported for this hosting type. + // Studio and hosted by Campaign Manager 360. Create and update methods + // are **not** supported for this hosting type. HostingSource string `json:"hostingSource,omitempty"` // Html5Video: Output only. Indicates the third-party VAST tag creative @@ -4443,8 +4462,8 @@ type Creative struct { // RequirePingForAttribution: Optional. Indicates that the creative will // wait for a return ping for attribution. Only valid when using a - // Campaign Manager tracking ad with a third-party ad server parameter - // and the ${DC_DBM_TOKEN} macro. Optional and only valid for + // Campaign Manager 360 tracking ad with a third-party ad server + // parameter and the ${DC_DBM_TOKEN} macro. Optional and only valid for // third-party tag creatives or third-party VAST tag creatives. // Third-party tag creatives are creatives with following // hosting_source: * `HOSTING_SOURCE_THIRD_PARTY` combined with @@ -4977,6 +4996,11 @@ func (s *DayAndTimeAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DeactivateManualTriggerRequest: Request message for +// ManualTriggerService.DeactivateManualTrigger. +type DeactivateManualTriggerRequest struct { +} + // DeleteAssignedTargetingOptionsRequest: A request listing which // assigned targeting options of a given targeting type should be // deleted. @@ -5399,6 +5423,13 @@ type DoubleVerify struct { // BrandSafetyCategories: DV Brand Safety Controls. BrandSafetyCategories *DoubleVerifyBrandSafetyCategories `json:"brandSafetyCategories,omitempty"` + // CustomSegmentId: The custom segment ID provided by DoubleVerify. The + // ID must start with "51" and consist of eight digits. Custom segment + // ID cannot be specified along with any of the following fields: * + // brand_safety_categories * avoided_age_ratings * app_star_rating * + // fraud_invalid_traffic + CustomSegmentId int64 `json:"customSegmentId,omitempty,string"` + // DisplayViewability: Display viewability settings (applicable to // display line items only). DisplayViewability *DoubleVerifyDisplayViewability `json:"displayViewability,omitempty"` @@ -6000,6 +6031,7 @@ type ExchangeConfigEnabledExchange struct { // "EXCHANGE_INMOBI" - InMobi. // "EXCHANGE_SMAATO" - Smaato // "EXCHANGE_AJA" - Aja. + // "EXCHANGE_SUPERSHIP" - Supership. // "EXCHANGE_NEXSTAR_DIGITAL" - Nexstar Digital. // "EXCHANGE_WAZE" - Waze. Exchange string `json:"exchange,omitempty"` @@ -6105,6 +6137,7 @@ type ExchangeReviewStatus struct { // "EXCHANGE_INMOBI" - InMobi. // "EXCHANGE_SMAATO" - Smaato // "EXCHANGE_AJA" - Aja. + // "EXCHANGE_SUPERSHIP" - Supership. // "EXCHANGE_NEXSTAR_DIGITAL" - Nexstar Digital. // "EXCHANGE_WAZE" - Waze. Exchange string `json:"exchange,omitempty"` @@ -6209,6 +6242,7 @@ type ExchangeTargetingOptionDetails struct { // "EXCHANGE_INMOBI" - InMobi. // "EXCHANGE_SMAATO" - Smaato // "EXCHANGE_AJA" - Aja. + // "EXCHANGE_SUPERSHIP" - Supership. // "EXCHANGE_NEXSTAR_DIGITAL" - Nexstar Digital. // "EXCHANGE_WAZE" - Waze. Exchange string `json:"exchange,omitempty"` @@ -6303,7 +6337,7 @@ type FirstAndThirdPartyAudience struct { // "AUDIENCE_SOURCE_UNSPECIFIED" - Default value when audience source // is not specified or is unknown. // "DISPLAY_VIDEO_360" - Originated from Display & Video 360. - // "CAMPAIGN_MANAGER" - Originated from Campaign Manager. + // "CAMPAIGN_MANAGER" - Originated from Campaign Manager 360. // "AD_MANAGER" - Originated from Google Ad Manager. // "SEARCH_ADS_360" - Originated from Search Ads 360. // "YOUTUBE" - Originated from Youtube. @@ -7277,8 +7311,8 @@ type InsertionOrder struct { // insertion order belongs to. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // BidStrategy: Optional. The bidding strategy of the insertion order. - // By default, fixed_bid is set. + // BidStrategy: The bidding strategy of the insertion order. By default, + // fixed_bid is set. BidStrategy *BiddingStrategy `json:"bidStrategy,omitempty"` // Budget: Required. The budget allocation settings of the insertion @@ -7491,6 +7525,10 @@ func (s *InsertionOrderBudgetSegment) MarshalJSON() ([]byte, error) { // IntegralAdScience: Details of Integral Ad Science settings. type IntegralAdScience struct { + // CustomSegmentId: The custom segment ID provided by Integral Ad + // Science. The ID must be between `1000001` and `1999999`, inclusive. + CustomSegmentId googleapi.Int64s `json:"customSegmentId,omitempty"` + // DisplayViewability: Display Viewability section (applicable to // display line items only). // @@ -7621,15 +7659,15 @@ type IntegralAdScience struct { // standard). VideoViewability string `json:"videoViewability,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayViewability") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "CustomSegmentId") to + // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DisplayViewability") to + // NullFields is a list of field names (e.g. "CustomSegmentId") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -7786,6 +7824,7 @@ type InventorySource struct { // "EXCHANGE_INMOBI" - InMobi. // "EXCHANGE_SMAATO" - Smaato // "EXCHANGE_AJA" - Aja. + // "EXCHANGE_SUPERSHIP" - Supership. // "EXCHANGE_NEXSTAR_DIGITAL" - Nexstar Digital. // "EXCHANGE_WAZE" - Waze. Exchange string `json:"exchange,omitempty"` @@ -8256,7 +8295,7 @@ func (s *LanguageTargetingOptionDetails) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// LineItem: A single line item. +// LineItem: A single line item. Next id: 24 type LineItem struct { // AdvertiserId: Output only. The unique ID of the advertiser the line // item belongs to. @@ -8365,6 +8404,12 @@ type LineItem struct { // the line item. PartnerRevenueModel *PartnerRevenueModel `json:"partnerRevenueModel,omitempty"` + // TargetingExpansion: The [targeting + // expansion](https://support.google.com/displayvideo/answer/10191558) + // settings of the line item. This config is only applicable when + // eligible audience list targeting is assigned to the line item. + TargetingExpansion *TargetingExpansionConfig `json:"targetingExpansion,omitempty"` + // UpdateTime: Output only. The timestamp when the line item was last // updated. Assigned by the system. UpdateTime string `json:"updateTime,omitempty"` @@ -8532,8 +8577,19 @@ type LineItemFlight struct { // dates are inherited from its parent insertion order. // "LINE_ITEM_FLIGHT_DATE_TYPE_CUSTOM" - The line item uses its own // custom flight dates. + // "LINE_ITEM_FLIGHT_DATE_TYPE_TRIGGER" - The line item uses a + // trigger. FlightDateType string `json:"flightDateType,omitempty"` + // TriggerId: The ID of the manual trigger associated with the line + // item. * Required when flight_date_type is + // `LINE_ITEM_FLIGHT_DATE_TYPE_TRIGGER`. Must not be set otherwise. * + // When set, the line item's flight dates are inherited from its parent + // insertion order. * Active line items will spend when the selected + // trigger is activated within the parent insertion order's flight + // dates. + TriggerId int64 `json:"triggerId,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "DateRange") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, @@ -9256,6 +9312,44 @@ func (s *ListLocationListsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type ListManualTriggersResponse struct { + // ManualTriggers: The list of manual triggers. This list will be absent + // if empty. + ManualTriggers []*ManualTrigger `json:"manualTriggers,omitempty"` + + // NextPageToken: A token to retrieve the next page of results. Pass + // this value in the page_token field in the subsequent call to + // `ListManualTriggers` method to retrieve the next page of results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ManualTriggers") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ManualTriggers") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ListManualTriggersResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListManualTriggersResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListNegativeKeywordListsResponse: Response message for // NegativeKeywordListService.ListNegativeKeywordLists. type ListNegativeKeywordListsResponse struct { @@ -9618,6 +9712,71 @@ func (s *LookbackWindow) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ManualTrigger: A single manual trigger in Display & Video 360. +type ManualTrigger struct { + // ActivationDurationMinutes: Required. The maximum duration of each + // activation in minutes. Must be between 1 and 360 inclusive. After + // this duration, the trigger will be automatically deactivated. + ActivationDurationMinutes int64 `json:"activationDurationMinutes,omitempty,string"` + + // AdvertiserId: Required. Immutable. The unique ID of the advertiser + // that the manual trigger belongs to. + AdvertiserId int64 `json:"advertiserId,omitempty,string"` + + // DisplayName: Required. The display name of the manual trigger. Must + // be UTF-8 encoded with a maximum size of 240 bytes. + DisplayName string `json:"displayName,omitempty"` + + // LatestActivationTime: Output only. The timestamp of the trigger's + // latest activation. + LatestActivationTime string `json:"latestActivationTime,omitempty"` + + // Name: Output only. The resource name of the manual trigger. + Name string `json:"name,omitempty"` + + // State: Output only. The state of the manual trigger. Will be set to + // the `INACTIVE` state upon creation. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default value when state is not specified or + // is unknown in this version. + // "INACTIVE" - The trigger is currently inactive and ready to be + // activated. + // "ACTIVE" - The trigger is currently active (activated). + State string `json:"state,omitempty"` + + // TriggerId: Output only. The unique ID of the manual trigger. + TriggerId int64 `json:"triggerId,omitempty,string"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "ActivationDurationMinutes") to unconditionally include in API + // requests. By default, fields with empty values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "ActivationDurationMinutes") to include in API requests with the JSON + // null value. By default, fields with empty values are omitted from API + // requests. However, any field with an empty value appearing in + // NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ManualTrigger) MarshalJSON() ([]byte, error) { + type NoMethod ManualTrigger + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // MaximizeSpendBidStrategy: A strategy that automatically adjusts the // bid to optimize a specified performance goal while spending the full // budget. @@ -9683,11 +9842,11 @@ func (s *MaximizeSpendBidStrategy) MarshalJSON() ([]byte, error) { // MeasurementConfig: Measurement settings of a partner. type MeasurementConfig struct { // Dv360ToCmCostReportingEnabled: Whether or not to report DV360 cost to - // CM. + // CM360. Dv360ToCmCostReportingEnabled bool `json:"dv360ToCmCostReportingEnabled,omitempty"` // Dv360ToCmDataSharingEnabled: Whether or not to include DV360 data in - // CM data transfer reports. + // CM360 data transfer reports. Dv360ToCmDataSharingEnabled bool `json:"dv360ToCmDataSharingEnabled,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -11617,6 +11776,59 @@ func (s *SubExchangeTargetingOptionDetails) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TargetingExpansionConfig: Settings that control the targeting +// expansion of the line item. Targeting expansion allows the line item +// to reach a larger audience based on the original audience list and +// the targeting expansion level. +type TargetingExpansionConfig struct { + // ExcludeFirstPartyAudience: Required. Whether to exclude first party + // audiences from targeting. Similar audiences of the excluded first + // party lists will not be excluded. Only applicable when a first-party + // audience is positively targeted (directly or included in a combined + // audience), otherwise this selection will be ignored. + ExcludeFirstPartyAudience bool `json:"excludeFirstPartyAudience,omitempty"` + + // TargetingExpansionLevel: Required. Magnitude of expansion for + // applicable targeting under this line item. + // + // Possible values: + // "TARGETING_EXPANSION_LEVEL_UNSPECIFIED" - Targeting expansion level + // is not specified or is unknown in this version. + // "NO_EXPANSION" - Targeting expansion off. + // "LEAST_EXPANSION" - Conservative targeting expansion, lowest reach. + // "SOME_EXPANSION" - Moderately conservative targeting expansion, + // lower reach. + // "BALANCED_EXPANSION" - Moderate targeting expansion, medium reach. + // "MORE_EXPANSION" - Moderately aggressive targeting expansion, + // higher reach. + // "MOST_EXPANSION" - Aggressive targeting expansion, highest reach. + TargetingExpansionLevel string `json:"targetingExpansionLevel,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ExcludeFirstPartyAudience") to unconditionally include in API + // requests. By default, fields with empty values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "ExcludeFirstPartyAudience") to include in API requests with the JSON + // null value. By default, fields with empty values are omitted from API + // requests. However, any field with an empty value appearing in + // NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TargetingExpansionConfig) MarshalJSON() ([]byte, error) { + type NoMethod TargetingExpansionConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // TargetingOption: Represents a single targeting option, which is a // targetable concept in DV360. type TargetingOption struct { @@ -12153,8 +12365,8 @@ type UniversalAdId struct { // the Universal Ad ID. // "UNIVERSAL_AD_REGISTRY_DV360" - Use Display & Video 360 to provide // the Universal Ad ID. - // "UNIVERSAL_AD_REGISTRY_CM" - Use Campaign Manager to provide the - // Universal Ad ID. + // "UNIVERSAL_AD_REGISTRY_CM" - Use Campaign Manager 360 to provide + // the Universal Ad ID. Registry string `json:"registry,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to @@ -12637,7 +12849,7 @@ func (c *AdvertisersAuditCall) Header() http.Header { func (c *AdvertisersAuditCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12784,7 +12996,7 @@ func (c *AdvertisersBulkEditAdvertiserAssignedTargetingOptionsCall) Header() htt func (c *AdvertisersBulkEditAdvertiserAssignedTargetingOptionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12980,7 +13192,7 @@ func (c *AdvertisersBulkListAdvertiserAssignedTargetingOptionsCall) Header() htt func (c *AdvertisersBulkListAdvertiserAssignedTargetingOptionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13160,7 +13372,7 @@ func (c *AdvertisersCreateCall) Header() http.Header { func (c *AdvertisersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13287,7 +13499,7 @@ func (c *AdvertisersDeleteCall) Header() http.Header { func (c *AdvertisersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13429,7 +13641,7 @@ func (c *AdvertisersGetCall) Header() http.Header { func (c *AdvertisersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13624,7 +13836,7 @@ func (c *AdvertisersListCall) Header() http.Header { func (c *AdvertisersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13803,7 +14015,7 @@ func (c *AdvertisersPatchCall) Header() http.Header { func (c *AdvertisersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13992,7 +14204,7 @@ func (c *AdvertisersAssetsUploadCall) Header() http.Header { func (c *AdvertisersAssetsUploadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14174,7 +14386,7 @@ func (c *AdvertisersCampaignsCreateCall) Header() http.Header { func (c *AdvertisersCampaignsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14318,7 +14530,7 @@ func (c *AdvertisersCampaignsDeleteCall) Header() http.Header { func (c *AdvertisersCampaignsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14473,7 +14685,7 @@ func (c *AdvertisersCampaignsGetCall) Header() http.Header { func (c *AdvertisersCampaignsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14675,7 +14887,7 @@ func (c *AdvertisersCampaignsListCall) Header() http.Header { func (c *AdvertisersCampaignsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14864,7 +15076,7 @@ func (c *AdvertisersCampaignsPatchCall) Header() http.Header { func (c *AdvertisersCampaignsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15030,7 +15242,7 @@ func (c *AdvertisersChannelsCreateCall) Header() http.Header { func (c *AdvertisersChannelsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15195,7 +15407,7 @@ func (c *AdvertisersChannelsGetCall) Header() http.Header { func (c *AdvertisersChannelsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15405,7 +15617,7 @@ func (c *AdvertisersChannelsListCall) Header() http.Header { func (c *AdvertisersChannelsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15605,7 +15817,7 @@ func (c *AdvertisersChannelsPatchCall) Header() http.Header { func (c *AdvertisersChannelsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15771,7 +15983,7 @@ func (c *AdvertisersChannelsSitesBulkEditCall) Header() http.Header { func (c *AdvertisersChannelsSitesBulkEditCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15930,7 +16142,7 @@ func (c *AdvertisersChannelsSitesCreateCall) Header() http.Header { func (c *AdvertisersChannelsSitesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16095,7 +16307,7 @@ func (c *AdvertisersChannelsSitesDeleteCall) Header() http.Header { func (c *AdvertisersChannelsSitesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16310,7 +16522,7 @@ func (c *AdvertisersChannelsSitesListCall) Header() http.Header { func (c *AdvertisersChannelsSitesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16505,7 +16717,7 @@ func (c *AdvertisersCreativesCreateCall) Header() http.Header { func (c *AdvertisersCreativesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16649,7 +16861,7 @@ func (c *AdvertisersCreativesDeleteCall) Header() http.Header { func (c *AdvertisersCreativesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16803,7 +17015,7 @@ func (c *AdvertisersCreativesGetCall) Header() http.Header { func (c *AdvertisersCreativesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17032,7 +17244,7 @@ func (c *AdvertisersCreativesListCall) Header() http.Header { func (c *AdvertisersCreativesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17220,7 +17432,7 @@ func (c *AdvertisersCreativesPatchCall) Header() http.Header { func (c *AdvertisersCreativesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17378,7 +17590,7 @@ func (c *AdvertisersInsertionOrdersCreateCall) Header() http.Header { func (c *AdvertisersInsertionOrdersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17522,7 +17734,7 @@ func (c *AdvertisersInsertionOrdersDeleteCall) Header() http.Header { func (c *AdvertisersInsertionOrdersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17677,7 +17889,7 @@ func (c *AdvertisersInsertionOrdersGetCall) Header() http.Header { func (c *AdvertisersInsertionOrdersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17887,7 +18099,7 @@ func (c *AdvertisersInsertionOrdersListCall) Header() http.Header { func (c *AdvertisersInsertionOrdersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18075,7 +18287,7 @@ func (c *AdvertisersInsertionOrdersPatchCall) Header() http.Header { func (c *AdvertisersInsertionOrdersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18239,7 +18451,7 @@ func (c *AdvertisersLineItemsBulkEditLineItemAssignedTargetingOptionsCall) Heade func (c *AdvertisersLineItemsBulkEditLineItemAssignedTargetingOptionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18451,7 +18663,7 @@ func (c *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall) Heade func (c *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18642,7 +18854,7 @@ func (c *AdvertisersLineItemsCreateCall) Header() http.Header { func (c *AdvertisersLineItemsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18786,7 +18998,7 @@ func (c *AdvertisersLineItemsDeleteCall) Header() http.Header { func (c *AdvertisersLineItemsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18940,7 +19152,7 @@ func (c *AdvertisersLineItemsGetCall) Header() http.Header { func (c *AdvertisersLineItemsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19072,10 +19284,11 @@ func (r *AdvertisersLineItemsService) List(advertiserId int64) *AdvertisersLineI // Supported fields: - `campaignId` - `displayName` - `insertionOrderId` // - `entityStatus` - `lineItemId` - `lineItemType` - // `flight.dateRange.endDate` (input formatted as YYYY-MM-DD) - -// `warningMessages` Examples: * All line items under an insertion -// order: `insertionOrderId="1234" * All `ENTITY_STATUS_ACTIVE` or -// `ENTITY_STATUS_PAUSED` and `LINE_ITEM_TYPE_DISPLAY_DEFAULT` line -// items under an advertiser: `(entityStatus="ENTITY_STATUS_ACTIVE" OR +// `warningMessages` - `flight.triggerId` Examples: * All line items +// under an insertion order: `insertionOrderId="1234" * All +// `ENTITY_STATUS_ACTIVE` or `ENTITY_STATUS_PAUSED` and +// `LINE_ITEM_TYPE_DISPLAY_DEFAULT` line items under an advertiser: +// `(entityStatus="ENTITY_STATUS_ACTIVE" OR // entityStatus="ENTITY_STATUS_PAUSED") AND // lineItemType="LINE_ITEM_TYPE_DISPLAY_DEFAULT" * All line items whose // flight dates end before March 28, 2019: @@ -19155,7 +19368,7 @@ func (c *AdvertisersLineItemsListCall) Header() http.Header { func (c *AdvertisersLineItemsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19234,7 +19447,7 @@ func (c *AdvertisersLineItemsListCall) Do(opts ...googleapi.CallOption) (*ListLi // "type": "string" // }, // "filter": { - // "description": "Allows filtering by line item properties. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * The operator used on `flight.dateRange.endDate` must be LESS THAN (\u003c). * The operator used on `warningMessages` must be `HAS (:)`. * The operators used on all other fields must be `EQUALS (=)`. * Supported fields: - `campaignId` - `displayName` - `insertionOrderId` - `entityStatus` - `lineItemId` - `lineItemType` - `flight.dateRange.endDate` (input formatted as YYYY-MM-DD) - `warningMessages` Examples: * All line items under an insertion order: `insertionOrderId=\"1234\"` * All `ENTITY_STATUS_ACTIVE` or `ENTITY_STATUS_PAUSED` and `LINE_ITEM_TYPE_DISPLAY_DEFAULT` line items under an advertiser: `(entityStatus=\"ENTITY_STATUS_ACTIVE\" OR entityStatus=\"ENTITY_STATUS_PAUSED\") AND lineItemType=\"LINE_ITEM_TYPE_DISPLAY_DEFAULT\"` * All line items whose flight dates end before March 28, 2019: `flight.dateRange.endDate\u003c\"2019-03-28\"` * All line items that have `NO_VALID_CREATIVE` in `warningMessages`: `warningMessages:\"NO_VALID_CREATIVE\"` The length of this field should be no more than 500 characters.", + // "description": "Allows filtering by line item properties. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * The operator used on `flight.dateRange.endDate` must be LESS THAN (\u003c). * The operator used on `warningMessages` must be `HAS (:)`. * The operators used on all other fields must be `EQUALS (=)`. * Supported fields: - `campaignId` - `displayName` - `insertionOrderId` - `entityStatus` - `lineItemId` - `lineItemType` - `flight.dateRange.endDate` (input formatted as YYYY-MM-DD) - `warningMessages` - `flight.triggerId` Examples: * All line items under an insertion order: `insertionOrderId=\"1234\"` * All `ENTITY_STATUS_ACTIVE` or `ENTITY_STATUS_PAUSED` and `LINE_ITEM_TYPE_DISPLAY_DEFAULT` line items under an advertiser: `(entityStatus=\"ENTITY_STATUS_ACTIVE\" OR entityStatus=\"ENTITY_STATUS_PAUSED\") AND lineItemType=\"LINE_ITEM_TYPE_DISPLAY_DEFAULT\"` * All line items whose flight dates end before March 28, 2019: `flight.dateRange.endDate\u003c\"2019-03-28\"` * All line items that have `NO_VALID_CREATIVE` in `warningMessages`: `warningMessages:\"NO_VALID_CREATIVE\"` The length of this field should be no more than 500 characters.", // "location": "query", // "type": "string" // }, @@ -19343,7 +19556,7 @@ func (c *AdvertisersLineItemsPatchCall) Header() http.Header { func (c *AdvertisersLineItemsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19505,7 +19718,7 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsCreateCall) H func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19749,7 +19962,7 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsDeleteCall) H func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20005,7 +20218,7 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsGetCall) Head func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20308,7 +20521,7 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall) Hea func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20588,7 +20801,7 @@ func (c *AdvertisersLocationListsCreateCall) Header() http.Header { func (c *AdvertisersLocationListsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20740,7 +20953,7 @@ func (c *AdvertisersLocationListsGetCall) Header() http.Header { func (c *AdvertisersLocationListsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20937,7 +21150,7 @@ func (c *AdvertisersLocationListsListCall) Header() http.Header { func (c *AdvertisersLocationListsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21125,7 +21338,7 @@ func (c *AdvertisersLocationListsPatchCall) Header() http.Header { func (c *AdvertisersLocationListsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21288,7 +21501,7 @@ func (c *AdvertisersLocationListsAssignedLocationsBulkEditCall) Header() http.He func (c *AdvertisersLocationListsAssignedLocationsBulkEditCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21441,7 +21654,7 @@ func (c *AdvertisersLocationListsAssignedLocationsCreateCall) Header() http.Head func (c *AdvertisersLocationListsAssignedLocationsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21593,7 +21806,7 @@ func (c *AdvertisersLocationListsAssignedLocationsDeleteCall) Header() http.Head func (c *AdvertisersLocationListsAssignedLocationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21796,7 +22009,7 @@ func (c *AdvertisersLocationListsAssignedLocationsListCall) Header() http.Header func (c *AdvertisersLocationListsAssignedLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21936,6 +22149,1010 @@ func (c *AdvertisersLocationListsAssignedLocationsListCall) Pages(ctx context.Co } } +// method id "displayvideo.advertisers.manualTriggers.activate": + +type AdvertisersManualTriggersActivateCall struct { + s *Service + advertiserId int64 + triggerId int64 + activatemanualtriggerrequest *ActivateManualTriggerRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Activate: Activates a manual trigger. Each activation of the manual +// trigger must be at least 5 minutes apart, otherwise an error will be +// returned. +func (r *AdvertisersManualTriggersService) Activate(advertiserId int64, triggerId int64, activatemanualtriggerrequest *ActivateManualTriggerRequest) *AdvertisersManualTriggersActivateCall { + c := &AdvertisersManualTriggersActivateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.advertiserId = advertiserId + c.triggerId = triggerId + c.activatemanualtriggerrequest = activatemanualtriggerrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *AdvertisersManualTriggersActivateCall) Fields(s ...googleapi.Field) *AdvertisersManualTriggersActivateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *AdvertisersManualTriggersActivateCall) Context(ctx context.Context) *AdvertisersManualTriggersActivateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *AdvertisersManualTriggersActivateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AdvertisersManualTriggersActivateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.activatemanualtriggerrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/manualTriggers/{+triggerId}:activate") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "advertiserId": strconv.FormatInt(c.advertiserId, 10), + "triggerId": strconv.FormatInt(c.triggerId, 10), + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "displayvideo.advertisers.manualTriggers.activate" call. +// Exactly one of *ManualTrigger or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *ManualTrigger.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *AdvertisersManualTriggersActivateCall) Do(opts ...googleapi.CallOption) (*ManualTrigger, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ManualTrigger{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Activates a manual trigger. Each activation of the manual trigger must be at least 5 minutes apart, otherwise an error will be returned.", + // "flatPath": "v1/advertisers/{advertisersId}/manualTriggers/{manualTriggersId}:activate", + // "httpMethod": "POST", + // "id": "displayvideo.advertisers.manualTriggers.activate", + // "parameterOrder": [ + // "advertiserId", + // "triggerId" + // ], + // "parameters": { + // "advertiserId": { + // "description": "Required. The ID of the advertiser that the manual trigger belongs.", + // "format": "int64", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // }, + // "triggerId": { + // "description": "Required. The ID of the manual trigger to activate.", + // "format": "int64", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/advertisers/{+advertiserId}/manualTriggers/{+triggerId}:activate", + // "request": { + // "$ref": "ActivateManualTriggerRequest" + // }, + // "response": { + // "$ref": "ManualTrigger" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/display-video" + // ] + // } + +} + +// method id "displayvideo.advertisers.manualTriggers.create": + +type AdvertisersManualTriggersCreateCall struct { + s *Service + advertiserId int64 + manualtrigger *ManualTrigger + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new manual trigger. Returns the newly created +// manual trigger if successful. +func (r *AdvertisersManualTriggersService) Create(advertiserId int64, manualtrigger *ManualTrigger) *AdvertisersManualTriggersCreateCall { + c := &AdvertisersManualTriggersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.advertiserId = advertiserId + c.manualtrigger = manualtrigger + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *AdvertisersManualTriggersCreateCall) Fields(s ...googleapi.Field) *AdvertisersManualTriggersCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *AdvertisersManualTriggersCreateCall) Context(ctx context.Context) *AdvertisersManualTriggersCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *AdvertisersManualTriggersCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AdvertisersManualTriggersCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.manualtrigger) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/manualTriggers") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "advertiserId": strconv.FormatInt(c.advertiserId, 10), + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "displayvideo.advertisers.manualTriggers.create" call. +// Exactly one of *ManualTrigger or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *ManualTrigger.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *AdvertisersManualTriggersCreateCall) Do(opts ...googleapi.CallOption) (*ManualTrigger, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ManualTrigger{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new manual trigger. Returns the newly created manual trigger if successful.", + // "flatPath": "v1/advertisers/{advertisersId}/manualTriggers", + // "httpMethod": "POST", + // "id": "displayvideo.advertisers.manualTriggers.create", + // "parameterOrder": [ + // "advertiserId" + // ], + // "parameters": { + // "advertiserId": { + // "description": "Required. Immutable. The unique ID of the advertiser that the manual trigger belongs to.", + // "format": "int64", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/advertisers/{+advertiserId}/manualTriggers", + // "request": { + // "$ref": "ManualTrigger" + // }, + // "response": { + // "$ref": "ManualTrigger" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/display-video" + // ] + // } + +} + +// method id "displayvideo.advertisers.manualTriggers.deactivate": + +type AdvertisersManualTriggersDeactivateCall struct { + s *Service + advertiserId int64 + triggerId int64 + deactivatemanualtriggerrequest *DeactivateManualTriggerRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Deactivate: Deactivates a manual trigger. +func (r *AdvertisersManualTriggersService) Deactivate(advertiserId int64, triggerId int64, deactivatemanualtriggerrequest *DeactivateManualTriggerRequest) *AdvertisersManualTriggersDeactivateCall { + c := &AdvertisersManualTriggersDeactivateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.advertiserId = advertiserId + c.triggerId = triggerId + c.deactivatemanualtriggerrequest = deactivatemanualtriggerrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *AdvertisersManualTriggersDeactivateCall) Fields(s ...googleapi.Field) *AdvertisersManualTriggersDeactivateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *AdvertisersManualTriggersDeactivateCall) Context(ctx context.Context) *AdvertisersManualTriggersDeactivateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *AdvertisersManualTriggersDeactivateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AdvertisersManualTriggersDeactivateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.deactivatemanualtriggerrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/manualTriggers/{+triggerId}:deactivate") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "advertiserId": strconv.FormatInt(c.advertiserId, 10), + "triggerId": strconv.FormatInt(c.triggerId, 10), + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "displayvideo.advertisers.manualTriggers.deactivate" call. +// Exactly one of *ManualTrigger or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *ManualTrigger.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *AdvertisersManualTriggersDeactivateCall) Do(opts ...googleapi.CallOption) (*ManualTrigger, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ManualTrigger{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deactivates a manual trigger.", + // "flatPath": "v1/advertisers/{advertisersId}/manualTriggers/{manualTriggersId}:deactivate", + // "httpMethod": "POST", + // "id": "displayvideo.advertisers.manualTriggers.deactivate", + // "parameterOrder": [ + // "advertiserId", + // "triggerId" + // ], + // "parameters": { + // "advertiserId": { + // "description": "Required. The ID of the advertiser that the manual trigger belongs.", + // "format": "int64", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // }, + // "triggerId": { + // "description": "Required. The ID of the manual trigger to deactivate.", + // "format": "int64", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/advertisers/{+advertiserId}/manualTriggers/{+triggerId}:deactivate", + // "request": { + // "$ref": "DeactivateManualTriggerRequest" + // }, + // "response": { + // "$ref": "ManualTrigger" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/display-video" + // ] + // } + +} + +// method id "displayvideo.advertisers.manualTriggers.get": + +type AdvertisersManualTriggersGetCall struct { + s *Service + advertiserId int64 + triggerId int64 + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a manual trigger. +func (r *AdvertisersManualTriggersService) Get(advertiserId int64, triggerId int64) *AdvertisersManualTriggersGetCall { + c := &AdvertisersManualTriggersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.advertiserId = advertiserId + c.triggerId = triggerId + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *AdvertisersManualTriggersGetCall) Fields(s ...googleapi.Field) *AdvertisersManualTriggersGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *AdvertisersManualTriggersGetCall) IfNoneMatch(entityTag string) *AdvertisersManualTriggersGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *AdvertisersManualTriggersGetCall) Context(ctx context.Context) *AdvertisersManualTriggersGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *AdvertisersManualTriggersGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AdvertisersManualTriggersGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/manualTriggers/{+triggerId}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "advertiserId": strconv.FormatInt(c.advertiserId, 10), + "triggerId": strconv.FormatInt(c.triggerId, 10), + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "displayvideo.advertisers.manualTriggers.get" call. +// Exactly one of *ManualTrigger or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *ManualTrigger.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *AdvertisersManualTriggersGetCall) Do(opts ...googleapi.CallOption) (*ManualTrigger, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ManualTrigger{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a manual trigger.", + // "flatPath": "v1/advertisers/{advertisersId}/manualTriggers/{manualTriggersId}", + // "httpMethod": "GET", + // "id": "displayvideo.advertisers.manualTriggers.get", + // "parameterOrder": [ + // "advertiserId", + // "triggerId" + // ], + // "parameters": { + // "advertiserId": { + // "description": "Required. The ID of the advertiser this manual trigger belongs to.", + // "format": "int64", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // }, + // "triggerId": { + // "description": "Required. The ID of the manual trigger to fetch.", + // "format": "int64", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/advertisers/{+advertiserId}/manualTriggers/{+triggerId}", + // "response": { + // "$ref": "ManualTrigger" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/display-video" + // ] + // } + +} + +// method id "displayvideo.advertisers.manualTriggers.list": + +type AdvertisersManualTriggersListCall struct { + s *Service + advertiserId int64 + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists manual triggers that are accessible to the current user +// for a given advertiser ID. The order is defined by the order_by +// parameter. A single advertiser_id is required. +func (r *AdvertisersManualTriggersService) List(advertiserId int64) *AdvertisersManualTriggersListCall { + c := &AdvertisersManualTriggersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.advertiserId = advertiserId + return c +} + +// Filter sets the optional parameter "filter": Allows filtering by +// manual trigger properties. Supported syntax: * Filter expressions are +// made up of one or more restrictions. * Restrictions can be combined +// by `AND` or `OR` logical operators. A sequence of restrictions +// implicitly uses `AND`. * A restriction has the form of `{field} +// {operator} {value}`. * The operator must be `EQUALS (=)`. * Supported +// fields: - `displayName` - `state` Examples: * All active manual +// triggers under an advertiser: `state="ACTIVE" The length of this +// field should be no more than 500 characters. +func (c *AdvertisersManualTriggersListCall) Filter(filter string) *AdvertisersManualTriggersListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Field by which to sort +// the list. Acceptable values are: * `displayName` (default) * `state` +// The default sorting order is ascending. To specify descending order +// for a field, a suffix "desc" should be added to the field name. For +// example, `displayName desc`. +func (c *AdvertisersManualTriggersListCall) OrderBy(orderBy string) *AdvertisersManualTriggersListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. +// Must be between `1` and `100`. If unspecified will default to `100`. +func (c *AdvertisersManualTriggersListCall) PageSize(pageSize int64) *AdvertisersManualTriggersListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token +// identifying a page of results the server should return. Typically, +// this is the value of next_page_token returned from the previous call +// to `ListManualTriggers` method. If not specified, the first page of +// results will be returned. +func (c *AdvertisersManualTriggersListCall) PageToken(pageToken string) *AdvertisersManualTriggersListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *AdvertisersManualTriggersListCall) Fields(s ...googleapi.Field) *AdvertisersManualTriggersListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *AdvertisersManualTriggersListCall) IfNoneMatch(entityTag string) *AdvertisersManualTriggersListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *AdvertisersManualTriggersListCall) Context(ctx context.Context) *AdvertisersManualTriggersListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *AdvertisersManualTriggersListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AdvertisersManualTriggersListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/manualTriggers") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "advertiserId": strconv.FormatInt(c.advertiserId, 10), + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "displayvideo.advertisers.manualTriggers.list" call. +// Exactly one of *ListManualTriggersResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListManualTriggersResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *AdvertisersManualTriggersListCall) Do(opts ...googleapi.CallOption) (*ListManualTriggersResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListManualTriggersResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists manual triggers that are accessible to the current user for a given advertiser ID. The order is defined by the order_by parameter. A single advertiser_id is required.", + // "flatPath": "v1/advertisers/{advertisersId}/manualTriggers", + // "httpMethod": "GET", + // "id": "displayvideo.advertisers.manualTriggers.list", + // "parameterOrder": [ + // "advertiserId" + // ], + // "parameters": { + // "advertiserId": { + // "description": "Required. The ID of the advertiser that the fetched manual triggers belong to.", + // "format": "int64", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // }, + // "filter": { + // "description": "Allows filtering by manual trigger properties. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * The operator must be `EQUALS (=)`. * Supported fields: - `displayName` - `state` Examples: * All active manual triggers under an advertiser: `state=\"ACTIVE\"` The length of this field should be no more than 500 characters.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Field by which to sort the list. Acceptable values are: * `displayName` (default) * `state` The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. For example, `displayName desc`.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Requested page size. Must be between `1` and `100`. If unspecified will default to `100`.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListManualTriggers` method. If not specified, the first page of results will be returned.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/advertisers/{+advertiserId}/manualTriggers", + // "response": { + // "$ref": "ListManualTriggersResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/display-video" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *AdvertisersManualTriggersListCall) Pages(ctx context.Context, f func(*ListManualTriggersResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "displayvideo.advertisers.manualTriggers.patch": + +type AdvertisersManualTriggersPatchCall struct { + s *Service + advertiserId int64 + triggerId int64 + manualtrigger *ManualTrigger + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a manual trigger. Returns the updated manual trigger +// if successful. +func (r *AdvertisersManualTriggersService) Patch(advertiserId int64, triggerId int64, manualtrigger *ManualTrigger) *AdvertisersManualTriggersPatchCall { + c := &AdvertisersManualTriggersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.advertiserId = advertiserId + c.triggerId = triggerId + c.manualtrigger = manualtrigger + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The +// mask to control which fields to update. +func (c *AdvertisersManualTriggersPatchCall) UpdateMask(updateMask string) *AdvertisersManualTriggersPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *AdvertisersManualTriggersPatchCall) Fields(s ...googleapi.Field) *AdvertisersManualTriggersPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *AdvertisersManualTriggersPatchCall) Context(ctx context.Context) *AdvertisersManualTriggersPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *AdvertisersManualTriggersPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AdvertisersManualTriggersPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.manualtrigger) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/manualTriggers/{+triggerId}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "advertiserId": strconv.FormatInt(c.advertiserId, 10), + "triggerId": strconv.FormatInt(c.triggerId, 10), + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "displayvideo.advertisers.manualTriggers.patch" call. +// Exactly one of *ManualTrigger or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *ManualTrigger.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *AdvertisersManualTriggersPatchCall) Do(opts ...googleapi.CallOption) (*ManualTrigger, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ManualTrigger{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a manual trigger. Returns the updated manual trigger if successful.", + // "flatPath": "v1/advertisers/{advertisersId}/manualTriggers/{manualTriggersId}", + // "httpMethod": "PATCH", + // "id": "displayvideo.advertisers.manualTriggers.patch", + // "parameterOrder": [ + // "advertiserId", + // "triggerId" + // ], + // "parameters": { + // "advertiserId": { + // "description": "Required. Immutable. The unique ID of the advertiser that the manual trigger belongs to.", + // "format": "int64", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // }, + // "triggerId": { + // "description": "Output only. The unique ID of the manual trigger.", + // "format": "int64", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The mask to control which fields to update.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/advertisers/{+advertiserId}/manualTriggers/{+triggerId}", + // "request": { + // "$ref": "ManualTrigger" + // }, + // "response": { + // "$ref": "ManualTrigger" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/display-video" + // ] + // } + +} + // method id "displayvideo.advertisers.negativeKeywordLists.create": type AdvertisersNegativeKeywordListsCreateCall struct { @@ -21983,7 +23200,7 @@ func (c *AdvertisersNegativeKeywordListsCreateCall) Header() http.Header { func (c *AdvertisersNegativeKeywordListsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22125,7 +23342,7 @@ func (c *AdvertisersNegativeKeywordListsDeleteCall) Header() http.Header { func (c *AdvertisersNegativeKeywordListsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22280,7 +23497,7 @@ func (c *AdvertisersNegativeKeywordListsGetCall) Header() http.Header { func (c *AdvertisersNegativeKeywordListsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22453,7 +23670,7 @@ func (c *AdvertisersNegativeKeywordListsListCall) Header() http.Header { func (c *AdvertisersNegativeKeywordListsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22631,7 +23848,7 @@ func (c *AdvertisersNegativeKeywordListsPatchCall) Header() http.Header { func (c *AdvertisersNegativeKeywordListsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22795,7 +24012,7 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsBulkEditCall) Header() h func (c *AdvertisersNegativeKeywordListsNegativeKeywordsBulkEditCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22947,7 +24164,7 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsCreateCall) Header() htt func (c *AdvertisersNegativeKeywordListsNegativeKeywordsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23099,7 +24316,7 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsDeleteCall) Header() htt func (c *AdvertisersNegativeKeywordListsNegativeKeywordsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23302,7 +24519,7 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsListCall) Header() http. func (c *AdvertisersNegativeKeywordListsNegativeKeywordsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23493,7 +24710,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsCreateCall) Header() h func (c *AdvertisersTargetingTypesAssignedTargetingOptionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23725,7 +24942,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsDeleteCall) Header() h func (c *AdvertisersTargetingTypesAssignedTargetingOptionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23969,7 +25186,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsGetCall) Header() http func (c *AdvertisersTargetingTypesAssignedTargetingOptionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24257,7 +25474,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsListCall) Header() htt func (c *AdvertisersTargetingTypesAssignedTargetingOptionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24549,7 +25766,7 @@ func (c *CombinedAudiencesGetCall) Header() http.Header { func (c *CombinedAudiencesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24761,7 +25978,7 @@ func (c *CombinedAudiencesListCall) Header() http.Header { func (c *CombinedAudiencesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24961,7 +26178,7 @@ func (c *CustomBiddingAlgorithmsGetCall) Header() http.Header { func (c *CustomBiddingAlgorithmsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25184,7 +26401,7 @@ func (c *CustomBiddingAlgorithmsListCall) Header() http.Header { func (c *CustomBiddingAlgorithmsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25378,7 +26595,7 @@ func (c *CustomListsGetCall) Header() http.Header { func (c *CustomListsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25577,7 +26794,7 @@ func (c *CustomListsListCall) Header() http.Header { func (c *CustomListsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25773,7 +26990,7 @@ func (c *FirstAndThirdPartyAudiencesGetCall) Header() http.Header { func (c *FirstAndThirdPartyAudiencesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25988,7 +27205,7 @@ func (c *FirstAndThirdPartyAudiencesListCall) Header() http.Header { func (c *FirstAndThirdPartyAudiencesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26182,7 +27399,7 @@ func (c *FloodlightGroupsGetCall) Header() http.Header { func (c *FloodlightGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26339,7 +27556,7 @@ func (c *FloodlightGroupsPatchCall) Header() http.Header { func (c *FloodlightGroupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26514,7 +27731,7 @@ func (c *GoogleAudiencesGetCall) Header() http.Header { func (c *GoogleAudiencesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26726,7 +27943,7 @@ func (c *GoogleAudiencesListCall) Header() http.Header { func (c *GoogleAudiencesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26919,7 +28136,7 @@ func (c *InventorySourceGroupsCreateCall) Header() http.Header { func (c *InventorySourceGroupsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27073,7 +28290,7 @@ func (c *InventorySourceGroupsDeleteCall) Header() http.Header { func (c *InventorySourceGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27244,7 +28461,7 @@ func (c *InventorySourceGroupsGetCall) Header() http.Header { func (c *InventorySourceGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27456,7 +28673,7 @@ func (c *InventorySourceGroupsListCall) Header() http.Header { func (c *InventorySourceGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27658,7 +28875,7 @@ func (c *InventorySourceGroupsPatchCall) Header() http.Header { func (c *InventorySourceGroupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27822,7 +29039,7 @@ func (c *InventorySourceGroupsAssignedInventorySourcesBulkEditCall) Header() htt func (c *InventorySourceGroupsAssignedInventorySourcesBulkEditCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27983,7 +29200,7 @@ func (c *InventorySourceGroupsAssignedInventorySourcesCreateCall) Header() http. func (c *InventorySourceGroupsAssignedInventorySourcesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28154,7 +29371,7 @@ func (c *InventorySourceGroupsAssignedInventorySourcesDeleteCall) Header() http. func (c *InventorySourceGroupsAssignedInventorySourcesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28378,7 +29595,7 @@ func (c *InventorySourceGroupsAssignedInventorySourcesListCall) Header() http.He func (c *InventorySourceGroupsAssignedInventorySourcesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28586,7 +29803,7 @@ func (c *InventorySourcesGetCall) Header() http.Header { func (c *InventorySourcesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28798,7 +30015,7 @@ func (c *InventorySourcesListCall) Header() http.Header { func (c *InventorySourcesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28986,7 +30203,7 @@ func (c *MediaDownloadCall) Header() http.Header { func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29144,7 +30361,7 @@ func (c *PartnersBulkEditPartnerAssignedTargetingOptionsCall) Header() http.Head func (c *PartnersBulkEditPartnerAssignedTargetingOptionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29296,7 +30513,7 @@ func (c *PartnersGetCall) Header() http.Header { func (c *PartnersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29481,7 +30698,7 @@ func (c *PartnersListCall) Header() http.Header { func (c *PartnersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29654,7 +30871,7 @@ func (c *PartnersChannelsCreateCall) Header() http.Header { func (c *PartnersChannelsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -29819,7 +31036,7 @@ func (c *PartnersChannelsGetCall) Header() http.Header { func (c *PartnersChannelsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30029,7 +31246,7 @@ func (c *PartnersChannelsListCall) Header() http.Header { func (c *PartnersChannelsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30229,7 +31446,7 @@ func (c *PartnersChannelsPatchCall) Header() http.Header { func (c *PartnersChannelsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30395,7 +31612,7 @@ func (c *PartnersChannelsSitesBulkEditCall) Header() http.Header { func (c *PartnersChannelsSitesBulkEditCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30554,7 +31771,7 @@ func (c *PartnersChannelsSitesCreateCall) Header() http.Header { func (c *PartnersChannelsSitesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30719,7 +31936,7 @@ func (c *PartnersChannelsSitesDeleteCall) Header() http.Header { func (c *PartnersChannelsSitesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -30934,7 +32151,7 @@ func (c *PartnersChannelsSitesListCall) Header() http.Header { func (c *PartnersChannelsSitesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31131,7 +32348,7 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsCreateCall) Header() http func (c *PartnersTargetingTypesAssignedTargetingOptionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31363,7 +32580,7 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsDeleteCall) Header() http func (c *PartnersTargetingTypesAssignedTargetingOptionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31607,7 +32824,7 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsGetCall) Header() http.He func (c *PartnersTargetingTypesAssignedTargetingOptionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -31895,7 +33112,7 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsListCall) Header() http.H func (c *PartnersTargetingTypesAssignedTargetingOptionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -32170,7 +33387,7 @@ func (c *SdfdownloadtasksCreateCall) Header() http.Header { func (c *SdfdownloadtasksCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -32308,7 +33525,7 @@ func (c *SdfdownloadtasksOperationsGetCall) Header() http.Header { func (c *SdfdownloadtasksOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -32462,7 +33679,7 @@ func (c *TargetingTypesTargetingOptionsGetCall) Header() http.Header { func (c *TargetingTypesTargetingOptionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -32757,7 +33974,7 @@ func (c *TargetingTypesTargetingOptionsListCall) Header() http.Header { func (c *TargetingTypesTargetingOptionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -33024,7 +34241,7 @@ func (c *UsersBulkEditAssignedUserRolesCall) Header() http.Header { func (c *UsersBulkEditAssignedUserRolesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -33165,7 +34382,7 @@ func (c *UsersCreateCall) Header() http.Header { func (c *UsersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -33290,7 +34507,7 @@ func (c *UsersDeleteCall) Header() http.Header { func (c *UsersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -33432,7 +34649,7 @@ func (c *UsersGetCall) Header() http.Header { func (c *UsersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -33634,7 +34851,7 @@ func (c *UsersListCall) Header() http.Header { func (c *UsersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -33807,7 +35024,7 @@ func (c *UsersPatchCall) Header() http.Header { func (c *UsersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/displayvideo/v1beta/displayvideo-gen.go b/displayvideo/v1beta/displayvideo-gen.go index 129e94c2ce6..a623ef5904b 100644 --- a/displayvideo/v1beta/displayvideo-gen.go +++ b/displayvideo/v1beta/displayvideo-gen.go @@ -396,7 +396,7 @@ func (c *MediaDownloadCall) Header() http.Header { func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201104") for k, v := range c.header_ { reqHeaders[k] = v } @@ -560,7 +560,7 @@ func (c *SdfdownloadtaskOperationsGetCall) Header() http.Header { func (c *SdfdownloadtaskOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201104") for k, v := range c.header_ { reqHeaders[k] = v } @@ -707,7 +707,7 @@ func (c *SdfdownloadtasksOperationsGetCall) Header() http.Header { func (c *SdfdownloadtasksOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201104") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/displayvideo/v1beta2/displayvideo-gen.go b/displayvideo/v1beta2/displayvideo-gen.go index 46977c87a3c..62a109c2a9c 100644 --- a/displayvideo/v1beta2/displayvideo-gen.go +++ b/displayvideo/v1beta2/displayvideo-gen.go @@ -372,7 +372,7 @@ func (c *MediaDownloadCall) Header() http.Header { func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201104") for k, v := range c.header_ { reqHeaders[k] = v } @@ -536,7 +536,7 @@ func (c *SdfdownloadtasksOperationsGetCall) Header() http.Header { func (c *SdfdownloadtasksOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201104") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/displayvideo/v1dev/displayvideo-gen.go b/displayvideo/v1dev/displayvideo-gen.go index ae8f298ca88..0627601dd21 100644 --- a/displayvideo/v1dev/displayvideo-gen.go +++ b/displayvideo/v1dev/displayvideo-gen.go @@ -372,7 +372,7 @@ func (c *MediaDownloadCall) Header() http.Header { func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201104") for k, v := range c.header_ { reqHeaders[k] = v } @@ -536,7 +536,7 @@ func (c *SdfdownloadtasksOperationsGetCall) Header() http.Header { func (c *SdfdownloadtasksOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201104") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/dlp/v2/dlp-api.json b/dlp/v2/dlp-api.json index 5d1159c70b6..6adf1a4b650 100644 --- a/dlp/v2/dlp-api.json +++ b/dlp/v2/dlp-api.json @@ -3136,7 +3136,7 @@ } } }, - "revision": "20201016", + "revision": "20201113", "rootUrl": "https://dlp.googleapis.com/", "schemas": { "GooglePrivacyDlpV2Action": { @@ -4676,6 +4676,10 @@ "format": "google-datetime", "type": "string" }, + "findingId": { + "description": "The unique finding id.", + "type": "string" + }, "infoType": { "$ref": "GooglePrivacyDlpV2InfoType", "description": "The type of content that might have been found. Provided if `excluded_types` is false." diff --git a/dlp/v2/dlp-gen.go b/dlp/v2/dlp-gen.go index 8d76fe429d1..ef7f0802427 100644 --- a/dlp/v2/dlp-gen.go +++ b/dlp/v2/dlp-gen.go @@ -3264,6 +3264,9 @@ type GooglePrivacyDlpV2Finding struct { // CreateTime: Timestamp when finding was detected. CreateTime string `json:"createTime,omitempty"` + // FindingId: The unique finding id. + FindingId string `json:"findingId,omitempty"` + // InfoType: The type of content that might have been found. Provided if // `excluded_types` is false. InfoType *GooglePrivacyDlpV2InfoType `json:"infoType,omitempty"` @@ -8194,7 +8197,7 @@ func (c *InfoTypesListCall) Header() http.Header { func (c *InfoTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8373,7 +8376,7 @@ func (c *LocationsInfoTypesListCall) Header() http.Header { func (c *LocationsInfoTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8527,7 +8530,7 @@ func (c *OrganizationsDeidentifyTemplatesCreateCall) Header() http.Header { func (c *OrganizationsDeidentifyTemplatesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8668,7 +8671,7 @@ func (c *OrganizationsDeidentifyTemplatesDeleteCall) Header() http.Header { func (c *OrganizationsDeidentifyTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8811,7 +8814,7 @@ func (c *OrganizationsDeidentifyTemplatesGetCall) Header() http.Header { func (c *OrganizationsDeidentifyTemplatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8995,7 +8998,7 @@ func (c *OrganizationsDeidentifyTemplatesListCall) Header() http.Header { func (c *OrganizationsDeidentifyTemplatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9176,7 +9179,7 @@ func (c *OrganizationsDeidentifyTemplatesPatchCall) Header() http.Header { func (c *OrganizationsDeidentifyTemplatesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9319,7 +9322,7 @@ func (c *OrganizationsInspectTemplatesCreateCall) Header() http.Header { func (c *OrganizationsInspectTemplatesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9459,7 +9462,7 @@ func (c *OrganizationsInspectTemplatesDeleteCall) Header() http.Header { func (c *OrganizationsInspectTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9601,7 +9604,7 @@ func (c *OrganizationsInspectTemplatesGetCall) Header() http.Header { func (c *OrganizationsInspectTemplatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9784,7 +9787,7 @@ func (c *OrganizationsInspectTemplatesListCall) Header() http.Header { func (c *OrganizationsInspectTemplatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9964,7 +9967,7 @@ func (c *OrganizationsInspectTemplatesPatchCall) Header() http.Header { func (c *OrganizationsInspectTemplatesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10108,7 +10111,7 @@ func (c *OrganizationsLocationsDeidentifyTemplatesCreateCall) Header() http.Head func (c *OrganizationsLocationsDeidentifyTemplatesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10249,7 +10252,7 @@ func (c *OrganizationsLocationsDeidentifyTemplatesDeleteCall) Header() http.Head func (c *OrganizationsLocationsDeidentifyTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10392,7 +10395,7 @@ func (c *OrganizationsLocationsDeidentifyTemplatesGetCall) Header() http.Header func (c *OrganizationsLocationsDeidentifyTemplatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10576,7 +10579,7 @@ func (c *OrganizationsLocationsDeidentifyTemplatesListCall) Header() http.Header func (c *OrganizationsLocationsDeidentifyTemplatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10757,7 +10760,7 @@ func (c *OrganizationsLocationsDeidentifyTemplatesPatchCall) Header() http.Heade func (c *OrganizationsLocationsDeidentifyTemplatesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10900,7 +10903,7 @@ func (c *OrganizationsLocationsInspectTemplatesCreateCall) Header() http.Header func (c *OrganizationsLocationsInspectTemplatesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11040,7 +11043,7 @@ func (c *OrganizationsLocationsInspectTemplatesDeleteCall) Header() http.Header func (c *OrganizationsLocationsInspectTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11182,7 +11185,7 @@ func (c *OrganizationsLocationsInspectTemplatesGetCall) Header() http.Header { func (c *OrganizationsLocationsInspectTemplatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11365,7 +11368,7 @@ func (c *OrganizationsLocationsInspectTemplatesListCall) Header() http.Header { func (c *OrganizationsLocationsInspectTemplatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11545,7 +11548,7 @@ func (c *OrganizationsLocationsInspectTemplatesPatchCall) Header() http.Header { func (c *OrganizationsLocationsInspectTemplatesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11689,7 +11692,7 @@ func (c *OrganizationsLocationsStoredInfoTypesCreateCall) Header() http.Header { func (c *OrganizationsLocationsStoredInfoTypesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11829,7 +11832,7 @@ func (c *OrganizationsLocationsStoredInfoTypesDeleteCall) Header() http.Header { func (c *OrganizationsLocationsStoredInfoTypesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11972,7 +11975,7 @@ func (c *OrganizationsLocationsStoredInfoTypesGetCall) Header() http.Header { func (c *OrganizationsLocationsStoredInfoTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12155,7 +12158,7 @@ func (c *OrganizationsLocationsStoredInfoTypesListCall) Header() http.Header { func (c *OrganizationsLocationsStoredInfoTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12338,7 +12341,7 @@ func (c *OrganizationsLocationsStoredInfoTypesPatchCall) Header() http.Header { func (c *OrganizationsLocationsStoredInfoTypesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12481,7 +12484,7 @@ func (c *OrganizationsStoredInfoTypesCreateCall) Header() http.Header { func (c *OrganizationsStoredInfoTypesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12621,7 +12624,7 @@ func (c *OrganizationsStoredInfoTypesDeleteCall) Header() http.Header { func (c *OrganizationsStoredInfoTypesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12764,7 +12767,7 @@ func (c *OrganizationsStoredInfoTypesGetCall) Header() http.Header { func (c *OrganizationsStoredInfoTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12947,7 +12950,7 @@ func (c *OrganizationsStoredInfoTypesListCall) Header() http.Header { func (c *OrganizationsStoredInfoTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13130,7 +13133,7 @@ func (c *OrganizationsStoredInfoTypesPatchCall) Header() http.Header { func (c *OrganizationsStoredInfoTypesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13276,7 +13279,7 @@ func (c *ProjectsContentDeidentifyCall) Header() http.Header { func (c *ProjectsContentDeidentifyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13425,7 +13428,7 @@ func (c *ProjectsContentInspectCall) Header() http.Header { func (c *ProjectsContentInspectCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13569,7 +13572,7 @@ func (c *ProjectsContentReidentifyCall) Header() http.Header { func (c *ProjectsContentReidentifyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13714,7 +13717,7 @@ func (c *ProjectsDeidentifyTemplatesCreateCall) Header() http.Header { func (c *ProjectsDeidentifyTemplatesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13855,7 +13858,7 @@ func (c *ProjectsDeidentifyTemplatesDeleteCall) Header() http.Header { func (c *ProjectsDeidentifyTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13998,7 +14001,7 @@ func (c *ProjectsDeidentifyTemplatesGetCall) Header() http.Header { func (c *ProjectsDeidentifyTemplatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14182,7 +14185,7 @@ func (c *ProjectsDeidentifyTemplatesListCall) Header() http.Header { func (c *ProjectsDeidentifyTemplatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14363,7 +14366,7 @@ func (c *ProjectsDeidentifyTemplatesPatchCall) Header() http.Header { func (c *ProjectsDeidentifyTemplatesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14509,7 +14512,7 @@ func (c *ProjectsDlpJobsCancelCall) Header() http.Header { func (c *ProjectsDlpJobsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14655,7 +14658,7 @@ func (c *ProjectsDlpJobsCreateCall) Header() http.Header { func (c *ProjectsDlpJobsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14798,7 +14801,7 @@ func (c *ProjectsDlpJobsDeleteCall) Header() http.Header { func (c *ProjectsDlpJobsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14942,7 +14945,7 @@ func (c *ProjectsDlpJobsGetCall) Header() http.Header { func (c *ProjectsDlpJobsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15159,7 +15162,7 @@ func (c *ProjectsDlpJobsListCall) Header() http.Header { func (c *ProjectsDlpJobsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15363,7 +15366,7 @@ func (c *ProjectsImageRedactCall) Header() http.Header { func (c *ProjectsImageRedactCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15506,7 +15509,7 @@ func (c *ProjectsInspectTemplatesCreateCall) Header() http.Header { func (c *ProjectsInspectTemplatesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15646,7 +15649,7 @@ func (c *ProjectsInspectTemplatesDeleteCall) Header() http.Header { func (c *ProjectsInspectTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15788,7 +15791,7 @@ func (c *ProjectsInspectTemplatesGetCall) Header() http.Header { func (c *ProjectsInspectTemplatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15971,7 +15974,7 @@ func (c *ProjectsInspectTemplatesListCall) Header() http.Header { func (c *ProjectsInspectTemplatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16151,7 +16154,7 @@ func (c *ProjectsInspectTemplatesPatchCall) Header() http.Header { func (c *ProjectsInspectTemplatesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16293,7 +16296,7 @@ func (c *ProjectsJobTriggersActivateCall) Header() http.Header { func (c *ProjectsJobTriggersActivateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16436,7 +16439,7 @@ func (c *ProjectsJobTriggersCreateCall) Header() http.Header { func (c *ProjectsJobTriggersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16576,7 +16579,7 @@ func (c *ProjectsJobTriggersDeleteCall) Header() http.Header { func (c *ProjectsJobTriggersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16719,7 +16722,7 @@ func (c *ProjectsJobTriggersGetCall) Header() http.Header { func (c *ProjectsJobTriggersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16924,7 +16927,7 @@ func (c *ProjectsJobTriggersListCall) Header() http.Header { func (c *ProjectsJobTriggersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17110,7 +17113,7 @@ func (c *ProjectsJobTriggersPatchCall) Header() http.Header { func (c *ProjectsJobTriggersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17256,7 +17259,7 @@ func (c *ProjectsLocationsContentDeidentifyCall) Header() http.Header { func (c *ProjectsLocationsContentDeidentifyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17405,7 +17408,7 @@ func (c *ProjectsLocationsContentInspectCall) Header() http.Header { func (c *ProjectsLocationsContentInspectCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17549,7 +17552,7 @@ func (c *ProjectsLocationsContentReidentifyCall) Header() http.Header { func (c *ProjectsLocationsContentReidentifyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17694,7 +17697,7 @@ func (c *ProjectsLocationsDeidentifyTemplatesCreateCall) Header() http.Header { func (c *ProjectsLocationsDeidentifyTemplatesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17835,7 +17838,7 @@ func (c *ProjectsLocationsDeidentifyTemplatesDeleteCall) Header() http.Header { func (c *ProjectsLocationsDeidentifyTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17978,7 +17981,7 @@ func (c *ProjectsLocationsDeidentifyTemplatesGetCall) Header() http.Header { func (c *ProjectsLocationsDeidentifyTemplatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18162,7 +18165,7 @@ func (c *ProjectsLocationsDeidentifyTemplatesListCall) Header() http.Header { func (c *ProjectsLocationsDeidentifyTemplatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18343,7 +18346,7 @@ func (c *ProjectsLocationsDeidentifyTemplatesPatchCall) Header() http.Header { func (c *ProjectsLocationsDeidentifyTemplatesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18489,7 +18492,7 @@ func (c *ProjectsLocationsDlpJobsCancelCall) Header() http.Header { func (c *ProjectsLocationsDlpJobsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18635,7 +18638,7 @@ func (c *ProjectsLocationsDlpJobsCreateCall) Header() http.Header { func (c *ProjectsLocationsDlpJobsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18778,7 +18781,7 @@ func (c *ProjectsLocationsDlpJobsDeleteCall) Header() http.Header { func (c *ProjectsLocationsDlpJobsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18914,7 +18917,7 @@ func (c *ProjectsLocationsDlpJobsFinishCall) Header() http.Header { func (c *ProjectsLocationsDlpJobsFinishCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19066,7 +19069,7 @@ func (c *ProjectsLocationsDlpJobsGetCall) Header() http.Header { func (c *ProjectsLocationsDlpJobsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19205,7 +19208,7 @@ func (c *ProjectsLocationsDlpJobsHybridInspectCall) Header() http.Header { func (c *ProjectsLocationsDlpJobsHybridInspectCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19428,7 +19431,7 @@ func (c *ProjectsLocationsDlpJobsListCall) Header() http.Header { func (c *ProjectsLocationsDlpJobsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19632,7 +19635,7 @@ func (c *ProjectsLocationsImageRedactCall) Header() http.Header { func (c *ProjectsLocationsImageRedactCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19775,7 +19778,7 @@ func (c *ProjectsLocationsInspectTemplatesCreateCall) Header() http.Header { func (c *ProjectsLocationsInspectTemplatesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19915,7 +19918,7 @@ func (c *ProjectsLocationsInspectTemplatesDeleteCall) Header() http.Header { func (c *ProjectsLocationsInspectTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20057,7 +20060,7 @@ func (c *ProjectsLocationsInspectTemplatesGetCall) Header() http.Header { func (c *ProjectsLocationsInspectTemplatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20240,7 +20243,7 @@ func (c *ProjectsLocationsInspectTemplatesListCall) Header() http.Header { func (c *ProjectsLocationsInspectTemplatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20420,7 +20423,7 @@ func (c *ProjectsLocationsInspectTemplatesPatchCall) Header() http.Header { func (c *ProjectsLocationsInspectTemplatesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20562,7 +20565,7 @@ func (c *ProjectsLocationsJobTriggersActivateCall) Header() http.Header { func (c *ProjectsLocationsJobTriggersActivateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20705,7 +20708,7 @@ func (c *ProjectsLocationsJobTriggersCreateCall) Header() http.Header { func (c *ProjectsLocationsJobTriggersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20845,7 +20848,7 @@ func (c *ProjectsLocationsJobTriggersDeleteCall) Header() http.Header { func (c *ProjectsLocationsJobTriggersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20988,7 +20991,7 @@ func (c *ProjectsLocationsJobTriggersGetCall) Header() http.Header { func (c *ProjectsLocationsJobTriggersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21128,7 +21131,7 @@ func (c *ProjectsLocationsJobTriggersHybridInspectCall) Header() http.Header { func (c *ProjectsLocationsJobTriggersHybridInspectCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21339,7 +21342,7 @@ func (c *ProjectsLocationsJobTriggersListCall) Header() http.Header { func (c *ProjectsLocationsJobTriggersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21525,7 +21528,7 @@ func (c *ProjectsLocationsJobTriggersPatchCall) Header() http.Header { func (c *ProjectsLocationsJobTriggersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21668,7 +21671,7 @@ func (c *ProjectsLocationsStoredInfoTypesCreateCall) Header() http.Header { func (c *ProjectsLocationsStoredInfoTypesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21808,7 +21811,7 @@ func (c *ProjectsLocationsStoredInfoTypesDeleteCall) Header() http.Header { func (c *ProjectsLocationsStoredInfoTypesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21951,7 +21954,7 @@ func (c *ProjectsLocationsStoredInfoTypesGetCall) Header() http.Header { func (c *ProjectsLocationsStoredInfoTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22134,7 +22137,7 @@ func (c *ProjectsLocationsStoredInfoTypesListCall) Header() http.Header { func (c *ProjectsLocationsStoredInfoTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22317,7 +22320,7 @@ func (c *ProjectsLocationsStoredInfoTypesPatchCall) Header() http.Header { func (c *ProjectsLocationsStoredInfoTypesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22460,7 +22463,7 @@ func (c *ProjectsStoredInfoTypesCreateCall) Header() http.Header { func (c *ProjectsStoredInfoTypesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22600,7 +22603,7 @@ func (c *ProjectsStoredInfoTypesDeleteCall) Header() http.Header { func (c *ProjectsStoredInfoTypesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22743,7 +22746,7 @@ func (c *ProjectsStoredInfoTypesGetCall) Header() http.Header { func (c *ProjectsStoredInfoTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22926,7 +22929,7 @@ func (c *ProjectsStoredInfoTypesListCall) Header() http.Header { func (c *ProjectsStoredInfoTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23109,7 +23112,7 @@ func (c *ProjectsStoredInfoTypesPatchCall) Header() http.Header { func (c *ProjectsStoredInfoTypesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/dns/v1/dns-gen.go b/dns/v1/dns-gen.go index 5b5c608a2e8..79138f0fdf0 100644 --- a/dns/v1/dns-gen.go +++ b/dns/v1/dns-gen.go @@ -1973,7 +1973,7 @@ func (c *ChangesCreateCall) Header() http.Header { func (c *ChangesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2148,7 +2148,7 @@ func (c *ChangesGetCall) Header() http.Header { func (c *ChangesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2350,7 +2350,7 @@ func (c *ChangesListCall) Header() http.Header { func (c *ChangesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2575,7 +2575,7 @@ func (c *DnsKeysGetCall) Header() http.Header { func (c *DnsKeysGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2774,7 +2774,7 @@ func (c *DnsKeysListCall) Header() http.Header { func (c *DnsKeysListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2978,7 +2978,7 @@ func (c *ManagedZoneOperationsGetCall) Header() http.Header { func (c *ManagedZoneOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3174,7 +3174,7 @@ func (c *ManagedZoneOperationsListCall) Header() http.Header { func (c *ManagedZoneOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3375,7 +3375,7 @@ func (c *ManagedZonesCreateCall) Header() http.Header { func (c *ManagedZonesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3529,7 +3529,7 @@ func (c *ManagedZonesDeleteCall) Header() http.Header { func (c *ManagedZonesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3666,7 +3666,7 @@ func (c *ManagedZonesGetCall) Header() http.Header { func (c *ManagedZonesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3849,7 +3849,7 @@ func (c *ManagedZonesListCall) Header() http.Header { func (c *ManagedZonesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4034,7 +4034,7 @@ func (c *ManagedZonesPatchCall) Header() http.Header { func (c *ManagedZonesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4198,7 +4198,7 @@ func (c *ManagedZonesUpdateCall) Header() http.Header { func (c *ManagedZonesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4360,7 +4360,7 @@ func (c *PoliciesCreateCall) Header() http.Header { func (c *PoliciesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4515,7 +4515,7 @@ func (c *PoliciesDeleteCall) Header() http.Header { func (c *PoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4652,7 +4652,7 @@ func (c *PoliciesGetCall) Header() http.Header { func (c *PoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4827,7 +4827,7 @@ func (c *PoliciesListCall) Header() http.Header { func (c *PoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5007,7 +5007,7 @@ func (c *PoliciesPatchCall) Header() http.Header { func (c *PoliciesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5171,7 +5171,7 @@ func (c *PoliciesUpdateCall) Header() http.Header { func (c *PoliciesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5342,7 +5342,7 @@ func (c *ProjectsGetCall) Header() http.Header { func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5527,7 +5527,7 @@ func (c *ResourceRecordSetsListCall) Header() http.Header { func (c *ResourceRecordSetsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/dns/v1beta2/dns-api.json b/dns/v1beta2/dns-api.json index 17dc712d36c..6bb401f8543 100644 --- a/dns/v1beta2/dns-api.json +++ b/dns/v1beta2/dns-api.json @@ -975,6 +975,214 @@ "https://www.googleapis.com/auth/ndev.clouddns.readwrite" ] } + }, + "resources": { + "managedZones": { + "resources": { + "rrsets": { + "methods": { + "create": { + "description": "Create a new ResourceRecordSet.", + "flatPath": "dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets", + "httpMethod": "POST", + "id": "dns.projects.managedZones.rrsets.create", + "parameterOrder": [ + "project", + "managedZone" + ], + "parameters": { + "clientOperationId": { + "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", + "location": "query", + "type": "string" + }, + "managedZone": { + "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.", + "location": "path", + "required": true, + "type": "string" + }, + "project": { + "description": "Identifies the project addressed by this request.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets", + "request": { + "$ref": "ResourceRecordSet" + }, + "response": { + "$ref": "ResourceRecordSet" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/ndev.clouddns.readwrite" + ] + }, + "delete": { + "description": "Delete a previously created ResourceRecordSet.", + "flatPath": "dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}", + "httpMethod": "DELETE", + "id": "dns.projects.managedZones.rrsets.delete", + "parameterOrder": [ + "project", + "managedZone", + "name", + "type" + ], + "parameters": { + "clientOperationId": { + "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", + "location": "query", + "type": "string" + }, + "managedZone": { + "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.", + "location": "path", + "required": true, + "type": "string" + }, + "name": { + "description": "Fully qualified domain name.", + "location": "path", + "required": true, + "type": "string" + }, + "project": { + "description": "Identifies the project addressed by this request.", + "location": "path", + "required": true, + "type": "string" + }, + "type": { + "description": "RRSet type.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}", + "response": { + "$ref": "ResourceRecordSetsDeleteResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/ndev.clouddns.readwrite" + ] + }, + "get": { + "description": "Fetch the representation of an existing ResourceRecordSet.", + "flatPath": "dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}", + "httpMethod": "GET", + "id": "dns.projects.managedZones.rrsets.get", + "parameterOrder": [ + "project", + "managedZone", + "name", + "type" + ], + "parameters": { + "clientOperationId": { + "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", + "location": "query", + "type": "string" + }, + "managedZone": { + "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.", + "location": "path", + "required": true, + "type": "string" + }, + "name": { + "description": "Fully qualified domain name.", + "location": "path", + "required": true, + "type": "string" + }, + "project": { + "description": "Identifies the project addressed by this request.", + "location": "path", + "required": true, + "type": "string" + }, + "type": { + "description": "RRSet type.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}", + "response": { + "$ref": "ResourceRecordSet" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/ndev.clouddns.readonly", + "https://www.googleapis.com/auth/ndev.clouddns.readwrite" + ] + }, + "patch": { + "description": "Apply a partial update to an existing ResourceRecordSet.", + "flatPath": "dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}", + "httpMethod": "PATCH", + "id": "dns.projects.managedZones.rrsets.patch", + "parameterOrder": [ + "project", + "managedZone", + "name", + "type" + ], + "parameters": { + "clientOperationId": { + "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", + "location": "query", + "type": "string" + }, + "managedZone": { + "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.", + "location": "path", + "required": true, + "type": "string" + }, + "name": { + "description": "Fully qualified domain name.", + "location": "path", + "required": true, + "type": "string" + }, + "project": { + "description": "Identifies the project addressed by this request.", + "location": "path", + "required": true, + "type": "string" + }, + "type": { + "description": "RRSet type.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}", + "request": { + "$ref": "ResourceRecordSet" + }, + "response": { + "$ref": "ResourceRecordSet" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/ndev.clouddns.readwrite" + ] + } + } + } + } + } } }, "resourceRecordSets": { @@ -1037,7 +1245,7 @@ } } }, - "revision": "20201013", + "revision": "20201110", "rootUrl": "https://dns.googleapis.com/", "schemas": { "Change": { @@ -2101,6 +2309,11 @@ }, "type": "object" }, + "ResourceRecordSetsDeleteResponse": { + "id": "ResourceRecordSetsDeleteResponse", + "properties": {}, + "type": "object" + }, "ResourceRecordSetsListResponse": { "id": "ResourceRecordSetsListResponse", "properties": { diff --git a/dns/v1beta2/dns-gen.go b/dns/v1beta2/dns-gen.go index a7a1a5ae982..28fe266964e 100644 --- a/dns/v1beta2/dns-gen.go +++ b/dns/v1beta2/dns-gen.go @@ -216,11 +216,35 @@ type PoliciesService struct { func NewProjectsService(s *Service) *ProjectsService { rs := &ProjectsService{s: s} + rs.ManagedZones = NewProjectsManagedZonesService(s) return rs } type ProjectsService struct { s *Service + + ManagedZones *ProjectsManagedZonesService +} + +func NewProjectsManagedZonesService(s *Service) *ProjectsManagedZonesService { + rs := &ProjectsManagedZonesService{s: s} + rs.Rrsets = NewProjectsManagedZonesRrsetsService(s) + return rs +} + +type ProjectsManagedZonesService struct { + s *Service + + Rrsets *ProjectsManagedZonesRrsetsService +} + +func NewProjectsManagedZonesRrsetsService(s *Service) *ProjectsManagedZonesRrsetsService { + rs := &ProjectsManagedZonesRrsetsService{s: s} + return rs +} + +type ProjectsManagedZonesRrsetsService struct { + s *Service } func NewResourceRecordSetsService(s *Service) *ResourceRecordSetsService { @@ -1888,6 +1912,10 @@ type ResourceRecordSet struct { // Supported DNS record types. Type string `json:"type,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, @@ -1911,6 +1939,12 @@ func (s *ResourceRecordSet) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type ResourceRecordSetsDeleteResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + type ResourceRecordSetsListResponse struct { Header *ResponseHeader `json:"header,omitempty"` @@ -2045,7 +2079,7 @@ func (c *ChangesCreateCall) Header() http.Header { func (c *ChangesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2220,7 +2254,7 @@ func (c *ChangesGetCall) Header() http.Header { func (c *ChangesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2422,7 +2456,7 @@ func (c *ChangesListCall) Header() http.Header { func (c *ChangesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2647,7 +2681,7 @@ func (c *DnsKeysGetCall) Header() http.Header { func (c *DnsKeysGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2846,7 +2880,7 @@ func (c *DnsKeysListCall) Header() http.Header { func (c *DnsKeysListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3050,7 +3084,7 @@ func (c *ManagedZoneOperationsGetCall) Header() http.Header { func (c *ManagedZoneOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3246,7 +3280,7 @@ func (c *ManagedZoneOperationsListCall) Header() http.Header { func (c *ManagedZoneOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3447,7 +3481,7 @@ func (c *ManagedZonesCreateCall) Header() http.Header { func (c *ManagedZonesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3601,7 +3635,7 @@ func (c *ManagedZonesDeleteCall) Header() http.Header { func (c *ManagedZonesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3738,7 +3772,7 @@ func (c *ManagedZonesGetCall) Header() http.Header { func (c *ManagedZonesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3921,7 +3955,7 @@ func (c *ManagedZonesListCall) Header() http.Header { func (c *ManagedZonesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4106,7 +4140,7 @@ func (c *ManagedZonesPatchCall) Header() http.Header { func (c *ManagedZonesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4270,7 +4304,7 @@ func (c *ManagedZonesUpdateCall) Header() http.Header { func (c *ManagedZonesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4432,7 +4466,7 @@ func (c *PoliciesCreateCall) Header() http.Header { func (c *PoliciesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4587,7 +4621,7 @@ func (c *PoliciesDeleteCall) Header() http.Header { func (c *PoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4724,7 +4758,7 @@ func (c *PoliciesGetCall) Header() http.Header { func (c *PoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4899,7 +4933,7 @@ func (c *PoliciesListCall) Header() http.Header { func (c *PoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5079,7 +5113,7 @@ func (c *PoliciesPatchCall) Header() http.Header { func (c *PoliciesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5243,7 +5277,7 @@ func (c *PoliciesUpdateCall) Header() http.Header { func (c *PoliciesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5414,7 +5448,7 @@ func (c *ProjectsGetCall) Header() http.Header { func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5510,6 +5544,718 @@ func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { } +// method id "dns.projects.managedZones.rrsets.create": + +type ProjectsManagedZonesRrsetsCreateCall struct { + s *Service + project string + managedZone string + resourcerecordset *ResourceRecordSet + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Create a new ResourceRecordSet. +func (r *ProjectsManagedZonesRrsetsService) Create(project string, managedZone string, resourcerecordset *ResourceRecordSet) *ProjectsManagedZonesRrsetsCreateCall { + c := &ProjectsManagedZonesRrsetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.managedZone = managedZone + c.resourcerecordset = resourcerecordset + return c +} + +// ClientOperationId sets the optional parameter "clientOperationId": +// For mutating operation requests only. An optional identifier +// specified by the client. Must be unique for operation resources in +// the Operations collection. +func (c *ProjectsManagedZonesRrsetsCreateCall) ClientOperationId(clientOperationId string) *ProjectsManagedZonesRrsetsCreateCall { + c.urlParams_.Set("clientOperationId", clientOperationId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsManagedZonesRrsetsCreateCall) Fields(s ...googleapi.Field) *ProjectsManagedZonesRrsetsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsManagedZonesRrsetsCreateCall) Context(ctx context.Context) *ProjectsManagedZonesRrsetsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsManagedZonesRrsetsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsManagedZonesRrsetsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.resourcerecordset) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "managedZone": c.managedZone, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dns.projects.managedZones.rrsets.create" call. +// Exactly one of *ResourceRecordSet or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ResourceRecordSet.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsManagedZonesRrsetsCreateCall) Do(opts ...googleapi.CallOption) (*ResourceRecordSet, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ResourceRecordSet{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Create a new ResourceRecordSet.", + // "flatPath": "dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets", + // "httpMethod": "POST", + // "id": "dns.projects.managedZones.rrsets.create", + // "parameterOrder": [ + // "project", + // "managedZone" + // ], + // "parameters": { + // "clientOperationId": { + // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", + // "location": "query", + // "type": "string" + // }, + // "managedZone": { + // "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "project": { + // "description": "Identifies the project addressed by this request.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets", + // "request": { + // "$ref": "ResourceRecordSet" + // }, + // "response": { + // "$ref": "ResourceRecordSet" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" + // ] + // } + +} + +// method id "dns.projects.managedZones.rrsets.delete": + +type ProjectsManagedZonesRrsetsDeleteCall struct { + s *Service + project string + managedZone string + name string + type_ string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Delete a previously created ResourceRecordSet. +func (r *ProjectsManagedZonesRrsetsService) Delete(project string, managedZone string, name string, type_ string) *ProjectsManagedZonesRrsetsDeleteCall { + c := &ProjectsManagedZonesRrsetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.managedZone = managedZone + c.name = name + c.type_ = type_ + return c +} + +// ClientOperationId sets the optional parameter "clientOperationId": +// For mutating operation requests only. An optional identifier +// specified by the client. Must be unique for operation resources in +// the Operations collection. +func (c *ProjectsManagedZonesRrsetsDeleteCall) ClientOperationId(clientOperationId string) *ProjectsManagedZonesRrsetsDeleteCall { + c.urlParams_.Set("clientOperationId", clientOperationId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsManagedZonesRrsetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsManagedZonesRrsetsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsManagedZonesRrsetsDeleteCall) Context(ctx context.Context) *ProjectsManagedZonesRrsetsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsManagedZonesRrsetsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsManagedZonesRrsetsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "managedZone": c.managedZone, + "name": c.name, + "type": c.type_, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dns.projects.managedZones.rrsets.delete" call. +// Exactly one of *ResourceRecordSetsDeleteResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ResourceRecordSetsDeleteResponse.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsManagedZonesRrsetsDeleteCall) Do(opts ...googleapi.CallOption) (*ResourceRecordSetsDeleteResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ResourceRecordSetsDeleteResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Delete a previously created ResourceRecordSet.", + // "flatPath": "dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}", + // "httpMethod": "DELETE", + // "id": "dns.projects.managedZones.rrsets.delete", + // "parameterOrder": [ + // "project", + // "managedZone", + // "name", + // "type" + // ], + // "parameters": { + // "clientOperationId": { + // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", + // "location": "query", + // "type": "string" + // }, + // "managedZone": { + // "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "name": { + // "description": "Fully qualified domain name.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "project": { + // "description": "Identifies the project addressed by this request.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "type": { + // "description": "RRSet type.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}", + // "response": { + // "$ref": "ResourceRecordSetsDeleteResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" + // ] + // } + +} + +// method id "dns.projects.managedZones.rrsets.get": + +type ProjectsManagedZonesRrsetsGetCall struct { + s *Service + project string + managedZone string + name string + type_ string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Fetch the representation of an existing ResourceRecordSet. +func (r *ProjectsManagedZonesRrsetsService) Get(project string, managedZone string, name string, type_ string) *ProjectsManagedZonesRrsetsGetCall { + c := &ProjectsManagedZonesRrsetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.managedZone = managedZone + c.name = name + c.type_ = type_ + return c +} + +// ClientOperationId sets the optional parameter "clientOperationId": +// For mutating operation requests only. An optional identifier +// specified by the client. Must be unique for operation resources in +// the Operations collection. +func (c *ProjectsManagedZonesRrsetsGetCall) ClientOperationId(clientOperationId string) *ProjectsManagedZonesRrsetsGetCall { + c.urlParams_.Set("clientOperationId", clientOperationId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsManagedZonesRrsetsGetCall) Fields(s ...googleapi.Field) *ProjectsManagedZonesRrsetsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsManagedZonesRrsetsGetCall) IfNoneMatch(entityTag string) *ProjectsManagedZonesRrsetsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsManagedZonesRrsetsGetCall) Context(ctx context.Context) *ProjectsManagedZonesRrsetsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsManagedZonesRrsetsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsManagedZonesRrsetsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "managedZone": c.managedZone, + "name": c.name, + "type": c.type_, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dns.projects.managedZones.rrsets.get" call. +// Exactly one of *ResourceRecordSet or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ResourceRecordSet.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsManagedZonesRrsetsGetCall) Do(opts ...googleapi.CallOption) (*ResourceRecordSet, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ResourceRecordSet{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Fetch the representation of an existing ResourceRecordSet.", + // "flatPath": "dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}", + // "httpMethod": "GET", + // "id": "dns.projects.managedZones.rrsets.get", + // "parameterOrder": [ + // "project", + // "managedZone", + // "name", + // "type" + // ], + // "parameters": { + // "clientOperationId": { + // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", + // "location": "query", + // "type": "string" + // }, + // "managedZone": { + // "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "name": { + // "description": "Fully qualified domain name.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "project": { + // "description": "Identifies the project addressed by this request.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "type": { + // "description": "RRSet type.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}", + // "response": { + // "$ref": "ResourceRecordSet" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/ndev.clouddns.readonly", + // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" + // ] + // } + +} + +// method id "dns.projects.managedZones.rrsets.patch": + +type ProjectsManagedZonesRrsetsPatchCall struct { + s *Service + project string + managedZone string + name string + type_ string + resourcerecordset *ResourceRecordSet + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Apply a partial update to an existing ResourceRecordSet. +func (r *ProjectsManagedZonesRrsetsService) Patch(project string, managedZone string, name string, type_ string, resourcerecordset *ResourceRecordSet) *ProjectsManagedZonesRrsetsPatchCall { + c := &ProjectsManagedZonesRrsetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.managedZone = managedZone + c.name = name + c.type_ = type_ + c.resourcerecordset = resourcerecordset + return c +} + +// ClientOperationId sets the optional parameter "clientOperationId": +// For mutating operation requests only. An optional identifier +// specified by the client. Must be unique for operation resources in +// the Operations collection. +func (c *ProjectsManagedZonesRrsetsPatchCall) ClientOperationId(clientOperationId string) *ProjectsManagedZonesRrsetsPatchCall { + c.urlParams_.Set("clientOperationId", clientOperationId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsManagedZonesRrsetsPatchCall) Fields(s ...googleapi.Field) *ProjectsManagedZonesRrsetsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsManagedZonesRrsetsPatchCall) Context(ctx context.Context) *ProjectsManagedZonesRrsetsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsManagedZonesRrsetsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsManagedZonesRrsetsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.resourcerecordset) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "managedZone": c.managedZone, + "name": c.name, + "type": c.type_, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dns.projects.managedZones.rrsets.patch" call. +// Exactly one of *ResourceRecordSet or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ResourceRecordSet.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsManagedZonesRrsetsPatchCall) Do(opts ...googleapi.CallOption) (*ResourceRecordSet, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ResourceRecordSet{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Apply a partial update to an existing ResourceRecordSet.", + // "flatPath": "dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}", + // "httpMethod": "PATCH", + // "id": "dns.projects.managedZones.rrsets.patch", + // "parameterOrder": [ + // "project", + // "managedZone", + // "name", + // "type" + // ], + // "parameters": { + // "clientOperationId": { + // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", + // "location": "query", + // "type": "string" + // }, + // "managedZone": { + // "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "name": { + // "description": "Fully qualified domain name.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "project": { + // "description": "Identifies the project addressed by this request.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "type": { + // "description": "RRSet type.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}", + // "request": { + // "$ref": "ResourceRecordSet" + // }, + // "response": { + // "$ref": "ResourceRecordSet" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" + // ] + // } + +} + // method id "dns.resourceRecordSets.list": type ResourceRecordSetsListCall struct { @@ -5599,7 +6345,7 @@ func (c *ResourceRecordSetsListCall) Header() http.Header { func (c *ResourceRecordSetsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/docs/v1/docs-gen.go b/docs/v1/docs-gen.go index 33a2490efb0..d238fad4be8 100644 --- a/docs/v1/docs-gen.go +++ b/docs/v1/docs-gen.go @@ -7027,7 +7027,7 @@ func (c *DocumentsBatchUpdateCall) Header() http.Header { func (c *DocumentsBatchUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7168,7 +7168,7 @@ func (c *DocumentsCreateCall) Header() http.Header { func (c *DocumentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7335,7 +7335,7 @@ func (c *DocumentsGetCall) Header() http.Header { func (c *DocumentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/documentai/v1beta2/documentai-gen.go b/documentai/v1beta2/documentai-gen.go index a2532686eb8..c637bf5ce76 100644 --- a/documentai/v1beta2/documentai-gen.go +++ b/documentai/v1beta2/documentai-gen.go @@ -5454,7 +5454,7 @@ func (c *ProjectsDocumentsBatchProcessCall) Header() http.Header { func (c *ProjectsDocumentsBatchProcessCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201027") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5594,7 +5594,7 @@ func (c *ProjectsDocumentsProcessCall) Header() http.Header { func (c *ProjectsDocumentsProcessCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201027") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5736,7 +5736,7 @@ func (c *ProjectsLocationsDocumentsBatchProcessCall) Header() http.Header { func (c *ProjectsLocationsDocumentsBatchProcessCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201027") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5876,7 +5876,7 @@ func (c *ProjectsLocationsDocumentsProcessCall) Header() http.Header { func (c *ProjectsLocationsDocumentsProcessCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201027") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6028,7 +6028,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201027") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6174,7 +6174,7 @@ func (c *ProjectsOperationsGetCall) Header() http.Header { func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201027") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/documentai/v1beta3/documentai-gen.go b/documentai/v1beta3/documentai-gen.go index ef6661a9310..cbeca1164b9 100644 --- a/documentai/v1beta3/documentai-gen.go +++ b/documentai/v1beta3/documentai-gen.go @@ -6989,7 +6989,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201027") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7155,7 +7155,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201027") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7340,7 +7340,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201027") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7476,7 +7476,7 @@ func (c *ProjectsLocationsProcessorsBatchProcessCall) Header() http.Header { func (c *ProjectsLocationsProcessorsBatchProcessCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201027") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7616,7 +7616,7 @@ func (c *ProjectsLocationsProcessorsProcessCall) Header() http.Header { func (c *ProjectsLocationsProcessorsProcessCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201027") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7759,7 +7759,7 @@ func (c *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall) Header( func (c *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201027") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/domains/v1alpha2/domains-api.json b/domains/v1alpha2/domains-api.json index f3b84adfb68..8ab85a294c7 100644 --- a/domains/v1alpha2/domains-api.json +++ b/domains/v1alpha2/domains-api.json @@ -721,7 +721,7 @@ } } }, - "revision": "20201013", + "revision": "20201110", "rootUrl": "https://domains.googleapis.com/", "schemas": { "AuditConfig": { diff --git a/domains/v1alpha2/domains-gen.go b/domains/v1alpha2/domains-gen.go index e8f5da9bb61..3daa8b5b845 100644 --- a/domains/v1alpha2/domains-gen.go +++ b/domains/v1alpha2/domains-gen.go @@ -2061,7 +2061,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2227,7 +2227,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2410,7 +2410,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2584,7 +2584,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2758,7 +2758,7 @@ func (c *ProjectsLocationsRegistrationsConfigureContactSettingsCall) Header() ht func (c *ProjectsLocationsRegistrationsConfigureContactSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2898,7 +2898,7 @@ func (c *ProjectsLocationsRegistrationsConfigureDnsSettingsCall) Header() http.H func (c *ProjectsLocationsRegistrationsConfigureDnsSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3039,7 +3039,7 @@ func (c *ProjectsLocationsRegistrationsConfigureManagementSettingsCall) Header() func (c *ProjectsLocationsRegistrationsConfigureManagementSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3179,7 +3179,7 @@ func (c *ProjectsLocationsRegistrationsDeleteCall) Header() http.Header { func (c *ProjectsLocationsRegistrationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3320,7 +3320,7 @@ func (c *ProjectsLocationsRegistrationsExportCall) Header() http.Header { func (c *ProjectsLocationsRegistrationsExportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3469,7 +3469,7 @@ func (c *ProjectsLocationsRegistrationsGetCall) Header() http.Header { func (c *ProjectsLocationsRegistrationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3630,7 +3630,7 @@ func (c *ProjectsLocationsRegistrationsGetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsRegistrationsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3814,7 +3814,7 @@ func (c *ProjectsLocationsRegistrationsListCall) Header() http.Header { func (c *ProjectsLocationsRegistrationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4000,7 +4000,7 @@ func (c *ProjectsLocationsRegistrationsPatchCall) Header() http.Header { func (c *ProjectsLocationsRegistrationsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4155,7 +4155,7 @@ func (c *ProjectsLocationsRegistrationsRegisterCall) Header() http.Header { func (c *ProjectsLocationsRegistrationsRegisterCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4297,7 +4297,7 @@ func (c *ProjectsLocationsRegistrationsResetAuthorizationCodeCall) Header() http func (c *ProjectsLocationsRegistrationsResetAuthorizationCodeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4449,7 +4449,7 @@ func (c *ProjectsLocationsRegistrationsRetrieveAuthorizationCodeCall) Header() h func (c *ProjectsLocationsRegistrationsRetrieveAuthorizationCodeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4603,7 +4603,7 @@ func (c *ProjectsLocationsRegistrationsRetrieveRegisterParametersCall) Header() func (c *ProjectsLocationsRegistrationsRetrieveRegisterParametersCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4763,7 +4763,7 @@ func (c *ProjectsLocationsRegistrationsSearchDomainsCall) Header() http.Header { func (c *ProjectsLocationsRegistrationsSearchDomainsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4905,7 +4905,7 @@ func (c *ProjectsLocationsRegistrationsSetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsRegistrationsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5050,7 +5050,7 @@ func (c *ProjectsLocationsRegistrationsTestIamPermissionsCall) Header() http.Hea func (c *ProjectsLocationsRegistrationsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/domains/v1beta1/domains-api.json b/domains/v1beta1/domains-api.json index bff144a4f2b..67b236e387c 100644 --- a/domains/v1beta1/domains-api.json +++ b/domains/v1beta1/domains-api.json @@ -721,7 +721,7 @@ } } }, - "revision": "20201013", + "revision": "20201110", "rootUrl": "https://domains.googleapis.com/", "schemas": { "AuditConfig": { diff --git a/domains/v1beta1/domains-gen.go b/domains/v1beta1/domains-gen.go index acb842bf9b4..29fe9b79ffe 100644 --- a/domains/v1beta1/domains-gen.go +++ b/domains/v1beta1/domains-gen.go @@ -2061,7 +2061,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2227,7 +2227,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2410,7 +2410,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2584,7 +2584,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2758,7 +2758,7 @@ func (c *ProjectsLocationsRegistrationsConfigureContactSettingsCall) Header() ht func (c *ProjectsLocationsRegistrationsConfigureContactSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2898,7 +2898,7 @@ func (c *ProjectsLocationsRegistrationsConfigureDnsSettingsCall) Header() http.H func (c *ProjectsLocationsRegistrationsConfigureDnsSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3039,7 +3039,7 @@ func (c *ProjectsLocationsRegistrationsConfigureManagementSettingsCall) Header() func (c *ProjectsLocationsRegistrationsConfigureManagementSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3179,7 +3179,7 @@ func (c *ProjectsLocationsRegistrationsDeleteCall) Header() http.Header { func (c *ProjectsLocationsRegistrationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3320,7 +3320,7 @@ func (c *ProjectsLocationsRegistrationsExportCall) Header() http.Header { func (c *ProjectsLocationsRegistrationsExportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3469,7 +3469,7 @@ func (c *ProjectsLocationsRegistrationsGetCall) Header() http.Header { func (c *ProjectsLocationsRegistrationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3630,7 +3630,7 @@ func (c *ProjectsLocationsRegistrationsGetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsRegistrationsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3814,7 +3814,7 @@ func (c *ProjectsLocationsRegistrationsListCall) Header() http.Header { func (c *ProjectsLocationsRegistrationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4000,7 +4000,7 @@ func (c *ProjectsLocationsRegistrationsPatchCall) Header() http.Header { func (c *ProjectsLocationsRegistrationsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4155,7 +4155,7 @@ func (c *ProjectsLocationsRegistrationsRegisterCall) Header() http.Header { func (c *ProjectsLocationsRegistrationsRegisterCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4297,7 +4297,7 @@ func (c *ProjectsLocationsRegistrationsResetAuthorizationCodeCall) Header() http func (c *ProjectsLocationsRegistrationsResetAuthorizationCodeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4449,7 +4449,7 @@ func (c *ProjectsLocationsRegistrationsRetrieveAuthorizationCodeCall) Header() h func (c *ProjectsLocationsRegistrationsRetrieveAuthorizationCodeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4603,7 +4603,7 @@ func (c *ProjectsLocationsRegistrationsRetrieveRegisterParametersCall) Header() func (c *ProjectsLocationsRegistrationsRetrieveRegisterParametersCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4763,7 +4763,7 @@ func (c *ProjectsLocationsRegistrationsSearchDomainsCall) Header() http.Header { func (c *ProjectsLocationsRegistrationsSearchDomainsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4905,7 +4905,7 @@ func (c *ProjectsLocationsRegistrationsSetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsRegistrationsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5050,7 +5050,7 @@ func (c *ProjectsLocationsRegistrationsTestIamPermissionsCall) Header() http.Hea func (c *ProjectsLocationsRegistrationsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/domainsrdap/v1/domainsrdap-gen.go b/domainsrdap/v1/domainsrdap-gen.go index f1532d68b4c..3b2441d090e 100644 --- a/domainsrdap/v1/domainsrdap-gen.go +++ b/domainsrdap/v1/domainsrdap-gen.go @@ -449,7 +449,7 @@ func (c *AutnumGetCall) Header() http.Header { func (c *AutnumGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -588,7 +588,7 @@ func (c *DomainGetCall) Header() http.Header { func (c *DomainGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -730,7 +730,7 @@ func (c *EntityGetCall) Header() http.Header { func (c *EntityGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -872,7 +872,7 @@ func (c *IpGetCall) Header() http.Header { func (c *IpGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1019,7 +1019,7 @@ func (c *NameserverGetCall) Header() http.Header { func (c *NameserverGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1158,7 +1158,7 @@ func (c *V1GetDomainsCall) Header() http.Header { func (c *V1GetDomainsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1286,7 +1286,7 @@ func (c *V1GetEntitiesCall) Header() http.Header { func (c *V1GetEntitiesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1413,7 +1413,7 @@ func (c *V1GetHelpCall) Header() http.Header { func (c *V1GetHelpCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1541,7 +1541,7 @@ func (c *V1GetIpCall) Header() http.Header { func (c *V1GetIpCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1669,7 +1669,7 @@ func (c *V1GetNameserversCall) Header() http.Header { func (c *V1GetNameserversCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/doubleclickbidmanager/v1.1/doubleclickbidmanager-api.json b/doubleclickbidmanager/v1.1/doubleclickbidmanager-api.json index b66fb847ee0..d82bf375a62 100644 --- a/doubleclickbidmanager/v1.1/doubleclickbidmanager-api.json +++ b/doubleclickbidmanager/v1.1/doubleclickbidmanager-api.json @@ -342,7 +342,7 @@ } } }, - "revision": "20201016", + "revision": "20201105", "rootUrl": "https://doubleclickbidmanager.googleapis.com/", "schemas": { "ChannelGrouping": { @@ -811,7 +811,9 @@ "FILTER_PATH_PATTERN_ID", "FILTER_PATH_EVENT_INDEX", "FILTER_EVENT_TYPE", - "FILTER_CHANNEL_GROUPING" + "FILTER_CHANNEL_GROUPING", + "FILTER_OM_SDK_AVAILABLE", + "FILTER_DATA_SOURCE" ], "enumDescriptions": [ "", @@ -1074,6 +1076,8 @@ "", "", "", + "", + "", "" ], "type": "string" @@ -1419,7 +1423,9 @@ "FILTER_PATH_PATTERN_ID", "FILTER_PATH_EVENT_INDEX", "FILTER_EVENT_TYPE", - "FILTER_CHANNEL_GROUPING" + "FILTER_CHANNEL_GROUPING", + "FILTER_OM_SDK_AVAILABLE", + "FILTER_DATA_SOURCE" ], "enumDescriptions": [ "", @@ -1682,6 +1688,8 @@ "", "", "", + "", + "", "" ], "type": "string" @@ -2963,7 +2971,9 @@ "FILTER_PATH_PATTERN_ID", "FILTER_PATH_EVENT_INDEX", "FILTER_EVENT_TYPE", - "FILTER_CHANNEL_GROUPING" + "FILTER_CHANNEL_GROUPING", + "FILTER_OM_SDK_AVAILABLE", + "FILTER_DATA_SOURCE" ], "enumDescriptions": [ "", @@ -3226,6 +3236,8 @@ "", "", "", + "", + "", "" ], "type": "string" diff --git a/doubleclickbidmanager/v1.1/doubleclickbidmanager-gen.go b/doubleclickbidmanager/v1.1/doubleclickbidmanager-gen.go index 4bd6d9d5c6c..f82adfe01db 100644 --- a/doubleclickbidmanager/v1.1/doubleclickbidmanager-gen.go +++ b/doubleclickbidmanager/v1.1/doubleclickbidmanager-gen.go @@ -734,6 +734,8 @@ type FilterPair struct { // "FILTER_PATH_EVENT_INDEX" // "FILTER_EVENT_TYPE" // "FILTER_CHANNEL_GROUPING" + // "FILTER_OM_SDK_AVAILABLE" + // "FILTER_DATA_SOURCE" Type string `json:"type,omitempty"` // Value: Filter value. @@ -1145,6 +1147,8 @@ type Parameters struct { // "FILTER_PATH_EVENT_INDEX" // "FILTER_EVENT_TYPE" // "FILTER_CHANNEL_GROUPING" + // "FILTER_OM_SDK_AVAILABLE" + // "FILTER_DATA_SOURCE" GroupBys []string `json:"groupBys,omitempty"` // IncludeInviteData: Deprecated. This field is no longer in use. @@ -2019,6 +2023,8 @@ type PathQueryOptionsFilter struct { // "FILTER_PATH_EVENT_INDEX" // "FILTER_EVENT_TYPE" // "FILTER_CHANNEL_GROUPING" + // "FILTER_OM_SDK_AVAILABLE" + // "FILTER_DATA_SOURCE" Filter string `json:"filter,omitempty"` // Match: Indicates how the filter should be matched to the value. @@ -2758,7 +2764,7 @@ func (c *LineitemsDownloadlineitemsCall) Header() http.Header { func (c *LineitemsDownloadlineitemsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2884,7 +2890,7 @@ func (c *LineitemsUploadlineitemsCall) Header() http.Header { func (c *LineitemsUploadlineitemsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3017,7 +3023,7 @@ func (c *QueriesCreatequeryCall) Header() http.Header { func (c *QueriesCreatequeryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3150,7 +3156,7 @@ func (c *QueriesDeletequeryCall) Header() http.Header { func (c *QueriesDeletequeryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3263,7 +3269,7 @@ func (c *QueriesGetqueryCall) Header() http.Header { func (c *QueriesGetqueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3420,7 +3426,7 @@ func (c *QueriesListqueriesCall) Header() http.Header { func (c *QueriesListqueriesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3582,7 +3588,7 @@ func (c *QueriesRunqueryCall) Header() http.Header { func (c *QueriesRunqueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3724,7 +3730,7 @@ func (c *ReportsListreportsCall) Header() http.Header { func (c *ReportsListreportsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3889,7 +3895,7 @@ func (c *SdfDownloadCall) Header() http.Header { func (c *SdfDownloadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/doubleclickbidmanager/v1/doubleclickbidmanager-gen.go b/doubleclickbidmanager/v1/doubleclickbidmanager-gen.go index bb9ef309ddb..a939b96fca3 100644 --- a/doubleclickbidmanager/v1/doubleclickbidmanager-gen.go +++ b/doubleclickbidmanager/v1/doubleclickbidmanager-gen.go @@ -1719,7 +1719,7 @@ func (c *LineitemsDownloadlineitemsCall) Header() http.Header { func (c *LineitemsDownloadlineitemsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1845,7 +1845,7 @@ func (c *LineitemsUploadlineitemsCall) Header() http.Header { func (c *LineitemsUploadlineitemsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1970,7 +1970,7 @@ func (c *QueriesCreatequeryCall) Header() http.Header { func (c *QueriesCreatequeryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2096,7 +2096,7 @@ func (c *QueriesDeletequeryCall) Header() http.Header { func (c *QueriesDeletequeryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2209,7 +2209,7 @@ func (c *QueriesGetqueryCall) Header() http.Header { func (c *QueriesGetqueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2351,7 +2351,7 @@ func (c *QueriesListqueriesCall) Header() http.Header { func (c *QueriesListqueriesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2473,7 +2473,7 @@ func (c *QueriesRunqueryCall) Header() http.Header { func (c *QueriesRunqueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2594,7 +2594,7 @@ func (c *ReportsListreportsCall) Header() http.Header { func (c *ReportsListreportsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2727,7 +2727,7 @@ func (c *SdfDownloadCall) Header() http.Header { func (c *SdfDownloadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/doubleclicksearch/v2/doubleclicksearch-gen.go b/doubleclicksearch/v2/doubleclicksearch-gen.go index f093a3d9b07..da19cd295ce 100644 --- a/doubleclicksearch/v2/doubleclicksearch-gen.go +++ b/doubleclicksearch/v2/doubleclicksearch-gen.go @@ -1155,7 +1155,7 @@ func (c *ConversionGetCall) Header() http.Header { func (c *ConversionGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1368,7 +1368,7 @@ func (c *ConversionInsertCall) Header() http.Header { func (c *ConversionInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1493,7 +1493,7 @@ func (c *ConversionUpdateCall) Header() http.Header { func (c *ConversionUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1619,7 +1619,7 @@ func (c *ConversionUpdateAvailabilityCall) Header() http.Header { func (c *ConversionUpdateAvailabilityCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1744,7 +1744,7 @@ func (c *ReportsGenerateCall) Header() http.Header { func (c *ReportsGenerateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1880,7 +1880,7 @@ func (c *ReportsGetCall) Header() http.Header { func (c *ReportsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2025,7 +2025,7 @@ func (c *ReportsGetFileCall) Header() http.Header { func (c *ReportsGetFileCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2157,7 +2157,7 @@ func (c *ReportsRequestCall) Header() http.Header { func (c *ReportsRequestCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2295,7 +2295,7 @@ func (c *SavedColumnsListCall) Header() http.Header { func (c *SavedColumnsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/drive/v2/drive-api.json b/drive/v2/drive-api.json index 020f0047477..424948309f0 100644 --- a/drive/v2/drive-api.json +++ b/drive/v2/drive-api.json @@ -38,7 +38,7 @@ "description": "Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.", "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/drive/", - "etag": "\"-2NioU2H8y8siEzrBOV_qzRI6kQ/6fuP5JDS7CDwzVsd3cAc59pg_GE\"", + "etag": "\"-2NioU2H8y8siEzrBOV_qzRI6kQ/Bbkqvt0S850AmVe1JApOfKsd5Ng\"", "icons": { "x16": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_16.png", "x32": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_32.png" @@ -554,7 +554,7 @@ }, "enforceSingleParent": { "default": "false", - "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. If the item's last parent is removed, the item is placed under its owner's root.", + "description": "Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root.", "location": "query", "type": "boolean" }, @@ -617,7 +617,7 @@ "parameters": { "enforceSingleParent": { "default": "false", - "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. If the child's owner makes the request, the child is removed from all current folders and placed in the requested folder. Any other requests that increase the number of the child's parents fail, except when the canAddMyDriveParent file capability is true and a single parent is being added.", + "description": "Deprecated. Adding files to multiple folders is no longer supported. Use shortcuts instead.", "location": "query", "type": "boolean" }, @@ -1132,13 +1132,13 @@ "parameters": { "convert": { "default": "false", - "description": "Whether to convert this file to the corresponding Google Docs format.", + "description": "Whether to convert this file to the corresponding Docs Editors format.", "location": "query", "type": "boolean" }, "enforceSingleParent": { "default": "false", - "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. Requests that specify more than one parent fail.", + "description": "Deprecated. Copying files into multiple folders is no longer supported. Use shortcuts instead.", "location": "query", "type": "boolean" }, @@ -1232,7 +1232,7 @@ "parameters": { "enforceSingleParent": { "default": "false", - "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter will only take effect if the item is not in a shared drive. If an item's last parent is deleted but the item itself is not, the item will be placed under its owner's root.", + "description": "Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root.", "location": "query", "type": "boolean" }, @@ -1269,7 +1269,7 @@ "parameters": { "enforceSingleParent": { "default": "false", - "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter will only take effect if the item is not in a shared drive. If an item's last parent is deleted but the item itself is not, the item will be placed under its owner's root.", + "description": "Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root.", "location": "query", "type": "boolean" } @@ -1442,13 +1442,13 @@ "parameters": { "convert": { "default": "false", - "description": "Whether to convert this file to the corresponding Google Docs format.", + "description": "Whether to convert this file to the corresponding Docs Editors format.", "location": "query", "type": "boolean" }, "enforceSingleParent": { "default": "false", - "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. Requests that specify more than one parent fail.", + "description": "Deprecated. Creating files in multiple folders is no longer supported.", "location": "query", "type": "boolean" }, @@ -1673,7 +1673,7 @@ }, "enforceSingleParent": { "default": "false", - "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. If the item's owner makes a request to add a single parent, the item is removed from all current folders and placed in the requested folder. Other requests that increase the number of parents fail, except when the canAddMyDriveParent file capability is true and a single parent is being added.", + "description": "Deprecated. Adding files to multiple folders is no longer supported. Use shortcuts instead.", "location": "query", "type": "boolean" }, @@ -1961,7 +1961,7 @@ }, "enforceSingleParent": { "default": "false", - "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. If the item's owner makes a request to add a single parent, the item is removed from all current folders and placed in the requested folder. Other requests that increase the number of parents fail, except when the canAddMyDriveParent file capability is true and a single parent is being added.", + "description": "Deprecated. Adding files to multiple folders is no longer supported. Use shortcuts instead.", "location": "query", "type": "boolean" }, @@ -2181,7 +2181,7 @@ "parameters": { "enforceSingleParent": { "default": "false", - "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. If the item's last parent is removed, the item is placed under its owner's root.", + "description": "Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root.", "location": "query", "type": "boolean" }, @@ -2250,7 +2250,7 @@ "parameters": { "enforceSingleParent": { "default": "false", - "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. If the child's owner makes the request, the child is removed from all current folders and placed in the requested folder. Any other requests that increase the number of the child's parents fail, except when the canAddMyDriveParent file capability is true and a single parent is being added.", + "description": "Deprecated. Adding files to multiple folders is no longer supported. Use shortcuts instead.", "location": "query", "type": "boolean" }, @@ -2463,7 +2463,7 @@ }, "enforceSingleParent": { "default": "false", - "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. See moveToNewOwnersRoot for details.", + "description": "Deprecated. See moveToNewOwnersRoot for details.", "location": "query", "type": "boolean" }, @@ -2475,7 +2475,7 @@ }, "moveToNewOwnersRoot": { "default": "false", - "description": "This parameter only takes effect if the item is not in a shared drive and the request is attempting to transfer the ownership of the item. When set to true, the item will be moved to the new owner's My Drive root folder and all prior parents removed. If set to false, when enforceSingleParent=true, parents are not changed. If set to false, when enforceSingleParent=false, existing parents are not changed; however, the file will be added to the new owner's My Drive root folder, unless it is already in the new owner's My Drive.", + "description": "This parameter will only take effect if the item is not in a shared drive and the request is attempting to transfer the ownership of the item. If set to true, the item will be moved to the new owner's My Drive root folder and all prior parents removed. If set to false, parents are not changed.", "location": "query", "type": "boolean" }, @@ -3521,7 +3521,7 @@ } } }, - "revision": "20201012", + "revision": "20201115", "rootUrl": "https://www.googleapis.com/", "schemas": { "About": { @@ -3906,7 +3906,7 @@ "type": "boolean" }, "supportsImport": { - "description": "Whether this app supports importing Google Docs.", + "description": "Whether this app supports importing from Docs Editors.", "type": "boolean" }, "supportsMultiOpen": { @@ -4798,7 +4798,7 @@ "type": "string" }, "downloadUrl": { - "description": "Short lived download URL for the file. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.", + "description": "Short lived download URL for the file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.", "type": "string" }, "driveId": { @@ -4826,15 +4826,15 @@ "description": "A mapping from export format to URL", "type": "string" }, - "description": "Links for exporting Google Docs to specific formats.", + "description": "Links for exporting Docs Editors files to specific formats.", "type": "object" }, "fileExtension": { - "description": "The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.", + "description": "The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.", "type": "string" }, "fileSize": { - "description": "The size of the file in bytes. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.", + "description": "The size of the file in bytes. This field is populated for files with content stored in Google Drive and for files in Docs Editors; it is not populated for shortcut files.", "format": "int64", "type": "string" }, @@ -4843,7 +4843,7 @@ "type": "string" }, "fullFileExtension": { - "description": "The full file extension; extracted from the title. May contain multiple concatenated extensions, such as \"tar.gz\". Removing an extension from the title does not clear this field; however, changing the extension on the title does update this field. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.", + "description": "The full file extension; extracted from the title. May contain multiple concatenated extensions, such as \"tar.gz\". Removing an extension from the title does not clear this field; however, changing the extension on the title does update this field. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.", "type": "string" }, "hasAugmentedPermissions": { @@ -4855,7 +4855,7 @@ "type": "boolean" }, "headRevisionId": { - "description": "The ID of the file's head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.", + "description": "The ID of the file's head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.", "type": "string" }, "iconLink": { @@ -5051,7 +5051,7 @@ "type": "string" }, "md5Checksum": { - "description": "An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.", + "description": "An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.", "type": "string" }, "mimeType": { @@ -5661,7 +5661,7 @@ "description": "A mapping from export format to URL", "type": "string" }, - "description": "Links for exporting Google Docs to specific formats.", + "description": "Links for exporting Docs Editors files to specific formats.", "type": "object" }, "fileSize": { @@ -5704,15 +5704,15 @@ "type": "string" }, "pinned": { - "description": "Whether this revision is pinned to prevent automatic purging. This will only be populated and can only be modified on files with content stored in Drive which are not Google Docs. Revisions can also be pinned when they are created through the drive.files.insert/update/copy by using the pinned query parameter. Pinned revisions are stored indefinitely using additional storage quota, up to a maximum of 200 revisions.", + "description": "Whether this revision is pinned to prevent automatic purging. This will only be populated and can only be modified on files with content stored in Drive, excluding Docs Editors files. Revisions can also be pinned when they are created through the drive.files.insert/update/copy by using the pinned query parameter. Pinned revisions are stored indefinitely using additional storage quota, up to a maximum of 200 revisions.", "type": "boolean" }, "publishAuto": { - "description": "Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Google Docs.", + "description": "Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Docs Editors files.", "type": "boolean" }, "published": { - "description": "Whether this revision is published. This is only populated and can only be modified for Google Docs.", + "description": "Whether this revision is published. This is only populated and can only be modified for Docs Editors files.", "type": "boolean" }, "publishedLink": { @@ -5720,7 +5720,7 @@ "type": "string" }, "publishedOutsideDomain": { - "description": "Whether this revision is published outside the domain. This is only populated and can only be modified for Google Docs.", + "description": "Whether this revision is published outside the domain. This is only populated and can only be modified for Docs Editors files.", "type": "boolean" }, "selfLink": { diff --git a/drive/v2/drive-gen.go b/drive/v2/drive-gen.go index c54e60f1deb..19abd706be0 100644 --- a/drive/v2/drive-gen.go +++ b/drive/v2/drive-gen.go @@ -836,7 +836,8 @@ type App struct { // SupportsCreate: Whether this app supports creating new objects. SupportsCreate bool `json:"supportsCreate,omitempty"` - // SupportsImport: Whether this app supports importing Google Docs. + // SupportsImport: Whether this app supports importing from Docs + // Editors. SupportsImport bool `json:"supportsImport,omitempty"` // SupportsMultiOpen: Whether this app supports opening more than one @@ -1971,7 +1972,7 @@ type File struct { // DownloadUrl: Short lived download URL for the file. This field is // only populated for files with content stored in Google Drive; it is - // not populated for Google Docs or shortcut files. + // not populated for Docs Editors or shortcut files. DownloadUrl string `json:"downloadUrl,omitempty"` // DriveId: ID of the shared drive the file resides in. Only populated @@ -1991,18 +1992,19 @@ type File struct { // opposed to recursively trashed. ExplicitlyTrashed bool `json:"explicitlyTrashed,omitempty"` - // ExportLinks: Links for exporting Google Docs to specific formats. + // ExportLinks: Links for exporting Docs Editors files to specific + // formats. ExportLinks map[string]string `json:"exportLinks,omitempty"` // FileExtension: The final component of fullFileExtension with trailing // text that does not appear to be part of the extension removed. This // field is only populated for files with content stored in Google - // Drive; it is not populated for Google Docs or shortcut files. + // Drive; it is not populated for Docs Editors or shortcut files. FileExtension string `json:"fileExtension,omitempty"` - // FileSize: The size of the file in bytes. This field is only populated - // for files with content stored in Google Drive; it is not populated - // for Google Docs or shortcut files. + // FileSize: The size of the file in bytes. This field is populated for + // files with content stored in Google Drive and for files in Docs + // Editors; it is not populated for shortcut files. FileSize int64 `json:"fileSize,omitempty,string"` // FolderColorRgb: Folder color as an RGB hex string if the file is a @@ -2017,7 +2019,7 @@ type File struct { // Removing an extension from the title does not clear this field; // however, changing the extension on the title does update this field. // This field is only populated for files with content stored in Google - // Drive; it is not populated for Google Docs or shortcut files. + // Drive; it is not populated for Docs Editors or shortcut files. FullFileExtension string `json:"fullFileExtension,omitempty"` // HasAugmentedPermissions: Whether there are permissions directly on @@ -2031,7 +2033,7 @@ type File struct { // HeadRevisionId: The ID of the file's head revision. This field is // only populated for files with content stored in Google Drive; it is - // not populated for Google Docs or shortcut files. + // not populated for Docs Editors or shortcut files. HeadRevisionId string `json:"headRevisionId,omitempty"` // IconLink: A link to the file's icon. @@ -2074,7 +2076,7 @@ type File struct { // Md5Checksum: An MD5 checksum for the content of this file. This field // is only populated for files with content stored in Google Drive; it - // is not populated for Google Docs or shortcut files. + // is not populated for Docs Editors or shortcut files. Md5Checksum string `json:"md5Checksum,omitempty"` // MimeType: The MIME type of the file. This is only mutable on update @@ -3365,7 +3367,8 @@ type Revision struct { // Etag: The ETag of the revision. Etag string `json:"etag,omitempty"` - // ExportLinks: Links for exporting Google Docs to specific formats. + // ExportLinks: Links for exporting Docs Editors files to specific + // formats. ExportLinks map[string]string `json:"exportLinks,omitempty"` // FileSize: The size of the revision in bytes. This will only be @@ -3402,20 +3405,20 @@ type Revision struct { // Pinned: Whether this revision is pinned to prevent automatic purging. // This will only be populated and can only be modified on files with - // content stored in Drive which are not Google Docs. Revisions can also - // be pinned when they are created through the + // content stored in Drive, excluding Docs Editors files. Revisions can + // also be pinned when they are created through the // drive.files.insert/update/copy by using the pinned query parameter. // Pinned revisions are stored indefinitely using additional storage // quota, up to a maximum of 200 revisions. Pinned bool `json:"pinned,omitempty"` // PublishAuto: Whether subsequent revisions will be automatically - // republished. This is only populated and can only be modified for - // Google Docs. + // republished. This is only populated and can only be modified for Docs + // Editors files. PublishAuto bool `json:"publishAuto,omitempty"` // Published: Whether this revision is published. This is only populated - // and can only be modified for Google Docs. + // and can only be modified for Docs Editors files. Published bool `json:"published,omitempty"` // PublishedLink: A link to the published revision. This is only @@ -3423,8 +3426,8 @@ type Revision struct { PublishedLink string `json:"publishedLink,omitempty"` // PublishedOutsideDomain: Whether this revision is published outside - // the domain. This is only populated and can only be modified for - // Google Docs. + // the domain. This is only populated and can only be modified for Docs + // Editors files. PublishedOutsideDomain bool `json:"publishedOutsideDomain,omitempty"` // SelfLink: A link back to this revision. @@ -4030,7 +4033,7 @@ func (c *AboutGetCall) Header() http.Header { func (c *AboutGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4185,7 +4188,7 @@ func (c *AppsGetCall) Header() http.Header { func (c *AppsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4361,7 +4364,7 @@ func (c *AppsListCall) Header() http.Header { func (c *AppsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4538,7 +4541,7 @@ func (c *ChangesGetCall) Header() http.Header { func (c *ChangesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4738,7 +4741,7 @@ func (c *ChangesGetStartPageTokenCall) Header() http.Header { func (c *ChangesGetStartPageTokenCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5010,7 +5013,7 @@ func (c *ChangesListCall) Header() http.Header { func (c *ChangesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5354,7 +5357,7 @@ func (c *ChangesWatchCall) Header() http.Header { func (c *ChangesWatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5568,7 +5571,7 @@ func (c *ChannelsStopCall) Header() http.Header { func (c *ChannelsStopCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5646,10 +5649,9 @@ func (r *ChildrenService) Delete(folderId string, childId string) *ChildrenDelet } // EnforceSingleParent sets the optional parameter -// "enforceSingleParent": Set to true to opt in to API behavior that -// aims for all items to have exactly one parent. This parameter only -// takes effect if the item is not in a shared drive. If the item's last -// parent is removed, the item is placed under its owner's root. +// "enforceSingleParent": Deprecated. If an item is not in a shared +// drive and its last parent is deleted but the item itself is not, the +// item will be placed under its owner's root. func (c *ChildrenDeleteCall) EnforceSingleParent(enforceSingleParent bool) *ChildrenDeleteCall { c.urlParams_.Set("enforceSingleParent", fmt.Sprint(enforceSingleParent)) return c @@ -5682,7 +5684,7 @@ func (c *ChildrenDeleteCall) Header() http.Header { func (c *ChildrenDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5733,7 +5735,7 @@ func (c *ChildrenDeleteCall) Do(opts ...googleapi.CallOption) error { // }, // "enforceSingleParent": { // "default": "false", - // "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. If the item's last parent is removed, the item is placed under its owner's root.", + // "description": "Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root.", // "location": "query", // "type": "boolean" // }, @@ -5810,7 +5812,7 @@ func (c *ChildrenGetCall) Header() http.Header { func (c *ChildrenGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5931,14 +5933,8 @@ func (r *ChildrenService) Insert(folderId string, childreference *ChildReference } // EnforceSingleParent sets the optional parameter -// "enforceSingleParent": Set to true to opt in to API behavior that -// aims for all items to have exactly one parent. This parameter only -// takes effect if the item is not in a shared drive. If the child's -// owner makes the request, the child is removed from all current -// folders and placed in the requested folder. Any other requests that -// increase the number of the child's parents fail, except when the -// canAddMyDriveParent file capability is true and a single parent is -// being added. +// "enforceSingleParent": Deprecated. Adding files to multiple folders +// is no longer supported. Use shortcuts instead. func (c *ChildrenInsertCall) EnforceSingleParent(enforceSingleParent bool) *ChildrenInsertCall { c.urlParams_.Set("enforceSingleParent", fmt.Sprint(enforceSingleParent)) return c @@ -5986,7 +5982,7 @@ func (c *ChildrenInsertCall) Header() http.Header { func (c *ChildrenInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6059,7 +6055,7 @@ func (c *ChildrenInsertCall) Do(opts ...googleapi.CallOption) (*ChildReference, // "parameters": { // "enforceSingleParent": { // "default": "false", - // "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. If the child's owner makes the request, the child is removed from all current folders and placed in the requested folder. Any other requests that increase the number of the child's parents fail, except when the canAddMyDriveParent file capability is true and a single parent is being added.", + // "description": "Deprecated. Adding files to multiple folders is no longer supported. Use shortcuts instead.", // "location": "query", // "type": "boolean" // }, @@ -6188,7 +6184,7 @@ func (c *ChildrenListCall) Header() http.Header { func (c *ChildrenListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6371,7 +6367,7 @@ func (c *CommentsDeleteCall) Header() http.Header { func (c *CommentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6501,7 +6497,7 @@ func (c *CommentsGetCall) Header() http.Header { func (c *CommentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6650,7 +6646,7 @@ func (c *CommentsInsertCall) Header() http.Header { func (c *CommentsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6830,7 +6826,7 @@ func (c *CommentsListCall) Header() http.Header { func (c *CommentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7013,7 +7009,7 @@ func (c *CommentsPatchCall) Header() http.Header { func (c *CommentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7162,7 +7158,7 @@ func (c *CommentsUpdateCall) Header() http.Header { func (c *CommentsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7308,7 +7304,7 @@ func (c *DrivesDeleteCall) Header() http.Header { func (c *DrivesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7428,7 +7424,7 @@ func (c *DrivesGetCall) Header() http.Header { func (c *DrivesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7566,7 +7562,7 @@ func (c *DrivesHideCall) Header() http.Header { func (c *DrivesHideCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7695,7 +7691,7 @@ func (c *DrivesInsertCall) Header() http.Header { func (c *DrivesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7867,7 +7863,7 @@ func (c *DrivesListCall) Header() http.Header { func (c *DrivesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8033,7 +8029,7 @@ func (c *DrivesUnhideCall) Header() http.Header { func (c *DrivesUnhideCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8172,7 +8168,7 @@ func (c *DrivesUpdateCall) Header() http.Header { func (c *DrivesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8290,17 +8286,15 @@ func (r *FilesService) Copy(fileId string, file *File) *FilesCopyCall { } // Convert sets the optional parameter "convert": Whether to convert -// this file to the corresponding Google Docs format. +// this file to the corresponding Docs Editors format. func (c *FilesCopyCall) Convert(convert bool) *FilesCopyCall { c.urlParams_.Set("convert", fmt.Sprint(convert)) return c } // EnforceSingleParent sets the optional parameter -// "enforceSingleParent": Set to true to opt in to API behavior that -// aims for all items to have exactly one parent. This parameter only -// takes effect if the item is not in a shared drive. Requests that -// specify more than one parent fail. +// "enforceSingleParent": Deprecated. Copying files into multiple +// folders is no longer supported. Use shortcuts instead. func (c *FilesCopyCall) EnforceSingleParent(enforceSingleParent bool) *FilesCopyCall { c.urlParams_.Set("enforceSingleParent", fmt.Sprint(enforceSingleParent)) return c @@ -8406,7 +8400,7 @@ func (c *FilesCopyCall) Header() http.Header { func (c *FilesCopyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8479,13 +8473,13 @@ func (c *FilesCopyCall) Do(opts ...googleapi.CallOption) (*File, error) { // "parameters": { // "convert": { // "default": "false", - // "description": "Whether to convert this file to the corresponding Google Docs format.", + // "description": "Whether to convert this file to the corresponding Docs Editors format.", // "location": "query", // "type": "boolean" // }, // "enforceSingleParent": { // "default": "false", - // "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. Requests that specify more than one parent fail.", + // "description": "Deprecated. Copying files into multiple folders is no longer supported. Use shortcuts instead.", // "location": "query", // "type": "boolean" // }, @@ -8592,11 +8586,9 @@ func (r *FilesService) Delete(fileId string) *FilesDeleteCall { } // EnforceSingleParent sets the optional parameter -// "enforceSingleParent": Set to true to opt in to API behavior that -// aims for all items to have exactly one parent. This parameter will -// only take effect if the item is not in a shared drive. If an item's -// last parent is deleted but the item itself is not, the item will be -// placed under its owner's root. +// "enforceSingleParent": Deprecated. If an item is not in a shared +// drive and its last parent is deleted but the item itself is not, the +// item will be placed under its owner's root. func (c *FilesDeleteCall) EnforceSingleParent(enforceSingleParent bool) *FilesDeleteCall { c.urlParams_.Set("enforceSingleParent", fmt.Sprint(enforceSingleParent)) return c @@ -8644,7 +8636,7 @@ func (c *FilesDeleteCall) Header() http.Header { func (c *FilesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8687,7 +8679,7 @@ func (c *FilesDeleteCall) Do(opts ...googleapi.CallOption) error { // "parameters": { // "enforceSingleParent": { // "default": "false", - // "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter will only take effect if the item is not in a shared drive. If an item's last parent is deleted but the item itself is not, the item will be placed under its owner's root.", + // "description": "Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root.", // "location": "query", // "type": "boolean" // }, @@ -8736,11 +8728,9 @@ func (r *FilesService) EmptyTrash() *FilesEmptyTrashCall { } // EnforceSingleParent sets the optional parameter -// "enforceSingleParent": Set to true to opt in to API behavior that -// aims for all items to have exactly one parent. This parameter will -// only take effect if the item is not in a shared drive. If an item's -// last parent is deleted but the item itself is not, the item will be -// placed under its owner's root. +// "enforceSingleParent": Deprecated. If an item is not in a shared +// drive and its last parent is deleted but the item itself is not, the +// item will be placed under its owner's root. func (c *FilesEmptyTrashCall) EnforceSingleParent(enforceSingleParent bool) *FilesEmptyTrashCall { c.urlParams_.Set("enforceSingleParent", fmt.Sprint(enforceSingleParent)) return c @@ -8773,7 +8763,7 @@ func (c *FilesEmptyTrashCall) Header() http.Header { func (c *FilesEmptyTrashCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8810,7 +8800,7 @@ func (c *FilesEmptyTrashCall) Do(opts ...googleapi.CallOption) error { // "parameters": { // "enforceSingleParent": { // "default": "false", - // "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter will only take effect if the item is not in a shared drive. If an item's last parent is deleted but the item itself is not, the item will be placed under its owner's root.", + // "description": "Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root.", // "location": "query", // "type": "boolean" // } @@ -8881,7 +8871,7 @@ func (c *FilesExportCall) Header() http.Header { func (c *FilesExportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9035,7 +9025,7 @@ func (c *FilesGenerateIdsCall) Header() http.Header { func (c *FilesGenerateIdsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9241,7 +9231,7 @@ func (c *FilesGetCall) Header() http.Header { func (c *FilesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9419,17 +9409,15 @@ func (r *FilesService) Insert(file *File) *FilesInsertCall { } // Convert sets the optional parameter "convert": Whether to convert -// this file to the corresponding Google Docs format. +// this file to the corresponding Docs Editors format. func (c *FilesInsertCall) Convert(convert bool) *FilesInsertCall { c.urlParams_.Set("convert", fmt.Sprint(convert)) return c } // EnforceSingleParent sets the optional parameter -// "enforceSingleParent": Set to true to opt in to API behavior that -// aims for all items to have exactly one parent. This parameter only -// takes effect if the item is not in a shared drive. Requests that -// specify more than one parent fail. +// "enforceSingleParent": Deprecated. Creating files in multiple folders +// is no longer supported. func (c *FilesInsertCall) EnforceSingleParent(enforceSingleParent bool) *FilesInsertCall { c.urlParams_.Set("enforceSingleParent", fmt.Sprint(enforceSingleParent)) return c @@ -9581,7 +9569,7 @@ func (c *FilesInsertCall) Header() http.Header { func (c *FilesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9692,13 +9680,13 @@ func (c *FilesInsertCall) Do(opts ...googleapi.CallOption) (*File, error) { // "parameters": { // "convert": { // "default": "false", - // "description": "Whether to convert this file to the corresponding Google Docs format.", + // "description": "Whether to convert this file to the corresponding Docs Editors format.", // "location": "query", // "type": "boolean" // }, // "enforceSingleParent": { // "default": "false", - // "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. Requests that specify more than one parent fail.", + // "description": "Deprecated. Creating files in multiple folders is no longer supported.", // "location": "query", // "type": "boolean" // }, @@ -9972,7 +9960,7 @@ func (c *FilesListCall) Header() http.Header { func (c *FilesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10208,14 +10196,8 @@ func (c *FilesPatchCall) Convert(convert bool) *FilesPatchCall { } // EnforceSingleParent sets the optional parameter -// "enforceSingleParent": Set to true to opt in to API behavior that -// aims for all items to have exactly one parent. This parameter only -// takes effect if the item is not in a shared drive. If the item's -// owner makes a request to add a single parent, the item is removed -// from all current folders and placed in the requested folder. Other -// requests that increase the number of parents fail, except when the -// canAddMyDriveParent file capability is true and a single parent is -// being added. +// "enforceSingleParent": Deprecated. Adding files to multiple folders +// is no longer supported. Use shortcuts instead. func (c *FilesPatchCall) EnforceSingleParent(enforceSingleParent bool) *FilesPatchCall { c.urlParams_.Set("enforceSingleParent", fmt.Sprint(enforceSingleParent)) return c @@ -10375,7 +10357,7 @@ func (c *FilesPatchCall) Header() http.Header { func (c *FilesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10459,7 +10441,7 @@ func (c *FilesPatchCall) Do(opts ...googleapi.CallOption) (*File, error) { // }, // "enforceSingleParent": { // "default": "false", - // "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. If the item's owner makes a request to add a single parent, the item is removed from all current folders and placed in the requested folder. Other requests that increase the number of parents fail, except when the canAddMyDriveParent file capability is true and a single parent is being added.", + // "description": "Deprecated. Adding files to multiple folders is no longer supported. Use shortcuts instead.", // "location": "query", // "type": "boolean" // }, @@ -10651,7 +10633,7 @@ func (c *FilesTouchCall) Header() http.Header { func (c *FilesTouchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10830,7 +10812,7 @@ func (c *FilesTrashCall) Header() http.Header { func (c *FilesTrashCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11004,7 +10986,7 @@ func (c *FilesUntrashCall) Header() http.Header { func (c *FilesUntrashCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11143,14 +11125,8 @@ func (c *FilesUpdateCall) Convert(convert bool) *FilesUpdateCall { } // EnforceSingleParent sets the optional parameter -// "enforceSingleParent": Set to true to opt in to API behavior that -// aims for all items to have exactly one parent. This parameter only -// takes effect if the item is not in a shared drive. If the item's -// owner makes a request to add a single parent, the item is removed -// from all current folders and placed in the requested folder. Other -// requests that increase the number of parents fail, except when the -// canAddMyDriveParent file capability is true and a single parent is -// being added. +// "enforceSingleParent": Deprecated. Adding files to multiple folders +// is no longer supported. Use shortcuts instead. func (c *FilesUpdateCall) EnforceSingleParent(enforceSingleParent bool) *FilesUpdateCall { c.urlParams_.Set("enforceSingleParent", fmt.Sprint(enforceSingleParent)) return c @@ -11349,7 +11325,7 @@ func (c *FilesUpdateCall) Header() http.Header { func (c *FilesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11477,7 +11453,7 @@ func (c *FilesUpdateCall) Do(opts ...googleapi.CallOption) (*File, error) { // }, // "enforceSingleParent": { // "default": "false", - // "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. If the item's owner makes a request to add a single parent, the item is removed from all current folders and placed in the requested folder. Other requests that increase the number of parents fail, except when the canAddMyDriveParent file capability is true and a single parent is being added.", + // "description": "Deprecated. Adding files to multiple folders is no longer supported. Use shortcuts instead.", // "location": "query", // "type": "boolean" // }, @@ -11707,7 +11683,7 @@ func (c *FilesWatchCall) Header() http.Header { func (c *FilesWatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11892,10 +11868,9 @@ func (r *ParentsService) Delete(fileId string, parentId string) *ParentsDeleteCa } // EnforceSingleParent sets the optional parameter -// "enforceSingleParent": Set to true to opt in to API behavior that -// aims for all items to have exactly one parent. This parameter only -// takes effect if the item is not in a shared drive. If the item's last -// parent is removed, the item is placed under its owner's root. +// "enforceSingleParent": Deprecated. If an item is not in a shared +// drive and its last parent is deleted but the item itself is not, the +// item will be placed under its owner's root. func (c *ParentsDeleteCall) EnforceSingleParent(enforceSingleParent bool) *ParentsDeleteCall { c.urlParams_.Set("enforceSingleParent", fmt.Sprint(enforceSingleParent)) return c @@ -11928,7 +11903,7 @@ func (c *ParentsDeleteCall) Header() http.Header { func (c *ParentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11973,7 +11948,7 @@ func (c *ParentsDeleteCall) Do(opts ...googleapi.CallOption) error { // "parameters": { // "enforceSingleParent": { // "default": "false", - // "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. If the item's last parent is removed, the item is placed under its owner's root.", + // "description": "Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root.", // "location": "query", // "type": "boolean" // }, @@ -12056,7 +12031,7 @@ func (c *ParentsGetCall) Header() http.Header { func (c *ParentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12177,14 +12152,8 @@ func (r *ParentsService) Insert(fileId string, parentreference *ParentReference) } // EnforceSingleParent sets the optional parameter -// "enforceSingleParent": Set to true to opt in to API behavior that -// aims for all items to have exactly one parent. This parameter only -// takes effect if the item is not in a shared drive. If the child's -// owner makes the request, the child is removed from all current -// folders and placed in the requested folder. Any other requests that -// increase the number of the child's parents fail, except when the -// canAddMyDriveParent file capability is true and a single parent is -// being added. +// "enforceSingleParent": Deprecated. Adding files to multiple folders +// is no longer supported. Use shortcuts instead. func (c *ParentsInsertCall) EnforceSingleParent(enforceSingleParent bool) *ParentsInsertCall { c.urlParams_.Set("enforceSingleParent", fmt.Sprint(enforceSingleParent)) return c @@ -12232,7 +12201,7 @@ func (c *ParentsInsertCall) Header() http.Header { func (c *ParentsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12305,7 +12274,7 @@ func (c *ParentsInsertCall) Do(opts ...googleapi.CallOption) (*ParentReference, // "parameters": { // "enforceSingleParent": { // "default": "false", - // "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. If the child's owner makes the request, the child is removed from all current folders and placed in the requested folder. Any other requests that increase the number of the child's parents fail, except when the canAddMyDriveParent file capability is true and a single parent is being added.", + // "description": "Deprecated. Adding files to multiple folders is no longer supported. Use shortcuts instead.", // "location": "query", // "type": "boolean" // }, @@ -12399,7 +12368,7 @@ func (c *ParentsListCall) Header() http.Header { func (c *ParentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12563,7 +12532,7 @@ func (c *PermissionsDeleteCall) Header() http.Header { func (c *PermissionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12728,7 +12697,7 @@ func (c *PermissionsGetCall) Header() http.Header { func (c *PermissionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12901,7 +12870,7 @@ func (c *PermissionsGetIdForEmailCall) Header() http.Header { func (c *PermissionsGetIdForEmailCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13022,25 +12991,19 @@ func (c *PermissionsInsertCall) EmailMessage(emailMessage string) *PermissionsIn } // EnforceSingleParent sets the optional parameter -// "enforceSingleParent": Set to true to opt in to API behavior that -// aims for all items to have exactly one parent. This parameter only -// takes effect if the item is not in a shared drive. See -// moveToNewOwnersRoot for details. +// "enforceSingleParent": Deprecated. See moveToNewOwnersRoot for +// details. func (c *PermissionsInsertCall) EnforceSingleParent(enforceSingleParent bool) *PermissionsInsertCall { c.urlParams_.Set("enforceSingleParent", fmt.Sprint(enforceSingleParent)) return c } // MoveToNewOwnersRoot sets the optional parameter -// "moveToNewOwnersRoot": This parameter only takes effect if the item -// is not in a shared drive and the request is attempting to transfer -// the ownership of the item. When set to true, the item will be moved -// to the new owner's My Drive root folder and all prior parents -// removed. If set to false, when enforceSingleParent=true, parents are -// not changed. If set to false, when enforceSingleParent=false, -// existing parents are not changed; however, the file will be added to -// the new owner's My Drive root folder, unless it is already in the new -// owner's My Drive. +// "moveToNewOwnersRoot": This parameter will only take effect if the +// item is not in a shared drive and the request is attempting to +// transfer the ownership of the item. If set to true, the item will be +// moved to the new owner's My Drive root folder and all prior parents +// removed. If set to false, parents are not changed. func (c *PermissionsInsertCall) MoveToNewOwnersRoot(moveToNewOwnersRoot bool) *PermissionsInsertCall { c.urlParams_.Set("moveToNewOwnersRoot", fmt.Sprint(moveToNewOwnersRoot)) return c @@ -13107,7 +13070,7 @@ func (c *PermissionsInsertCall) Header() http.Header { func (c *PermissionsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13185,7 +13148,7 @@ func (c *PermissionsInsertCall) Do(opts ...googleapi.CallOption) (*Permission, e // }, // "enforceSingleParent": { // "default": "false", - // "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. See moveToNewOwnersRoot for details.", + // "description": "Deprecated. See moveToNewOwnersRoot for details.", // "location": "query", // "type": "boolean" // }, @@ -13197,7 +13160,7 @@ func (c *PermissionsInsertCall) Do(opts ...googleapi.CallOption) (*Permission, e // }, // "moveToNewOwnersRoot": { // "default": "false", - // "description": "This parameter only takes effect if the item is not in a shared drive and the request is attempting to transfer the ownership of the item. When set to true, the item will be moved to the new owner's My Drive root folder and all prior parents removed. If set to false, when enforceSingleParent=true, parents are not changed. If set to false, when enforceSingleParent=false, existing parents are not changed; however, the file will be added to the new owner's My Drive root folder, unless it is already in the new owner's My Drive.", + // "description": "This parameter will only take effect if the item is not in a shared drive and the request is attempting to transfer the ownership of the item. If set to true, the item will be moved to the new owner's My Drive root folder and all prior parents removed. If set to false, parents are not changed.", // "location": "query", // "type": "boolean" // }, @@ -13348,7 +13311,7 @@ func (c *PermissionsListCall) Header() http.Header { func (c *PermissionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13585,7 +13548,7 @@ func (c *PermissionsPatchCall) Header() http.Header { func (c *PermissionsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13804,7 +13767,7 @@ func (c *PermissionsUpdateCall) Header() http.Header { func (c *PermissionsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13988,7 +13951,7 @@ func (c *PropertiesDeleteCall) Header() http.Header { func (c *PropertiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14125,7 +14088,7 @@ func (c *PropertiesGetCall) Header() http.Header { func (c *PropertiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14279,7 +14242,7 @@ func (c *PropertiesInsertCall) Header() http.Header { func (c *PropertiesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14429,7 +14392,7 @@ func (c *PropertiesListCall) Header() http.Header { func (c *PropertiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14578,7 +14541,7 @@ func (c *PropertiesPatchCall) Header() http.Header { func (c *PropertiesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14743,7 +14706,7 @@ func (c *PropertiesUpdateCall) Header() http.Header { func (c *PropertiesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14900,7 +14863,7 @@ func (c *RepliesDeleteCall) Header() http.Header { func (c *RepliesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15039,7 +15002,7 @@ func (c *RepliesGetCall) Header() http.Header { func (c *RepliesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15198,7 +15161,7 @@ func (c *RepliesInsertCall) Header() http.Header { func (c *RepliesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15380,7 +15343,7 @@ func (c *RepliesListCall) Header() http.Header { func (c *RepliesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15568,7 +15531,7 @@ func (c *RepliesPatchCall) Header() http.Header { func (c *RepliesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15727,7 +15690,7 @@ func (c *RepliesUpdateCall) Header() http.Header { func (c *RepliesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15885,7 +15848,7 @@ func (c *RevisionsDeleteCall) Header() http.Header { func (c *RevisionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16008,7 +15971,7 @@ func (c *RevisionsGetCall) Header() http.Header { func (c *RevisionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16179,7 +16142,7 @@ func (c *RevisionsListCall) Header() http.Header { func (c *RevisionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16355,7 +16318,7 @@ func (c *RevisionsPatchCall) Header() http.Header { func (c *RevisionsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16505,7 +16468,7 @@ func (c *RevisionsUpdateCall) Header() http.Header { func (c *RevisionsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16651,7 +16614,7 @@ func (c *TeamdrivesDeleteCall) Header() http.Header { func (c *TeamdrivesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16771,7 +16734,7 @@ func (c *TeamdrivesGetCall) Header() http.Header { func (c *TeamdrivesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16910,7 +16873,7 @@ func (c *TeamdrivesInsertCall) Header() http.Header { func (c *TeamdrivesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17082,7 +17045,7 @@ func (c *TeamdrivesListCall) Header() http.Header { func (c *TeamdrivesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17259,7 +17222,7 @@ func (c *TeamdrivesUpdateCall) Header() http.Header { func (c *TeamdrivesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/drive/v3/drive-api.json b/drive/v3/drive-api.json index 510207a4f35..c56a146dd5d 100644 --- a/drive/v3/drive-api.json +++ b/drive/v3/drive-api.json @@ -35,7 +35,7 @@ "description": "Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.", "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/drive/", - "etag": "\"-2NioU2H8y8siEzrBOV_qzRI6kQ/_4ojy4QxfvTPR9kgosczqy5b6UE\"", + "etag": "\"-2NioU2H8y8siEzrBOV_qzRI6kQ/8FPw1QApcT2pBMVV3y4RrpfcbIE\"", "icons": { "x16": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_16.png", "x32": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_32.png" @@ -782,7 +782,7 @@ "parameters": { "enforceSingleParent": { "default": "false", - "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. Requests that specify more than one parent fail.", + "description": "Deprecated. Copying files into multiple folders is no longer supported. Use shortcuts instead.", "location": "query", "type": "boolean" }, @@ -864,7 +864,7 @@ "parameters": { "enforceSingleParent": { "default": "false", - "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. Requests that specify more than one parent fail.", + "description": "Deprecated. Creating files in multiple folders is no longer supported.", "location": "query", "type": "boolean" }, @@ -934,7 +934,7 @@ "parameters": { "enforceSingleParent": { "default": "false", - "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter will only take effect if the item is not in a shared drive. If an item's last parent is deleted but the item itself is not, the item will be placed under its owner's root.", + "description": "Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root.", "location": "query", "type": "boolean" }, @@ -971,7 +971,7 @@ "parameters": { "enforceSingleParent": { "default": "false", - "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter will only take effect if the item is not in a shared drive. If an item's last parent is deleted but the item itself is not, the item will be placed under its owner's root.", + "description": "Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root.", "location": "query", "type": "boolean" } @@ -1235,7 +1235,7 @@ }, "enforceSingleParent": { "default": "false", - "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. If the item's owner makes a request to add a single parent, the item is removed from all current folders and placed in the requested folder. Other requests that increase the number of parents fail, except when the canAddMyDriveParent file capability is true and a single parent is being added.", + "description": "Deprecated. Adding files to multiple folders is no longer supported. Use shortcuts instead.", "location": "query", "type": "boolean" }, @@ -1379,7 +1379,7 @@ }, "enforceSingleParent": { "default": "false", - "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. See moveToNewOwnersRoot for details.", + "description": "Deprecated. See moveToNewOwnersRoot for details.", "location": "query", "type": "boolean" }, @@ -1391,7 +1391,7 @@ }, "moveToNewOwnersRoot": { "default": "false", - "description": "This parameter only takes effect if the item is not in a shared drive and the request is attempting to transfer the ownership of the item. When set to true, the item is moved to the new owner's My Drive root folder and all prior parents removed. If set to false, when enforceSingleParent=true, parents are not changed. If set to false, when enforceSingleParent=false, existing parents are not changed; however, the file will be added to the new owner's My Drive root folder, unless it is already in the new owner's My Drive.", + "description": "This parameter will only take effect if the item is not in a shared drive and the request is attempting to transfer the ownership of the item. If set to true, the item will be moved to the new owner's My Drive root folder and all prior parents removed. If set to false, parents are not changed.", "location": "query", "type": "boolean" }, @@ -2185,7 +2185,7 @@ } } }, - "revision": "20201012", + "revision": "20201115", "rootUrl": "https://www.googleapis.com/", "schemas": { "About": { @@ -2985,7 +2985,7 @@ "description": "A mapping from export format to URL", "type": "string" }, - "description": "Links for exporting Google Docs to specific formats.", + "description": "Links for exporting Docs Editors files to specific formats.", "type": "object" }, "fileExtension": { @@ -3252,7 +3252,7 @@ "type": "object" }, "size": { - "description": "The size of the file's content in bytes. This is only applicable to files with binary content in Google Drive.", + "description": "The size of the file's content in bytes. This is applicable to binary files in Google Drive and Google Docs files.", "format": "int64", "type": "string" }, @@ -3620,7 +3620,7 @@ "description": "A mapping from export format to URL", "type": "string" }, - "description": "Links for exporting Google Docs to specific formats.", + "description": "Links for exporting Docs Editors files to specific formats.", "type": "object" }, "id": { @@ -3658,11 +3658,11 @@ "type": "string" }, "publishAuto": { - "description": "Whether subsequent revisions will be automatically republished. This is only applicable to Google Docs.", + "description": "Whether subsequent revisions will be automatically republished. This is only applicable to Docs Editors files.", "type": "boolean" }, "published": { - "description": "Whether this revision is published. This is only applicable to Google Docs.", + "description": "Whether this revision is published. This is only applicable to Docs Editors files.", "type": "boolean" }, "publishedLink": { @@ -3670,7 +3670,7 @@ "type": "string" }, "publishedOutsideDomain": { - "description": "Whether this revision is published outside the domain. This is only applicable to Google Docs.", + "description": "Whether this revision is published outside the domain. This is only applicable to Docs Editors files.", "type": "boolean" }, "size": { diff --git a/drive/v3/drive-gen.go b/drive/v3/drive-gen.go index bbe118b2a05..fd79d2899fa 100644 --- a/drive/v3/drive-gen.go +++ b/drive/v3/drive-gen.go @@ -1230,7 +1230,8 @@ type File struct { // opposed to recursively trashed from a parent folder. ExplicitlyTrashed bool `json:"explicitlyTrashed,omitempty"` - // ExportLinks: Links for exporting Google Docs to specific formats. + // ExportLinks: Links for exporting Docs Editors files to specific + // formats. ExportLinks map[string]string `json:"exportLinks,omitempty"` // FileExtension: The final component of fullFileExtension. This is only @@ -1376,8 +1377,8 @@ type File struct { // application/vnd.google-apps.shortcut. ShortcutDetails *FileShortcutDetails `json:"shortcutDetails,omitempty"` - // Size: The size of the file's content in bytes. This is only - // applicable to files with binary content in Google Drive. + // Size: The size of the file's content in bytes. This is applicable to + // binary files in Google Drive and Google Docs files. Size int64 `json:"size,omitempty,string"` // Spaces: The list of spaces which contain the file. The currently @@ -2406,7 +2407,8 @@ func (s *ReplyList) MarshalJSON() ([]byte, error) { // Revision: The metadata for a revision to a file. type Revision struct { - // ExportLinks: Links for exporting Google Docs to specific formats. + // ExportLinks: Links for exporting Docs Editors files to specific + // formats. ExportLinks map[string]string `json:"exportLinks,omitempty"` // Id: The ID of the revision. @@ -2442,11 +2444,11 @@ type Revision struct { OriginalFilename string `json:"originalFilename,omitempty"` // PublishAuto: Whether subsequent revisions will be automatically - // republished. This is only applicable to Google Docs. + // republished. This is only applicable to Docs Editors files. PublishAuto bool `json:"publishAuto,omitempty"` // Published: Whether this revision is published. This is only - // applicable to Google Docs. + // applicable to Docs Editors files. Published bool `json:"published,omitempty"` // PublishedLink: A link to the published revision. This is only @@ -2454,7 +2456,7 @@ type Revision struct { PublishedLink string `json:"publishedLink,omitempty"` // PublishedOutsideDomain: Whether this revision is published outside - // the domain. This is only applicable to Google Docs. + // the domain. This is only applicable to Docs Editors files. PublishedOutsideDomain bool `json:"publishedOutsideDomain,omitempty"` // Size: The size of the revision's content in bytes. This is only @@ -3011,7 +3013,7 @@ func (c *AboutGetCall) Header() http.Header { func (c *AboutGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3174,7 +3176,7 @@ func (c *ChangesGetStartPageTokenCall) Header() http.Header { func (c *ChangesGetStartPageTokenCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3430,7 +3432,7 @@ func (c *ChangesListCall) Header() http.Header { func (c *ChangesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3737,7 +3739,7 @@ func (c *ChangesWatchCall) Header() http.Header { func (c *ChangesWatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3950,7 +3952,7 @@ func (c *ChannelsStopCall) Header() http.Header { func (c *ChannelsStopCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4053,7 +4055,7 @@ func (c *CommentsCreateCall) Header() http.Header { func (c *CommentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4192,7 +4194,7 @@ func (c *CommentsDeleteCall) Header() http.Header { func (c *CommentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4322,7 +4324,7 @@ func (c *CommentsGetCall) Header() http.Header { func (c *CommentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4511,7 +4513,7 @@ func (c *CommentsListCall) Header() http.Header { func (c *CommentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4694,7 +4696,7 @@ func (c *CommentsUpdateCall) Header() http.Header { func (c *CommentsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4840,7 +4842,7 @@ func (c *DrivesCreateCall) Header() http.Header { func (c *DrivesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4974,7 +4976,7 @@ func (c *DrivesDeleteCall) Header() http.Header { func (c *DrivesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5094,7 +5096,7 @@ func (c *DrivesGetCall) Header() http.Header { func (c *DrivesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5232,7 +5234,7 @@ func (c *DrivesHideCall) Header() http.Header { func (c *DrivesHideCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5399,7 +5401,7 @@ func (c *DrivesListCall) Header() http.Header { func (c *DrivesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5565,7 +5567,7 @@ func (c *DrivesUnhideCall) Header() http.Header { func (c *DrivesUnhideCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5704,7 +5706,7 @@ func (c *DrivesUpdateCall) Header() http.Header { func (c *DrivesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5823,10 +5825,8 @@ func (r *FilesService) Copy(fileId string, file *File) *FilesCopyCall { } // EnforceSingleParent sets the optional parameter -// "enforceSingleParent": Set to true to opt in to API behavior that -// aims for all items to have exactly one parent. This parameter only -// takes effect if the item is not in a shared drive. Requests that -// specify more than one parent fail. +// "enforceSingleParent": Deprecated. Copying files into multiple +// folders is no longer supported. Use shortcuts instead. func (c *FilesCopyCall) EnforceSingleParent(enforceSingleParent bool) *FilesCopyCall { c.urlParams_.Set("enforceSingleParent", fmt.Sprint(enforceSingleParent)) return c @@ -5911,7 +5911,7 @@ func (c *FilesCopyCall) Header() http.Header { func (c *FilesCopyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5984,7 +5984,7 @@ func (c *FilesCopyCall) Do(opts ...googleapi.CallOption) (*File, error) { // "parameters": { // "enforceSingleParent": { // "default": "false", - // "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. Requests that specify more than one parent fail.", + // "description": "Deprecated. Copying files into multiple folders is no longer supported. Use shortcuts instead.", // "location": "query", // "type": "boolean" // }, @@ -6065,10 +6065,8 @@ func (r *FilesService) Create(file *File) *FilesCreateCall { } // EnforceSingleParent sets the optional parameter -// "enforceSingleParent": Set to true to opt in to API behavior that -// aims for all items to have exactly one parent. This parameter only -// takes effect if the item is not in a shared drive. Requests that -// specify more than one parent fail. +// "enforceSingleParent": Deprecated. Creating files in multiple folders +// is no longer supported. func (c *FilesCreateCall) EnforceSingleParent(enforceSingleParent bool) *FilesCreateCall { c.urlParams_.Set("enforceSingleParent", fmt.Sprint(enforceSingleParent)) return c @@ -6200,7 +6198,7 @@ func (c *FilesCreateCall) Header() http.Header { func (c *FilesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6311,7 +6309,7 @@ func (c *FilesCreateCall) Do(opts ...googleapi.CallOption) (*File, error) { // "parameters": { // "enforceSingleParent": { // "default": "false", - // "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. Requests that specify more than one parent fail.", + // "description": "Deprecated. Creating files in multiple folders is no longer supported.", // "location": "query", // "type": "boolean" // }, @@ -6395,11 +6393,9 @@ func (r *FilesService) Delete(fileId string) *FilesDeleteCall { } // EnforceSingleParent sets the optional parameter -// "enforceSingleParent": Set to true to opt in to API behavior that -// aims for all items to have exactly one parent. This parameter will -// only take effect if the item is not in a shared drive. If an item's -// last parent is deleted but the item itself is not, the item will be -// placed under its owner's root. +// "enforceSingleParent": Deprecated. If an item is not in a shared +// drive and its last parent is deleted but the item itself is not, the +// item will be placed under its owner's root. func (c *FilesDeleteCall) EnforceSingleParent(enforceSingleParent bool) *FilesDeleteCall { c.urlParams_.Set("enforceSingleParent", fmt.Sprint(enforceSingleParent)) return c @@ -6447,7 +6443,7 @@ func (c *FilesDeleteCall) Header() http.Header { func (c *FilesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6490,7 +6486,7 @@ func (c *FilesDeleteCall) Do(opts ...googleapi.CallOption) error { // "parameters": { // "enforceSingleParent": { // "default": "false", - // "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter will only take effect if the item is not in a shared drive. If an item's last parent is deleted but the item itself is not, the item will be placed under its owner's root.", + // "description": "Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root.", // "location": "query", // "type": "boolean" // }, @@ -6539,11 +6535,9 @@ func (r *FilesService) EmptyTrash() *FilesEmptyTrashCall { } // EnforceSingleParent sets the optional parameter -// "enforceSingleParent": Set to true to opt in to API behavior that -// aims for all items to have exactly one parent. This parameter will -// only take effect if the item is not in a shared drive. If an item's -// last parent is deleted but the item itself is not, the item will be -// placed under its owner's root. +// "enforceSingleParent": Deprecated. If an item is not in a shared +// drive and its last parent is deleted but the item itself is not, the +// item will be placed under its owner's root. func (c *FilesEmptyTrashCall) EnforceSingleParent(enforceSingleParent bool) *FilesEmptyTrashCall { c.urlParams_.Set("enforceSingleParent", fmt.Sprint(enforceSingleParent)) return c @@ -6576,7 +6570,7 @@ func (c *FilesEmptyTrashCall) Header() http.Header { func (c *FilesEmptyTrashCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6613,7 +6607,7 @@ func (c *FilesEmptyTrashCall) Do(opts ...googleapi.CallOption) error { // "parameters": { // "enforceSingleParent": { // "default": "false", - // "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter will only take effect if the item is not in a shared drive. If an item's last parent is deleted but the item itself is not, the item will be placed under its owner's root.", + // "description": "Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root.", // "location": "query", // "type": "boolean" // } @@ -6684,7 +6678,7 @@ func (c *FilesExportCall) Header() http.Header { func (c *FilesExportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6838,7 +6832,7 @@ func (c *FilesGenerateIdsCall) Header() http.Header { func (c *FilesGenerateIdsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7018,7 +7012,7 @@ func (c *FilesGetCall) Header() http.Header { func (c *FilesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7331,7 +7325,7 @@ func (c *FilesListCall) Header() http.Header { func (c *FilesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7549,14 +7543,8 @@ func (c *FilesUpdateCall) AddParents(addParents string) *FilesUpdateCall { } // EnforceSingleParent sets the optional parameter -// "enforceSingleParent": Set to true to opt in to API behavior that -// aims for all items to have exactly one parent. This parameter only -// takes effect if the item is not in a shared drive. If the item's -// owner makes a request to add a single parent, the item is removed -// from all current folders and placed in the requested folder. Other -// requests that increase the number of parents fail, except when the -// canAddMyDriveParent file capability is true and a single parent is -// being added. +// "enforceSingleParent": Deprecated. Adding files to multiple folders +// is no longer supported. Use shortcuts instead. func (c *FilesUpdateCall) EnforceSingleParent(enforceSingleParent bool) *FilesUpdateCall { c.urlParams_.Set("enforceSingleParent", fmt.Sprint(enforceSingleParent)) return c @@ -7684,7 +7672,7 @@ func (c *FilesUpdateCall) Header() http.Header { func (c *FilesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7806,7 +7794,7 @@ func (c *FilesUpdateCall) Do(opts ...googleapi.CallOption) (*File, error) { // }, // "enforceSingleParent": { // "default": "false", - // "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. If the item's owner makes a request to add a single parent, the item is removed from all current folders and placed in the requested folder. Other requests that increase the number of parents fail, except when the canAddMyDriveParent file capability is true and a single parent is being added.", + // "description": "Deprecated. Adding files to multiple folders is no longer supported. Use shortcuts instead.", // "location": "query", // "type": "boolean" // }, @@ -7954,7 +7942,7 @@ func (c *FilesWatchCall) Header() http.Header { func (c *FilesWatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8122,24 +8110,19 @@ func (c *PermissionsCreateCall) EmailMessage(emailMessage string) *PermissionsCr } // EnforceSingleParent sets the optional parameter -// "enforceSingleParent": Set to true to opt in to API behavior that -// aims for all items to have exactly one parent. This parameter only -// takes effect if the item is not in a shared drive. See -// moveToNewOwnersRoot for details. +// "enforceSingleParent": Deprecated. See moveToNewOwnersRoot for +// details. func (c *PermissionsCreateCall) EnforceSingleParent(enforceSingleParent bool) *PermissionsCreateCall { c.urlParams_.Set("enforceSingleParent", fmt.Sprint(enforceSingleParent)) return c } // MoveToNewOwnersRoot sets the optional parameter -// "moveToNewOwnersRoot": This parameter only takes effect if the item -// is not in a shared drive and the request is attempting to transfer -// the ownership of the item. When set to true, the item is moved to the -// new owner's My Drive root folder and all prior parents removed. If -// set to false, when enforceSingleParent=true, parents are not changed. -// If set to false, when enforceSingleParent=false, existing parents are -// not changed; however, the file will be added to the new owner's My -// Drive root folder, unless it is already in the new owner's My Drive. +// "moveToNewOwnersRoot": This parameter will only take effect if the +// item is not in a shared drive and the request is attempting to +// transfer the ownership of the item. If set to true, the item will be +// moved to the new owner's My Drive root folder and all prior parents +// removed. If set to false, parents are not changed. func (c *PermissionsCreateCall) MoveToNewOwnersRoot(moveToNewOwnersRoot bool) *PermissionsCreateCall { c.urlParams_.Set("moveToNewOwnersRoot", fmt.Sprint(moveToNewOwnersRoot)) return c @@ -8216,7 +8199,7 @@ func (c *PermissionsCreateCall) Header() http.Header { func (c *PermissionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8294,7 +8277,7 @@ func (c *PermissionsCreateCall) Do(opts ...googleapi.CallOption) (*Permission, e // }, // "enforceSingleParent": { // "default": "false", - // "description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. See moveToNewOwnersRoot for details.", + // "description": "Deprecated. See moveToNewOwnersRoot for details.", // "location": "query", // "type": "boolean" // }, @@ -8306,7 +8289,7 @@ func (c *PermissionsCreateCall) Do(opts ...googleapi.CallOption) (*Permission, e // }, // "moveToNewOwnersRoot": { // "default": "false", - // "description": "This parameter only takes effect if the item is not in a shared drive and the request is attempting to transfer the ownership of the item. When set to true, the item is moved to the new owner's My Drive root folder and all prior parents removed. If set to false, when enforceSingleParent=true, parents are not changed. If set to false, when enforceSingleParent=false, existing parents are not changed; however, the file will be added to the new owner's My Drive root folder, unless it is already in the new owner's My Drive.", + // "description": "This parameter will only take effect if the item is not in a shared drive and the request is attempting to transfer the ownership of the item. If set to true, the item will be moved to the new owner's My Drive root folder and all prior parents removed. If set to false, parents are not changed.", // "location": "query", // "type": "boolean" // }, @@ -8426,7 +8409,7 @@ func (c *PermissionsDeleteCall) Header() http.Header { func (c *PermissionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8591,7 +8574,7 @@ func (c *PermissionsGetCall) Header() http.Header { func (c *PermissionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8815,7 +8798,7 @@ func (c *PermissionsListCall) Header() http.Header { func (c *PermissionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9053,7 +9036,7 @@ func (c *PermissionsUpdateCall) Header() http.Header { func (c *PermissionsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9232,7 +9215,7 @@ func (c *RepliesCreateCall) Header() http.Header { func (c *RepliesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9381,7 +9364,7 @@ func (c *RepliesDeleteCall) Header() http.Header { func (c *RepliesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9521,7 +9504,7 @@ func (c *RepliesGetCall) Header() http.Header { func (c *RepliesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9712,7 +9695,7 @@ func (c *RepliesListCall) Header() http.Header { func (c *RepliesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9900,7 +9883,7 @@ func (c *RepliesUpdateCall) Header() http.Header { func (c *RepliesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10058,7 +10041,7 @@ func (c *RevisionsDeleteCall) Header() http.Header { func (c *RevisionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10190,7 +10173,7 @@ func (c *RevisionsGetCall) Header() http.Header { func (c *RevisionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10385,7 +10368,7 @@ func (c *RevisionsListCall) Header() http.Header { func (c *RevisionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10561,7 +10544,7 @@ func (c *RevisionsUpdateCall) Header() http.Header { func (c *RevisionsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10708,7 +10691,7 @@ func (c *TeamdrivesCreateCall) Header() http.Header { func (c *TeamdrivesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10841,7 +10824,7 @@ func (c *TeamdrivesDeleteCall) Header() http.Header { func (c *TeamdrivesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10961,7 +10944,7 @@ func (c *TeamdrivesGetCall) Header() http.Header { func (c *TeamdrivesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11138,7 +11121,7 @@ func (c *TeamdrivesListCall) Header() http.Header { func (c *TeamdrivesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11315,7 +11298,7 @@ func (c *TeamdrivesUpdateCall) Header() http.Header { func (c *TeamdrivesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/driveactivity/v2/driveactivity-gen.go b/driveactivity/v2/driveactivity-gen.go index 49c3ca8bcb6..2d6afdbb59e 100644 --- a/driveactivity/v2/driveactivity-gen.go +++ b/driveactivity/v2/driveactivity-gen.go @@ -1875,7 +1875,7 @@ func (c *ActivityQueryCall) Header() http.Header { func (c *ActivityQueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/eventarc/v1beta1/eventarc-api.json b/eventarc/v1beta1/eventarc-api.json new file mode 100644 index 00000000000..ab0dd71898c --- /dev/null +++ b/eventarc/v1beta1/eventarc-api.json @@ -0,0 +1,1070 @@ +{ + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/cloud-platform": { + "description": "View and manage your data across Google Cloud Platform services" + } + } + } + }, + "basePath": "", + "baseUrl": "https://eventarc.googleapis.com/", + "batchPath": "batch", + "canonicalName": "Eventarc", + "description": "", + "discoveryVersion": "v1", + "documentationLink": "https://cloud.google.com/eventarc", + "fullyEncodeReservedExpansion": true, + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "id": "eventarc:v1beta1", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://eventarc.mtls.googleapis.com/", + "name": "eventarc", + "ownerDomain": "google.com", + "ownerName": "Google", + "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, + "alt": { + "default": "json", + "description": "Data format for response.", + "enum": [ + "json", + "media", + "proto" + ], + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query", + "type": "string" + }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, + "fields": { + "description": "Selector specifying which fields to include in a partial response.", + "location": "query", + "type": "string" + }, + "key": { + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "location": "query", + "type": "string" + }, + "oauth_token": { + "description": "OAuth 2.0 token for the current user.", + "location": "query", + "type": "string" + }, + "prettyPrint": { + "default": "true", + "description": "Returns response with indentations and line breaks.", + "location": "query", + "type": "boolean" + }, + "quotaUser": { + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query", + "type": "string" + }, + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query", + "type": "string" + } + }, + "protocol": "rest", + "resources": { + "projects": { + "resources": { + "locations": { + "methods": { + "get": { + "description": "Gets information about a location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}", + "httpMethod": "GET", + "id": "eventarc.projects.locations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Resource name for the location.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Location" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists information about the supported locations for this service.", + "flatPath": "v1beta1/projects/{projectsId}/locations", + "httpMethod": "GET", + "id": "eventarc.projects.locations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The resource that owns the locations collection, if applicable.", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}/locations", + "response": { + "$ref": "ListLocationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "eventarc.projects.locations.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:cancel", + "request": { + "$ref": "CancelOperationRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "eventarc.projects.locations.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "eventarc.projects.locations.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations", + "httpMethod": "GET", + "id": "eventarc.projects.locations.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}/operations", + "response": { + "$ref": "ListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "triggers": { + "methods": { + "create": { + "description": "Create a new trigger in a particular project and location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/triggers", + "httpMethod": "POST", + "id": "eventarc.projects.locations.triggers.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent collection in which to add this trigger.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "triggerId": { + "description": "Required. The user-provided ID to be assigned to the trigger.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+parent}/triggers", + "request": { + "$ref": "Trigger" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Delete a single trigger.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/triggers/{triggersId}", + "httpMethod": "DELETE", + "id": "eventarc.projects.locations.triggers.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "etag": { + "description": "If provided, the trigger will only be deleted if the etag matches the current etag on the resource.", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The name of the trigger to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/triggers/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Get a single trigger.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/triggers/{triggersId}", + "httpMethod": "GET", + "id": "eventarc.projects.locations.triggers.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the trigger to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/triggers/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Trigger" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/triggers/{triggersId}:getIamPolicy", + "httpMethod": "GET", + "id": "eventarc.projects.locations.triggers.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/triggers/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:getIamPolicy", + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "List triggers.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/triggers", + "httpMethod": "GET", + "id": "eventarc.projects.locations.triggers.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "orderBy": { + "description": "The sorting order of the resources returned. Value should be a comma separated list of fields. The default sorting oder is ascending. To specify descending order for a field, append a ` desc` suffix; for example: `name desc, trigger_id`.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of triggers to return on each page. Note: The service may send fewer.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The page token; provide the value from the `next_page_token` field in a previous `ListTriggers` call to retrieve the subsequent page. When paginating, all other parameters provided to `ListTriggers` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent collection to list triggers on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/triggers", + "response": { + "$ref": "ListTriggersResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Update a single trigger.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/triggers/{triggersId}", + "httpMethod": "PATCH", + "id": "eventarc.projects.locations.triggers.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the trigger. Must be unique within the location on the project. Format: projects/{project}/locations/{location}/triggers/{trigger}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/triggers/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The fields to be updated; only fields explicitly provided will be updated. If no field mask is provided, all provided fields in the request will be updated. To update all fields, provide a field mask of \"*\".", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "request": { + "$ref": "Trigger" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/triggers/{triggersId}:setIamPolicy", + "httpMethod": "POST", + "id": "eventarc.projects.locations.triggers.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/triggers/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/triggers/{triggersId}:testIamPermissions", + "httpMethod": "POST", + "id": "eventarc.projects.locations.triggers.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/triggers/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + } + }, + "revision": "20201113", + "rootUrl": "https://eventarc.googleapis.com/", + "schemas": { + "AuditConfig": { + "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.", + "id": "AuditConfig", + "properties": { + "auditLogConfigs": { + "description": "The configuration for logging of each type of permission.", + "items": { + "$ref": "AuditLogConfig" + }, + "type": "array" + }, + "service": { + "description": "Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.", + "type": "string" + } + }, + "type": "object" + }, + "AuditLogConfig": { + "description": "Provides the configuration for logging a type of permissions. Example: { \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.", + "id": "AuditLogConfig", + "properties": { + "exemptedMembers": { + "description": "Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.", + "items": { + "type": "string" + }, + "type": "array" + }, + "logType": { + "description": "The log type that this config enables.", + "enum": [ + "LOG_TYPE_UNSPECIFIED", + "ADMIN_READ", + "DATA_WRITE", + "DATA_READ" + ], + "enumDescriptions": [ + "Default case. Should never be this.", + "Admin reads. Example: CloudIAM getIamPolicy", + "Data writes. Example: CloudSQL Users create", + "Data reads. Example: CloudSQL Users list" + ], + "type": "string" + } + }, + "type": "object" + }, + "Binding": { + "description": "Associates `members` with a `role`.", + "id": "Binding", + "properties": { + "condition": { + "$ref": "Expr", + "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." + }, + "members": { + "description": "Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "items": { + "type": "string" + }, + "type": "array" + }, + "role": { + "description": "Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", + "type": "string" + } + }, + "type": "object" + }, + "CancelOperationRequest": { + "description": "The request message for Operations.CancelOperation.", + "id": "CancelOperationRequest", + "properties": {}, + "type": "object" + }, + "CloudRunService": { + "description": "Represents a Cloud Run service destination.", + "id": "CloudRunService", + "properties": { + "path": { + "description": "Optional. The relative path on the Cloud Run service the events should be sent to. The value must conform to the definition of URI path segment (section 3.3 of RFC2396). Examples: \"/route\", \"route\", \"route/subroute\".", + "type": "string" + }, + "region": { + "description": "Required. The region the Cloud Run service is deployed in.", + "type": "string" + }, + "service": { + "description": "Required. The name of the Cloud run service being addressed (see https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services). Only services located in the same project of the trigger object can be addressed.", + "type": "string" + } + }, + "type": "object" + }, + "Destination": { + "description": "Represents a target of an invocation over HTTP.", + "id": "Destination", + "properties": { + "cloudRunService": { + "$ref": "CloudRunService", + "description": "Cloud Run fully-managed service that receives the events. The service should be running in the same project of the trigger." + } + }, + "type": "object" + }, + "Empty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "id": "Empty", + "properties": {}, + "type": "object" + }, + "Expr": { + "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", + "id": "Expr", + "properties": { + "description": { + "description": "Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.", + "type": "string" + }, + "expression": { + "description": "Textual representation of an expression in Common Expression Language syntax.", + "type": "string" + }, + "location": { + "description": "Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.", + "type": "string" + }, + "title": { + "description": "Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.", + "type": "string" + } + }, + "type": "object" + }, + "ListLocationsResponse": { + "description": "The response message for Locations.ListLocations.", + "id": "ListLocationsResponse", + "properties": { + "locations": { + "description": "A list of locations that matches the specified filter in the request.", + "items": { + "$ref": "Location" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + } + }, + "type": "object" + }, + "ListOperationsResponse": { + "description": "The response message for Operations.ListOperations.", + "id": "ListOperationsResponse", + "properties": { + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + }, + "operations": { + "description": "A list of operations that matches the specified filter in the request.", + "items": { + "$ref": "Operation" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListTriggersResponse": { + "description": "The response message for the ListTriggers method.", + "id": "ListTriggersResponse", + "properties": { + "nextPageToken": { + "description": "A page token that can be sent to ListTriggers to request the next page. If this is empty, then there are no more pages.", + "type": "string" + }, + "triggers": { + "description": "The requested triggers, up to the number specified in `page_size`.", + "items": { + "$ref": "Trigger" + }, + "type": "array" + }, + "unreachable": { + "description": "Unreachable resources, if any.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "Location": { + "description": "A resource that represents Google Cloud Platform location.", + "id": "Location", + "properties": { + "displayName": { + "description": "The friendly name for this location, typically a nearby city name. For example, \"Tokyo\".", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Cross-service attributes for the location. For example {\"cloud.googleapis.com/region\": \"us-east1\"}", + "type": "object" + }, + "locationId": { + "description": "The canonical id for this location. For example: `\"us-east1\"`.", + "type": "string" + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata. For example the available capacity at the given location.", + "type": "object" + }, + "name": { + "description": "Resource name for the location, which may vary between implementations. For example: `\"projects/example-project/locations/us-east1\"`", + "type": "string" + } + }, + "type": "object" + }, + "MatchingCriteria": { + "description": "Matches events based on exact matches on the CloudEvents attributes.", + "id": "MatchingCriteria", + "properties": { + "attribute": { + "description": "Required. The name of a CloudEvents atrribute. Currently, only a subset of attributes can be specified. All triggers MUST provide a matching criteria for attribute 'type'. Event types specify what event type has attributes are allowed based on", + "type": "string" + }, + "value": { + "description": "Required. The value for the attribute", + "type": "string" + } + }, + "type": "object" + }, + "Operation": { + "description": "This resource represents a long-running operation that is the result of a network API call.", + "id": "Operation", + "properties": { + "done": { + "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", + "type": "boolean" + }, + "error": { + "$ref": "Status", + "description": "The error result of the operation in case of failure or cancellation." + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "type": "object" + }, + "name": { + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", + "type": "string" + }, + "response": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "type": "object" + } + }, + "type": "object" + }, + "OperationMetadata": { + "description": "Represents the metadata of the long-running operation.", + "id": "OperationMetadata", + "properties": { + "apiVersion": { + "description": "Output only. API version used to start the operation.", + "readOnly": true, + "type": "string" + }, + "createTime": { + "description": "Output only. The time the operation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "endTime": { + "description": "Output only. The time the operation finished running.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "requestedCancellation": { + "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "readOnly": true, + "type": "boolean" + }, + "statusMessage": { + "description": "Output only. Human-readable status of the operation, if any.", + "readOnly": true, + "type": "string" + }, + "target": { + "description": "Output only. Server-defined resource path for the target of the operation.", + "readOnly": true, + "type": "string" + }, + "verb": { + "description": "Output only. Name of the verb executed by the operation.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "Policy": { + "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", + "id": "Policy", + "properties": { + "auditConfigs": { + "description": "Specifies cloud audit logging configuration for this policy.", + "items": { + "$ref": "AuditConfig" + }, + "type": "array" + }, + "bindings": { + "description": "Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.", + "items": { + "$ref": "Binding" + }, + "type": "array" + }, + "etag": { + "description": "`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.", + "format": "byte", + "type": "string" + }, + "version": { + "description": "Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "Pubsub": { + "description": "Represents a Pub/Sub transport.", + "id": "Pubsub", + "properties": { + "subscription": { + "description": "The name of the Pub/Sub subscription created and managed by Eventarc system as a transport for the event delivery. The value must be in the form of `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}", + "type": "string" + }, + "topic": { + "description": "The name of the Pub/Sub topic created and managed by Eventarc system as a transport for the event delivery. The value must be in the form of `projects/{PROJECT_ID}/topics/{TOPIC_NAME}", + "type": "string" + } + }, + "type": "object" + }, + "SetIamPolicyRequest": { + "description": "Request message for `SetIamPolicy` method.", + "id": "SetIamPolicyRequest", + "properties": { + "policy": { + "$ref": "Policy", + "description": "REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them." + }, + "updateMask": { + "description": "OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: \"bindings, etag\"`", + "format": "google-fieldmask", + "type": "string" + } + }, + "type": "object" + }, + "Status": { + "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", + "id": "Status", + "properties": { + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "format": "int32", + "type": "integer" + }, + "details": { + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", + "type": "string" + } + }, + "type": "object" + }, + "TestIamPermissionsRequest": { + "description": "Request message for `TestIamPermissions` method.", + "id": "TestIamPermissionsRequest", + "properties": { + "permissions": { + "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "TestIamPermissionsResponse": { + "description": "Response message for `TestIamPermissions` method.", + "id": "TestIamPermissionsResponse", + "properties": { + "permissions": { + "description": "A subset of `TestPermissionsRequest.permissions` that the caller is allowed.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "Transport": { + "description": "Represents the transport intermediaries created for the trigger in order to deliver events.", + "id": "Transport", + "properties": { + "pubsub": { + "$ref": "Pubsub", + "description": "The Pub/Sub topic and subscription that maybe created by Eventarc as delivery intermediary." + } + }, + "type": "object" + }, + "Trigger": { + "description": "A representation of the trigger resource.", + "id": "Trigger", + "properties": { + "createTime": { + "description": "Output only. The creation time.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "destination": { + "$ref": "Destination", + "description": "Required. Destinations specify where the events will be sent to. Exactly one destination is supported at this time." + }, + "etag": { + "description": "Output only. This checksum is computed by the server based on the value of other fields, and may be sent only on create requests to ensure the client has an up-to-date value before proceeding.", + "readOnly": true, + "type": "string" + }, + "matchingCriteria": { + "description": "Required. The criteria by which events are filtered. Only events that match with this critera will be sent to the destinations.", + "items": { + "$ref": "MatchingCriteria" + }, + "type": "array" + }, + "name": { + "description": "Required. The resource name of the trigger. Must be unique within the location on the project. Format: projects/{project}/locations/{location}/triggers/{trigger}", + "type": "string" + }, + "serviceAccount": { + "description": "Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger. The principal who calls this API must have `iam.serviceAccounts.actAs` permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common for more information. For Cloud Run destinations, this service account is used to generate identity tokens when invoking the service. See https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-account for information on how to invoke authenticated Cloud Run services. In order to create Audit Log triggers, the service account should also have 'eventarc.events.receiveAuditLogV1Written' permission.", + "type": "string" + }, + "transport": { + "$ref": "Transport", + "description": "Output only. In order to deliver messages, Eventarc may configure other GCP products as transport intermediary. This field returns a reference to that transport intermediary. This information can be used for debugging purposes.", + "readOnly": true + }, + "updateTime": { + "description": "Output only. The last-modified time.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + } + }, + "servicePath": "", + "title": "Eventarc API", + "version": "v1beta1", + "version_module": true +} \ No newline at end of file diff --git a/eventarc/v1beta1/eventarc-gen.go b/eventarc/v1beta1/eventarc-gen.go new file mode 100644 index 00000000000..5df7abcdf63 --- /dev/null +++ b/eventarc/v1beta1/eventarc-gen.go @@ -0,0 +1,3441 @@ +// Copyright 2020 Google LLC. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated file. DO NOT EDIT. + +// Package eventarc provides access to the Eventarc API. +// +// For product documentation, see: https://cloud.google.com/eventarc +// +// Creating a client +// +// Usage example: +// +// import "google.golang.org/api/eventarc/v1beta1" +// ... +// ctx := context.Background() +// eventarcService, err := eventarc.NewService(ctx) +// +// In this example, Google Application Default Credentials are used for authentication. +// +// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// +// Other authentication options +// +// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// +// eventarcService, err := eventarc.NewService(ctx, option.WithAPIKey("AIza...")) +// +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// +// config := &oauth2.Config{...} +// // ... +// token, err := config.Exchange(ctx, ...) +// eventarcService, err := eventarc.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) +// +// See https://godoc.org/google.golang.org/api/option/ for details on options. +package eventarc // import "google.golang.org/api/eventarc/v1beta1" + +import ( + "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + googleapi "google.golang.org/api/googleapi" + gensupport "google.golang.org/api/internal/gensupport" + option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" + htransport "google.golang.org/api/transport/http" +) + +// Always reference these packages, just in case the auto-generated code +// below doesn't. +var _ = bytes.NewBuffer +var _ = strconv.Itoa +var _ = fmt.Sprintf +var _ = json.NewDecoder +var _ = io.Copy +var _ = url.Parse +var _ = gensupport.MarshalJSON +var _ = googleapi.Version +var _ = errors.New +var _ = strings.Replace +var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint + +const apiId = "eventarc:v1beta1" +const apiName = "eventarc" +const apiVersion = "v1beta1" +const basePath = "https://eventarc.googleapis.com/" +const mtlsBasePath = "https://eventarc.mtls.googleapis.com/" + +// OAuth2 scopes used by this API. +const ( + // View and manage your data across Google Cloud Platform services + CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" +) + +// NewService creates a new Service. +func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + scopesOption := option.WithScopes( + "https://www.googleapis.com/auth/cloud-platform", + ) + // NOTE: prepend, so we don't override user-specified scopes. + opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + client, endpoint, err := htransport.NewClient(ctx, opts...) + if err != nil { + return nil, err + } + s, err := New(client) + if err != nil { + return nil, err + } + if endpoint != "" { + s.BasePath = endpoint + } + return s, nil +} + +// New creates a new Service. It uses the provided http.Client for requests. +// +// Deprecated: please use NewService instead. +// To provide a custom HTTP client, use option.WithHTTPClient. +// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. +func New(client *http.Client) (*Service, error) { + if client == nil { + return nil, errors.New("client is nil") + } + s := &Service{client: client, BasePath: basePath} + s.Projects = NewProjectsService(s) + return s, nil +} + +type Service struct { + client *http.Client + BasePath string // API endpoint base URL + UserAgent string // optional additional User-Agent fragment + + Projects *ProjectsService +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewProjectsService(s *Service) *ProjectsService { + rs := &ProjectsService{s: s} + rs.Locations = NewProjectsLocationsService(s) + return rs +} + +type ProjectsService struct { + s *Service + + Locations *ProjectsLocationsService +} + +func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { + rs := &ProjectsLocationsService{s: s} + rs.Operations = NewProjectsLocationsOperationsService(s) + rs.Triggers = NewProjectsLocationsTriggersService(s) + return rs +} + +type ProjectsLocationsService struct { + s *Service + + Operations *ProjectsLocationsOperationsService + + Triggers *ProjectsLocationsTriggersService +} + +func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { + rs := &ProjectsLocationsOperationsService{s: s} + return rs +} + +type ProjectsLocationsOperationsService struct { + s *Service +} + +func NewProjectsLocationsTriggersService(s *Service) *ProjectsLocationsTriggersService { + rs := &ProjectsLocationsTriggersService{s: s} + return rs +} + +type ProjectsLocationsTriggersService struct { + s *Service +} + +// AuditConfig: Specifies the audit configuration for a service. The +// configuration determines which permission types are logged, and what +// identities, if any, are exempted from logging. An AuditConfig must +// have one or more AuditLogConfigs. If there are AuditConfigs for both +// `allServices` and a specific service, the union of the two +// AuditConfigs is used for that service: the log_types specified in +// each AuditConfig are enabled, and the exempted_members in each +// AuditLogConfig are exempted. Example Policy with multiple +// AuditConfigs: { "audit_configs": [ { "service": "allServices", +// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": +// [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { +// "log_type": "ADMIN_READ" } ] }, { "service": +// "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": +// "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ +// "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy +// enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts +// jose@example.com from DATA_READ logging, and aliya@example.com from +// DATA_WRITE logging. +type AuditConfig struct { + // AuditLogConfigs: The configuration for logging of each type of + // permission. + AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"` + + // Service: Specifies a service that will be enabled for audit logging. + // For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + // `allServices` is a special value that covers all services. + Service string `json:"service,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AuditLogConfigs") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AuditConfig) MarshalJSON() ([]byte, error) { + type NoMethod AuditConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AuditLogConfig: Provides the configuration for logging a type of +// permissions. Example: { "audit_log_configs": [ { "log_type": +// "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { +// "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and +// 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ +// logging. +type AuditLogConfig struct { + // ExemptedMembers: Specifies the identities that do not cause logging + // for this type of permission. Follows the same format of + // Binding.members. + ExemptedMembers []string `json:"exemptedMembers,omitempty"` + + // LogType: The log type that this config enables. + // + // Possible values: + // "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this. + // "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy + // "DATA_WRITE" - Data writes. Example: CloudSQL Users create + // "DATA_READ" - Data reads. Example: CloudSQL Users list + LogType string `json:"logType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExemptedMembers") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExemptedMembers") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { + type NoMethod AuditLogConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Binding: Associates `members` with a `role`. +type Binding struct { + // Condition: The condition that is associated with this binding. If the + // condition evaluates to `true`, then this binding applies to the + // current request. If the condition evaluates to `false`, then this + // binding does not apply to the current request. However, a different + // role binding might grant the same role to one or more of the members + // in this binding. To learn which resources support conditions in their + // IAM policies, see the [IAM + // documentation](https://cloud.google.com/iam/help/conditions/resource-p + // olicies). + Condition *Expr `json:"condition,omitempty"` + + // Members: Specifies the identities requesting access for a Cloud + // Platform resource. `members` can have the following values: * + // `allUsers`: A special identifier that represents anyone who is on the + // internet; with or without a Google account. * + // `allAuthenticatedUsers`: A special identifier that represents anyone + // who is authenticated with a Google account or a service account. * + // `user:{emailid}`: An email address that represents a specific Google + // account. For example, `alice@example.com` . * + // `serviceAccount:{emailid}`: An email address that represents a + // service account. For example, + // `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An + // email address that represents a Google group. For example, + // `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An + // email address (plus unique identifier) representing a user that has + // been recently deleted. For example, + // `alice@example.com?uid=123456789012345678901`. If the user is + // recovered, this value reverts to `user:{emailid}` and the recovered + // user retains the role in the binding. * + // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address + // (plus unique identifier) representing a service account that has been + // recently deleted. For example, + // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + // If the service account is undeleted, this value reverts to + // `serviceAccount:{emailid}` and the undeleted service account retains + // the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: + // An email address (plus unique identifier) representing a Google group + // that has been recently deleted. For example, + // `admins@example.com?uid=123456789012345678901`. If the group is + // recovered, this value reverts to `group:{emailid}` and the recovered + // group retains the role in the binding. * `domain:{domain}`: The G + // Suite domain (primary) that represents all the users of that domain. + // For example, `google.com` or `example.com`. + Members []string `json:"members,omitempty"` + + // Role: Role that is assigned to `members`. For example, + // `roles/viewer`, `roles/editor`, or `roles/owner`. + Role string `json:"role,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Condition") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Condition") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Binding) MarshalJSON() ([]byte, error) { + type NoMethod Binding + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CancelOperationRequest: The request message for +// Operations.CancelOperation. +type CancelOperationRequest struct { +} + +// CloudRunService: Represents a Cloud Run service destination. +type CloudRunService struct { + // Path: Optional. The relative path on the Cloud Run service the events + // should be sent to. The value must conform to the definition of URI + // path segment (section 3.3 of RFC2396). Examples: "/route", "route", + // "route/subroute". + Path string `json:"path,omitempty"` + + // Region: Required. The region the Cloud Run service is deployed in. + Region string `json:"region,omitempty"` + + // Service: Required. The name of the Cloud run service being addressed + // (see + // https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services). Only services located in the same project of the trigger object can be + // addressed. + Service string `json:"service,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Path") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Path") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CloudRunService) MarshalJSON() ([]byte, error) { + type NoMethod CloudRunService + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Destination: Represents a target of an invocation over HTTP. +type Destination struct { + // CloudRunService: Cloud Run fully-managed service that receives the + // events. The service should be running in the same project of the + // trigger. + CloudRunService *CloudRunService `json:"cloudRunService,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CloudRunService") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CloudRunService") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *Destination) MarshalJSON() ([]byte, error) { + type NoMethod Destination + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Empty: A generic empty message that you can re-use to avoid defining +// duplicated empty messages in your APIs. A typical example is to use +// it as the request or the response type of an API method. For +// instance: service Foo { rpc Bar(google.protobuf.Empty) returns +// (google.protobuf.Empty); } The JSON representation for `Empty` is +// empty JSON object `{}`. +type Empty struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// Expr: Represents a textual expression in the Common Expression +// Language (CEL) syntax. CEL is a C-like expression language. The +// syntax and semantics of CEL are documented at +// https://github.com/google/cel-spec. Example (Comparison): title: +// "Summary size limit" description: "Determines if a summary is less +// than 100 chars" expression: "document.summary.size() < 100" Example +// (Equality): title: "Requestor is owner" description: "Determines if +// requestor is the document owner" expression: "document.owner == +// request.auth.claims.email" Example (Logic): title: "Public documents" +// description: "Determine whether the document should be publicly +// visible" expression: "document.type != 'private' && document.type != +// 'internal'" Example (Data Manipulation): title: "Notification string" +// description: "Create a notification string with a timestamp." +// expression: "'New message received at ' + +// string(document.create_time)" The exact variables and functions that +// may be referenced within an expression are determined by the service +// that evaluates it. See the service documentation for additional +// information. +type Expr struct { + // Description: Optional. Description of the expression. This is a + // longer text which describes the expression, e.g. when hovered over it + // in a UI. + Description string `json:"description,omitempty"` + + // Expression: Textual representation of an expression in Common + // Expression Language syntax. + Expression string `json:"expression,omitempty"` + + // Location: Optional. String indicating the location of the expression + // for error reporting, e.g. a file name and a position in the file. + Location string `json:"location,omitempty"` + + // Title: Optional. Title for the expression, i.e. a short string + // describing its purpose. This can be used e.g. in UIs which allow to + // enter the expression. + Title string `json:"title,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Description") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Expr) MarshalJSON() ([]byte, error) { + type NoMethod Expr + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListLocationsResponse: The response message for +// Locations.ListLocations. +type ListLocationsResponse struct { + // Locations: A list of locations that matches the specified filter in + // the request. + Locations []*Location `json:"locations,omitempty"` + + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Locations") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Locations") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListLocationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListOperationsResponse: The response message for +// Operations.ListOperations. +type ListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Operations: A list of operations that matches the specified filter in + // the request. + Operations []*Operation `json:"operations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListOperationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListTriggersResponse: The response message for the ListTriggers +// method. +type ListTriggersResponse struct { + // NextPageToken: A page token that can be sent to ListTriggers to + // request the next page. If this is empty, then there are no more + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Triggers: The requested triggers, up to the number specified in + // `page_size`. + Triggers []*Trigger `json:"triggers,omitempty"` + + // Unreachable: Unreachable resources, if any. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListTriggersResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListTriggersResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Location: A resource that represents Google Cloud Platform location. +type Location struct { + // DisplayName: The friendly name for this location, typically a nearby + // city name. For example, "Tokyo". + DisplayName string `json:"displayName,omitempty"` + + // Labels: Cross-service attributes for the location. For example + // {"cloud.googleapis.com/region": "us-east1"} + Labels map[string]string `json:"labels,omitempty"` + + // LocationId: The canonical id for this location. For example: + // "us-east1". + LocationId string `json:"locationId,omitempty"` + + // Metadata: Service-specific metadata. For example the available + // capacity at the given location. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: Resource name for the location, which may vary between + // implementations. For example: + // "projects/example-project/locations/us-east1" + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisplayName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Location) MarshalJSON() ([]byte, error) { + type NoMethod Location + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MatchingCriteria: Matches events based on exact matches on the +// CloudEvents attributes. +type MatchingCriteria struct { + // Attribute: Required. The name of a CloudEvents atrribute. Currently, + // only a subset of attributes can be specified. All triggers MUST + // provide a matching criteria for attribute 'type'. Event types specify + // what event type has attributes are allowed based on + Attribute string `json:"attribute,omitempty"` + + // Value: Required. The value for the attribute + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Attribute") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Attribute") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MatchingCriteria) MarshalJSON() ([]byte, error) { + type NoMethod MatchingCriteria + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Operation: This resource represents a long-running operation that is +// the result of a network API call. +type Operation struct { + // Done: If the value is `false`, it means the operation is still in + // progress. If `true`, the operation is completed, and either `error` + // or `response` is available. + Done bool `json:"done,omitempty"` + + // Error: The error result of the operation in case of failure or + // cancellation. + Error *Status `json:"error,omitempty"` + + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as + // create time. Some services might not provide such metadata. Any + // method that returns a long-running operation should document the + // metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: The server-assigned name, which is only unique within the same + // service that originally returns it. If you use the default HTTP + // mapping, the `name` should be a resource name ending with + // `operations/{unique_id}`. + Name string `json:"name,omitempty"` + + // Response: The normal response of the operation in case of success. If + // the original method returns no data on success, such as `Delete`, the + // response is `google.protobuf.Empty`. If the original method is + // standard `Get`/`Create`/`Update`, the response should be the + // resource. For other methods, the response should have the type + // `XxxResponse`, where `Xxx` is the original method name. For example, + // if the original method name is `TakeSnapshot()`, the inferred + // response type is `TakeSnapshotResponse`. + Response googleapi.RawMessage `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Done") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Done") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Operation) MarshalJSON() ([]byte, error) { + type NoMethod Operation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// OperationMetadata: Represents the metadata of the long-running +// operation. +type OperationMetadata struct { + // ApiVersion: Output only. API version used to start the operation. + ApiVersion string `json:"apiVersion,omitempty"` + + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + + // RequestedCancellation: Output only. Identifies whether the user has + // requested cancellation of the operation. Operations that have + // successfully been cancelled have Operation.error value with a + // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + RequestedCancellation bool `json:"requestedCancellation,omitempty"` + + // StatusMessage: Output only. Human-readable status of the operation, + // if any. + StatusMessage string `json:"statusMessage,omitempty"` + + // Target: Output only. Server-defined resource path for the target of + // the operation. + Target string `json:"target,omitempty"` + + // Verb: Output only. Name of the verb executed by the operation. + Verb string `json:"verb,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ApiVersion") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ApiVersion") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *OperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod OperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Policy: An Identity and Access Management (IAM) policy, which +// specifies access controls for Google Cloud resources. A `Policy` is a +// collection of `bindings`. A `binding` binds one or more `members` to +// a single `role`. Members can be user accounts, service accounts, +// Google groups, and domains (such as G Suite). A `role` is a named +// list of permissions; each `role` can be an IAM predefined role or a +// user-created custom role. For some types of Google Cloud resources, a +// `binding` can also specify a `condition`, which is a logical +// expression that allows access to a resource only if the expression +// evaluates to `true`. A condition can add constraints based on +// attributes of the request, the resource, or both. To learn which +// resources support conditions in their IAM policies, see the [IAM +// documentation](https://cloud.google.com/iam/help/conditions/resource-p +// olicies). **JSON example:** { "bindings": [ { "role": +// "roles/resourcemanager.organizationAdmin", "members": [ +// "user:mike@example.com", "group:admins@example.com", +// "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { +// "role": "roles/resourcemanager.organizationViewer", "members": [ +// "user:eve@example.com" ], "condition": { "title": "expirable access", +// "description": "Does not grant access after Sep 2020", "expression": +// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], +// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - +// members: - user:mike@example.com - group:admins@example.com - +// domain:google.com - +// serviceAccount:my-project-id@appspot.gserviceaccount.com role: +// roles/resourcemanager.organizationAdmin - members: - +// user:eve@example.com role: roles/resourcemanager.organizationViewer +// condition: title: expirable access description: Does not grant access +// after Sep 2020 expression: request.time < +// timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: +// 3 For a description of IAM and its features, see the [IAM +// documentation](https://cloud.google.com/iam/docs/). +type Policy struct { + // AuditConfigs: Specifies cloud audit logging configuration for this + // policy. + AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"` + + // Bindings: Associates a list of `members` to a `role`. Optionally, may + // specify a `condition` that determines how and when the `bindings` are + // applied. Each of the `bindings` must contain at least one member. + Bindings []*Binding `json:"bindings,omitempty"` + + // Etag: `etag` is used for optimistic concurrency control as a way to + // help prevent simultaneous updates of a policy from overwriting each + // other. It is strongly suggested that systems make use of the `etag` + // in the read-modify-write cycle to perform policy updates in order to + // avoid race conditions: An `etag` is returned in the response to + // `getIamPolicy`, and systems are expected to put that etag in the + // request to `setIamPolicy` to ensure that their change will be applied + // to the same version of the policy. **Important:** If you use IAM + // Conditions, you must include the `etag` field whenever you call + // `setIamPolicy`. If you omit this field, then IAM allows you to + // overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. + Etag string `json:"etag,omitempty"` + + // Version: Specifies the format of the policy. Valid values are `0`, + // `1`, and `3`. Requests that specify an invalid value are rejected. + // Any operation that affects conditional role bindings must specify + // version `3`. This requirement applies to the following operations: * + // Getting a policy that includes a conditional role binding * Adding a + // conditional role binding to a policy * Changing a conditional role + // binding in a policy * Removing any role binding, with or without a + // condition, from a policy that includes conditions **Important:** If + // you use IAM Conditions, you must include the `etag` field whenever + // you call `setIamPolicy`. If you omit this field, then IAM allows you + // to overwrite a version `3` policy with a version `1` policy, and all + // of the conditions in the version `3` policy are lost. If a policy + // does not include any conditions, operations on that policy may + // specify any valid version or leave the field unset. To learn which + // resources support conditions in their IAM policies, see the [IAM + // documentation](https://cloud.google.com/iam/help/conditions/resource-p + // olicies). + Version int64 `json:"version,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AuditConfigs") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AuditConfigs") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Policy) MarshalJSON() ([]byte, error) { + type NoMethod Policy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Pubsub: Represents a Pub/Sub transport. +type Pubsub struct { + // Subscription: The name of the Pub/Sub subscription created and + // managed by Eventarc system as a transport for the event delivery. The + // value must be in the form of + // `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME} + Subscription string `json:"subscription,omitempty"` + + // Topic: The name of the Pub/Sub topic created and managed by Eventarc + // system as a transport for the event delivery. The value must be in + // the form of `projects/{PROJECT_ID}/topics/{TOPIC_NAME} + Topic string `json:"topic,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Subscription") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Subscription") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Pubsub) MarshalJSON() ([]byte, error) { + type NoMethod Pubsub + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SetIamPolicyRequest: Request message for `SetIamPolicy` method. +type SetIamPolicyRequest struct { + // Policy: REQUIRED: The complete policy to be applied to the + // `resource`. The size of the policy is limited to a few 10s of KB. An + // empty policy is a valid policy but certain Cloud Platform services + // (such as Projects) might reject them. + Policy *Policy `json:"policy,omitempty"` + + // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the + // policy to modify. Only the fields in the mask will be modified. If no + // mask is provided, the following default mask is used: `paths: + // "bindings, etag" + UpdateMask string `json:"updateMask,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Policy") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Policy") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { + type NoMethod SetIamPolicyRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Status: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs +// and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each +// `Status` message contains three pieces of data: error code, error +// message, and error details. You can find out more about this error +// model and how to work with it in the [API Design +// Guide](https://cloud.google.com/apis/design/errors). +type Status struct { + // Code: The status code, which should be an enum value of + // google.rpc.Code. + Code int64 `json:"code,omitempty"` + + // Details: A list of messages that carry the error details. There is a + // common set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Status) MarshalJSON() ([]byte, error) { + type NoMethod Status + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TestIamPermissionsRequest: Request message for `TestIamPermissions` +// method. +type TestIamPermissionsRequest struct { + // Permissions: The set of permissions to check for the `resource`. + // Permissions with wildcards (such as '*' or 'storage.*') are not + // allowed. For more information see [IAM + // Overview](https://cloud.google.com/iam/docs/overview#permissions). + Permissions []string `json:"permissions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Permissions") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Permissions") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { + type NoMethod TestIamPermissionsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TestIamPermissionsResponse: Response message for `TestIamPermissions` +// method. +type TestIamPermissionsResponse struct { + // Permissions: A subset of `TestPermissionsRequest.permissions` that + // the caller is allowed. + Permissions []string `json:"permissions,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Permissions") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Permissions") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod TestIamPermissionsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Transport: Represents the transport intermediaries created for the +// trigger in order to deliver events. +type Transport struct { + // Pubsub: The Pub/Sub topic and subscription that maybe created by + // Eventarc as delivery intermediary. + Pubsub *Pubsub `json:"pubsub,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Pubsub") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Pubsub") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Transport) MarshalJSON() ([]byte, error) { + type NoMethod Transport + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Trigger: A representation of the trigger resource. +type Trigger struct { + // CreateTime: Output only. The creation time. + CreateTime string `json:"createTime,omitempty"` + + // Destination: Required. Destinations specify where the events will be + // sent to. Exactly one destination is supported at this time. + Destination *Destination `json:"destination,omitempty"` + + // Etag: Output only. This checksum is computed by the server based on + // the value of other fields, and may be sent only on create requests to + // ensure the client has an up-to-date value before proceeding. + Etag string `json:"etag,omitempty"` + + // MatchingCriteria: Required. The criteria by which events are + // filtered. Only events that match with this critera will be sent to + // the destinations. + MatchingCriteria []*MatchingCriteria `json:"matchingCriteria,omitempty"` + + // Name: Required. The resource name of the trigger. Must be unique + // within the location on the project. Format: + // projects/{project}/locations/{location}/triggers/{trigger} + Name string `json:"name,omitempty"` + + // ServiceAccount: Optional. The IAM service account email associated + // with the trigger. The service account represents the identity of the + // trigger. The principal who calls this API must have + // `iam.serviceAccounts.actAs` permission in the service account. See + // https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common for more information. For Cloud Run destinations, this service account is used to generate identity tokens when invoking the service. See https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-account for information on how to invoke authenticated Cloud Run services. In order to create Audit Log triggers, the service account should also have 'eventarc.events.receiveAuditLogV1Written' + // permission. + ServiceAccount string `json:"serviceAccount,omitempty"` + + // Transport: Output only. In order to deliver messages, Eventarc may + // configure other GCP products as transport intermediary. This field + // returns a reference to that transport intermediary. This information + // can be used for debugging purposes. + Transport *Transport `json:"transport,omitempty"` + + // UpdateTime: Output only. The last-modified time. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Trigger) MarshalJSON() ([]byte, error) { + type NoMethod Trigger + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "eventarc.projects.locations.get": + +type ProjectsLocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information about a location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201118") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "eventarc.projects.locations.get" call. +// Exactly one of *Location or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Location.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Location{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets information about a location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}", + // "httpMethod": "GET", + // "id": "eventarc.projects.locations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Resource name for the location.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Location" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "eventarc.projects.locations.list": + +type ProjectsLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists information about the supported locations for this +// service. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201118") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/locations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "eventarc.projects.locations.list" call. +// Exactly one of *ListLocationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListLocationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists information about the supported locations for this service.", + // "flatPath": "v1beta1/projects/{projectsId}/locations", + // "httpMethod": "GET", + // "id": "eventarc.projects.locations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The resource that owns the locations collection, if applicable.", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}/locations", + // "response": { + // "$ref": "ListLocationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "eventarc.projects.locations.operations.cancel": + +type ProjectsLocationsOperationsCancelCall struct { + s *Service + name string + canceloperationrequest *CancelOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. +func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall { + c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.canceloperationrequest = canceloperationrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201118") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "eventarc.projects.locations.operations.cancel" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "eventarc.projects.locations.operations.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be cancelled.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:cancel", + // "request": { + // "$ref": "CancelOperationRequest" + // }, + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "eventarc.projects.locations.operations.delete": + +type ProjectsLocationsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a long-running operation. This method indicates that +// the client is no longer interested in the operation result. It does +// not cancel the operation. If the server doesn't support this method, +// it returns `google.rpc.Code.UNIMPLEMENTED`. +func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall { + c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201118") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "eventarc.projects.locations.operations.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "eventarc.projects.locations.operations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be deleted.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "eventarc.projects.locations.operations.get": + +type ProjectsLocationsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { + c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201118") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "eventarc.projects.locations.operations.get" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "eventarc.projects.locations.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "eventarc.projects.locations.operations.list": + +type ProjectsLocationsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to +// override the binding to use different resource name schemes, such as +// `users/*/operations`. To override the binding, API services can add a +// binding such as "/v1/{name=users/*}/operations" to their service +// configuration. For backwards compatibility, the default name includes +// the operations collection id, however overriding users must ensure +// the name binding is the parent resource, without the operations +// collection id. +func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { + c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201118") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "eventarc.projects.locations.operations.list" call. +// Exactly one of *ListOperationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations", + // "httpMethod": "GET", + // "id": "eventarc.projects.locations.operations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}/operations", + // "response": { + // "$ref": "ListOperationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "eventarc.projects.locations.triggers.create": + +type ProjectsLocationsTriggersCreateCall struct { + s *Service + parent string + trigger *Trigger + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Create a new trigger in a particular project and location. +func (r *ProjectsLocationsTriggersService) Create(parent string, trigger *Trigger) *ProjectsLocationsTriggersCreateCall { + c := &ProjectsLocationsTriggersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.trigger = trigger + return c +} + +// TriggerId sets the optional parameter "triggerId": Required. The +// user-provided ID to be assigned to the trigger. +func (c *ProjectsLocationsTriggersCreateCall) TriggerId(triggerId string) *ProjectsLocationsTriggersCreateCall { + c.urlParams_.Set("triggerId", triggerId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsTriggersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsTriggersCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsTriggersCreateCall) Context(ctx context.Context) *ProjectsLocationsTriggersCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsTriggersCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTriggersCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201118") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.trigger) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/triggers") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "eventarc.projects.locations.triggers.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsTriggersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Create a new trigger in a particular project and location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/triggers", + // "httpMethod": "POST", + // "id": "eventarc.projects.locations.triggers.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The parent collection in which to add this trigger.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "triggerId": { + // "description": "Required. The user-provided ID to be assigned to the trigger.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/triggers", + // "request": { + // "$ref": "Trigger" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "eventarc.projects.locations.triggers.delete": + +type ProjectsLocationsTriggersDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Delete a single trigger. +func (r *ProjectsLocationsTriggersService) Delete(name string) *ProjectsLocationsTriggersDeleteCall { + c := &ProjectsLocationsTriggersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Etag sets the optional parameter "etag": If provided, the trigger +// will only be deleted if the etag matches the current etag on the +// resource. +func (c *ProjectsLocationsTriggersDeleteCall) Etag(etag string) *ProjectsLocationsTriggersDeleteCall { + c.urlParams_.Set("etag", etag) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsTriggersDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTriggersDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsTriggersDeleteCall) Context(ctx context.Context) *ProjectsLocationsTriggersDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsTriggersDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTriggersDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201118") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "eventarc.projects.locations.triggers.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsTriggersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Delete a single trigger.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/triggers/{triggersId}", + // "httpMethod": "DELETE", + // "id": "eventarc.projects.locations.triggers.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "etag": { + // "description": "If provided, the trigger will only be deleted if the etag matches the current etag on the resource.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "Required. The name of the trigger to be deleted.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/triggers/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "eventarc.projects.locations.triggers.get": + +type ProjectsLocationsTriggersGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get a single trigger. +func (r *ProjectsLocationsTriggersService) Get(name string) *ProjectsLocationsTriggersGetCall { + c := &ProjectsLocationsTriggersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsTriggersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTriggersGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsTriggersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsTriggersGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsTriggersGetCall) Context(ctx context.Context) *ProjectsLocationsTriggersGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsTriggersGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTriggersGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201118") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "eventarc.projects.locations.triggers.get" call. +// Exactly one of *Trigger or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Trigger.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsTriggersGetCall) Do(opts ...googleapi.CallOption) (*Trigger, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Trigger{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Get a single trigger.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/triggers/{triggersId}", + // "httpMethod": "GET", + // "id": "eventarc.projects.locations.triggers.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the trigger to get.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/triggers/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Trigger" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "eventarc.projects.locations.triggers.getIamPolicy": + +type ProjectsLocationsTriggersGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. +func (r *ProjectsLocationsTriggersService) GetIamPolicy(resource string) *ProjectsLocationsTriggersGetIamPolicyCall { + c := &ProjectsLocationsTriggersGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The policy format version to be +// returned. Valid values are 0, 1, and 3. Requests specifying an +// invalid value will be rejected. Requests for policies with any +// conditional bindings must specify version 3. Policies without any +// conditional bindings may specify any valid value or leave the field +// unset. To learn which resources support conditions in their IAM +// policies, see the [IAM +// documentation](https://cloud.google.com/iam/help/conditions/resource-p +// olicies). +func (c *ProjectsLocationsTriggersGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsTriggersGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsTriggersGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsTriggersGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsTriggersGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsTriggersGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsTriggersGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsTriggersGetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsTriggersGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTriggersGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201118") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "eventarc.projects.locations.triggers.getIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsTriggersGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/triggers/{triggersId}:getIamPolicy", + // "httpMethod": "GET", + // "id": "eventarc.projects.locations.triggers.getIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "options.requestedPolicyVersion": { + // "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/triggers/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:getIamPolicy", + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "eventarc.projects.locations.triggers.list": + +type ProjectsLocationsTriggersListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List triggers. +func (r *ProjectsLocationsTriggersService) List(parent string) *ProjectsLocationsTriggersListCall { + c := &ProjectsLocationsTriggersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// OrderBy sets the optional parameter "orderBy": The sorting order of +// the resources returned. Value should be a comma separated list of +// fields. The default sorting oder is ascending. To specify descending +// order for a field, append a ` desc` suffix; for example: `name desc, +// trigger_id`. +func (c *ProjectsLocationsTriggersListCall) OrderBy(orderBy string) *ProjectsLocationsTriggersListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of triggers to return on each page. Note: The service may send fewer. +func (c *ProjectsLocationsTriggersListCall) PageSize(pageSize int64) *ProjectsLocationsTriggersListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The page token; +// provide the value from the `next_page_token` field in a previous +// `ListTriggers` call to retrieve the subsequent page. When paginating, +// all other parameters provided to `ListTriggers` must match the call +// that provided the page token. +func (c *ProjectsLocationsTriggersListCall) PageToken(pageToken string) *ProjectsLocationsTriggersListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsTriggersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsTriggersListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsTriggersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsTriggersListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsTriggersListCall) Context(ctx context.Context) *ProjectsLocationsTriggersListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsTriggersListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTriggersListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201118") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/triggers") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "eventarc.projects.locations.triggers.list" call. +// Exactly one of *ListTriggersResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListTriggersResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsTriggersListCall) Do(opts ...googleapi.CallOption) (*ListTriggersResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListTriggersResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "List triggers.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/triggers", + // "httpMethod": "GET", + // "id": "eventarc.projects.locations.triggers.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "orderBy": { + // "description": "The sorting order of the resources returned. Value should be a comma separated list of fields. The default sorting oder is ascending. To specify descending order for a field, append a ` desc` suffix; for example: `name desc, trigger_id`.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of triggers to return on each page. Note: The service may send fewer.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The page token; provide the value from the `next_page_token` field in a previous `ListTriggers` call to retrieve the subsequent page. When paginating, all other parameters provided to `ListTriggers` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent collection to list triggers on.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/triggers", + // "response": { + // "$ref": "ListTriggersResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsTriggersListCall) Pages(ctx context.Context, f func(*ListTriggersResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "eventarc.projects.locations.triggers.patch": + +type ProjectsLocationsTriggersPatchCall struct { + s *Service + name string + trigger *Trigger + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Update a single trigger. +func (r *ProjectsLocationsTriggersService) Patch(name string, trigger *Trigger) *ProjectsLocationsTriggersPatchCall { + c := &ProjectsLocationsTriggersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.trigger = trigger + return c +} + +// UpdateMask sets the optional parameter "updateMask": The fields to be +// updated; only fields explicitly provided will be updated. If no field +// mask is provided, all provided fields in the request will be updated. +// To update all fields, provide a field mask of "*". +func (c *ProjectsLocationsTriggersPatchCall) UpdateMask(updateMask string) *ProjectsLocationsTriggersPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsTriggersPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsTriggersPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsTriggersPatchCall) Context(ctx context.Context) *ProjectsLocationsTriggersPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsTriggersPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTriggersPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201118") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.trigger) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "eventarc.projects.locations.triggers.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsTriggersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Update a single trigger.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/triggers/{triggersId}", + // "httpMethod": "PATCH", + // "id": "eventarc.projects.locations.triggers.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name of the trigger. Must be unique within the location on the project. Format: projects/{project}/locations/{location}/triggers/{trigger}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/triggers/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "The fields to be updated; only fields explicitly provided will be updated. If no field mask is provided, all provided fields in the request will be updated. To update all fields, provide a field mask of \"*\".", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "Trigger" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "eventarc.projects.locations.triggers.setIamPolicy": + +type ProjectsLocationsTriggersSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +func (r *ProjectsLocationsTriggersService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsTriggersSetIamPolicyCall { + c := &ProjectsLocationsTriggersSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsTriggersSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsTriggersSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsTriggersSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsTriggersSetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsTriggersSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTriggersSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201118") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "eventarc.projects.locations.triggers.setIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsTriggersSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/triggers/{triggersId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "eventarc.projects.locations.triggers.setIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/triggers/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "eventarc.projects.locations.triggers.testIamPermissions": + +type ProjectsLocationsTriggersTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. +func (r *ProjectsLocationsTriggersService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsTriggersTestIamPermissionsCall { + c := &ProjectsLocationsTriggersTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsTriggersTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsTriggersTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsTriggersTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsTriggersTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsTriggersTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTriggersTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201118") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "eventarc.projects.locations.triggers.testIamPermissions" call. +// Exactly one of *TestIamPermissionsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsTriggersTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &TestIamPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/triggers/{triggersId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "eventarc.projects.locations.triggers.testIamPermissions", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/triggers/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:testIamPermissions", + // "request": { + // "$ref": "TestIamPermissionsRequest" + // }, + // "response": { + // "$ref": "TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} diff --git a/factchecktools/v1alpha1/factchecktools-gen.go b/factchecktools/v1alpha1/factchecktools-gen.go index c53b5595d3a..7a8f59d5cbb 100644 --- a/factchecktools/v1alpha1/factchecktools-gen.go +++ b/factchecktools/v1alpha1/factchecktools-gen.go @@ -730,7 +730,7 @@ func (c *ClaimsSearchCall) Header() http.Header { func (c *ClaimsSearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -910,7 +910,7 @@ func (c *PagesCreateCall) Header() http.Header { func (c *PagesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1038,7 +1038,7 @@ func (c *PagesDeleteCall) Header() http.Header { func (c *PagesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1179,7 +1179,7 @@ func (c *PagesGetCall) Header() http.Header { func (c *PagesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1371,7 +1371,7 @@ func (c *PagesListCall) Header() http.Header { func (c *PagesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1549,7 +1549,7 @@ func (c *PagesUpdateCall) Header() http.Header { func (c *PagesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/fcm/v1/fcm-gen.go b/fcm/v1/fcm-gen.go index 479391d876c..1fdfe905d98 100644 --- a/fcm/v1/fcm-gen.go +++ b/fcm/v1/fcm-gen.go @@ -1039,7 +1039,7 @@ func (c *ProjectsMessagesSendCall) Header() http.Header { func (c *ProjectsMessagesSendCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/file/v1/file-api.json b/file/v1/file-api.json index 8747775a7b1..4a59f0ed0c2 100644 --- a/file/v1/file-api.json +++ b/file/v1/file-api.json @@ -182,10 +182,177 @@ } }, "resources": { + "backups": { + "methods": { + "create": { + "description": "Creates a backup.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backups", + "httpMethod": "POST", + "id": "file.projects.locations.backups.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "backupId": { + "description": "Required. The ID to use for the backup. The ID must be unique within the specified project and location. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen. Values that do not match this pattern will trigger an INVALID_ARGUMENT error.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The backup's project and location, in the format projects/{project_number}/locations/{location}. In Cloud Filestore, backup locations map to GCP regions, for example **us-west1**.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/backups", + "request": { + "$ref": "Backup" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a backup.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backups/{backupsId}", + "httpMethod": "DELETE", + "id": "file.projects.locations.backups.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The backup resource name, in the format projects/{project_number}/locations/{location}/backups/{backup_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/backups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the details of a specific backup.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backups/{backupsId}", + "httpMethod": "GET", + "id": "file.projects.locations.backups.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The backup resource name, in the format projects/{project_number}/locations/{location}/backups/{backup_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/backups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Backup" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all backups in a project for either a specified location or for all locations.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backups", + "httpMethod": "GET", + "id": "file.projects.locations.backups.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "List filter.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Sort results. Supported values are \"name\", \"name desc\" or \"\" (unsorted).", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of items to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The next_page_token value to use if there are additional results to retrieve for this list request.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The project and location for which to retrieve backup information, in the format projects/{project_number}/locations/{location}. In Cloud Filestore, backup locations map to GCP regions, for example **us-west1**. To retrieve backup information for all locations, use \"-\" for the {location} value.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/backups", + "response": { + "$ref": "ListBackupsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the settings of a specific backup.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backups/{backupsId}", + "httpMethod": "PATCH", + "id": "file.projects.locations.backups.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The resource name of the backup, in the format projects/{project_number}/locations/{location_id}/backups/{backup_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/backups/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. Mask of fields to update. At least one path must be supplied in this field.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "Backup" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "instances": { "methods": { "create": { - "description": "Creates an instance.", + "description": "Creates an instance. When creating from a backup, the capacity of the new instance needs to be equal to or larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier).", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances", "httpMethod": "POST", "id": "file.projects.locations.instances.create", @@ -346,6 +513,34 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "restore": { + "description": "Restores an existing instance's file share from a backup. The instance's file share capacity will be set to the backup's capacity or the minimum capacity of the tier, whichever is larger.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:restore", + "httpMethod": "POST", + "id": "file.projects.locations.instances.restore", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the instance, in the format projects/{project_number}/locations/{location_id}/instances/{instance_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:restore", + "request": { + "$ref": "RestoreInstanceRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } }, @@ -477,15 +672,167 @@ } } }, - "revision": "20201001", + "revision": "20201029", "rootUrl": "https://file.googleapis.com/", "schemas": { + "Backup": { + "description": "A Cloud Filestore backup.", + "id": "Backup", + "properties": { + "capacityGb": { + "description": "Output only. Capacity of the source file share when the backup was created.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "createTime": { + "description": "Output only. The time when the backup was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.", + "type": "string" + }, + "downloadBytes": { + "description": "Output only. Amount of bytes that will be downloaded if the backup is restored. This may be different than storage bytes, since sequential backups of the same disk will share storage.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource labels to represent user provided metadata.", + "type": "object" + }, + "name": { + "description": "Output only. The resource name of the backup, in the format projects/{project_number}/locations/{location_id}/backups/{backup_id}.", + "readOnly": true, + "type": "string" + }, + "sourceFileShare": { + "description": "Name of the file share in the source Cloud Filestore instance that the backup is created from.", + "type": "string" + }, + "sourceInstance": { + "description": "The resource name of the source Cloud Filestore instance, in the format projects/{project_number}/locations/{location_id}/instances/{instance_id}, used to create this backup.", + "type": "string" + }, + "sourceInstanceTier": { + "description": "Output only. The service tier of the source Cloud Filestore instance that this backup is created from.", + "enum": [ + "TIER_UNSPECIFIED", + "STANDARD", + "PREMIUM", + "BASIC_HDD", + "BASIC_SSD", + "HIGH_SCALE_SSD" + ], + "enumDescriptions": [ + "Not set.", + "STANDARD tier.", + "PREMIUM tier.", + "BASIC instances offer a maximum capacity of 63.9 TB. BASIC_HDD is an alias for STANDARD Tier, offering economical performance backed by HDD.", + "BASIC instances offer a maximum capacity of 63.9 TB. BASIC_SSD is an alias for PREMIUM Tier, and offers improved performance backed by SSD.", + "HIGH_SCALE instances offer expanded capacity and performance scaling capabilities." + ], + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. The backup state.", + "enum": [ + "STATE_UNSPECIFIED", + "CREATING", + "FINALIZING", + "READY", + "DELETING" + ], + "enumDescriptions": [ + "State not set.", + "Backup is being created.", + "Backup has been taken and the operation is being finalized. At this point, changes to the file share will not be reflected in the backup.", + "Backup is available for use.", + "Backup is being deleted." + ], + "readOnly": true, + "type": "string" + }, + "storageBytes": { + "description": "Output only. The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion.", + "format": "int64", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "CancelOperationRequest": { "description": "The request message for Operations.CancelOperation.", "id": "CancelOperationRequest", "properties": {}, "type": "object" }, + "DailyCycle": { + "description": "Time window specified for daily operations.", + "id": "DailyCycle", + "properties": { + "duration": { + "description": "Output only. Duration of the time window, set by service producer.", + "format": "google-duration", + "type": "string" + }, + "startTime": { + "$ref": "TimeOfDay", + "description": "Time within the day to start the operations." + } + }, + "type": "object" + }, + "Date": { + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.", + "id": "Date", + "properties": { + "day": { + "description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.", + "format": "int32", + "type": "integer" + }, + "month": { + "description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.", + "format": "int32", + "type": "integer" + }, + "year": { + "description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "DenyMaintenancePeriod": { + "description": "DenyMaintenancePeriod definition. Maintenance is forbidden within the deny period. The start_date must be less than the end_date.", + "id": "DenyMaintenancePeriod", + "properties": { + "endDate": { + "$ref": "Date", + "description": "Deny period end date. This can be: * A full date, with non-zero year, month and day values. * A month and day value, with a zero year. Allows recurring deny periods each year. Date matching this period will have to be before the end." + }, + "startDate": { + "$ref": "Date", + "description": "Deny period start date. This can be: * A full date, with non-zero year, month and day values. * A month and day value, with a zero year. Allows recurring deny periods each year. Date matching this period will have to be the same or after the start." + }, + "time": { + "$ref": "TimeOfDay", + "description": "Time in UTC when the Blackout period starts on start_date and ends on end_date. This can be: * Full time. * All zeros for 00:00:00 UTC" + } + }, + "type": "object" + }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", "id": "Empty", @@ -504,6 +851,10 @@ "name": { "description": "The name of the file share (must be 16 characters or less).", "type": "string" + }, + "sourceBackup": { + "description": "The resource name of the backup, in the format projects/{project_number}/locations/{location_id}/backups/{backup_id}, that this file share has been restored from.", + "type": "string" } }, "type": "object" @@ -532,7 +883,7 @@ "additionalProperties": { "type": "string" }, - "description": "The MaintenancePolicies that have been attached to the instance. The key must be of the type name of the oneof policy name defined in MaintenancePolicy, and the referenced policy must define the same policy type. For complete details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug.", + "description": "Deprecated. The MaintenancePolicies that have been attached to the instance. The key must be of the type name of the oneof policy name defined in MaintenancePolicy, and the referenced policy must define the same policy type. For complete details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug.", "type": "object" }, "maintenanceSchedules": { @@ -651,6 +1002,13 @@ "exclude": { "description": "Optional. Exclude instance from maintenance. When true, rollout service will not attempt maintenance on the instance. Rollout service will include the instance in reported rollout progress as not attempted.", "type": "boolean" + }, + "maintenancePolicies": { + "additionalProperties": { + "$ref": "MaintenancePolicy" + }, + "description": "Optional. The MaintenancePolicies that have been attached to the instance. The key must be of the type name of the oneof policy name defined in MaintenancePolicy, and the embedded policy must define the same policy type. For complete details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug. If only the name is needed (like in the deprecated Instance.maintenance_policy_names field) then only populate MaintenancePolicy.name.", + "type": "object" } }, "type": "object" @@ -854,6 +1212,31 @@ }, "type": "object" }, + "ListBackupsResponse": { + "description": "ListBackupsResponse is the result of ListBackupsRequest.", + "id": "ListBackupsResponse", + "properties": { + "backups": { + "description": "A list of backups in the project for the specified location. If the {location} value in the request is \"-\", the response contains a list of backups from all locations. If any location is unreachable, the response will only return backups in reachable locations and the \"unreachable\" field will be populated with a list of unreachable locations.", + "items": { + "$ref": "Backup" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The token you can use to retrieve the next page of results. Not returned if there are no more results in the list.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "ListInstancesResponse": { "description": "ListInstancesResponse is the result of ListInstancesRequest.", "id": "ListInstancesResponse", @@ -949,6 +1332,71 @@ }, "type": "object" }, + "MaintenancePolicy": { + "description": "Defines policies to service maintenance events.", + "id": "MaintenancePolicy", + "properties": { + "createTime": { + "description": "Output only. The time when the resource was created.", + "format": "google-datetime", + "type": "string" + }, + "description": { + "description": "Optional. Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Resource labels to represent user provided metadata. Each label is a key-value pair, where both the key and the value are arbitrary strings provided by the user.", + "type": "object" + }, + "name": { + "description": "Required. MaintenancePolicy name using the form: `projects/{project_id}/locations/{location_id}/maintenancePolicies/{maintenance_policy_id}` where {project_id} refers to a GCP consumer project ID, {location_id} refers to a GCP region/zone, {maintenance_policy_id} must be 1-63 characters long and match the regular expression `[a-z0-9]([-a-z0-9]*[a-z0-9])?`.", + "type": "string" + }, + "state": { + "description": "Optional. The state of the policy.", + "enum": [ + "STATE_UNSPECIFIED", + "READY", + "DELETING" + ], + "enumDescriptions": [ + "Unspecified state.", + "Resource is ready to be used.", + "Resource is being deleted. It can no longer be attached to instances." + ], + "type": "string" + }, + "updatePolicy": { + "$ref": "UpdatePolicy", + "description": "Maintenance policy applicable to instance update." + }, + "updateTime": { + "description": "Output only. The time when the resource was updated.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "MaintenanceWindow": { + "description": "MaintenanceWindow definition.", + "id": "MaintenanceWindow", + "properties": { + "dailyCycle": { + "$ref": "DailyCycle", + "description": "Daily cycle." + }, + "weeklyCycle": { + "$ref": "WeeklyCycle", + "description": "Weekly cycle." + } + }, + "type": "object" + }, "NetworkConfig": { "description": "Network configuration for the instance.", "id": "NetworkConfig", @@ -1059,6 +1507,61 @@ }, "type": "object" }, + "RestoreInstanceRequest": { + "description": "RestoreInstanceRequest restores an existing instances's file share from a backup.", + "id": "RestoreInstanceRequest", + "properties": { + "fileShare": { + "description": "Required. Name of the file share in the Cloud Filestore instance that the backup is being restored to.", + "type": "string" + }, + "sourceBackup": { + "description": "The resource name of the backup, in the format projects/{project_number}/locations/{location_id}/backups/{backup_id}.", + "type": "string" + } + }, + "type": "object" + }, + "Schedule": { + "description": "Configure the schedule.", + "id": "Schedule", + "properties": { + "day": { + "description": "Allows to define schedule that runs specified day of the week.", + "enum": [ + "DAY_OF_WEEK_UNSPECIFIED", + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ], + "enumDescriptions": [ + "The day of the week is unspecified.", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ], + "type": "string" + }, + "duration": { + "description": "Output only. Duration of the time window, set by service producer.", + "format": "google-duration", + "type": "string" + }, + "startTime": { + "$ref": "TimeOfDay", + "description": "Time within the window to start the operations." + } + }, + "type": "object" + }, "Status": { "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "id": "Status", @@ -1085,6 +1588,79 @@ } }, "type": "object" + }, + "TimeOfDay": { + "description": "Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.", + "id": "TimeOfDay", + "properties": { + "hours": { + "description": "Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + "format": "int32", + "type": "integer" + }, + "minutes": { + "description": "Minutes of hour of day. Must be from 0 to 59.", + "format": "int32", + "type": "integer" + }, + "nanos": { + "description": "Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.", + "format": "int32", + "type": "integer" + }, + "seconds": { + "description": "Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "UpdatePolicy": { + "description": "Maintenance policy applicable to instance updates.", + "id": "UpdatePolicy", + "properties": { + "channel": { + "description": "Optional. Relative scheduling channel applied to resource.", + "enum": [ + "UPDATE_CHANNEL_UNSPECIFIED", + "EARLIER", + "LATER" + ], + "enumDescriptions": [ + "Unspecified channel.", + "Early channel within a customer project.", + "Later channel within a customer project." + ], + "type": "string" + }, + "denyMaintenancePeriods": { + "description": "Deny Maintenance Period that is applied to resource to indicate when maintenance is forbidden. User can specify zero or more non-overlapping deny periods. For V1, Maximum number of deny_maintenance_periods is expected to be one.", + "items": { + "$ref": "DenyMaintenancePeriod" + }, + "type": "array" + }, + "window": { + "$ref": "MaintenanceWindow", + "description": "Optional. Maintenance window that is applied to resources covered by this policy." + } + }, + "type": "object" + }, + "WeeklyCycle": { + "description": "Time window specified for weekly operations.", + "id": "WeeklyCycle", + "properties": { + "schedule": { + "description": "User can specify multiple windows in a week. Minimum of 1 window.", + "items": { + "$ref": "Schedule" + }, + "type": "array" + } + }, + "type": "object" } }, "servicePath": "", diff --git a/file/v1/file-gen.go b/file/v1/file-gen.go index 14b9cb2740d..be7493d7160 100644 --- a/file/v1/file-gen.go +++ b/file/v1/file-gen.go @@ -149,6 +149,7 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} + rs.Backups = NewProjectsLocationsBackupsService(s) rs.Instances = NewProjectsLocationsInstancesService(s) rs.Operations = NewProjectsLocationsOperationsService(s) return rs @@ -157,11 +158,22 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { type ProjectsLocationsService struct { s *Service + Backups *ProjectsLocationsBackupsService + Instances *ProjectsLocationsInstancesService Operations *ProjectsLocationsOperationsService } +func NewProjectsLocationsBackupsService(s *Service) *ProjectsLocationsBackupsService { + rs := &ProjectsLocationsBackupsService{s: s} + return rs +} + +type ProjectsLocationsBackupsService struct { + s *Service +} + func NewProjectsLocationsInstancesService(s *Service) *ProjectsLocationsInstancesService { rs := &ProjectsLocationsInstancesService{s: s} return rs @@ -180,11 +192,229 @@ type ProjectsLocationsOperationsService struct { s *Service } +// Backup: A Cloud Filestore backup. +type Backup struct { + // CapacityGb: Output only. Capacity of the source file share when the + // backup was created. + CapacityGb int64 `json:"capacityGb,omitempty,string"` + + // CreateTime: Output only. The time when the backup was created. + CreateTime string `json:"createTime,omitempty"` + + // Description: A description of the backup with 2048 characters or + // less. Requests with longer descriptions will be rejected. + Description string `json:"description,omitempty"` + + // DownloadBytes: Output only. Amount of bytes that will be downloaded + // if the backup is restored. This may be different than storage bytes, + // since sequential backups of the same disk will share storage. + DownloadBytes int64 `json:"downloadBytes,omitempty,string"` + + // Labels: Resource labels to represent user provided metadata. + Labels map[string]string `json:"labels,omitempty"` + + // Name: Output only. The resource name of the backup, in the format + // projects/{project_number}/locations/{location_id}/backups/{backup_id}. + Name string `json:"name,omitempty"` + + // SourceFileShare: Name of the file share in the source Cloud Filestore + // instance that the backup is created from. + SourceFileShare string `json:"sourceFileShare,omitempty"` + + // SourceInstance: The resource name of the source Cloud Filestore + // instance, in the format + // projects/{project_number}/locations/{location_id}/instances/{instance_ + // id}, used to create this backup. + SourceInstance string `json:"sourceInstance,omitempty"` + + // SourceInstanceTier: Output only. The service tier of the source Cloud + // Filestore instance that this backup is created from. + // + // Possible values: + // "TIER_UNSPECIFIED" - Not set. + // "STANDARD" - STANDARD tier. + // "PREMIUM" - PREMIUM tier. + // "BASIC_HDD" - BASIC instances offer a maximum capacity of 63.9 TB. + // BASIC_HDD is an alias for STANDARD Tier, offering economical + // performance backed by HDD. + // "BASIC_SSD" - BASIC instances offer a maximum capacity of 63.9 TB. + // BASIC_SSD is an alias for PREMIUM Tier, and offers improved + // performance backed by SSD. + // "HIGH_SCALE_SSD" - HIGH_SCALE instances offer expanded capacity and + // performance scaling capabilities. + SourceInstanceTier string `json:"sourceInstanceTier,omitempty"` + + // State: Output only. The backup state. + // + // Possible values: + // "STATE_UNSPECIFIED" - State not set. + // "CREATING" - Backup is being created. + // "FINALIZING" - Backup has been taken and the operation is being + // finalized. At this point, changes to the file share will not be + // reflected in the backup. + // "READY" - Backup is available for use. + // "DELETING" - Backup is being deleted. + State string `json:"state,omitempty"` + + // StorageBytes: Output only. The size of the storage used by the + // backup. As backups share storage, this number is expected to change + // with backup creation/deletion. + StorageBytes int64 `json:"storageBytes,omitempty,string"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CapacityGb") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CapacityGb") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Backup) MarshalJSON() ([]byte, error) { + type NoMethod Backup + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CancelOperationRequest: The request message for // Operations.CancelOperation. type CancelOperationRequest struct { } +// DailyCycle: Time window specified for daily operations. +type DailyCycle struct { + // Duration: Output only. Duration of the time window, set by service + // producer. + Duration string `json:"duration,omitempty"` + + // StartTime: Time within the day to start the operations. + StartTime *TimeOfDay `json:"startTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Duration") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Duration") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DailyCycle) MarshalJSON() ([]byte, error) { + type NoMethod DailyCycle + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Date: Represents a whole or partial calendar date, such as a +// birthday. The time of day and time zone are either specified +// elsewhere or are insignificant. The date is relative to the Gregorian +// Calendar. This can represent one of the following: * A full date, +// with non-zero year, month, and day values * A month and day value, +// with a zero year, such as an anniversary * A year on its own, with +// zero month and day values * A year and month value, with a zero day, +// such as a credit card expiration date Related types are +// google.type.TimeOfDay and `google.protobuf.Timestamp`. +type Date struct { + // Day: Day of a month. Must be from 1 to 31 and valid for the year and + // month, or 0 to specify a year by itself or a year and month where the + // day isn't significant. + Day int64 `json:"day,omitempty"` + + // Month: Month of a year. Must be from 1 to 12, or 0 to specify a year + // without a month and day. + Month int64 `json:"month,omitempty"` + + // Year: Year of the date. Must be from 1 to 9999, or 0 to specify a + // date without a year. + Year int64 `json:"year,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Day") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Day") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Date) MarshalJSON() ([]byte, error) { + type NoMethod Date + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DenyMaintenancePeriod: DenyMaintenancePeriod definition. Maintenance +// is forbidden within the deny period. The start_date must be less than +// the end_date. +type DenyMaintenancePeriod struct { + // EndDate: Deny period end date. This can be: * A full date, with + // non-zero year, month and day values. * A month and day value, with a + // zero year. Allows recurring deny periods each year. Date matching + // this period will have to be before the end. + EndDate *Date `json:"endDate,omitempty"` + + // StartDate: Deny period start date. This can be: * A full date, with + // non-zero year, month and day values. * A month and day value, with a + // zero year. Allows recurring deny periods each year. Date matching + // this period will have to be the same or after the start. + StartDate *Date `json:"startDate,omitempty"` + + // Time: Time in UTC when the Blackout period starts on start_date and + // ends on end_date. This can be: * Full time. * All zeros for 00:00:00 + // UTC + Time *TimeOfDay `json:"time,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndDate") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EndDate") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DenyMaintenancePeriod) MarshalJSON() ([]byte, error) { + type NoMethod DenyMaintenancePeriod + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Empty: A generic empty message that you can re-use to avoid defining // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For @@ -206,6 +436,11 @@ type FileShareConfig struct { // Name: The name of the file share (must be 16 characters or less). Name string `json:"name,omitempty"` + // SourceBackup: The resource name of the backup, in the format + // projects/{project_number}/locations/{location_id}/backups/{backup_id}, + // that this file share has been restored from. + SourceBackup string `json:"sourceBackup,omitempty"` + // ForceSendFields is a list of field names (e.g. "CapacityGb") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, @@ -245,11 +480,11 @@ type GoogleCloudSaasacceleratorManagementProvidersV1Instance struct { // value are arbitrary strings provided by the user. Labels map[string]string `json:"labels,omitempty"` - // MaintenancePolicyNames: The MaintenancePolicies that have been - // attached to the instance. The key must be of the type name of the - // oneof policy name defined in MaintenancePolicy, and the referenced - // policy must define the same policy type. For complete details of - // MaintenancePolicy, please refer to go/cloud-saas-mw-ug. + // MaintenancePolicyNames: Deprecated. The MaintenancePolicies that have + // been attached to the instance. The key must be of the type name of + // the oneof policy name defined in MaintenancePolicy, and the + // referenced policy must define the same policy type. For complete + // details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug. MaintenancePolicyNames map[string]string `json:"maintenancePolicyNames,omitempty"` // MaintenanceSchedules: The MaintenanceSchedule contains the scheduling @@ -392,6 +627,16 @@ type GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings struct { // attempted. Exclude bool `json:"exclude,omitempty"` + // MaintenancePolicies: Optional. The MaintenancePolicies that have been + // attached to the instance. The key must be of the type name of the + // oneof policy name defined in MaintenancePolicy, and the embedded + // policy must define the same policy type. For complete details of + // MaintenancePolicy, please refer to go/cloud-saas-mw-ug. If only the + // name is needed (like in the deprecated + // Instance.maintenance_policy_names field) then only populate + // MaintenancePolicy.name. + MaintenancePolicies map[string]MaintenancePolicy `json:"maintenancePolicies,omitempty"` + // ForceSendFields is a list of field names (e.g. "Exclude") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, @@ -732,6 +977,51 @@ func (s *Instance) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListBackupsResponse: ListBackupsResponse is the result of +// ListBackupsRequest. +type ListBackupsResponse struct { + // Backups: A list of backups in the project for the specified location. + // If the {location} value in the request is "-", the response contains + // a list of backups from all locations. If any location is unreachable, + // the response will only return backups in reachable locations and the + // "unreachable" field will be populated with a list of unreachable + // locations. + Backups []*Backup `json:"backups,omitempty"` + + // NextPageToken: The token you can use to retrieve the next page of + // results. Not returned if there are no more results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Unreachable: Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Backups") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Backups") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListBackupsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListBackupsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListInstancesResponse: ListInstancesResponse is the result of // ListInstancesRequest. type ListInstancesResponse struct { @@ -901,6 +1191,98 @@ func (s *Location) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MaintenancePolicy: Defines policies to service maintenance events. +type MaintenancePolicy struct { + // CreateTime: Output only. The time when the resource was created. + CreateTime string `json:"createTime,omitempty"` + + // Description: Optional. Description of what this policy is for. + // Create/Update methods return INVALID_ARGUMENT if the length is + // greater than 512. + Description string `json:"description,omitempty"` + + // Labels: Optional. Resource labels to represent user provided + // metadata. Each label is a key-value pair, where both the key and the + // value are arbitrary strings provided by the user. + Labels map[string]string `json:"labels,omitempty"` + + // Name: Required. MaintenancePolicy name using the form: + // `projects/{project_id}/locations/{location_id}/maintenancePolicies/{ma + // intenance_policy_id}` where {project_id} refers to a GCP consumer + // project ID, {location_id} refers to a GCP region/zone, + // {maintenance_policy_id} must be 1-63 characters long and match the + // regular expression `[a-z0-9]([-a-z0-9]*[a-z0-9])?`. + Name string `json:"name,omitempty"` + + // State: Optional. The state of the policy. + // + // Possible values: + // "STATE_UNSPECIFIED" - Unspecified state. + // "READY" - Resource is ready to be used. + // "DELETING" - Resource is being deleted. It can no longer be + // attached to instances. + State string `json:"state,omitempty"` + + // UpdatePolicy: Maintenance policy applicable to instance update. + UpdatePolicy *UpdatePolicy `json:"updatePolicy,omitempty"` + + // UpdateTime: Output only. The time when the resource was updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MaintenancePolicy) MarshalJSON() ([]byte, error) { + type NoMethod MaintenancePolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MaintenanceWindow: MaintenanceWindow definition. +type MaintenanceWindow struct { + // DailyCycle: Daily cycle. + DailyCycle *DailyCycle `json:"dailyCycle,omitempty"` + + // WeeklyCycle: Weekly cycle. + WeeklyCycle *WeeklyCycle `json:"weeklyCycle,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DailyCycle") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DailyCycle") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MaintenanceWindow) MarshalJSON() ([]byte, error) { + type NoMethod MaintenanceWindow + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // NetworkConfig: Network configuration for the instance. type NetworkConfig struct { // IpAddresses: Output only. IPv4 addresses in the format {octet @@ -1067,28 +1449,18 @@ func (s *OperationMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the [API Design -// Guide](https://cloud.google.com/apis/design/errors). -type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. - Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. - Details []googleapi.RawMessage `json:"details,omitempty"` +// RestoreInstanceRequest: RestoreInstanceRequest restores an existing +// instances's file share from a backup. +type RestoreInstanceRequest struct { + // FileShare: Required. Name of the file share in the Cloud Filestore + // instance that the backup is being restored to. + FileShare string `json:"fileShare,omitempty"` - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. - Message string `json:"message,omitempty"` + // SourceBackup: The resource name of the backup, in the format + // projects/{project_number}/locations/{location_id}/backups/{backup_id}. + SourceBackup string `json:"sourceBackup,omitempty"` - // ForceSendFields is a list of field names (e.g. "Code") to + // ForceSendFields is a list of field names (e.g. "FileShare") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -1096,8 +1468,8 @@ type Status struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "FileShare") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -1105,15 +1477,220 @@ type Status struct { NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { - type NoMethod Status +func (s *RestoreInstanceRequest) MarshalJSON() ([]byte, error) { + type NoMethod RestoreInstanceRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// method id "file.projects.locations.get": +// Schedule: Configure the schedule. +type Schedule struct { + // Day: Allows to define schedule that runs specified day of the week. + // + // Possible values: + // "DAY_OF_WEEK_UNSPECIFIED" - The day of the week is unspecified. + // "MONDAY" - Monday + // "TUESDAY" - Tuesday + // "WEDNESDAY" - Wednesday + // "THURSDAY" - Thursday + // "FRIDAY" - Friday + // "SATURDAY" - Saturday + // "SUNDAY" - Sunday + Day string `json:"day,omitempty"` + + // Duration: Output only. Duration of the time window, set by service + // producer. + Duration string `json:"duration,omitempty"` -type ProjectsLocationsGetCall struct { + // StartTime: Time within the window to start the operations. + StartTime *TimeOfDay `json:"startTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Day") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Day") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Schedule) MarshalJSON() ([]byte, error) { + type NoMethod Schedule + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Status: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs +// and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each +// `Status` message contains three pieces of data: error code, error +// message, and error details. You can find out more about this error +// model and how to work with it in the [API Design +// Guide](https://cloud.google.com/apis/design/errors). +type Status struct { + // Code: The status code, which should be an enum value of + // google.rpc.Code. + Code int64 `json:"code,omitempty"` + + // Details: A list of messages that carry the error details. There is a + // common set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Status) MarshalJSON() ([]byte, error) { + type NoMethod Status + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TimeOfDay: Represents a time of day. The date and time zone are +// either not significant or are specified elsewhere. An API may choose +// to allow leap seconds. Related types are google.type.Date and +// `google.protobuf.Timestamp`. +type TimeOfDay struct { + // Hours: Hours of day in 24 hour format. Should be from 0 to 23. An API + // may choose to allow the value "24:00:00" for scenarios like business + // closing time. + Hours int64 `json:"hours,omitempty"` + + // Minutes: Minutes of hour of day. Must be from 0 to 59. + Minutes int64 `json:"minutes,omitempty"` + + // Nanos: Fractions of seconds in nanoseconds. Must be from 0 to + // 999,999,999. + Nanos int64 `json:"nanos,omitempty"` + + // Seconds: Seconds of minutes of the time. Must normally be from 0 to + // 59. An API may allow the value 60 if it allows leap-seconds. + Seconds int64 `json:"seconds,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Hours") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Hours") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TimeOfDay) MarshalJSON() ([]byte, error) { + type NoMethod TimeOfDay + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// UpdatePolicy: Maintenance policy applicable to instance updates. +type UpdatePolicy struct { + // Channel: Optional. Relative scheduling channel applied to resource. + // + // Possible values: + // "UPDATE_CHANNEL_UNSPECIFIED" - Unspecified channel. + // "EARLIER" - Early channel within a customer project. + // "LATER" - Later channel within a customer project. + Channel string `json:"channel,omitempty"` + + // DenyMaintenancePeriods: Deny Maintenance Period that is applied to + // resource to indicate when maintenance is forbidden. User can specify + // zero or more non-overlapping deny periods. For V1, Maximum number of + // deny_maintenance_periods is expected to be one. + DenyMaintenancePeriods []*DenyMaintenancePeriod `json:"denyMaintenancePeriods,omitempty"` + + // Window: Optional. Maintenance window that is applied to resources + // covered by this policy. + Window *MaintenanceWindow `json:"window,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Channel") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Channel") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *UpdatePolicy) MarshalJSON() ([]byte, error) { + type NoMethod UpdatePolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// WeeklyCycle: Time window specified for weekly operations. +type WeeklyCycle struct { + // Schedule: User can specify multiple windows in a week. Minimum of 1 + // window. + Schedule []*Schedule `json:"schedule,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Schedule") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Schedule") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *WeeklyCycle) MarshalJSON() ([]byte, error) { + type NoMethod WeeklyCycle + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "file.projects.locations.get": + +type ProjectsLocationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -1166,7 +1743,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1340,7 +1917,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1471,37 +2048,40 @@ func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocat } } -// method id "file.projects.locations.instances.create": +// method id "file.projects.locations.backups.create": -type ProjectsLocationsInstancesCreateCall struct { +type ProjectsLocationsBackupsCreateCall struct { s *Service parent string - instance *Instance + backup *Backup urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Create: Creates an instance. -func (r *ProjectsLocationsInstancesService) Create(parent string, instance *Instance) *ProjectsLocationsInstancesCreateCall { - c := &ProjectsLocationsInstancesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Create: Creates a backup. +func (r *ProjectsLocationsBackupsService) Create(parent string, backup *Backup) *ProjectsLocationsBackupsCreateCall { + c := &ProjectsLocationsBackupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.instance = instance + c.backup = backup return c } -// InstanceId sets the optional parameter "instanceId": Required. The -// name of the instance to create. The name must be unique for the -// specified project and location. -func (c *ProjectsLocationsInstancesCreateCall) InstanceId(instanceId string) *ProjectsLocationsInstancesCreateCall { - c.urlParams_.Set("instanceId", instanceId) +// BackupId sets the optional parameter "backupId": Required. The ID to +// use for the backup. The ID must be unique within the specified +// project and location. This value must start with a lowercase letter +// followed by up to 62 lowercase letters, numbers, or hyphens, and +// cannot end with a hyphen. Values that do not match this pattern will +// trigger an INVALID_ARGUMENT error. +func (c *ProjectsLocationsBackupsCreateCall) BackupId(backupId string) *ProjectsLocationsBackupsCreateCall { + c.urlParams_.Set("backupId", backupId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsInstancesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesCreateCall { +func (c *ProjectsLocationsBackupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsBackupsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -1509,36 +2089,36 @@ func (c *ProjectsLocationsInstancesCreateCall) Fields(s ...googleapi.Field) *Pro // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsInstancesCreateCall) Context(ctx context.Context) *ProjectsLocationsInstancesCreateCall { +func (c *ProjectsLocationsBackupsCreateCall) Context(ctx context.Context) *ProjectsLocationsBackupsCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsInstancesCreateCall) Header() http.Header { +func (c *ProjectsLocationsBackupsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsInstancesCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsBackupsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.instance) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.backup) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/instances") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/backups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -1551,14 +2131,14 @@ func (c *ProjectsLocationsInstancesCreateCall) doRequest(alt string) (*http.Resp return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "file.projects.locations.instances.create" call. +// Do executes the "file.projects.locations.backups.create" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsInstancesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsBackupsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -1589,30 +2169,30 @@ func (c *ProjectsLocationsInstancesCreateCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Creates an instance.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances", + // "description": "Creates a backup.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backups", // "httpMethod": "POST", - // "id": "file.projects.locations.instances.create", + // "id": "file.projects.locations.backups.create", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "instanceId": { - // "description": "Required. The name of the instance to create. The name must be unique for the specified project and location.", + // "backupId": { + // "description": "Required. The ID to use for the backup. The ID must be unique within the specified project and location. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen. Values that do not match this pattern will trigger an INVALID_ARGUMENT error.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The instance's project and location, in the format projects/{project_id}/locations/{location}. In Cloud Filestore, locations map to GCP zones, for example **us-west1-b**.", + // "description": "Required. The backup's project and location, in the format projects/{project_number}/locations/{location}. In Cloud Filestore, backup locations map to GCP regions, for example **us-west1**.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/instances", + // "path": "v1/{+parent}/backups", // "request": { - // "$ref": "Instance" + // "$ref": "Backup" // }, // "response": { // "$ref": "Operation" @@ -1624,9 +2204,9 @@ func (c *ProjectsLocationsInstancesCreateCall) Do(opts ...googleapi.CallOption) } -// method id "file.projects.locations.instances.delete": +// method id "file.projects.locations.backups.delete": -type ProjectsLocationsInstancesDeleteCall struct { +type ProjectsLocationsBackupsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -1634,9 +2214,9 @@ type ProjectsLocationsInstancesDeleteCall struct { header_ http.Header } -// Delete: Deletes an instance. -func (r *ProjectsLocationsInstancesService) Delete(name string) *ProjectsLocationsInstancesDeleteCall { - c := &ProjectsLocationsInstancesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Delete: Deletes a backup. +func (r *ProjectsLocationsBackupsService) Delete(name string) *ProjectsLocationsBackupsDeleteCall { + c := &ProjectsLocationsBackupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -1644,7 +2224,7 @@ func (r *ProjectsLocationsInstancesService) Delete(name string) *ProjectsLocatio // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsInstancesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesDeleteCall { +func (c *ProjectsLocationsBackupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsBackupsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -1652,23 +2232,23 @@ func (c *ProjectsLocationsInstancesDeleteCall) Fields(s ...googleapi.Field) *Pro // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsInstancesDeleteCall) Context(ctx context.Context) *ProjectsLocationsInstancesDeleteCall { +func (c *ProjectsLocationsBackupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsBackupsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsInstancesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsBackupsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsBackupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1689,14 +2269,14 @@ func (c *ProjectsLocationsInstancesDeleteCall) doRequest(alt string) (*http.Resp return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "file.projects.locations.instances.delete" call. +// Do executes the "file.projects.locations.backups.delete" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsBackupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -1727,18 +2307,18 @@ func (c *ProjectsLocationsInstancesDeleteCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Deletes an instance.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}", + // "description": "Deletes a backup.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backups/{backupsId}", // "httpMethod": "DELETE", - // "id": "file.projects.locations.instances.delete", + // "id": "file.projects.locations.backups.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The instance resource name, in the format projects/{project_id}/locations/{location}/instances/{instance_id}", + // "description": "Required. The backup resource name, in the format projects/{project_number}/locations/{location}/backups/{backup_id}", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/backups/[^/]+$", // "required": true, // "type": "string" // } @@ -1754,9 +2334,9 @@ func (c *ProjectsLocationsInstancesDeleteCall) Do(opts ...googleapi.CallOption) } -// method id "file.projects.locations.instances.get": +// method id "file.projects.locations.backups.get": -type ProjectsLocationsInstancesGetCall struct { +type ProjectsLocationsBackupsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -1765,9 +2345,9 @@ type ProjectsLocationsInstancesGetCall struct { header_ http.Header } -// Get: Gets the details of a specific instance. -func (r *ProjectsLocationsInstancesService) Get(name string) *ProjectsLocationsInstancesGetCall { - c := &ProjectsLocationsInstancesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Get: Gets the details of a specific backup. +func (r *ProjectsLocationsBackupsService) Get(name string) *ProjectsLocationsBackupsGetCall { + c := &ProjectsLocationsBackupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -1775,7 +2355,7 @@ func (r *ProjectsLocationsInstancesService) Get(name string) *ProjectsLocationsI // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsInstancesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesGetCall { +func (c *ProjectsLocationsBackupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsBackupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -1785,7 +2365,7 @@ func (c *ProjectsLocationsInstancesGetCall) Fields(s ...googleapi.Field) *Projec // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsInstancesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesGetCall { +func (c *ProjectsLocationsBackupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsBackupsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -1793,23 +2373,23 @@ func (c *ProjectsLocationsInstancesGetCall) IfNoneMatch(entityTag string) *Proje // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsInstancesGetCall) Context(ctx context.Context) *ProjectsLocationsInstancesGetCall { +func (c *ProjectsLocationsBackupsGetCall) Context(ctx context.Context) *ProjectsLocationsBackupsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsInstancesGetCall) Header() http.Header { +func (c *ProjectsLocationsBackupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsInstancesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsBackupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1833,14 +2413,14 @@ func (c *ProjectsLocationsInstancesGetCall) doRequest(alt string) (*http.Respons return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "file.projects.locations.instances.get" call. -// Exactly one of *Instance or error will be non-nil. Any non-2xx status +// Do executes the "file.projects.locations.backups.get" call. +// Exactly one of *Backup or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either -// *Instance.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsInstancesGetCall) Do(opts ...googleapi.CallOption) (*Instance, error) { +// *Backup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsBackupsGetCall) Do(opts ...googleapi.CallOption) (*Backup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -1859,7 +2439,7 @@ func (c *ProjectsLocationsInstancesGetCall) Do(opts ...googleapi.CallOption) (*I if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Instance{ + ret := &Backup{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -1871,25 +2451,25 @@ func (c *ProjectsLocationsInstancesGetCall) Do(opts ...googleapi.CallOption) (*I } return ret, nil // { - // "description": "Gets the details of a specific instance.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}", + // "description": "Gets the details of a specific backup.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backups/{backupsId}", // "httpMethod": "GET", - // "id": "file.projects.locations.instances.get", + // "id": "file.projects.locations.backups.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The instance resource name, in the format projects/{project_id}/locations/{location}/instances/{instance_id}.", + // "description": "Required. The backup resource name, in the format projects/{project_number}/locations/{location}/backups/{backup_id}.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/backups/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "Instance" + // "$ref": "Backup" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -1898,9 +2478,9 @@ func (c *ProjectsLocationsInstancesGetCall) Do(opts ...googleapi.CallOption) (*I } -// method id "file.projects.locations.instances.list": +// method id "file.projects.locations.backups.list": -type ProjectsLocationsInstancesListCall struct { +type ProjectsLocationsBackupsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -1909,30 +2489,30 @@ type ProjectsLocationsInstancesListCall struct { header_ http.Header } -// List: Lists all instances in a project for either a specified -// location or for all locations. -func (r *ProjectsLocationsInstancesService) List(parent string) *ProjectsLocationsInstancesListCall { - c := &ProjectsLocationsInstancesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// List: Lists all backups in a project for either a specified location +// or for all locations. +func (r *ProjectsLocationsBackupsService) List(parent string) *ProjectsLocationsBackupsListCall { + c := &ProjectsLocationsBackupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } // Filter sets the optional parameter "filter": List filter. -func (c *ProjectsLocationsInstancesListCall) Filter(filter string) *ProjectsLocationsInstancesListCall { +func (c *ProjectsLocationsBackupsListCall) Filter(filter string) *ProjectsLocationsBackupsListCall { c.urlParams_.Set("filter", filter) return c } // OrderBy sets the optional parameter "orderBy": Sort results. // Supported values are "name", "name desc" or "" (unsorted). -func (c *ProjectsLocationsInstancesListCall) OrderBy(orderBy string) *ProjectsLocationsInstancesListCall { +func (c *ProjectsLocationsBackupsListCall) OrderBy(orderBy string) *ProjectsLocationsBackupsListCall { c.urlParams_.Set("orderBy", orderBy) return c } // PageSize sets the optional parameter "pageSize": The maximum number // of items to return. -func (c *ProjectsLocationsInstancesListCall) PageSize(pageSize int64) *ProjectsLocationsInstancesListCall { +func (c *ProjectsLocationsBackupsListCall) PageSize(pageSize int64) *ProjectsLocationsBackupsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } @@ -1940,7 +2520,7 @@ func (c *ProjectsLocationsInstancesListCall) PageSize(pageSize int64) *ProjectsL // PageToken sets the optional parameter "pageToken": The // next_page_token value to use if there are additional results to // retrieve for this list request. -func (c *ProjectsLocationsInstancesListCall) PageToken(pageToken string) *ProjectsLocationsInstancesListCall { +func (c *ProjectsLocationsBackupsListCall) PageToken(pageToken string) *ProjectsLocationsBackupsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -1948,7 +2528,7 @@ func (c *ProjectsLocationsInstancesListCall) PageToken(pageToken string) *Projec // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsInstancesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesListCall { +func (c *ProjectsLocationsBackupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsBackupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -1958,7 +2538,7 @@ func (c *ProjectsLocationsInstancesListCall) Fields(s ...googleapi.Field) *Proje // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsInstancesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesListCall { +func (c *ProjectsLocationsBackupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsBackupsListCall { c.ifNoneMatch_ = entityTag return c } @@ -1966,23 +2546,23 @@ func (c *ProjectsLocationsInstancesListCall) IfNoneMatch(entityTag string) *Proj // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsInstancesListCall) Context(ctx context.Context) *ProjectsLocationsInstancesListCall { +func (c *ProjectsLocationsBackupsListCall) Context(ctx context.Context) *ProjectsLocationsBackupsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsInstancesListCall) Header() http.Header { +func (c *ProjectsLocationsBackupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsInstancesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsBackupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1993,7 +2573,7 @@ func (c *ProjectsLocationsInstancesListCall) doRequest(alt string) (*http.Respon var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/instances") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/backups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -2006,14 +2586,14 @@ func (c *ProjectsLocationsInstancesListCall) doRequest(alt string) (*http.Respon return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "file.projects.locations.instances.list" call. -// Exactly one of *ListInstancesResponse or error will be non-nil. Any +// Do executes the "file.projects.locations.backups.list" call. +// Exactly one of *ListBackupsResponse or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either -// *ListInstancesResponse.ServerResponse.Header or (if a response was +// *ListBackupsResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsInstancesListCall) Do(opts ...googleapi.CallOption) (*ListInstancesResponse, error) { +func (c *ProjectsLocationsBackupsListCall) Do(opts ...googleapi.CallOption) (*ListBackupsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2032,7 +2612,7 @@ func (c *ProjectsLocationsInstancesListCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListInstancesResponse{ + ret := &ListBackupsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2044,10 +2624,10 @@ func (c *ProjectsLocationsInstancesListCall) Do(opts ...googleapi.CallOption) (* } return ret, nil // { - // "description": "Lists all instances in a project for either a specified location or for all locations.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances", + // "description": "Lists all backups in a project for either a specified location or for all locations.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backups", // "httpMethod": "GET", - // "id": "file.projects.locations.instances.list", + // "id": "file.projects.locations.backups.list", // "parameterOrder": [ // "parent" // ], @@ -2074,16 +2654,16 @@ func (c *ProjectsLocationsInstancesListCall) Do(opts ...googleapi.CallOption) (* // "type": "string" // }, // "parent": { - // "description": "Required. The project and location for which to retrieve instance information, in the format projects/{project_id}/locations/{location}. In Cloud Filestore, locations map to GCP zones, for example **us-west1-b**. To retrieve instance information for all locations, use \"-\" for the {location} value.", + // "description": "Required. The project and location for which to retrieve backup information, in the format projects/{project_number}/locations/{location}. In Cloud Filestore, backup locations map to GCP regions, for example **us-west1**. To retrieve backup information for all locations, use \"-\" for the {location} value.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/instances", + // "path": "v1/{+parent}/backups", // "response": { - // "$ref": "ListInstancesResponse" + // "$ref": "ListBackupsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -2095,7 +2675,7 @@ func (c *ProjectsLocationsInstancesListCall) Do(opts ...googleapi.CallOption) (* // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsInstancesListCall) Pages(ctx context.Context, f func(*ListInstancesResponse) error) error { +func (c *ProjectsLocationsBackupsListCall) Pages(ctx context.Context, f func(*ListBackupsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -2113,30 +2693,29 @@ func (c *ProjectsLocationsInstancesListCall) Pages(ctx context.Context, f func(* } } -// method id "file.projects.locations.instances.patch": +// method id "file.projects.locations.backups.patch": -type ProjectsLocationsInstancesPatchCall struct { +type ProjectsLocationsBackupsPatchCall struct { s *Service name string - instance *Instance + backup *Backup urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Patch: Updates the settings of a specific instance. -func (r *ProjectsLocationsInstancesService) Patch(name string, instance *Instance) *ProjectsLocationsInstancesPatchCall { - c := &ProjectsLocationsInstancesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Patch: Updates the settings of a specific backup. +func (r *ProjectsLocationsBackupsService) Patch(name string, backup *Backup) *ProjectsLocationsBackupsPatchCall { + c := &ProjectsLocationsBackupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.instance = instance + c.backup = backup return c } -// UpdateMask sets the optional parameter "updateMask": Mask of fields -// to update. At least one path must be supplied in this field. The -// elements of the repeated paths field may only include these fields: * -// "description" * "file_shares" * "labels" -func (c *ProjectsLocationsInstancesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsInstancesPatchCall { +// UpdateMask sets the optional parameter "updateMask": Required. Mask +// of fields to update. At least one path must be supplied in this +// field. +func (c *ProjectsLocationsBackupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsBackupsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } @@ -2144,7 +2723,7 @@ func (c *ProjectsLocationsInstancesPatchCall) UpdateMask(updateMask string) *Pro // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsInstancesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesPatchCall { +func (c *ProjectsLocationsBackupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsBackupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -2152,29 +2731,29 @@ func (c *ProjectsLocationsInstancesPatchCall) Fields(s ...googleapi.Field) *Proj // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsInstancesPatchCall) Context(ctx context.Context) *ProjectsLocationsInstancesPatchCall { +func (c *ProjectsLocationsBackupsPatchCall) Context(ctx context.Context) *ProjectsLocationsBackupsPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsInstancesPatchCall) Header() http.Header { +func (c *ProjectsLocationsBackupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsInstancesPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsBackupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.instance) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.backup) if err != nil { return nil, err } @@ -2194,14 +2773,14 @@ func (c *ProjectsLocationsInstancesPatchCall) doRequest(alt string) (*http.Respo return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "file.projects.locations.instances.patch" call. +// Do executes the "file.projects.locations.backups.patch" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsInstancesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsBackupsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2232,23 +2811,23 @@ func (c *ProjectsLocationsInstancesPatchCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Updates the settings of a specific instance.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}", + // "description": "Updates the settings of a specific backup.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backups/{backupsId}", // "httpMethod": "PATCH", - // "id": "file.projects.locations.instances.patch", + // "id": "file.projects.locations.backups.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Output only. The resource name of the instance, in the format projects/{project}/locations/{location}/instances/{instance}.", + // "description": "Output only. The resource name of the backup, in the format projects/{project_number}/locations/{location_id}/backups/{backup_id}.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/backups/[^/]+$", // "required": true, // "type": "string" // }, // "updateMask": { - // "description": "Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields: * \"description\" * \"file_shares\" * \"labels\"", + // "description": "Required. Mask of fields to update. At least one path must be supplied in this field.", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -2256,7 +2835,949 @@ func (c *ProjectsLocationsInstancesPatchCall) Do(opts ...googleapi.CallOption) ( // }, // "path": "v1/{+name}", // "request": { - // "$ref": "Instance" + // "$ref": "Backup" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "file.projects.locations.instances.create": + +type ProjectsLocationsInstancesCreateCall struct { + s *Service + parent string + instance *Instance + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates an instance. When creating from a backup, the +// capacity of the new instance needs to be equal to or larger than the +// capacity of the backup (and also equal to or larger than the minimum +// capacity of the tier). +func (r *ProjectsLocationsInstancesService) Create(parent string, instance *Instance) *ProjectsLocationsInstancesCreateCall { + c := &ProjectsLocationsInstancesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.instance = instance + return c +} + +// InstanceId sets the optional parameter "instanceId": Required. The +// name of the instance to create. The name must be unique for the +// specified project and location. +func (c *ProjectsLocationsInstancesCreateCall) InstanceId(instanceId string) *ProjectsLocationsInstancesCreateCall { + c.urlParams_.Set("instanceId", instanceId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesCreateCall) Context(ctx context.Context) *ProjectsLocationsInstancesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.instance) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/instances") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "file.projects.locations.instances.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates an instance. When creating from a backup, the capacity of the new instance needs to be equal to or larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier).", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances", + // "httpMethod": "POST", + // "id": "file.projects.locations.instances.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "instanceId": { + // "description": "Required. The name of the instance to create. The name must be unique for the specified project and location.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The instance's project and location, in the format projects/{project_id}/locations/{location}. In Cloud Filestore, locations map to GCP zones, for example **us-west1-b**.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/instances", + // "request": { + // "$ref": "Instance" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "file.projects.locations.instances.delete": + +type ProjectsLocationsInstancesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes an instance. +func (r *ProjectsLocationsInstancesService) Delete(name string) *ProjectsLocationsInstancesDeleteCall { + c := &ProjectsLocationsInstancesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesDeleteCall) Context(ctx context.Context) *ProjectsLocationsInstancesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "file.projects.locations.instances.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes an instance.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}", + // "httpMethod": "DELETE", + // "id": "file.projects.locations.instances.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The instance resource name, in the format projects/{project_id}/locations/{location}/instances/{instance_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "file.projects.locations.instances.get": + +type ProjectsLocationsInstancesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the details of a specific instance. +func (r *ProjectsLocationsInstancesService) Get(name string) *ProjectsLocationsInstancesGetCall { + c := &ProjectsLocationsInstancesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsInstancesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesGetCall) Context(ctx context.Context) *ProjectsLocationsInstancesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "file.projects.locations.instances.get" call. +// Exactly one of *Instance or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Instance.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesGetCall) Do(opts ...googleapi.CallOption) (*Instance, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Instance{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the details of a specific instance.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}", + // "httpMethod": "GET", + // "id": "file.projects.locations.instances.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The instance resource name, in the format projects/{project_id}/locations/{location}/instances/{instance_id}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Instance" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "file.projects.locations.instances.list": + +type ProjectsLocationsInstancesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all instances in a project for either a specified +// location or for all locations. +func (r *ProjectsLocationsInstancesService) List(parent string) *ProjectsLocationsInstancesListCall { + c := &ProjectsLocationsInstancesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": List filter. +func (c *ProjectsLocationsInstancesListCall) Filter(filter string) *ProjectsLocationsInstancesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Sort results. +// Supported values are "name", "name desc" or "" (unsorted). +func (c *ProjectsLocationsInstancesListCall) OrderBy(orderBy string) *ProjectsLocationsInstancesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of items to return. +func (c *ProjectsLocationsInstancesListCall) PageSize(pageSize int64) *ProjectsLocationsInstancesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The +// next_page_token value to use if there are additional results to +// retrieve for this list request. +func (c *ProjectsLocationsInstancesListCall) PageToken(pageToken string) *ProjectsLocationsInstancesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsInstancesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesListCall) Context(ctx context.Context) *ProjectsLocationsInstancesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/instances") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "file.projects.locations.instances.list" call. +// Exactly one of *ListInstancesResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListInstancesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesListCall) Do(opts ...googleapi.CallOption) (*ListInstancesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListInstancesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists all instances in a project for either a specified location or for all locations.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances", + // "httpMethod": "GET", + // "id": "file.projects.locations.instances.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "List filter.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Sort results. Supported values are \"name\", \"name desc\" or \"\" (unsorted).", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of items to return.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The next_page_token value to use if there are additional results to retrieve for this list request.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The project and location for which to retrieve instance information, in the format projects/{project_id}/locations/{location}. In Cloud Filestore, locations map to GCP zones, for example **us-west1-b**. To retrieve instance information for all locations, use \"-\" for the {location} value.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/instances", + // "response": { + // "$ref": "ListInstancesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsInstancesListCall) Pages(ctx context.Context, f func(*ListInstancesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "file.projects.locations.instances.patch": + +type ProjectsLocationsInstancesPatchCall struct { + s *Service + name string + instance *Instance + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the settings of a specific instance. +func (r *ProjectsLocationsInstancesService) Patch(name string, instance *Instance) *ProjectsLocationsInstancesPatchCall { + c := &ProjectsLocationsInstancesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.instance = instance + return c +} + +// UpdateMask sets the optional parameter "updateMask": Mask of fields +// to update. At least one path must be supplied in this field. The +// elements of the repeated paths field may only include these fields: * +// "description" * "file_shares" * "labels" +func (c *ProjectsLocationsInstancesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsInstancesPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesPatchCall) Context(ctx context.Context) *ProjectsLocationsInstancesPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.instance) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "file.projects.locations.instances.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates the settings of a specific instance.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}", + // "httpMethod": "PATCH", + // "id": "file.projects.locations.instances.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. The resource name of the instance, in the format projects/{project}/locations/{location}/instances/{instance}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields: * \"description\" * \"file_shares\" * \"labels\"", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "Instance" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "file.projects.locations.instances.restore": + +type ProjectsLocationsInstancesRestoreCall struct { + s *Service + name string + restoreinstancerequest *RestoreInstanceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Restore: Restores an existing instance's file share from a backup. +// The instance's file share capacity will be set to the backup's +// capacity or the minimum capacity of the tier, whichever is larger. +func (r *ProjectsLocationsInstancesService) Restore(name string, restoreinstancerequest *RestoreInstanceRequest) *ProjectsLocationsInstancesRestoreCall { + c := &ProjectsLocationsInstancesRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.restoreinstancerequest = restoreinstancerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesRestoreCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesRestoreCall) Context(ctx context.Context) *ProjectsLocationsInstancesRestoreCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesRestoreCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesRestoreCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.restoreinstancerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:restore") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "file.projects.locations.instances.restore" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesRestoreCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Restores an existing instance's file share from a backup. The instance's file share capacity will be set to the backup's capacity or the minimum capacity of the tier, whichever is larger.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:restore", + // "httpMethod": "POST", + // "id": "file.projects.locations.instances.restore", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name of the instance, in the format projects/{project_number}/locations/{location_id}/instances/{instance_id}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:restore", + // "request": { + // "$ref": "RestoreInstanceRequest" // }, // "response": { // "$ref": "Operation" @@ -2323,7 +3844,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2464,7 +3985,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2607,7 +4128,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2781,7 +4302,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/file/v1beta1/file-api.json b/file/v1beta1/file-api.json index a2bf7cde4f2..59a8296b65d 100644 --- a/file/v1beta1/file-api.json +++ b/file/v1beta1/file-api.json @@ -352,7 +352,7 @@ "instances": { "methods": { "create": { - "description": "Creates an instance.", + "description": "Creates an instance. When creating from a backup, the capacity of the new instance needs to be equal to or larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier).", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/instances", "httpMethod": "POST", "id": "file.projects.locations.instances.create", @@ -515,7 +515,7 @@ ] }, "restore": { - "description": "Restores an existing instance's file share from a snapshot or backup.", + "description": "Restores an existing instance's file share from a backup. The instance's file share capacity will be set to the backup's capacity or the minimum capacity of the tier, whichever is larger.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:restore", "httpMethod": "POST", "id": "file.projects.locations.instances.restore", @@ -672,7 +672,7 @@ } } }, - "revision": "20201001", + "revision": "20201029", "rootUrl": "https://file.googleapis.com/", "schemas": { "Backup": { @@ -680,7 +680,7 @@ "id": "Backup", "properties": { "capacityGb": { - "description": "Output only. Capacity of the backup. This would be the size of the file share when the backup is restored.", + "description": "Output only. Capacity of the source file share when the backup was created.", "format": "int64", "readOnly": true, "type": "string" @@ -776,6 +776,63 @@ "properties": {}, "type": "object" }, + "DailyCycle": { + "description": "Time window specified for daily operations.", + "id": "DailyCycle", + "properties": { + "duration": { + "description": "Output only. Duration of the time window, set by service producer.", + "format": "google-duration", + "type": "string" + }, + "startTime": { + "$ref": "TimeOfDay", + "description": "Time within the day to start the operations." + } + }, + "type": "object" + }, + "Date": { + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.", + "id": "Date", + "properties": { + "day": { + "description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.", + "format": "int32", + "type": "integer" + }, + "month": { + "description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.", + "format": "int32", + "type": "integer" + }, + "year": { + "description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "DenyMaintenancePeriod": { + "description": "DenyMaintenancePeriod definition. Maintenance is forbidden within the deny period. The start_date must be less than the end_date.", + "id": "DenyMaintenancePeriod", + "properties": { + "endDate": { + "$ref": "Date", + "description": "Deny period end date. This can be: * A full date, with non-zero year, month and day values. * A month and day value, with a zero year. Allows recurring deny periods each year. Date matching this period will have to be before the end." + }, + "startDate": { + "$ref": "Date", + "description": "Deny period start date. This can be: * A full date, with non-zero year, month and day values. * A month and day value, with a zero year. Allows recurring deny periods each year. Date matching this period will have to be the same or after the start." + }, + "time": { + "$ref": "TimeOfDay", + "description": "Time in UTC when the Blackout period starts on start_date and ends on end_date. This can be: * Full time. * All zeros for 00:00:00 UTC" + } + }, + "type": "object" + }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", "id": "Empty", @@ -833,7 +890,7 @@ "additionalProperties": { "type": "string" }, - "description": "The MaintenancePolicies that have been attached to the instance. The key must be of the type name of the oneof policy name defined in MaintenancePolicy, and the referenced policy must define the same policy type. For complete details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug.", + "description": "Deprecated. The MaintenancePolicies that have been attached to the instance. The key must be of the type name of the oneof policy name defined in MaintenancePolicy, and the referenced policy must define the same policy type. For complete details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug.", "type": "object" }, "maintenanceSchedules": { @@ -952,6 +1009,13 @@ "exclude": { "description": "Optional. Exclude instance from maintenance. When true, rollout service will not attempt maintenance on the instance. Rollout service will include the instance in reported rollout progress as not attempted.", "type": "boolean" + }, + "maintenancePolicies": { + "additionalProperties": { + "$ref": "MaintenancePolicy" + }, + "description": "Optional. The MaintenancePolicies that have been attached to the instance. The key must be of the type name of the oneof policy name defined in MaintenancePolicy, and the embedded policy must define the same policy type. For complete details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug. If only the name is needed (like in the deprecated Instance.maintenance_policy_names field) then only populate MaintenancePolicy.name.", + "type": "object" } }, "type": "object" @@ -1277,6 +1341,71 @@ }, "type": "object" }, + "MaintenancePolicy": { + "description": "Defines policies to service maintenance events.", + "id": "MaintenancePolicy", + "properties": { + "createTime": { + "description": "Output only. The time when the resource was created.", + "format": "google-datetime", + "type": "string" + }, + "description": { + "description": "Optional. Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Resource labels to represent user provided metadata. Each label is a key-value pair, where both the key and the value are arbitrary strings provided by the user.", + "type": "object" + }, + "name": { + "description": "Required. MaintenancePolicy name using the form: `projects/{project_id}/locations/{location_id}/maintenancePolicies/{maintenance_policy_id}` where {project_id} refers to a GCP consumer project ID, {location_id} refers to a GCP region/zone, {maintenance_policy_id} must be 1-63 characters long and match the regular expression `[a-z0-9]([-a-z0-9]*[a-z0-9])?`.", + "type": "string" + }, + "state": { + "description": "Optional. The state of the policy.", + "enum": [ + "STATE_UNSPECIFIED", + "READY", + "DELETING" + ], + "enumDescriptions": [ + "Unspecified state.", + "Resource is ready to be used.", + "Resource is being deleted. It can no longer be attached to instances." + ], + "type": "string" + }, + "updatePolicy": { + "$ref": "UpdatePolicy", + "description": "Maintenance policy applicable to instance update." + }, + "updateTime": { + "description": "Output only. The time when the resource was updated.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "MaintenanceWindow": { + "description": "MaintenanceWindow definition.", + "id": "MaintenanceWindow", + "properties": { + "dailyCycle": { + "$ref": "DailyCycle", + "description": "Daily cycle." + }, + "weeklyCycle": { + "$ref": "WeeklyCycle", + "description": "Weekly cycle." + } + }, + "type": "object" + }, "NetworkConfig": { "description": "Network configuration for the instance.", "id": "NetworkConfig", @@ -1458,6 +1587,46 @@ }, "type": "object" }, + "Schedule": { + "description": "Configure the schedule.", + "id": "Schedule", + "properties": { + "day": { + "description": "Allows to define schedule that runs specified day of the week.", + "enum": [ + "DAY_OF_WEEK_UNSPECIFIED", + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ], + "enumDescriptions": [ + "The day of the week is unspecified.", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ], + "type": "string" + }, + "duration": { + "description": "Output only. Duration of the time window, set by service producer.", + "format": "google-duration", + "type": "string" + }, + "startTime": { + "$ref": "TimeOfDay", + "description": "Time within the window to start the operations." + } + }, + "type": "object" + }, "Status": { "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "id": "Status", @@ -1484,6 +1653,79 @@ } }, "type": "object" + }, + "TimeOfDay": { + "description": "Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.", + "id": "TimeOfDay", + "properties": { + "hours": { + "description": "Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + "format": "int32", + "type": "integer" + }, + "minutes": { + "description": "Minutes of hour of day. Must be from 0 to 59.", + "format": "int32", + "type": "integer" + }, + "nanos": { + "description": "Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.", + "format": "int32", + "type": "integer" + }, + "seconds": { + "description": "Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "UpdatePolicy": { + "description": "Maintenance policy applicable to instance updates.", + "id": "UpdatePolicy", + "properties": { + "channel": { + "description": "Optional. Relative scheduling channel applied to resource.", + "enum": [ + "UPDATE_CHANNEL_UNSPECIFIED", + "EARLIER", + "LATER" + ], + "enumDescriptions": [ + "Unspecified channel.", + "Early channel within a customer project.", + "Later channel within a customer project." + ], + "type": "string" + }, + "denyMaintenancePeriods": { + "description": "Deny Maintenance Period that is applied to resource to indicate when maintenance is forbidden. User can specify zero or more non-overlapping deny periods. For V1, Maximum number of deny_maintenance_periods is expected to be one.", + "items": { + "$ref": "DenyMaintenancePeriod" + }, + "type": "array" + }, + "window": { + "$ref": "MaintenanceWindow", + "description": "Optional. Maintenance window that is applied to resources covered by this policy." + } + }, + "type": "object" + }, + "WeeklyCycle": { + "description": "Time window specified for weekly operations.", + "id": "WeeklyCycle", + "properties": { + "schedule": { + "description": "User can specify multiple windows in a week. Minimum of 1 window.", + "items": { + "$ref": "Schedule" + }, + "type": "array" + } + }, + "type": "object" } }, "servicePath": "", diff --git a/file/v1beta1/file-gen.go b/file/v1beta1/file-gen.go index 800acd7d487..34c4af6bba2 100644 --- a/file/v1beta1/file-gen.go +++ b/file/v1beta1/file-gen.go @@ -194,8 +194,8 @@ type ProjectsLocationsOperationsService struct { // Backup: A Cloud Filestore backup. type Backup struct { - // CapacityGb: Output only. Capacity of the backup. This would be the - // size of the file share when the backup is restored. + // CapacityGb: Output only. Capacity of the source file share when the + // backup was created. CapacityGb int64 `json:"capacityGb,omitempty,string"` // CreateTime: Output only. The time when the backup was created. @@ -294,6 +294,128 @@ func (s *Backup) MarshalJSON() ([]byte, error) { type CancelOperationRequest struct { } +// DailyCycle: Time window specified for daily operations. +type DailyCycle struct { + // Duration: Output only. Duration of the time window, set by service + // producer. + Duration string `json:"duration,omitempty"` + + // StartTime: Time within the day to start the operations. + StartTime *TimeOfDay `json:"startTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Duration") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Duration") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DailyCycle) MarshalJSON() ([]byte, error) { + type NoMethod DailyCycle + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Date: Represents a whole or partial calendar date, such as a +// birthday. The time of day and time zone are either specified +// elsewhere or are insignificant. The date is relative to the Gregorian +// Calendar. This can represent one of the following: * A full date, +// with non-zero year, month, and day values * A month and day value, +// with a zero year, such as an anniversary * A year on its own, with +// zero month and day values * A year and month value, with a zero day, +// such as a credit card expiration date Related types are +// google.type.TimeOfDay and `google.protobuf.Timestamp`. +type Date struct { + // Day: Day of a month. Must be from 1 to 31 and valid for the year and + // month, or 0 to specify a year by itself or a year and month where the + // day isn't significant. + Day int64 `json:"day,omitempty"` + + // Month: Month of a year. Must be from 1 to 12, or 0 to specify a year + // without a month and day. + Month int64 `json:"month,omitempty"` + + // Year: Year of the date. Must be from 1 to 9999, or 0 to specify a + // date without a year. + Year int64 `json:"year,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Day") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Day") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Date) MarshalJSON() ([]byte, error) { + type NoMethod Date + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DenyMaintenancePeriod: DenyMaintenancePeriod definition. Maintenance +// is forbidden within the deny period. The start_date must be less than +// the end_date. +type DenyMaintenancePeriod struct { + // EndDate: Deny period end date. This can be: * A full date, with + // non-zero year, month and day values. * A month and day value, with a + // zero year. Allows recurring deny periods each year. Date matching + // this period will have to be before the end. + EndDate *Date `json:"endDate,omitempty"` + + // StartDate: Deny period start date. This can be: * A full date, with + // non-zero year, month and day values. * A month and day value, with a + // zero year. Allows recurring deny periods each year. Date matching + // this period will have to be the same or after the start. + StartDate *Date `json:"startDate,omitempty"` + + // Time: Time in UTC when the Blackout period starts on start_date and + // ends on end_date. This can be: * Full time. * All zeros for 00:00:00 + // UTC + Time *TimeOfDay `json:"time,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndDate") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EndDate") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DenyMaintenancePeriod) MarshalJSON() ([]byte, error) { + type NoMethod DenyMaintenancePeriod + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Empty: A generic empty message that you can re-use to avoid defining // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For @@ -363,11 +485,11 @@ type GoogleCloudSaasacceleratorManagementProvidersV1Instance struct { // value are arbitrary strings provided by the user. Labels map[string]string `json:"labels,omitempty"` - // MaintenancePolicyNames: The MaintenancePolicies that have been - // attached to the instance. The key must be of the type name of the - // oneof policy name defined in MaintenancePolicy, and the referenced - // policy must define the same policy type. For complete details of - // MaintenancePolicy, please refer to go/cloud-saas-mw-ug. + // MaintenancePolicyNames: Deprecated. The MaintenancePolicies that have + // been attached to the instance. The key must be of the type name of + // the oneof policy name defined in MaintenancePolicy, and the + // referenced policy must define the same policy type. For complete + // details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug. MaintenancePolicyNames map[string]string `json:"maintenancePolicyNames,omitempty"` // MaintenanceSchedules: The MaintenanceSchedule contains the scheduling @@ -510,6 +632,16 @@ type GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings struct { // attempted. Exclude bool `json:"exclude,omitempty"` + // MaintenancePolicies: Optional. The MaintenancePolicies that have been + // attached to the instance. The key must be of the type name of the + // oneof policy name defined in MaintenancePolicy, and the embedded + // policy must define the same policy type. For complete details of + // MaintenancePolicy, please refer to go/cloud-saas-mw-ug. If only the + // name is needed (like in the deprecated + // Instance.maintenance_policy_names field) then only populate + // MaintenancePolicy.name. + MaintenancePolicies map[string]MaintenancePolicy `json:"maintenancePolicies,omitempty"` + // ForceSendFields is a list of field names (e.g. "Exclude") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, @@ -1068,6 +1200,98 @@ func (s *Location) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MaintenancePolicy: Defines policies to service maintenance events. +type MaintenancePolicy struct { + // CreateTime: Output only. The time when the resource was created. + CreateTime string `json:"createTime,omitempty"` + + // Description: Optional. Description of what this policy is for. + // Create/Update methods return INVALID_ARGUMENT if the length is + // greater than 512. + Description string `json:"description,omitempty"` + + // Labels: Optional. Resource labels to represent user provided + // metadata. Each label is a key-value pair, where both the key and the + // value are arbitrary strings provided by the user. + Labels map[string]string `json:"labels,omitempty"` + + // Name: Required. MaintenancePolicy name using the form: + // `projects/{project_id}/locations/{location_id}/maintenancePolicies/{ma + // intenance_policy_id}` where {project_id} refers to a GCP consumer + // project ID, {location_id} refers to a GCP region/zone, + // {maintenance_policy_id} must be 1-63 characters long and match the + // regular expression `[a-z0-9]([-a-z0-9]*[a-z0-9])?`. + Name string `json:"name,omitempty"` + + // State: Optional. The state of the policy. + // + // Possible values: + // "STATE_UNSPECIFIED" - Unspecified state. + // "READY" - Resource is ready to be used. + // "DELETING" - Resource is being deleted. It can no longer be + // attached to instances. + State string `json:"state,omitempty"` + + // UpdatePolicy: Maintenance policy applicable to instance update. + UpdatePolicy *UpdatePolicy `json:"updatePolicy,omitempty"` + + // UpdateTime: Output only. The time when the resource was updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MaintenancePolicy) MarshalJSON() ([]byte, error) { + type NoMethod MaintenancePolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MaintenanceWindow: MaintenanceWindow definition. +type MaintenanceWindow struct { + // DailyCycle: Daily cycle. + DailyCycle *DailyCycle `json:"dailyCycle,omitempty"` + + // WeeklyCycle: Weekly cycle. + WeeklyCycle *WeeklyCycle `json:"weeklyCycle,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DailyCycle") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DailyCycle") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MaintenanceWindow) MarshalJSON() ([]byte, error) { + type NoMethod MaintenanceWindow + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // NetworkConfig: Network configuration for the instance. type NetworkConfig struct { // IpAddresses: Output only. IPv4 addresses in the format {octet @@ -1341,6 +1565,51 @@ func (s *RestoreInstanceRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Schedule: Configure the schedule. +type Schedule struct { + // Day: Allows to define schedule that runs specified day of the week. + // + // Possible values: + // "DAY_OF_WEEK_UNSPECIFIED" - The day of the week is unspecified. + // "MONDAY" - Monday + // "TUESDAY" - Tuesday + // "WEDNESDAY" - Wednesday + // "THURSDAY" - Thursday + // "FRIDAY" - Friday + // "SATURDAY" - Saturday + // "SUNDAY" - Sunday + Day string `json:"day,omitempty"` + + // Duration: Output only. Duration of the time window, set by service + // producer. + Duration string `json:"duration,omitempty"` + + // StartTime: Time within the window to start the operations. + StartTime *TimeOfDay `json:"startTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Day") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Day") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Schedule) MarshalJSON() ([]byte, error) { + type NoMethod Schedule + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Status: The `Status` type defines a logical error model that is // suitable for different programming environments, including REST APIs // and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each @@ -1385,6 +1654,122 @@ func (s *Status) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TimeOfDay: Represents a time of day. The date and time zone are +// either not significant or are specified elsewhere. An API may choose +// to allow leap seconds. Related types are google.type.Date and +// `google.protobuf.Timestamp`. +type TimeOfDay struct { + // Hours: Hours of day in 24 hour format. Should be from 0 to 23. An API + // may choose to allow the value "24:00:00" for scenarios like business + // closing time. + Hours int64 `json:"hours,omitempty"` + + // Minutes: Minutes of hour of day. Must be from 0 to 59. + Minutes int64 `json:"minutes,omitempty"` + + // Nanos: Fractions of seconds in nanoseconds. Must be from 0 to + // 999,999,999. + Nanos int64 `json:"nanos,omitempty"` + + // Seconds: Seconds of minutes of the time. Must normally be from 0 to + // 59. An API may allow the value 60 if it allows leap-seconds. + Seconds int64 `json:"seconds,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Hours") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Hours") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TimeOfDay) MarshalJSON() ([]byte, error) { + type NoMethod TimeOfDay + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// UpdatePolicy: Maintenance policy applicable to instance updates. +type UpdatePolicy struct { + // Channel: Optional. Relative scheduling channel applied to resource. + // + // Possible values: + // "UPDATE_CHANNEL_UNSPECIFIED" - Unspecified channel. + // "EARLIER" - Early channel within a customer project. + // "LATER" - Later channel within a customer project. + Channel string `json:"channel,omitempty"` + + // DenyMaintenancePeriods: Deny Maintenance Period that is applied to + // resource to indicate when maintenance is forbidden. User can specify + // zero or more non-overlapping deny periods. For V1, Maximum number of + // deny_maintenance_periods is expected to be one. + DenyMaintenancePeriods []*DenyMaintenancePeriod `json:"denyMaintenancePeriods,omitempty"` + + // Window: Optional. Maintenance window that is applied to resources + // covered by this policy. + Window *MaintenanceWindow `json:"window,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Channel") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Channel") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *UpdatePolicy) MarshalJSON() ([]byte, error) { + type NoMethod UpdatePolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// WeeklyCycle: Time window specified for weekly operations. +type WeeklyCycle struct { + // Schedule: User can specify multiple windows in a week. Minimum of 1 + // window. + Schedule []*Schedule `json:"schedule,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Schedule") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Schedule") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *WeeklyCycle) MarshalJSON() ([]byte, error) { + type NoMethod WeeklyCycle + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // method id "file.projects.locations.get": type ProjectsLocationsGetCall struct { @@ -1440,7 +1825,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1614,7 +1999,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1801,7 +2186,7 @@ func (c *ProjectsLocationsBackupsCreateCall) Header() http.Header { func (c *ProjectsLocationsBackupsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1944,7 +2329,7 @@ func (c *ProjectsLocationsBackupsDeleteCall) Header() http.Header { func (c *ProjectsLocationsBackupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2085,7 +2470,7 @@ func (c *ProjectsLocationsBackupsGetCall) Header() http.Header { func (c *ProjectsLocationsBackupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2258,7 +2643,7 @@ func (c *ProjectsLocationsBackupsListCall) Header() http.Header { func (c *ProjectsLocationsBackupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2443,7 +2828,7 @@ func (c *ProjectsLocationsBackupsPatchCall) Header() http.Header { func (c *ProjectsLocationsBackupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2554,7 +2939,10 @@ type ProjectsLocationsInstancesCreateCall struct { header_ http.Header } -// Create: Creates an instance. +// Create: Creates an instance. When creating from a backup, the +// capacity of the new instance needs to be equal to or larger than the +// capacity of the backup (and also equal to or larger than the minimum +// capacity of the tier). func (r *ProjectsLocationsInstancesService) Create(parent string, instance *Instance) *ProjectsLocationsInstancesCreateCall { c := &ProjectsLocationsInstancesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -2599,7 +2987,7 @@ func (c *ProjectsLocationsInstancesCreateCall) Header() http.Header { func (c *ProjectsLocationsInstancesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2663,7 +3051,7 @@ func (c *ProjectsLocationsInstancesCreateCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Creates an instance.", + // "description": "Creates an instance. When creating from a backup, the capacity of the new instance needs to be equal to or larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier).", // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/instances", // "httpMethod": "POST", // "id": "file.projects.locations.instances.create", @@ -2742,7 +3130,7 @@ func (c *ProjectsLocationsInstancesDeleteCall) Header() http.Header { func (c *ProjectsLocationsInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2883,7 +3271,7 @@ func (c *ProjectsLocationsInstancesGetCall) Header() http.Header { func (c *ProjectsLocationsInstancesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3056,7 +3444,7 @@ func (c *ProjectsLocationsInstancesListCall) Header() http.Header { func (c *ProjectsLocationsInstancesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3242,7 +3630,7 @@ func (c *ProjectsLocationsInstancesPatchCall) Header() http.Header { func (c *ProjectsLocationsInstancesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3353,8 +3741,9 @@ type ProjectsLocationsInstancesRestoreCall struct { header_ http.Header } -// Restore: Restores an existing instance's file share from a snapshot -// or backup. +// Restore: Restores an existing instance's file share from a backup. +// The instance's file share capacity will be set to the backup's +// capacity or the minimum capacity of the tier, whichever is larger. func (r *ProjectsLocationsInstancesService) Restore(name string, restoreinstancerequest *RestoreInstanceRequest) *ProjectsLocationsInstancesRestoreCall { c := &ProjectsLocationsInstancesRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3389,7 +3778,7 @@ func (c *ProjectsLocationsInstancesRestoreCall) Header() http.Header { func (c *ProjectsLocationsInstancesRestoreCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3453,7 +3842,7 @@ func (c *ProjectsLocationsInstancesRestoreCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Restores an existing instance's file share from a snapshot or backup.", + // "description": "Restores an existing instance's file share from a backup. The instance's file share capacity will be set to the backup's capacity or the minimum capacity of the tier, whichever is larger.", // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:restore", // "httpMethod": "POST", // "id": "file.projects.locations.instances.restore", @@ -3538,7 +3927,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3679,7 +4068,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3822,7 +4211,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3996,7 +4385,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/firebase/v1beta1/firebase-api.json b/firebase/v1beta1/firebase-api.json index f35690a110b..50820c3bf5d 100644 --- a/firebase/v1beta1/firebase-api.json +++ b/firebase/v1beta1/firebase-api.json @@ -428,7 +428,7 @@ ], "parameters": { "filter": { - "description": "A query string compatible with Google's [AIP-160](https://google.aip.dev/160) standard. Use any of the following fields in a query: * [`appId`](../projects.apps#FirebaseProjectInfo.FIELDS.app_id) * [`namespace`](../projects.apps#FirebaseProjectInfo.FIELDS.namespace) * [`platform`](../projects.apps#FirebaseProjectInfo.FIELDS.platform)", + "description": "A query string compatible with Google's [AIP-160](https://google.aip.dev/160) standard. Use any of the following fields in a query: * [`app_id`](../projects.apps#FirebaseAppInfo.FIELDS.app_id) * [`namespace`](../projects.apps#FirebaseAppInfo.FIELDS.namespace) * [`platform`](../projects.apps#FirebaseAppInfo.FIELDS.platform) We also support the following \"virtual\" fields (fields which are not actually part of the returned resource object, but can be queried as if they are pre-populated with specific values): * `sha1_hash`: This field is considered to be a repeated `string` field, populated with the list of all SHA-1 certificate fingerprints registered with the app. This list is empty if the app is not an Android app. * `sha256_hash`: This field is considered to be a repeated `string` field, populated with the list of all SHA-256 certificate fingerprints registered with the app. This list is empty if the app is not an Android app. * `app_store_id`: This field is considered to be a singular `string` field, populated with the Apple App Store ID registered with the app. This field is empty if the app is not an iOS app. * `team_id`: This field is considered to be a singular `string` field, populated with the Apple team ID registered with the app. This field is empty if the app is not an iOS app.", "location": "query", "type": "string" }, @@ -1121,7 +1121,7 @@ } } }, - "revision": "20200911", + "revision": "20201027", "rootUrl": "https://firebase.googleapis.com/", "schemas": { "AddFirebaseRequest": { diff --git a/firebase/v1beta1/firebase-gen.go b/firebase/v1beta1/firebase-gen.go index 1cdc2921bba..fbb2bf4abd9 100644 --- a/firebase/v1beta1/firebase-gen.go +++ b/firebase/v1beta1/firebase-gen.go @@ -1850,7 +1850,7 @@ func (c *AvailableProjectsListCall) Header() http.Header { func (c *AvailableProjectsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2019,7 +2019,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2179,7 +2179,7 @@ func (c *ProjectsAddFirebaseCall) Header() http.Header { func (c *ProjectsAddFirebaseCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2360,7 +2360,7 @@ func (c *ProjectsAddGoogleAnalyticsCall) Header() http.Header { func (c *ProjectsAddGoogleAnalyticsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2510,7 +2510,7 @@ func (c *ProjectsGetCall) Header() http.Header { func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2662,7 +2662,7 @@ func (c *ProjectsGetAdminSdkConfigCall) Header() http.Header { func (c *ProjectsGetAdminSdkConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2812,7 +2812,7 @@ func (c *ProjectsGetAnalyticsDetailsCall) Header() http.Header { func (c *ProjectsGetAnalyticsDetailsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2983,7 +2983,7 @@ func (c *ProjectsListCall) Header() http.Header { func (c *ProjectsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3151,7 +3151,7 @@ func (c *ProjectsPatchCall) Header() http.Header { func (c *ProjectsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3310,7 +3310,7 @@ func (c *ProjectsRemoveAnalyticsCall) Header() http.Header { func (c *ProjectsRemoveAnalyticsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3430,9 +3430,24 @@ func (r *ProjectsService) SearchApps(parent string) *ProjectsSearchAppsCall { // Filter sets the optional parameter "filter": A query string // compatible with Google's [AIP-160](https://google.aip.dev/160) // standard. Use any of the following fields in a query: * -// [`appId`](../projects.apps#FirebaseProjectInfo.FIELDS.app_id) * -// [`namespace`](../projects.apps#FirebaseProjectInfo.FIELDS.namespace) -// * [`platform`](../projects.apps#FirebaseProjectInfo.FIELDS.platform) +// [`app_id`](../projects.apps#FirebaseAppInfo.FIELDS.app_id) * +// [`namespace`](../projects.apps#FirebaseAppInfo.FIELDS.namespace) * +// [`platform`](../projects.apps#FirebaseAppInfo.FIELDS.platform) We +// also support the following "virtual" fields (fields which are not +// actually part of the returned resource object, but can be queried as +// if they are pre-populated with specific values): * `sha1_hash`: This +// field is considered to be a repeated `string` field, populated with +// the list of all SHA-1 certificate fingerprints registered with the +// app. This list is empty if the app is not an Android app. * +// `sha256_hash`: This field is considered to be a repeated `string` +// field, populated with the list of all SHA-256 certificate +// fingerprints registered with the app. This list is empty if the app +// is not an Android app. * `app_store_id`: This field is considered to +// be a singular `string` field, populated with the Apple App Store ID +// registered with the app. This field is empty if the app is not an iOS +// app. * `team_id`: This field is considered to be a singular `string` +// field, populated with the Apple team ID registered with the app. This +// field is empty if the app is not an iOS app. func (c *ProjectsSearchAppsCall) Filter(filter string) *ProjectsSearchAppsCall { c.urlParams_.Set("filter", filter) return c @@ -3493,7 +3508,7 @@ func (c *ProjectsSearchAppsCall) Header() http.Header { func (c *ProjectsSearchAppsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3564,7 +3579,7 @@ func (c *ProjectsSearchAppsCall) Do(opts ...googleapi.CallOption) (*SearchFireba // ], // "parameters": { // "filter": { - // "description": "A query string compatible with Google's [AIP-160](https://google.aip.dev/160) standard. Use any of the following fields in a query: * [`appId`](../projects.apps#FirebaseProjectInfo.FIELDS.app_id) * [`namespace`](../projects.apps#FirebaseProjectInfo.FIELDS.namespace) * [`platform`](../projects.apps#FirebaseProjectInfo.FIELDS.platform)", + // "description": "A query string compatible with Google's [AIP-160](https://google.aip.dev/160) standard. Use any of the following fields in a query: * [`app_id`](../projects.apps#FirebaseAppInfo.FIELDS.app_id) * [`namespace`](../projects.apps#FirebaseAppInfo.FIELDS.namespace) * [`platform`](../projects.apps#FirebaseAppInfo.FIELDS.platform) We also support the following \"virtual\" fields (fields which are not actually part of the returned resource object, but can be queried as if they are pre-populated with specific values): * `sha1_hash`: This field is considered to be a repeated `string` field, populated with the list of all SHA-1 certificate fingerprints registered with the app. This list is empty if the app is not an Android app. * `sha256_hash`: This field is considered to be a repeated `string` field, populated with the list of all SHA-256 certificate fingerprints registered with the app. This list is empty if the app is not an Android app. * `app_store_id`: This field is considered to be a singular `string` field, populated with the Apple App Store ID registered with the app. This field is empty if the app is not an iOS app. * `team_id`: This field is considered to be a singular `string` field, populated with the Apple team ID registered with the app. This field is empty if the app is not an iOS app.", // "location": "query", // "type": "string" // }, @@ -3672,7 +3687,7 @@ func (c *ProjectsAndroidAppsCreateCall) Header() http.Header { func (c *ProjectsAndroidAppsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3822,7 +3837,7 @@ func (c *ProjectsAndroidAppsGetCall) Header() http.Header { func (c *ProjectsAndroidAppsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3970,7 +3985,7 @@ func (c *ProjectsAndroidAppsGetConfigCall) Header() http.Header { func (c *ProjectsAndroidAppsGetConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4137,7 +4152,7 @@ func (c *ProjectsAndroidAppsListCall) Header() http.Header { func (c *ProjectsAndroidAppsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4315,7 +4330,7 @@ func (c *ProjectsAndroidAppsPatchCall) Header() http.Header { func (c *ProjectsAndroidAppsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4462,7 +4477,7 @@ func (c *ProjectsAndroidAppsShaCreateCall) Header() http.Header { func (c *ProjectsAndroidAppsShaCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4601,7 +4616,7 @@ func (c *ProjectsAndroidAppsShaDeleteCall) Header() http.Header { func (c *ProjectsAndroidAppsShaDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4744,7 +4759,7 @@ func (c *ProjectsAndroidAppsShaListCall) Header() http.Header { func (c *ProjectsAndroidAppsShaListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4926,7 +4941,7 @@ func (c *ProjectsAvailableLocationsListCall) Header() http.Header { func (c *ProjectsAvailableLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5126,7 +5141,7 @@ func (c *ProjectsDefaultLocationFinalizeCall) Header() http.Header { func (c *ProjectsDefaultLocationFinalizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5271,7 +5286,7 @@ func (c *ProjectsIosAppsCreateCall) Header() http.Header { func (c *ProjectsIosAppsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5421,7 +5436,7 @@ func (c *ProjectsIosAppsGetCall) Header() http.Header { func (c *ProjectsIosAppsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5569,7 +5584,7 @@ func (c *ProjectsIosAppsGetConfigCall) Header() http.Header { func (c *ProjectsIosAppsGetConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5736,7 +5751,7 @@ func (c *ProjectsIosAppsListCall) Header() http.Header { func (c *ProjectsIosAppsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5914,7 +5929,7 @@ func (c *ProjectsIosAppsPatchCall) Header() http.Header { func (c *ProjectsIosAppsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6065,7 +6080,7 @@ func (c *ProjectsWebAppsCreateCall) Header() http.Header { func (c *ProjectsWebAppsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6215,7 +6230,7 @@ func (c *ProjectsWebAppsGetCall) Header() http.Header { func (c *ProjectsWebAppsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6363,7 +6378,7 @@ func (c *ProjectsWebAppsGetConfigCall) Header() http.Header { func (c *ProjectsWebAppsGetConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6530,7 +6545,7 @@ func (c *ProjectsWebAppsListCall) Header() http.Header { func (c *ProjectsWebAppsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6708,7 +6723,7 @@ func (c *ProjectsWebAppsPatchCall) Header() http.Header { func (c *ProjectsWebAppsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/firebasedatabase/v1beta/firebasedatabase-api.json b/firebasedatabase/v1beta/firebasedatabase-api.json new file mode 100644 index 00000000000..596aa02eb07 --- /dev/null +++ b/firebasedatabase/v1beta/firebasedatabase-api.json @@ -0,0 +1,407 @@ +{ + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/cloud-platform": { + "description": "View and manage your data across Google Cloud Platform services" + }, + "https://www.googleapis.com/auth/cloud-platform.read-only": { + "description": "View your data across Google Cloud Platform services" + }, + "https://www.googleapis.com/auth/firebase": { + "description": "View and administer all your Firebase data and settings" + }, + "https://www.googleapis.com/auth/firebase.readonly": { + "description": "View all your Firebase data and settings" + } + } + } + }, + "basePath": "", + "baseUrl": "https://firebasedatabase.googleapis.com/", + "batchPath": "batch", + "canonicalName": "Firebase Realtime Database", + "description": "The Firebase Realtime Database Management API enables programmatic provisioning and management of Realtime Database instances.", + "discoveryVersion": "v1", + "documentationLink": "https://firebase.google.com/docs/reference/rest/database/database-management/rest/", + "fullyEncodeReservedExpansion": true, + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "id": "firebasedatabase:v1beta", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://firebasedatabase.mtls.googleapis.com/", + "name": "firebasedatabase", + "ownerDomain": "google.com", + "ownerName": "Google", + "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, + "alt": { + "default": "json", + "description": "Data format for response.", + "enum": [ + "json", + "media", + "proto" + ], + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query", + "type": "string" + }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, + "fields": { + "description": "Selector specifying which fields to include in a partial response.", + "location": "query", + "type": "string" + }, + "key": { + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "location": "query", + "type": "string" + }, + "oauth_token": { + "description": "OAuth 2.0 token for the current user.", + "location": "query", + "type": "string" + }, + "prettyPrint": { + "default": "true", + "description": "Returns response with indentations and line breaks.", + "location": "query", + "type": "boolean" + }, + "quotaUser": { + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query", + "type": "string" + }, + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query", + "type": "string" + } + }, + "protocol": "rest", + "resources": { + "projects": { + "resources": { + "locations": { + "resources": { + "instances": { + "methods": { + "create": { + "description": "Requests that a new DatabaseInstance be created. The state of a successfully created DatabaseInstance is ACTIVE. Only available for projects on the Blaze plan. Projects can be upgraded using the Cloud Billing API https://cloud.google.com/billing/reference/rest/v1/projects/updateBillingInfo. Note that it might take a few minutes for billing enablement state to propagate to Firebase systems.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/instances", + "httpMethod": "POST", + "id": "firebasedatabase.projects.locations.instances.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "databaseId": { + "description": "The globally unique identifier of the database instance.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "The parent project for which to create a database instance, in the form: `projects/{project-number}/locations/{location-id}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "validateOnly": { + "description": "When set to true, the request will be validated but not submitted.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1beta/{+parent}/instances", + "request": { + "$ref": "DatabaseInstance" + }, + "response": { + "$ref": "DatabaseInstance" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "delete": { + "description": "Marks a DatabaseInstance to be deleted. The DatabaseInstance will be purged within 30 days. The default database cannot be deleted. IDs for deleted database instances may never be recovered or re-used. The Database may only be deleted if it is already in a DISABLED state.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}", + "httpMethod": "DELETE", + "id": "firebasedatabase.projects.locations.instances.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+name}", + "response": { + "$ref": "DatabaseInstance" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "disable": { + "description": "Disables a DatabaseInstance. The database can be re-enabled later using ReenableDatabaseInstance. When a database is disabled, all reads and writes are denied, including view access in the Firebase console.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:disable", + "httpMethod": "POST", + "id": "firebasedatabase.projects.locations.instances.disable", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+name}:disable", + "request": { + "$ref": "DisableDatabaseInstanceRequest" + }, + "response": { + "$ref": "DatabaseInstance" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "get": { + "description": "Gets the DatabaseInstance identified by the specified resource name.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}", + "httpMethod": "GET", + "id": "firebasedatabase.projects.locations.instances.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`. `database-id` is a globally unique identifier across all parent collections. For convenience, this method allows you to supply `-` as a wildcard character in place of specific collections under `projects` and `locations`. The resulting wildcarding form of the method is: `projects/-/locations/-/instances/{database-id}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+name}", + "response": { + "$ref": "DatabaseInstance" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/firebase", + "https://www.googleapis.com/auth/firebase.readonly" + ] + }, + "list": { + "description": "Lists each DatabaseInstance associated with the specified parent project. The list items are returned in no particular order, but will be a consistent view of the database instances when additional requests are made with a `pageToken`. The resulting list contains instances in any STATE. The list results may be stale by a few seconds. Use GetDatabaseInstance for consistent reads.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/instances", + "httpMethod": "GET", + "id": "firebasedatabase.projects.locations.instances.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of database instances to return in the response. The server may return fewer than this at its discretion. If no value is specified (or too large a value is specified), then the server will impose its own limit.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Token returned from a previous call to `ListDatabaseInstances` indicating where in the set of database instances to resume listing.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "The parent project for which to list database instances, in the form: `projects/{project-number}/locations/{location-id}` To list across all locations, use a parent in the form: `projects/{project-number}/locations/-`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+parent}/instances", + "response": { + "$ref": "ListDatabaseInstancesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/firebase", + "https://www.googleapis.com/auth/firebase.readonly" + ] + }, + "reenable": { + "description": "Enables a DatabaseInstance. The database must have been disabled previously using DisableDatabaseInstance. The state of a successfully reenabled DatabaseInstance is ACTIVE.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:reenable", + "httpMethod": "POST", + "id": "firebasedatabase.projects.locations.instances.reenable", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+name}:reenable", + "request": { + "$ref": "ReenableDatabaseInstanceRequest" + }, + "response": { + "$ref": "DatabaseInstance" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + } + } + } + } + } + } + } + }, + "revision": "20201116", + "rootUrl": "https://firebasedatabase.googleapis.com/", + "schemas": { + "DatabaseInstance": { + "description": "Representation of a Realtime Database instance. Details on interacting with contents of a DatabaseInstance can be found at: https://firebase.google.com/docs/database/rest/start.", + "id": "DatabaseInstance", + "properties": { + "databaseUrl": { + "description": "Immutable. The globally unique hostname of the database.", + "type": "string" + }, + "name": { + "description": "The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`. Currently the only supported location is 'us-central1'.", + "type": "string" + }, + "project": { + "description": "The resource name of the project this instance belongs to. For example: `projects/{project-number}`.", + "type": "string" + }, + "state": { + "description": "The database's lifecycle state. Read-only.", + "enum": [ + "LIFECYCLE_STATE_UNSPECIFIED", + "ACTIVE", + "DISABLED", + "DELETED" + ], + "enumDescriptions": [ + "Unspecified state, likely the result of an error on the backend. This is only used for distinguishing unset values.", + "The normal and active state.", + "The database is in a disabled state. It can be re-enabled later.", + "The database is in a deleted state." + ], + "type": "string" + }, + "type": { + "description": "The database instance type. On creation only USER_DATABASE is allowed, which is also the default when omitted.", + "enum": [ + "DATABASE_INSTANCE_TYPE_UNSPECIFIED", + "DEFAULT_DATABASE", + "USER_DATABASE" + ], + "enumDescriptions": [ + "Unknown state, likely the result of an error on the backend. This is only used for distinguishing unset values.", + "The default database that is provisioned when a project is created.", + "A database that the user created." + ], + "type": "string" + } + }, + "type": "object" + }, + "DisableDatabaseInstanceRequest": { + "description": "The request sent to the DisableDatabaseInstance method.", + "id": "DisableDatabaseInstanceRequest", + "properties": {}, + "type": "object" + }, + "ListDatabaseInstancesResponse": { + "description": "The response from the ListDatabaseInstances method.", + "id": "ListDatabaseInstancesResponse", + "properties": { + "instances": { + "description": "List of each DatabaseInstance that is in the parent Firebase project.", + "items": { + "$ref": "DatabaseInstance" + }, + "type": "array" + }, + "nextPageToken": { + "description": "If the result list is too large to fit in a single response, then a token is returned. If the string is empty, then this response is the last page of results. This token can be used in a subsequent call to `ListDatabaseInstances` to find the next group of database instances. Page tokens are short-lived and should not be persisted.", + "type": "string" + } + }, + "type": "object" + }, + "ReenableDatabaseInstanceRequest": { + "description": "The request sent to the ReenableDatabaseInstance method.", + "id": "ReenableDatabaseInstanceRequest", + "properties": {}, + "type": "object" + } + }, + "servicePath": "", + "title": "Firebase Realtime Database Management API", + "version": "v1beta", + "version_module": true +} \ No newline at end of file diff --git a/firebasedatabase/v1beta/firebasedatabase-gen.go b/firebasedatabase/v1beta/firebasedatabase-gen.go new file mode 100644 index 00000000000..7432ea909e7 --- /dev/null +++ b/firebasedatabase/v1beta/firebasedatabase-gen.go @@ -0,0 +1,1247 @@ +// Copyright 2020 Google LLC. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated file. DO NOT EDIT. + +// Package firebasedatabase provides access to the Firebase Realtime Database Management API. +// +// For product documentation, see: https://firebase.google.com/docs/reference/rest/database/database-management/rest/ +// +// Creating a client +// +// Usage example: +// +// import "google.golang.org/api/firebasedatabase/v1beta" +// ... +// ctx := context.Background() +// firebasedatabaseService, err := firebasedatabase.NewService(ctx) +// +// In this example, Google Application Default Credentials are used for authentication. +// +// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// +// Other authentication options +// +// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// +// firebasedatabaseService, err := firebasedatabase.NewService(ctx, option.WithScopes(firebasedatabase.FirebaseReadonlyScope)) +// +// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// +// firebasedatabaseService, err := firebasedatabase.NewService(ctx, option.WithAPIKey("AIza...")) +// +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// +// config := &oauth2.Config{...} +// // ... +// token, err := config.Exchange(ctx, ...) +// firebasedatabaseService, err := firebasedatabase.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) +// +// See https://godoc.org/google.golang.org/api/option/ for details on options. +package firebasedatabase // import "google.golang.org/api/firebasedatabase/v1beta" + +import ( + "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + googleapi "google.golang.org/api/googleapi" + gensupport "google.golang.org/api/internal/gensupport" + option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" + htransport "google.golang.org/api/transport/http" +) + +// Always reference these packages, just in case the auto-generated code +// below doesn't. +var _ = bytes.NewBuffer +var _ = strconv.Itoa +var _ = fmt.Sprintf +var _ = json.NewDecoder +var _ = io.Copy +var _ = url.Parse +var _ = gensupport.MarshalJSON +var _ = googleapi.Version +var _ = errors.New +var _ = strings.Replace +var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint + +const apiId = "firebasedatabase:v1beta" +const apiName = "firebasedatabase" +const apiVersion = "v1beta" +const basePath = "https://firebasedatabase.googleapis.com/" +const mtlsBasePath = "https://firebasedatabase.mtls.googleapis.com/" + +// OAuth2 scopes used by this API. +const ( + // View and manage your data across Google Cloud Platform services + CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" + + // View your data across Google Cloud Platform services + CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/cloud-platform.read-only" + + // View and administer all your Firebase data and settings + FirebaseScope = "https://www.googleapis.com/auth/firebase" + + // View all your Firebase data and settings + FirebaseReadonlyScope = "https://www.googleapis.com/auth/firebase.readonly" +) + +// NewService creates a new Service. +func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + scopesOption := option.WithScopes( + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/firebase", + "https://www.googleapis.com/auth/firebase.readonly", + ) + // NOTE: prepend, so we don't override user-specified scopes. + opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + client, endpoint, err := htransport.NewClient(ctx, opts...) + if err != nil { + return nil, err + } + s, err := New(client) + if err != nil { + return nil, err + } + if endpoint != "" { + s.BasePath = endpoint + } + return s, nil +} + +// New creates a new Service. It uses the provided http.Client for requests. +// +// Deprecated: please use NewService instead. +// To provide a custom HTTP client, use option.WithHTTPClient. +// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. +func New(client *http.Client) (*Service, error) { + if client == nil { + return nil, errors.New("client is nil") + } + s := &Service{client: client, BasePath: basePath} + s.Projects = NewProjectsService(s) + return s, nil +} + +type Service struct { + client *http.Client + BasePath string // API endpoint base URL + UserAgent string // optional additional User-Agent fragment + + Projects *ProjectsService +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewProjectsService(s *Service) *ProjectsService { + rs := &ProjectsService{s: s} + rs.Locations = NewProjectsLocationsService(s) + return rs +} + +type ProjectsService struct { + s *Service + + Locations *ProjectsLocationsService +} + +func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { + rs := &ProjectsLocationsService{s: s} + rs.Instances = NewProjectsLocationsInstancesService(s) + return rs +} + +type ProjectsLocationsService struct { + s *Service + + Instances *ProjectsLocationsInstancesService +} + +func NewProjectsLocationsInstancesService(s *Service) *ProjectsLocationsInstancesService { + rs := &ProjectsLocationsInstancesService{s: s} + return rs +} + +type ProjectsLocationsInstancesService struct { + s *Service +} + +// DatabaseInstance: Representation of a Realtime Database instance. +// Details on interacting with contents of a DatabaseInstance can be +// found at: https://firebase.google.com/docs/database/rest/start. +type DatabaseInstance struct { + // DatabaseUrl: Immutable. The globally unique hostname of the database. + DatabaseUrl string `json:"databaseUrl,omitempty"` + + // Name: The fully qualified resource name of the database instance, in + // the form: + // `projects/{project-number}/locations/{location-id}/instances/{database + // -id}`. Currently the only supported location is 'us-central1'. + Name string `json:"name,omitempty"` + + // Project: The resource name of the project this instance belongs to. + // For example: `projects/{project-number}`. + Project string `json:"project,omitempty"` + + // State: The database's lifecycle state. Read-only. + // + // Possible values: + // "LIFECYCLE_STATE_UNSPECIFIED" - Unspecified state, likely the + // result of an error on the backend. This is only used for + // distinguishing unset values. + // "ACTIVE" - The normal and active state. + // "DISABLED" - The database is in a disabled state. It can be + // re-enabled later. + // "DELETED" - The database is in a deleted state. + State string `json:"state,omitempty"` + + // Type: The database instance type. On creation only USER_DATABASE is + // allowed, which is also the default when omitted. + // + // Possible values: + // "DATABASE_INSTANCE_TYPE_UNSPECIFIED" - Unknown state, likely the + // result of an error on the backend. This is only used for + // distinguishing unset values. + // "DEFAULT_DATABASE" - The default database that is provisioned when + // a project is created. + // "USER_DATABASE" - A database that the user created. + Type string `json:"type,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DatabaseUrl") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DatabaseUrl") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DatabaseInstance) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseInstance + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DisableDatabaseInstanceRequest: The request sent to the +// DisableDatabaseInstance method. +type DisableDatabaseInstanceRequest struct { +} + +// ListDatabaseInstancesResponse: The response from the +// ListDatabaseInstances method. +type ListDatabaseInstancesResponse struct { + // Instances: List of each DatabaseInstance that is in the parent + // Firebase project. + Instances []*DatabaseInstance `json:"instances,omitempty"` + + // NextPageToken: If the result list is too large to fit in a single + // response, then a token is returned. If the string is empty, then this + // response is the last page of results. This token can be used in a + // subsequent call to `ListDatabaseInstances` to find the next group of + // database instances. Page tokens are short-lived and should not be + // persisted. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Instances") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Instances") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListDatabaseInstancesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListDatabaseInstancesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ReenableDatabaseInstanceRequest: The request sent to the +// ReenableDatabaseInstance method. +type ReenableDatabaseInstanceRequest struct { +} + +// method id "firebasedatabase.projects.locations.instances.create": + +type ProjectsLocationsInstancesCreateCall struct { + s *Service + parent string + databaseinstance *DatabaseInstance + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Requests that a new DatabaseInstance be created. The state of +// a successfully created DatabaseInstance is ACTIVE. Only available for +// projects on the Blaze plan. Projects can be upgraded using the Cloud +// Billing API +// https://cloud.google.com/billing/reference/rest/v1/projects/updateBillingInfo. Note that it might take a few minutes for billing enablement state to propagate to Firebase +// systems. +func (r *ProjectsLocationsInstancesService) Create(parent string, databaseinstance *DatabaseInstance) *ProjectsLocationsInstancesCreateCall { + c := &ProjectsLocationsInstancesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.databaseinstance = databaseinstance + return c +} + +// DatabaseId sets the optional parameter "databaseId": The globally +// unique identifier of the database instance. +func (c *ProjectsLocationsInstancesCreateCall) DatabaseId(databaseId string) *ProjectsLocationsInstancesCreateCall { + c.urlParams_.Set("databaseId", databaseId) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": When set to +// true, the request will be validated but not submitted. +func (c *ProjectsLocationsInstancesCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsInstancesCreateCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesCreateCall) Context(ctx context.Context) *ProjectsLocationsInstancesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.databaseinstance) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/instances") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebasedatabase.projects.locations.instances.create" call. +// Exactly one of *DatabaseInstance or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *DatabaseInstance.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesCreateCall) Do(opts ...googleapi.CallOption) (*DatabaseInstance, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &DatabaseInstance{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Requests that a new DatabaseInstance be created. The state of a successfully created DatabaseInstance is ACTIVE. Only available for projects on the Blaze plan. Projects can be upgraded using the Cloud Billing API https://cloud.google.com/billing/reference/rest/v1/projects/updateBillingInfo. Note that it might take a few minutes for billing enablement state to propagate to Firebase systems.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/instances", + // "httpMethod": "POST", + // "id": "firebasedatabase.projects.locations.instances.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "databaseId": { + // "description": "The globally unique identifier of the database instance.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "The parent project for which to create a database instance, in the form: `projects/{project-number}/locations/{location-id}`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "validateOnly": { + // "description": "When set to true, the request will be validated but not submitted.", + // "location": "query", + // "type": "boolean" + // } + // }, + // "path": "v1beta/{+parent}/instances", + // "request": { + // "$ref": "DatabaseInstance" + // }, + // "response": { + // "$ref": "DatabaseInstance" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "firebasedatabase.projects.locations.instances.delete": + +type ProjectsLocationsInstancesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Marks a DatabaseInstance to be deleted. The DatabaseInstance +// will be purged within 30 days. The default database cannot be +// deleted. IDs for deleted database instances may never be recovered or +// re-used. The Database may only be deleted if it is already in a +// DISABLED state. +func (r *ProjectsLocationsInstancesService) Delete(name string) *ProjectsLocationsInstancesDeleteCall { + c := &ProjectsLocationsInstancesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesDeleteCall) Context(ctx context.Context) *ProjectsLocationsInstancesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebasedatabase.projects.locations.instances.delete" call. +// Exactly one of *DatabaseInstance or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *DatabaseInstance.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*DatabaseInstance, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &DatabaseInstance{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Marks a DatabaseInstance to be deleted. The DatabaseInstance will be purged within 30 days. The default database cannot be deleted. IDs for deleted database instances may never be recovered or re-used. The Database may only be deleted if it is already in a DISABLED state.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}", + // "httpMethod": "DELETE", + // "id": "firebasedatabase.projects.locations.instances.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+name}", + // "response": { + // "$ref": "DatabaseInstance" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "firebasedatabase.projects.locations.instances.disable": + +type ProjectsLocationsInstancesDisableCall struct { + s *Service + name string + disabledatabaseinstancerequest *DisableDatabaseInstanceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Disable: Disables a DatabaseInstance. The database can be re-enabled +// later using ReenableDatabaseInstance. When a database is disabled, +// all reads and writes are denied, including view access in the +// Firebase console. +func (r *ProjectsLocationsInstancesService) Disable(name string, disabledatabaseinstancerequest *DisableDatabaseInstanceRequest) *ProjectsLocationsInstancesDisableCall { + c := &ProjectsLocationsInstancesDisableCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.disabledatabaseinstancerequest = disabledatabaseinstancerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesDisableCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesDisableCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesDisableCall) Context(ctx context.Context) *ProjectsLocationsInstancesDisableCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesDisableCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesDisableCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.disabledatabaseinstancerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}:disable") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebasedatabase.projects.locations.instances.disable" call. +// Exactly one of *DatabaseInstance or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *DatabaseInstance.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesDisableCall) Do(opts ...googleapi.CallOption) (*DatabaseInstance, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &DatabaseInstance{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Disables a DatabaseInstance. The database can be re-enabled later using ReenableDatabaseInstance. When a database is disabled, all reads and writes are denied, including view access in the Firebase console.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:disable", + // "httpMethod": "POST", + // "id": "firebasedatabase.projects.locations.instances.disable", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+name}:disable", + // "request": { + // "$ref": "DisableDatabaseInstanceRequest" + // }, + // "response": { + // "$ref": "DatabaseInstance" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "firebasedatabase.projects.locations.instances.get": + +type ProjectsLocationsInstancesGetCall struct { + s *Service + nameid string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the DatabaseInstance identified by the specified resource +// name. +func (r *ProjectsLocationsInstancesService) Get(nameid string) *ProjectsLocationsInstancesGetCall { + c := &ProjectsLocationsInstancesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.nameid = nameid + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsInstancesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesGetCall) Context(ctx context.Context) *ProjectsLocationsInstancesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.nameid, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebasedatabase.projects.locations.instances.get" call. +// Exactly one of *DatabaseInstance or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *DatabaseInstance.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesGetCall) Do(opts ...googleapi.CallOption) (*DatabaseInstance, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &DatabaseInstance{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the DatabaseInstance identified by the specified resource name.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}", + // "httpMethod": "GET", + // "id": "firebasedatabase.projects.locations.instances.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`. `database-id` is a globally unique identifier across all parent collections. For convenience, this method allows you to supply `-` as a wildcard character in place of specific collections under `projects` and `locations`. The resulting wildcarding form of the method is: `projects/-/locations/-/instances/{database-id}`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+name}", + // "response": { + // "$ref": "DatabaseInstance" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/firebase", + // "https://www.googleapis.com/auth/firebase.readonly" + // ] + // } + +} + +// method id "firebasedatabase.projects.locations.instances.list": + +type ProjectsLocationsInstancesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists each DatabaseInstance associated with the specified +// parent project. The list items are returned in no particular order, +// but will be a consistent view of the database instances when +// additional requests are made with a `pageToken`. The resulting list +// contains instances in any STATE. The list results may be stale by a +// few seconds. Use GetDatabaseInstance for consistent reads. +func (r *ProjectsLocationsInstancesService) List(parent string) *ProjectsLocationsInstancesListCall { + c := &ProjectsLocationsInstancesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of database instances to return in the response. The server may +// return fewer than this at its discretion. If no value is specified +// (or too large a value is specified), then the server will impose its +// own limit. +func (c *ProjectsLocationsInstancesListCall) PageSize(pageSize int64) *ProjectsLocationsInstancesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Token returned +// from a previous call to `ListDatabaseInstances` indicating where in +// the set of database instances to resume listing. +func (c *ProjectsLocationsInstancesListCall) PageToken(pageToken string) *ProjectsLocationsInstancesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsInstancesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesListCall) Context(ctx context.Context) *ProjectsLocationsInstancesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/instances") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebasedatabase.projects.locations.instances.list" call. +// Exactly one of *ListDatabaseInstancesResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListDatabaseInstancesResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesListCall) Do(opts ...googleapi.CallOption) (*ListDatabaseInstancesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListDatabaseInstancesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists each DatabaseInstance associated with the specified parent project. The list items are returned in no particular order, but will be a consistent view of the database instances when additional requests are made with a `pageToken`. The resulting list contains instances in any STATE. The list results may be stale by a few seconds. Use GetDatabaseInstance for consistent reads.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/instances", + // "httpMethod": "GET", + // "id": "firebasedatabase.projects.locations.instances.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of database instances to return in the response. The server may return fewer than this at its discretion. If no value is specified (or too large a value is specified), then the server will impose its own limit.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Token returned from a previous call to `ListDatabaseInstances` indicating where in the set of database instances to resume listing.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "The parent project for which to list database instances, in the form: `projects/{project-number}/locations/{location-id}` To list across all locations, use a parent in the form: `projects/{project-number}/locations/-`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+parent}/instances", + // "response": { + // "$ref": "ListDatabaseInstancesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/firebase", + // "https://www.googleapis.com/auth/firebase.readonly" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsInstancesListCall) Pages(ctx context.Context, f func(*ListDatabaseInstancesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "firebasedatabase.projects.locations.instances.reenable": + +type ProjectsLocationsInstancesReenableCall struct { + s *Service + name string + reenabledatabaseinstancerequest *ReenableDatabaseInstanceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Reenable: Enables a DatabaseInstance. The database must have been +// disabled previously using DisableDatabaseInstance. The state of a +// successfully reenabled DatabaseInstance is ACTIVE. +func (r *ProjectsLocationsInstancesService) Reenable(name string, reenabledatabaseinstancerequest *ReenableDatabaseInstanceRequest) *ProjectsLocationsInstancesReenableCall { + c := &ProjectsLocationsInstancesReenableCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.reenabledatabaseinstancerequest = reenabledatabaseinstancerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesReenableCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesReenableCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesReenableCall) Context(ctx context.Context) *ProjectsLocationsInstancesReenableCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesReenableCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesReenableCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.reenabledatabaseinstancerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}:reenable") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebasedatabase.projects.locations.instances.reenable" call. +// Exactly one of *DatabaseInstance or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *DatabaseInstance.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesReenableCall) Do(opts ...googleapi.CallOption) (*DatabaseInstance, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &DatabaseInstance{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Enables a DatabaseInstance. The database must have been disabled previously using DisableDatabaseInstance. The state of a successfully reenabled DatabaseInstance is ACTIVE.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:reenable", + // "httpMethod": "POST", + // "id": "firebasedatabase.projects.locations.instances.reenable", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+name}:reenable", + // "request": { + // "$ref": "ReenableDatabaseInstanceRequest" + // }, + // "response": { + // "$ref": "DatabaseInstance" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} diff --git a/firebasedynamiclinks/v1/firebasedynamiclinks-gen.go b/firebasedynamiclinks/v1/firebasedynamiclinks-gen.go index 9c3da55f589..896240ca6cb 100644 --- a/firebasedynamiclinks/v1/firebasedynamiclinks-gen.go +++ b/firebasedynamiclinks/v1/firebasedynamiclinks-gen.go @@ -1430,7 +1430,7 @@ func (c *ManagedShortLinksCreateCall) Header() http.Header { func (c *ManagedShortLinksCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1561,7 +1561,7 @@ func (c *ShortLinksCreateCall) Header() http.Header { func (c *ShortLinksCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1713,7 +1713,7 @@ func (c *V1GetLinkStatsCall) Header() http.Header { func (c *V1GetLinkStatsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1857,7 +1857,7 @@ func (c *V1InstallAttributionCall) Header() http.Header { func (c *V1InstallAttributionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1984,7 +1984,7 @@ func (c *V1ReopenAttributionCall) Header() http.Header { func (c *V1ReopenAttributionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/firebasehosting/v1/firebasehosting-gen.go b/firebasehosting/v1/firebasehosting-gen.go index 0f505f372cf..c3ffe307e5d 100644 --- a/firebasehosting/v1/firebasehosting-gen.go +++ b/firebasehosting/v1/firebasehosting-gen.go @@ -344,7 +344,7 @@ func (c *OperationsCancelCall) Header() http.Header { func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -482,7 +482,7 @@ func (c *OperationsDeleteCall) Header() http.Header { func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -650,7 +650,7 @@ func (c *OperationsListCall) Header() http.Header { func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/firebasehosting/v1beta1/firebasehosting-api.json b/firebasehosting/v1beta1/firebasehosting-api.json index bb62d057006..50ed8e280af 100644 --- a/firebasehosting/v1beta1/firebasehosting-api.json +++ b/firebasehosting/v1beta1/firebasehosting-api.json @@ -1777,7 +1777,7 @@ } } }, - "revision": "20200914", + "revision": "20201024", "rootUrl": "https://firebasehosting.googleapis.com/", "schemas": { "ActingUser": { @@ -2277,7 +2277,7 @@ "type": "object" }, "PreviewConfig": { - "description": "Version preview configuration. If active and unexpired, this version will be accessible via a custom URL even if it is not the currently released version.", + "description": "Version preview configuration. If active and unexpired, this version will be accessible via a custom URL even if it is not the currently released version. Deprecated in favor of site channels.", "id": "PreviewConfig", "properties": { "active": { @@ -2549,7 +2549,7 @@ }, "preview": { "$ref": "PreviewConfig", - "description": "Version preview configuration for the site version. This configuration specfies whether previewing is enabled for this site version. Version previews allow you to preview your site at a custom URL before releasing it as the live version." + "description": "Deprecated in favor of site channels. Version preview configuration for the site version. This configuration specifies whether previewing is enabled for this site version. Version previews allow you to preview your site at a custom URL before releasing it as the live version." }, "status": { "description": "The deploy status of a version. For a successful deploy, call the [`CreateVersion`](sites.versions/create) endpoint to make a new version (`CREATED` status), [upload all desired files](sites.versions/populateFiles) to the version, then [update](sites.versions/patch) the version to the `FINALIZED` status. Note that if you leave the version in the `CREATED` state for more than 12 hours, the system will automatically mark the version as `ABANDONED`. You can also change the status of a version to `DELETED` by calling the [`DeleteVersion`](sites.versions/delete) endpoint.", diff --git a/firebasehosting/v1beta1/firebasehosting-gen.go b/firebasehosting/v1beta1/firebasehosting-gen.go index 6d3770969db..839f123d12b 100644 --- a/firebasehosting/v1beta1/firebasehosting-gen.go +++ b/firebasehosting/v1beta1/firebasehosting-gen.go @@ -1201,7 +1201,8 @@ func (s *PopulateVersionFilesResponse) MarshalJSON() ([]byte, error) { // PreviewConfig: Version preview configuration. If active and // unexpired, this version will be accessible via a custom URL even if -// it is not the currently released version. +// it is not the currently released version. Deprecated in favor of site +// channels. type PreviewConfig struct { // Active: If true, preview URLs are enabled for this version. Active bool `json:"active,omitempty"` @@ -1606,10 +1607,11 @@ type Version struct { // [`CreateVersion`](../sites.versions/create) endpoint. Name string `json:"name,omitempty"` - // Preview: Version preview configuration for the site version. This - // configuration specfies whether previewing is enabled for this site - // version. Version previews allow you to preview your site at a custom - // URL before releasing it as the live version. + // Preview: Deprecated in favor of site channels. Version preview + // configuration for the site version. This configuration specifies + // whether previewing is enabled for this site version. Version previews + // allow you to preview your site at a custom URL before releasing it as + // the live version. Preview *PreviewConfig `json:"preview,omitempty"` // Status: The deploy status of a version. For a successful deploy, call @@ -1770,7 +1772,7 @@ func (c *ProjectsOperationsGetCall) Header() http.Header { func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1917,7 +1919,7 @@ func (c *ProjectsSitesGetConfigCall) Header() http.Header { func (c *ProjectsSitesGetConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2065,7 +2067,7 @@ func (c *ProjectsSitesUpdateConfigCall) Header() http.Header { func (c *ProjectsSitesUpdateConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2219,7 +2221,7 @@ func (c *ProjectsSitesChannelsCreateCall) Header() http.Header { func (c *ProjectsSitesChannelsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2364,7 +2366,7 @@ func (c *ProjectsSitesChannelsDeleteCall) Header() http.Header { func (c *ProjectsSitesChannelsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2506,7 +2508,7 @@ func (c *ProjectsSitesChannelsGetCall) Header() http.Header { func (c *ProjectsSitesChannelsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2670,7 +2672,7 @@ func (c *ProjectsSitesChannelsListCall) Header() http.Header { func (c *ProjectsSitesChannelsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2848,7 +2850,7 @@ func (c *ProjectsSitesChannelsPatchCall) Header() http.Header { func (c *ProjectsSitesChannelsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3007,7 +3009,7 @@ func (c *ProjectsSitesChannelsReleasesCreateCall) Header() http.Header { func (c *ProjectsSitesChannelsReleasesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3177,7 +3179,7 @@ func (c *ProjectsSitesChannelsReleasesListCall) Header() http.Header { func (c *ProjectsSitesChannelsReleasesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3347,7 +3349,7 @@ func (c *ProjectsSitesDomainsCreateCall) Header() http.Header { func (c *ProjectsSitesDomainsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3486,7 +3488,7 @@ func (c *ProjectsSitesDomainsDeleteCall) Header() http.Header { func (c *ProjectsSitesDomainsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3628,7 +3630,7 @@ func (c *ProjectsSitesDomainsGetCall) Header() http.Header { func (c *ProjectsSitesDomainsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3789,7 +3791,7 @@ func (c *ProjectsSitesDomainsListCall) Header() http.Header { func (c *ProjectsSitesDomainsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3960,7 +3962,7 @@ func (c *ProjectsSitesDomainsUpdateCall) Header() http.Header { func (c *ProjectsSitesDomainsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4113,7 +4115,7 @@ func (c *ProjectsSitesReleasesCreateCall) Header() http.Header { func (c *ProjectsSitesReleasesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4283,7 +4285,7 @@ func (c *ProjectsSitesReleasesListCall) Header() http.Header { func (c *ProjectsSitesReleasesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4454,7 +4456,7 @@ func (c *ProjectsSitesVersionsCloneCall) Header() http.Header { func (c *ProjectsSitesVersionsCloneCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4611,7 +4613,7 @@ func (c *ProjectsSitesVersionsCreateCall) Header() http.Header { func (c *ProjectsSitesVersionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4761,7 +4763,7 @@ func (c *ProjectsSitesVersionsDeleteCall) Header() http.Header { func (c *ProjectsSitesVersionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4929,7 +4931,7 @@ func (c *ProjectsSitesVersionsListCall) Header() http.Header { func (c *ProjectsSitesVersionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5119,7 +5121,7 @@ func (c *ProjectsSitesVersionsPatchCall) Header() http.Header { func (c *ProjectsSitesVersionsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5267,7 +5269,7 @@ func (c *ProjectsSitesVersionsPopulateFilesCall) Header() http.Header { func (c *ProjectsSitesVersionsPopulateFilesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5448,7 +5450,7 @@ func (c *ProjectsSitesVersionsFilesListCall) Header() http.Header { func (c *ProjectsSitesVersionsFilesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5642,7 +5644,7 @@ func (c *SitesGetConfigCall) Header() http.Header { func (c *SitesGetConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5790,7 +5792,7 @@ func (c *SitesUpdateConfigCall) Header() http.Header { func (c *SitesUpdateConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5944,7 +5946,7 @@ func (c *SitesChannelsCreateCall) Header() http.Header { func (c *SitesChannelsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6089,7 +6091,7 @@ func (c *SitesChannelsDeleteCall) Header() http.Header { func (c *SitesChannelsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6231,7 +6233,7 @@ func (c *SitesChannelsGetCall) Header() http.Header { func (c *SitesChannelsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6395,7 +6397,7 @@ func (c *SitesChannelsListCall) Header() http.Header { func (c *SitesChannelsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6573,7 +6575,7 @@ func (c *SitesChannelsPatchCall) Header() http.Header { func (c *SitesChannelsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6732,7 +6734,7 @@ func (c *SitesChannelsReleasesCreateCall) Header() http.Header { func (c *SitesChannelsReleasesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6902,7 +6904,7 @@ func (c *SitesChannelsReleasesListCall) Header() http.Header { func (c *SitesChannelsReleasesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7072,7 +7074,7 @@ func (c *SitesDomainsCreateCall) Header() http.Header { func (c *SitesDomainsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7211,7 +7213,7 @@ func (c *SitesDomainsDeleteCall) Header() http.Header { func (c *SitesDomainsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7353,7 +7355,7 @@ func (c *SitesDomainsGetCall) Header() http.Header { func (c *SitesDomainsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7514,7 +7516,7 @@ func (c *SitesDomainsListCall) Header() http.Header { func (c *SitesDomainsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7685,7 +7687,7 @@ func (c *SitesDomainsUpdateCall) Header() http.Header { func (c *SitesDomainsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7838,7 +7840,7 @@ func (c *SitesReleasesCreateCall) Header() http.Header { func (c *SitesReleasesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8008,7 +8010,7 @@ func (c *SitesReleasesListCall) Header() http.Header { func (c *SitesReleasesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8179,7 +8181,7 @@ func (c *SitesVersionsCloneCall) Header() http.Header { func (c *SitesVersionsCloneCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8336,7 +8338,7 @@ func (c *SitesVersionsCreateCall) Header() http.Header { func (c *SitesVersionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8486,7 +8488,7 @@ func (c *SitesVersionsDeleteCall) Header() http.Header { func (c *SitesVersionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8654,7 +8656,7 @@ func (c *SitesVersionsListCall) Header() http.Header { func (c *SitesVersionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8844,7 +8846,7 @@ func (c *SitesVersionsPatchCall) Header() http.Header { func (c *SitesVersionsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8992,7 +8994,7 @@ func (c *SitesVersionsPopulateFilesCall) Header() http.Header { func (c *SitesVersionsPopulateFilesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9173,7 +9175,7 @@ func (c *SitesVersionsFilesListCall) Header() http.Header { func (c *SitesVersionsFilesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/firebaseml/v1/firebaseml-gen.go b/firebaseml/v1/firebaseml-gen.go index 4c46f9ca604..d69ddc5a43a 100644 --- a/firebaseml/v1/firebaseml-gen.go +++ b/firebaseml/v1/firebaseml-gen.go @@ -395,7 +395,7 @@ func (c *OperationsCancelCall) Header() http.Header { func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -536,7 +536,7 @@ func (c *OperationsDeleteCall) Header() http.Header { func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -707,7 +707,7 @@ func (c *OperationsListCall) Header() http.Header { func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/firebaseml/v1beta2/firebaseml-gen.go b/firebaseml/v1beta2/firebaseml-gen.go index 7b8ac2b345f..538731ea929 100644 --- a/firebaseml/v1beta2/firebaseml-gen.go +++ b/firebaseml/v1beta2/firebaseml-gen.go @@ -558,7 +558,7 @@ func (c *ProjectsModelsCreateCall) Header() http.Header { func (c *ProjectsModelsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -696,7 +696,7 @@ func (c *ProjectsModelsDeleteCall) Header() http.Header { func (c *ProjectsModelsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -837,7 +837,7 @@ func (c *ProjectsModelsGetCall) Header() http.Header { func (c *ProjectsModelsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1002,7 +1002,7 @@ func (c *ProjectsModelsListCall) Header() http.Header { func (c *ProjectsModelsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1181,7 +1181,7 @@ func (c *ProjectsModelsPatchCall) Header() http.Header { func (c *ProjectsModelsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1338,7 +1338,7 @@ func (c *ProjectsOperationsGetCall) Header() http.Header { func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/firebaserules/v1/firebaserules-gen.go b/firebaserules/v1/firebaserules-gen.go index 122898f683f..8d61b9d1fdf 100644 --- a/firebaserules/v1/firebaserules-gen.go +++ b/firebaserules/v1/firebaserules-gen.go @@ -1201,7 +1201,7 @@ func (c *ProjectsTestCall) Header() http.Header { func (c *ProjectsTestCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1358,7 +1358,7 @@ func (c *ProjectsReleasesCreateCall) Header() http.Header { func (c *ProjectsReleasesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1497,7 +1497,7 @@ func (c *ProjectsReleasesDeleteCall) Header() http.Header { func (c *ProjectsReleasesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1639,7 +1639,7 @@ func (c *ProjectsReleasesGetCall) Header() http.Header { func (c *ProjectsReleasesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1802,7 +1802,7 @@ func (c *ProjectsReleasesGetExecutableCall) Header() http.Header { func (c *ProjectsReleasesGetExecutableCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2006,7 +2006,7 @@ func (c *ProjectsReleasesListCall) Header() http.Header { func (c *ProjectsReleasesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2183,7 +2183,7 @@ func (c *ProjectsReleasesPatchCall) Header() http.Header { func (c *ProjectsReleasesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2328,7 +2328,7 @@ func (c *ProjectsRulesetsCreateCall) Header() http.Header { func (c *ProjectsRulesetsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2468,7 +2468,7 @@ func (c *ProjectsRulesetsDeleteCall) Header() http.Header { func (c *ProjectsRulesetsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2610,7 +2610,7 @@ func (c *ProjectsRulesetsGetCall) Header() http.Header { func (c *ProjectsRulesetsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2785,7 +2785,7 @@ func (c *ProjectsRulesetsListCall) Header() http.Header { func (c *ProjectsRulesetsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/firestore/v1/firestore-api.json b/firestore/v1/firestore-api.json index 7f08e3de92c..f77566e05e4 100644 --- a/firestore/v1/firestore-api.json +++ b/firestore/v1/firestore-api.json @@ -1160,7 +1160,7 @@ } } }, - "revision": "20200912", + "revision": "20201016", "rootUrl": "https://firestore.googleapis.com/", "schemas": { "ArrayValue": { @@ -2235,7 +2235,7 @@ "type": "object" }, "LatLng": { - "description": "An object representing a latitude/longitude pair. This is expressed as a pair of doubles representing degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. Values must be within normalized ranges.", + "description": "An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. Values must be within normalized ranges.", "id": "LatLng", "properties": { "latitude": { diff --git a/firestore/v1/firestore-gen.go b/firestore/v1/firestore-gen.go index 2c9d3d27336..3f3a36c3220 100644 --- a/firestore/v1/firestore-gen.go +++ b/firestore/v1/firestore-gen.go @@ -2095,8 +2095,8 @@ func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// LatLng: An object representing a latitude/longitude pair. This is -// expressed as a pair of doubles representing degrees latitude and +// LatLng: An object that represents a latitude/longitude pair. This is +// expressed as a pair of doubles to represent degrees latitude and // degrees longitude. Unless specified otherwise, this must conform to // the WGS84 standard. Values must be within normalized ranges. type LatLng struct { @@ -3496,7 +3496,7 @@ func (c *ProjectsDatabasesExportDocumentsCall) Header() http.Header { func (c *ProjectsDatabasesExportDocumentsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3642,7 +3642,7 @@ func (c *ProjectsDatabasesImportDocumentsCall) Header() http.Header { func (c *ProjectsDatabasesImportDocumentsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3792,7 +3792,7 @@ func (c *ProjectsDatabasesCollectionGroupsFieldsGetCall) Header() http.Header { func (c *ProjectsDatabasesCollectionGroupsFieldsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3966,7 +3966,7 @@ func (c *ProjectsDatabasesCollectionGroupsFieldsListCall) Header() http.Header { func (c *ProjectsDatabasesCollectionGroupsFieldsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4160,7 +4160,7 @@ func (c *ProjectsDatabasesCollectionGroupsFieldsPatchCall) Header() http.Header func (c *ProjectsDatabasesCollectionGroupsFieldsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4310,7 +4310,7 @@ func (c *ProjectsDatabasesCollectionGroupsIndexesCreateCall) Header() http.Heade func (c *ProjectsDatabasesCollectionGroupsIndexesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4449,7 +4449,7 @@ func (c *ProjectsDatabasesCollectionGroupsIndexesDeleteCall) Header() http.Heade func (c *ProjectsDatabasesCollectionGroupsIndexesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4591,7 +4591,7 @@ func (c *ProjectsDatabasesCollectionGroupsIndexesGetCall) Header() http.Header { func (c *ProjectsDatabasesCollectionGroupsIndexesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4758,7 +4758,7 @@ func (c *ProjectsDatabasesCollectionGroupsIndexesListCall) Header() http.Header func (c *ProjectsDatabasesCollectionGroupsIndexesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4935,7 +4935,7 @@ func (c *ProjectsDatabasesDocumentsBatchGetCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsBatchGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5081,7 +5081,7 @@ func (c *ProjectsDatabasesDocumentsBatchWriteCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsBatchWriteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5222,7 +5222,7 @@ func (c *ProjectsDatabasesDocumentsBeginTransactionCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsBeginTransactionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5363,7 +5363,7 @@ func (c *ProjectsDatabasesDocumentsCommitCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsCommitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5522,7 +5522,7 @@ func (c *ProjectsDatabasesDocumentsCreateDocumentCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsCreateDocumentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5696,7 +5696,7 @@ func (c *ProjectsDatabasesDocumentsDeleteCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5872,7 +5872,7 @@ func (c *ProjectsDatabasesDocumentsGetCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6092,7 +6092,7 @@ func (c *ProjectsDatabasesDocumentsListCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6297,7 +6297,7 @@ func (c *ProjectsDatabasesDocumentsListCollectionIdsCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsListCollectionIdsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6459,7 +6459,7 @@ func (c *ProjectsDatabasesDocumentsListenCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsListenCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6603,7 +6603,7 @@ func (c *ProjectsDatabasesDocumentsPartitionQueryCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsPartitionQueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6797,7 +6797,7 @@ func (c *ProjectsDatabasesDocumentsPatchCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6961,7 +6961,7 @@ func (c *ProjectsDatabasesDocumentsRollbackCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsRollbackCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7102,7 +7102,7 @@ func (c *ProjectsDatabasesDocumentsRunQueryCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsRunQueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7243,7 +7243,7 @@ func (c *ProjectsDatabasesDocumentsWriteCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsWriteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7393,7 +7393,7 @@ func (c *ProjectsDatabasesOperationsCancelCall) Header() http.Header { func (c *ProjectsDatabasesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7535,7 +7535,7 @@ func (c *ProjectsDatabasesOperationsDeleteCall) Header() http.Header { func (c *ProjectsDatabasesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7679,7 +7679,7 @@ func (c *ProjectsDatabasesOperationsGetCall) Header() http.Header { func (c *ProjectsDatabasesOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7854,7 +7854,7 @@ func (c *ProjectsDatabasesOperationsListCall) Header() http.Header { func (c *ProjectsDatabasesOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8037,7 +8037,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8204,7 +8204,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/firestore/v1beta1/firestore-api.json b/firestore/v1beta1/firestore-api.json index cf0449a2619..88aafc5e4b0 100644 --- a/firestore/v1beta1/firestore-api.json +++ b/firestore/v1beta1/firestore-api.json @@ -849,7 +849,7 @@ } } }, - "revision": "20200912", + "revision": "20201017", "rootUrl": "https://firestore.googleapis.com/", "schemas": { "ArrayValue": { @@ -1724,7 +1724,7 @@ "type": "object" }, "LatLng": { - "description": "An object representing a latitude/longitude pair. This is expressed as a pair of doubles representing degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. Values must be within normalized ranges.", + "description": "An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. Values must be within normalized ranges.", "id": "LatLng", "properties": { "latitude": { diff --git a/firestore/v1beta1/firestore-gen.go b/firestore/v1beta1/firestore-gen.go index d905cae6221..f0a45e97245 100644 --- a/firestore/v1beta1/firestore-gen.go +++ b/firestore/v1beta1/firestore-gen.go @@ -1709,8 +1709,8 @@ func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// LatLng: An object representing a latitude/longitude pair. This is -// expressed as a pair of doubles representing degrees latitude and +// LatLng: An object that represents a latitude/longitude pair. This is +// expressed as a pair of doubles to represent degrees latitude and // degrees longitude. Unless specified otherwise, this must conform to // the WGS84 standard. Values must be within normalized ranges. type LatLng struct { @@ -3023,7 +3023,7 @@ func (c *ProjectsDatabasesExportDocumentsCall) Header() http.Header { func (c *ProjectsDatabasesExportDocumentsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3169,7 +3169,7 @@ func (c *ProjectsDatabasesImportDocumentsCall) Header() http.Header { func (c *ProjectsDatabasesImportDocumentsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3312,7 +3312,7 @@ func (c *ProjectsDatabasesDocumentsBatchGetCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsBatchGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3458,7 +3458,7 @@ func (c *ProjectsDatabasesDocumentsBatchWriteCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsBatchWriteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3599,7 +3599,7 @@ func (c *ProjectsDatabasesDocumentsBeginTransactionCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsBeginTransactionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3740,7 +3740,7 @@ func (c *ProjectsDatabasesDocumentsCommitCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsCommitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3899,7 +3899,7 @@ func (c *ProjectsDatabasesDocumentsCreateDocumentCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsCreateDocumentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4073,7 +4073,7 @@ func (c *ProjectsDatabasesDocumentsDeleteCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4249,7 +4249,7 @@ func (c *ProjectsDatabasesDocumentsGetCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4469,7 +4469,7 @@ func (c *ProjectsDatabasesDocumentsListCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4674,7 +4674,7 @@ func (c *ProjectsDatabasesDocumentsListCollectionIdsCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsListCollectionIdsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4836,7 +4836,7 @@ func (c *ProjectsDatabasesDocumentsListenCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsListenCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4980,7 +4980,7 @@ func (c *ProjectsDatabasesDocumentsPartitionQueryCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsPartitionQueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5174,7 +5174,7 @@ func (c *ProjectsDatabasesDocumentsPatchCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5338,7 +5338,7 @@ func (c *ProjectsDatabasesDocumentsRollbackCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsRollbackCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5479,7 +5479,7 @@ func (c *ProjectsDatabasesDocumentsRunQueryCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsRunQueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5620,7 +5620,7 @@ func (c *ProjectsDatabasesDocumentsWriteCall) Header() http.Header { func (c *ProjectsDatabasesDocumentsWriteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5769,7 +5769,7 @@ func (c *ProjectsDatabasesIndexesCreateCall) Header() http.Header { func (c *ProjectsDatabasesIndexesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5908,7 +5908,7 @@ func (c *ProjectsDatabasesIndexesDeleteCall) Header() http.Header { func (c *ProjectsDatabasesIndexesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6050,7 +6050,7 @@ func (c *ProjectsDatabasesIndexesGetCall) Header() http.Header { func (c *ProjectsDatabasesIndexesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6215,7 +6215,7 @@ func (c *ProjectsDatabasesIndexesListCall) Header() http.Header { func (c *ProjectsDatabasesIndexesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201110") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/firestore/v1beta2/firestore-gen.go b/firestore/v1beta2/firestore-gen.go index 3e2fff586f5..1d347ba3245 100644 --- a/firestore/v1beta2/firestore-gen.go +++ b/firestore/v1beta2/firestore-gen.go @@ -1130,7 +1130,7 @@ func (c *ProjectsDatabasesExportDocumentsCall) Header() http.Header { func (c *ProjectsDatabasesExportDocumentsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1276,7 +1276,7 @@ func (c *ProjectsDatabasesImportDocumentsCall) Header() http.Header { func (c *ProjectsDatabasesImportDocumentsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1426,7 +1426,7 @@ func (c *ProjectsDatabasesCollectionGroupsFieldsGetCall) Header() http.Header { func (c *ProjectsDatabasesCollectionGroupsFieldsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1600,7 +1600,7 @@ func (c *ProjectsDatabasesCollectionGroupsFieldsListCall) Header() http.Header { func (c *ProjectsDatabasesCollectionGroupsFieldsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1794,7 +1794,7 @@ func (c *ProjectsDatabasesCollectionGroupsFieldsPatchCall) Header() http.Header func (c *ProjectsDatabasesCollectionGroupsFieldsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1944,7 +1944,7 @@ func (c *ProjectsDatabasesCollectionGroupsIndexesCreateCall) Header() http.Heade func (c *ProjectsDatabasesCollectionGroupsIndexesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2083,7 +2083,7 @@ func (c *ProjectsDatabasesCollectionGroupsIndexesDeleteCall) Header() http.Heade func (c *ProjectsDatabasesCollectionGroupsIndexesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2225,7 +2225,7 @@ func (c *ProjectsDatabasesCollectionGroupsIndexesGetCall) Header() http.Header { func (c *ProjectsDatabasesCollectionGroupsIndexesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2392,7 +2392,7 @@ func (c *ProjectsDatabasesCollectionGroupsIndexesListCall) Header() http.Header func (c *ProjectsDatabasesCollectionGroupsIndexesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/fitness/v1/fitness-gen.go b/fitness/v1/fitness-gen.go index 07fbe8ee544..74a1519881d 100644 --- a/fitness/v1/fitness-gen.go +++ b/fitness/v1/fitness-gen.go @@ -1502,7 +1502,7 @@ func (c *UsersDataSourcesCreateCall) Header() http.Header { func (c *UsersDataSourcesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1652,7 +1652,7 @@ func (c *UsersDataSourcesDeleteCall) Header() http.Header { func (c *UsersDataSourcesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1812,7 +1812,7 @@ func (c *UsersDataSourcesGetCall) Header() http.Header { func (c *UsersDataSourcesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1995,7 +1995,7 @@ func (c *UsersDataSourcesListCall) Header() http.Header { func (c *UsersDataSourcesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2161,7 +2161,7 @@ func (c *UsersDataSourcesUpdateCall) Header() http.Header { func (c *UsersDataSourcesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2346,7 +2346,7 @@ func (c *UsersDataSourcesDataPointChangesListCall) Header() http.Header { func (c *UsersDataSourcesDataPointChangesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2563,7 +2563,7 @@ func (c *UsersDataSourcesDatasetsDeleteCall) Header() http.Header { func (c *UsersDataSourcesDatasetsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2743,7 +2743,7 @@ func (c *UsersDataSourcesDatasetsGetCall) Header() http.Header { func (c *UsersDataSourcesDatasetsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2963,7 +2963,7 @@ func (c *UsersDataSourcesDatasetsPatchCall) Header() http.Header { func (c *UsersDataSourcesDatasetsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3158,7 +3158,7 @@ func (c *UsersDatasetAggregateCall) Header() http.Header { func (c *UsersDatasetAggregateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3325,7 +3325,7 @@ func (c *UsersSessionsDeleteCall) Header() http.Header { func (c *UsersSessionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3503,7 +3503,7 @@ func (c *UsersSessionsListCall) Header() http.Header { func (c *UsersSessionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3715,7 +3715,7 @@ func (c *UsersSessionsUpdateCall) Header() http.Header { func (c *UsersSessionsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/games/v1/games-gen.go b/games/v1/games-gen.go index 2ed353f485d..110dccd586d 100644 --- a/games/v1/games-gen.go +++ b/games/v1/games-gen.go @@ -3523,7 +3523,7 @@ func (c *AchievementDefinitionsListCall) Header() http.Header { func (c *AchievementDefinitionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3693,7 +3693,7 @@ func (c *AchievementsIncrementCall) Header() http.Header { func (c *AchievementsIncrementCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3885,7 +3885,7 @@ func (c *AchievementsListCall) Header() http.Header { func (c *AchievementsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4072,7 +4072,7 @@ func (c *AchievementsRevealCall) Header() http.Header { func (c *AchievementsRevealCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4205,7 +4205,7 @@ func (c *AchievementsSetStepsAtLeastCall) Header() http.Header { func (c *AchievementsSetStepsAtLeastCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4344,7 +4344,7 @@ func (c *AchievementsUnlockCall) Header() http.Header { func (c *AchievementsUnlockCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4474,7 +4474,7 @@ func (c *AchievementsUpdateMultipleCall) Header() http.Header { func (c *AchievementsUpdateMultipleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4635,7 +4635,7 @@ func (c *ApplicationsGetCall) Header() http.Header { func (c *ApplicationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4788,7 +4788,7 @@ func (c *ApplicationsPlayedCall) Header() http.Header { func (c *ApplicationsPlayedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4890,7 +4890,7 @@ func (c *ApplicationsVerifyCall) Header() http.Header { func (c *ApplicationsVerifyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5055,7 +5055,7 @@ func (c *EventsListByPlayerCall) Header() http.Header { func (c *EventsListByPlayerCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5246,7 +5246,7 @@ func (c *EventsListDefinitionsCall) Header() http.Header { func (c *EventsListDefinitionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5412,7 +5412,7 @@ func (c *EventsRecordCall) Header() http.Header { func (c *EventsRecordCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5561,7 +5561,7 @@ func (c *LeaderboardsGetCall) Header() http.Header { func (c *LeaderboardsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5730,7 +5730,7 @@ func (c *LeaderboardsListCall) Header() http.Header { func (c *LeaderboardsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5898,7 +5898,7 @@ func (c *MetagameGetMetagameConfigCall) Header() http.Header { func (c *MetagameGetMetagameConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6055,7 +6055,7 @@ func (c *MetagameListCategoriesByPlayerCall) Header() http.Header { func (c *MetagameListCategoriesByPlayerCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6259,7 +6259,7 @@ func (c *PlayersGetCall) Header() http.Header { func (c *PlayersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6431,7 +6431,7 @@ func (c *PlayersListCall) Header() http.Header { func (c *PlayersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6620,7 +6620,7 @@ func (c *RevisionsCheckCall) Header() http.Header { func (c *RevisionsCheckCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6809,7 +6809,7 @@ func (c *ScoresGetCall) Header() http.Header { func (c *ScoresGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7065,7 +7065,7 @@ func (c *ScoresListCall) Header() http.Header { func (c *ScoresListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7329,7 +7329,7 @@ func (c *ScoresListWindowCall) Header() http.Header { func (c *ScoresListWindowCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7565,7 +7565,7 @@ func (c *ScoresSubmitCall) Header() http.Header { func (c *ScoresSubmitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7720,7 +7720,7 @@ func (c *ScoresSubmitMultipleCall) Header() http.Header { func (c *ScoresSubmitMultipleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7869,7 +7869,7 @@ func (c *SnapshotsGetCall) Header() http.Header { func (c *SnapshotsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8042,7 +8042,7 @@ func (c *SnapshotsListCall) Header() http.Header { func (c *SnapshotsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8216,7 +8216,7 @@ func (c *SnapshotsExtendedResolveSnapshotHeadCall) Header() http.Header { func (c *SnapshotsExtendedResolveSnapshotHeadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8364,7 +8364,7 @@ func (c *StatsGetCall) Header() http.Header { func (c *StatsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/gamesconfiguration/v1configuration/gamesconfiguration-gen.go b/gamesconfiguration/v1configuration/gamesconfiguration-gen.go index 639e970dd32..168b0c7a68c 100644 --- a/gamesconfiguration/v1configuration/gamesconfiguration-gen.go +++ b/gamesconfiguration/v1configuration/gamesconfiguration-gen.go @@ -721,7 +721,7 @@ func (c *AchievementConfigurationsDeleteCall) Header() http.Header { func (c *AchievementConfigurationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -834,7 +834,7 @@ func (c *AchievementConfigurationsGetCall) Header() http.Header { func (c *AchievementConfigurationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -968,7 +968,7 @@ func (c *AchievementConfigurationsInsertCall) Header() http.Header { func (c *AchievementConfigurationsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1133,7 +1133,7 @@ func (c *AchievementConfigurationsListCall) Header() http.Header { func (c *AchievementConfigurationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1301,7 +1301,7 @@ func (c *AchievementConfigurationsUpdateCall) Header() http.Header { func (c *AchievementConfigurationsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1481,7 +1481,7 @@ func (c *ImageConfigurationsUploadCall) Header() http.Header { func (c *ImageConfigurationsUploadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1669,7 +1669,7 @@ func (c *LeaderboardConfigurationsDeleteCall) Header() http.Header { func (c *LeaderboardConfigurationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1782,7 +1782,7 @@ func (c *LeaderboardConfigurationsGetCall) Header() http.Header { func (c *LeaderboardConfigurationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1916,7 +1916,7 @@ func (c *LeaderboardConfigurationsInsertCall) Header() http.Header { func (c *LeaderboardConfigurationsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2081,7 +2081,7 @@ func (c *LeaderboardConfigurationsListCall) Header() http.Header { func (c *LeaderboardConfigurationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2249,7 +2249,7 @@ func (c *LeaderboardConfigurationsUpdateCall) Header() http.Header { func (c *LeaderboardConfigurationsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/gameservices/v1/gameservices-api.json b/gameservices/v1/gameservices-api.json index 2b92b799f81..9e4f58bfee3 100644 --- a/gameservices/v1/gameservices-api.json +++ b/gameservices/v1/gameservices-api.json @@ -1312,7 +1312,7 @@ } } }, - "revision": "20201008", + "revision": "20201029", "rootUrl": "https://gameservices.googleapis.com/", "schemas": { "AuditConfig": { @@ -1402,7 +1402,6 @@ "id": "Binding", "properties": { "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", "type": "string" }, "condition": { @@ -1478,7 +1477,7 @@ "An approver (distinct from the requester) that has authorized this request. When used with IN, the condition indicates that one of the approvers associated with the request matches the specified principal, or is a member of the specified group. Approvers can only grant additional access, and are thus only used in a strictly positive context (e.g. ALLOW/IN or DENY/NOT_IN).", "What types of justifications have been supplied with this request. String values should match enum names from security.credentials.JustificationType, e.g. \"MANUAL_STRING\". It is not permitted to grant access based on the *absence* of a justification, so justification conditions can only be used in a \"positive\" context (e.g., ALLOW/IN or DENY/NOT_IN). Multiple justifications, e.g., a Buganizer ID and a manually-entered reason, are normal and supported.", "What type of credentials have been supplied with this request. String values should match enum names from security_loas_l2.CredentialsType - currently, only CREDS_TYPE_EMERGENCY is supported. It is not permitted to grant access based on the *absence* of a credentials type, so the conditions can only be used in a \"positive\" context (e.g., ALLOW/IN or DENY/NOT_IN).", - "EXPERIMENTAL -- DO NOT USE. " + "EXPERIMENTAL -- DO NOT USE. The conditions can only be used in a \"positive\" context (e.g., ALLOW/IN or DENY/NOT_IN)." ], "type": "string" }, diff --git a/gameservices/v1/gameservices-gen.go b/gameservices/v1/gameservices-gen.go index 54ba625d69f..f410a5becda 100644 --- a/gameservices/v1/gameservices-gen.go +++ b/gameservices/v1/gameservices-gen.go @@ -356,8 +356,6 @@ func (s *AuthorizationLoggingOptions) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. BindingId string `json:"bindingId,omitempty"` // Condition: The condition that is associated with this binding. If the @@ -524,7 +522,8 @@ type Condition struct { // access based on the *absence* of a credentials type, so the // conditions can only be used in a "positive" context (e.g., ALLOW/IN // or DENY/NOT_IN). - // "CREDS_ASSERTION" - EXPERIMENTAL -- DO NOT USE. + // "CREDS_ASSERTION" - EXPERIMENTAL -- DO NOT USE. The conditions can + // only be used in a "positive" context (e.g., ALLOW/IN or DENY/NOT_IN). Iam string `json:"iam,omitempty"` // Op: An operator to apply the subject with. @@ -2814,7 +2813,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2988,7 +2987,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3173,7 +3172,7 @@ func (c *ProjectsLocationsGameServerDeploymentsCreateCall) Header() http.Header func (c *ProjectsLocationsGameServerDeploymentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3316,7 +3315,7 @@ func (c *ProjectsLocationsGameServerDeploymentsDeleteCall) Header() http.Header func (c *ProjectsLocationsGameServerDeploymentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3451,7 +3450,7 @@ func (c *ProjectsLocationsGameServerDeploymentsFetchDeploymentStateCall) Header( func (c *ProjectsLocationsGameServerDeploymentsFetchDeploymentStateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3600,7 +3599,7 @@ func (c *ProjectsLocationsGameServerDeploymentsGetCall) Header() http.Header { func (c *ProjectsLocationsGameServerDeploymentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3761,7 +3760,7 @@ func (c *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall) Header() http.H func (c *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3911,7 +3910,7 @@ func (c *ProjectsLocationsGameServerDeploymentsGetRolloutCall) Header() http.Hea func (c *ProjectsLocationsGameServerDeploymentsGetRolloutCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4087,7 +4086,7 @@ func (c *ProjectsLocationsGameServerDeploymentsListCall) Header() http.Header { func (c *ProjectsLocationsGameServerDeploymentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4275,7 +4274,7 @@ func (c *ProjectsLocationsGameServerDeploymentsPatchCall) Header() http.Header { func (c *ProjectsLocationsGameServerDeploymentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4440,7 +4439,7 @@ func (c *ProjectsLocationsGameServerDeploymentsPreviewRolloutCall) Header() http func (c *ProjectsLocationsGameServerDeploymentsPreviewRolloutCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4596,7 +4595,7 @@ func (c *ProjectsLocationsGameServerDeploymentsSetIamPolicyCall) Header() http.H func (c *ProjectsLocationsGameServerDeploymentsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4741,7 +4740,7 @@ func (c *ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall) Header() func (c *ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4897,7 +4896,7 @@ func (c *ProjectsLocationsGameServerDeploymentsUpdateRolloutCall) Header() http. func (c *ProjectsLocationsGameServerDeploymentsUpdateRolloutCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5053,7 +5052,7 @@ func (c *ProjectsLocationsGameServerDeploymentsConfigsCreateCall) Header() http. func (c *ProjectsLocationsGameServerDeploymentsConfigsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5198,7 +5197,7 @@ func (c *ProjectsLocationsGameServerDeploymentsConfigsDeleteCall) Header() http. func (c *ProjectsLocationsGameServerDeploymentsConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5339,7 +5338,7 @@ func (c *ProjectsLocationsGameServerDeploymentsConfigsGetCall) Header() http.Hea func (c *ProjectsLocationsGameServerDeploymentsConfigsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5516,7 +5515,7 @@ func (c *ProjectsLocationsGameServerDeploymentsConfigsListCall) Header() http.He func (c *ProjectsLocationsGameServerDeploymentsConfigsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5702,7 +5701,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5843,7 +5842,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5986,7 +5985,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6160,7 +6159,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6339,7 +6338,7 @@ func (c *ProjectsLocationsRealmsCreateCall) Header() http.Header { func (c *ProjectsLocationsRealmsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6482,7 +6481,7 @@ func (c *ProjectsLocationsRealmsDeleteCall) Header() http.Header { func (c *ProjectsLocationsRealmsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6623,7 +6622,7 @@ func (c *ProjectsLocationsRealmsGetCall) Header() http.Header { func (c *ProjectsLocationsRealmsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6799,7 +6798,7 @@ func (c *ProjectsLocationsRealmsListCall) Header() http.Header { func (c *ProjectsLocationsRealmsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6985,7 +6984,7 @@ func (c *ProjectsLocationsRealmsPatchCall) Header() http.Header { func (c *ProjectsLocationsRealmsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7147,7 +7146,7 @@ func (c *ProjectsLocationsRealmsPreviewUpdateCall) Header() http.Header { func (c *ProjectsLocationsRealmsPreviewUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7308,7 +7307,7 @@ func (c *ProjectsLocationsRealmsGameServerClustersCreateCall) Header() http.Head func (c *ProjectsLocationsRealmsGameServerClustersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7451,7 +7450,7 @@ func (c *ProjectsLocationsRealmsGameServerClustersDeleteCall) Header() http.Head func (c *ProjectsLocationsRealmsGameServerClustersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7592,7 +7591,7 @@ func (c *ProjectsLocationsRealmsGameServerClustersGetCall) Header() http.Header func (c *ProjectsLocationsRealmsGameServerClustersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7768,7 +7767,7 @@ func (c *ProjectsLocationsRealmsGameServerClustersListCall) Header() http.Header func (c *ProjectsLocationsRealmsGameServerClustersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7955,7 +7954,7 @@ func (c *ProjectsLocationsRealmsGameServerClustersPatchCall) Header() http.Heade func (c *ProjectsLocationsRealmsGameServerClustersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8117,7 +8116,7 @@ func (c *ProjectsLocationsRealmsGameServerClustersPreviewCreateCall) Header() ht func (c *ProjectsLocationsRealmsGameServerClustersPreviewCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8274,7 +8273,7 @@ func (c *ProjectsLocationsRealmsGameServerClustersPreviewDeleteCall) Header() ht func (c *ProjectsLocationsRealmsGameServerClustersPreviewDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8430,7 +8429,7 @@ func (c *ProjectsLocationsRealmsGameServerClustersPreviewUpdateCall) Header() ht func (c *ProjectsLocationsRealmsGameServerClustersPreviewUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/gameservices/v1beta/gameservices-api.json b/gameservices/v1beta/gameservices-api.json index e80b876aae8..3ee82d8c426 100644 --- a/gameservices/v1beta/gameservices-api.json +++ b/gameservices/v1beta/gameservices-api.json @@ -1312,7 +1312,7 @@ } } }, - "revision": "20201008", + "revision": "20201029", "rootUrl": "https://gameservices.googleapis.com/", "schemas": { "AuditConfig": { @@ -1402,7 +1402,6 @@ "id": "Binding", "properties": { "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", "type": "string" }, "condition": { @@ -1478,7 +1477,7 @@ "An approver (distinct from the requester) that has authorized this request. When used with IN, the condition indicates that one of the approvers associated with the request matches the specified principal, or is a member of the specified group. Approvers can only grant additional access, and are thus only used in a strictly positive context (e.g. ALLOW/IN or DENY/NOT_IN).", "What types of justifications have been supplied with this request. String values should match enum names from security.credentials.JustificationType, e.g. \"MANUAL_STRING\". It is not permitted to grant access based on the *absence* of a justification, so justification conditions can only be used in a \"positive\" context (e.g., ALLOW/IN or DENY/NOT_IN). Multiple justifications, e.g., a Buganizer ID and a manually-entered reason, are normal and supported.", "What type of credentials have been supplied with this request. String values should match enum names from security_loas_l2.CredentialsType - currently, only CREDS_TYPE_EMERGENCY is supported. It is not permitted to grant access based on the *absence* of a credentials type, so the conditions can only be used in a \"positive\" context (e.g., ALLOW/IN or DENY/NOT_IN).", - "EXPERIMENTAL -- DO NOT USE. " + "EXPERIMENTAL -- DO NOT USE. The conditions can only be used in a \"positive\" context (e.g., ALLOW/IN or DENY/NOT_IN)." ], "type": "string" }, diff --git a/gameservices/v1beta/gameservices-gen.go b/gameservices/v1beta/gameservices-gen.go index 0446af64fad..cb0fe66ce76 100644 --- a/gameservices/v1beta/gameservices-gen.go +++ b/gameservices/v1beta/gameservices-gen.go @@ -356,8 +356,6 @@ func (s *AuthorizationLoggingOptions) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. BindingId string `json:"bindingId,omitempty"` // Condition: The condition that is associated with this binding. If the @@ -524,7 +522,8 @@ type Condition struct { // access based on the *absence* of a credentials type, so the // conditions can only be used in a "positive" context (e.g., ALLOW/IN // or DENY/NOT_IN). - // "CREDS_ASSERTION" - EXPERIMENTAL -- DO NOT USE. + // "CREDS_ASSERTION" - EXPERIMENTAL -- DO NOT USE. The conditions can + // only be used in a "positive" context (e.g., ALLOW/IN or DENY/NOT_IN). Iam string `json:"iam,omitempty"` // Op: An operator to apply the subject with. @@ -2814,7 +2813,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2988,7 +2987,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3173,7 +3172,7 @@ func (c *ProjectsLocationsGameServerDeploymentsCreateCall) Header() http.Header func (c *ProjectsLocationsGameServerDeploymentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3316,7 +3315,7 @@ func (c *ProjectsLocationsGameServerDeploymentsDeleteCall) Header() http.Header func (c *ProjectsLocationsGameServerDeploymentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3451,7 +3450,7 @@ func (c *ProjectsLocationsGameServerDeploymentsFetchDeploymentStateCall) Header( func (c *ProjectsLocationsGameServerDeploymentsFetchDeploymentStateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3600,7 +3599,7 @@ func (c *ProjectsLocationsGameServerDeploymentsGetCall) Header() http.Header { func (c *ProjectsLocationsGameServerDeploymentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3761,7 +3760,7 @@ func (c *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall) Header() http.H func (c *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3911,7 +3910,7 @@ func (c *ProjectsLocationsGameServerDeploymentsGetRolloutCall) Header() http.Hea func (c *ProjectsLocationsGameServerDeploymentsGetRolloutCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4087,7 +4086,7 @@ func (c *ProjectsLocationsGameServerDeploymentsListCall) Header() http.Header { func (c *ProjectsLocationsGameServerDeploymentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4275,7 +4274,7 @@ func (c *ProjectsLocationsGameServerDeploymentsPatchCall) Header() http.Header { func (c *ProjectsLocationsGameServerDeploymentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4440,7 +4439,7 @@ func (c *ProjectsLocationsGameServerDeploymentsPreviewRolloutCall) Header() http func (c *ProjectsLocationsGameServerDeploymentsPreviewRolloutCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4596,7 +4595,7 @@ func (c *ProjectsLocationsGameServerDeploymentsSetIamPolicyCall) Header() http.H func (c *ProjectsLocationsGameServerDeploymentsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4741,7 +4740,7 @@ func (c *ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall) Header() func (c *ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4897,7 +4896,7 @@ func (c *ProjectsLocationsGameServerDeploymentsUpdateRolloutCall) Header() http. func (c *ProjectsLocationsGameServerDeploymentsUpdateRolloutCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5053,7 +5052,7 @@ func (c *ProjectsLocationsGameServerDeploymentsConfigsCreateCall) Header() http. func (c *ProjectsLocationsGameServerDeploymentsConfigsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5198,7 +5197,7 @@ func (c *ProjectsLocationsGameServerDeploymentsConfigsDeleteCall) Header() http. func (c *ProjectsLocationsGameServerDeploymentsConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5339,7 +5338,7 @@ func (c *ProjectsLocationsGameServerDeploymentsConfigsGetCall) Header() http.Hea func (c *ProjectsLocationsGameServerDeploymentsConfigsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5516,7 +5515,7 @@ func (c *ProjectsLocationsGameServerDeploymentsConfigsListCall) Header() http.He func (c *ProjectsLocationsGameServerDeploymentsConfigsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5702,7 +5701,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5843,7 +5842,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5986,7 +5985,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6160,7 +6159,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6339,7 +6338,7 @@ func (c *ProjectsLocationsRealmsCreateCall) Header() http.Header { func (c *ProjectsLocationsRealmsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6482,7 +6481,7 @@ func (c *ProjectsLocationsRealmsDeleteCall) Header() http.Header { func (c *ProjectsLocationsRealmsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6623,7 +6622,7 @@ func (c *ProjectsLocationsRealmsGetCall) Header() http.Header { func (c *ProjectsLocationsRealmsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6799,7 +6798,7 @@ func (c *ProjectsLocationsRealmsListCall) Header() http.Header { func (c *ProjectsLocationsRealmsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6985,7 +6984,7 @@ func (c *ProjectsLocationsRealmsPatchCall) Header() http.Header { func (c *ProjectsLocationsRealmsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7147,7 +7146,7 @@ func (c *ProjectsLocationsRealmsPreviewUpdateCall) Header() http.Header { func (c *ProjectsLocationsRealmsPreviewUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7308,7 +7307,7 @@ func (c *ProjectsLocationsRealmsGameServerClustersCreateCall) Header() http.Head func (c *ProjectsLocationsRealmsGameServerClustersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7451,7 +7450,7 @@ func (c *ProjectsLocationsRealmsGameServerClustersDeleteCall) Header() http.Head func (c *ProjectsLocationsRealmsGameServerClustersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7592,7 +7591,7 @@ func (c *ProjectsLocationsRealmsGameServerClustersGetCall) Header() http.Header func (c *ProjectsLocationsRealmsGameServerClustersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7768,7 +7767,7 @@ func (c *ProjectsLocationsRealmsGameServerClustersListCall) Header() http.Header func (c *ProjectsLocationsRealmsGameServerClustersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7955,7 +7954,7 @@ func (c *ProjectsLocationsRealmsGameServerClustersPatchCall) Header() http.Heade func (c *ProjectsLocationsRealmsGameServerClustersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8117,7 +8116,7 @@ func (c *ProjectsLocationsRealmsGameServerClustersPreviewCreateCall) Header() ht func (c *ProjectsLocationsRealmsGameServerClustersPreviewCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8274,7 +8273,7 @@ func (c *ProjectsLocationsRealmsGameServerClustersPreviewDeleteCall) Header() ht func (c *ProjectsLocationsRealmsGameServerClustersPreviewDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8430,7 +8429,7 @@ func (c *ProjectsLocationsRealmsGameServerClustersPreviewUpdateCall) Header() ht func (c *ProjectsLocationsRealmsGameServerClustersPreviewUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/gamesmanagement/v1management/gamesmanagement-gen.go b/gamesmanagement/v1management/gamesmanagement-gen.go index c8f10a236d3..1f0cedcd851 100644 --- a/gamesmanagement/v1management/gamesmanagement-gen.go +++ b/gamesmanagement/v1management/gamesmanagement-gen.go @@ -783,7 +783,7 @@ func (c *AchievementsResetCall) Header() http.Header { func (c *AchievementsResetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -912,7 +912,7 @@ func (c *AchievementsResetAllCall) Header() http.Header { func (c *AchievementsResetAllCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1029,7 +1029,7 @@ func (c *AchievementsResetAllForAllPlayersCall) Header() http.Header { func (c *AchievementsResetAllForAllPlayersCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1120,7 +1120,7 @@ func (c *AchievementsResetForAllPlayersCall) Header() http.Header { func (c *AchievementsResetForAllPlayersCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1223,7 +1223,7 @@ func (c *AchievementsResetMultipleForAllPlayersCall) Header() http.Header { func (c *AchievementsResetMultipleForAllPlayersCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1349,7 +1349,7 @@ func (c *ApplicationsListHiddenCall) Header() http.Header { func (c *ApplicationsListHiddenCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1515,7 +1515,7 @@ func (c *EventsResetCall) Header() http.Header { func (c *EventsResetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1616,7 +1616,7 @@ func (c *EventsResetAllCall) Header() http.Header { func (c *EventsResetAllCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1704,7 +1704,7 @@ func (c *EventsResetAllForAllPlayersCall) Header() http.Header { func (c *EventsResetAllForAllPlayersCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1795,7 +1795,7 @@ func (c *EventsResetForAllPlayersCall) Header() http.Header { func (c *EventsResetForAllPlayersCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1898,7 +1898,7 @@ func (c *EventsResetMultipleForAllPlayersCall) Header() http.Header { func (c *EventsResetMultipleForAllPlayersCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1999,7 +1999,7 @@ func (c *PlayersHideCall) Header() http.Header { func (c *PlayersHideCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2112,7 +2112,7 @@ func (c *PlayersUnhideCall) Header() http.Header { func (c *PlayersUnhideCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2223,7 +2223,7 @@ func (c *ScoresResetCall) Header() http.Header { func (c *ScoresResetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2352,7 +2352,7 @@ func (c *ScoresResetAllCall) Header() http.Header { func (c *ScoresResetAllCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2469,7 +2469,7 @@ func (c *ScoresResetAllForAllPlayersCall) Header() http.Header { func (c *ScoresResetAllForAllPlayersCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2560,7 +2560,7 @@ func (c *ScoresResetForAllPlayersCall) Header() http.Header { func (c *ScoresResetForAllPlayersCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2664,7 +2664,7 @@ func (c *ScoresResetMultipleForAllPlayersCall) Header() http.Header { func (c *ScoresResetMultipleForAllPlayersCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/genomics/v1/genomics-gen.go b/genomics/v1/genomics-gen.go index c6c3f92836e..62797ddceec 100644 --- a/genomics/v1/genomics-gen.go +++ b/genomics/v1/genomics-gen.go @@ -993,7 +993,7 @@ func (c *OperationsCancelCall) Header() http.Header { func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1147,7 +1147,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1335,7 +1335,7 @@ func (c *OperationsListCall) Header() http.Header { func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/genomics/v1alpha2/genomics-gen.go b/genomics/v1alpha2/genomics-gen.go index 76c898bd029..dcf6707cdcf 100644 --- a/genomics/v1alpha2/genomics-gen.go +++ b/genomics/v1alpha2/genomics-gen.go @@ -1854,7 +1854,7 @@ func (c *OperationsCancelCall) Header() http.Header { func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2008,7 +2008,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2196,7 +2196,7 @@ func (c *OperationsListCall) Header() http.Header { func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2371,7 +2371,7 @@ func (c *PipelinesCreateCall) Header() http.Header { func (c *PipelinesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2498,7 +2498,7 @@ func (c *PipelinesDeleteCall) Header() http.Header { func (c *PipelinesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2640,7 +2640,7 @@ func (c *PipelinesGetCall) Header() http.Header { func (c *PipelinesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2797,7 +2797,7 @@ func (c *PipelinesGetControllerConfigCall) Header() http.Header { func (c *PipelinesGetControllerConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2970,7 +2970,7 @@ func (c *PipelinesListCall) Header() http.Header { func (c *PipelinesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3140,7 +3140,7 @@ func (c *PipelinesRunCall) Header() http.Header { func (c *PipelinesRunCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3270,7 +3270,7 @@ func (c *PipelinesSetOperationStatusCall) Header() http.Header { func (c *PipelinesSetOperationStatusCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/genomics/v2alpha1/genomics-api.json b/genomics/v2alpha1/genomics-api.json index bfd491215fc..9cd55818e0a 100644 --- a/genomics/v2alpha1/genomics-api.json +++ b/genomics/v2alpha1/genomics-api.json @@ -301,7 +301,7 @@ } } }, - "revision": "20200927", + "revision": "20201102", "rootUrl": "https://genomics.googleapis.com/", "schemas": { "Accelerator": { @@ -793,6 +793,17 @@ }, "type": "object" }, + "NFSMount": { + "description": "Configuration for an `NFSMount` to be attached to the VM.", + "id": "NFSMount", + "properties": { + "target": { + "description": "A target NFS mount. The target must be specified as `address:/mount\".", + "type": "string" + } + }, + "type": "object" + }, "Network": { "description": "VM networking options.", "id": "Network", @@ -1248,6 +1259,10 @@ "$ref": "ExistingDisk", "description": "Configuration for a existing disk." }, + "nfsMount": { + "$ref": "NFSMount", + "description": "Configuration for an NFS mount." + }, "persistentDisk": { "$ref": "PersistentDisk", "description": "Configuration for a persistent disk." diff --git a/genomics/v2alpha1/genomics-gen.go b/genomics/v2alpha1/genomics-gen.go index 5ede7e3b6d9..6ad3e7d6e1b 100644 --- a/genomics/v2alpha1/genomics-gen.go +++ b/genomics/v2alpha1/genomics-gen.go @@ -1078,6 +1078,35 @@ func (s *Mount) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// NFSMount: Configuration for an `NFSMount` to be attached to the VM. +type NFSMount struct { + // Target: A target NFS mount. The target must be specified as + // `address:/mount". + Target string `json:"target,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Target") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Target") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *NFSMount) MarshalJSON() ([]byte, error) { + type NoMethod NFSMount + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Network: VM networking options. type Network struct { // Name: The network name to attach the VM's network interface to. The @@ -1836,6 +1865,9 @@ type Volume struct { // ExistingDisk: Configuration for a existing disk. ExistingDisk *ExistingDisk `json:"existingDisk,omitempty"` + // NfsMount: Configuration for an NFS mount. + NfsMount *NFSMount `json:"nfsMount,omitempty"` + // PersistentDisk: Configuration for a persistent disk. PersistentDisk *PersistentDisk `json:"persistentDisk,omitempty"` @@ -2030,7 +2062,7 @@ func (c *PipelinesRunCall) Header() http.Header { func (c *PipelinesRunCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2164,7 +2196,7 @@ func (c *ProjectsOperationsCancelCall) Header() http.Header { func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2318,7 +2350,7 @@ func (c *ProjectsOperationsGetCall) Header() http.Header { func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2506,7 +2538,7 @@ func (c *ProjectsOperationsListCall) Header() http.Header { func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2680,7 +2712,7 @@ func (c *ProjectsWorkersCheckInCall) Header() http.Header { func (c *ProjectsWorkersCheckInCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2822,7 +2854,7 @@ func (c *WorkersCheckInCall) Header() http.Header { func (c *WorkersCheckInCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/gmail/v1/gmail-gen.go b/gmail/v1/gmail-gen.go index 6a7d25d842b..0f08c6f1901 100644 --- a/gmail/v1/gmail-gen.go +++ b/gmail/v1/gmail-gen.go @@ -2304,7 +2304,7 @@ func (c *UsersGetProfileCall) Header() http.Header { func (c *UsersGetProfileCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2441,7 +2441,7 @@ func (c *UsersStopCall) Header() http.Header { func (c *UsersStopCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2549,7 +2549,7 @@ func (c *UsersWatchCall) Header() http.Header { func (c *UsersWatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2732,7 +2732,7 @@ func (c *UsersDraftsCreateCall) Header() http.Header { func (c *UsersDraftsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2921,7 +2921,7 @@ func (c *UsersDraftsDeleteCall) Header() http.Header { func (c *UsersDraftsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3068,7 +3068,7 @@ func (c *UsersDraftsGetCall) Header() http.Header { func (c *UsersDraftsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3271,7 +3271,7 @@ func (c *UsersDraftsListCall) Header() http.Header { func (c *UsersDraftsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3494,7 +3494,7 @@ func (c *UsersDraftsSendCall) Header() http.Header { func (c *UsersDraftsSendCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3724,7 +3724,7 @@ func (c *UsersDraftsUpdateCall) Header() http.Header { func (c *UsersDraftsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3982,7 +3982,7 @@ func (c *UsersHistoryListCall) Header() http.Header { func (c *UsersHistoryListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4182,7 +4182,7 @@ func (c *UsersLabelsCreateCall) Header() http.Header { func (c *UsersLabelsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4325,7 +4325,7 @@ func (c *UsersLabelsDeleteCall) Header() http.Header { func (c *UsersLabelsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4450,7 +4450,7 @@ func (c *UsersLabelsGetCall) Header() http.Header { func (c *UsersLabelsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4606,7 +4606,7 @@ func (c *UsersLabelsListCall) Header() http.Header { func (c *UsersLabelsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4747,7 +4747,7 @@ func (c *UsersLabelsPatchCall) Header() http.Header { func (c *UsersLabelsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4899,7 +4899,7 @@ func (c *UsersLabelsUpdateCall) Header() http.Header { func (c *UsersLabelsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5051,7 +5051,7 @@ func (c *UsersMessagesBatchDeleteCall) Header() http.Header { func (c *UsersMessagesBatchDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5163,7 +5163,7 @@ func (c *UsersMessagesBatchModifyCall) Header() http.Header { func (c *UsersMessagesBatchModifyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5277,7 +5277,7 @@ func (c *UsersMessagesDeleteCall) Header() http.Header { func (c *UsersMessagesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5428,7 +5428,7 @@ func (c *UsersMessagesGetCall) Header() http.Header { func (c *UsersMessagesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5681,7 +5681,7 @@ func (c *UsersMessagesImportCall) Header() http.Header { func (c *UsersMessagesImportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5963,7 +5963,7 @@ func (c *UsersMessagesInsertCall) Header() http.Header { func (c *UsersMessagesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6217,7 +6217,7 @@ func (c *UsersMessagesListCall) Header() http.Header { func (c *UsersMessagesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6407,7 +6407,7 @@ func (c *UsersMessagesModifyCall) Header() http.Header { func (c *UsersMessagesModifyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6597,7 +6597,7 @@ func (c *UsersMessagesSendCall) Header() http.Header { func (c *UsersMessagesSendCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6786,7 +6786,7 @@ func (c *UsersMessagesTrashCall) Header() http.Header { func (c *UsersMessagesTrashCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6927,7 +6927,7 @@ func (c *UsersMessagesUntrashCall) Header() http.Header { func (c *UsersMessagesUntrashCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7081,7 +7081,7 @@ func (c *UsersMessagesAttachmentsGetCall) Header() http.Header { func (c *UsersMessagesAttachmentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7246,7 +7246,7 @@ func (c *UsersSettingsGetAutoForwardingCall) Header() http.Header { func (c *UsersSettingsGetAutoForwardingCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7393,7 +7393,7 @@ func (c *UsersSettingsGetImapCall) Header() http.Header { func (c *UsersSettingsGetImapCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7540,7 +7540,7 @@ func (c *UsersSettingsGetLanguageCall) Header() http.Header { func (c *UsersSettingsGetLanguageCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7687,7 +7687,7 @@ func (c *UsersSettingsGetPopCall) Header() http.Header { func (c *UsersSettingsGetPopCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7834,7 +7834,7 @@ func (c *UsersSettingsGetVacationCall) Header() http.Header { func (c *UsersSettingsGetVacationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7976,7 +7976,7 @@ func (c *UsersSettingsUpdateAutoForwardingCall) Header() http.Header { func (c *UsersSettingsUpdateAutoForwardingCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8116,7 +8116,7 @@ func (c *UsersSettingsUpdateImapCall) Header() http.Header { func (c *UsersSettingsUpdateImapCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8261,7 +8261,7 @@ func (c *UsersSettingsUpdateLanguageCall) Header() http.Header { func (c *UsersSettingsUpdateLanguageCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8401,7 +8401,7 @@ func (c *UsersSettingsUpdatePopCall) Header() http.Header { func (c *UsersSettingsUpdatePopCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8541,7 +8541,7 @@ func (c *UsersSettingsUpdateVacationCall) Header() http.Header { func (c *UsersSettingsUpdateVacationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8692,7 +8692,7 @@ func (c *UsersSettingsDelegatesCreateCall) Header() http.Header { func (c *UsersSettingsDelegatesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8837,7 +8837,7 @@ func (c *UsersSettingsDelegatesDeleteCall) Header() http.Header { func (c *UsersSettingsDelegatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8963,7 +8963,7 @@ func (c *UsersSettingsDelegatesGetCall) Header() http.Header { func (c *UsersSettingsDelegatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9120,7 +9120,7 @@ func (c *UsersSettingsDelegatesListCall) Header() http.Header { func (c *UsersSettingsDelegatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9259,7 +9259,7 @@ func (c *UsersSettingsFiltersCreateCall) Header() http.Header { func (c *UsersSettingsFiltersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9399,7 +9399,7 @@ func (c *UsersSettingsFiltersDeleteCall) Header() http.Header { func (c *UsersSettingsFiltersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9522,7 +9522,7 @@ func (c *UsersSettingsFiltersGetCall) Header() http.Header { func (c *UsersSettingsFiltersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9677,7 +9677,7 @@ func (c *UsersSettingsFiltersListCall) Header() http.Header { func (c *UsersSettingsFiltersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9820,7 +9820,7 @@ func (c *UsersSettingsForwardingAddressesCreateCall) Header() http.Header { func (c *UsersSettingsForwardingAddressesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9963,7 +9963,7 @@ func (c *UsersSettingsForwardingAddressesDeleteCall) Header() http.Header { func (c *UsersSettingsForwardingAddressesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10086,7 +10086,7 @@ func (c *UsersSettingsForwardingAddressesGetCall) Header() http.Header { func (c *UsersSettingsForwardingAddressesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10241,7 +10241,7 @@ func (c *UsersSettingsForwardingAddressesListCall) Header() http.Header { func (c *UsersSettingsForwardingAddressesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10388,7 +10388,7 @@ func (c *UsersSettingsSendAsCreateCall) Header() http.Header { func (c *UsersSettingsSendAsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10531,7 +10531,7 @@ func (c *UsersSettingsSendAsDeleteCall) Header() http.Header { func (c *UsersSettingsSendAsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10655,7 +10655,7 @@ func (c *UsersSettingsSendAsGetCall) Header() http.Header { func (c *UsersSettingsSendAsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10812,7 +10812,7 @@ func (c *UsersSettingsSendAsListCall) Header() http.Header { func (c *UsersSettingsSendAsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10952,7 +10952,7 @@ func (c *UsersSettingsSendAsPatchCall) Header() http.Header { func (c *UsersSettingsSendAsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11107,7 +11107,7 @@ func (c *UsersSettingsSendAsUpdateCall) Header() http.Header { func (c *UsersSettingsSendAsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11259,7 +11259,7 @@ func (c *UsersSettingsSendAsVerifyCall) Header() http.Header { func (c *UsersSettingsSendAsVerifyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11374,7 +11374,7 @@ func (c *UsersSettingsSendAsSmimeInfoDeleteCall) Header() http.Header { func (c *UsersSettingsSendAsSmimeInfoDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11509,7 +11509,7 @@ func (c *UsersSettingsSendAsSmimeInfoGetCall) Header() http.Header { func (c *UsersSettingsSendAsSmimeInfoGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11667,7 +11667,7 @@ func (c *UsersSettingsSendAsSmimeInfoInsertCall) Header() http.Header { func (c *UsersSettingsSendAsSmimeInfoInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11827,7 +11827,7 @@ func (c *UsersSettingsSendAsSmimeInfoListCall) Header() http.Header { func (c *UsersSettingsSendAsSmimeInfoListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11977,7 +11977,7 @@ func (c *UsersSettingsSendAsSmimeInfoSetDefaultCall) Header() http.Header { func (c *UsersSettingsSendAsSmimeInfoSetDefaultCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12099,7 +12099,7 @@ func (c *UsersThreadsDeleteCall) Header() http.Header { func (c *UsersThreadsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12246,7 +12246,7 @@ func (c *UsersThreadsGetCall) Header() http.Header { func (c *UsersThreadsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12464,7 +12464,7 @@ func (c *UsersThreadsListCall) Header() http.Header { func (c *UsersThreadsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12655,7 +12655,7 @@ func (c *UsersThreadsModifyCall) Header() http.Header { func (c *UsersThreadsModifyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12804,7 +12804,7 @@ func (c *UsersThreadsTrashCall) Header() http.Header { func (c *UsersThreadsTrashCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12945,7 +12945,7 @@ func (c *UsersThreadsUntrashCall) Header() http.Header { func (c *UsersThreadsUntrashCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/gmailpostmastertools/v1beta1/gmailpostmastertools-gen.go b/gmailpostmastertools/v1beta1/gmailpostmastertools-gen.go index 1b140904fab..9265815ad2d 100644 --- a/gmailpostmastertools/v1beta1/gmailpostmastertools-gen.go +++ b/gmailpostmastertools/v1beta1/gmailpostmastertools-gen.go @@ -654,7 +654,7 @@ func (c *DomainsGetCall) Header() http.Header { func (c *DomainsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -816,7 +816,7 @@ func (c *DomainsListCall) Header() http.Header { func (c *DomainsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -982,7 +982,7 @@ func (c *DomainsTrafficStatsGetCall) Header() http.Header { func (c *DomainsTrafficStatsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1194,7 +1194,7 @@ func (c *DomainsTrafficStatsListCall) Header() http.Header { func (c *DomainsTrafficStatsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/groupsmigration/v1/groupsmigration-gen.go b/groupsmigration/v1/groupsmigration-gen.go index 8ced0ee8c96..998f5a7e798 100644 --- a/groupsmigration/v1/groupsmigration-gen.go +++ b/groupsmigration/v1/groupsmigration-gen.go @@ -263,7 +263,7 @@ func (c *ArchiveInsertCall) Header() http.Header { func (c *ArchiveInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/groupssettings/v1/groupssettings-gen.go b/groupssettings/v1/groupssettings-gen.go index 82f26548e65..3af6c70ed04 100644 --- a/groupssettings/v1/groupssettings-gen.go +++ b/groupssettings/v1/groupssettings-gen.go @@ -781,7 +781,7 @@ func (c *GroupsGetCall) Header() http.Header { func (c *GroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -915,7 +915,7 @@ func (c *GroupsPatchCall) Header() http.Header { func (c *GroupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1053,7 +1053,7 @@ func (c *GroupsUpdateCall) Header() http.Header { func (c *GroupsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/healthcare/v1/healthcare-api.json b/healthcare/v1/healthcare-api.json index bca85a194d6..e8648379aa5 100644 --- a/healthcare/v1/healthcare-api.json +++ b/healthcare/v1/healthcare-api.json @@ -2769,7 +2769,7 @@ } } }, - "revision": "20201013", + "revision": "20201110", "rootUrl": "https://healthcare.googleapis.com/", "schemas": { "AuditConfig": { @@ -2824,6 +2824,9 @@ "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { + "bindingId": { + "type": "string" + }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." @@ -3162,11 +3165,11 @@ "id": "FhirStore", "properties": { "disableReferentialIntegrity": { - "description": "Whether to disable referential integrity in this FHIR store. This field is immutable after FHIR store creation. The default value is false, meaning that the API enforces referential integrity and fails the requests that result in inconsistent state in the FHIR store. When this field is set to true, the API skips referential integrity checks. Consequently, operations that rely on references, such as GetPatientEverything, do not return all the results if broken references exist.", + "description": "Immutable. Whether to disable referential integrity in this FHIR store. This field is immutable after FHIR store creation. The default value is false, meaning that the API enforces referential integrity and fails the requests that result in inconsistent state in the FHIR store. When this field is set to true, the API skips referential integrity checks. Consequently, operations that rely on references, such as GetPatientEverything, do not return all the results if broken references exist.", "type": "boolean" }, "disableResourceVersioning": { - "description": "Whether to disable resource versioning for this FHIR store. This field can not be changed after the creation of FHIR store. If set to false, which is the default behavior, all write operations cause historical versions to be recorded automatically. The historical versions can be fetched through the history APIs, but cannot be updated. If set to true, no historical versions are kept. The server sends errors for attempts to read the historical versions.", + "description": "Immutable. Whether to disable resource versioning for this FHIR store. This field can not be changed after the creation of FHIR store. If set to false, which is the default behavior, all write operations cause historical versions to be recorded automatically. The historical versions can be fetched through the history APIs, but cannot be updated. If set to true, no historical versions are kept. The server sends errors for attempts to read the historical versions.", "type": "boolean" }, "enableUpdateCreate": { @@ -3196,7 +3199,7 @@ "type": "array" }, "version": { - "description": "The FHIR specification version that this FHIR store supports natively. This field is immutable after store creation. Requests are rejected if they contain FHIR resources of a different version. Version is required for every FHIR store.", + "description": "Immutable. The FHIR specification version that this FHIR store supports natively. This field is immutable after store creation. Requests are rejected if they contain FHIR resources of a different version. Version is required for every FHIR store.", "enum": [ "VERSION_UNSPECIFIED", "DSTU2", diff --git a/healthcare/v1/healthcare-gen.go b/healthcare/v1/healthcare-gen.go index 4c346a7435a..5dbd7aeb9da 100644 --- a/healthcare/v1/healthcare-gen.go +++ b/healthcare/v1/healthcare-gen.go @@ -387,6 +387,8 @@ func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { + BindingId string `json:"bindingId,omitempty"` + // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -436,7 +438,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to + // ForceSendFields is a list of field names (e.g. "BindingId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -444,7 +446,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Condition") to include in + // NullFields is a list of field names (e.g. "BindingId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -1177,23 +1179,25 @@ func (s *FhirFilter) MarshalJSON() ([]byte, error) { // FhirStore: Represents a FHIR store. type FhirStore struct { - // DisableReferentialIntegrity: Whether to disable referential integrity - // in this FHIR store. This field is immutable after FHIR store - // creation. The default value is false, meaning that the API enforces - // referential integrity and fails the requests that result in - // inconsistent state in the FHIR store. When this field is set to true, - // the API skips referential integrity checks. Consequently, operations - // that rely on references, such as GetPatientEverything, do not return - // all the results if broken references exist. + // DisableReferentialIntegrity: Immutable. Whether to disable + // referential integrity in this FHIR store. This field is immutable + // after FHIR store creation. The default value is false, meaning that + // the API enforces referential integrity and fails the requests that + // result in inconsistent state in the FHIR store. When this field is + // set to true, the API skips referential integrity checks. + // Consequently, operations that rely on references, such as + // GetPatientEverything, do not return all the results if broken + // references exist. DisableReferentialIntegrity bool `json:"disableReferentialIntegrity,omitempty"` - // DisableResourceVersioning: Whether to disable resource versioning for - // this FHIR store. This field can not be changed after the creation of - // FHIR store. If set to false, which is the default behavior, all write - // operations cause historical versions to be recorded automatically. - // The historical versions can be fetched through the history APIs, but - // cannot be updated. If set to true, no historical versions are kept. - // The server sends errors for attempts to read the historical versions. + // DisableResourceVersioning: Immutable. Whether to disable resource + // versioning for this FHIR store. This field can not be changed after + // the creation of FHIR store. If set to false, which is the default + // behavior, all write operations cause historical versions to be + // recorded automatically. The historical versions can be fetched + // through the history APIs, but cannot be updated. If set to true, no + // historical versions are kept. The server sends errors for attempts to + // read the historical versions. DisableResourceVersioning bool `json:"disableResourceVersioning,omitempty"` // EnableUpdateCreate: Whether this FHIR store has the [updateCreate @@ -1244,10 +1248,10 @@ type FhirStore struct { // the results show up in the streaming destination. StreamConfigs []*StreamConfig `json:"streamConfigs,omitempty"` - // Version: The FHIR specification version that this FHIR store supports - // natively. This field is immutable after store creation. Requests are - // rejected if they contain FHIR resources of a different version. - // Version is required for every FHIR store. + // Version: Immutable. The FHIR specification version that this FHIR + // store supports natively. This field is immutable after store + // creation. Requests are rejected if they contain FHIR resources of a + // different version. Version is required for every FHIR store. // // Possible values: // "VERSION_UNSPECIFIED" - Users must specify a version on store @@ -3285,7 +3289,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3451,7 +3455,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3634,7 +3638,7 @@ func (c *ProjectsLocationsDatasetsCreateCall) Header() http.Header { func (c *ProjectsLocationsDatasetsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3788,7 +3792,7 @@ func (c *ProjectsLocationsDatasetsDeidentifyCall) Header() http.Header { func (c *ProjectsLocationsDatasetsDeidentifyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3928,7 +3932,7 @@ func (c *ProjectsLocationsDatasetsDeleteCall) Header() http.Header { func (c *ProjectsLocationsDatasetsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4069,7 +4073,7 @@ func (c *ProjectsLocationsDatasetsGetCall) Header() http.Header { func (c *ProjectsLocationsDatasetsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4230,7 +4234,7 @@ func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsDatasetsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4395,7 +4399,7 @@ func (c *ProjectsLocationsDatasetsListCall) Header() http.Header { func (c *ProjectsLocationsDatasetsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4570,7 +4574,7 @@ func (c *ProjectsLocationsDatasetsPatchCall) Header() http.Header { func (c *ProjectsLocationsDatasetsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4718,7 +4722,7 @@ func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsDatasetsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4863,7 +4867,7 @@ func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Header() http.Header { func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5011,7 +5015,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Header() http.Header { func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5164,7 +5168,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDeidentifyCall) Header() http.Heade func (c *ProjectsLocationsDatasetsDicomStoresDeidentifyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5303,7 +5307,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Header() http.Header { func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5438,7 +5442,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Header() http.Header { func (c *ProjectsLocationsDatasetsDicomStoresExportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5587,7 +5591,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Header() http.Header { func (c *ProjectsLocationsDatasetsDicomStoresGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5748,7 +5752,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Header() http.Hea func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5892,7 +5896,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Header() http.Header { func (c *ProjectsLocationsDatasetsDicomStoresImportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6066,7 +6070,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresListCall) Header() http.Header { func (c *ProjectsLocationsDatasetsDicomStoresListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6246,7 +6250,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Header() http.Header { func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6413,7 +6417,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall) Header() ht func (c *ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6545,7 +6549,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall) Header() http. func (c *ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6677,7 +6681,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall) Header() http func (c *ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6790,7 +6794,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Header() http.Hea func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6941,7 +6945,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStoreInstancesCall) Header() http.H func (c *ProjectsLocationsDatasetsDicomStoresStoreInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7056,7 +7060,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Header() ht func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7205,7 +7209,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesDeleteCall) Header() http.He func (c *ProjectsLocationsDatasetsDicomStoresStudiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7366,7 +7370,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall) Header func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7498,7 +7502,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall) Header() func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7630,7 +7634,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall) Head func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7762,7 +7766,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall) Header( func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7884,7 +7888,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesStoreInstancesCall) Header() func (c *ProjectsLocationsDatasetsDicomStoresStudiesStoreInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8003,7 +8007,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesDeleteCall) Header() h func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8165,7 +8169,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall) func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8297,7 +8301,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall) He func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8429,7 +8433,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8547,7 +8551,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesDeleteCall) H func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8711,7 +8715,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInsta func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInstanceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8845,7 +8849,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetad func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetadataCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8978,7 +8982,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRende func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRenderedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9110,7 +9114,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetriev func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveFramesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9243,7 +9247,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetriev func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveRenderedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9362,7 +9366,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Header() http.Header { func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9512,7 +9516,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresDeidentifyCall) Header() http.Header func (c *ProjectsLocationsDatasetsFhirStoresDeidentifyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9651,7 +9655,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Header() http.Header { func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9790,7 +9794,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Header() http.Header { func (c *ProjectsLocationsDatasetsFhirStoresExportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9939,7 +9943,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Header() http.Header { func (c *ProjectsLocationsDatasetsFhirStoresGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10100,7 +10104,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Header() http.Head func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10295,7 +10299,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Header() http.Header { func (c *ProjectsLocationsDatasetsFhirStoresImportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10469,7 +10473,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresListCall) Header() http.Header { func (c *ProjectsLocationsDatasetsFhirStoresListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10649,7 +10653,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Header() http.Header { func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10797,7 +10801,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Header() http.Head func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10942,7 +10946,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Header() htt func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11170,7 +11174,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Header() func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11308,7 +11312,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Header() http func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11465,7 +11469,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) Header() http. func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11587,7 +11591,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) Header() http.Header func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11708,7 +11712,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) Header() http.Header func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11840,7 +11844,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) Header() http func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12009,7 +12013,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Header() http.Heade func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12149,7 +12153,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) Header() http.Header func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12279,7 +12283,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) Header() http.Header { func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12429,7 +12433,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Header() http.Header func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12556,7 +12560,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) Header() http.Header func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12681,7 +12685,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) Header() http.Header func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12791,7 +12795,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Header() http.Header { func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12935,7 +12939,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Header() http.Header { func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13076,7 +13080,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Header() http.Header { func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13237,7 +13241,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Header() http.Hea func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13412,7 +13416,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Header() http.Header { func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13592,7 +13596,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Header() http.Header { func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13740,7 +13744,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Header() http.Hea func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13885,7 +13889,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Header() ht func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14030,7 +14034,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Header() http.H func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14168,7 +14172,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Header() http.H func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14326,7 +14330,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Header() http.Head func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14489,7 +14493,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Header() http.H func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14694,7 +14698,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Header() http.Hea func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14903,7 +14907,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Header() http.He func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15058,7 +15062,7 @@ func (c *ProjectsLocationsDatasetsOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsDatasetsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15209,7 +15213,7 @@ func (c *ProjectsLocationsDatasetsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsDatasetsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15383,7 +15387,7 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsDatasetsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/healthcare/v1beta1/healthcare-api.json b/healthcare/v1beta1/healthcare-api.json index 6bfd3d39506..52545f0cdb2 100644 --- a/healthcare/v1beta1/healthcare-api.json +++ b/healthcare/v1beta1/healthcare-api.json @@ -1325,7 +1325,7 @@ ] }, "delete": { - "description": "Deletes the specified Attribute definition. Fails if it is referenced by the latest revision of any Consent or User data mapping.", + "description": "Deletes the specified Attribute definition. Fails if it is referenced by any User data mapping, or the latest revision of any Consent.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/consentStores/{consentStoresId}/attributeDefinitions/{attributeDefinitionsId}", "httpMethod": "DELETE", "id": "healthcare.projects.locations.datasets.consentStores.attributeDefinitions.delete", @@ -4667,13 +4667,49 @@ } } } + }, + "services": { + "resources": { + "nlp": { + "methods": { + "analyzeEntities": { + "description": "Analyze heathcare entity in a document. Its response includes the recognized entity mentions and the relationships between them. AnalyzeEntities uses context aware models to detect entities.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/services/nlp:analyzeEntities", + "httpMethod": "POST", + "id": "healthcare.projects.locations.services.nlp.analyzeEntities", + "parameterOrder": [ + "nlpService" + ], + "parameters": { + "nlpService": { + "description": "The resource name of the service of the form: \"projects/{project_id}/locations/{location_id}/services/nlp\".", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/nlp$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+nlpService}:analyzeEntities", + "request": { + "$ref": "AnalyzeEntitiesRequest" + }, + "response": { + "$ref": "AnalyzeEntitiesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } } } } } } }, - "revision": "20201013", + "revision": "20201110", "rootUrl": "https://healthcare.googleapis.com/", "schemas": { "ActivateConsentRequest": { @@ -4697,6 +4733,45 @@ }, "type": "object" }, + "AnalyzeEntitiesRequest": { + "description": "The request to analyze healthcare entities in a document.", + "id": "AnalyzeEntitiesRequest", + "properties": { + "documentContent": { + "description": "document_content is a document to be annotated.", + "type": "string" + } + }, + "type": "object" + }, + "AnalyzeEntitiesResponse": { + "description": "Includes recognized entity mentions and relationships between them.", + "id": "AnalyzeEntitiesResponse", + "properties": { + "entities": { + "description": "The union of all the candidate entities that the entity_mentions in this response could link to. These are UMLS concepts or normalized mention content.", + "items": { + "$ref": "Entity" + }, + "type": "array" + }, + "entityMentions": { + "description": "entity_mentions contains all the annotated medical entities that were were mentioned in the provided document.", + "items": { + "$ref": "EntityMention" + }, + "type": "array" + }, + "relationships": { + "description": "relationships contains all the binary relationships that were identified between entity mentions within the provided document.", + "items": { + "$ref": "EntityMentionRelationship" + }, + "type": "array" + } + }, + "type": "object" + }, "Annotation": { "description": "An annotation record.", "id": "Annotation", @@ -4904,6 +4979,9 @@ "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { + "bindingId": { + "type": "string" + }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." @@ -5432,16 +5510,86 @@ "properties": {}, "type": "object" }, - "ErrorDetail": { - "description": "Structure to describe the error encountered during batch operation on one resource. This is used both for sample errors in operation response, and for format of errors in error reports.", - "id": "ErrorDetail", + "Entity": { + "description": "The candidate entities that an entity mention could link to.", + "id": "Entity", "properties": { - "error": { - "$ref": "Status", - "description": "The status of the error." + "entityId": { + "description": "entity_id is a first class field entity_id uniquely identifies this concept and its meta-vocabulary. For example, \"UMLS/C0000970\".", + "type": "string" + }, + "preferredTerm": { + "description": "preferred_term is the preferred term for this concept. For example, \"Acetaminophen\". For ad hoc entities formed by normalization, this is the most popular unnormalized string.", + "type": "string" + }, + "vocabularyCodes": { + "description": "Vocabulary codes are first-class fields and differentiated from the concept unique identifier (entity_id). vocabulary_codes contains the representation of this concept in particular vocabularies, such as ICD-10, SNOMED-CT and RxNORM. These are prefixed by the name of the vocabulary, followed by the unique code within that vocabulary. For example, \"RXNORM/A10334543\".", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "EntityMention": { + "description": "An entity mention in the document.", + "id": "EntityMention", + "properties": { + "certaintyAssessment": { + "$ref": "Feature", + "description": "The certainty assessment of the entity mention. Its value is one of: LIKELY, SOMEWHAT_LIKELY, UNCERTAIN, SOMEWHAT_UNLIKELY, UNLIKELY, CONDITIONAL" + }, + "confidence": { + "description": "The model's confidence in this entity mention annotation. A number between 0 and 1.", + "format": "double", + "type": "number" + }, + "linkedEntities": { + "description": "linked_entities are candidate ontological concepts that this entity mention may refer to. They are sorted by decreasing confidence.it", + "items": { + "$ref": "LinkedEntity" + }, + "type": "array" + }, + "mentionId": { + "description": "mention_id uniquely identifies each entity mention in a single response.", + "type": "string" + }, + "subject": { + "$ref": "Feature", + "description": "The subject this entity mention relates to. Its value is one of: PATIENT, FAMILY_MEMBER, OTHER" + }, + "temporalAssessment": { + "$ref": "Feature", + "description": "How this entity mention relates to the subject temporally. Its value is one of: CURRENT, CLINICAL_HISTORY, FAMILY_HISTORY, UPCOMING, ALLERGY" + }, + "text": { + "$ref": "TextSpan", + "description": "text is the location of the entity mention in the document." + }, + "type": { + "description": "The semantic type of the entity: UNKNOWN_ENTITY_TYPE, ALONE, ANATOMICAL_STRUCTURE, ASSISTED_LIVING, BF_RESULT, BM_RESULT, BM_UNIT, BM_VALUE, BODY_FUNCTION, BODY_MEASUREMENT, COMPLIANT, DOESNOT_FOLLOWUP, FAMILY, FOLLOWSUP, LABORATORY_DATA, LAB_RESULT, LAB_UNIT, LAB_VALUE, MEDICAL_DEVICE, MEDICINE, MED_DOSE, MED_DURATION, MED_FORM, MED_FREQUENCY, MED_ROUTE, MED_STATUS, MED_STRENGTH, MED_TOTALDOSE, MED_UNIT, NON_COMPLIANT, OTHER_LIVINGSTATUS, PROBLEM, PROCEDURE, PROCEDURE_RESULT, PROC_METHOD, REASON_FOR_NONCOMPLIANCE, SEVERITY, SUBSTANCE_ABUSE, UNCLEAR_FOLLOWUP.", + "type": "string" + } + }, + "type": "object" + }, + "EntityMentionRelationship": { + "description": "Defines directed relationship from one entity mention to another.", + "id": "EntityMentionRelationship", + "properties": { + "confidence": { + "description": "The model's confidence in this annotation. A number between 0 and 1.", + "format": "double", + "type": "number" }, - "resource": { - "description": "The identifier of the resource.", + "objectId": { + "description": "object_id is the id of the object entity mention.", + "type": "string" + }, + "subjectId": { + "description": "subject_id is the id of the subject entity mention.", "type": "string" } }, @@ -5584,6 +5732,10 @@ "$ref": "GoogleCloudHealthcareV1beta1DicomBigQueryDestination", "description": "The BigQuery output destination. You can only export to a BigQuery dataset that's in the same project as the DICOM store you're exporting from. The Cloud Healthcare Service Agent requires two IAM roles on the BigQuery location: `roles/bigquery.dataEditor` and `roles/bigquery.jobUser`." }, + "filterConfig": { + "$ref": "DicomFilterConfig", + "description": "Specifies the filter configuration." + }, "gcsDestination": { "$ref": "GoogleCloudHealthcareV1beta1DicomGcsDestination", "description": "The Cloud Storage output destination. The Cloud Healthcare Service Agent requires the `roles/storage.objectAdmin` Cloud IAM roles on the Cloud Storage location." @@ -5656,6 +5808,22 @@ }, "type": "object" }, + "Feature": { + "description": "A feature of an entity mention.", + "id": "Feature", + "properties": { + "confidence": { + "description": "The model's confidence in this feature annotation. A number between 0 and 1.", + "format": "double", + "type": "number" + }, + "value": { + "description": "The value of this feature annotation. Its range depends on the type of the feature.", + "type": "string" + } + }, + "type": "object" + }, "FhirConfig": { "description": "Specifies how to handle de-identification of a FHIR store.", "id": "FhirConfig", @@ -5690,11 +5858,11 @@ "type": "boolean" }, "disableReferentialIntegrity": { - "description": "Whether to disable referential integrity in this FHIR store. This field is immutable after FHIR store creation. The default value is false, meaning that the API enforces referential integrity and fails the requests that result in inconsistent state in the FHIR store. When this field is set to true, the API skips referential integrity checks. Consequently, operations that rely on references, such as GetPatientEverything, do not return all the results if broken references exist.", + "description": "Immutable. Whether to disable referential integrity in this FHIR store. This field is immutable after FHIR store creation. The default value is false, meaning that the API enforces referential integrity and fails the requests that result in inconsistent state in the FHIR store. When this field is set to true, the API skips referential integrity checks. Consequently, operations that rely on references, such as GetPatientEverything, do not return all the results if broken references exist.", "type": "boolean" }, "disableResourceVersioning": { - "description": "Whether to disable resource versioning for this FHIR store. This field can not be changed after the creation of FHIR store. If set to false, which is the default behavior, all write operations cause historical versions to be recorded automatically. The historical versions can be fetched through the history APIs, but cannot be updated. If set to true, no historical versions are kept. The server sends errors for attempts to read the historical versions.", + "description": "Immutable. Whether to disable resource versioning for this FHIR store. This field can not be changed after the creation of FHIR store. If set to false, which is the default behavior, all write operations cause historical versions to be recorded automatically. The historical versions can be fetched through the history APIs, but cannot be updated. If set to true, no historical versions are kept. The server sends errors for attempts to read the historical versions.", "type": "boolean" }, "enableUpdateCreate": { @@ -5724,7 +5892,7 @@ "type": "array" }, "version": { - "description": "The FHIR specification version that this FHIR store supports natively. This field is immutable after store creation. Requests are rejected if they contain FHIR resources of a different version. Version is required for every FHIR store.", + "description": "Immutable. The FHIR specification version that this FHIR store supports natively. This field is immutable after store creation. Requests are rejected if they contain FHIR resources of a different version. Version is required for every FHIR store.", "enum": [ "VERSION_UNSPECIFIED", "DSTU2", @@ -6428,20 +6596,6 @@ "properties": {}, "type": "object" }, - "ImportDicomDataErrorDetails": { - "description": "Deprecated. Error details are in [Cloud Logging](/healthcare/docs/how-tos/logging). Returns the errors encountered during DICOM store import.", - "id": "ImportDicomDataErrorDetails", - "properties": { - "sampleErrors": { - "description": "Deprecated. Use only for debugging purposes. Contains sample errors encountered in imports of individual resources. For example, a Cloud Storage object.", - "items": { - "$ref": "ErrorDetail" - }, - "type": "array" - } - }, - "type": "object" - }, "ImportDicomDataRequest": { "description": "Imports data into the specified DICOM store. Returns an error if any of the files to import are not DICOM files. This API accepts duplicate DICOM instances by ignoring the newly-pushed instance. It does not overwrite.", "id": "ImportDicomDataRequest", @@ -6583,6 +6737,17 @@ }, "type": "object" }, + "LinkedEntity": { + "description": "EntityMentions can be linked to multiple entities using a LinkedEntity message lets us add other fields, e.g. confidence.", + "id": "LinkedEntity", + "properties": { + "entityId": { + "description": "entity_id is a concept unique identifier. These are prefixed by a string that identifies the entity coding system, followed by the unique identifier within that system. For example, \"UMLS/C0000970\". This also supports ad hoc entities, which are formed by normalizing entity mention content.", + "type": "string" + } + }, + "type": "object" + }, "ListAnnotationStoresResponse": { "description": "Lists the Annotation stores in the given dataset.", "id": "ListAnnotationStoresResponse", @@ -7583,6 +7748,22 @@ }, "type": "object" }, + "TextSpan": { + "description": "A span of text in the provided document.", + "id": "TextSpan", + "properties": { + "beginOffset": { + "description": "The unicode codepoint index of the beginning of this span.", + "format": "int32", + "type": "integer" + }, + "content": { + "description": "The original text contained in this span.", + "type": "string" + } + }, + "type": "object" + }, "Type": { "description": "A type definition for some HL7v2 type (incl. Segments and Datatypes).", "id": "Type", diff --git a/healthcare/v1beta1/healthcare-gen.go b/healthcare/v1beta1/healthcare-gen.go index 8558bacc331..12ca4466ac6 100644 --- a/healthcare/v1beta1/healthcare-gen.go +++ b/healthcare/v1beta1/healthcare-gen.go @@ -150,6 +150,7 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} rs.Datasets = NewProjectsLocationsDatasetsService(s) + rs.Services = NewProjectsLocationsServicesService(s) return rs } @@ -157,6 +158,8 @@ type ProjectsLocationsService struct { s *Service Datasets *ProjectsLocationsDatasetsService + + Services *ProjectsLocationsServicesService } func NewProjectsLocationsDatasetsService(s *Service) *ProjectsLocationsDatasetsService { @@ -372,6 +375,27 @@ type ProjectsLocationsDatasetsOperationsService struct { s *Service } +func NewProjectsLocationsServicesService(s *Service) *ProjectsLocationsServicesService { + rs := &ProjectsLocationsServicesService{s: s} + rs.Nlp = NewProjectsLocationsServicesNlpService(s) + return rs +} + +type ProjectsLocationsServicesService struct { + s *Service + + Nlp *ProjectsLocationsServicesNlpService +} + +func NewProjectsLocationsServicesNlpService(s *Service) *ProjectsLocationsServicesNlpService { + rs := &ProjectsLocationsServicesNlpService{s: s} + return rs +} + +type ProjectsLocationsServicesNlpService struct { + s *Service +} + // ActivateConsentRequest: Activates the latest revision of the // specified Consent by committing a new revision with `state` updated // to `ACTIVE`. If the latest revision of the given consent is in the @@ -417,6 +441,80 @@ func (s *ActivateConsentRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AnalyzeEntitiesRequest: The request to analyze healthcare entities in +// a document. +type AnalyzeEntitiesRequest struct { + // DocumentContent: document_content is a document to be annotated. + DocumentContent string `json:"documentContent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DocumentContent") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DocumentContent") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AnalyzeEntitiesRequest) MarshalJSON() ([]byte, error) { + type NoMethod AnalyzeEntitiesRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AnalyzeEntitiesResponse: Includes recognized entity mentions and +// relationships between them. +type AnalyzeEntitiesResponse struct { + // Entities: The union of all the candidate entities that the + // entity_mentions in this response could link to. These are UMLS + // concepts or normalized mention content. + Entities []*Entity `json:"entities,omitempty"` + + // EntityMentions: entity_mentions contains all the annotated medical + // entities that were were mentioned in the provided document. + EntityMentions []*EntityMention `json:"entityMentions,omitempty"` + + // Relationships: relationships contains all the binary relationships + // that were identified between entity mentions within the provided + // document. + Relationships []*EntityMentionRelationship `json:"relationships,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Entities") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Entities") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AnalyzeEntitiesResponse) MarshalJSON() ([]byte, error) { + type NoMethod AnalyzeEntitiesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Annotation: An annotation record. type Annotation struct { // AnnotationSource: Details of the source. @@ -806,6 +904,8 @@ func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { + BindingId string `json:"bindingId,omitempty"` + // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -855,7 +955,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to + // ForceSendFields is a list of field names (e.g. "BindingId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -863,7 +963,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Condition") to include in + // NullFields is a list of field names (e.g. "BindingId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -1845,17 +1945,27 @@ type Empty struct { googleapi.ServerResponse `json:"-"` } -// ErrorDetail: Structure to describe the error encountered during batch -// operation on one resource. This is used both for sample errors in -// operation response, and for format of errors in error reports. -type ErrorDetail struct { - // Error: The status of the error. - Error *Status `json:"error,omitempty"` +// Entity: The candidate entities that an entity mention could link to. +type Entity struct { + // EntityId: entity_id is a first class field entity_id uniquely + // identifies this concept and its meta-vocabulary. For example, + // "UMLS/C0000970". + EntityId string `json:"entityId,omitempty"` - // Resource: The identifier of the resource. - Resource string `json:"resource,omitempty"` + // PreferredTerm: preferred_term is the preferred term for this concept. + // For example, "Acetaminophen". For ad hoc entities formed by + // normalization, this is the most popular unnormalized string. + PreferredTerm string `json:"preferredTerm,omitempty"` - // ForceSendFields is a list of field names (e.g. "Error") to + // VocabularyCodes: Vocabulary codes are first-class fields and + // differentiated from the concept unique identifier (entity_id). + // vocabulary_codes contains the representation of this concept in + // particular vocabularies, such as ICD-10, SNOMED-CT and RxNORM. These + // are prefixed by the name of the vocabulary, followed by the unique + // code within that vocabulary. For example, "RXNORM/A10334543". + VocabularyCodes []string `json:"vocabularyCodes,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EntityId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -1863,8 +1973,8 @@ type ErrorDetail struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Error") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "EntityId") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -1872,12 +1982,144 @@ type ErrorDetail struct { NullFields []string `json:"-"` } -func (s *ErrorDetail) MarshalJSON() ([]byte, error) { - type NoMethod ErrorDetail +func (s *Entity) MarshalJSON() ([]byte, error) { + type NoMethod Entity raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// EntityMention: An entity mention in the document. +type EntityMention struct { + // CertaintyAssessment: The certainty assessment of the entity mention. + // Its value is one of: LIKELY, SOMEWHAT_LIKELY, UNCERTAIN, + // SOMEWHAT_UNLIKELY, UNLIKELY, CONDITIONAL + CertaintyAssessment *Feature `json:"certaintyAssessment,omitempty"` + + // Confidence: The model's confidence in this entity mention annotation. + // A number between 0 and 1. + Confidence float64 `json:"confidence,omitempty"` + + // LinkedEntities: linked_entities are candidate ontological concepts + // that this entity mention may refer to. They are sorted by decreasing + // confidence.it + LinkedEntities []*LinkedEntity `json:"linkedEntities,omitempty"` + + // MentionId: mention_id uniquely identifies each entity mention in a + // single response. + MentionId string `json:"mentionId,omitempty"` + + // Subject: The subject this entity mention relates to. Its value is one + // of: PATIENT, FAMILY_MEMBER, OTHER + Subject *Feature `json:"subject,omitempty"` + + // TemporalAssessment: How this entity mention relates to the subject + // temporally. Its value is one of: CURRENT, CLINICAL_HISTORY, + // FAMILY_HISTORY, UPCOMING, ALLERGY + TemporalAssessment *Feature `json:"temporalAssessment,omitempty"` + + // Text: text is the location of the entity mention in the document. + Text *TextSpan `json:"text,omitempty"` + + // Type: The semantic type of the entity: UNKNOWN_ENTITY_TYPE, ALONE, + // ANATOMICAL_STRUCTURE, ASSISTED_LIVING, BF_RESULT, BM_RESULT, BM_UNIT, + // BM_VALUE, BODY_FUNCTION, BODY_MEASUREMENT, COMPLIANT, + // DOESNOT_FOLLOWUP, FAMILY, FOLLOWSUP, LABORATORY_DATA, LAB_RESULT, + // LAB_UNIT, LAB_VALUE, MEDICAL_DEVICE, MEDICINE, MED_DOSE, + // MED_DURATION, MED_FORM, MED_FREQUENCY, MED_ROUTE, MED_STATUS, + // MED_STRENGTH, MED_TOTALDOSE, MED_UNIT, NON_COMPLIANT, + // OTHER_LIVINGSTATUS, PROBLEM, PROCEDURE, PROCEDURE_RESULT, + // PROC_METHOD, REASON_FOR_NONCOMPLIANCE, SEVERITY, SUBSTANCE_ABUSE, + // UNCLEAR_FOLLOWUP. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CertaintyAssessment") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CertaintyAssessment") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *EntityMention) MarshalJSON() ([]byte, error) { + type NoMethod EntityMention + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *EntityMention) UnmarshalJSON(data []byte) error { + type NoMethod EntityMention + var s1 struct { + Confidence gensupport.JSONFloat64 `json:"confidence"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Confidence = float64(s1.Confidence) + return nil +} + +// EntityMentionRelationship: Defines directed relationship from one +// entity mention to another. +type EntityMentionRelationship struct { + // Confidence: The model's confidence in this annotation. A number + // between 0 and 1. + Confidence float64 `json:"confidence,omitempty"` + + // ObjectId: object_id is the id of the object entity mention. + ObjectId string `json:"objectId,omitempty"` + + // SubjectId: subject_id is the id of the subject entity mention. + SubjectId string `json:"subjectId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Confidence") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Confidence") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EntityMentionRelationship) MarshalJSON() ([]byte, error) { + type NoMethod EntityMentionRelationship + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *EntityMentionRelationship) UnmarshalJSON(data []byte) error { + type NoMethod EntityMentionRelationship + var s1 struct { + Confidence gensupport.JSONFloat64 `json:"confidence"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Confidence = float64(s1.Confidence) + return nil +} + // EvaluateAnnotationStoreRequest: Request to evaluate an Annotation // store against a ground truth [Annotation store]. type EvaluateAnnotationStoreRequest struct { @@ -2099,6 +2341,9 @@ type ExportDicomDataRequest struct { // `roles/bigquery.dataEditor` and `roles/bigquery.jobUser`. BigqueryDestination *GoogleCloudHealthcareV1beta1DicomBigQueryDestination `json:"bigqueryDestination,omitempty"` + // FilterConfig: Specifies the filter configuration. + FilterConfig *DicomFilterConfig `json:"filterConfig,omitempty"` + // GcsDestination: The Cloud Storage output destination. The Cloud // Healthcare Service Agent requires the `roles/storage.objectAdmin` // Cloud IAM roles on the Cloud Storage location. @@ -2271,6 +2516,53 @@ func (s *Expr) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Feature: A feature of an entity mention. +type Feature struct { + // Confidence: The model's confidence in this feature annotation. A + // number between 0 and 1. + Confidence float64 `json:"confidence,omitempty"` + + // Value: The value of this feature annotation. Its range depends on the + // type of the feature. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Confidence") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Confidence") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Feature) MarshalJSON() ([]byte, error) { + type NoMethod Feature + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *Feature) UnmarshalJSON(data []byte) error { + type NoMethod Feature + var s1 struct { + Confidence gensupport.JSONFloat64 `json:"confidence"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Confidence = float64(s1.Confidence) + return nil +} + // FhirConfig: Specifies how to handle de-identification of a FHIR // store. type FhirConfig struct { @@ -2345,23 +2637,25 @@ type FhirStore struct { // handling=strict` or `Prefer: handling=lenient`. DefaultSearchHandlingStrict bool `json:"defaultSearchHandlingStrict,omitempty"` - // DisableReferentialIntegrity: Whether to disable referential integrity - // in this FHIR store. This field is immutable after FHIR store - // creation. The default value is false, meaning that the API enforces - // referential integrity and fails the requests that result in - // inconsistent state in the FHIR store. When this field is set to true, - // the API skips referential integrity checks. Consequently, operations - // that rely on references, such as GetPatientEverything, do not return - // all the results if broken references exist. + // DisableReferentialIntegrity: Immutable. Whether to disable + // referential integrity in this FHIR store. This field is immutable + // after FHIR store creation. The default value is false, meaning that + // the API enforces referential integrity and fails the requests that + // result in inconsistent state in the FHIR store. When this field is + // set to true, the API skips referential integrity checks. + // Consequently, operations that rely on references, such as + // GetPatientEverything, do not return all the results if broken + // references exist. DisableReferentialIntegrity bool `json:"disableReferentialIntegrity,omitempty"` - // DisableResourceVersioning: Whether to disable resource versioning for - // this FHIR store. This field can not be changed after the creation of - // FHIR store. If set to false, which is the default behavior, all write - // operations cause historical versions to be recorded automatically. - // The historical versions can be fetched through the history APIs, but - // cannot be updated. If set to true, no historical versions are kept. - // The server sends errors for attempts to read the historical versions. + // DisableResourceVersioning: Immutable. Whether to disable resource + // versioning for this FHIR store. This field can not be changed after + // the creation of FHIR store. If set to false, which is the default + // behavior, all write operations cause historical versions to be + // recorded automatically. The historical versions can be fetched + // through the history APIs, but cannot be updated. If set to true, no + // historical versions are kept. The server sends errors for attempts to + // read the historical versions. DisableResourceVersioning bool `json:"disableResourceVersioning,omitempty"` // EnableUpdateCreate: Whether this FHIR store has the [updateCreate @@ -2412,10 +2706,10 @@ type FhirStore struct { // the results show up in the streaming destination. StreamConfigs []*StreamConfig `json:"streamConfigs,omitempty"` - // Version: The FHIR specification version that this FHIR store supports - // natively. This field is immutable after store creation. Requests are - // rejected if they contain FHIR resources of a different version. - // Version is required for every FHIR store. + // Version: Immutable. The FHIR specification version that this FHIR + // store supports natively. This field is immutable after store + // creation. Requests are rejected if they contain FHIR resources of a + // different version. Version is required for every FHIR store. // // Possible values: // "VERSION_UNSPECIFIED" - VERSION_UNSPECIFIED is treated as STU3 to @@ -3875,38 +4169,6 @@ func (s *ImportAnnotationsRequest) MarshalJSON() ([]byte, error) { type ImportAnnotationsResponse struct { } -// ImportDicomDataErrorDetails: Deprecated. Error details are in [Cloud -// Logging](/healthcare/docs/how-tos/logging). Returns the errors -// encountered during DICOM store import. -type ImportDicomDataErrorDetails struct { - // SampleErrors: Deprecated. Use only for debugging purposes. Contains - // sample errors encountered in imports of individual resources. For - // example, a Cloud Storage object. - SampleErrors []*ErrorDetail `json:"sampleErrors,omitempty"` - - // ForceSendFields is a list of field names (e.g. "SampleErrors") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SampleErrors") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *ImportDicomDataErrorDetails) MarshalJSON() ([]byte, error) { - type NoMethod ImportDicomDataErrorDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // ImportDicomDataRequest: Imports data into the specified DICOM store. // Returns an error if any of the files to import are not DICOM files. // This API accepts duplicate DICOM instances by ignoring the @@ -4193,6 +4455,39 @@ func (s *IngestMessageResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// LinkedEntity: EntityMentions can be linked to multiple entities using +// a LinkedEntity message lets us add other fields, e.g. confidence. +type LinkedEntity struct { + // EntityId: entity_id is a concept unique identifier. These are + // prefixed by a string that identifies the entity coding system, + // followed by the unique identifier within that system. For example, + // "UMLS/C0000970". This also supports ad hoc entities, which are formed + // by normalizing entity mention content. + EntityId string `json:"entityId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EntityId") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EntityId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *LinkedEntity) MarshalJSON() ([]byte, error) { + type NoMethod LinkedEntity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListAnnotationStoresResponse: Lists the Annotation stores in the // given dataset. type ListAnnotationStoresResponse struct { @@ -6182,6 +6477,38 @@ func (s *TextConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TextSpan: A span of text in the provided document. +type TextSpan struct { + // BeginOffset: The unicode codepoint index of the beginning of this + // span. + BeginOffset int64 `json:"beginOffset,omitempty"` + + // Content: The original text contained in this span. + Content string `json:"content,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BeginOffset") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BeginOffset") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TextSpan) MarshalJSON() ([]byte, error) { + type NoMethod TextSpan + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Type: A type definition for some HL7v2 type (incl. Segments and // Datatypes). type Type struct { @@ -6421,7 +6748,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6587,7 +6914,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6770,7 +7097,7 @@ func (c *ProjectsLocationsDatasetsCreateCall) Header() http.Header { func (c *ProjectsLocationsDatasetsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6923,7 +7250,7 @@ func (c *ProjectsLocationsDatasetsDeidentifyCall) Header() http.Header { func (c *ProjectsLocationsDatasetsDeidentifyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7063,7 +7390,7 @@ func (c *ProjectsLocationsDatasetsDeleteCall) Header() http.Header { func (c *ProjectsLocationsDatasetsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7204,7 +7531,7 @@ func (c *ProjectsLocationsDatasetsGetCall) Header() http.Header { func (c *ProjectsLocationsDatasetsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7365,7 +7692,7 @@ func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsDatasetsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7530,7 +7857,7 @@ func (c *ProjectsLocationsDatasetsListCall) Header() http.Header { func (c *ProjectsLocationsDatasetsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7705,7 +8032,7 @@ func (c *ProjectsLocationsDatasetsPatchCall) Header() http.Header { func (c *ProjectsLocationsDatasetsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7853,7 +8180,7 @@ func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsDatasetsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7998,7 +8325,7 @@ func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Header() http.Header { func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8146,7 +8473,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) Header() http.Head func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8290,7 +8617,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) Header() http.Head func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8427,7 +8754,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresEvaluateCall) Header() http.He func (c *ProjectsLocationsDatasetsAnnotationStoresEvaluateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8572,7 +8899,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresExportCall) Header() http.Head func (c *ProjectsLocationsDatasetsAnnotationStoresExportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8722,7 +9049,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) Header() http.Header func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8883,7 +9210,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) Header() htt func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9029,7 +9356,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresImportCall) Header() http.Head func (c *ProjectsLocationsDatasetsAnnotationStoresImportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9204,7 +9531,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Header() http.Header func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9384,7 +9711,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) Header() http.Heade func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9532,7 +9859,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) Header() htt func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9677,7 +10004,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) Header func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9819,7 +10146,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) Header( func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9958,7 +10285,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) Header( func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10099,7 +10426,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) Header() h func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10288,7 +10615,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Header() func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10483,7 +10810,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) Header() func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10630,7 +10957,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresCheckDataAccessCall) Header() htt func (c *ProjectsLocationsDatasetsConsentStoresCheckDataAccessCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10780,7 +11107,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresCreateCall) Header() http.Header func (c *ProjectsLocationsDatasetsConsentStoresCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10924,7 +11251,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresDeleteCall) Header() http.Header func (c *ProjectsLocationsDatasetsConsentStoresDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11060,7 +11387,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresEvaluateUserConsentsCall) Header( func (c *ProjectsLocationsDatasetsConsentStoresEvaluateUserConsentsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11230,7 +11557,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresGetCall) Header() http.Header { func (c *ProjectsLocationsDatasetsConsentStoresGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11391,7 +11718,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall) Header() http.H func (c *ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11565,7 +11892,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresListCall) Header() http.Header { func (c *ProjectsLocationsDatasetsConsentStoresListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11746,7 +12073,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresPatchCall) Header() http.Header { func (c *ProjectsLocationsDatasetsConsentStoresPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11916,7 +12243,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresQueryAccessibleDataCall) Header() func (c *ProjectsLocationsDatasetsConsentStoresQueryAccessibleDataCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12058,7 +12385,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresSetIamPolicyCall) Header() http.H func (c *ProjectsLocationsDatasetsConsentStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12203,7 +12530,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresTestIamPermissionsCall) Header() func (c *ProjectsLocationsDatasetsConsentStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12355,7 +12682,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsCreateCall) H func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12465,8 +12792,8 @@ type ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsDeleteCall struct } // Delete: Deletes the specified Attribute definition. Fails if it is -// referenced by the latest revision of any Consent or User data -// mapping. +// referenced by any User data mapping, or the latest revision of any +// Consent. func (r *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsService) Delete(name string) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsDeleteCall { c := &ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -12500,7 +12827,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsDeleteCall) H func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12559,7 +12886,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsDeleteCall) D } return ret, nil // { - // "description": "Deletes the specified Attribute definition. Fails if it is referenced by the latest revision of any Consent or User data mapping.", + // "description": "Deletes the specified Attribute definition. Fails if it is referenced by any User data mapping, or the latest revision of any Consent.", // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/consentStores/{consentStoresId}/attributeDefinitions/{attributeDefinitionsId}", // "httpMethod": "DELETE", // "id": "healthcare.projects.locations.datasets.consentStores.attributeDefinitions.delete", @@ -12641,7 +12968,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsGetCall) Head func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12809,7 +13136,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall) Hea func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12990,7 +13317,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsPatchCall) He func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13136,7 +13463,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsCreateCall) Heade func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13275,7 +13602,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsDeleteCall) Heade func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13416,7 +13743,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsGetCall) Header() func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13585,7 +13912,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall) Header( func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13762,7 +14089,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsActivateCall) Header() ht func (c *ProjectsLocationsDatasetsConsentStoresConsentsActivateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13902,7 +14229,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsCreateCall) Header() http func (c *ProjectsLocationsDatasetsConsentStoresConsentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14043,7 +14370,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsDeleteCall) Header() http func (c *ProjectsLocationsDatasetsConsentStoresConsentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14175,7 +14502,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsDeleteRevisionCall) Heade func (c *ProjectsLocationsDatasetsConsentStoresConsentsDeleteRevisionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14317,7 +14644,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsGetCall) Header() http.He func (c *ProjectsLocationsDatasetsConsentStoresConsentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14487,7 +14814,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsListCall) Header() http.H func (c *ProjectsLocationsDatasetsConsentStoresConsentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14694,7 +15021,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall) Header func (c *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14878,7 +15205,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsPatchCall) Header() http. func (c *ProjectsLocationsDatasetsConsentStoresConsentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15029,7 +15356,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsRejectCall) Header() http func (c *ProjectsLocationsDatasetsConsentStoresConsentsRejectCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15174,7 +15501,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsRevokeCall) Header() http func (c *ProjectsLocationsDatasetsConsentStoresConsentsRevokeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15314,7 +15641,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsArchiveCall) Head func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsArchiveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15454,7 +15781,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsCreateCall) Heade func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15592,7 +15919,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsDeleteCall) Heade func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15733,7 +16060,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsGetCall) Header() func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15901,7 +16228,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall) Header( func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16081,7 +16408,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall) Header func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16235,7 +16562,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Header() http.Header { func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16388,7 +16715,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDeidentifyCall) Header() http.Heade func (c *ProjectsLocationsDatasetsDicomStoresDeidentifyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16527,7 +16854,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Header() http.Header { func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16662,7 +16989,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Header() http.Header { func (c *ProjectsLocationsDatasetsDicomStoresExportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16811,7 +17138,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Header() http.Header { func (c *ProjectsLocationsDatasetsDicomStoresGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16972,7 +17299,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Header() http.Hea func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17116,7 +17443,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Header() http.Header { func (c *ProjectsLocationsDatasetsDicomStoresImportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17290,7 +17617,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresListCall) Header() http.Header { func (c *ProjectsLocationsDatasetsDicomStoresListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17470,7 +17797,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Header() http.Header { func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17637,7 +17964,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall) Header() ht func (c *ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17769,7 +18096,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall) Header() http. func (c *ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17901,7 +18228,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall) Header() http func (c *ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18014,7 +18341,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Header() http.Hea func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18165,7 +18492,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStoreInstancesCall) Header() http.H func (c *ProjectsLocationsDatasetsDicomStoresStoreInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18280,7 +18607,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Header() ht func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18427,7 +18754,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesDeleteCall) Header() http.He func (c *ProjectsLocationsDatasetsDicomStoresStudiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18588,7 +18915,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall) Header func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18720,7 +19047,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall) Header() func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18852,7 +19179,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall) Head func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18984,7 +19311,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall) Header( func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19106,7 +19433,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesStoreInstancesCall) Header() func (c *ProjectsLocationsDatasetsDicomStoresStudiesStoreInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19223,7 +19550,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesDeleteCall) Header() h func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19385,7 +19712,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall) func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19517,7 +19844,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall) He func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19649,7 +19976,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19767,7 +20094,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesDeleteCall) H func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19930,7 +20257,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInsta func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInstanceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20063,7 +20390,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetad func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetadataCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20196,7 +20523,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRende func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRenderedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20327,7 +20654,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetriev func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveFramesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20460,7 +20787,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetriev func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveRenderedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20579,7 +20906,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Header() http.Header { func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20730,7 +21057,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresDeidentifyCall) Header() http.Header func (c *ProjectsLocationsDatasetsFhirStoresDeidentifyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20869,7 +21196,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Header() http.Header { func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21009,7 +21336,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Header() http.Header { func (c *ProjectsLocationsDatasetsFhirStoresExportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21158,7 +21485,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Header() http.Header { func (c *ProjectsLocationsDatasetsFhirStoresGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21319,7 +21646,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Header() http.Head func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21514,7 +21841,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Header() http.Header { func (c *ProjectsLocationsDatasetsFhirStoresImportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21688,7 +22015,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresListCall) Header() http.Header { func (c *ProjectsLocationsDatasetsFhirStoresListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21868,7 +22195,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Header() http.Header { func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22016,7 +22343,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Header() http.Head func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22161,7 +22488,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Header() htt func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22368,7 +22695,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall) H func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22544,7 +22871,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall) Header( func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22696,7 +23023,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) Header() h func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22886,7 +23213,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Header() func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23024,7 +23351,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Header() http func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23181,7 +23508,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) Header() http. func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23302,7 +23629,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Header() func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23470,7 +23797,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) Header() h func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23613,7 +23940,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) Header() func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23753,7 +24080,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) Header() http.Header func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23875,7 +24202,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) Header() http.Header func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24014,7 +24341,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) Header() http func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24183,7 +24510,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Header() http.Heade func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24323,7 +24650,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) Header() http.Header func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24453,7 +24780,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) Header() http.Header { func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24603,7 +24930,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Header() http.Header func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24731,7 +25058,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) Header() http.Header func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24856,7 +25183,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) Header() http.Header func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24966,7 +25293,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Header() http.Header { func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25110,7 +25437,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Header() http.Header { func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25249,7 +25576,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresExportCall) Header() http.Header { func (c *ProjectsLocationsDatasetsHl7V2StoresExportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25398,7 +25725,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Header() http.Header { func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25559,7 +25886,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Header() http.Hea func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25725,7 +26052,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresImportCall) Header() http.Header { func (c *ProjectsLocationsDatasetsHl7V2StoresImportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -25899,7 +26226,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Header() http.Header { func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26079,7 +26406,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Header() http.Header { func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26227,7 +26554,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Header() http.Hea func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26372,7 +26699,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Header() ht func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26517,7 +26844,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Header() http.H func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26655,7 +26982,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Header() http.H func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26816,7 +27143,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Header() http.Head func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -26981,7 +27308,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Header() http.H func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27189,7 +27516,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Header() http.Hea func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27400,7 +27727,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Header() http.He func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27555,7 +27882,7 @@ func (c *ProjectsLocationsDatasetsOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsDatasetsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27706,7 +28033,7 @@ func (c *ProjectsLocationsDatasetsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsDatasetsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -27880,7 +28207,7 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsDatasetsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -28005,3 +28332,145 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) Pages(ctx context.Context, c.PageToken(x.NextPageToken) } } + +// method id "healthcare.projects.locations.services.nlp.analyzeEntities": + +type ProjectsLocationsServicesNlpAnalyzeEntitiesCall struct { + s *Service + nlpService string + analyzeentitiesrequest *AnalyzeEntitiesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// AnalyzeEntities: Analyze heathcare entity in a document. Its response +// includes the recognized entity mentions and the relationships between +// them. AnalyzeEntities uses context aware models to detect entities. +func (r *ProjectsLocationsServicesNlpService) AnalyzeEntities(nlpService string, analyzeentitiesrequest *AnalyzeEntitiesRequest) *ProjectsLocationsServicesNlpAnalyzeEntitiesCall { + c := &ProjectsLocationsServicesNlpAnalyzeEntitiesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.nlpService = nlpService + c.analyzeentitiesrequest = analyzeentitiesrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsServicesNlpAnalyzeEntitiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesNlpAnalyzeEntitiesCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsServicesNlpAnalyzeEntitiesCall) Context(ctx context.Context) *ProjectsLocationsServicesNlpAnalyzeEntitiesCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsServicesNlpAnalyzeEntitiesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsServicesNlpAnalyzeEntitiesCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.analyzeentitiesrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+nlpService}:analyzeEntities") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "nlpService": c.nlpService, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "healthcare.projects.locations.services.nlp.analyzeEntities" call. +// Exactly one of *AnalyzeEntitiesResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *AnalyzeEntitiesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsServicesNlpAnalyzeEntitiesCall) Do(opts ...googleapi.CallOption) (*AnalyzeEntitiesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &AnalyzeEntitiesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Analyze heathcare entity in a document. Its response includes the recognized entity mentions and the relationships between them. AnalyzeEntities uses context aware models to detect entities.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/services/nlp:analyzeEntities", + // "httpMethod": "POST", + // "id": "healthcare.projects.locations.services.nlp.analyzeEntities", + // "parameterOrder": [ + // "nlpService" + // ], + // "parameters": { + // "nlpService": { + // "description": "The resource name of the service of the form: \"projects/{project_id}/locations/{location_id}/services/nlp\".", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/services/nlp$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+nlpService}:analyzeEntities", + // "request": { + // "$ref": "AnalyzeEntitiesRequest" + // }, + // "response": { + // "$ref": "AnalyzeEntitiesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} diff --git a/homegraph/v1/homegraph-gen.go b/homegraph/v1/homegraph-gen.go index 696f2f9c47b..912f4eb3acf 100644 --- a/homegraph/v1/homegraph-gen.go +++ b/homegraph/v1/homegraph-gen.go @@ -910,7 +910,7 @@ func (c *AgentUsersDeleteCall) Header() http.Header { func (c *AgentUsersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1049,7 +1049,7 @@ func (c *DevicesQueryCall) Header() http.Header { func (c *DevicesQueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1186,7 +1186,7 @@ func (c *DevicesReportStateAndNotificationCall) Header() http.Header { func (c *DevicesReportStateAndNotificationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1318,7 +1318,7 @@ func (c *DevicesRequestSyncCall) Header() http.Header { func (c *DevicesRequestSyncCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1446,7 +1446,7 @@ func (c *DevicesSyncCall) Header() http.Header { func (c *DevicesSyncCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/iam/v1/iam-api.json b/iam/v1/iam-api.json index d8557db0c75..8ebf4eb8c40 100644 --- a/iam/v1/iam-api.json +++ b/iam/v1/iam-api.json @@ -11,8 +11,8 @@ "basePath": "", "baseUrl": "https://iam.googleapis.com/", "batchPath": "batch", - "canonicalName": "iam", - "description": " Manages identity and access control for Google Cloud Platform resources, including the creation of service accounts, which you can use to authenticate to Google and make API calls. *Note:* This API is tied to the IAM service account credentials API ( iamcredentials.googleapis.com). Enabling or disabling this API will also enable or disable the IAM service account credentials API. ", + "canonicalName": "Iam", + "description": "Manages identity and access control for Google Cloud Platform resources, including the creation of service accounts, which you can use to authenticate to Google and make API calls. ", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/iam/", "fullyEncodeReservedExpansion": true, @@ -377,6 +377,76 @@ }, "projects": { "resources": { + "locations": { + "resources": { + "workloadIdentityPools": { + "resources": { + "operations": { + "methods": { + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "iam.projects.locations.workloadIdentityPools.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "providers": { + "resources": { + "operations": { + "methods": { + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/providers/{providersId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "iam.projects.locations.workloadIdentityPools.providers.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+/providers/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + } + } + }, "roles": { "methods": { "create": { @@ -1250,7 +1320,7 @@ } } }, - "revision": "20200910", + "revision": "20201112", "rootUrl": "https://iam.googleapis.com/", "schemas": { "AdminAuditData": { @@ -1338,10 +1408,6 @@ "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { - "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", - "type": "string" - }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." @@ -1634,6 +1700,41 @@ }, "type": "object" }, + "Operation": { + "description": "This resource represents a long-running operation that is the result of a network API call.", + "id": "Operation", + "properties": { + "done": { + "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", + "type": "boolean" + }, + "error": { + "$ref": "Status", + "description": "The error result of the operation in case of failure or cancellation." + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "type": "object" + }, + "name": { + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", + "type": "string" + }, + "response": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "type": "object" + } + }, + "type": "object" + }, "PatchServiceAccountRequest": { "description": "The request for PatchServiceAccount. You can patch only the `display_name` and `description` fields. You must use the `update_mask` field to specify which of these fields you want to patch. Only the fields specified in the request are guaranteed to be returned in the response. Other fields may be empty in the response.", "id": "PatchServiceAccountRequest", @@ -1991,7 +2092,7 @@ "type": "object" }, "ServiceAccountKey": { - "description": "Represents a service account key. A service account has two sets of key-pairs: user-managed, and system-managed. User-managed key-pairs can be created and deleted by users. Users are responsible for rotating these keys periodically to ensure security of their service accounts. Users retain the private key of these key-pairs, and Google retains ONLY the public key. System-managed keys are automatically rotated by Google, and are used for signing for a maximum of two weeks. The rotation process is probabilistic, and usage of the new key will gradually ramp up and down over the key's lifetime. We recommend caching the public key set for a service account for no more than 24 hours to ensure you have access to the latest keys. Public keys for all service accounts are also published at the OAuth2 Service Account API.", + "description": "Represents a service account key. A service account has two sets of key-pairs: user-managed, and system-managed. User-managed key-pairs can be created and deleted by users. Users are responsible for rotating these keys periodically to ensure security of their service accounts. Users retain the private key of these key-pairs, and Google retains ONLY the public key. System-managed keys are automatically rotated by Google, and are used for signing for a maximum of two weeks. The rotation process is probabilistic, and usage of the new key will gradually ramp up and down over the key's lifetime. If you cache the public key set for a service account, we recommend that you update the cache every 15 minutes. User-managed keys can be added and removed at any time, so it is important to update the cache frequently. For Google-managed keys, Google will publish a key at least 6 hours before it is first used for signing and will keep publishing it for at least 6 hours after it was last used for signing. Public keys for all service accounts are also published at the OAuth2 Service Account API.", "id": "ServiceAccountKey", "properties": { "keyAlgorithm": { @@ -2147,6 +2248,33 @@ }, "type": "object" }, + "Status": { + "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", + "id": "Status", + "properties": { + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "format": "int32", + "type": "integer" + }, + "details": { + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", + "type": "string" + } + }, + "type": "object" + }, "TestIamPermissionsRequest": { "description": "Request message for `TestIamPermissions` method.", "id": "TestIamPermissionsRequest", diff --git a/iam/v1/iam-gen.go b/iam/v1/iam-gen.go index 2cbf36aa462..542ed16c24d 100644 --- a/iam/v1/iam-gen.go +++ b/iam/v1/iam-gen.go @@ -188,6 +188,7 @@ type PermissionsService struct { func NewProjectsService(s *Service) *ProjectsService { rs := &ProjectsService{s: s} + rs.Locations = NewProjectsLocationsService(s) rs.Roles = NewProjectsRolesService(s) rs.ServiceAccounts = NewProjectsServiceAccountsService(s) return rs @@ -196,11 +197,70 @@ func NewProjectsService(s *Service) *ProjectsService { type ProjectsService struct { s *Service + Locations *ProjectsLocationsService + Roles *ProjectsRolesService ServiceAccounts *ProjectsServiceAccountsService } +func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { + rs := &ProjectsLocationsService{s: s} + rs.WorkloadIdentityPools = NewProjectsLocationsWorkloadIdentityPoolsService(s) + return rs +} + +type ProjectsLocationsService struct { + s *Service + + WorkloadIdentityPools *ProjectsLocationsWorkloadIdentityPoolsService +} + +func NewProjectsLocationsWorkloadIdentityPoolsService(s *Service) *ProjectsLocationsWorkloadIdentityPoolsService { + rs := &ProjectsLocationsWorkloadIdentityPoolsService{s: s} + rs.Operations = NewProjectsLocationsWorkloadIdentityPoolsOperationsService(s) + rs.Providers = NewProjectsLocationsWorkloadIdentityPoolsProvidersService(s) + return rs +} + +type ProjectsLocationsWorkloadIdentityPoolsService struct { + s *Service + + Operations *ProjectsLocationsWorkloadIdentityPoolsOperationsService + + Providers *ProjectsLocationsWorkloadIdentityPoolsProvidersService +} + +func NewProjectsLocationsWorkloadIdentityPoolsOperationsService(s *Service) *ProjectsLocationsWorkloadIdentityPoolsOperationsService { + rs := &ProjectsLocationsWorkloadIdentityPoolsOperationsService{s: s} + return rs +} + +type ProjectsLocationsWorkloadIdentityPoolsOperationsService struct { + s *Service +} + +func NewProjectsLocationsWorkloadIdentityPoolsProvidersService(s *Service) *ProjectsLocationsWorkloadIdentityPoolsProvidersService { + rs := &ProjectsLocationsWorkloadIdentityPoolsProvidersService{s: s} + rs.Operations = NewProjectsLocationsWorkloadIdentityPoolsProvidersOperationsService(s) + return rs +} + +type ProjectsLocationsWorkloadIdentityPoolsProvidersService struct { + s *Service + + Operations *ProjectsLocationsWorkloadIdentityPoolsProvidersOperationsService +} + +func NewProjectsLocationsWorkloadIdentityPoolsProvidersOperationsService(s *Service) *ProjectsLocationsWorkloadIdentityPoolsProvidersOperationsService { + rs := &ProjectsLocationsWorkloadIdentityPoolsProvidersOperationsService{s: s} + return rs +} + +type ProjectsLocationsWorkloadIdentityPoolsProvidersOperationsService struct { + s *Service +} + func NewProjectsRolesService(s *Service) *ProjectsRolesService { rs := &ProjectsRolesService{s: s} return rs @@ -431,10 +491,6 @@ func (s *AuditableService) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. - BindingId string `json:"bindingId,omitempty"` - // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -484,7 +540,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "BindingId") to + // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -492,7 +548,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BindingId") to include in + // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -1009,6 +1065,68 @@ func (s *ListServiceAccountsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Operation: This resource represents a long-running operation that is +// the result of a network API call. +type Operation struct { + // Done: If the value is `false`, it means the operation is still in + // progress. If `true`, the operation is completed, and either `error` + // or `response` is available. + Done bool `json:"done,omitempty"` + + // Error: The error result of the operation in case of failure or + // cancellation. + Error *Status `json:"error,omitempty"` + + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as + // create time. Some services might not provide such metadata. Any + // method that returns a long-running operation should document the + // metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: The server-assigned name, which is only unique within the same + // service that originally returns it. If you use the default HTTP + // mapping, the `name` should be a resource name ending with + // `operations/{unique_id}`. + Name string `json:"name,omitempty"` + + // Response: The normal response of the operation in case of success. If + // the original method returns no data on success, such as `Delete`, the + // response is `google.protobuf.Empty`. If the original method is + // standard `Get`/`Create`/`Update`, the response should be the + // resource. For other methods, the response should have the type + // `XxxResponse`, where `Xxx` is the original method name. For example, + // if the original method name is `TakeSnapshot()`, the inferred + // response type is `TakeSnapshotResponse`. + Response googleapi.RawMessage `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Done") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Done") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Operation) MarshalJSON() ([]byte, error) { + type NoMethod Operation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // PatchServiceAccountRequest: The request for PatchServiceAccount. You // can patch only the `display_name` and `description` fields. You must // use the `update_mask` field to specify which of these fields you want @@ -1668,10 +1786,14 @@ func (s *ServiceAccount) MarshalJSON() ([]byte, error) { // keys are automatically rotated by Google, and are used for signing // for a maximum of two weeks. The rotation process is probabilistic, // and usage of the new key will gradually ramp up and down over the -// key's lifetime. We recommend caching the public key set for a service -// account for no more than 24 hours to ensure you have access to the -// latest keys. Public keys for all service accounts are also published -// at the OAuth2 Service Account API. +// key's lifetime. If you cache the public key set for a service +// account, we recommend that you update the cache every 15 minutes. +// User-managed keys can be added and removed at any time, so it is +// important to update the cache frequently. For Google-managed keys, +// Google will publish a key at least 6 hours before it is first used +// for signing and will keep publishing it for at least 6 hours after it +// was last used for signing. Public keys for all service accounts are +// also published at the OAuth2 Service Account API. type ServiceAccountKey struct { // KeyAlgorithm: Specifies the algorithm (and possibly key size) for the // key. @@ -1959,6 +2081,50 @@ func (s *SignJwtResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Status: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs +// and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each +// `Status` message contains three pieces of data: error code, error +// message, and error details. You can find out more about this error +// model and how to work with it in the [API Design +// Guide](https://cloud.google.com/apis/design/errors). +type Status struct { + // Code: The status code, which should be an enum value of + // google.rpc.Code. + Code int64 `json:"code,omitempty"` + + // Details: A list of messages that carry the error details. There is a + // common set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Status) MarshalJSON() ([]byte, error) { + type NoMethod Status + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // TestIamPermissionsRequest: Request message for `TestIamPermissions` // method. type TestIamPermissionsRequest struct { @@ -2169,7 +2335,7 @@ func (c *IamPoliciesLintPolicyCall) Header() http.Header { func (c *IamPoliciesLintPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2297,7 +2463,7 @@ func (c *IamPoliciesQueryAuditableServicesCall) Header() http.Header { func (c *IamPoliciesQueryAuditableServicesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2424,7 +2590,7 @@ func (c *OrganizationsRolesCreateCall) Header() http.Header { func (c *OrganizationsRolesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2577,7 +2743,7 @@ func (c *OrganizationsRolesDeleteCall) Header() http.Header { func (c *OrganizationsRolesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2724,7 +2890,7 @@ func (c *OrganizationsRolesGetCall) Header() http.Header { func (c *OrganizationsRolesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2906,7 +3072,7 @@ func (c *OrganizationsRolesListCall) Header() http.Header { func (c *OrganizationsRolesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3098,7 +3264,7 @@ func (c *OrganizationsRolesPatchCall) Header() http.Header { func (c *OrganizationsRolesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3244,7 +3410,7 @@ func (c *OrganizationsRolesUndeleteCall) Header() http.Header { func (c *OrganizationsRolesUndeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3384,7 +3550,7 @@ func (c *PermissionsQueryTestablePermissionsCall) Header() http.Header { func (c *PermissionsQueryTestablePermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3486,6 +3652,298 @@ func (c *PermissionsQueryTestablePermissionsCall) Pages(ctx context.Context, f f } } +// method id "iam.projects.locations.workloadIdentityPools.operations.get": + +type ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +func (r *ProjectsLocationsWorkloadIdentityPoolsOperationsService) Get(name string) *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall { + c := &ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "iam.projects.locations.workloadIdentityPools.operations.get" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "iam.projects.locations.workloadIdentityPools.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "iam.projects.locations.workloadIdentityPools.providers.operations.get": + +type ProjectsLocationsWorkloadIdentityPoolsProvidersOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +func (r *ProjectsLocationsWorkloadIdentityPoolsProvidersOperationsService) Get(name string) *ProjectsLocationsWorkloadIdentityPoolsProvidersOperationsGetCall { + c := &ProjectsLocationsWorkloadIdentityPoolsProvidersOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsProvidersOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkloadIdentityPoolsProvidersOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsProvidersOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "iam.projects.locations.workloadIdentityPools.providers.operations.get" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/providers/{providersId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "iam.projects.locations.workloadIdentityPools.providers.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+/providers/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "iam.projects.roles.create": type ProjectsRolesCreateCall struct { @@ -3532,7 +3990,7 @@ func (c *ProjectsRolesCreateCall) Header() http.Header { func (c *ProjectsRolesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3685,7 +4143,7 @@ func (c *ProjectsRolesDeleteCall) Header() http.Header { func (c *ProjectsRolesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3832,7 +4290,7 @@ func (c *ProjectsRolesGetCall) Header() http.Header { func (c *ProjectsRolesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4014,7 +4472,7 @@ func (c *ProjectsRolesListCall) Header() http.Header { func (c *ProjectsRolesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4206,7 +4664,7 @@ func (c *ProjectsRolesPatchCall) Header() http.Header { func (c *ProjectsRolesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4352,7 +4810,7 @@ func (c *ProjectsRolesUndeleteCall) Header() http.Header { func (c *ProjectsRolesUndeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4492,7 +4950,7 @@ func (c *ProjectsServiceAccountsCreateCall) Header() http.Header { func (c *ProjectsServiceAccountsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4641,7 +5099,7 @@ func (c *ProjectsServiceAccountsDeleteCall) Header() http.Header { func (c *ProjectsServiceAccountsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4784,7 +5242,7 @@ func (c *ProjectsServiceAccountsDisableCall) Header() http.Header { func (c *ProjectsServiceAccountsDisableCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4929,7 +5387,7 @@ func (c *ProjectsServiceAccountsEnableCall) Header() http.Header { func (c *ProjectsServiceAccountsEnableCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5078,7 +5536,7 @@ func (c *ProjectsServiceAccountsGetCall) Header() http.Header { func (c *ProjectsServiceAccountsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5234,7 +5692,7 @@ func (c *ProjectsServiceAccountsGetIamPolicyCall) Header() http.Header { func (c *ProjectsServiceAccountsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5399,7 +5857,7 @@ func (c *ProjectsServiceAccountsListCall) Header() http.Header { func (c *ProjectsServiceAccountsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5566,7 +6024,7 @@ func (c *ProjectsServiceAccountsPatchCall) Header() http.Header { func (c *ProjectsServiceAccountsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5718,7 +6176,7 @@ func (c *ProjectsServiceAccountsSetIamPolicyCall) Header() http.Header { func (c *ProjectsServiceAccountsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5866,7 +6324,7 @@ func (c *ProjectsServiceAccountsSignBlobCall) Header() http.Header { func (c *ProjectsServiceAccountsSignBlobCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6014,7 +6472,7 @@ func (c *ProjectsServiceAccountsSignJwtCall) Header() http.Header { func (c *ProjectsServiceAccountsSignJwtCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6155,7 +6613,7 @@ func (c *ProjectsServiceAccountsTestIamPermissionsCall) Header() http.Header { func (c *ProjectsServiceAccountsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6300,7 +6758,7 @@ func (c *ProjectsServiceAccountsUndeleteCall) Header() http.Header { func (c *ProjectsServiceAccountsUndeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6442,7 +6900,7 @@ func (c *ProjectsServiceAccountsUpdateCall) Header() http.Header { func (c *ProjectsServiceAccountsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6582,7 +7040,7 @@ func (c *ProjectsServiceAccountsKeysCreateCall) Header() http.Header { func (c *ProjectsServiceAccountsKeysCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6722,7 +7180,7 @@ func (c *ProjectsServiceAccountsKeysDeleteCall) Header() http.Header { func (c *ProjectsServiceAccountsKeysDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6876,7 +7334,7 @@ func (c *ProjectsServiceAccountsKeysGetCall) Header() http.Header { func (c *ProjectsServiceAccountsKeysGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7052,7 +7510,7 @@ func (c *ProjectsServiceAccountsKeysListCall) Header() http.Header { func (c *ProjectsServiceAccountsKeysListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7204,7 +7662,7 @@ func (c *ProjectsServiceAccountsKeysUploadCall) Header() http.Header { func (c *ProjectsServiceAccountsKeysUploadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7353,7 +7811,7 @@ func (c *RolesGetCall) Header() http.Header { func (c *RolesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7560,7 +8018,7 @@ func (c *RolesListCall) Header() http.Header { func (c *RolesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7738,7 +8196,7 @@ func (c *RolesQueryGrantableRolesCall) Header() http.Header { func (c *RolesQueryGrantableRolesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/iamcredentials/v1/iamcredentials-api.json b/iamcredentials/v1/iamcredentials-api.json index e9b421cf2a1..81f3291d56a 100644 --- a/iamcredentials/v1/iamcredentials-api.json +++ b/iamcredentials/v1/iamcredentials-api.json @@ -12,7 +12,7 @@ "baseUrl": "https://iamcredentials.googleapis.com/", "batchPath": "batch", "canonicalName": "IAM Credentials", - "description": " Creates short-lived credentials for impersonating IAM service accounts. *Note:* This API is tied to the IAM API (iam.googleapis.com). Enabling or disabling this API will also enable or disable the IAM API. ", + "description": "Creates short-lived credentials for impersonating IAM service accounts. To enable this API, you must enable the IAM API (iam.googleapis.com). ", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials", "fullyEncodeReservedExpansion": true, @@ -226,7 +226,7 @@ } } }, - "revision": "20200821", + "revision": "20201022", "rootUrl": "https://iamcredentials.googleapis.com/", "schemas": { "GenerateAccessTokenRequest": { diff --git a/iamcredentials/v1/iamcredentials-gen.go b/iamcredentials/v1/iamcredentials-gen.go index 4d4afde2637..e6ebde689fb 100644 --- a/iamcredentials/v1/iamcredentials-gen.go +++ b/iamcredentials/v1/iamcredentials-gen.go @@ -546,7 +546,7 @@ func (c *ProjectsServiceAccountsGenerateAccessTokenCall) Header() http.Header { func (c *ProjectsServiceAccountsGenerateAccessTokenCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -687,7 +687,7 @@ func (c *ProjectsServiceAccountsGenerateIdTokenCall) Header() http.Header { func (c *ProjectsServiceAccountsGenerateIdTokenCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -828,7 +828,7 @@ func (c *ProjectsServiceAccountsSignBlobCall) Header() http.Header { func (c *ProjectsServiceAccountsSignBlobCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -969,7 +969,7 @@ func (c *ProjectsServiceAccountsSignJwtCall) Header() http.Header { func (c *ProjectsServiceAccountsSignJwtCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/iap/v1/iap-api.json b/iap/v1/iap-api.json index e8937106889..852f03aa03f 100644 --- a/iap/v1/iap-api.json +++ b/iap/v1/iap-api.json @@ -487,7 +487,7 @@ } } }, - "revision": "20200903", + "revision": "20201030", "rootUrl": "https://iap.googleapis.com/", "schemas": { "AccessDeniedPageSettings": { @@ -548,7 +548,6 @@ "id": "Binding", "properties": { "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", "type": "string" }, "condition": { @@ -762,10 +761,6 @@ "description": "Configuration for OAuth login\u0026consent flow behavior as well as for OAuth Credentials.", "id": "OAuthSettings", "properties": { - "clientId": { - "description": "OAuth 2.0 client ID used in the OAuth flow to generate an access token. If this field is set, you can skip obtaining the OAuth credentials in this step: https://developers.google.com/identity/protocols/OAuth2?hl=en_US#1.-obtain-oauth-2.0-credentials-from-the-google-api-console. However, this could allow for client sharing. The risks of client sharing are outlined here: https://cloud.google.com/iap/docs/sharing-oauth-clients#risks.", - "type": "string" - }, "loginHint": { "description": "Domain hint to send as hd=? parameter in OAuth request flow. Enables redirect to primary IDP by skipping Google's login screen. https://developers.google.com/identity/protocols/OpenIDConnect#hd-param Note: IAP does not verify that the id token's hd claim matches this value since access behavior is managed by IAM policies.", "type": "string" diff --git a/iap/v1/iap-gen.go b/iap/v1/iap-gen.go index 18945f9106d..ba994d96b29 100644 --- a/iap/v1/iap-gen.go +++ b/iap/v1/iap-gen.go @@ -293,8 +293,6 @@ func (s *ApplicationSettings) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. BindingId string `json:"bindingId,omitempty"` // Condition: The condition that is associated with this binding. If the @@ -814,13 +812,6 @@ func (s *ListIdentityAwareProxyClientsResponse) MarshalJSON() ([]byte, error) { // OAuthSettings: Configuration for OAuth login&consent flow behavior as // well as for OAuth Credentials. type OAuthSettings struct { - // ClientId: OAuth 2.0 client ID used in the OAuth flow to generate an - // access token. If this field is set, you can skip obtaining the OAuth - // credentials in this step: - // https://developers.google.com/identity/protocols/OAuth2?hl=en_US#1.-obtain-oauth-2.0-credentials-from-the-google-api-console. However, this could allow for client sharing. The risks of client sharing are outlined here: - // https://cloud.google.com/iap/docs/sharing-oauth-clients#risks. - ClientId string `json:"clientId,omitempty"` - // LoginHint: Domain hint to send as hd=? parameter in OAuth request // flow. Enables redirect to primary IDP by skipping Google's login // screen. @@ -828,7 +819,7 @@ type OAuthSettings struct { // policies. LoginHint string `json:"loginHint,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientId") to + // ForceSendFields is a list of field names (e.g. "LoginHint") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -836,7 +827,7 @@ type OAuthSettings struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClientId") to include in + // NullFields is a list of field names (e.g. "LoginHint") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -1255,7 +1246,7 @@ func (c *ProjectsBrandsCreateCall) Header() http.Header { func (c *ProjectsBrandsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1404,7 +1395,7 @@ func (c *ProjectsBrandsGetCall) Header() http.Header { func (c *ProjectsBrandsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1548,7 +1539,7 @@ func (c *ProjectsBrandsListCall) Header() http.Header { func (c *ProjectsBrandsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1685,7 +1676,7 @@ func (c *ProjectsBrandsIdentityAwareProxyClientsCreateCall) Header() http.Header func (c *ProjectsBrandsIdentityAwareProxyClientsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1826,7 +1817,7 @@ func (c *ProjectsBrandsIdentityAwareProxyClientsDeleteCall) Header() http.Header func (c *ProjectsBrandsIdentityAwareProxyClientsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1968,7 +1959,7 @@ func (c *ProjectsBrandsIdentityAwareProxyClientsGetCall) Header() http.Header { func (c *ProjectsBrandsIdentityAwareProxyClientsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2131,7 +2122,7 @@ func (c *ProjectsBrandsIdentityAwareProxyClientsListCall) Header() http.Header { func (c *ProjectsBrandsIdentityAwareProxyClientsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2301,7 +2292,7 @@ func (c *ProjectsBrandsIdentityAwareProxyClientsResetSecretCall) Header() http.H func (c *ProjectsBrandsIdentityAwareProxyClientsResetSecretCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2444,7 +2435,7 @@ func (c *V1GetIamPolicyCall) Header() http.Header { func (c *V1GetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2594,7 +2585,7 @@ func (c *V1GetIapSettingsCall) Header() http.Header { func (c *V1GetIapSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2732,7 +2723,7 @@ func (c *V1SetIamPolicyCall) Header() http.Header { func (c *V1SetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2875,7 +2866,7 @@ func (c *V1TestIamPermissionsCall) Header() http.Header { func (c *V1TestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3026,7 +3017,7 @@ func (c *V1UpdateIapSettingsCall) Header() http.Header { func (c *V1UpdateIapSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/iap/v1beta1/iap-api.json b/iap/v1beta1/iap-api.json index a4426972cb4..fa44a9916db 100644 --- a/iap/v1beta1/iap-api.json +++ b/iap/v1beta1/iap-api.json @@ -194,7 +194,7 @@ } } }, - "revision": "20200903", + "revision": "20201030", "rootUrl": "https://iap.googleapis.com/", "schemas": { "Binding": { @@ -202,7 +202,6 @@ "id": "Binding", "properties": { "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", "type": "string" }, "condition": { diff --git a/iap/v1beta1/iap-gen.go b/iap/v1beta1/iap-gen.go index 5810a34c7c8..67fec472d16 100644 --- a/iap/v1beta1/iap-gen.go +++ b/iap/v1beta1/iap-gen.go @@ -146,8 +146,6 @@ type V1beta1Service struct { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. BindingId string `json:"bindingId,omitempty"` // Condition: The condition that is associated with this binding. If the @@ -594,7 +592,7 @@ func (c *V1beta1GetIamPolicyCall) Header() http.Header { func (c *V1beta1GetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -737,7 +735,7 @@ func (c *V1beta1SetIamPolicyCall) Header() http.Header { func (c *V1beta1SetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -882,7 +880,7 @@ func (c *V1beta1TestIamPermissionsCall) Header() http.Header { func (c *V1beta1TestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/identitytoolkit/v3/identitytoolkit-gen.go b/identitytoolkit/v3/identitytoolkit-gen.go index 8ced562e75e..bd334270660 100644 --- a/identitytoolkit/v3/identitytoolkit-gen.go +++ b/identitytoolkit/v3/identitytoolkit-gen.go @@ -2461,7 +2461,7 @@ func (c *RelyingpartyCreateAuthUriCall) Header() http.Header { func (c *RelyingpartyCreateAuthUriCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2583,7 +2583,7 @@ func (c *RelyingpartyDeleteAccountCall) Header() http.Header { func (c *RelyingpartyDeleteAccountCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2705,7 +2705,7 @@ func (c *RelyingpartyDownloadAccountCall) Header() http.Header { func (c *RelyingpartyDownloadAccountCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2849,7 +2849,7 @@ func (c *RelyingpartyEmailLinkSigninCall) Header() http.Header { func (c *RelyingpartyEmailLinkSigninCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2971,7 +2971,7 @@ func (c *RelyingpartyGetAccountInfoCall) Header() http.Header { func (c *RelyingpartyGetAccountInfoCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3093,7 +3093,7 @@ func (c *RelyingpartyGetOobConfirmationCodeCall) Header() http.Header { func (c *RelyingpartyGetOobConfirmationCodeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3239,7 +3239,7 @@ func (c *RelyingpartyGetProjectConfigCall) Header() http.Header { func (c *RelyingpartyGetProjectConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3379,7 +3379,7 @@ func (c *RelyingpartyGetPublicKeysCall) Header() http.Header { func (c *RelyingpartyGetPublicKeysCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3485,7 +3485,7 @@ func (c *RelyingpartyGetRecaptchaParamCall) Header() http.Header { func (c *RelyingpartyGetRecaptchaParamCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3602,7 +3602,7 @@ func (c *RelyingpartyResetPasswordCall) Header() http.Header { func (c *RelyingpartyResetPasswordCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3724,7 +3724,7 @@ func (c *RelyingpartySendVerificationCodeCall) Header() http.Header { func (c *RelyingpartySendVerificationCodeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3849,7 +3849,7 @@ func (c *RelyingpartySetAccountInfoCall) Header() http.Header { func (c *RelyingpartySetAccountInfoCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3971,7 +3971,7 @@ func (c *RelyingpartySetProjectConfigCall) Header() http.Header { func (c *RelyingpartySetProjectConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4095,7 +4095,7 @@ func (c *RelyingpartySignOutUserCall) Header() http.Header { func (c *RelyingpartySignOutUserCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4219,7 +4219,7 @@ func (c *RelyingpartySignupNewUserCall) Header() http.Header { func (c *RelyingpartySignupNewUserCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4341,7 +4341,7 @@ func (c *RelyingpartyUploadAccountCall) Header() http.Header { func (c *RelyingpartyUploadAccountCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4464,7 +4464,7 @@ func (c *RelyingpartyVerifyAssertionCall) Header() http.Header { func (c *RelyingpartyVerifyAssertionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4586,7 +4586,7 @@ func (c *RelyingpartyVerifyCustomTokenCall) Header() http.Header { func (c *RelyingpartyVerifyCustomTokenCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4708,7 +4708,7 @@ func (c *RelyingpartyVerifyPasswordCall) Header() http.Header { func (c *RelyingpartyVerifyPasswordCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4831,7 +4831,7 @@ func (c *RelyingpartyVerifyPhoneNumberCall) Header() http.Header { func (c *RelyingpartyVerifyPhoneNumberCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/indexing/v3/indexing-gen.go b/indexing/v3/indexing-gen.go index e920efa244c..78555e1ccba 100644 --- a/indexing/v3/indexing-gen.go +++ b/indexing/v3/indexing-gen.go @@ -324,7 +324,7 @@ func (c *UrlNotificationsGetMetadataCall) Header() http.Header { func (c *UrlNotificationsGetMetadataCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -450,7 +450,7 @@ func (c *UrlNotificationsPublishCall) Header() http.Header { func (c *UrlNotificationsPublishCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/internal/settings.go b/internal/settings.go index 26259b82abb..7c0f9292d50 100644 --- a/internal/settings.go +++ b/internal/settings.go @@ -41,6 +41,7 @@ type DialSettings struct { CustomClaims map[string]interface{} SkipValidation bool ImpersonationConfig *impersonate.Config + EnableDirectPath bool // Google API system parameters. For more information please read: // https://cloud.google.com/apis/docs/system-parameters diff --git a/internal/version/version.go b/internal/version/version.go index eae5620eca7..4e5aa12b2ed 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -10,4 +10,4 @@ package version // Repo is the current version of the client libraries in this // repo. It should be a date in YYYYMMDD format. -const Repo = "20201023" +const Repo = "20201123" diff --git a/jobs/v2/jobs-gen.go b/jobs/v2/jobs-gen.go index f69d8e3d4e6..369fa816218 100644 --- a/jobs/v2/jobs-gen.go +++ b/jobs/v2/jobs-gen.go @@ -5527,7 +5527,7 @@ func (c *CompaniesCreateCall) Header() http.Header { func (c *CompaniesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5653,7 +5653,7 @@ func (c *CompaniesDeleteCall) Header() http.Header { func (c *CompaniesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5795,7 +5795,7 @@ func (c *CompaniesGetCall) Header() http.Header { func (c *CompaniesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5963,7 +5963,7 @@ func (c *CompaniesListCall) Header() http.Header { func (c *CompaniesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6141,7 +6141,7 @@ func (c *CompaniesPatchCall) Header() http.Header { func (c *CompaniesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6340,7 +6340,7 @@ func (c *CompaniesJobsListCall) Header() http.Header { func (c *CompaniesJobsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6521,7 +6521,7 @@ func (c *JobsBatchDeleteCall) Header() http.Header { func (c *JobsBatchDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6648,7 +6648,7 @@ func (c *JobsCreateCall) Header() http.Header { func (c *JobsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6785,7 +6785,7 @@ func (c *JobsDeleteCall) Header() http.Header { func (c *JobsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6924,7 +6924,7 @@ func (c *JobsDeleteByFilterCall) Header() http.Header { func (c *JobsDeleteByFilterCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7062,7 +7062,7 @@ func (c *JobsGetCall) Header() http.Header { func (c *JobsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7203,7 +7203,7 @@ func (c *JobsHistogramCall) Header() http.Header { func (c *JobsHistogramCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7375,7 +7375,7 @@ func (c *JobsListCall) Header() http.Header { func (c *JobsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7543,7 +7543,7 @@ func (c *JobsPatchCall) Header() http.Header { func (c *JobsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7684,7 +7684,7 @@ func (c *JobsSearchCall) Header() http.Header { func (c *JobsSearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7838,7 +7838,7 @@ func (c *JobsSearchForAlertCall) Header() http.Header { func (c *JobsSearchForAlertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8058,7 +8058,7 @@ func (c *V2CompleteCall) Header() http.Header { func (c *V2CompleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/jobs/v3/jobs-gen.go b/jobs/v3/jobs-gen.go index 9d01f2ec661..686118d2d50 100644 --- a/jobs/v3/jobs-gen.go +++ b/jobs/v3/jobs-gen.go @@ -4881,7 +4881,7 @@ func (c *ProjectsCompleteCall) Header() http.Header { func (c *ProjectsCompleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5082,7 +5082,7 @@ func (c *ProjectsClientEventsCreateCall) Header() http.Header { func (c *ProjectsClientEventsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5223,7 +5223,7 @@ func (c *ProjectsCompaniesCreateCall) Header() http.Header { func (c *ProjectsCompaniesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5363,7 +5363,7 @@ func (c *ProjectsCompaniesDeleteCall) Header() http.Header { func (c *ProjectsCompaniesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5505,7 +5505,7 @@ func (c *ProjectsCompaniesGetCall) Header() http.Header { func (c *ProjectsCompaniesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5674,7 +5674,7 @@ func (c *ProjectsCompaniesListCall) Header() http.Header { func (c *ProjectsCompaniesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5849,7 +5849,7 @@ func (c *ProjectsCompaniesPatchCall) Header() http.Header { func (c *ProjectsCompaniesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5990,7 +5990,7 @@ func (c *ProjectsJobsBatchDeleteCall) Header() http.Header { func (c *ProjectsJobsBatchDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6132,7 +6132,7 @@ func (c *ProjectsJobsCreateCall) Header() http.Header { func (c *ProjectsJobsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6272,7 +6272,7 @@ func (c *ProjectsJobsDeleteCall) Header() http.Header { func (c *ProjectsJobsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6415,7 +6415,7 @@ func (c *ProjectsJobsGetCall) Header() http.Header { func (c *ProjectsJobsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6610,7 +6610,7 @@ func (c *ProjectsJobsListCall) Header() http.Header { func (c *ProjectsJobsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6804,7 +6804,7 @@ func (c *ProjectsJobsPatchCall) Header() http.Header { func (c *ProjectsJobsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6947,7 +6947,7 @@ func (c *ProjectsJobsSearchCall) Header() http.Header { func (c *ProjectsJobsSearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7116,7 +7116,7 @@ func (c *ProjectsJobsSearchForAlertCall) Header() http.Header { func (c *ProjectsJobsSearchForAlertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/jobs/v3p1beta1/jobs-gen.go b/jobs/v3p1beta1/jobs-gen.go index cf60164eb88..ffac8cac5db 100644 --- a/jobs/v3p1beta1/jobs-gen.go +++ b/jobs/v3p1beta1/jobs-gen.go @@ -5193,7 +5193,7 @@ func (c *ProjectsCompleteCall) Header() http.Header { func (c *ProjectsCompleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5394,7 +5394,7 @@ func (c *ProjectsClientEventsCreateCall) Header() http.Header { func (c *ProjectsClientEventsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5535,7 +5535,7 @@ func (c *ProjectsCompaniesCreateCall) Header() http.Header { func (c *ProjectsCompaniesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5675,7 +5675,7 @@ func (c *ProjectsCompaniesDeleteCall) Header() http.Header { func (c *ProjectsCompaniesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5817,7 +5817,7 @@ func (c *ProjectsCompaniesGetCall) Header() http.Header { func (c *ProjectsCompaniesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5986,7 +5986,7 @@ func (c *ProjectsCompaniesListCall) Header() http.Header { func (c *ProjectsCompaniesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6161,7 +6161,7 @@ func (c *ProjectsCompaniesPatchCall) Header() http.Header { func (c *ProjectsCompaniesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6302,7 +6302,7 @@ func (c *ProjectsJobsBatchDeleteCall) Header() http.Header { func (c *ProjectsJobsBatchDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6444,7 +6444,7 @@ func (c *ProjectsJobsCreateCall) Header() http.Header { func (c *ProjectsJobsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6584,7 +6584,7 @@ func (c *ProjectsJobsDeleteCall) Header() http.Header { func (c *ProjectsJobsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6727,7 +6727,7 @@ func (c *ProjectsJobsGetCall) Header() http.Header { func (c *ProjectsJobsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6922,7 +6922,7 @@ func (c *ProjectsJobsListCall) Header() http.Header { func (c *ProjectsJobsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7116,7 +7116,7 @@ func (c *ProjectsJobsPatchCall) Header() http.Header { func (c *ProjectsJobsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7259,7 +7259,7 @@ func (c *ProjectsJobsSearchCall) Header() http.Header { func (c *ProjectsJobsSearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7428,7 +7428,7 @@ func (c *ProjectsJobsSearchForAlertCall) Header() http.Header { func (c *ProjectsJobsSearchForAlertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7601,7 +7601,7 @@ func (c *ProjectsOperationsGetCall) Header() http.Header { func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/kgsearch/v1/kgsearch-gen.go b/kgsearch/v1/kgsearch-gen.go index cdf1208ff71..e2f9efd6bdb 100644 --- a/kgsearch/v1/kgsearch-gen.go +++ b/kgsearch/v1/kgsearch-gen.go @@ -276,7 +276,7 @@ func (c *EntitiesSearchCall) Header() http.Header { func (c *EntitiesSearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/language/v1/language-gen.go b/language/v1/language-gen.go index ef6ac473281..1aa67d42fe3 100644 --- a/language/v1/language-gen.go +++ b/language/v1/language-gen.go @@ -1506,7 +1506,7 @@ func (c *DocumentsAnalyzeEntitiesCall) Header() http.Header { func (c *DocumentsAnalyzeEntitiesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1634,7 +1634,7 @@ func (c *DocumentsAnalyzeEntitySentimentCall) Header() http.Header { func (c *DocumentsAnalyzeEntitySentimentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1760,7 +1760,7 @@ func (c *DocumentsAnalyzeSentimentCall) Header() http.Header { func (c *DocumentsAnalyzeSentimentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1888,7 +1888,7 @@ func (c *DocumentsAnalyzeSyntaxCall) Header() http.Header { func (c *DocumentsAnalyzeSyntaxCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2016,7 +2016,7 @@ func (c *DocumentsAnnotateTextCall) Header() http.Header { func (c *DocumentsAnnotateTextCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2142,7 +2142,7 @@ func (c *DocumentsClassifyTextCall) Header() http.Header { func (c *DocumentsClassifyTextCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/language/v1beta1/language-gen.go b/language/v1beta1/language-gen.go index de683cd5ab9..112e6ee807e 100644 --- a/language/v1beta1/language-gen.go +++ b/language/v1beta1/language-gen.go @@ -1274,7 +1274,7 @@ func (c *DocumentsAnalyzeEntitiesCall) Header() http.Header { func (c *DocumentsAnalyzeEntitiesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1400,7 +1400,7 @@ func (c *DocumentsAnalyzeSentimentCall) Header() http.Header { func (c *DocumentsAnalyzeSentimentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1528,7 +1528,7 @@ func (c *DocumentsAnalyzeSyntaxCall) Header() http.Header { func (c *DocumentsAnalyzeSyntaxCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1656,7 +1656,7 @@ func (c *DocumentsAnnotateTextCall) Header() http.Header { func (c *DocumentsAnnotateTextCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/language/v1beta2/language-gen.go b/language/v1beta2/language-gen.go index f5718094017..9fb387014ce 100644 --- a/language/v1beta2/language-gen.go +++ b/language/v1beta2/language-gen.go @@ -1525,7 +1525,7 @@ func (c *DocumentsAnalyzeEntitiesCall) Header() http.Header { func (c *DocumentsAnalyzeEntitiesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1653,7 +1653,7 @@ func (c *DocumentsAnalyzeEntitySentimentCall) Header() http.Header { func (c *DocumentsAnalyzeEntitySentimentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1779,7 +1779,7 @@ func (c *DocumentsAnalyzeSentimentCall) Header() http.Header { func (c *DocumentsAnalyzeSentimentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1907,7 +1907,7 @@ func (c *DocumentsAnalyzeSyntaxCall) Header() http.Header { func (c *DocumentsAnalyzeSyntaxCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2034,7 +2034,7 @@ func (c *DocumentsAnnotateTextCall) Header() http.Header { func (c *DocumentsAnnotateTextCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2160,7 +2160,7 @@ func (c *DocumentsClassifyTextCall) Header() http.Header { func (c *DocumentsClassifyTextCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/libraryagent/v1/libraryagent-gen.go b/libraryagent/v1/libraryagent-gen.go index f34ce107fc1..9f00b6199d5 100644 --- a/libraryagent/v1/libraryagent-gen.go +++ b/libraryagent/v1/libraryagent-gen.go @@ -368,7 +368,7 @@ func (c *ShelvesGetCall) Header() http.Header { func (c *ShelvesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -529,7 +529,7 @@ func (c *ShelvesListCall) Header() http.Header { func (c *ShelvesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -687,7 +687,7 @@ func (c *ShelvesBooksBorrowCall) Header() http.Header { func (c *ShelvesBooksBorrowCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -828,7 +828,7 @@ func (c *ShelvesBooksGetCall) Header() http.Header { func (c *ShelvesBooksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -991,7 +991,7 @@ func (c *ShelvesBooksListCall) Header() http.Header { func (c *ShelvesBooksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1160,7 +1160,7 @@ func (c *ShelvesBooksReturnCall) Header() http.Header { func (c *ShelvesBooksReturnCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/licensing/v1/licensing-api.json b/licensing/v1/licensing-api.json index c92d4a79666..256fca0f873 100644 --- a/licensing/v1/licensing-api.json +++ b/licensing/v1/licensing-api.json @@ -9,8 +9,8 @@ } }, "basePath": "", - "baseUrl": "https://www.googleapis.com/", - "batchPath": "batch/licensing/v1", + "baseUrl": "https://licensing.googleapis.com/", + "batchPath": "batch", "description": "The Google Enterprise License Manager API's allows you to license apps for all the users of a domain managed by you.", "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/admin-sdk/licensing/", @@ -21,7 +21,7 @@ }, "id": "licensing:v1", "kind": "discovery#restDescription", - "mtlsRootUrl": "https://www.mtls.googleapis.com/", + "mtlsRootUrl": "https://licensing.mtls.googleapis.com/", "name": "licensing", "ownerDomain": "google.com", "ownerName": "Google", @@ -130,13 +130,16 @@ "type": "string" }, "userId": { - "description": "The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user's email address changes. If the userId is suspended, the license status changes.", + "description": "The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a `userId` is subject to change, do not use a `userId` value as a key for persistent data. This key could break if the current user's email address changes. If the `userId` is suspended, the license status changes.", "location": "path", "required": true, "type": "string" } }, "path": "apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}", + "response": { + "$ref": "Empty" + }, "scopes": [ "https://www.googleapis.com/auth/apps.licensing" ] @@ -165,7 +168,7 @@ "type": "string" }, "userId": { - "description": "The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user's email address changes. If the userId is suspended, the license status changes.", + "description": "The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a `userId` is subject to change, do not use a `userId` value as a key for persistent data. This key could break if the current user's email address changes. If the `userId` is suspended, the license status changes.", "location": "path", "required": true, "type": "string" @@ -224,14 +227,14 @@ ], "parameters": { "customerId": { - "description": "Customer's customerId. A previous version of this API accepted the primary domain name as a value for this field. If the customer is suspended, the server returns an error.", + "description": "Customer's `customerId`. A previous version of this API accepted the primary domain name as a value for this field. If the customer is suspended, the server returns an error.", "location": "query", "required": true, "type": "string" }, "maxResults": { "default": "100", - "description": "The maxResults query string determines how many entries are returned on each page of a large response. This is an optional parameter. The value must be a positive number.", + "description": "The `maxResults` query string determines how many entries are returned on each page of a large response. This is an optional parameter. The value must be a positive number.", "format": "uint32", "location": "query", "maximum": "1000", @@ -240,7 +243,7 @@ }, "pageToken": { "default": "", - "description": "Token to fetch the next page of data. The maxResults query string is related to the pageToken since maxResults determines how many entries are returned on each page. This is an optional query string. If not specified, the server returns the first page.", + "description": "Token to fetch the next page of data. The `maxResults` query string is related to the `pageToken` since `maxResults` determines how many entries are returned on each page. This is an optional query string. If not specified, the server returns the first page.", "location": "query", "type": "string" }, @@ -271,14 +274,14 @@ ], "parameters": { "customerId": { - "description": "Customer's customerId. A previous version of this API accepted the primary domain name as a value for this field. If the customer is suspended, the server returns an error.", + "description": "Customer's `customerId`. A previous version of this API accepted the primary domain name as a value for this field. If the customer is suspended, the server returns an error.", "location": "query", "required": true, "type": "string" }, "maxResults": { "default": "100", - "description": "The maxResults query string determines how many entries are returned on each page of a large response. This is an optional parameter. The value must be a positive number.", + "description": "The `maxResults` query string determines how many entries are returned on each page of a large response. This is an optional parameter. The value must be a positive number.", "format": "uint32", "location": "query", "maximum": "1000", @@ -287,7 +290,7 @@ }, "pageToken": { "default": "", - "description": "Token to fetch the next page of data. The maxResults query string is related to the pageToken since maxResults determines how many entries are returned on each page. This is an optional query string. If not specified, the server returns the first page.", + "description": "Token to fetch the next page of data. The `maxResults` query string is related to the `pageToken` since `maxResults` determines how many entries are returned on each page. This is an optional query string. If not specified, the server returns the first page.", "location": "query", "type": "string" }, @@ -313,7 +316,7 @@ ] }, "patch": { - "description": "Patch a Licensing info via Apiary Patch Orchestration", + "description": "Reassign a user's product SKU with a different SKU in the same product. This method supports patch semantics.", "flatPath": "apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}", "httpMethod": "PATCH", "id": "licensing.licenseAssignments.patch", @@ -336,7 +339,7 @@ "type": "string" }, "userId": { - "description": "The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user's email address changes. If the userId is suspended, the license status changes.", + "description": "The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a `userId` is subject to change, do not use a `userId` value as a key for persistent data. This key could break if the current user's email address changes. If the `userId` is suspended, the license status changes.", "location": "path", "required": true, "type": "string" @@ -377,7 +380,7 @@ "type": "string" }, "userId": { - "description": "The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user's email address changes. If the userId is suspended, the license status changes.", + "description": "The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a `userId` is subject to change, do not use a `userId` value as a key for persistent data. This key could break if the current user's email address changes. If the `userId` is suspended, the license status changes.", "location": "path", "required": true, "type": "string" @@ -397,9 +400,15 @@ } } }, - "revision": "20201010", - "rootUrl": "https://www.googleapis.com/", + "revision": "20201116", + "rootUrl": "https://licensing.googleapis.com/", "schemas": { + "Empty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "id": "Empty", + "properties": {}, + "type": "object" + }, "LicenseAssignment": { "description": "Representation of a license assignment.", "id": "LicenseAssignment", @@ -410,7 +419,7 @@ }, "kind": { "default": "licensing#licenseAssignment", - "description": "Identifies the resource as a LicenseAssignment.", + "description": "Identifies the resource as a LicenseAssignment, which is `licensing#licenseAssignment`.", "type": "string" }, "productId": { @@ -449,7 +458,7 @@ "licensing.licenseAssignments.update" ] }, - "description": "The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user's email address changes. If the userId is suspended, the license status changes.", + "description": "The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a `userId` is subject to change, do not use a `userId` value as a key for persistent data. This key could break if the current user's email address changes. If the `userId` is suspended, the license status changes.", "type": "string" } }, @@ -491,7 +500,7 @@ "type": "string" }, "nextPageToken": { - "description": "The token that you must submit in a subsequent request to retrieve additional license results matching your query parameters. The maxResults query string is related to the nextPageToken since maxResults determines how many entries are returned on each next page.", + "description": "The token that you must submit in a subsequent request to retrieve additional license results matching your query parameters. The `maxResults` query string is related to the `nextPageToken` since `maxResults` determines how many entries are returned on each next page.", "type": "string" } }, diff --git a/licensing/v1/licensing-gen.go b/licensing/v1/licensing-gen.go index a66177fba5b..9f5fda40823 100644 --- a/licensing/v1/licensing-gen.go +++ b/licensing/v1/licensing-gen.go @@ -74,8 +74,8 @@ var _ = internaloption.WithDefaultEndpoint const apiId = "licensing:v1" const apiName = "licensing" const apiVersion = "v1" -const basePath = "https://www.googleapis.com/" -const mtlsBasePath = "https://www.mtls.googleapis.com/" +const basePath = "https://licensing.googleapis.com/" +const mtlsBasePath = "https://licensing.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( @@ -144,12 +144,25 @@ type LicenseAssignmentsService struct { s *Service } +// Empty: A generic empty message that you can re-use to avoid defining +// duplicated empty messages in your APIs. A typical example is to use +// it as the request or the response type of an API method. For +// instance: service Foo { rpc Bar(google.protobuf.Empty) returns +// (google.protobuf.Empty); } The JSON representation for `Empty` is +// empty JSON object `{}`. +type Empty struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + // LicenseAssignment: Representation of a license assignment. type LicenseAssignment struct { // Etags: ETag of the resource. Etags string `json:"etags,omitempty"` - // Kind: Identifies the resource as a LicenseAssignment. + // Kind: Identifies the resource as a LicenseAssignment, which is + // `licensing#licenseAssignment`. Kind string `json:"kind,omitempty"` // ProductId: A product's unique identifier. For more information about @@ -171,10 +184,10 @@ type LicenseAssignment struct { // UserId: The user's current primary email address. If the user's email // address changes, use the new email address in your API requests. - // Since a userId is subject to change, do not use a userId value as a - // key for persistent data. This key could break if the current user's - // email address changes. If the userId is suspended, the license status - // changes. + // Since a `userId` is subject to change, do not use a `userId` value as + // a key for persistent data. This key could break if the current user's + // email address changes. If the `userId` is suspended, the license + // status changes. UserId string `json:"userId,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -244,8 +257,8 @@ type LicenseAssignmentList struct { // NextPageToken: The token that you must submit in a subsequent request // to retrieve additional license results matching your query - // parameters. The maxResults query string is related to the - // nextPageToken since maxResults determines how many entries are + // parameters. The `maxResults` query string is related to the + // `nextPageToken` since `maxResults` determines how many entries are // returned on each next page. NextPageToken string `json:"nextPageToken,omitempty"` @@ -324,7 +337,7 @@ func (c *LicenseAssignmentsDeleteCall) Header() http.Header { func (c *LicenseAssignmentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -348,17 +361,42 @@ func (c *LicenseAssignmentsDeleteCall) doRequest(alt string) (*http.Response, er } // Do executes the "licensing.licenseAssignments.delete" call. -func (c *LicenseAssignmentsDeleteCall) Do(opts ...googleapi.CallOption) error { +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *LicenseAssignmentsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } if err != nil { - return err + return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return nil, err + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, } - return nil + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil // { // "description": "Revoke a license.", // "flatPath": "apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}", @@ -383,13 +421,16 @@ func (c *LicenseAssignmentsDeleteCall) Do(opts ...googleapi.CallOption) error { // "type": "string" // }, // "userId": { - // "description": "The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user's email address changes. If the userId is suspended, the license status changes.", + // "description": "The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a `userId` is subject to change, do not use a `userId` value as a key for persistent data. This key could break if the current user's email address changes. If the `userId` is suspended, the license status changes.", // "location": "path", // "required": true, // "type": "string" // } // }, // "path": "apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}", + // "response": { + // "$ref": "Empty" + // }, // "scopes": [ // "https://www.googleapis.com/auth/apps.licensing" // ] @@ -456,7 +497,7 @@ func (c *LicenseAssignmentsGetCall) Header() http.Header { func (c *LicenseAssignmentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -543,7 +584,7 @@ func (c *LicenseAssignmentsGetCall) Do(opts ...googleapi.CallOption) (*LicenseAs // "type": "string" // }, // "userId": { - // "description": "The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user's email address changes. If the userId is suspended, the license status changes.", + // "description": "The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a `userId` is subject to change, do not use a `userId` value as a key for persistent data. This key could break if the current user's email address changes. If the `userId` is suspended, the license status changes.", // "location": "path", // "required": true, // "type": "string" @@ -608,7 +649,7 @@ func (c *LicenseAssignmentsInsertCall) Header() http.Header { func (c *LicenseAssignmentsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -729,7 +770,7 @@ func (r *LicenseAssignmentsService) ListForProduct(productId string, customerId return c } -// MaxResults sets the optional parameter "maxResults": The maxResults +// MaxResults sets the optional parameter "maxResults": The `maxResults` // query string determines how many entries are returned on each page of // a large response. This is an optional parameter. The value must be a // positive number. @@ -739,10 +780,10 @@ func (c *LicenseAssignmentsListForProductCall) MaxResults(maxResults int64) *Lic } // PageToken sets the optional parameter "pageToken": Token to fetch the -// next page of data. The maxResults query string is related to the -// pageToken since maxResults determines how many entries are returned -// on each page. This is an optional query string. If not specified, the -// server returns the first page. +// next page of data. The `maxResults` query string is related to the +// `pageToken` since `maxResults` determines how many entries are +// returned on each page. This is an optional query string. If not +// specified, the server returns the first page. func (c *LicenseAssignmentsListForProductCall) PageToken(pageToken string) *LicenseAssignmentsListForProductCall { c.urlParams_.Set("pageToken", pageToken) return c @@ -785,7 +826,7 @@ func (c *LicenseAssignmentsListForProductCall) Header() http.Header { func (c *LicenseAssignmentsListForProductCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -857,14 +898,14 @@ func (c *LicenseAssignmentsListForProductCall) Do(opts ...googleapi.CallOption) // ], // "parameters": { // "customerId": { - // "description": "Customer's customerId. A previous version of this API accepted the primary domain name as a value for this field. If the customer is suspended, the server returns an error.", + // "description": "Customer's `customerId`. A previous version of this API accepted the primary domain name as a value for this field. If the customer is suspended, the server returns an error.", // "location": "query", // "required": true, // "type": "string" // }, // "maxResults": { // "default": "100", - // "description": "The maxResults query string determines how many entries are returned on each page of a large response. This is an optional parameter. The value must be a positive number.", + // "description": "The `maxResults` query string determines how many entries are returned on each page of a large response. This is an optional parameter. The value must be a positive number.", // "format": "uint32", // "location": "query", // "maximum": "1000", @@ -873,7 +914,7 @@ func (c *LicenseAssignmentsListForProductCall) Do(opts ...googleapi.CallOption) // }, // "pageToken": { // "default": "", - // "description": "Token to fetch the next page of data. The maxResults query string is related to the pageToken since maxResults determines how many entries are returned on each page. This is an optional query string. If not specified, the server returns the first page.", + // "description": "Token to fetch the next page of data. The `maxResults` query string is related to the `pageToken` since `maxResults` determines how many entries are returned on each page. This is an optional query string. If not specified, the server returns the first page.", // "location": "query", // "type": "string" // }, @@ -938,7 +979,7 @@ func (r *LicenseAssignmentsService) ListForProductAndSku(productId string, skuId return c } -// MaxResults sets the optional parameter "maxResults": The maxResults +// MaxResults sets the optional parameter "maxResults": The `maxResults` // query string determines how many entries are returned on each page of // a large response. This is an optional parameter. The value must be a // positive number. @@ -948,10 +989,10 @@ func (c *LicenseAssignmentsListForProductAndSkuCall) MaxResults(maxResults int64 } // PageToken sets the optional parameter "pageToken": Token to fetch the -// next page of data. The maxResults query string is related to the -// pageToken since maxResults determines how many entries are returned -// on each page. This is an optional query string. If not specified, the -// server returns the first page. +// next page of data. The `maxResults` query string is related to the +// `pageToken` since `maxResults` determines how many entries are +// returned on each page. This is an optional query string. If not +// specified, the server returns the first page. func (c *LicenseAssignmentsListForProductAndSkuCall) PageToken(pageToken string) *LicenseAssignmentsListForProductAndSkuCall { c.urlParams_.Set("pageToken", pageToken) return c @@ -994,7 +1035,7 @@ func (c *LicenseAssignmentsListForProductAndSkuCall) Header() http.Header { func (c *LicenseAssignmentsListForProductAndSkuCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1068,14 +1109,14 @@ func (c *LicenseAssignmentsListForProductAndSkuCall) Do(opts ...googleapi.CallOp // ], // "parameters": { // "customerId": { - // "description": "Customer's customerId. A previous version of this API accepted the primary domain name as a value for this field. If the customer is suspended, the server returns an error.", + // "description": "Customer's `customerId`. A previous version of this API accepted the primary domain name as a value for this field. If the customer is suspended, the server returns an error.", // "location": "query", // "required": true, // "type": "string" // }, // "maxResults": { // "default": "100", - // "description": "The maxResults query string determines how many entries are returned on each page of a large response. This is an optional parameter. The value must be a positive number.", + // "description": "The `maxResults` query string determines how many entries are returned on each page of a large response. This is an optional parameter. The value must be a positive number.", // "format": "uint32", // "location": "query", // "maximum": "1000", @@ -1084,7 +1125,7 @@ func (c *LicenseAssignmentsListForProductAndSkuCall) Do(opts ...googleapi.CallOp // }, // "pageToken": { // "default": "", - // "description": "Token to fetch the next page of data. The maxResults query string is related to the pageToken since maxResults determines how many entries are returned on each page. This is an optional query string. If not specified, the server returns the first page.", + // "description": "Token to fetch the next page of data. The `maxResults` query string is related to the `pageToken` since `maxResults` determines how many entries are returned on each page. This is an optional query string. If not specified, the server returns the first page.", // "location": "query", // "type": "string" // }, @@ -1146,7 +1187,8 @@ type LicenseAssignmentsPatchCall struct { header_ http.Header } -// Patch: Patch a Licensing info via Apiary Patch Orchestration +// Patch: Reassign a user's product SKU with a different SKU in the same +// product. This method supports patch semantics. func (r *LicenseAssignmentsService) Patch(productId string, skuId string, userId string, licenseassignment *LicenseAssignment) *LicenseAssignmentsPatchCall { c := &LicenseAssignmentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.productId = productId @@ -1183,7 +1225,7 @@ func (c *LicenseAssignmentsPatchCall) Header() http.Header { func (c *LicenseAssignmentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1249,7 +1291,7 @@ func (c *LicenseAssignmentsPatchCall) Do(opts ...googleapi.CallOption) (*License } return ret, nil // { - // "description": "Patch a Licensing info via Apiary Patch Orchestration", + // "description": "Reassign a user's product SKU with a different SKU in the same product. This method supports patch semantics.", // "flatPath": "apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}", // "httpMethod": "PATCH", // "id": "licensing.licenseAssignments.patch", @@ -1272,7 +1314,7 @@ func (c *LicenseAssignmentsPatchCall) Do(opts ...googleapi.CallOption) (*License // "type": "string" // }, // "userId": { - // "description": "The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user's email address changes. If the userId is suspended, the license status changes.", + // "description": "The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a `userId` is subject to change, do not use a `userId` value as a key for persistent data. This key could break if the current user's email address changes. If the `userId` is suspended, the license status changes.", // "location": "path", // "required": true, // "type": "string" @@ -1343,7 +1385,7 @@ func (c *LicenseAssignmentsUpdateCall) Header() http.Header { func (c *LicenseAssignmentsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1432,7 +1474,7 @@ func (c *LicenseAssignmentsUpdateCall) Do(opts ...googleapi.CallOption) (*Licens // "type": "string" // }, // "userId": { - // "description": "The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user's email address changes. If the userId is suspended, the license status changes.", + // "description": "The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a `userId` is subject to change, do not use a `userId` value as a key for persistent data. This key could break if the current user's email address changes. If the `userId` is suspended, the license status changes.", // "location": "path", // "required": true, // "type": "string" diff --git a/lifesciences/v2beta/lifesciences-api.json b/lifesciences/v2beta/lifesciences-api.json index 0de80c0b147..d17d21b2c29 100644 --- a/lifesciences/v2beta/lifesciences-api.json +++ b/lifesciences/v2beta/lifesciences-api.json @@ -312,7 +312,7 @@ } } }, - "revision": "20201001", + "revision": "20201105", "rootUrl": "https://lifesciences.googleapis.com/", "schemas": { "Accelerator": { @@ -787,6 +787,17 @@ }, "type": "object" }, + "NFSMount": { + "description": "Configuration for an `NFSMount` to be attached to the VM.", + "id": "NFSMount", + "properties": { + "target": { + "description": "A target NFS mount. The target must be specified as `address:/mount\".", + "type": "string" + } + }, + "type": "object" + }, "Network": { "description": "VM networking options.", "id": "Network", @@ -1126,6 +1137,10 @@ "$ref": "ExistingDisk", "description": "Configuration for a existing disk." }, + "nfsMount": { + "$ref": "NFSMount", + "description": "Configuration for an NFS mount." + }, "persistentDisk": { "$ref": "PersistentDisk", "description": "Configuration for a persistent disk." diff --git a/lifesciences/v2beta/lifesciences-gen.go b/lifesciences/v2beta/lifesciences-gen.go index 23ef2cd2bb3..48cd34d237b 100644 --- a/lifesciences/v2beta/lifesciences-gen.go +++ b/lifesciences/v2beta/lifesciences-gen.go @@ -1033,6 +1033,35 @@ func (s *Mount) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// NFSMount: Configuration for an `NFSMount` to be attached to the VM. +type NFSMount struct { + // Target: A target NFS mount. The target must be specified as + // `address:/mount". + Target string `json:"target,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Target") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Target") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *NFSMount) MarshalJSON() ([]byte, error) { + type NoMethod NFSMount + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Network: VM networking options. type Network struct { // Network: The network name to attach the VM's network interface to. @@ -1628,6 +1657,9 @@ type Volume struct { // ExistingDisk: Configuration for a existing disk. ExistingDisk *ExistingDisk `json:"existingDisk,omitempty"` + // NfsMount: Configuration for an NFS mount. + NfsMount *NFSMount `json:"nfsMount,omitempty"` + // PersistentDisk: Configuration for a persistent disk. PersistentDisk *PersistentDisk `json:"persistentDisk,omitempty"` @@ -1781,7 +1813,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1947,7 +1979,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2125,7 +2157,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2278,7 +2310,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2454,7 +2486,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2637,7 +2669,7 @@ func (c *ProjectsLocationsPipelinesRunCall) Header() http.Header { func (c *ProjectsLocationsPipelinesRunCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/localservices/v1/localservices-gen.go b/localservices/v1/localservices-gen.go index a71cac93a2f..8526ddff725 100644 --- a/localservices/v1/localservices-gen.go +++ b/localservices/v1/localservices-gen.go @@ -719,7 +719,7 @@ func (c *AccountReportsSearchCall) Header() http.Header { func (c *AccountReportsSearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1004,7 +1004,7 @@ func (c *DetailedLeadReportsSearchCall) Header() http.Header { func (c *DetailedLeadReportsSearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/logging/v2/logging-api.json b/logging/v2/logging-api.json index 5a21bfeb477..d66b55f4e6d 100644 --- a/logging/v2/logging-api.json +++ b/logging/v2/logging-api.json @@ -122,7 +122,7 @@ "buckets": { "methods": { "get": { - "description": "Gets a bucket (Beta).", + "description": "Gets a bucket.", "flatPath": "v2/billingAccounts/{billingAccountsId}/buckets/{bucketsId}", "httpMethod": "GET", "id": "logging.billingAccounts.buckets.get", @@ -347,6 +347,80 @@ } }, "locations": { + "methods": { + "get": { + "description": "Gets information about a location.", + "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}", + "httpMethod": "GET", + "id": "logging.billingAccounts.locations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Resource name for the location.", + "location": "path", + "pattern": "^billingAccounts/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "Location" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/logging.admin", + "https://www.googleapis.com/auth/logging.read" + ] + }, + "list": { + "description": "Lists information about the supported locations for this service.", + "flatPath": "v2/billingAccounts/{billingAccountsId}/locations", + "httpMethod": "GET", + "id": "logging.billingAccounts.locations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The resource that owns the locations collection, if applicable.", + "location": "path", + "pattern": "^billingAccounts/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v2/{+name}/locations", + "response": { + "$ref": "ListLocationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/logging.admin", + "https://www.googleapis.com/auth/logging.read" + ] + } + }, "resources": { "buckets": { "methods": { @@ -411,7 +485,7 @@ ] }, "list": { - "description": "Lists buckets (Beta).", + "description": "Lists buckets.", "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/buckets", "httpMethod": "GET", "id": "logging.billingAccounts.locations.buckets.list", @@ -450,7 +524,7 @@ ] }, "patch": { - "description": "Updates a bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be returned.A buckets region may not be modified after it is created. This method is in Beta.", + "description": "Updates a bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be returned.A buckets region may not be modified after it is created.", "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/buckets/{bucketsId}", "httpMethod": "PATCH", "id": "logging.billingAccounts.locations.buckets.patch", @@ -578,7 +652,7 @@ ] }, "list": { - "description": "Lists views on a bucket..", + "description": "Lists views on a bucket.", "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/buckets/{bucketsId}/views", "httpMethod": "GET", "id": "logging.billingAccounts.locations.buckets.views.list", @@ -711,6 +785,12 @@ "pattern": "^billingAccounts/[^/]+$", "required": true, "type": "string" + }, + "resourceNames": { + "description": "Optional. The resource name that owns the logs: projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID organization/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_IDTo support legacy queries, it could also be: \"projects/PROJECT_ID\" \"organizations/ORGANIZATION_ID\" \"billingAccounts/BILLING_ACCOUNT_ID\" \"folders/FOLDER_ID\"", + "location": "query", + "repeated": true, + "type": "string" } }, "path": "v2/{+parent}/logs", @@ -962,6 +1042,27 @@ "https://www.googleapis.com/auth/logging.read" ] }, + "tail": { + "description": "Streaming read of log entries as they are ingested. Until the stream is terminated, it will continue reading logs.", + "flatPath": "v2/entries:tail", + "httpMethod": "POST", + "id": "logging.entries.tail", + "parameterOrder": [], + "parameters": {}, + "path": "v2/entries:tail", + "request": { + "$ref": "TailLogEntriesRequest" + }, + "response": { + "$ref": "TailLogEntriesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/logging.admin", + "https://www.googleapis.com/auth/logging.read" + ] + }, "write": { "description": "Writes log entries to Logging. This API method is the only way to send log entries to Logging. This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging libraries configured to use Logging. A single request may contain log entries for a maximum of 1000 different resources (projects, organizations, billing accounts or folders)", "flatPath": "v2/entries:write", @@ -1309,6 +1410,80 @@ } }, "locations": { + "methods": { + "get": { + "description": "Gets information about a location.", + "flatPath": "v2/folders/{foldersId}/locations/{locationsId}", + "httpMethod": "GET", + "id": "logging.folders.locations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Resource name for the location.", + "location": "path", + "pattern": "^folders/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "Location" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/logging.admin", + "https://www.googleapis.com/auth/logging.read" + ] + }, + "list": { + "description": "Lists information about the supported locations for this service.", + "flatPath": "v2/folders/{foldersId}/locations", + "httpMethod": "GET", + "id": "logging.folders.locations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The resource that owns the locations collection, if applicable.", + "location": "path", + "pattern": "^folders/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v2/{+name}/locations", + "response": { + "$ref": "ListLocationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/logging.admin", + "https://www.googleapis.com/auth/logging.read" + ] + } + }, "resources": { "buckets": { "methods": { @@ -1373,7 +1548,7 @@ ] }, "get": { - "description": "Gets a bucket (Beta).", + "description": "Gets a bucket.", "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}", "httpMethod": "GET", "id": "logging.folders.locations.buckets.get", @@ -1401,7 +1576,7 @@ ] }, "list": { - "description": "Lists buckets (Beta).", + "description": "Lists buckets.", "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets", "httpMethod": "GET", "id": "logging.folders.locations.buckets.list", @@ -1440,7 +1615,7 @@ ] }, "patch": { - "description": "Updates a bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be returned.A buckets region may not be modified after it is created. This method is in Beta.", + "description": "Updates a bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be returned.A buckets region may not be modified after it is created.", "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}", "httpMethod": "PATCH", "id": "logging.folders.locations.buckets.patch", @@ -1596,7 +1771,7 @@ ] }, "list": { - "description": "Lists views on a bucket..", + "description": "Lists views on a bucket.", "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}/views", "httpMethod": "GET", "id": "logging.folders.locations.buckets.views.list", @@ -1729,6 +1904,12 @@ "pattern": "^folders/[^/]+$", "required": true, "type": "string" + }, + "resourceNames": { + "description": "Optional. The resource name that owns the logs: projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID organization/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_IDTo support legacy queries, it could also be: \"projects/PROJECT_ID\" \"organizations/ORGANIZATION_ID\" \"billingAccounts/BILLING_ACCOUNT_ID\" \"folders/FOLDER_ID\"", + "location": "query", + "repeated": true, + "type": "string" } }, "path": "v2/{+parent}/logs", @@ -1958,6 +2139,80 @@ } }, "locations": { + "methods": { + "get": { + "description": "Gets information about a location.", + "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}", + "httpMethod": "GET", + "id": "logging.locations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Resource name for the location.", + "location": "path", + "pattern": "^[^/]+/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "Location" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/logging.admin", + "https://www.googleapis.com/auth/logging.read" + ] + }, + "list": { + "description": "Lists information about the supported locations for this service.", + "flatPath": "v2/{v2Id}/{v2Id1}/locations", + "httpMethod": "GET", + "id": "logging.locations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The resource that owns the locations collection, if applicable.", + "location": "path", + "pattern": "^[^/]+/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v2/{+name}/locations", + "response": { + "$ref": "ListLocationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/logging.admin", + "https://www.googleapis.com/auth/logging.read" + ] + } + }, "resources": { "buckets": { "methods": { @@ -2022,7 +2277,7 @@ ] }, "get": { - "description": "Gets a bucket (Beta).", + "description": "Gets a bucket.", "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}", "httpMethod": "GET", "id": "logging.locations.buckets.get", @@ -2050,7 +2305,7 @@ ] }, "list": { - "description": "Lists buckets (Beta).", + "description": "Lists buckets.", "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets", "httpMethod": "GET", "id": "logging.locations.buckets.list", @@ -2089,7 +2344,7 @@ ] }, "patch": { - "description": "Updates a bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be returned.A buckets region may not be modified after it is created. This method is in Beta.", + "description": "Updates a bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be returned.A buckets region may not be modified after it is created.", "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}", "httpMethod": "PATCH", "id": "logging.locations.buckets.patch", @@ -2245,7 +2500,7 @@ ] }, "list": { - "description": "Lists views on a bucket..", + "description": "Lists views on a bucket.", "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}/views", "httpMethod": "GET", "id": "logging.locations.buckets.views.list", @@ -2378,6 +2633,12 @@ "pattern": "^[^/]+/[^/]+$", "required": true, "type": "string" + }, + "resourceNames": { + "description": "Optional. The resource name that owns the logs: projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID organization/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_IDTo support legacy queries, it could also be: \"projects/PROJECT_ID\" \"organizations/ORGANIZATION_ID\" \"billingAccounts/BILLING_ACCOUNT_ID\" \"folders/FOLDER_ID\"", + "location": "query", + "repeated": true, + "type": "string" } }, "path": "v2/{+parent}/logs", @@ -2656,6 +2917,80 @@ } }, "locations": { + "methods": { + "get": { + "description": "Gets information about a location.", + "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}", + "httpMethod": "GET", + "id": "logging.organizations.locations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Resource name for the location.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "Location" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/logging.admin", + "https://www.googleapis.com/auth/logging.read" + ] + }, + "list": { + "description": "Lists information about the supported locations for this service.", + "flatPath": "v2/organizations/{organizationsId}/locations", + "httpMethod": "GET", + "id": "logging.organizations.locations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The resource that owns the locations collection, if applicable.", + "location": "path", + "pattern": "^organizations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v2/{+name}/locations", + "response": { + "$ref": "ListLocationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/logging.admin", + "https://www.googleapis.com/auth/logging.read" + ] + } + }, "resources": { "buckets": { "methods": { @@ -2720,7 +3055,7 @@ ] }, "get": { - "description": "Gets a bucket (Beta).", + "description": "Gets a bucket.", "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}", "httpMethod": "GET", "id": "logging.organizations.locations.buckets.get", @@ -2748,7 +3083,7 @@ ] }, "list": { - "description": "Lists buckets (Beta).", + "description": "Lists buckets.", "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets", "httpMethod": "GET", "id": "logging.organizations.locations.buckets.list", @@ -2787,7 +3122,7 @@ ] }, "patch": { - "description": "Updates a bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be returned.A buckets region may not be modified after it is created. This method is in Beta.", + "description": "Updates a bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be returned.A buckets region may not be modified after it is created.", "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}", "httpMethod": "PATCH", "id": "logging.organizations.locations.buckets.patch", @@ -2943,7 +3278,7 @@ ] }, "list": { - "description": "Lists views on a bucket..", + "description": "Lists views on a bucket.", "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}/views", "httpMethod": "GET", "id": "logging.organizations.locations.buckets.views.list", @@ -3076,6 +3411,12 @@ "pattern": "^organizations/[^/]+$", "required": true, "type": "string" + }, + "resourceNames": { + "description": "Optional. The resource name that owns the logs: projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID organization/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_IDTo support legacy queries, it could also be: \"projects/PROJECT_ID\" \"organizations/ORGANIZATION_ID\" \"billingAccounts/BILLING_ACCOUNT_ID\" \"folders/FOLDER_ID\"", + "location": "query", + "repeated": true, + "type": "string" } }, "path": "v2/{+parent}/logs", @@ -3468,6 +3809,80 @@ } }, "locations": { + "methods": { + "get": { + "description": "Gets information about a location.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}", + "httpMethod": "GET", + "id": "logging.projects.locations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Resource name for the location.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "Location" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/logging.admin", + "https://www.googleapis.com/auth/logging.read" + ] + }, + "list": { + "description": "Lists information about the supported locations for this service.", + "flatPath": "v2/projects/{projectsId}/locations", + "httpMethod": "GET", + "id": "logging.projects.locations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The resource that owns the locations collection, if applicable.", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v2/{+name}/locations", + "response": { + "$ref": "ListLocationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/logging.admin", + "https://www.googleapis.com/auth/logging.read" + ] + } + }, "resources": { "buckets": { "methods": { @@ -3532,7 +3947,7 @@ ] }, "get": { - "description": "Gets a bucket (Beta).", + "description": "Gets a bucket.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/buckets/{bucketsId}", "httpMethod": "GET", "id": "logging.projects.locations.buckets.get", @@ -3560,7 +3975,7 @@ ] }, "list": { - "description": "Lists buckets (Beta).", + "description": "Lists buckets.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/buckets", "httpMethod": "GET", "id": "logging.projects.locations.buckets.list", @@ -3599,7 +4014,7 @@ ] }, "patch": { - "description": "Updates a bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be returned.A buckets region may not be modified after it is created. This method is in Beta.", + "description": "Updates a bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be returned.A buckets region may not be modified after it is created.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/buckets/{bucketsId}", "httpMethod": "PATCH", "id": "logging.projects.locations.buckets.patch", @@ -3755,7 +4170,7 @@ ] }, "list": { - "description": "Lists views on a bucket..", + "description": "Lists views on a bucket.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/buckets/{bucketsId}/views", "httpMethod": "GET", "id": "logging.projects.locations.buckets.views.list", @@ -3888,6 +4303,12 @@ "pattern": "^projects/[^/]+$", "required": true, "type": "string" + }, + "resourceNames": { + "description": "Optional. The resource name that owns the logs: projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID organization/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_IDTo support legacy queries, it could also be: \"projects/PROJECT_ID\" \"organizations/ORGANIZATION_ID\" \"billingAccounts/BILLING_ACCOUNT_ID\" \"folders/FOLDER_ID\"", + "location": "query", + "repeated": true, + "type": "string" } }, "path": "v2/{+parent}/logs", @@ -4513,7 +4934,7 @@ } } }, - "revision": "20201013", + "revision": "20201114", "rootUrl": "https://logging.googleapis.com/", "schemas": { "BigQueryOptions": { @@ -4650,7 +5071,7 @@ "type": "string" }, "remoteIp": { - "description": "The IP address (IPv4 or IPv6) of the client that issued the HTTP request. Examples: \"192.168.1.1\", \"FE80::0202:B3FF:FE1E:8329\".", + "description": "The IP address (IPv4 or IPv6) of the client that issued the HTTP request. This field can include port information. Examples: \"192.168.1.1\", \"10.0.0.1:80\", \"FE80::0202:B3FF:FE1E:8329\".", "type": "string" }, "requestMethod": { @@ -4672,7 +5093,7 @@ "type": "string" }, "serverIp": { - "description": "The IP address (IPv4 or IPv6) of the origin server that the request was sent to.", + "description": "The IP address (IPv4 or IPv6) of the origin server that the request was sent to. This field can include port information. Examples: \"192.168.1.1\", \"10.0.0.1:80\", \"FE80::0202:B3FF:FE1E:8329\".", "type": "string" }, "status": { @@ -4739,7 +5160,7 @@ "type": "object" }, "ListBucketsResponse": { - "description": "The response from ListBuckets (Beta).", + "description": "The response from ListBuckets.", "id": "ListBucketsResponse", "properties": { "buckets": { @@ -4774,6 +5195,24 @@ }, "type": "object" }, + "ListLocationsResponse": { + "description": "The response message for Locations.ListLocations.", + "id": "ListLocationsResponse", + "properties": { + "locations": { + "description": "A list of locations that matches the specified filter in the request.", + "items": { + "$ref": "Location" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + } + }, + "type": "object" + }, "ListLogEntriesRequest": { "description": "The parameters to ListLogEntries.", "id": "ListLogEntriesRequest", @@ -4920,8 +5359,42 @@ }, "type": "object" }, + "Location": { + "description": "A resource that represents Google Cloud Platform location.", + "id": "Location", + "properties": { + "displayName": { + "description": "The friendly name for this location, typically a nearby city name. For example, \"Tokyo\".", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Cross-service attributes for the location. For example {\"cloud.googleapis.com/region\": \"us-east1\"} ", + "type": "object" + }, + "locationId": { + "description": "The canonical id for this location. For example: \"us-east1\".", + "type": "string" + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata. For example the available capacity at the given location.", + "type": "object" + }, + "name": { + "description": "Resource name for the location, which may vary between implementations. For example: \"projects/example-project/locations/us-east1\"", + "type": "string" + } + }, + "type": "object" + }, "LogBucket": { - "description": "Describes a repository of logs (Beta).", + "description": "Describes a repository of logs.", "id": "LogBucket", "properties": { "createTime": { @@ -4954,7 +5427,8 @@ "type": "boolean" }, "name": { - "description": "The resource name of the bucket. For example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id The supported locations are: \"global\"For the location of global it is unspecified where logs are actually stored. Once a bucket has been created, the location can not be changed.", + "description": "Output only. The resource name of the bucket. For example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id The supported locations are: \"global\"For the location of global it is unspecified where logs are actually stored. Once a bucket has been created, the location can not be changed.", + "readOnly": true, "type": "string" }, "retentionDays": { @@ -5208,7 +5682,7 @@ "type": "object" }, "LogMetric": { - "description": "Describes a logs-based metric. The value of the metric is the number of log entries that match a logs filter in a given time interval.Logs-based metric can also be used to extract values from logs and create a a distribution of the values. The distribution records the statistics of the extracted values along with an optional histogram of the values as specified by the bucket options.", + "description": "Describes a logs-based metric. The value of the metric is the number of log entries that match a logs filter in a given time interval.Logs-based metrics can also be used to extract values from logs and create a distribution of the values. The distribution records the statistics of the extracted values along with an optional histogram of the values as specified by the bucket options.", "id": "LogMetric", "properties": { "bucketOptions": { @@ -5357,7 +5831,7 @@ "type": "string" }, "filter": { - "description": "Filter that restricts which log entries in a bucket are visible in this view. Filters are restricted to be a logical AND of ==/!= of any of the following: originating project/folder/organization/billing account. resource type log id", + "description": "Filter that restricts which log entries in a bucket are visible in this view. Filters are restricted to be a logical AND of ==/!= of any of the following: originating project/folder/organization/billing account. resource type log id Example: SOURCE(\"projects/myproject\") AND resource.type = \"gce_instance\" AND LOG_ID(\"stdout\")", "type": "string" }, "name": { @@ -5409,7 +5883,7 @@ "The feature is not yet implemented. Users can not use it.", "Prelaunch features are hidden from users and are only visible internally.", "Early Access features are limited to a closed group of testers. To use these features, you must sign up in advance and sign a Trusted Tester agreement (which includes confidentiality provisions). These features may be unstable, changed in backward-incompatible ways, and are not guaranteed to be released.", - "Alpha is a limited availability test for releases before they are cleared for widespread use. By Alpha, all significant design issues are resolved and we are in the process of verifying functionality. Alpha customers need to apply for access, agree to applicable terms, and have their projects whitelisted. Alpha releases don’t have to be feature complete, no SLAs are provided, and there are no technical support obligations, but they will be far enough along that customers can actually use them in test environments or for limited-use tests -- just like they would in normal production cases.", + "Alpha is a limited availability test for releases before they are cleared for widespread use. By Alpha, all significant design issues are resolved and we are in the process of verifying functionality. Alpha customers need to apply for access, agree to applicable terms, and have their projects allowlisted. Alpha releases don’t have to be feature complete, no SLAs are provided, and there are no technical support obligations, but they will be far enough along that customers can actually use them in test environments or for limited-use tests -- just like they would in normal production cases.", "Beta is the point at which we are ready to open a release for any customer to use. There are no SLA or technical support obligations in a Beta release. Products will be complete from a feature perspective, but may have some open outstanding issues. Beta releases are suitable for limited production use cases.", "GA features are open to all developers and are considered stable and fully qualified for production use.", "Deprecated features are scheduled to be shut down and removed. For more information, see the “Deprecation Policy” section of our Terms of Service (https://cloud.google.com/terms/) and the Google Cloud Platform Subject to the Deprecation Policy (https://cloud.google.com/terms/deprecation) documentation." @@ -5506,7 +5980,7 @@ "The feature is not yet implemented. Users can not use it.", "Prelaunch features are hidden from users and are only visible internally.", "Early Access features are limited to a closed group of testers. To use these features, you must sign up in advance and sign a Trusted Tester agreement (which includes confidentiality provisions). These features may be unstable, changed in backward-incompatible ways, and are not guaranteed to be released.", - "Alpha is a limited availability test for releases before they are cleared for widespread use. By Alpha, all significant design issues are resolved and we are in the process of verifying functionality. Alpha customers need to apply for access, agree to applicable terms, and have their projects whitelisted. Alpha releases don’t have to be feature complete, no SLAs are provided, and there are no technical support obligations, but they will be far enough along that customers can actually use them in test environments or for limited-use tests -- just like they would in normal production cases.", + "Alpha is a limited availability test for releases before they are cleared for widespread use. By Alpha, all significant design issues are resolved and we are in the process of verifying functionality. Alpha customers need to apply for access, agree to applicable terms, and have their projects allowlisted. Alpha releases don’t have to be feature complete, no SLAs are provided, and there are no technical support obligations, but they will be far enough along that customers can actually use them in test environments or for limited-use tests -- just like they would in normal production cases.", "Beta is the point at which we are ready to open a release for any customer to use. There are no SLA or technical support obligations in a Beta release. Products will be complete from a feature perspective, but may have some open outstanding issues. Beta releases are suitable for limited production use cases.", "GA features are open to all developers and are considered stable and fully qualified for production use.", "Deprecated features are scheduled to be shut down and removed. For more information, see the “Deprecation Policy” section of our Terms of Service (https://cloud.google.com/terms/) and the Google Cloud Platform Subject to the Deprecation Policy (https://cloud.google.com/terms/deprecation) documentation." @@ -5575,7 +6049,7 @@ "The feature is not yet implemented. Users can not use it.", "Prelaunch features are hidden from users and are only visible internally.", "Early Access features are limited to a closed group of testers. To use these features, you must sign up in advance and sign a Trusted Tester agreement (which includes confidentiality provisions). These features may be unstable, changed in backward-incompatible ways, and are not guaranteed to be released.", - "Alpha is a limited availability test for releases before they are cleared for widespread use. By Alpha, all significant design issues are resolved and we are in the process of verifying functionality. Alpha customers need to apply for access, agree to applicable terms, and have their projects whitelisted. Alpha releases don’t have to be feature complete, no SLAs are provided, and there are no technical support obligations, but they will be far enough along that customers can actually use them in test environments or for limited-use tests -- just like they would in normal production cases.", + "Alpha is a limited availability test for releases before they are cleared for widespread use. By Alpha, all significant design issues are resolved and we are in the process of verifying functionality. Alpha customers need to apply for access, agree to applicable terms, and have their projects allowlisted. Alpha releases don’t have to be feature complete, no SLAs are provided, and there are no technical support obligations, but they will be far enough along that customers can actually use them in test environments or for limited-use tests -- just like they would in normal production cases.", "Beta is the point at which we are ready to open a release for any customer to use. There are no SLA or technical support obligations in a Beta release. Products will be complete from a feature perspective, but may have some open outstanding issues. Beta releases are suitable for limited production use cases.", "GA features are open to all developers and are considered stable and fully qualified for production use.", "Deprecated features are scheduled to be shut down and removed. For more information, see the “Deprecation Policy” section of our Terms of Service (https://cloud.google.com/terms/) and the Google Cloud Platform Subject to the Deprecation Policy (https://cloud.google.com/terms/deprecation) documentation." @@ -5804,6 +6278,76 @@ }, "type": "object" }, + "SuppressionInfo": { + "description": "Information about entries that were omitted from the session.", + "id": "SuppressionInfo", + "properties": { + "reason": { + "description": "The reason that entries were omitted from the session.", + "enum": [ + "REASON_UNSPECIFIED", + "RATE_LIMIT", + "NOT_CONSUMED" + ], + "enumDescriptions": [ + "Unexpected default.", + "Indicates suppression occurred due to relevant entries being received in excess of rate limits. For quotas and limits, see Logging API quotas and limits (https://cloud.google.com/logging/quotas#api-limits).", + "Indicates suppression occurred due to the client not consuming responses quickly enough." + ], + "type": "string" + }, + "suppressedCount": { + "description": "A lower bound on the count of entries omitted due to reason.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "TailLogEntriesRequest": { + "description": "The parameters to TailLogEntries.", + "id": "TailLogEntriesRequest", + "properties": { + "bufferWindow": { + "description": "Optional. The amount of time to buffer log entries at the server before being returned to prevent out of order results due to late arriving log entries. Valid values are between 0-60000 milliseconds. Defaults to 2000 milliseconds.", + "format": "google-duration", + "type": "string" + }, + "filter": { + "description": "Optional. A filter that chooses which log entries to return. See Advanced Logs Filters (https://cloud.google.com/logging/docs/view/advanced_filters). Only log entries that match the filter are returned. An empty filter matches all log entries in the resources listed in resource_names. Referencing a parent resource that is not in resource_names will cause the filter to return no results. The maximum length of the filter is 20000 characters.", + "type": "string" + }, + "resourceNames": { + "description": "Required. Name of a parent resource from which to retrieve log entries: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" May alternatively be one or more views: \"projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID\" \"organization/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID\" \"billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID\" \"folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID\"", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "TailLogEntriesResponse": { + "description": "Result returned from TailLogEntries.", + "id": "TailLogEntriesResponse", + "properties": { + "entries": { + "description": "A list of log entries. Each response in the stream will order entries with increasing values of LogEntry.timestamp. Ordering is not guaranteed between separate responses.", + "items": { + "$ref": "LogEntry" + }, + "type": "array" + }, + "suppressionInfo": { + "description": "If entries that otherwise would have been included in the session were not sent back to the client, counts of relevant entries omitted from the session with the reason that they were not included. There will be at most one of each reason per response. The counts represent the number of suppressed entries since the last streamed response.", + "items": { + "$ref": "SuppressionInfo" + }, + "type": "array" + } + }, + "type": "object" + }, "UndeleteBucketRequest": { "description": "The parameters to UndeleteBucket.", "id": "UndeleteBucketRequest", diff --git a/logging/v2/logging-gen.go b/logging/v2/logging-gen.go index fee01f19fb5..11b19228983 100644 --- a/logging/v2/logging-gen.go +++ b/logging/v2/logging-gen.go @@ -935,7 +935,8 @@ type HttpRequest struct { Referer string `json:"referer,omitempty"` // RemoteIp: The IP address (IPv4 or IPv6) of the client that issued the - // HTTP request. Examples: "192.168.1.1", "FE80::0202:B3FF:FE1E:8329". + // HTTP request. This field can include port information. Examples: + // "192.168.1.1", "10.0.0.1:80", "FE80::0202:B3FF:FE1E:8329". RemoteIp string `json:"remoteIp,omitempty"` // RequestMethod: The request method. Examples: "GET", "HEAD", "PUT", @@ -957,7 +958,8 @@ type HttpRequest struct { ResponseSize int64 `json:"responseSize,omitempty,string"` // ServerIp: The IP address (IPv4 or IPv6) of the origin server that the - // request was sent to. + // request was sent to. This field can include port information. + // Examples: "192.168.1.1", "10.0.0.1:80", "FE80::0202:B3FF:FE1E:8329". ServerIp string `json:"serverIp,omitempty"` // Status: The response code indicating the status of response. @@ -1087,7 +1089,7 @@ func (s *Linear) UnmarshalJSON(data []byte) error { return nil } -// ListBucketsResponse: The response from ListBuckets (Beta). +// ListBucketsResponse: The response from ListBuckets. type ListBucketsResponse struct { // Buckets: A list of buckets. Buckets []*LogBucket `json:"buckets,omitempty"` @@ -1163,6 +1165,43 @@ func (s *ListExclusionsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListLocationsResponse: The response message for +// Locations.ListLocations. +type ListLocationsResponse struct { + // Locations: A list of locations that matches the specified filter in + // the request. + Locations []*Location `json:"locations,omitempty"` + + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Locations") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Locations") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListLocationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListLogEntriesRequest: The parameters to ListLogEntries. type ListLogEntriesRequest struct { // Filter: Optional. A filter that chooses which log entries to return. @@ -1480,7 +1519,57 @@ func (s *ListViewsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// LogBucket: Describes a repository of logs (Beta). +// Location: A resource that represents Google Cloud Platform location. +type Location struct { + // DisplayName: The friendly name for this location, typically a nearby + // city name. For example, "Tokyo". + DisplayName string `json:"displayName,omitempty"` + + // Labels: Cross-service attributes for the location. For example + // {"cloud.googleapis.com/region": "us-east1"} + Labels map[string]string `json:"labels,omitempty"` + + // LocationId: The canonical id for this location. For example: + // "us-east1". + LocationId string `json:"locationId,omitempty"` + + // Metadata: Service-specific metadata. For example the available + // capacity at the given location. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: Resource name for the location, which may vary between + // implementations. For example: + // "projects/example-project/locations/us-east1" + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisplayName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Location) MarshalJSON() ([]byte, error) { + type NoMethod Location + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LogBucket: Describes a repository of logs. type LogBucket struct { // CreateTime: Output only. The creation timestamp of the bucket. This // is not set for any of the default buckets. @@ -1504,7 +1593,7 @@ type LogBucket struct { // if they are empty. Locked bool `json:"locked,omitempty"` - // Name: The resource name of the bucket. For example: + // Name: Output only. The resource name of the bucket. For example: // "projects/my-project-id/locations/my-location/buckets/my-bucket-id // The supported locations are: "global"For the location of global it is // unspecified where logs are actually stored. Once a bucket has been @@ -1913,8 +2002,8 @@ func (s *LogLine) MarshalJSON() ([]byte, error) { // LogMetric: Describes a logs-based metric. The value of the metric is // the number of log entries that match a logs filter in a given time -// interval.Logs-based metric can also be used to extract values from -// logs and create a a distribution of the values. The distribution +// interval.Logs-based metrics can also be used to extract values from +// logs and create a distribution of the values. The distribution // records the statistics of the extracted values along with an optional // histogram of the values as specified by the bucket options. type LogMetric struct { @@ -2174,6 +2263,8 @@ type LogView struct { // visible in this view. Filters are restricted to be a logical AND of // ==/!= of any of the following: originating // project/folder/organization/billing account. resource type log id + // Example: SOURCE("projects/myproject") AND resource.type = + // "gce_instance" AND LOG_ID("stdout") Filter string `json:"filter,omitempty"` // Name: The resource name of the view. For example @@ -2251,7 +2342,7 @@ type MetricDescriptor struct { // they are cleared for widespread use. By Alpha, all significant design // issues are resolved and we are in the process of verifying // functionality. Alpha customers need to apply for access, agree to - // applicable terms, and have their projects whitelisted. Alpha releases + // applicable terms, and have their projects allowlisted. Alpha releases // don’t have to be feature complete, no SLAs are provided, and there // are no technical support obligations, but they will be far enough // along that customers can actually use them in test environments or @@ -2424,7 +2515,7 @@ type MetricDescriptorMetadata struct { // they are cleared for widespread use. By Alpha, all significant design // issues are resolved and we are in the process of verifying // functionality. Alpha customers need to apply for access, agree to - // applicable terms, and have their projects whitelisted. Alpha releases + // applicable terms, and have their projects allowlisted. Alpha releases // don’t have to be feature complete, no SLAs are provided, and there // are no technical support obligations, but they will be far enough // along that customers can actually use them in test environments or @@ -2561,7 +2652,7 @@ type MonitoredResourceDescriptor struct { // they are cleared for widespread use. By Alpha, all significant design // issues are resolved and we are in the process of verifying // functionality. Alpha customers need to apply for access, agree to - // applicable terms, and have their projects whitelisted. Alpha releases + // applicable terms, and have their projects allowlisted. Alpha releases // don’t have to be feature complete, no SLAs are provided, and there // are no technical support obligations, but they will be far enough // along that customers can actually use them in test environments or @@ -2897,6 +2988,146 @@ func (s *SourceReference) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SuppressionInfo: Information about entries that were omitted from the +// session. +type SuppressionInfo struct { + // Reason: The reason that entries were omitted from the session. + // + // Possible values: + // "REASON_UNSPECIFIED" - Unexpected default. + // "RATE_LIMIT" - Indicates suppression occurred due to relevant + // entries being received in excess of rate limits. For quotas and + // limits, see Logging API quotas and limits + // (https://cloud.google.com/logging/quotas#api-limits). + // "NOT_CONSUMED" - Indicates suppression occurred due to the client + // not consuming responses quickly enough. + Reason string `json:"reason,omitempty"` + + // SuppressedCount: A lower bound on the count of entries omitted due to + // reason. + SuppressedCount int64 `json:"suppressedCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Reason") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Reason") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SuppressionInfo) MarshalJSON() ([]byte, error) { + type NoMethod SuppressionInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TailLogEntriesRequest: The parameters to TailLogEntries. +type TailLogEntriesRequest struct { + // BufferWindow: Optional. The amount of time to buffer log entries at + // the server before being returned to prevent out of order results due + // to late arriving log entries. Valid values are between 0-60000 + // milliseconds. Defaults to 2000 milliseconds. + BufferWindow string `json:"bufferWindow,omitempty"` + + // Filter: Optional. A filter that chooses which log entries to return. + // See Advanced Logs Filters + // (https://cloud.google.com/logging/docs/view/advanced_filters). Only + // log entries that match the filter are returned. An empty filter + // matches all log entries in the resources listed in resource_names. + // Referencing a parent resource that is not in resource_names will + // cause the filter to return no results. The maximum length of the + // filter is 20000 characters. + Filter string `json:"filter,omitempty"` + + // ResourceNames: Required. Name of a parent resource from which to + // retrieve log entries: "projects/[PROJECT_ID]" + // "organizations/[ORGANIZATION_ID]" + // "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" May + // alternatively be one or more views: + // "projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIE + // W_ID" + // "organization/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/ + // views/VIEW_ID" + // "billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCK + // ET_ID/views/VIEW_ID" + // "folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ + // ID" + ResourceNames []string `json:"resourceNames,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BufferWindow") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BufferWindow") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TailLogEntriesRequest) MarshalJSON() ([]byte, error) { + type NoMethod TailLogEntriesRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TailLogEntriesResponse: Result returned from TailLogEntries. +type TailLogEntriesResponse struct { + // Entries: A list of log entries. Each response in the stream will + // order entries with increasing values of LogEntry.timestamp. Ordering + // is not guaranteed between separate responses. + Entries []*LogEntry `json:"entries,omitempty"` + + // SuppressionInfo: If entries that otherwise would have been included + // in the session were not sent back to the client, counts of relevant + // entries omitted from the session with the reason that they were not + // included. There will be at most one of each reason per response. The + // counts represent the number of suppressed entries since the last + // streamed response. + SuppressionInfo []*SuppressionInfo `json:"suppressionInfo,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Entries") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Entries") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TailLogEntriesResponse) MarshalJSON() ([]byte, error) { + type NoMethod TailLogEntriesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // UndeleteBucketRequest: The parameters to UndeleteBucket. type UndeleteBucketRequest struct { } @@ -3008,7 +3239,7 @@ type BillingAccountsBucketsGetCall struct { header_ http.Header } -// Get: Gets a bucket (Beta). +// Get: Gets a bucket. func (r *BillingAccountsBucketsService) Get(name string) *BillingAccountsBucketsGetCall { c := &BillingAccountsBucketsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3052,7 +3283,7 @@ func (c *BillingAccountsBucketsGetCall) Header() http.Header { func (c *BillingAccountsBucketsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3114,7 +3345,7 @@ func (c *BillingAccountsBucketsGetCall) Do(opts ...googleapi.CallOption) (*LogBu } return ret, nil // { - // "description": "Gets a bucket (Beta).", + // "description": "Gets a bucket.", // "flatPath": "v2/billingAccounts/{billingAccountsId}/buckets/{bucketsId}", // "httpMethod": "GET", // "id": "logging.billingAccounts.buckets.get", @@ -3199,7 +3430,7 @@ func (c *BillingAccountsBucketsViewsGetCall) Header() http.Header { func (c *BillingAccountsBucketsViewsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3339,7 +3570,7 @@ func (c *BillingAccountsExclusionsCreateCall) Header() http.Header { func (c *BillingAccountsExclusionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3478,7 +3709,7 @@ func (c *BillingAccountsExclusionsDeleteCall) Header() http.Header { func (c *BillingAccountsExclusionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3620,7 +3851,7 @@ func (c *BillingAccountsExclusionsGetCall) Header() http.Header { func (c *BillingAccountsExclusionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3786,7 +4017,7 @@ func (c *BillingAccountsExclusionsListCall) Header() http.Header { func (c *BillingAccountsExclusionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3968,7 +4199,7 @@ func (c *BillingAccountsExclusionsPatchCall) Header() http.Header { func (c *BillingAccountsExclusionsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4069,96 +4300,93 @@ func (c *BillingAccountsExclusionsPatchCall) Do(opts ...googleapi.CallOption) (* } -// method id "logging.billingAccounts.locations.buckets.create": - -type BillingAccountsLocationsBucketsCreateCall struct { - s *Service - parent string - logbucket *LogBucket - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} +// method id "logging.billingAccounts.locations.get": -// Create: Creates a bucket that can be used to store log entries. Once -// a bucket has been created, the region cannot be changed. -func (r *BillingAccountsLocationsBucketsService) Create(parent string, logbucket *LogBucket) *BillingAccountsLocationsBucketsCreateCall { - c := &BillingAccountsLocationsBucketsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.logbucket = logbucket - return c +type BillingAccountsLocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// BucketId sets the optional parameter "bucketId": Required. A -// client-assigned identifier such as "my-bucket". Identifiers are -// limited to 100 characters and can include only letters, digits, -// underscores, hyphens, and periods. -func (c *BillingAccountsLocationsBucketsCreateCall) BucketId(bucketId string) *BillingAccountsLocationsBucketsCreateCall { - c.urlParams_.Set("bucketId", bucketId) +// Get: Gets information about a location. +func (r *BillingAccountsLocationsService) Get(name string) *BillingAccountsLocationsGetCall { + c := &BillingAccountsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *BillingAccountsLocationsBucketsCreateCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsBucketsCreateCall { +func (c *BillingAccountsLocationsGetCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *BillingAccountsLocationsGetCall) IfNoneMatch(entityTag string) *BillingAccountsLocationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *BillingAccountsLocationsBucketsCreateCall) Context(ctx context.Context) *BillingAccountsLocationsBucketsCreateCall { +func (c *BillingAccountsLocationsGetCall) Context(ctx context.Context) *BillingAccountsLocationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *BillingAccountsLocationsBucketsCreateCall) Header() http.Header { +func (c *BillingAccountsLocationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *BillingAccountsLocationsBucketsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logbucket) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/buckets") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.billingAccounts.locations.buckets.create" call. -// Exactly one of *LogBucket or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LogBucket.ServerResponse.Header or (if a response was returned at +// Do executes the "logging.billingAccounts.locations.get" call. +// Exactly one of *Location or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Location.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *BillingAccountsLocationsBucketsCreateCall) Do(opts ...googleapi.CallOption) (*LogBucket, error) { +func (c *BillingAccountsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4177,7 +4405,7 @@ func (c *BillingAccountsLocationsBucketsCreateCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogBucket{ + ret := &Location{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4189,99 +4417,127 @@ func (c *BillingAccountsLocationsBucketsCreateCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Creates a bucket that can be used to store log entries. Once a bucket has been created, the region cannot be changed.", - // "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/buckets", - // "httpMethod": "POST", - // "id": "logging.billingAccounts.locations.buckets.create", + // "description": "Gets information about a location.", + // "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}", + // "httpMethod": "GET", + // "id": "logging.billingAccounts.locations.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "bucketId": { - // "description": "Required. A client-assigned identifier such as \"my-bucket\". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource in which to create the bucket: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" Example: \"projects/my-logging-project/locations/global\"", + // "name": { + // "description": "Resource name for the location.", // "location": "path", // "pattern": "^billingAccounts/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+parent}/buckets", - // "request": { - // "$ref": "LogBucket" - // }, + // "path": "v2/{+name}", // "response": { - // "$ref": "LogBucket" + // "$ref": "Location" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin" + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/logging.admin", + // "https://www.googleapis.com/auth/logging.read" // ] // } } -// method id "logging.billingAccounts.locations.buckets.delete": +// method id "logging.billingAccounts.locations.list": -type BillingAccountsLocationsBucketsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type BillingAccountsLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a bucket. Moves the bucket to the DELETE_REQUESTED -// state. After 7 days, the bucket will be purged and all logs in the -// bucket will be permanently deleted. -func (r *BillingAccountsLocationsBucketsService) Delete(name string) *BillingAccountsLocationsBucketsDeleteCall { - c := &BillingAccountsLocationsBucketsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// List: Lists information about the supported locations for this +// service. +func (r *BillingAccountsLocationsService) List(name string) *BillingAccountsLocationsListCall { + c := &BillingAccountsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *BillingAccountsLocationsListCall) Filter(filter string) *BillingAccountsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *BillingAccountsLocationsListCall) PageSize(pageSize int64) *BillingAccountsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *BillingAccountsLocationsListCall) PageToken(pageToken string) *BillingAccountsLocationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *BillingAccountsLocationsBucketsDeleteCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsBucketsDeleteCall { +func (c *BillingAccountsLocationsListCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *BillingAccountsLocationsListCall) IfNoneMatch(entityTag string) *BillingAccountsLocationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *BillingAccountsLocationsBucketsDeleteCall) Context(ctx context.Context) *BillingAccountsLocationsBucketsDeleteCall { +func (c *BillingAccountsLocationsListCall) Context(ctx context.Context) *BillingAccountsLocationsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *BillingAccountsLocationsBucketsDeleteCall) Header() http.Header { +func (c *BillingAccountsLocationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *BillingAccountsLocationsBucketsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}/locations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -4292,14 +4548,14 @@ func (c *BillingAccountsLocationsBucketsDeleteCall) doRequest(alt string) (*http return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.billingAccounts.locations.buckets.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *BillingAccountsLocationsBucketsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +// Do executes the "logging.billingAccounts.locations.list" call. +// Exactly one of *ListLocationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *BillingAccountsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4318,7 +4574,7 @@ func (c *BillingAccountsLocationsBucketsDeleteCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Empty{ + ret := &ListLocationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4330,122 +4586,145 @@ func (c *BillingAccountsLocationsBucketsDeleteCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Deletes a bucket. Moves the bucket to the DELETE_REQUESTED state. After 7 days, the bucket will be purged and all logs in the bucket will be permanently deleted.", - // "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/buckets/{bucketsId}", - // "httpMethod": "DELETE", - // "id": "logging.billingAccounts.locations.buckets.delete", + // "description": "Lists information about the supported locations for this service.", + // "flatPath": "v2/billingAccounts/{billingAccountsId}/locations", + // "httpMethod": "GET", + // "id": "logging.billingAccounts.locations.list", // "parameterOrder": [ // "name" // ], // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, // "name": { - // "description": "Required. The full resource name of the bucket to delete. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\".", + // "description": "The resource that owns the locations collection, if applicable.", // "location": "path", - // "pattern": "^billingAccounts/[^/]+/locations/[^/]+/buckets/[^/]+$", + // "pattern": "^billingAccounts/[^/]+$", // "required": true, // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" // } // }, - // "path": "v2/{+name}", + // "path": "v2/{+name}/locations", // "response": { - // "$ref": "Empty" + // "$ref": "ListLocationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin" + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/logging.admin", + // "https://www.googleapis.com/auth/logging.read" // ] // } } -// method id "logging.billingAccounts.locations.buckets.list": - -type BillingAccountsLocationsBucketsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *BillingAccountsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } } -// List: Lists buckets (Beta). -func (r *BillingAccountsLocationsBucketsService) List(parent string) *BillingAccountsLocationsBucketsListCall { - c := &BillingAccountsLocationsBucketsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c +// method id "logging.billingAccounts.locations.buckets.create": + +type BillingAccountsLocationsBucketsCreateCall struct { + s *Service + parent string + logbucket *LogBucket + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return from this request. Non-positive values are -// ignored. The presence of nextPageToken in the response indicates that -// more results might be available. -func (c *BillingAccountsLocationsBucketsListCall) PageSize(pageSize int64) *BillingAccountsLocationsBucketsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// Create: Creates a bucket that can be used to store log entries. Once +// a bucket has been created, the region cannot be changed. +func (r *BillingAccountsLocationsBucketsService) Create(parent string, logbucket *LogBucket) *BillingAccountsLocationsBucketsCreateCall { + c := &BillingAccountsLocationsBucketsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.logbucket = logbucket return c } -// PageToken sets the optional parameter "pageToken": If present, then -// retrieve the next batch of results from the preceding call to this -// method. pageToken must be the value of nextPageToken from the -// previous response. The values of other method parameters should be -// identical to those in the previous call. -func (c *BillingAccountsLocationsBucketsListCall) PageToken(pageToken string) *BillingAccountsLocationsBucketsListCall { - c.urlParams_.Set("pageToken", pageToken) +// BucketId sets the optional parameter "bucketId": Required. A +// client-assigned identifier such as "my-bucket". Identifiers are +// limited to 100 characters and can include only letters, digits, +// underscores, hyphens, and periods. +func (c *BillingAccountsLocationsBucketsCreateCall) BucketId(bucketId string) *BillingAccountsLocationsBucketsCreateCall { + c.urlParams_.Set("bucketId", bucketId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *BillingAccountsLocationsBucketsListCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsBucketsListCall { +func (c *BillingAccountsLocationsBucketsCreateCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsBucketsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *BillingAccountsLocationsBucketsListCall) IfNoneMatch(entityTag string) *BillingAccountsLocationsBucketsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *BillingAccountsLocationsBucketsListCall) Context(ctx context.Context) *BillingAccountsLocationsBucketsListCall { +func (c *BillingAccountsLocationsBucketsCreateCall) Context(ctx context.Context) *BillingAccountsLocationsBucketsCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *BillingAccountsLocationsBucketsListCall) Header() http.Header { +func (c *BillingAccountsLocationsBucketsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *BillingAccountsLocationsBucketsListCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsLocationsBucketsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logbucket) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/buckets") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -4456,14 +4735,14 @@ func (c *BillingAccountsLocationsBucketsListCall) doRequest(alt string) (*http.R return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.billingAccounts.locations.buckets.list" call. -// Exactly one of *ListBucketsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListBucketsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *BillingAccountsLocationsBucketsListCall) Do(opts ...googleapi.CallOption) (*ListBucketsResponse, error) { +// Do executes the "logging.billingAccounts.locations.buckets.create" call. +// Exactly one of *LogBucket or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *LogBucket.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *BillingAccountsLocationsBucketsCreateCall) Do(opts ...googleapi.CallOption) (*LogBucket, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4482,7 +4761,7 @@ func (c *BillingAccountsLocationsBucketsListCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListBucketsResponse{ + ret := &LogBucket{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4494,27 +4773,21 @@ func (c *BillingAccountsLocationsBucketsListCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Lists buckets (Beta).", + // "description": "Creates a bucket that can be used to store log entries. Once a bucket has been created, the region cannot be changed.", // "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/buckets", - // "httpMethod": "GET", - // "id": "logging.billingAccounts.locations.buckets.list", + // "httpMethod": "POST", + // "id": "logging.billingAccounts.locations.buckets.create", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "pageSize": { - // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", + // "bucketId": { + // "description": "Required. A client-assigned identifier such as \"my-bucket\". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The parent resource whose buckets are to be listed: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]\" Note: The locations portion of the resource must be specified, but supplying the character - in place of LOCATION_ID will return all buckets.", + // "description": "Required. The resource in which to create the bucket: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" Example: \"projects/my-logging-project/locations/global\"", // "location": "path", // "pattern": "^billingAccounts/[^/]+/locations/[^/]+$", // "required": true, @@ -4522,81 +4795,43 @@ func (c *BillingAccountsLocationsBucketsListCall) Do(opts ...googleapi.CallOptio // } // }, // "path": "v2/{+parent}/buckets", + // "request": { + // "$ref": "LogBucket" + // }, // "response": { - // "$ref": "ListBucketsResponse" + // "$ref": "LogBucket" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/logging.admin", - // "https://www.googleapis.com/auth/logging.read" + // "https://www.googleapis.com/auth/logging.admin" // ] // } } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *BillingAccountsLocationsBucketsListCall) Pages(ctx context.Context, f func(*ListBucketsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -// method id "logging.billingAccounts.locations.buckets.patch": +// method id "logging.billingAccounts.locations.buckets.delete": -type BillingAccountsLocationsBucketsPatchCall struct { +type BillingAccountsLocationsBucketsDeleteCall struct { s *Service name string - logbucket *LogBucket urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Patch: Updates a bucket. This method replaces the following fields in -// the existing bucket with values from the new bucket: -// retention_periodIf the retention period is decreased and the bucket -// is locked, FAILED_PRECONDITION will be returned.If the bucket has a -// LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be -// returned.A buckets region may not be modified after it is created. -// This method is in Beta. -func (r *BillingAccountsLocationsBucketsService) Patch(name string, logbucket *LogBucket) *BillingAccountsLocationsBucketsPatchCall { - c := &BillingAccountsLocationsBucketsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Delete: Deletes a bucket. Moves the bucket to the DELETE_REQUESTED +// state. After 7 days, the bucket will be purged and all logs in the +// bucket will be permanently deleted. +func (r *BillingAccountsLocationsBucketsService) Delete(name string) *BillingAccountsLocationsBucketsDeleteCall { + c := &BillingAccountsLocationsBucketsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.logbucket = logbucket - return c -} - -// UpdateMask sets the optional parameter "updateMask": Required. Field -// mask that specifies the fields in bucket that need an update. A -// bucket field will be overwritten if, and only if, it is in the update -// mask. name and output only fields cannot be updated.For a detailed -// FieldMask definition, see -// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: -// updateMask=retention_days. -func (c *BillingAccountsLocationsBucketsPatchCall) UpdateMask(updateMask string) *BillingAccountsLocationsBucketsPatchCall { - c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *BillingAccountsLocationsBucketsPatchCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsBucketsPatchCall { +func (c *BillingAccountsLocationsBucketsDeleteCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsBucketsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4604,38 +4839,33 @@ func (c *BillingAccountsLocationsBucketsPatchCall) Fields(s ...googleapi.Field) // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *BillingAccountsLocationsBucketsPatchCall) Context(ctx context.Context) *BillingAccountsLocationsBucketsPatchCall { +func (c *BillingAccountsLocationsBucketsDeleteCall) Context(ctx context.Context) *BillingAccountsLocationsBucketsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *BillingAccountsLocationsBucketsPatchCall) Header() http.Header { +func (c *BillingAccountsLocationsBucketsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *BillingAccountsLocationsBucketsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsLocationsBucketsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logbucket) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -4646,14 +4876,14 @@ func (c *BillingAccountsLocationsBucketsPatchCall) doRequest(alt string) (*http. return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.billingAccounts.locations.buckets.patch" call. -// Exactly one of *LogBucket or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LogBucket.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *BillingAccountsLocationsBucketsPatchCall) Do(opts ...googleapi.CallOption) (*LogBucket, error) { +// Do executes the "logging.billingAccounts.locations.buckets.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *BillingAccountsLocationsBucketsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4672,7 +4902,7 @@ func (c *BillingAccountsLocationsBucketsPatchCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogBucket{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4684,34 +4914,25 @@ func (c *BillingAccountsLocationsBucketsPatchCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Updates a bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be returned.A buckets region may not be modified after it is created. This method is in Beta.", + // "description": "Deletes a bucket. Moves the bucket to the DELETE_REQUESTED state. After 7 days, the bucket will be purged and all logs in the bucket will be permanently deleted.", // "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/buckets/{bucketsId}", - // "httpMethod": "PATCH", - // "id": "logging.billingAccounts.locations.buckets.patch", + // "httpMethod": "DELETE", + // "id": "logging.billingAccounts.locations.buckets.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The full resource name of the bucket to update. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\". Also requires permission \"resourcemanager.projects.updateLiens\" to set the locked property", + // "description": "Required. The full resource name of the bucket to delete. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\".", // "location": "path", // "pattern": "^billingAccounts/[^/]+/locations/[^/]+/buckets/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=retention_days.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, // "path": "v2/{+name}", - // "request": { - // "$ref": "LogBucket" - // }, // "response": { - // "$ref": "LogBucket" + // "$ref": "Empty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -4721,87 +4942,112 @@ func (c *BillingAccountsLocationsBucketsPatchCall) Do(opts ...googleapi.CallOpti } -// method id "logging.billingAccounts.locations.buckets.undelete": +// method id "logging.billingAccounts.locations.buckets.list": -type BillingAccountsLocationsBucketsUndeleteCall struct { - s *Service - name string - undeletebucketrequest *UndeleteBucketRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type BillingAccountsLocationsBucketsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Undelete: Undeletes a bucket. A bucket that has been deleted may be -// undeleted within the grace period of 7 days. -func (r *BillingAccountsLocationsBucketsService) Undelete(name string, undeletebucketrequest *UndeleteBucketRequest) *BillingAccountsLocationsBucketsUndeleteCall { - c := &BillingAccountsLocationsBucketsUndeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.undeletebucketrequest = undeletebucketrequest +// List: Lists buckets. +func (r *BillingAccountsLocationsBucketsService) List(parent string) *BillingAccountsLocationsBucketsListCall { + c := &BillingAccountsLocationsBucketsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return from this request. Non-positive values are +// ignored. The presence of nextPageToken in the response indicates that +// more results might be available. +func (c *BillingAccountsLocationsBucketsListCall) PageSize(pageSize int64) *BillingAccountsLocationsBucketsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": If present, then +// retrieve the next batch of results from the preceding call to this +// method. pageToken must be the value of nextPageToken from the +// previous response. The values of other method parameters should be +// identical to those in the previous call. +func (c *BillingAccountsLocationsBucketsListCall) PageToken(pageToken string) *BillingAccountsLocationsBucketsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *BillingAccountsLocationsBucketsUndeleteCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsBucketsUndeleteCall { +func (c *BillingAccountsLocationsBucketsListCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsBucketsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *BillingAccountsLocationsBucketsListCall) IfNoneMatch(entityTag string) *BillingAccountsLocationsBucketsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *BillingAccountsLocationsBucketsUndeleteCall) Context(ctx context.Context) *BillingAccountsLocationsBucketsUndeleteCall { +func (c *BillingAccountsLocationsBucketsListCall) Context(ctx context.Context) *BillingAccountsLocationsBucketsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *BillingAccountsLocationsBucketsUndeleteCall) Header() http.Header { +func (c *BillingAccountsLocationsBucketsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *BillingAccountsLocationsBucketsUndeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsLocationsBucketsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.undeletebucketrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:undelete") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/buckets") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.billingAccounts.locations.buckets.undelete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *BillingAccountsLocationsBucketsUndeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +// Do executes the "logging.billingAccounts.locations.buckets.list" call. +// Exactly one of *ListBucketsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListBucketsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *BillingAccountsLocationsBucketsListCall) Do(opts ...googleapi.CallOption) (*ListBucketsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4820,7 +5066,7 @@ func (c *BillingAccountsLocationsBucketsUndeleteCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Empty{ + ret := &ListBucketsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4832,68 +5078,108 @@ func (c *BillingAccountsLocationsBucketsUndeleteCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Undeletes a bucket. A bucket that has been deleted may be undeleted within the grace period of 7 days.", - // "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/buckets/{bucketsId}:undelete", - // "httpMethod": "POST", - // "id": "logging.billingAccounts.locations.buckets.undelete", + // "description": "Lists buckets.", + // "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/buckets", + // "httpMethod": "GET", + // "id": "logging.billingAccounts.locations.buckets.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The full resource name of the bucket to undelete. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\".", + // "pageSize": { + // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent resource whose buckets are to be listed: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]\" Note: The locations portion of the resource must be specified, but supplying the character - in place of LOCATION_ID will return all buckets.", // "location": "path", - // "pattern": "^billingAccounts/[^/]+/locations/[^/]+/buckets/[^/]+$", + // "pattern": "^billingAccounts/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+name}:undelete", - // "request": { - // "$ref": "UndeleteBucketRequest" - // }, + // "path": "v2/{+parent}/buckets", // "response": { - // "$ref": "Empty" + // "$ref": "ListBucketsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin" + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/logging.admin", + // "https://www.googleapis.com/auth/logging.read" // ] // } } -// method id "logging.billingAccounts.locations.buckets.views.create": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *BillingAccountsLocationsBucketsListCall) Pages(ctx context.Context, f func(*ListBucketsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type BillingAccountsLocationsBucketsViewsCreateCall struct { +// method id "logging.billingAccounts.locations.buckets.patch": + +type BillingAccountsLocationsBucketsPatchCall struct { s *Service - parent string - logview *LogView + name string + logbucket *LogBucket urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Create: Creates a view over logs in a bucket. A bucket may contain a -// maximum of 50 views. -func (r *BillingAccountsLocationsBucketsViewsService) Create(parent string, logview *LogView) *BillingAccountsLocationsBucketsViewsCreateCall { - c := &BillingAccountsLocationsBucketsViewsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.logview = logview +// Patch: Updates a bucket. This method replaces the following fields in +// the existing bucket with values from the new bucket: +// retention_periodIf the retention period is decreased and the bucket +// is locked, FAILED_PRECONDITION will be returned.If the bucket has a +// LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be +// returned.A buckets region may not be modified after it is created. +func (r *BillingAccountsLocationsBucketsService) Patch(name string, logbucket *LogBucket) *BillingAccountsLocationsBucketsPatchCall { + c := &BillingAccountsLocationsBucketsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.logbucket = logbucket return c } -// ViewId sets the optional parameter "viewId": Required. The id to use -// for this view. -func (c *BillingAccountsLocationsBucketsViewsCreateCall) ViewId(viewId string) *BillingAccountsLocationsBucketsViewsCreateCall { - c.urlParams_.Set("viewId", viewId) +// UpdateMask sets the optional parameter "updateMask": Required. Field +// mask that specifies the fields in bucket that need an update. A +// bucket field will be overwritten if, and only if, it is in the update +// mask. name and output only fields cannot be updated.For a detailed +// FieldMask definition, see +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: +// updateMask=retention_days. +func (c *BillingAccountsLocationsBucketsPatchCall) UpdateMask(updateMask string) *BillingAccountsLocationsBucketsPatchCall { + c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *BillingAccountsLocationsBucketsViewsCreateCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsBucketsViewsCreateCall { +func (c *BillingAccountsLocationsBucketsPatchCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsBucketsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4901,57 +5187,57 @@ func (c *BillingAccountsLocationsBucketsViewsCreateCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *BillingAccountsLocationsBucketsViewsCreateCall) Context(ctx context.Context) *BillingAccountsLocationsBucketsViewsCreateCall { +func (c *BillingAccountsLocationsBucketsPatchCall) Context(ctx context.Context) *BillingAccountsLocationsBucketsPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *BillingAccountsLocationsBucketsViewsCreateCall) Header() http.Header { +func (c *BillingAccountsLocationsBucketsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *BillingAccountsLocationsBucketsViewsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsLocationsBucketsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logview) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logbucket) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/views") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.billingAccounts.locations.buckets.views.create" call. -// Exactly one of *LogView or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *LogView.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *BillingAccountsLocationsBucketsViewsCreateCall) Do(opts ...googleapi.CallOption) (*LogView, error) { - gensupport.SetOptions(c.urlParams_, opts...) +// Do executes the "logging.billingAccounts.locations.buckets.patch" call. +// Exactly one of *LogBucket or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *LogBucket.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *BillingAccountsLocationsBucketsPatchCall) Do(opts ...googleapi.CallOption) (*LogBucket, error) { + gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { @@ -4969,7 +5255,7 @@ func (c *BillingAccountsLocationsBucketsViewsCreateCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogView{ + ret := &LogBucket{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4981,33 +5267,34 @@ func (c *BillingAccountsLocationsBucketsViewsCreateCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Creates a view over logs in a bucket. A bucket may contain a maximum of 50 views.", - // "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/buckets/{bucketsId}/views", - // "httpMethod": "POST", - // "id": "logging.billingAccounts.locations.buckets.views.create", + // "description": "Updates a bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be returned.A buckets region may not be modified after it is created.", + // "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/buckets/{bucketsId}", + // "httpMethod": "PATCH", + // "id": "logging.billingAccounts.locations.buckets.patch", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The bucket in which to create the view \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-logging-project/locations/my-location/buckets/my-bucket\"", + // "name": { + // "description": "Required. The full resource name of the bucket to update. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\". Also requires permission \"resourcemanager.projects.updateLiens\" to set the locked property", // "location": "path", // "pattern": "^billingAccounts/[^/]+/locations/[^/]+/buckets/[^/]+$", // "required": true, // "type": "string" // }, - // "viewId": { - // "description": "Required. The id to use for this view.", + // "updateMask": { + // "description": "Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=retention_days.", + // "format": "google-fieldmask", // "location": "query", // "type": "string" // } // }, - // "path": "v2/{+parent}/views", + // "path": "v2/{+name}", // "request": { - // "$ref": "LogView" + // "$ref": "LogBucket" // }, // "response": { - // "$ref": "LogView" + // "$ref": "LogBucket" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -5017,27 +5304,30 @@ func (c *BillingAccountsLocationsBucketsViewsCreateCall) Do(opts ...googleapi.Ca } -// method id "logging.billingAccounts.locations.buckets.views.delete": +// method id "logging.billingAccounts.locations.buckets.undelete": -type BillingAccountsLocationsBucketsViewsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type BillingAccountsLocationsBucketsUndeleteCall struct { + s *Service + name string + undeletebucketrequest *UndeleteBucketRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a view from a bucket. -func (r *BillingAccountsLocationsBucketsViewsService) Delete(name string) *BillingAccountsLocationsBucketsViewsDeleteCall { - c := &BillingAccountsLocationsBucketsViewsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Undelete: Undeletes a bucket. A bucket that has been deleted may be +// undeleted within the grace period of 7 days. +func (r *BillingAccountsLocationsBucketsService) Undelete(name string, undeletebucketrequest *UndeleteBucketRequest) *BillingAccountsLocationsBucketsUndeleteCall { + c := &BillingAccountsLocationsBucketsUndeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.undeletebucketrequest = undeletebucketrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *BillingAccountsLocationsBucketsViewsDeleteCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsBucketsViewsDeleteCall { +func (c *BillingAccountsLocationsBucketsUndeleteCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsBucketsUndeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5045,33 +5335,38 @@ func (c *BillingAccountsLocationsBucketsViewsDeleteCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *BillingAccountsLocationsBucketsViewsDeleteCall) Context(ctx context.Context) *BillingAccountsLocationsBucketsViewsDeleteCall { +func (c *BillingAccountsLocationsBucketsUndeleteCall) Context(ctx context.Context) *BillingAccountsLocationsBucketsUndeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *BillingAccountsLocationsBucketsViewsDeleteCall) Header() http.Header { +func (c *BillingAccountsLocationsBucketsUndeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *BillingAccountsLocationsBucketsViewsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsLocationsBucketsUndeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.undeletebucketrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:undelete") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -5082,14 +5377,14 @@ func (c *BillingAccountsLocationsBucketsViewsDeleteCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.billingAccounts.locations.buckets.views.delete" call. +// Do executes the "logging.billingAccounts.locations.buckets.undelete" call. // Exactly one of *Empty or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either // *Empty.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *BillingAccountsLocationsBucketsViewsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +func (c *BillingAccountsLocationsBucketsUndeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5120,23 +5415,26 @@ func (c *BillingAccountsLocationsBucketsViewsDeleteCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Deletes a view from a bucket.", - // "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}", - // "httpMethod": "DELETE", - // "id": "logging.billingAccounts.locations.buckets.views.delete", + // "description": "Undeletes a bucket. A bucket that has been deleted may be undeleted within the grace period of 7 days.", + // "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/buckets/{bucketsId}:undelete", + // "httpMethod": "POST", + // "id": "logging.billingAccounts.locations.buckets.undelete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The full resource name of the view to delete: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id\".", + // "description": "Required. The full resource name of the bucket to undelete. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\".", // "location": "path", - // "pattern": "^billingAccounts/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", + // "pattern": "^billingAccounts/[^/]+/locations/[^/]+/buckets/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+name}", + // "path": "v2/{+name}:undelete", + // "request": { + // "$ref": "UndeleteBucketRequest" + // }, // "response": { // "$ref": "Empty" // }, @@ -5148,94 +5446,76 @@ func (c *BillingAccountsLocationsBucketsViewsDeleteCall) Do(opts ...googleapi.Ca } -// method id "logging.billingAccounts.locations.buckets.views.list": +// method id "logging.billingAccounts.locations.buckets.views.create": -type BillingAccountsLocationsBucketsViewsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type BillingAccountsLocationsBucketsViewsCreateCall struct { + s *Service + parent string + logview *LogView + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists views on a bucket.. -func (r *BillingAccountsLocationsBucketsViewsService) List(parent string) *BillingAccountsLocationsBucketsViewsListCall { - c := &BillingAccountsLocationsBucketsViewsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Create: Creates a view over logs in a bucket. A bucket may contain a +// maximum of 50 views. +func (r *BillingAccountsLocationsBucketsViewsService) Create(parent string, logview *LogView) *BillingAccountsLocationsBucketsViewsCreateCall { + c := &BillingAccountsLocationsBucketsViewsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent + c.logview = logview return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return from this request. Non-positive values are -// ignored. The presence of nextPageToken in the response indicates that -// more results might be available. -func (c *BillingAccountsLocationsBucketsViewsListCall) PageSize(pageSize int64) *BillingAccountsLocationsBucketsViewsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": If present, then -// retrieve the next batch of results from the preceding call to this -// method. pageToken must be the value of nextPageToken from the -// previous response. The values of other method parameters should be -// identical to those in the previous call. -func (c *BillingAccountsLocationsBucketsViewsListCall) PageToken(pageToken string) *BillingAccountsLocationsBucketsViewsListCall { - c.urlParams_.Set("pageToken", pageToken) +// ViewId sets the optional parameter "viewId": Required. The id to use +// for this view. +func (c *BillingAccountsLocationsBucketsViewsCreateCall) ViewId(viewId string) *BillingAccountsLocationsBucketsViewsCreateCall { + c.urlParams_.Set("viewId", viewId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *BillingAccountsLocationsBucketsViewsListCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsBucketsViewsListCall { +func (c *BillingAccountsLocationsBucketsViewsCreateCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsBucketsViewsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *BillingAccountsLocationsBucketsViewsListCall) IfNoneMatch(entityTag string) *BillingAccountsLocationsBucketsViewsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *BillingAccountsLocationsBucketsViewsListCall) Context(ctx context.Context) *BillingAccountsLocationsBucketsViewsListCall { +func (c *BillingAccountsLocationsBucketsViewsCreateCall) Context(ctx context.Context) *BillingAccountsLocationsBucketsViewsCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *BillingAccountsLocationsBucketsViewsListCall) Header() http.Header { +func (c *BillingAccountsLocationsBucketsViewsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *BillingAccountsLocationsBucketsViewsListCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsLocationsBucketsViewsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logview) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/views") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -5246,14 +5526,14 @@ func (c *BillingAccountsLocationsBucketsViewsListCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.billingAccounts.locations.buckets.views.list" call. -// Exactly one of *ListViewsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListViewsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *BillingAccountsLocationsBucketsViewsListCall) Do(opts ...googleapi.CallOption) (*ListViewsResponse, error) { +// Do executes the "logging.billingAccounts.locations.buckets.views.create" call. +// Exactly one of *LogView or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *LogView.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *BillingAccountsLocationsBucketsViewsCreateCall) Do(opts ...googleapi.CallOption) (*LogView, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5272,7 +5552,7 @@ func (c *BillingAccountsLocationsBucketsViewsListCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListViewsResponse{ + ret := &LogView{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5284,104 +5564,63 @@ func (c *BillingAccountsLocationsBucketsViewsListCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Lists views on a bucket..", + // "description": "Creates a view over logs in a bucket. A bucket may contain a maximum of 50 views.", // "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/buckets/{bucketsId}/views", - // "httpMethod": "GET", - // "id": "logging.billingAccounts.locations.buckets.views.list", + // "httpMethod": "POST", + // "id": "logging.billingAccounts.locations.buckets.views.create", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "pageSize": { - // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", - // "location": "query", - // "type": "string" - // }, // "parent": { - // "description": "Required. The bucket whose views are to be listed: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" ", + // "description": "Required. The bucket in which to create the view \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-logging-project/locations/my-location/buckets/my-bucket\"", // "location": "path", // "pattern": "^billingAccounts/[^/]+/locations/[^/]+/buckets/[^/]+$", // "required": true, // "type": "string" + // }, + // "viewId": { + // "description": "Required. The id to use for this view.", + // "location": "query", + // "type": "string" // } // }, // "path": "v2/{+parent}/views", + // "request": { + // "$ref": "LogView" + // }, // "response": { - // "$ref": "ListViewsResponse" + // "$ref": "LogView" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/logging.admin", - // "https://www.googleapis.com/auth/logging.read" + // "https://www.googleapis.com/auth/logging.admin" // ] // } } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *BillingAccountsLocationsBucketsViewsListCall) Pages(ctx context.Context, f func(*ListViewsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -// method id "logging.billingAccounts.locations.buckets.views.patch": +// method id "logging.billingAccounts.locations.buckets.views.delete": -type BillingAccountsLocationsBucketsViewsPatchCall struct { +type BillingAccountsLocationsBucketsViewsDeleteCall struct { s *Service name string - logview *LogView urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Patch: Updates a view. This method replaces the following fields in -// the existing view with values from the new view: filter. -func (r *BillingAccountsLocationsBucketsViewsService) Patch(name string, logview *LogView) *BillingAccountsLocationsBucketsViewsPatchCall { - c := &BillingAccountsLocationsBucketsViewsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Delete: Deletes a view from a bucket. +func (r *BillingAccountsLocationsBucketsViewsService) Delete(name string) *BillingAccountsLocationsBucketsViewsDeleteCall { + c := &BillingAccountsLocationsBucketsViewsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.logview = logview - return c -} - -// UpdateMask sets the optional parameter "updateMask": Field mask that -// specifies the fields in view that need an update. A field will be -// overwritten if, and only if, it is in the update mask. name and -// output only fields cannot be updated.For a detailed FieldMask -// definition, see -// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: -// updateMask=filter. -func (c *BillingAccountsLocationsBucketsViewsPatchCall) UpdateMask(updateMask string) *BillingAccountsLocationsBucketsViewsPatchCall { - c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *BillingAccountsLocationsBucketsViewsPatchCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsBucketsViewsPatchCall { +func (c *BillingAccountsLocationsBucketsViewsDeleteCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsBucketsViewsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5389,38 +5628,33 @@ func (c *BillingAccountsLocationsBucketsViewsPatchCall) Fields(s ...googleapi.Fi // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *BillingAccountsLocationsBucketsViewsPatchCall) Context(ctx context.Context) *BillingAccountsLocationsBucketsViewsPatchCall { +func (c *BillingAccountsLocationsBucketsViewsDeleteCall) Context(ctx context.Context) *BillingAccountsLocationsBucketsViewsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *BillingAccountsLocationsBucketsViewsPatchCall) Header() http.Header { +func (c *BillingAccountsLocationsBucketsViewsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *BillingAccountsLocationsBucketsViewsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsLocationsBucketsViewsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logview) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -5431,14 +5665,14 @@ func (c *BillingAccountsLocationsBucketsViewsPatchCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.billingAccounts.locations.buckets.views.patch" call. -// Exactly one of *LogView or error will be non-nil. Any non-2xx status +// Do executes the "logging.billingAccounts.locations.buckets.views.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either -// *LogView.ServerResponse.Header or (if a response was returned at all) +// *Empty.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *BillingAccountsLocationsBucketsViewsPatchCall) Do(opts ...googleapi.CallOption) (*LogView, error) { +func (c *BillingAccountsLocationsBucketsViewsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5457,7 +5691,7 @@ func (c *BillingAccountsLocationsBucketsViewsPatchCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogView{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5469,166 +5703,23 @@ func (c *BillingAccountsLocationsBucketsViewsPatchCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Updates a view. This method replaces the following fields in the existing view with values from the new view: filter.", + // "description": "Deletes a view from a bucket.", // "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}", - // "httpMethod": "PATCH", - // "id": "logging.billingAccounts.locations.buckets.views.patch", + // "httpMethod": "DELETE", + // "id": "logging.billingAccounts.locations.buckets.views.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The full resource name of the view to update \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id\".", + // "description": "Required. The full resource name of the view to delete: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id\".", // "location": "path", // "pattern": "^billingAccounts/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "Optional. Field mask that specifies the fields in view that need an update. A field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, // "path": "v2/{+name}", - // "request": { - // "$ref": "LogView" - // }, - // "response": { - // "$ref": "LogView" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin" - // ] - // } - -} - -// method id "logging.billingAccounts.logs.delete": - -type BillingAccountsLogsDeleteCall struct { - s *Service - logName string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes all the log entries in a log. The log reappears if it -// receives new entries. Log entries written shortly before the delete -// operation might not be deleted. Entries received after the delete -// operation with a timestamp before the operation will be deleted. -func (r *BillingAccountsLogsService) Delete(logName string) *BillingAccountsLogsDeleteCall { - c := &BillingAccountsLogsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.logName = logName - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *BillingAccountsLogsDeleteCall) Fields(s ...googleapi.Field) *BillingAccountsLogsDeleteCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *BillingAccountsLogsDeleteCall) Context(ctx context.Context) *BillingAccountsLogsDeleteCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *BillingAccountsLogsDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *BillingAccountsLogsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+logName}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "logName": c.logName, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "logging.billingAccounts.logs.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *BillingAccountsLogsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, &googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - } - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - ret := &Empty{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Deletes all the log entries in a log. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted. Entries received after the delete operation with a timestamp before the operation will be deleted.", - // "flatPath": "v2/billingAccounts/{billingAccountsId}/logs/{logsId}", - // "httpMethod": "DELETE", - // "id": "logging.billingAccounts.logs.delete", - // "parameterOrder": [ - // "logName" - // ], - // "parameters": { - // "logName": { - // "description": "Required. The resource name of the log to delete: \"projects/[PROJECT_ID]/logs/[LOG_ID]\" \"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\" \"folders/[FOLDER_ID]/logs/[LOG_ID]\" [LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.", - // "location": "path", - // "pattern": "^billingAccounts/[^/]+/logs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/{+logName}", // "response": { // "$ref": "Empty" // }, @@ -5640,9 +5731,9 @@ func (c *BillingAccountsLogsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty } -// method id "logging.billingAccounts.logs.list": +// method id "logging.billingAccounts.locations.buckets.views.list": -type BillingAccountsLogsListCall struct { +type BillingAccountsLocationsBucketsViewsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -5651,10 +5742,9 @@ type BillingAccountsLogsListCall struct { header_ http.Header } -// List: Lists the logs in projects, organizations, folders, or billing -// accounts. Only logs that have entries are listed. -func (r *BillingAccountsLogsService) List(parent string) *BillingAccountsLogsListCall { - c := &BillingAccountsLogsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// List: Lists views on a bucket. +func (r *BillingAccountsLocationsBucketsViewsService) List(parent string) *BillingAccountsLocationsBucketsViewsListCall { + c := &BillingAccountsLocationsBucketsViewsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } @@ -5663,7 +5753,7 @@ func (r *BillingAccountsLogsService) List(parent string) *BillingAccountsLogsLis // of results to return from this request. Non-positive values are // ignored. The presence of nextPageToken in the response indicates that // more results might be available. -func (c *BillingAccountsLogsListCall) PageSize(pageSize int64) *BillingAccountsLogsListCall { +func (c *BillingAccountsLocationsBucketsViewsListCall) PageSize(pageSize int64) *BillingAccountsLocationsBucketsViewsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } @@ -5673,7 +5763,7 @@ func (c *BillingAccountsLogsListCall) PageSize(pageSize int64) *BillingAccountsL // method. pageToken must be the value of nextPageToken from the // previous response. The values of other method parameters should be // identical to those in the previous call. -func (c *BillingAccountsLogsListCall) PageToken(pageToken string) *BillingAccountsLogsListCall { +func (c *BillingAccountsLocationsBucketsViewsListCall) PageToken(pageToken string) *BillingAccountsLocationsBucketsViewsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -5681,7 +5771,7 @@ func (c *BillingAccountsLogsListCall) PageToken(pageToken string) *BillingAccoun // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *BillingAccountsLogsListCall) Fields(s ...googleapi.Field) *BillingAccountsLogsListCall { +func (c *BillingAccountsLocationsBucketsViewsListCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsBucketsViewsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5691,7 +5781,7 @@ func (c *BillingAccountsLogsListCall) Fields(s ...googleapi.Field) *BillingAccou // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *BillingAccountsLogsListCall) IfNoneMatch(entityTag string) *BillingAccountsLogsListCall { +func (c *BillingAccountsLocationsBucketsViewsListCall) IfNoneMatch(entityTag string) *BillingAccountsLocationsBucketsViewsListCall { c.ifNoneMatch_ = entityTag return c } @@ -5699,23 +5789,23 @@ func (c *BillingAccountsLogsListCall) IfNoneMatch(entityTag string) *BillingAcco // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *BillingAccountsLogsListCall) Context(ctx context.Context) *BillingAccountsLogsListCall { +func (c *BillingAccountsLocationsBucketsViewsListCall) Context(ctx context.Context) *BillingAccountsLocationsBucketsViewsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *BillingAccountsLogsListCall) Header() http.Header { +func (c *BillingAccountsLocationsBucketsViewsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *BillingAccountsLogsListCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsLocationsBucketsViewsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5726,7 +5816,7 @@ func (c *BillingAccountsLogsListCall) doRequest(alt string) (*http.Response, err var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/logs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/views") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -5739,14 +5829,14 @@ func (c *BillingAccountsLogsListCall) doRequest(alt string) (*http.Response, err return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.billingAccounts.logs.list" call. -// Exactly one of *ListLogsResponse or error will be non-nil. Any +// Do executes the "logging.billingAccounts.locations.buckets.views.list" call. +// Exactly one of *ListViewsResponse or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either -// *ListLogsResponse.ServerResponse.Header or (if a response was +// *ListViewsResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *BillingAccountsLogsListCall) Do(opts ...googleapi.CallOption) (*ListLogsResponse, error) { +func (c *BillingAccountsLocationsBucketsViewsListCall) Do(opts ...googleapi.CallOption) (*ListViewsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5765,7 +5855,7 @@ func (c *BillingAccountsLogsListCall) Do(opts ...googleapi.CallOption) (*ListLog if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListLogsResponse{ + ret := &ListViewsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5777,10 +5867,10 @@ func (c *BillingAccountsLogsListCall) Do(opts ...googleapi.CallOption) (*ListLog } return ret, nil // { - // "description": "Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.", - // "flatPath": "v2/billingAccounts/{billingAccountsId}/logs", + // "description": "Lists views on a bucket.", + // "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/buckets/{bucketsId}/views", // "httpMethod": "GET", - // "id": "logging.billingAccounts.logs.list", + // "id": "logging.billingAccounts.locations.buckets.views.list", // "parameterOrder": [ // "parent" // ], @@ -5797,16 +5887,16 @@ func (c *BillingAccountsLogsListCall) Do(opts ...googleapi.CallOption) (*ListLog // "type": "string" // }, // "parent": { - // "description": "Required. The resource name that owns the logs: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ", + // "description": "Required. The bucket whose views are to be listed: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" ", // "location": "path", - // "pattern": "^billingAccounts/[^/]+$", + // "pattern": "^billingAccounts/[^/]+/locations/[^/]+/buckets/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+parent}/logs", + // "path": "v2/{+parent}/views", // "response": { - // "$ref": "ListLogsResponse" + // "$ref": "ListViewsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -5821,7 +5911,7 @@ func (c *BillingAccountsLogsListCall) Do(opts ...googleapi.CallOption) (*ListLog // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *BillingAccountsLogsListCall) Pages(ctx context.Context, f func(*ListLogsResponse) error) error { +func (c *BillingAccountsLocationsBucketsViewsListCall) Pages(ctx context.Context, f func(*ListViewsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -5839,49 +5929,42 @@ func (c *BillingAccountsLogsListCall) Pages(ctx context.Context, f func(*ListLog } } -// method id "logging.billingAccounts.sinks.create": +// method id "logging.billingAccounts.locations.buckets.views.patch": -type BillingAccountsSinksCreateCall struct { +type BillingAccountsLocationsBucketsViewsPatchCall struct { s *Service - parent string - logsink *LogSink + name string + logview *LogView urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Create: Creates a sink that exports specified log entries to a -// destination. The export of newly-ingested log entries begins -// immediately, unless the sink's writer_identity is not permitted to -// write to the destination. A sink can export log entries only from the -// resource owning the sink. -func (r *BillingAccountsSinksService) Create(parent string, logsink *LogSink) *BillingAccountsSinksCreateCall { - c := &BillingAccountsSinksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.logsink = logsink +// Patch: Updates a view. This method replaces the following fields in +// the existing view with values from the new view: filter. +func (r *BillingAccountsLocationsBucketsViewsService) Patch(name string, logview *LogView) *BillingAccountsLocationsBucketsViewsPatchCall { + c := &BillingAccountsLocationsBucketsViewsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.logview = logview return c } -// UniqueWriterIdentity sets the optional parameter -// "uniqueWriterIdentity": Determines the kind of IAM identity returned -// as writer_identity in the new sink. If this value is omitted or set -// to false, and if the sink's parent is a project, then the value -// returned as writer_identity is the same group or service account used -// by Logging before the addition of writer identities to this API. The -// sink's destination must be in the same project as the sink itself.If -// this field is set to true, or if the sink is owned by a non-project -// resource such as an organization, then the value of writer_identity -// will be a unique service account used only for exports from the new -// sink. For more information, see writer_identity in LogSink. -func (c *BillingAccountsSinksCreateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *BillingAccountsSinksCreateCall { - c.urlParams_.Set("uniqueWriterIdentity", fmt.Sprint(uniqueWriterIdentity)) +// UpdateMask sets the optional parameter "updateMask": Field mask that +// specifies the fields in view that need an update. A field will be +// overwritten if, and only if, it is in the update mask. name and +// output only fields cannot be updated.For a detailed FieldMask +// definition, see +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: +// updateMask=filter. +func (c *BillingAccountsLocationsBucketsViewsPatchCall) UpdateMask(updateMask string) *BillingAccountsLocationsBucketsViewsPatchCall { + c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *BillingAccountsSinksCreateCall) Fields(s ...googleapi.Field) *BillingAccountsSinksCreateCall { +func (c *BillingAccountsLocationsBucketsViewsPatchCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsBucketsViewsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5889,56 +5972,56 @@ func (c *BillingAccountsSinksCreateCall) Fields(s ...googleapi.Field) *BillingAc // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *BillingAccountsSinksCreateCall) Context(ctx context.Context) *BillingAccountsSinksCreateCall { +func (c *BillingAccountsLocationsBucketsViewsPatchCall) Context(ctx context.Context) *BillingAccountsLocationsBucketsViewsPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *BillingAccountsSinksCreateCall) Header() http.Header { +func (c *BillingAccountsLocationsBucketsViewsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *BillingAccountsSinksCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsLocationsBucketsViewsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logsink) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logview) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/sinks") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.billingAccounts.sinks.create" call. -// Exactly one of *LogSink or error will be non-nil. Any non-2xx status +// Do executes the "logging.billingAccounts.locations.buckets.views.patch" call. +// Exactly one of *LogView or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either -// *LogSink.ServerResponse.Header or (if a response was returned at all) +// *LogView.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *BillingAccountsSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogSink, error) { +func (c *BillingAccountsLocationsBucketsViewsPatchCall) Do(opts ...googleapi.CallOption) (*LogView, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5957,7 +6040,7 @@ func (c *BillingAccountsSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogS if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogSink{ + ret := &LogView{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5969,33 +6052,34 @@ func (c *BillingAccountsSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogS } return ret, nil // { - // "description": "Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", - // "flatPath": "v2/billingAccounts/{billingAccountsId}/sinks", - // "httpMethod": "POST", - // "id": "logging.billingAccounts.sinks.create", + // "description": "Updates a view. This method replaces the following fields in the existing view with values from the new view: filter.", + // "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}", + // "httpMethod": "PATCH", + // "id": "logging.billingAccounts.locations.buckets.views.patch", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The resource in which to create the sink: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" Examples: \"projects/my-logging-project\", \"organizations/123456789\".", + // "name": { + // "description": "Required. The full resource name of the view to update \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id\".", // "location": "path", - // "pattern": "^billingAccounts/[^/]+$", + // "pattern": "^billingAccounts/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", // "required": true, // "type": "string" // }, - // "uniqueWriterIdentity": { - // "description": "Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value returned as writer_identity is the same group or service account used by Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink.", + // "updateMask": { + // "description": "Optional. Field mask that specifies the fields in view that need an update. A field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter.", + // "format": "google-fieldmask", // "location": "query", - // "type": "boolean" + // "type": "string" // } // }, - // "path": "v2/{+parent}/sinks", + // "path": "v2/{+name}", // "request": { - // "$ref": "LogSink" + // "$ref": "LogView" // }, // "response": { - // "$ref": "LogSink" + // "$ref": "LogView" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -6005,28 +6089,30 @@ func (c *BillingAccountsSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogS } -// method id "logging.billingAccounts.sinks.delete": +// method id "logging.billingAccounts.logs.delete": -type BillingAccountsSinksDeleteCall struct { +type BillingAccountsLogsDeleteCall struct { s *Service - sinkNameid string + logName string urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Delete: Deletes a sink. If the sink has a unique writer_identity, -// then that service account is also deleted. -func (r *BillingAccountsSinksService) Delete(sinkNameid string) *BillingAccountsSinksDeleteCall { - c := &BillingAccountsSinksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.sinkNameid = sinkNameid +// Delete: Deletes all the log entries in a log. The log reappears if it +// receives new entries. Log entries written shortly before the delete +// operation might not be deleted. Entries received after the delete +// operation with a timestamp before the operation will be deleted. +func (r *BillingAccountsLogsService) Delete(logName string) *BillingAccountsLogsDeleteCall { + c := &BillingAccountsLogsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.logName = logName return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *BillingAccountsSinksDeleteCall) Fields(s ...googleapi.Field) *BillingAccountsSinksDeleteCall { +func (c *BillingAccountsLogsDeleteCall) Fields(s ...googleapi.Field) *BillingAccountsLogsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6034,23 +6120,23 @@ func (c *BillingAccountsSinksDeleteCall) Fields(s ...googleapi.Field) *BillingAc // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *BillingAccountsSinksDeleteCall) Context(ctx context.Context) *BillingAccountsSinksDeleteCall { +func (c *BillingAccountsLogsDeleteCall) Context(ctx context.Context) *BillingAccountsLogsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *BillingAccountsSinksDeleteCall) Header() http.Header { +func (c *BillingAccountsLogsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *BillingAccountsSinksDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsLogsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6058,7 +6144,7 @@ func (c *BillingAccountsSinksDeleteCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+sinkName}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+logName}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -6066,19 +6152,19 @@ func (c *BillingAccountsSinksDeleteCall) doRequest(alt string) (*http.Response, } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "sinkName": c.sinkNameid, + "logName": c.logName, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.billingAccounts.sinks.delete" call. +// Do executes the "logging.billingAccounts.logs.delete" call. // Exactly one of *Empty or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either // *Empty.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *BillingAccountsSinksDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +func (c *BillingAccountsLogsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6109,23 +6195,23 @@ func (c *BillingAccountsSinksDeleteCall) Do(opts ...googleapi.CallOption) (*Empt } return ret, nil // { - // "description": "Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.", - // "flatPath": "v2/billingAccounts/{billingAccountsId}/sinks/{sinksId}", + // "description": "Deletes all the log entries in a log. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted. Entries received after the delete operation with a timestamp before the operation will be deleted.", + // "flatPath": "v2/billingAccounts/{billingAccountsId}/logs/{logsId}", // "httpMethod": "DELETE", - // "id": "logging.billingAccounts.sinks.delete", + // "id": "logging.billingAccounts.logs.delete", // "parameterOrder": [ - // "sinkName" + // "logName" // ], // "parameters": { - // "sinkName": { - // "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" Example: \"projects/my-project-id/sinks/my-sink-id\".", + // "logName": { + // "description": "Required. The resource name of the log to delete: \"projects/[PROJECT_ID]/logs/[LOG_ID]\" \"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\" \"folders/[FOLDER_ID]/logs/[LOG_ID]\" [LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.", // "location": "path", - // "pattern": "^billingAccounts/[^/]+/sinks/[^/]+$", + // "pattern": "^billingAccounts/[^/]+/logs/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+sinkName}", + // "path": "v2/{+logName}", // "response": { // "$ref": "Empty" // }, @@ -6137,28 +6223,65 @@ func (c *BillingAccountsSinksDeleteCall) Do(opts ...googleapi.CallOption) (*Empt } -// method id "logging.billingAccounts.sinks.get": +// method id "logging.billingAccounts.logs.list": -type BillingAccountsSinksGetCall struct { +type BillingAccountsLogsListCall struct { s *Service - sinkName string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Get: Gets a sink. -func (r *BillingAccountsSinksService) Get(sinkName string) *BillingAccountsSinksGetCall { - c := &BillingAccountsSinksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.sinkName = sinkName +// List: Lists the logs in projects, organizations, folders, or billing +// accounts. Only logs that have entries are listed. +func (r *BillingAccountsLogsService) List(parent string) *BillingAccountsLogsListCall { + c := &BillingAccountsLogsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return from this request. Non-positive values are +// ignored. The presence of nextPageToken in the response indicates that +// more results might be available. +func (c *BillingAccountsLogsListCall) PageSize(pageSize int64) *BillingAccountsLogsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": If present, then +// retrieve the next batch of results from the preceding call to this +// method. pageToken must be the value of nextPageToken from the +// previous response. The values of other method parameters should be +// identical to those in the previous call. +func (c *BillingAccountsLogsListCall) PageToken(pageToken string) *BillingAccountsLogsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ResourceNames sets the optional parameter "resourceNames": The +// resource name that owns the logs: +// projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW +// _ID +// organization/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/v +// iews/VIEW_ID +// billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKE +// T_ID/views/VIEW_ID +// folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_I +// DTo support legacy queries, it could also be: "projects/PROJECT_ID" +// "organizations/ORGANIZATION_ID" "billingAccounts/BILLING_ACCOUNT_ID" +// "folders/FOLDER_ID" +func (c *BillingAccountsLogsListCall) ResourceNames(resourceNames ...string) *BillingAccountsLogsListCall { + c.urlParams_.SetMulti("resourceNames", append([]string{}, resourceNames...)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *BillingAccountsSinksGetCall) Fields(s ...googleapi.Field) *BillingAccountsSinksGetCall { +func (c *BillingAccountsLogsListCall) Fields(s ...googleapi.Field) *BillingAccountsLogsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6168,7 +6291,7 @@ func (c *BillingAccountsSinksGetCall) Fields(s ...googleapi.Field) *BillingAccou // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *BillingAccountsSinksGetCall) IfNoneMatch(entityTag string) *BillingAccountsSinksGetCall { +func (c *BillingAccountsLogsListCall) IfNoneMatch(entityTag string) *BillingAccountsLogsListCall { c.ifNoneMatch_ = entityTag return c } @@ -6176,23 +6299,23 @@ func (c *BillingAccountsSinksGetCall) IfNoneMatch(entityTag string) *BillingAcco // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *BillingAccountsSinksGetCall) Context(ctx context.Context) *BillingAccountsSinksGetCall { +func (c *BillingAccountsLogsListCall) Context(ctx context.Context) *BillingAccountsLogsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *BillingAccountsSinksGetCall) Header() http.Header { +func (c *BillingAccountsLogsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *BillingAccountsSinksGetCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsLogsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6203,7 +6326,7 @@ func (c *BillingAccountsSinksGetCall) doRequest(alt string) (*http.Response, err var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+sinkName}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/logs") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -6211,19 +6334,19 @@ func (c *BillingAccountsSinksGetCall) doRequest(alt string) (*http.Response, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "sinkName": c.sinkName, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.billingAccounts.sinks.get" call. -// Exactly one of *LogSink or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *LogSink.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *BillingAccountsSinksGetCall) Do(opts ...googleapi.CallOption) (*LogSink, error) { +// Do executes the "logging.billingAccounts.logs.list" call. +// Exactly one of *ListLogsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListLogsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *BillingAccountsLogsListCall) Do(opts ...googleapi.CallOption) (*ListLogsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6242,7 +6365,7 @@ func (c *BillingAccountsSinksGetCall) Do(opts ...googleapi.CallOption) (*LogSink if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogSink{ + ret := &ListLogsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6254,25 +6377,42 @@ func (c *BillingAccountsSinksGetCall) Do(opts ...googleapi.CallOption) (*LogSink } return ret, nil // { - // "description": "Gets a sink.", - // "flatPath": "v2/billingAccounts/{billingAccountsId}/sinks/{sinksId}", + // "description": "Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.", + // "flatPath": "v2/billingAccounts/{billingAccountsId}/logs", // "httpMethod": "GET", - // "id": "logging.billingAccounts.sinks.get", + // "id": "logging.billingAccounts.logs.list", // "parameterOrder": [ - // "sinkName" + // "parent" // ], // "parameters": { - // "sinkName": { - // "description": "Required. The resource name of the sink: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" Example: \"projects/my-project-id/sinks/my-sink-id\".", + // "pageSize": { + // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name that owns the logs: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ", // "location": "path", - // "pattern": "^billingAccounts/[^/]+/sinks/[^/]+$", + // "pattern": "^billingAccounts/[^/]+$", // "required": true, // "type": "string" + // }, + // "resourceNames": { + // "description": "Optional. The resource name that owns the logs: projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID organization/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_IDTo support legacy queries, it could also be: \"projects/PROJECT_ID\" \"organizations/ORGANIZATION_ID\" \"billingAccounts/BILLING_ACCOUNT_ID\" \"folders/FOLDER_ID\"", + // "location": "query", + // "repeated": true, + // "type": "string" // } // }, - // "path": "v2/{+sinkName}", + // "path": "v2/{+parent}/logs", // "response": { - // "$ref": "LogSink" + // "$ref": "ListLogsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -6284,94 +6424,109 @@ func (c *BillingAccountsSinksGetCall) Do(opts ...googleapi.CallOption) (*LogSink } -// method id "logging.billingAccounts.sinks.list": - -type BillingAccountsSinksListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *BillingAccountsLogsListCall) Pages(ctx context.Context, f func(*ListLogsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } } -// List: Lists sinks. -func (r *BillingAccountsSinksService) List(parent string) *BillingAccountsSinksListCall { - c := &BillingAccountsSinksListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c +// method id "logging.billingAccounts.sinks.create": + +type BillingAccountsSinksCreateCall struct { + s *Service + parent string + logsink *LogSink + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return from this request. Non-positive values are -// ignored. The presence of nextPageToken in the response indicates that -// more results might be available. -func (c *BillingAccountsSinksListCall) PageSize(pageSize int64) *BillingAccountsSinksListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// Create: Creates a sink that exports specified log entries to a +// destination. The export of newly-ingested log entries begins +// immediately, unless the sink's writer_identity is not permitted to +// write to the destination. A sink can export log entries only from the +// resource owning the sink. +func (r *BillingAccountsSinksService) Create(parent string, logsink *LogSink) *BillingAccountsSinksCreateCall { + c := &BillingAccountsSinksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.logsink = logsink return c } -// PageToken sets the optional parameter "pageToken": If present, then -// retrieve the next batch of results from the preceding call to this -// method. pageToken must be the value of nextPageToken from the -// previous response. The values of other method parameters should be -// identical to those in the previous call. -func (c *BillingAccountsSinksListCall) PageToken(pageToken string) *BillingAccountsSinksListCall { - c.urlParams_.Set("pageToken", pageToken) +// UniqueWriterIdentity sets the optional parameter +// "uniqueWriterIdentity": Determines the kind of IAM identity returned +// as writer_identity in the new sink. If this value is omitted or set +// to false, and if the sink's parent is a project, then the value +// returned as writer_identity is the same group or service account used +// by Logging before the addition of writer identities to this API. The +// sink's destination must be in the same project as the sink itself.If +// this field is set to true, or if the sink is owned by a non-project +// resource such as an organization, then the value of writer_identity +// will be a unique service account used only for exports from the new +// sink. For more information, see writer_identity in LogSink. +func (c *BillingAccountsSinksCreateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *BillingAccountsSinksCreateCall { + c.urlParams_.Set("uniqueWriterIdentity", fmt.Sprint(uniqueWriterIdentity)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *BillingAccountsSinksListCall) Fields(s ...googleapi.Field) *BillingAccountsSinksListCall { +func (c *BillingAccountsSinksCreateCall) Fields(s ...googleapi.Field) *BillingAccountsSinksCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *BillingAccountsSinksListCall) IfNoneMatch(entityTag string) *BillingAccountsSinksListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *BillingAccountsSinksListCall) Context(ctx context.Context) *BillingAccountsSinksListCall { +func (c *BillingAccountsSinksCreateCall) Context(ctx context.Context) *BillingAccountsSinksCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *BillingAccountsSinksListCall) Header() http.Header { +func (c *BillingAccountsSinksCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *BillingAccountsSinksListCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsSinksCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logsink) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/sinks") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -6382,14 +6537,14 @@ func (c *BillingAccountsSinksListCall) doRequest(alt string) (*http.Response, er return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.billingAccounts.sinks.list" call. -// Exactly one of *ListSinksResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListSinksResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *BillingAccountsSinksListCall) Do(opts ...googleapi.CallOption) (*ListSinksResponse, error) { +// Do executes the "logging.billingAccounts.sinks.create" call. +// Exactly one of *LogSink or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *LogSink.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *BillingAccountsSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogSink, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6408,7 +6563,7 @@ func (c *BillingAccountsSinksListCall) Do(opts ...googleapi.CallOption) (*ListSi if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListSinksResponse{ + ret := &LogSink{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6420,124 +6575,64 @@ func (c *BillingAccountsSinksListCall) Do(opts ...googleapi.CallOption) (*ListSi } return ret, nil // { - // "description": "Lists sinks.", + // "description": "Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", // "flatPath": "v2/billingAccounts/{billingAccountsId}/sinks", - // "httpMethod": "GET", - // "id": "logging.billingAccounts.sinks.list", + // "httpMethod": "POST", + // "id": "logging.billingAccounts.sinks.create", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "pageSize": { - // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", - // "location": "query", - // "type": "string" - // }, // "parent": { - // "description": "Required. The parent resource whose sinks are to be listed: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ", + // "description": "Required. The resource in which to create the sink: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" Examples: \"projects/my-logging-project\", \"organizations/123456789\".", // "location": "path", // "pattern": "^billingAccounts/[^/]+$", // "required": true, // "type": "string" + // }, + // "uniqueWriterIdentity": { + // "description": "Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value returned as writer_identity is the same group or service account used by Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink.", + // "location": "query", + // "type": "boolean" // } // }, // "path": "v2/{+parent}/sinks", + // "request": { + // "$ref": "LogSink" + // }, // "response": { - // "$ref": "ListSinksResponse" + // "$ref": "LogSink" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/logging.admin", - // "https://www.googleapis.com/auth/logging.read" + // "https://www.googleapis.com/auth/logging.admin" // ] // } } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *BillingAccountsSinksListCall) Pages(ctx context.Context, f func(*ListSinksResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -// method id "logging.billingAccounts.sinks.patch": +// method id "logging.billingAccounts.sinks.delete": -type BillingAccountsSinksPatchCall struct { +type BillingAccountsSinksDeleteCall struct { s *Service sinkNameid string - logsink *LogSink urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Patch: Updates a sink. This method replaces the following fields in -// the existing sink with values from the new sink: destination, and -// filter.The updated sink might also have a new writer_identity; see -// the unique_writer_identity field. -func (r *BillingAccountsSinksService) Patch(sinkNameid string, logsink *LogSink) *BillingAccountsSinksPatchCall { - c := &BillingAccountsSinksPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Delete: Deletes a sink. If the sink has a unique writer_identity, +// then that service account is also deleted. +func (r *BillingAccountsSinksService) Delete(sinkNameid string) *BillingAccountsSinksDeleteCall { + c := &BillingAccountsSinksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.sinkNameid = sinkNameid - c.logsink = logsink - return c -} - -// UniqueWriterIdentity sets the optional parameter -// "uniqueWriterIdentity": See sinks.create for a description of this -// field. When updating a sink, the effect of this field on the value of -// writer_identity in the updated sink depends on both the old and new -// values of this field: If the old and new values of this field are -// both false or both true, then there is no change to the sink's -// writer_identity. If the old value is false and the new value is true, -// then writer_identity is changed to a unique service account. It is an -// error if the old value is true and the new value is set to false or -// defaulted to false. -func (c *BillingAccountsSinksPatchCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *BillingAccountsSinksPatchCall { - c.urlParams_.Set("uniqueWriterIdentity", fmt.Sprint(uniqueWriterIdentity)) - return c -} - -// UpdateMask sets the optional parameter "updateMask": Field mask that -// specifies the fields in sink that need an update. A sink field will -// be overwritten if, and only if, it is in the update mask. name and -// output only fields cannot be updated.An empty updateMask is -// temporarily treated as using the following mask for backwards -// compatibility purposes: destination,filter,includeChildren At some -// point in the future, behavior will be removed and specifying an empty -// updateMask will be an error.For a detailed FieldMask definition, see -// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: -// updateMask=filter. -func (c *BillingAccountsSinksPatchCall) UpdateMask(updateMask string) *BillingAccountsSinksPatchCall { - c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *BillingAccountsSinksPatchCall) Fields(s ...googleapi.Field) *BillingAccountsSinksPatchCall { +func (c *BillingAccountsSinksDeleteCall) Fields(s ...googleapi.Field) *BillingAccountsSinksDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6545,38 +6640,33 @@ func (c *BillingAccountsSinksPatchCall) Fields(s ...googleapi.Field) *BillingAcc // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *BillingAccountsSinksPatchCall) Context(ctx context.Context) *BillingAccountsSinksPatchCall { +func (c *BillingAccountsSinksDeleteCall) Context(ctx context.Context) *BillingAccountsSinksDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *BillingAccountsSinksPatchCall) Header() http.Header { +func (c *BillingAccountsSinksDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *BillingAccountsSinksPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsSinksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logsink) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+sinkName}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -6587,14 +6677,14 @@ func (c *BillingAccountsSinksPatchCall) doRequest(alt string) (*http.Response, e return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.billingAccounts.sinks.patch" call. -// Exactly one of *LogSink or error will be non-nil. Any non-2xx status +// Do executes the "logging.billingAccounts.sinks.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either -// *LogSink.ServerResponse.Header or (if a response was returned at all) +// *Empty.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *BillingAccountsSinksPatchCall) Do(opts ...googleapi.CallOption) (*LogSink, error) { +func (c *BillingAccountsSinksDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6613,7 +6703,7 @@ func (c *BillingAccountsSinksPatchCall) Do(opts ...googleapi.CallOption) (*LogSi if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogSink{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6625,39 +6715,25 @@ func (c *BillingAccountsSinksPatchCall) Do(opts ...googleapi.CallOption) (*LogSi } return ret, nil // { - // "description": "Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.The updated sink might also have a new writer_identity; see the unique_writer_identity field.", + // "description": "Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.", // "flatPath": "v2/billingAccounts/{billingAccountsId}/sinks/{sinksId}", - // "httpMethod": "PATCH", - // "id": "logging.billingAccounts.sinks.patch", + // "httpMethod": "DELETE", + // "id": "logging.billingAccounts.sinks.delete", // "parameterOrder": [ // "sinkName" // ], // "parameters": { // "sinkName": { - // "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" Example: \"projects/my-project-id/sinks/my-sink-id\".", + // "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" Example: \"projects/my-project-id/sinks/my-sink-id\".", // "location": "path", // "pattern": "^billingAccounts/[^/]+/sinks/[^/]+$", // "required": true, // "type": "string" - // }, - // "uniqueWriterIdentity": { - // "description": "Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false.", - // "location": "query", - // "type": "boolean" - // }, - // "updateMask": { - // "description": "Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes: destination,filter,includeChildren At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, // "path": "v2/{+sinkName}", - // "request": { - // "$ref": "LogSink" - // }, // "response": { - // "$ref": "LogSink" + // "$ref": "Empty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -6667,119 +6743,93 @@ func (c *BillingAccountsSinksPatchCall) Do(opts ...googleapi.CallOption) (*LogSi } -// method id "logging.billingAccounts.sinks.update": - -type BillingAccountsSinksUpdateCall struct { - s *Service - sinkNameid string - logsink *LogSink - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} +// method id "logging.billingAccounts.sinks.get": -// Update: Updates a sink. This method replaces the following fields in -// the existing sink with values from the new sink: destination, and -// filter.The updated sink might also have a new writer_identity; see -// the unique_writer_identity field. -func (r *BillingAccountsSinksService) Update(sinkNameid string, logsink *LogSink) *BillingAccountsSinksUpdateCall { - c := &BillingAccountsSinksUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.sinkNameid = sinkNameid - c.logsink = logsink - return c -} - -// UniqueWriterIdentity sets the optional parameter -// "uniqueWriterIdentity": See sinks.create for a description of this -// field. When updating a sink, the effect of this field on the value of -// writer_identity in the updated sink depends on both the old and new -// values of this field: If the old and new values of this field are -// both false or both true, then there is no change to the sink's -// writer_identity. If the old value is false and the new value is true, -// then writer_identity is changed to a unique service account. It is an -// error if the old value is true and the new value is set to false or -// defaulted to false. -func (c *BillingAccountsSinksUpdateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *BillingAccountsSinksUpdateCall { - c.urlParams_.Set("uniqueWriterIdentity", fmt.Sprint(uniqueWriterIdentity)) - return c +type BillingAccountsSinksGetCall struct { + s *Service + sinkName string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// UpdateMask sets the optional parameter "updateMask": Field mask that -// specifies the fields in sink that need an update. A sink field will -// be overwritten if, and only if, it is in the update mask. name and -// output only fields cannot be updated.An empty updateMask is -// temporarily treated as using the following mask for backwards -// compatibility purposes: destination,filter,includeChildren At some -// point in the future, behavior will be removed and specifying an empty -// updateMask will be an error.For a detailed FieldMask definition, see -// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: -// updateMask=filter. -func (c *BillingAccountsSinksUpdateCall) UpdateMask(updateMask string) *BillingAccountsSinksUpdateCall { - c.urlParams_.Set("updateMask", updateMask) +// Get: Gets a sink. +func (r *BillingAccountsSinksService) Get(sinkName string) *BillingAccountsSinksGetCall { + c := &BillingAccountsSinksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.sinkName = sinkName return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *BillingAccountsSinksUpdateCall) Fields(s ...googleapi.Field) *BillingAccountsSinksUpdateCall { +func (c *BillingAccountsSinksGetCall) Fields(s ...googleapi.Field) *BillingAccountsSinksGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *BillingAccountsSinksGetCall) IfNoneMatch(entityTag string) *BillingAccountsSinksGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *BillingAccountsSinksUpdateCall) Context(ctx context.Context) *BillingAccountsSinksUpdateCall { +func (c *BillingAccountsSinksGetCall) Context(ctx context.Context) *BillingAccountsSinksGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *BillingAccountsSinksUpdateCall) Header() http.Header { +func (c *BillingAccountsSinksGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *BillingAccountsSinksUpdateCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsSinksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logsink) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+sinkName}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "sinkName": c.sinkNameid, + "sinkName": c.sinkName, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.billingAccounts.sinks.update" call. +// Do executes the "logging.billingAccounts.sinks.get" call. // Exactly one of *LogSink or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either // *LogSink.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *BillingAccountsSinksUpdateCall) Do(opts ...googleapi.CallOption) (*LogSink, error) { +func (c *BillingAccountsSinksGetCall) Do(opts ...googleapi.CallOption) (*LogSink, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6810,126 +6860,142 @@ func (c *BillingAccountsSinksUpdateCall) Do(opts ...googleapi.CallOption) (*LogS } return ret, nil // { - // "description": "Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.The updated sink might also have a new writer_identity; see the unique_writer_identity field.", + // "description": "Gets a sink.", // "flatPath": "v2/billingAccounts/{billingAccountsId}/sinks/{sinksId}", - // "httpMethod": "PUT", - // "id": "logging.billingAccounts.sinks.update", + // "httpMethod": "GET", + // "id": "logging.billingAccounts.sinks.get", // "parameterOrder": [ // "sinkName" // ], // "parameters": { // "sinkName": { - // "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" Example: \"projects/my-project-id/sinks/my-sink-id\".", + // "description": "Required. The resource name of the sink: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" Example: \"projects/my-project-id/sinks/my-sink-id\".", // "location": "path", // "pattern": "^billingAccounts/[^/]+/sinks/[^/]+$", // "required": true, // "type": "string" - // }, - // "uniqueWriterIdentity": { - // "description": "Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false.", - // "location": "query", - // "type": "boolean" - // }, - // "updateMask": { - // "description": "Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes: destination,filter,includeChildren At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, // "path": "v2/{+sinkName}", - // "request": { - // "$ref": "LogSink" - // }, // "response": { // "$ref": "LogSink" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin" + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/logging.admin", + // "https://www.googleapis.com/auth/logging.read" // ] // } } -// method id "logging.entries.list": +// method id "logging.billingAccounts.sinks.list": -type EntriesListCall struct { - s *Service - listlogentriesrequest *ListLogEntriesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type BillingAccountsSinksListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// List: Lists log entries. Use this method to retrieve log entries that -// originated from a project/folder/organization/billing account. For -// ways to export log entries, see Exporting Logs -// (https://cloud.google.com/logging/docs/export). -func (r *EntriesService) List(listlogentriesrequest *ListLogEntriesRequest) *EntriesListCall { - c := &EntriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.listlogentriesrequest = listlogentriesrequest +// List: Lists sinks. +func (r *BillingAccountsSinksService) List(parent string) *BillingAccountsSinksListCall { + c := &BillingAccountsSinksListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return from this request. Non-positive values are +// ignored. The presence of nextPageToken in the response indicates that +// more results might be available. +func (c *BillingAccountsSinksListCall) PageSize(pageSize int64) *BillingAccountsSinksListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": If present, then +// retrieve the next batch of results from the preceding call to this +// method. pageToken must be the value of nextPageToken from the +// previous response. The values of other method parameters should be +// identical to those in the previous call. +func (c *BillingAccountsSinksListCall) PageToken(pageToken string) *BillingAccountsSinksListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *EntriesListCall) Fields(s ...googleapi.Field) *EntriesListCall { +func (c *BillingAccountsSinksListCall) Fields(s ...googleapi.Field) *BillingAccountsSinksListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *BillingAccountsSinksListCall) IfNoneMatch(entityTag string) *BillingAccountsSinksListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *EntriesListCall) Context(ctx context.Context) *EntriesListCall { +func (c *BillingAccountsSinksListCall) Context(ctx context.Context) *BillingAccountsSinksListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *EntriesListCall) Header() http.Header { +func (c *BillingAccountsSinksListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *EntriesListCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsSinksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.listlogentriesrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/entries:list") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/sinks") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.entries.list" call. -// Exactly one of *ListLogEntriesResponse or error will be non-nil. Any +// Do executes the "logging.billingAccounts.sinks.list" call. +// Exactly one of *ListSinksResponse or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either -// *ListLogEntriesResponse.ServerResponse.Header or (if a response was +// *ListSinksResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *EntriesListCall) Do(opts ...googleapi.CallOption) (*ListLogEntriesResponse, error) { +func (c *BillingAccountsSinksListCall) Do(opts ...googleapi.CallOption) (*ListSinksResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6948,7 +7014,7 @@ func (c *EntriesListCall) Do(opts ...googleapi.CallOption) (*ListLogEntriesRespo if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListLogEntriesResponse{ + ret := &ListSinksResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6960,18 +7026,36 @@ func (c *EntriesListCall) Do(opts ...googleapi.CallOption) (*ListLogEntriesRespo } return ret, nil // { - // "description": "Lists log entries. Use this method to retrieve log entries that originated from a project/folder/organization/billing account. For ways to export log entries, see Exporting Logs (https://cloud.google.com/logging/docs/export).", - // "flatPath": "v2/entries:list", - // "httpMethod": "POST", - // "id": "logging.entries.list", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v2/entries:list", - // "request": { - // "$ref": "ListLogEntriesRequest" + // "description": "Lists sinks.", + // "flatPath": "v2/billingAccounts/{billingAccountsId}/sinks", + // "httpMethod": "GET", + // "id": "logging.billingAccounts.sinks.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent resource whose sinks are to be listed: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ", + // "location": "path", + // "pattern": "^billingAccounts/[^/]+$", + // "required": true, + // "type": "string" + // } // }, + // "path": "v2/{+parent}/sinks", // "response": { - // "$ref": "ListLogEntriesResponse" + // "$ref": "ListSinksResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -6986,9 +7070,9 @@ func (c *EntriesListCall) Do(opts ...googleapi.CallOption) (*ListLogEntriesRespo // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *EntriesListCall) Pages(ctx context.Context, f func(*ListLogEntriesResponse) error) error { +func (c *BillingAccountsSinksListCall) Pages(ctx context.Context, f func(*ListSinksResponse) error) error { c.ctx_ = ctx - defer func(pt string) { c.listlogentriesrequest.PageToken = pt }(c.listlogentriesrequest.PageToken) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { x, err := c.Do() if err != nil { @@ -7000,36 +7084,66 @@ func (c *EntriesListCall) Pages(ctx context.Context, f func(*ListLogEntriesRespo if x.NextPageToken == "" { return nil } - c.listlogentriesrequest.PageToken = x.NextPageToken + c.PageToken(x.NextPageToken) } } -// method id "logging.entries.write": +// method id "logging.billingAccounts.sinks.patch": -type EntriesWriteCall struct { - s *Service - writelogentriesrequest *WriteLogEntriesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type BillingAccountsSinksPatchCall struct { + s *Service + sinkNameid string + logsink *LogSink + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Write: Writes log entries to Logging. This API method is the only way -// to send log entries to Logging. This method is used, directly or -// indirectly, by the Logging agent (fluentd) and all logging libraries -// configured to use Logging. A single request may contain log entries -// for a maximum of 1000 different resources (projects, organizations, -// billing accounts or folders) -func (r *EntriesService) Write(writelogentriesrequest *WriteLogEntriesRequest) *EntriesWriteCall { - c := &EntriesWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.writelogentriesrequest = writelogentriesrequest +// Patch: Updates a sink. This method replaces the following fields in +// the existing sink with values from the new sink: destination, and +// filter.The updated sink might also have a new writer_identity; see +// the unique_writer_identity field. +func (r *BillingAccountsSinksService) Patch(sinkNameid string, logsink *LogSink) *BillingAccountsSinksPatchCall { + c := &BillingAccountsSinksPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.sinkNameid = sinkNameid + c.logsink = logsink + return c +} + +// UniqueWriterIdentity sets the optional parameter +// "uniqueWriterIdentity": See sinks.create for a description of this +// field. When updating a sink, the effect of this field on the value of +// writer_identity in the updated sink depends on both the old and new +// values of this field: If the old and new values of this field are +// both false or both true, then there is no change to the sink's +// writer_identity. If the old value is false and the new value is true, +// then writer_identity is changed to a unique service account. It is an +// error if the old value is true and the new value is set to false or +// defaulted to false. +func (c *BillingAccountsSinksPatchCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *BillingAccountsSinksPatchCall { + c.urlParams_.Set("uniqueWriterIdentity", fmt.Sprint(uniqueWriterIdentity)) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask that +// specifies the fields in sink that need an update. A sink field will +// be overwritten if, and only if, it is in the update mask. name and +// output only fields cannot be updated.An empty updateMask is +// temporarily treated as using the following mask for backwards +// compatibility purposes: destination,filter,includeChildren At some +// point in the future, behavior will be removed and specifying an empty +// updateMask will be an error.For a detailed FieldMask definition, see +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: +// updateMask=filter. +func (c *BillingAccountsSinksPatchCall) UpdateMask(updateMask string) *BillingAccountsSinksPatchCall { + c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *EntriesWriteCall) Fields(s ...googleapi.Field) *EntriesWriteCall { +func (c *BillingAccountsSinksPatchCall) Fields(s ...googleapi.Field) *BillingAccountsSinksPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7037,53 +7151,56 @@ func (c *EntriesWriteCall) Fields(s ...googleapi.Field) *EntriesWriteCall { // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *EntriesWriteCall) Context(ctx context.Context) *EntriesWriteCall { +func (c *BillingAccountsSinksPatchCall) Context(ctx context.Context) *BillingAccountsSinksPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *EntriesWriteCall) Header() http.Header { +func (c *BillingAccountsSinksPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *EntriesWriteCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsSinksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.writelogentriesrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logsink) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/entries:write") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+sinkName}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "sinkName": c.sinkNameid, + }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.entries.write" call. -// Exactly one of *WriteLogEntriesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *WriteLogEntriesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *EntriesWriteCall) Do(opts ...googleapi.CallOption) (*WriteLogEntriesResponse, error) { +// Do executes the "logging.billingAccounts.sinks.patch" call. +// Exactly one of *LogSink or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *LogSink.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *BillingAccountsSinksPatchCall) Do(opts ...googleapi.CallOption) (*LogSink, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7102,7 +7219,7 @@ func (c *EntriesWriteCall) Do(opts ...googleapi.CallOption) (*WriteLogEntriesRes if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &WriteLogEntriesResponse{ + ret := &LogSink{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7114,53 +7231,104 @@ func (c *EntriesWriteCall) Do(opts ...googleapi.CallOption) (*WriteLogEntriesRes } return ret, nil // { - // "description": "Writes log entries to Logging. This API method is the only way to send log entries to Logging. This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging libraries configured to use Logging. A single request may contain log entries for a maximum of 1000 different resources (projects, organizations, billing accounts or folders)", - // "flatPath": "v2/entries:write", - // "httpMethod": "POST", - // "id": "logging.entries.write", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v2/entries:write", + // "description": "Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.The updated sink might also have a new writer_identity; see the unique_writer_identity field.", + // "flatPath": "v2/billingAccounts/{billingAccountsId}/sinks/{sinksId}", + // "httpMethod": "PATCH", + // "id": "logging.billingAccounts.sinks.patch", + // "parameterOrder": [ + // "sinkName" + // ], + // "parameters": { + // "sinkName": { + // "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" Example: \"projects/my-project-id/sinks/my-sink-id\".", + // "location": "path", + // "pattern": "^billingAccounts/[^/]+/sinks/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "uniqueWriterIdentity": { + // "description": "Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false.", + // "location": "query", + // "type": "boolean" + // }, + // "updateMask": { + // "description": "Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes: destination,filter,includeChildren At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v2/{+sinkName}", // "request": { - // "$ref": "WriteLogEntriesRequest" + // "$ref": "LogSink" // }, // "response": { - // "$ref": "WriteLogEntriesResponse" + // "$ref": "LogSink" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin", - // "https://www.googleapis.com/auth/logging.write" + // "https://www.googleapis.com/auth/logging.admin" // ] // } } -// method id "logging.exclusions.create": +// method id "logging.billingAccounts.sinks.update": -type ExclusionsCreateCall struct { - s *Service - parent string - logexclusion *LogExclusion - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type BillingAccountsSinksUpdateCall struct { + s *Service + sinkNameid string + logsink *LogSink + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new exclusion in a specified parent resource. Only -// log entries belonging to that resource can be excluded. You can have -// up to 10 exclusions in a resource. -func (r *ExclusionsService) Create(parent string, logexclusion *LogExclusion) *ExclusionsCreateCall { - c := &ExclusionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.logexclusion = logexclusion +// Update: Updates a sink. This method replaces the following fields in +// the existing sink with values from the new sink: destination, and +// filter.The updated sink might also have a new writer_identity; see +// the unique_writer_identity field. +func (r *BillingAccountsSinksService) Update(sinkNameid string, logsink *LogSink) *BillingAccountsSinksUpdateCall { + c := &BillingAccountsSinksUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.sinkNameid = sinkNameid + c.logsink = logsink + return c +} + +// UniqueWriterIdentity sets the optional parameter +// "uniqueWriterIdentity": See sinks.create for a description of this +// field. When updating a sink, the effect of this field on the value of +// writer_identity in the updated sink depends on both the old and new +// values of this field: If the old and new values of this field are +// both false or both true, then there is no change to the sink's +// writer_identity. If the old value is false and the new value is true, +// then writer_identity is changed to a unique service account. It is an +// error if the old value is true and the new value is set to false or +// defaulted to false. +func (c *BillingAccountsSinksUpdateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *BillingAccountsSinksUpdateCall { + c.urlParams_.Set("uniqueWriterIdentity", fmt.Sprint(uniqueWriterIdentity)) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask that +// specifies the fields in sink that need an update. A sink field will +// be overwritten if, and only if, it is in the update mask. name and +// output only fields cannot be updated.An empty updateMask is +// temporarily treated as using the following mask for backwards +// compatibility purposes: destination,filter,includeChildren At some +// point in the future, behavior will be removed and specifying an empty +// updateMask will be an error.For a detailed FieldMask definition, see +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: +// updateMask=filter. +func (c *BillingAccountsSinksUpdateCall) UpdateMask(updateMask string) *BillingAccountsSinksUpdateCall { + c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ExclusionsCreateCall) Fields(s ...googleapi.Field) *ExclusionsCreateCall { +func (c *BillingAccountsSinksUpdateCall) Fields(s ...googleapi.Field) *BillingAccountsSinksUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7168,56 +7336,56 @@ func (c *ExclusionsCreateCall) Fields(s ...googleapi.Field) *ExclusionsCreateCal // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ExclusionsCreateCall) Context(ctx context.Context) *ExclusionsCreateCall { +func (c *BillingAccountsSinksUpdateCall) Context(ctx context.Context) *BillingAccountsSinksUpdateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ExclusionsCreateCall) Header() http.Header { +func (c *BillingAccountsSinksUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ExclusionsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsSinksUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logexclusion) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logsink) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/exclusions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+sinkName}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PUT", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "sinkName": c.sinkNameid, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.exclusions.create" call. -// Exactly one of *LogExclusion or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LogExclusion.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ExclusionsCreateCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error) { +// Do executes the "logging.billingAccounts.sinks.update" call. +// Exactly one of *LogSink or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *LogSink.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *BillingAccountsSinksUpdateCall) Do(opts ...googleapi.CallOption) (*LogSink, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7236,7 +7404,7 @@ func (c *ExclusionsCreateCall) Do(opts ...googleapi.CallOption) (*LogExclusion, if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogExclusion{ + ret := &LogSink{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7248,28 +7416,39 @@ func (c *ExclusionsCreateCall) Do(opts ...googleapi.CallOption) (*LogExclusion, } return ret, nil // { - // "description": "Creates a new exclusion in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.", - // "flatPath": "v2/{v2Id}/{v2Id1}/exclusions", - // "httpMethod": "POST", - // "id": "logging.exclusions.create", + // "description": "Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.The updated sink might also have a new writer_identity; see the unique_writer_identity field.", + // "flatPath": "v2/billingAccounts/{billingAccountsId}/sinks/{sinksId}", + // "httpMethod": "PUT", + // "id": "logging.billingAccounts.sinks.update", // "parameterOrder": [ - // "parent" + // "sinkName" // ], // "parameters": { - // "parent": { - // "description": "Required. The parent resource in which to create the exclusion: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" Examples: \"projects/my-logging-project\", \"organizations/123456789\".", + // "sinkName": { + // "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" Example: \"projects/my-project-id/sinks/my-sink-id\".", // "location": "path", - // "pattern": "^[^/]+/[^/]+$", + // "pattern": "^billingAccounts/[^/]+/sinks/[^/]+$", // "required": true, // "type": "string" + // }, + // "uniqueWriterIdentity": { + // "description": "Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false.", + // "location": "query", + // "type": "boolean" + // }, + // "updateMask": { + // "description": "Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes: destination,filter,includeChildren At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v2/{+parent}/exclusions", + // "path": "v2/{+sinkName}", // "request": { - // "$ref": "LogExclusion" + // "$ref": "LogSink" // }, // "response": { - // "$ref": "LogExclusion" + // "$ref": "LogSink" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -7279,27 +7458,30 @@ func (c *ExclusionsCreateCall) Do(opts ...googleapi.CallOption) (*LogExclusion, } -// method id "logging.exclusions.delete": +// method id "logging.entries.list": -type ExclusionsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type EntriesListCall struct { + s *Service + listlogentriesrequest *ListLogEntriesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes an exclusion. -func (r *ExclusionsService) Delete(name string) *ExclusionsDeleteCall { - c := &ExclusionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// List: Lists log entries. Use this method to retrieve log entries that +// originated from a project/folder/organization/billing account. For +// ways to export log entries, see Exporting Logs +// (https://cloud.google.com/logging/docs/export). +func (r *EntriesService) List(listlogentriesrequest *ListLogEntriesRequest) *EntriesListCall { + c := &EntriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.listlogentriesrequest = listlogentriesrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ExclusionsDeleteCall) Fields(s ...googleapi.Field) *ExclusionsDeleteCall { +func (c *EntriesListCall) Fields(s ...googleapi.Field) *EntriesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7307,51 +7489,53 @@ func (c *ExclusionsDeleteCall) Fields(s ...googleapi.Field) *ExclusionsDeleteCal // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ExclusionsDeleteCall) Context(ctx context.Context) *ExclusionsDeleteCall { +func (c *EntriesListCall) Context(ctx context.Context) *EntriesListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ExclusionsDeleteCall) Header() http.Header { +func (c *EntriesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ExclusionsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *EntriesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.listlogentriesrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/entries:list") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.exclusions.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *ExclusionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +// Do executes the "logging.entries.list" call. +// Exactly one of *ListLogEntriesResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListLogEntriesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *EntriesListCall) Do(opts ...googleapi.CallOption) (*ListLogEntriesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7370,7 +7554,7 @@ func (c *ExclusionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Empty{ + ret := &ListLogEntriesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7382,121 +7566,126 @@ func (c *ExclusionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) } return ret, nil // { - // "description": "Deletes an exclusion.", - // "flatPath": "v2/{v2Id}/{v2Id1}/exclusions/{exclusionsId}", - // "httpMethod": "DELETE", - // "id": "logging.exclusions.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name of an existing exclusion to delete: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" Example: \"projects/my-project-id/exclusions/my-exclusion-id\".", - // "location": "path", - // "pattern": "^[^/]+/[^/]+/exclusions/[^/]+$", - // "required": true, - // "type": "string" - // } + // "description": "Lists log entries. Use this method to retrieve log entries that originated from a project/folder/organization/billing account. For ways to export log entries, see Exporting Logs (https://cloud.google.com/logging/docs/export).", + // "flatPath": "v2/entries:list", + // "httpMethod": "POST", + // "id": "logging.entries.list", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v2/entries:list", + // "request": { + // "$ref": "ListLogEntriesRequest" // }, - // "path": "v2/{+name}", // "response": { - // "$ref": "Empty" + // "$ref": "ListLogEntriesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin" + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/logging.admin", + // "https://www.googleapis.com/auth/logging.read" // ] // } } -// method id "logging.exclusions.get": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *EntriesListCall) Pages(ctx context.Context, f func(*ListLogEntriesResponse) error) error { + c.ctx_ = ctx + defer func(pt string) { c.listlogentriesrequest.PageToken = pt }(c.listlogentriesrequest.PageToken) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.listlogentriesrequest.PageToken = x.NextPageToken + } +} -type ExclusionsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// method id "logging.entries.tail": + +type EntriesTailCall struct { + s *Service + taillogentriesrequest *TailLogEntriesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets the description of an exclusion. -func (r *ExclusionsService) Get(name string) *ExclusionsGetCall { - c := &ExclusionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// Tail: Streaming read of log entries as they are ingested. Until the +// stream is terminated, it will continue reading logs. +func (r *EntriesService) Tail(taillogentriesrequest *TailLogEntriesRequest) *EntriesTailCall { + c := &EntriesTailCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.taillogentriesrequest = taillogentriesrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ExclusionsGetCall) Fields(s ...googleapi.Field) *ExclusionsGetCall { +func (c *EntriesTailCall) Fields(s ...googleapi.Field) *EntriesTailCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ExclusionsGetCall) IfNoneMatch(entityTag string) *ExclusionsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ExclusionsGetCall) Context(ctx context.Context) *ExclusionsGetCall { +func (c *EntriesTailCall) Context(ctx context.Context) *EntriesTailCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ExclusionsGetCall) Header() http.Header { +func (c *EntriesTailCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ExclusionsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *EntriesTailCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.taillogentriesrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/entries:tail") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.exclusions.get" call. -// Exactly one of *LogExclusion or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LogExclusion.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ExclusionsGetCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error) { +// Do executes the "logging.entries.tail" call. +// Exactly one of *TailLogEntriesResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *TailLogEntriesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *EntriesTailCall) Do(opts ...googleapi.CallOption) (*TailLogEntriesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7515,7 +7704,7 @@ func (c *ExclusionsGetCall) Do(opts ...googleapi.CallOption) (*LogExclusion, err if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogExclusion{ + ret := &TailLogEntriesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7527,25 +7716,18 @@ func (c *ExclusionsGetCall) Do(opts ...googleapi.CallOption) (*LogExclusion, err } return ret, nil // { - // "description": "Gets the description of an exclusion.", - // "flatPath": "v2/{v2Id}/{v2Id1}/exclusions/{exclusionsId}", - // "httpMethod": "GET", - // "id": "logging.exclusions.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name of an existing exclusion: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" Example: \"projects/my-project-id/exclusions/my-exclusion-id\".", - // "location": "path", - // "pattern": "^[^/]+/[^/]+/exclusions/[^/]+$", - // "required": true, - // "type": "string" - // } + // "description": "Streaming read of log entries as they are ingested. Until the stream is terminated, it will continue reading logs.", + // "flatPath": "v2/entries:tail", + // "httpMethod": "POST", + // "id": "logging.entries.tail", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v2/entries:tail", + // "request": { + // "$ref": "TailLogEntriesRequest" // }, - // "path": "v2/{+name}", // "response": { - // "$ref": "LogExclusion" + // "$ref": "TailLogEntriesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -7557,112 +7739,86 @@ func (c *ExclusionsGetCall) Do(opts ...googleapi.CallOption) (*LogExclusion, err } -// method id "logging.exclusions.list": - -type ExclusionsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists all the exclusions in a parent resource. -func (r *ExclusionsService) List(parent string) *ExclusionsListCall { - c := &ExclusionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} +// method id "logging.entries.write": -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return from this request. Non-positive values are -// ignored. The presence of nextPageToken in the response indicates that -// more results might be available. -func (c *ExclusionsListCall) PageSize(pageSize int64) *ExclusionsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c +type EntriesWriteCall struct { + s *Service + writelogentriesrequest *WriteLogEntriesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// PageToken sets the optional parameter "pageToken": If present, then -// retrieve the next batch of results from the preceding call to this -// method. pageToken must be the value of nextPageToken from the -// previous response. The values of other method parameters should be -// identical to those in the previous call. -func (c *ExclusionsListCall) PageToken(pageToken string) *ExclusionsListCall { - c.urlParams_.Set("pageToken", pageToken) +// Write: Writes log entries to Logging. This API method is the only way +// to send log entries to Logging. This method is used, directly or +// indirectly, by the Logging agent (fluentd) and all logging libraries +// configured to use Logging. A single request may contain log entries +// for a maximum of 1000 different resources (projects, organizations, +// billing accounts or folders) +func (r *EntriesService) Write(writelogentriesrequest *WriteLogEntriesRequest) *EntriesWriteCall { + c := &EntriesWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.writelogentriesrequest = writelogentriesrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ExclusionsListCall) Fields(s ...googleapi.Field) *ExclusionsListCall { +func (c *EntriesWriteCall) Fields(s ...googleapi.Field) *EntriesWriteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ExclusionsListCall) IfNoneMatch(entityTag string) *ExclusionsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ExclusionsListCall) Context(ctx context.Context) *ExclusionsListCall { +func (c *EntriesWriteCall) Context(ctx context.Context) *EntriesWriteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ExclusionsListCall) Header() http.Header { +func (c *EntriesWriteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ExclusionsListCall) doRequest(alt string) (*http.Response, error) { +func (c *EntriesWriteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/exclusions") + body, err := googleapi.WithoutDataWrapper.JSONReader(c.writelogentriesrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/entries:write") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.exclusions.list" call. -// Exactly one of *ListExclusionsResponse or error will be non-nil. Any +// Do executes the "logging.entries.write" call. +// Exactly one of *WriteLogEntriesResponse or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either -// *ListExclusionsResponse.ServerResponse.Header or (if a response was +// *WriteLogEntriesResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ExclusionsListCall) Do(opts ...googleapi.CallOption) (*ListExclusionsResponse, error) { +func (c *EntriesWriteCall) Do(opts ...googleapi.CallOption) (*WriteLogEntriesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7681,7 +7837,7 @@ func (c *ExclusionsListCall) Do(opts ...googleapi.CallOption) (*ListExclusionsRe if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListExclusionsResponse{ + ret := &WriteLogEntriesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7693,103 +7849,53 @@ func (c *ExclusionsListCall) Do(opts ...googleapi.CallOption) (*ListExclusionsRe } return ret, nil // { - // "description": "Lists all the exclusions in a parent resource.", - // "flatPath": "v2/{v2Id}/{v2Id1}/exclusions", - // "httpMethod": "GET", - // "id": "logging.exclusions.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent resource whose exclusions are to be listed. \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ", - // "location": "path", - // "pattern": "^[^/]+/[^/]+$", - // "required": true, - // "type": "string" - // } + // "description": "Writes log entries to Logging. This API method is the only way to send log entries to Logging. This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging libraries configured to use Logging. A single request may contain log entries for a maximum of 1000 different resources (projects, organizations, billing accounts or folders)", + // "flatPath": "v2/entries:write", + // "httpMethod": "POST", + // "id": "logging.entries.write", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v2/entries:write", + // "request": { + // "$ref": "WriteLogEntriesRequest" // }, - // "path": "v2/{+parent}/exclusions", // "response": { - // "$ref": "ListExclusionsResponse" + // "$ref": "WriteLogEntriesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", // "https://www.googleapis.com/auth/logging.admin", - // "https://www.googleapis.com/auth/logging.read" + // "https://www.googleapis.com/auth/logging.write" // ] // } } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ExclusionsListCall) Pages(ctx context.Context, f func(*ListExclusionsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -// method id "logging.exclusions.patch": +// method id "logging.exclusions.create": -type ExclusionsPatchCall struct { +type ExclusionsCreateCall struct { s *Service - name string + parent string logexclusion *LogExclusion urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Patch: Changes one or more properties of an existing exclusion. -func (r *ExclusionsService) Patch(name string, logexclusion *LogExclusion) *ExclusionsPatchCall { - c := &ExclusionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// Create: Creates a new exclusion in a specified parent resource. Only +// log entries belonging to that resource can be excluded. You can have +// up to 10 exclusions in a resource. +func (r *ExclusionsService) Create(parent string, logexclusion *LogExclusion) *ExclusionsCreateCall { + c := &ExclusionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent c.logexclusion = logexclusion return c } -// UpdateMask sets the optional parameter "updateMask": Required. A -// non-empty list of fields to change in the existing exclusion. New -// values for the fields are taken from the corresponding fields in the -// LogExclusion included in this request. Fields not mentioned in -// update_mask are not changed and are ignored in the request.For -// example, to change the filter and description of an exclusion, -// specify an update_mask of "filter,description". -func (c *ExclusionsPatchCall) UpdateMask(updateMask string) *ExclusionsPatchCall { - c.urlParams_.Set("updateMask", updateMask) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ExclusionsPatchCall) Fields(s ...googleapi.Field) *ExclusionsPatchCall { +func (c *ExclusionsCreateCall) Fields(s ...googleapi.Field) *ExclusionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7797,23 +7903,23 @@ func (c *ExclusionsPatchCall) Fields(s ...googleapi.Field) *ExclusionsPatchCall // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ExclusionsPatchCall) Context(ctx context.Context) *ExclusionsPatchCall { +func (c *ExclusionsCreateCall) Context(ctx context.Context) *ExclusionsCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ExclusionsPatchCall) Header() http.Header { +func (c *ExclusionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ExclusionsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ExclusionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7826,27 +7932,27 @@ func (c *ExclusionsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/exclusions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.exclusions.patch" call. +// Do executes the "logging.exclusions.create" call. // Exactly one of *LogExclusion or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *LogExclusion.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ExclusionsPatchCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error) { +func (c *ExclusionsCreateCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7877,29 +7983,23 @@ func (c *ExclusionsPatchCall) Do(opts ...googleapi.CallOption) (*LogExclusion, e } return ret, nil // { - // "description": "Changes one or more properties of an existing exclusion.", - // "flatPath": "v2/{v2Id}/{v2Id1}/exclusions/{exclusionsId}", - // "httpMethod": "PATCH", - // "id": "logging.exclusions.patch", + // "description": "Creates a new exclusion in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.", + // "flatPath": "v2/{v2Id}/{v2Id1}/exclusions", + // "httpMethod": "POST", + // "id": "logging.exclusions.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The resource name of the exclusion to update: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" Example: \"projects/my-project-id/exclusions/my-exclusion-id\".", + // "parent": { + // "description": "Required. The parent resource in which to create the exclusion: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" Examples: \"projects/my-logging-project\", \"organizations/123456789\".", // "location": "path", - // "pattern": "^[^/]+/[^/]+/exclusions/[^/]+$", + // "pattern": "^[^/]+/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.For example, to change the filter and description of an exclusion, specify an update_mask of \"filter,description\".", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v2/{+name}", + // "path": "v2/{+parent}/exclusions", // "request": { // "$ref": "LogExclusion" // }, @@ -7914,31 +8014,27 @@ func (c *ExclusionsPatchCall) Do(opts ...googleapi.CallOption) (*LogExclusion, e } -// method id "logging.folders.exclusions.create": +// method id "logging.exclusions.delete": -type FoldersExclusionsCreateCall struct { - s *Service - parent string - logexclusion *LogExclusion - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ExclusionsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new exclusion in a specified parent resource. Only -// log entries belonging to that resource can be excluded. You can have -// up to 10 exclusions in a resource. -func (r *FoldersExclusionsService) Create(parent string, logexclusion *LogExclusion) *FoldersExclusionsCreateCall { - c := &FoldersExclusionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.logexclusion = logexclusion +// Delete: Deletes an exclusion. +func (r *ExclusionsService) Delete(name string) *ExclusionsDeleteCall { + c := &ExclusionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *FoldersExclusionsCreateCall) Fields(s ...googleapi.Field) *FoldersExclusionsCreateCall { +func (c *ExclusionsDeleteCall) Fields(s ...googleapi.Field) *ExclusionsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7946,56 +8042,51 @@ func (c *FoldersExclusionsCreateCall) Fields(s ...googleapi.Field) *FoldersExclu // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *FoldersExclusionsCreateCall) Context(ctx context.Context) *FoldersExclusionsCreateCall { +func (c *ExclusionsDeleteCall) Context(ctx context.Context) *ExclusionsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *FoldersExclusionsCreateCall) Header() http.Header { +func (c *ExclusionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FoldersExclusionsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ExclusionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logexclusion) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/exclusions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.folders.exclusions.create" call. -// Exactly one of *LogExclusion or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LogExclusion.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *FoldersExclusionsCreateCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error) { +// Do executes the "logging.exclusions.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ExclusionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8014,7 +8105,7 @@ func (c *FoldersExclusionsCreateCall) Do(opts ...googleapi.CallOption) (*LogExcl if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogExclusion{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8026,28 +8117,25 @@ func (c *FoldersExclusionsCreateCall) Do(opts ...googleapi.CallOption) (*LogExcl } return ret, nil // { - // "description": "Creates a new exclusion in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.", - // "flatPath": "v2/folders/{foldersId}/exclusions", - // "httpMethod": "POST", - // "id": "logging.folders.exclusions.create", + // "description": "Deletes an exclusion.", + // "flatPath": "v2/{v2Id}/{v2Id1}/exclusions/{exclusionsId}", + // "httpMethod": "DELETE", + // "id": "logging.exclusions.delete", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The parent resource in which to create the exclusion: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" Examples: \"projects/my-logging-project\", \"organizations/123456789\".", + // "name": { + // "description": "Required. The resource name of an existing exclusion to delete: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" Example: \"projects/my-project-id/exclusions/my-exclusion-id\".", // "location": "path", - // "pattern": "^folders/[^/]+$", + // "pattern": "^[^/]+/[^/]+/exclusions/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+parent}/exclusions", - // "request": { - // "$ref": "LogExclusion" - // }, + // "path": "v2/{+name}", // "response": { - // "$ref": "LogExclusion" + // "$ref": "Empty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -8057,151 +8145,20 @@ func (c *FoldersExclusionsCreateCall) Do(opts ...googleapi.CallOption) (*LogExcl } -// method id "logging.folders.exclusions.delete": +// method id "logging.exclusions.get": -type FoldersExclusionsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes an exclusion. -func (r *FoldersExclusionsService) Delete(name string) *FoldersExclusionsDeleteCall { - c := &FoldersExclusionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *FoldersExclusionsDeleteCall) Fields(s ...googleapi.Field) *FoldersExclusionsDeleteCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *FoldersExclusionsDeleteCall) Context(ctx context.Context) *FoldersExclusionsDeleteCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *FoldersExclusionsDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FoldersExclusionsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "logging.folders.exclusions.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *FoldersExclusionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, &googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - } - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - ret := &Empty{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Deletes an exclusion.", - // "flatPath": "v2/folders/{foldersId}/exclusions/{exclusionsId}", - // "httpMethod": "DELETE", - // "id": "logging.folders.exclusions.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name of an existing exclusion to delete: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" Example: \"projects/my-project-id/exclusions/my-exclusion-id\".", - // "location": "path", - // "pattern": "^folders/[^/]+/exclusions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin" - // ] - // } - -} - -// method id "logging.folders.exclusions.get": - -type FoldersExclusionsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ExclusionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } // Get: Gets the description of an exclusion. -func (r *FoldersExclusionsService) Get(name string) *FoldersExclusionsGetCall { - c := &FoldersExclusionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ExclusionsService) Get(name string) *ExclusionsGetCall { + c := &ExclusionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -8209,7 +8166,7 @@ func (r *FoldersExclusionsService) Get(name string) *FoldersExclusionsGetCall { // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *FoldersExclusionsGetCall) Fields(s ...googleapi.Field) *FoldersExclusionsGetCall { +func (c *ExclusionsGetCall) Fields(s ...googleapi.Field) *ExclusionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -8219,7 +8176,7 @@ func (c *FoldersExclusionsGetCall) Fields(s ...googleapi.Field) *FoldersExclusio // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *FoldersExclusionsGetCall) IfNoneMatch(entityTag string) *FoldersExclusionsGetCall { +func (c *ExclusionsGetCall) IfNoneMatch(entityTag string) *ExclusionsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -8227,23 +8184,23 @@ func (c *FoldersExclusionsGetCall) IfNoneMatch(entityTag string) *FoldersExclusi // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *FoldersExclusionsGetCall) Context(ctx context.Context) *FoldersExclusionsGetCall { +func (c *ExclusionsGetCall) Context(ctx context.Context) *ExclusionsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *FoldersExclusionsGetCall) Header() http.Header { +func (c *ExclusionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FoldersExclusionsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ExclusionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8267,14 +8224,14 @@ func (c *FoldersExclusionsGetCall) doRequest(alt string) (*http.Response, error) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.folders.exclusions.get" call. +// Do executes the "logging.exclusions.get" call. // Exactly one of *LogExclusion or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *LogExclusion.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *FoldersExclusionsGetCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error) { +func (c *ExclusionsGetCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8306,9 +8263,9 @@ func (c *FoldersExclusionsGetCall) Do(opts ...googleapi.CallOption) (*LogExclusi return ret, nil // { // "description": "Gets the description of an exclusion.", - // "flatPath": "v2/folders/{foldersId}/exclusions/{exclusionsId}", + // "flatPath": "v2/{v2Id}/{v2Id1}/exclusions/{exclusionsId}", // "httpMethod": "GET", - // "id": "logging.folders.exclusions.get", + // "id": "logging.exclusions.get", // "parameterOrder": [ // "name" // ], @@ -8316,7 +8273,7 @@ func (c *FoldersExclusionsGetCall) Do(opts ...googleapi.CallOption) (*LogExclusi // "name": { // "description": "Required. The resource name of an existing exclusion: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" Example: \"projects/my-project-id/exclusions/my-exclusion-id\".", // "location": "path", - // "pattern": "^folders/[^/]+/exclusions/[^/]+$", + // "pattern": "^[^/]+/[^/]+/exclusions/[^/]+$", // "required": true, // "type": "string" // } @@ -8335,9 +8292,9 @@ func (c *FoldersExclusionsGetCall) Do(opts ...googleapi.CallOption) (*LogExclusi } -// method id "logging.folders.exclusions.list": +// method id "logging.exclusions.list": -type FoldersExclusionsListCall struct { +type ExclusionsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -8347,8 +8304,8 @@ type FoldersExclusionsListCall struct { } // List: Lists all the exclusions in a parent resource. -func (r *FoldersExclusionsService) List(parent string) *FoldersExclusionsListCall { - c := &FoldersExclusionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ExclusionsService) List(parent string) *ExclusionsListCall { + c := &ExclusionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } @@ -8357,7 +8314,7 @@ func (r *FoldersExclusionsService) List(parent string) *FoldersExclusionsListCal // of results to return from this request. Non-positive values are // ignored. The presence of nextPageToken in the response indicates that // more results might be available. -func (c *FoldersExclusionsListCall) PageSize(pageSize int64) *FoldersExclusionsListCall { +func (c *ExclusionsListCall) PageSize(pageSize int64) *ExclusionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } @@ -8367,7 +8324,7 @@ func (c *FoldersExclusionsListCall) PageSize(pageSize int64) *FoldersExclusionsL // method. pageToken must be the value of nextPageToken from the // previous response. The values of other method parameters should be // identical to those in the previous call. -func (c *FoldersExclusionsListCall) PageToken(pageToken string) *FoldersExclusionsListCall { +func (c *ExclusionsListCall) PageToken(pageToken string) *ExclusionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -8375,7 +8332,7 @@ func (c *FoldersExclusionsListCall) PageToken(pageToken string) *FoldersExclusio // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *FoldersExclusionsListCall) Fields(s ...googleapi.Field) *FoldersExclusionsListCall { +func (c *ExclusionsListCall) Fields(s ...googleapi.Field) *ExclusionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -8385,7 +8342,7 @@ func (c *FoldersExclusionsListCall) Fields(s ...googleapi.Field) *FoldersExclusi // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *FoldersExclusionsListCall) IfNoneMatch(entityTag string) *FoldersExclusionsListCall { +func (c *ExclusionsListCall) IfNoneMatch(entityTag string) *ExclusionsListCall { c.ifNoneMatch_ = entityTag return c } @@ -8393,23 +8350,23 @@ func (c *FoldersExclusionsListCall) IfNoneMatch(entityTag string) *FoldersExclus // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *FoldersExclusionsListCall) Context(ctx context.Context) *FoldersExclusionsListCall { +func (c *ExclusionsListCall) Context(ctx context.Context) *ExclusionsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *FoldersExclusionsListCall) Header() http.Header { +func (c *ExclusionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FoldersExclusionsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ExclusionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8433,14 +8390,14 @@ func (c *FoldersExclusionsListCall) doRequest(alt string) (*http.Response, error return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.folders.exclusions.list" call. +// Do executes the "logging.exclusions.list" call. // Exactly one of *ListExclusionsResponse or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either // *ListExclusionsResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *FoldersExclusionsListCall) Do(opts ...googleapi.CallOption) (*ListExclusionsResponse, error) { +func (c *ExclusionsListCall) Do(opts ...googleapi.CallOption) (*ListExclusionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8472,9 +8429,9 @@ func (c *FoldersExclusionsListCall) Do(opts ...googleapi.CallOption) (*ListExclu return ret, nil // { // "description": "Lists all the exclusions in a parent resource.", - // "flatPath": "v2/folders/{foldersId}/exclusions", + // "flatPath": "v2/{v2Id}/{v2Id1}/exclusions", // "httpMethod": "GET", - // "id": "logging.folders.exclusions.list", + // "id": "logging.exclusions.list", // "parameterOrder": [ // "parent" // ], @@ -8493,7 +8450,7 @@ func (c *FoldersExclusionsListCall) Do(opts ...googleapi.CallOption) (*ListExclu // "parent": { // "description": "Required. The parent resource whose exclusions are to be listed. \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ", // "location": "path", - // "pattern": "^folders/[^/]+$", + // "pattern": "^[^/]+/[^/]+$", // "required": true, // "type": "string" // } @@ -8515,7 +8472,7 @@ func (c *FoldersExclusionsListCall) Do(opts ...googleapi.CallOption) (*ListExclu // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *FoldersExclusionsListCall) Pages(ctx context.Context, f func(*ListExclusionsResponse) error) error { +func (c *ExclusionsListCall) Pages(ctx context.Context, f func(*ListExclusionsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -8533,9 +8490,9 @@ func (c *FoldersExclusionsListCall) Pages(ctx context.Context, f func(*ListExclu } } -// method id "logging.folders.exclusions.patch": +// method id "logging.exclusions.patch": -type FoldersExclusionsPatchCall struct { +type ExclusionsPatchCall struct { s *Service name string logexclusion *LogExclusion @@ -8545,8 +8502,8 @@ type FoldersExclusionsPatchCall struct { } // Patch: Changes one or more properties of an existing exclusion. -func (r *FoldersExclusionsService) Patch(name string, logexclusion *LogExclusion) *FoldersExclusionsPatchCall { - c := &FoldersExclusionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ExclusionsService) Patch(name string, logexclusion *LogExclusion) *ExclusionsPatchCall { + c := &ExclusionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name c.logexclusion = logexclusion return c @@ -8559,7 +8516,7 @@ func (r *FoldersExclusionsService) Patch(name string, logexclusion *LogExclusion // update_mask are not changed and are ignored in the request.For // example, to change the filter and description of an exclusion, // specify an update_mask of "filter,description". -func (c *FoldersExclusionsPatchCall) UpdateMask(updateMask string) *FoldersExclusionsPatchCall { +func (c *ExclusionsPatchCall) UpdateMask(updateMask string) *ExclusionsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } @@ -8567,7 +8524,7 @@ func (c *FoldersExclusionsPatchCall) UpdateMask(updateMask string) *FoldersExclu // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *FoldersExclusionsPatchCall) Fields(s ...googleapi.Field) *FoldersExclusionsPatchCall { +func (c *ExclusionsPatchCall) Fields(s ...googleapi.Field) *ExclusionsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -8575,23 +8532,23 @@ func (c *FoldersExclusionsPatchCall) Fields(s ...googleapi.Field) *FoldersExclus // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *FoldersExclusionsPatchCall) Context(ctx context.Context) *FoldersExclusionsPatchCall { +func (c *ExclusionsPatchCall) Context(ctx context.Context) *ExclusionsPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *FoldersExclusionsPatchCall) Header() http.Header { +func (c *ExclusionsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FoldersExclusionsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ExclusionsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8617,14 +8574,14 @@ func (c *FoldersExclusionsPatchCall) doRequest(alt string) (*http.Response, erro return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.folders.exclusions.patch" call. +// Do executes the "logging.exclusions.patch" call. // Exactly one of *LogExclusion or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *LogExclusion.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *FoldersExclusionsPatchCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error) { +func (c *ExclusionsPatchCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8656,9 +8613,9 @@ func (c *FoldersExclusionsPatchCall) Do(opts ...googleapi.CallOption) (*LogExclu return ret, nil // { // "description": "Changes one or more properties of an existing exclusion.", - // "flatPath": "v2/folders/{foldersId}/exclusions/{exclusionsId}", + // "flatPath": "v2/{v2Id}/{v2Id1}/exclusions/{exclusionsId}", // "httpMethod": "PATCH", - // "id": "logging.folders.exclusions.patch", + // "id": "logging.exclusions.patch", // "parameterOrder": [ // "name" // ], @@ -8666,7 +8623,7 @@ func (c *FoldersExclusionsPatchCall) Do(opts ...googleapi.CallOption) (*LogExclu // "name": { // "description": "Required. The resource name of the exclusion to update: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" Example: \"projects/my-project-id/exclusions/my-exclusion-id\".", // "location": "path", - // "pattern": "^folders/[^/]+/exclusions/[^/]+$", + // "pattern": "^[^/]+/[^/]+/exclusions/[^/]+$", // "required": true, // "type": "string" // }, @@ -8692,39 +8649,31 @@ func (c *FoldersExclusionsPatchCall) Do(opts ...googleapi.CallOption) (*LogExclu } -// method id "logging.folders.locations.buckets.create": +// method id "logging.folders.exclusions.create": -type FoldersLocationsBucketsCreateCall struct { - s *Service - parent string - logbucket *LogBucket - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type FoldersExclusionsCreateCall struct { + s *Service + parent string + logexclusion *LogExclusion + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a bucket that can be used to store log entries. Once -// a bucket has been created, the region cannot be changed. -func (r *FoldersLocationsBucketsService) Create(parent string, logbucket *LogBucket) *FoldersLocationsBucketsCreateCall { - c := &FoldersLocationsBucketsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Create: Creates a new exclusion in a specified parent resource. Only +// log entries belonging to that resource can be excluded. You can have +// up to 10 exclusions in a resource. +func (r *FoldersExclusionsService) Create(parent string, logexclusion *LogExclusion) *FoldersExclusionsCreateCall { + c := &FoldersExclusionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.logbucket = logbucket - return c -} - -// BucketId sets the optional parameter "bucketId": Required. A -// client-assigned identifier such as "my-bucket". Identifiers are -// limited to 100 characters and can include only letters, digits, -// underscores, hyphens, and periods. -func (c *FoldersLocationsBucketsCreateCall) BucketId(bucketId string) *FoldersLocationsBucketsCreateCall { - c.urlParams_.Set("bucketId", bucketId) + c.logexclusion = logexclusion return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *FoldersLocationsBucketsCreateCall) Fields(s ...googleapi.Field) *FoldersLocationsBucketsCreateCall { +func (c *FoldersExclusionsCreateCall) Fields(s ...googleapi.Field) *FoldersExclusionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -8732,36 +8681,36 @@ func (c *FoldersLocationsBucketsCreateCall) Fields(s ...googleapi.Field) *Folder // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *FoldersLocationsBucketsCreateCall) Context(ctx context.Context) *FoldersLocationsBucketsCreateCall { +func (c *FoldersExclusionsCreateCall) Context(ctx context.Context) *FoldersExclusionsCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *FoldersLocationsBucketsCreateCall) Header() http.Header { +func (c *FoldersExclusionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FoldersLocationsBucketsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *FoldersExclusionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logbucket) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logexclusion) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/buckets") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/exclusions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -8774,14 +8723,14 @@ func (c *FoldersLocationsBucketsCreateCall) doRequest(alt string) (*http.Respons return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.folders.locations.buckets.create" call. -// Exactly one of *LogBucket or error will be non-nil. Any non-2xx +// Do executes the "logging.folders.exclusions.create" call. +// Exactly one of *LogExclusion or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either -// *LogBucket.ServerResponse.Header or (if a response was returned at +// *LogExclusion.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *FoldersLocationsBucketsCreateCall) Do(opts ...googleapi.CallOption) (*LogBucket, error) { +func (c *FoldersExclusionsCreateCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8800,7 +8749,7 @@ func (c *FoldersLocationsBucketsCreateCall) Do(opts ...googleapi.CallOption) (*L if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogBucket{ + ret := &LogExclusion{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8812,33 +8761,28 @@ func (c *FoldersLocationsBucketsCreateCall) Do(opts ...googleapi.CallOption) (*L } return ret, nil // { - // "description": "Creates a bucket that can be used to store log entries. Once a bucket has been created, the region cannot be changed.", - // "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets", + // "description": "Creates a new exclusion in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.", + // "flatPath": "v2/folders/{foldersId}/exclusions", // "httpMethod": "POST", - // "id": "logging.folders.locations.buckets.create", + // "id": "logging.folders.exclusions.create", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "bucketId": { - // "description": "Required. A client-assigned identifier such as \"my-bucket\". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.", - // "location": "query", - // "type": "string" - // }, // "parent": { - // "description": "Required. The resource in which to create the bucket: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" Example: \"projects/my-logging-project/locations/global\"", + // "description": "Required. The parent resource in which to create the exclusion: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" Examples: \"projects/my-logging-project\", \"organizations/123456789\".", // "location": "path", - // "pattern": "^folders/[^/]+/locations/[^/]+$", + // "pattern": "^folders/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+parent}/buckets", + // "path": "v2/{+parent}/exclusions", // "request": { - // "$ref": "LogBucket" + // "$ref": "LogExclusion" // }, // "response": { - // "$ref": "LogBucket" + // "$ref": "LogExclusion" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -8848,9 +8792,9 @@ func (c *FoldersLocationsBucketsCreateCall) Do(opts ...googleapi.CallOption) (*L } -// method id "logging.folders.locations.buckets.delete": +// method id "logging.folders.exclusions.delete": -type FoldersLocationsBucketsDeleteCall struct { +type FoldersExclusionsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -8858,11 +8802,9 @@ type FoldersLocationsBucketsDeleteCall struct { header_ http.Header } -// Delete: Deletes a bucket. Moves the bucket to the DELETE_REQUESTED -// state. After 7 days, the bucket will be purged and all logs in the -// bucket will be permanently deleted. -func (r *FoldersLocationsBucketsService) Delete(name string) *FoldersLocationsBucketsDeleteCall { - c := &FoldersLocationsBucketsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Delete: Deletes an exclusion. +func (r *FoldersExclusionsService) Delete(name string) *FoldersExclusionsDeleteCall { + c := &FoldersExclusionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -8870,7 +8812,7 @@ func (r *FoldersLocationsBucketsService) Delete(name string) *FoldersLocationsBu // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *FoldersLocationsBucketsDeleteCall) Fields(s ...googleapi.Field) *FoldersLocationsBucketsDeleteCall { +func (c *FoldersExclusionsDeleteCall) Fields(s ...googleapi.Field) *FoldersExclusionsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -8878,23 +8820,23 @@ func (c *FoldersLocationsBucketsDeleteCall) Fields(s ...googleapi.Field) *Folder // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *FoldersLocationsBucketsDeleteCall) Context(ctx context.Context) *FoldersLocationsBucketsDeleteCall { +func (c *FoldersExclusionsDeleteCall) Context(ctx context.Context) *FoldersExclusionsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *FoldersLocationsBucketsDeleteCall) Header() http.Header { +func (c *FoldersExclusionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FoldersLocationsBucketsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *FoldersExclusionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8915,14 +8857,14 @@ func (c *FoldersLocationsBucketsDeleteCall) doRequest(alt string) (*http.Respons return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.folders.locations.buckets.delete" call. +// Do executes the "logging.folders.exclusions.delete" call. // Exactly one of *Empty or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either // *Empty.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *FoldersLocationsBucketsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +func (c *FoldersExclusionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8953,18 +8895,18 @@ func (c *FoldersLocationsBucketsDeleteCall) Do(opts ...googleapi.CallOption) (*E } return ret, nil // { - // "description": "Deletes a bucket. Moves the bucket to the DELETE_REQUESTED state. After 7 days, the bucket will be purged and all logs in the bucket will be permanently deleted.", - // "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}", + // "description": "Deletes an exclusion.", + // "flatPath": "v2/folders/{foldersId}/exclusions/{exclusionsId}", // "httpMethod": "DELETE", - // "id": "logging.folders.locations.buckets.delete", + // "id": "logging.folders.exclusions.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The full resource name of the bucket to delete. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\".", + // "description": "Required. The resource name of an existing exclusion to delete: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" Example: \"projects/my-project-id/exclusions/my-exclusion-id\".", // "location": "path", - // "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+$", + // "pattern": "^folders/[^/]+/exclusions/[^/]+$", // "required": true, // "type": "string" // } @@ -8981,9 +8923,9 @@ func (c *FoldersLocationsBucketsDeleteCall) Do(opts ...googleapi.CallOption) (*E } -// method id "logging.folders.locations.buckets.get": +// method id "logging.folders.exclusions.get": -type FoldersLocationsBucketsGetCall struct { +type FoldersExclusionsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -8992,9 +8934,9 @@ type FoldersLocationsBucketsGetCall struct { header_ http.Header } -// Get: Gets a bucket (Beta). -func (r *FoldersLocationsBucketsService) Get(name string) *FoldersLocationsBucketsGetCall { - c := &FoldersLocationsBucketsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Get: Gets the description of an exclusion. +func (r *FoldersExclusionsService) Get(name string) *FoldersExclusionsGetCall { + c := &FoldersExclusionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -9002,7 +8944,7 @@ func (r *FoldersLocationsBucketsService) Get(name string) *FoldersLocationsBucke // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *FoldersLocationsBucketsGetCall) Fields(s ...googleapi.Field) *FoldersLocationsBucketsGetCall { +func (c *FoldersExclusionsGetCall) Fields(s ...googleapi.Field) *FoldersExclusionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -9012,7 +8954,7 @@ func (c *FoldersLocationsBucketsGetCall) Fields(s ...googleapi.Field) *FoldersLo // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *FoldersLocationsBucketsGetCall) IfNoneMatch(entityTag string) *FoldersLocationsBucketsGetCall { +func (c *FoldersExclusionsGetCall) IfNoneMatch(entityTag string) *FoldersExclusionsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -9020,23 +8962,23 @@ func (c *FoldersLocationsBucketsGetCall) IfNoneMatch(entityTag string) *FoldersL // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *FoldersLocationsBucketsGetCall) Context(ctx context.Context) *FoldersLocationsBucketsGetCall { +func (c *FoldersExclusionsGetCall) Context(ctx context.Context) *FoldersExclusionsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *FoldersLocationsBucketsGetCall) Header() http.Header { +func (c *FoldersExclusionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FoldersLocationsBucketsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *FoldersExclusionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9060,14 +9002,14 @@ func (c *FoldersLocationsBucketsGetCall) doRequest(alt string) (*http.Response, return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.folders.locations.buckets.get" call. -// Exactly one of *LogBucket or error will be non-nil. Any non-2xx +// Do executes the "logging.folders.exclusions.get" call. +// Exactly one of *LogExclusion or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either -// *LogBucket.ServerResponse.Header or (if a response was returned at +// *LogExclusion.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *FoldersLocationsBucketsGetCall) Do(opts ...googleapi.CallOption) (*LogBucket, error) { +func (c *FoldersExclusionsGetCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9086,7 +9028,7 @@ func (c *FoldersLocationsBucketsGetCall) Do(opts ...googleapi.CallOption) (*LogB if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogBucket{ + ret := &LogExclusion{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9098,25 +9040,25 @@ func (c *FoldersLocationsBucketsGetCall) Do(opts ...googleapi.CallOption) (*LogB } return ret, nil // { - // "description": "Gets a bucket (Beta).", - // "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}", + // "description": "Gets the description of an exclusion.", + // "flatPath": "v2/folders/{foldersId}/exclusions/{exclusionsId}", // "httpMethod": "GET", - // "id": "logging.folders.locations.buckets.get", + // "id": "logging.folders.exclusions.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name of the bucket: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\".", + // "description": "Required. The resource name of an existing exclusion: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" Example: \"projects/my-project-id/exclusions/my-exclusion-id\".", // "location": "path", - // "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+$", + // "pattern": "^folders/[^/]+/exclusions/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v2/{+name}", // "response": { - // "$ref": "LogBucket" + // "$ref": "LogExclusion" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -9128,9 +9070,9 @@ func (c *FoldersLocationsBucketsGetCall) Do(opts ...googleapi.CallOption) (*LogB } -// method id "logging.folders.locations.buckets.list": +// method id "logging.folders.exclusions.list": -type FoldersLocationsBucketsListCall struct { +type FoldersExclusionsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -9139,9 +9081,9 @@ type FoldersLocationsBucketsListCall struct { header_ http.Header } -// List: Lists buckets (Beta). -func (r *FoldersLocationsBucketsService) List(parent string) *FoldersLocationsBucketsListCall { - c := &FoldersLocationsBucketsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// List: Lists all the exclusions in a parent resource. +func (r *FoldersExclusionsService) List(parent string) *FoldersExclusionsListCall { + c := &FoldersExclusionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } @@ -9150,7 +9092,7 @@ func (r *FoldersLocationsBucketsService) List(parent string) *FoldersLocationsBu // of results to return from this request. Non-positive values are // ignored. The presence of nextPageToken in the response indicates that // more results might be available. -func (c *FoldersLocationsBucketsListCall) PageSize(pageSize int64) *FoldersLocationsBucketsListCall { +func (c *FoldersExclusionsListCall) PageSize(pageSize int64) *FoldersExclusionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } @@ -9160,7 +9102,7 @@ func (c *FoldersLocationsBucketsListCall) PageSize(pageSize int64) *FoldersLocat // method. pageToken must be the value of nextPageToken from the // previous response. The values of other method parameters should be // identical to those in the previous call. -func (c *FoldersLocationsBucketsListCall) PageToken(pageToken string) *FoldersLocationsBucketsListCall { +func (c *FoldersExclusionsListCall) PageToken(pageToken string) *FoldersExclusionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -9168,7 +9110,7 @@ func (c *FoldersLocationsBucketsListCall) PageToken(pageToken string) *FoldersLo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *FoldersLocationsBucketsListCall) Fields(s ...googleapi.Field) *FoldersLocationsBucketsListCall { +func (c *FoldersExclusionsListCall) Fields(s ...googleapi.Field) *FoldersExclusionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -9178,7 +9120,7 @@ func (c *FoldersLocationsBucketsListCall) Fields(s ...googleapi.Field) *FoldersL // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *FoldersLocationsBucketsListCall) IfNoneMatch(entityTag string) *FoldersLocationsBucketsListCall { +func (c *FoldersExclusionsListCall) IfNoneMatch(entityTag string) *FoldersExclusionsListCall { c.ifNoneMatch_ = entityTag return c } @@ -9186,23 +9128,23 @@ func (c *FoldersLocationsBucketsListCall) IfNoneMatch(entityTag string) *Folders // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *FoldersLocationsBucketsListCall) Context(ctx context.Context) *FoldersLocationsBucketsListCall { +func (c *FoldersExclusionsListCall) Context(ctx context.Context) *FoldersExclusionsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *FoldersLocationsBucketsListCall) Header() http.Header { +func (c *FoldersExclusionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FoldersLocationsBucketsListCall) doRequest(alt string) (*http.Response, error) { +func (c *FoldersExclusionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9213,7 +9155,7 @@ func (c *FoldersLocationsBucketsListCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/buckets") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/exclusions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -9226,14 +9168,14 @@ func (c *FoldersLocationsBucketsListCall) doRequest(alt string) (*http.Response, return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.folders.locations.buckets.list" call. -// Exactly one of *ListBucketsResponse or error will be non-nil. Any +// Do executes the "logging.folders.exclusions.list" call. +// Exactly one of *ListExclusionsResponse or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either -// *ListBucketsResponse.ServerResponse.Header or (if a response was +// *ListExclusionsResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *FoldersLocationsBucketsListCall) Do(opts ...googleapi.CallOption) (*ListBucketsResponse, error) { +func (c *FoldersExclusionsListCall) Do(opts ...googleapi.CallOption) (*ListExclusionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9252,7 +9194,7 @@ func (c *FoldersLocationsBucketsListCall) Do(opts ...googleapi.CallOption) (*Lis if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListBucketsResponse{ + ret := &ListExclusionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9264,10 +9206,10 @@ func (c *FoldersLocationsBucketsListCall) Do(opts ...googleapi.CallOption) (*Lis } return ret, nil // { - // "description": "Lists buckets (Beta).", - // "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets", + // "description": "Lists all the exclusions in a parent resource.", + // "flatPath": "v2/folders/{foldersId}/exclusions", // "httpMethod": "GET", - // "id": "logging.folders.locations.buckets.list", + // "id": "logging.folders.exclusions.list", // "parameterOrder": [ // "parent" // ], @@ -9284,16 +9226,16 @@ func (c *FoldersLocationsBucketsListCall) Do(opts ...googleapi.CallOption) (*Lis // "type": "string" // }, // "parent": { - // "description": "Required. The parent resource whose buckets are to be listed: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]\" Note: The locations portion of the resource must be specified, but supplying the character - in place of LOCATION_ID will return all buckets.", + // "description": "Required. The parent resource whose exclusions are to be listed. \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ", // "location": "path", - // "pattern": "^folders/[^/]+/locations/[^/]+$", + // "pattern": "^folders/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+parent}/buckets", + // "path": "v2/{+parent}/exclusions", // "response": { - // "$ref": "ListBucketsResponse" + // "$ref": "ListExclusionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -9308,7 +9250,7 @@ func (c *FoldersLocationsBucketsListCall) Do(opts ...googleapi.CallOption) (*Lis // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *FoldersLocationsBucketsListCall) Pages(ctx context.Context, f func(*ListBucketsResponse) error) error { +func (c *FoldersExclusionsListCall) Pages(ctx context.Context, f func(*ListExclusionsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -9326,39 +9268,33 @@ func (c *FoldersLocationsBucketsListCall) Pages(ctx context.Context, f func(*Lis } } -// method id "logging.folders.locations.buckets.patch": +// method id "logging.folders.exclusions.patch": -type FoldersLocationsBucketsPatchCall struct { - s *Service - name string - logbucket *LogBucket - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type FoldersExclusionsPatchCall struct { + s *Service + name string + logexclusion *LogExclusion + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates a bucket. This method replaces the following fields in -// the existing bucket with values from the new bucket: -// retention_periodIf the retention period is decreased and the bucket -// is locked, FAILED_PRECONDITION will be returned.If the bucket has a -// LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be -// returned.A buckets region may not be modified after it is created. -// This method is in Beta. -func (r *FoldersLocationsBucketsService) Patch(name string, logbucket *LogBucket) *FoldersLocationsBucketsPatchCall { - c := &FoldersLocationsBucketsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Patch: Changes one or more properties of an existing exclusion. +func (r *FoldersExclusionsService) Patch(name string, logexclusion *LogExclusion) *FoldersExclusionsPatchCall { + c := &FoldersExclusionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.logbucket = logbucket + c.logexclusion = logexclusion return c } -// UpdateMask sets the optional parameter "updateMask": Required. Field -// mask that specifies the fields in bucket that need an update. A -// bucket field will be overwritten if, and only if, it is in the update -// mask. name and output only fields cannot be updated.For a detailed -// FieldMask definition, see -// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: -// updateMask=retention_days. -func (c *FoldersLocationsBucketsPatchCall) UpdateMask(updateMask string) *FoldersLocationsBucketsPatchCall { +// UpdateMask sets the optional parameter "updateMask": Required. A +// non-empty list of fields to change in the existing exclusion. New +// values for the fields are taken from the corresponding fields in the +// LogExclusion included in this request. Fields not mentioned in +// update_mask are not changed and are ignored in the request.For +// example, to change the filter and description of an exclusion, +// specify an update_mask of "filter,description". +func (c *FoldersExclusionsPatchCall) UpdateMask(updateMask string) *FoldersExclusionsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } @@ -9366,7 +9302,7 @@ func (c *FoldersLocationsBucketsPatchCall) UpdateMask(updateMask string) *Folder // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *FoldersLocationsBucketsPatchCall) Fields(s ...googleapi.Field) *FoldersLocationsBucketsPatchCall { +func (c *FoldersExclusionsPatchCall) Fields(s ...googleapi.Field) *FoldersExclusionsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -9374,29 +9310,29 @@ func (c *FoldersLocationsBucketsPatchCall) Fields(s ...googleapi.Field) *Folders // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *FoldersLocationsBucketsPatchCall) Context(ctx context.Context) *FoldersLocationsBucketsPatchCall { +func (c *FoldersExclusionsPatchCall) Context(ctx context.Context) *FoldersExclusionsPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *FoldersLocationsBucketsPatchCall) Header() http.Header { +func (c *FoldersExclusionsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FoldersLocationsBucketsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *FoldersExclusionsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logbucket) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logexclusion) if err != nil { return nil, err } @@ -9416,14 +9352,14 @@ func (c *FoldersLocationsBucketsPatchCall) doRequest(alt string) (*http.Response return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.folders.locations.buckets.patch" call. -// Exactly one of *LogBucket or error will be non-nil. Any non-2xx +// Do executes the "logging.folders.exclusions.patch" call. +// Exactly one of *LogExclusion or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either -// *LogBucket.ServerResponse.Header or (if a response was returned at +// *LogExclusion.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *FoldersLocationsBucketsPatchCall) Do(opts ...googleapi.CallOption) (*LogBucket, error) { +func (c *FoldersExclusionsPatchCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9442,7 +9378,7 @@ func (c *FoldersLocationsBucketsPatchCall) Do(opts ...googleapi.CallOption) (*Lo if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogBucket{ + ret := &LogExclusion{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9454,23 +9390,23 @@ func (c *FoldersLocationsBucketsPatchCall) Do(opts ...googleapi.CallOption) (*Lo } return ret, nil // { - // "description": "Updates a bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be returned.A buckets region may not be modified after it is created. This method is in Beta.", - // "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}", + // "description": "Changes one or more properties of an existing exclusion.", + // "flatPath": "v2/folders/{foldersId}/exclusions/{exclusionsId}", // "httpMethod": "PATCH", - // "id": "logging.folders.locations.buckets.patch", + // "id": "logging.folders.exclusions.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The full resource name of the bucket to update. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\". Also requires permission \"resourcemanager.projects.updateLiens\" to set the locked property", + // "description": "Required. The resource name of the exclusion to update: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" Example: \"projects/my-project-id/exclusions/my-exclusion-id\".", // "location": "path", - // "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+$", + // "pattern": "^folders/[^/]+/exclusions/[^/]+$", // "required": true, // "type": "string" // }, // "updateMask": { - // "description": "Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=retention_days.", + // "description": "Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.For example, to change the filter and description of an exclusion, specify an update_mask of \"filter,description\".", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -9478,10 +9414,10 @@ func (c *FoldersLocationsBucketsPatchCall) Do(opts ...googleapi.CallOption) (*Lo // }, // "path": "v2/{+name}", // "request": { - // "$ref": "LogBucket" + // "$ref": "LogExclusion" // }, // "response": { - // "$ref": "LogBucket" + // "$ref": "LogExclusion" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -9491,69 +9427,75 @@ func (c *FoldersLocationsBucketsPatchCall) Do(opts ...googleapi.CallOption) (*Lo } -// method id "logging.folders.locations.buckets.undelete": - -type FoldersLocationsBucketsUndeleteCall struct { - s *Service - name string - undeletebucketrequest *UndeleteBucketRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} +// method id "logging.folders.locations.get": -// Undelete: Undeletes a bucket. A bucket that has been deleted may be -// undeleted within the grace period of 7 days. -func (r *FoldersLocationsBucketsService) Undelete(name string, undeletebucketrequest *UndeleteBucketRequest) *FoldersLocationsBucketsUndeleteCall { - c := &FoldersLocationsBucketsUndeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +type FoldersLocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information about a location. +func (r *FoldersLocationsService) Get(name string) *FoldersLocationsGetCall { + c := &FoldersLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.undeletebucketrequest = undeletebucketrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *FoldersLocationsBucketsUndeleteCall) Fields(s ...googleapi.Field) *FoldersLocationsBucketsUndeleteCall { +func (c *FoldersLocationsGetCall) Fields(s ...googleapi.Field) *FoldersLocationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *FoldersLocationsGetCall) IfNoneMatch(entityTag string) *FoldersLocationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *FoldersLocationsBucketsUndeleteCall) Context(ctx context.Context) *FoldersLocationsBucketsUndeleteCall { +func (c *FoldersLocationsGetCall) Context(ctx context.Context) *FoldersLocationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *FoldersLocationsBucketsUndeleteCall) Header() http.Header { +func (c *FoldersLocationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FoldersLocationsBucketsUndeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *FoldersLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.undeletebucketrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:undelete") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -9564,14 +9506,14 @@ func (c *FoldersLocationsBucketsUndeleteCall) doRequest(alt string) (*http.Respo return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.folders.locations.buckets.undelete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// Do executes the "logging.folders.locations.get" call. +// Exactly one of *Location or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *FoldersLocationsBucketsUndeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +// *Location.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *FoldersLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9590,7 +9532,7 @@ func (c *FoldersLocationsBucketsUndeleteCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Empty{ + ret := &Location{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9602,125 +9544,145 @@ func (c *FoldersLocationsBucketsUndeleteCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Undeletes a bucket. A bucket that has been deleted may be undeleted within the grace period of 7 days.", - // "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}:undelete", - // "httpMethod": "POST", - // "id": "logging.folders.locations.buckets.undelete", + // "description": "Gets information about a location.", + // "flatPath": "v2/folders/{foldersId}/locations/{locationsId}", + // "httpMethod": "GET", + // "id": "logging.folders.locations.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The full resource name of the bucket to undelete. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\".", + // "description": "Resource name for the location.", // "location": "path", - // "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+$", + // "pattern": "^folders/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+name}:undelete", - // "request": { - // "$ref": "UndeleteBucketRequest" - // }, + // "path": "v2/{+name}", // "response": { - // "$ref": "Empty" + // "$ref": "Location" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin" + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/logging.admin", + // "https://www.googleapis.com/auth/logging.read" // ] // } } -// method id "logging.folders.locations.buckets.views.create": +// method id "logging.folders.locations.list": -type FoldersLocationsBucketsViewsCreateCall struct { - s *Service - parent string - logview *LogView - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type FoldersLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a view over logs in a bucket. A bucket may contain a -// maximum of 50 views. -func (r *FoldersLocationsBucketsViewsService) Create(parent string, logview *LogView) *FoldersLocationsBucketsViewsCreateCall { - c := &FoldersLocationsBucketsViewsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.logview = logview +// List: Lists information about the supported locations for this +// service. +func (r *FoldersLocationsService) List(name string) *FoldersLocationsListCall { + c := &FoldersLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// ViewId sets the optional parameter "viewId": Required. The id to use -// for this view. -func (c *FoldersLocationsBucketsViewsCreateCall) ViewId(viewId string) *FoldersLocationsBucketsViewsCreateCall { - c.urlParams_.Set("viewId", viewId) +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *FoldersLocationsListCall) Filter(filter string) *FoldersLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *FoldersLocationsListCall) PageSize(pageSize int64) *FoldersLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *FoldersLocationsListCall) PageToken(pageToken string) *FoldersLocationsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *FoldersLocationsBucketsViewsCreateCall) Fields(s ...googleapi.Field) *FoldersLocationsBucketsViewsCreateCall { +func (c *FoldersLocationsListCall) Fields(s ...googleapi.Field) *FoldersLocationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *FoldersLocationsListCall) IfNoneMatch(entityTag string) *FoldersLocationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *FoldersLocationsBucketsViewsCreateCall) Context(ctx context.Context) *FoldersLocationsBucketsViewsCreateCall { +func (c *FoldersLocationsListCall) Context(ctx context.Context) *FoldersLocationsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *FoldersLocationsBucketsViewsCreateCall) Header() http.Header { +func (c *FoldersLocationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FoldersLocationsBucketsViewsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *FoldersLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logview) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/views") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}/locations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.folders.locations.buckets.views.create" call. -// Exactly one of *LogView or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *LogView.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *FoldersLocationsBucketsViewsCreateCall) Do(opts ...googleapi.CallOption) (*LogView, error) { +// Do executes the "logging.folders.locations.list" call. +// Exactly one of *ListLocationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *FoldersLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9739,7 +9701,7 @@ func (c *FoldersLocationsBucketsViewsCreateCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogView{ + ret := &ListLocationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9751,63 +9713,106 @@ func (c *FoldersLocationsBucketsViewsCreateCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "Creates a view over logs in a bucket. A bucket may contain a maximum of 50 views.", - // "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}/views", - // "httpMethod": "POST", - // "id": "logging.folders.locations.buckets.views.create", + // "description": "Lists information about the supported locations for this service.", + // "flatPath": "v2/folders/{foldersId}/locations", + // "httpMethod": "GET", + // "id": "logging.folders.locations.list", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The bucket in which to create the view \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-logging-project/locations/my-location/buckets/my-bucket\"", + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The resource that owns the locations collection, if applicable.", // "location": "path", - // "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+$", + // "pattern": "^folders/[^/]+$", // "required": true, // "type": "string" // }, - // "viewId": { - // "description": "Required. The id to use for this view.", + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", // "location": "query", // "type": "string" // } // }, - // "path": "v2/{+parent}/views", - // "request": { - // "$ref": "LogView" - // }, + // "path": "v2/{+name}/locations", // "response": { - // "$ref": "LogView" + // "$ref": "ListLocationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin" + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/logging.admin", + // "https://www.googleapis.com/auth/logging.read" // ] // } } -// method id "logging.folders.locations.buckets.views.delete": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *FoldersLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type FoldersLocationsBucketsViewsDeleteCall struct { +// method id "logging.folders.locations.buckets.create": + +type FoldersLocationsBucketsCreateCall struct { s *Service - name string + parent string + logbucket *LogBucket urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Delete: Deletes a view from a bucket. -func (r *FoldersLocationsBucketsViewsService) Delete(name string) *FoldersLocationsBucketsViewsDeleteCall { - c := &FoldersLocationsBucketsViewsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// Create: Creates a bucket that can be used to store log entries. Once +// a bucket has been created, the region cannot be changed. +func (r *FoldersLocationsBucketsService) Create(parent string, logbucket *LogBucket) *FoldersLocationsBucketsCreateCall { + c := &FoldersLocationsBucketsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.logbucket = logbucket + return c +} + +// BucketId sets the optional parameter "bucketId": Required. A +// client-assigned identifier such as "my-bucket". Identifiers are +// limited to 100 characters and can include only letters, digits, +// underscores, hyphens, and periods. +func (c *FoldersLocationsBucketsCreateCall) BucketId(bucketId string) *FoldersLocationsBucketsCreateCall { + c.urlParams_.Set("bucketId", bucketId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *FoldersLocationsBucketsViewsDeleteCall) Fields(s ...googleapi.Field) *FoldersLocationsBucketsViewsDeleteCall { +func (c *FoldersLocationsBucketsCreateCall) Fields(s ...googleapi.Field) *FoldersLocationsBucketsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -9815,51 +9820,56 @@ func (c *FoldersLocationsBucketsViewsDeleteCall) Fields(s ...googleapi.Field) *F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *FoldersLocationsBucketsViewsDeleteCall) Context(ctx context.Context) *FoldersLocationsBucketsViewsDeleteCall { +func (c *FoldersLocationsBucketsCreateCall) Context(ctx context.Context) *FoldersLocationsBucketsCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *FoldersLocationsBucketsViewsDeleteCall) Header() http.Header { +func (c *FoldersLocationsBucketsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FoldersLocationsBucketsViewsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *FoldersLocationsBucketsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logbucket) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/buckets") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.folders.locations.buckets.views.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *FoldersLocationsBucketsViewsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +// Do executes the "logging.folders.locations.buckets.create" call. +// Exactly one of *LogBucket or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *LogBucket.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *FoldersLocationsBucketsCreateCall) Do(opts ...googleapi.CallOption) (*LogBucket, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9878,7 +9888,7 @@ func (c *FoldersLocationsBucketsViewsDeleteCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Empty{ + ret := &LogBucket{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9890,18 +9900,159 @@ func (c *FoldersLocationsBucketsViewsDeleteCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "Deletes a view from a bucket.", - // "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}", - // "httpMethod": "DELETE", - // "id": "logging.folders.locations.buckets.views.delete", + // "description": "Creates a bucket that can be used to store log entries. Once a bucket has been created, the region cannot be changed.", + // "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets", + // "httpMethod": "POST", + // "id": "logging.folders.locations.buckets.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "bucketId": { + // "description": "Required. A client-assigned identifier such as \"my-bucket\". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource in which to create the bucket: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" Example: \"projects/my-logging-project/locations/global\"", + // "location": "path", + // "pattern": "^folders/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+parent}/buckets", + // "request": { + // "$ref": "LogBucket" + // }, + // "response": { + // "$ref": "LogBucket" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/logging.admin" + // ] + // } + +} + +// method id "logging.folders.locations.buckets.delete": + +type FoldersLocationsBucketsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a bucket. Moves the bucket to the DELETE_REQUESTED +// state. After 7 days, the bucket will be purged and all logs in the +// bucket will be permanently deleted. +func (r *FoldersLocationsBucketsService) Delete(name string) *FoldersLocationsBucketsDeleteCall { + c := &FoldersLocationsBucketsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *FoldersLocationsBucketsDeleteCall) Fields(s ...googleapi.Field) *FoldersLocationsBucketsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *FoldersLocationsBucketsDeleteCall) Context(ctx context.Context) *FoldersLocationsBucketsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *FoldersLocationsBucketsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersLocationsBucketsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "logging.folders.locations.buckets.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *FoldersLocationsBucketsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a bucket. Moves the bucket to the DELETE_REQUESTED state. After 7 days, the bucket will be purged and all logs in the bucket will be permanently deleted.", + // "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}", + // "httpMethod": "DELETE", + // "id": "logging.folders.locations.buckets.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The full resource name of the view to delete: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id\".", + // "description": "Required. The full resource name of the bucket to delete. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\".", // "location": "path", - // "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", + // "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+$", // "required": true, // "type": "string" // } @@ -9918,9 +10069,9 @@ func (c *FoldersLocationsBucketsViewsDeleteCall) Do(opts ...googleapi.CallOption } -// method id "logging.folders.locations.buckets.views.get": +// method id "logging.folders.locations.buckets.get": -type FoldersLocationsBucketsViewsGetCall struct { +type FoldersLocationsBucketsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -9929,9 +10080,9 @@ type FoldersLocationsBucketsViewsGetCall struct { header_ http.Header } -// Get: Gets a view. -func (r *FoldersLocationsBucketsViewsService) Get(name string) *FoldersLocationsBucketsViewsGetCall { - c := &FoldersLocationsBucketsViewsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Get: Gets a bucket. +func (r *FoldersLocationsBucketsService) Get(name string) *FoldersLocationsBucketsGetCall { + c := &FoldersLocationsBucketsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -9939,7 +10090,7 @@ func (r *FoldersLocationsBucketsViewsService) Get(name string) *FoldersLocations // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *FoldersLocationsBucketsViewsGetCall) Fields(s ...googleapi.Field) *FoldersLocationsBucketsViewsGetCall { +func (c *FoldersLocationsBucketsGetCall) Fields(s ...googleapi.Field) *FoldersLocationsBucketsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -9949,7 +10100,7 @@ func (c *FoldersLocationsBucketsViewsGetCall) Fields(s ...googleapi.Field) *Fold // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *FoldersLocationsBucketsViewsGetCall) IfNoneMatch(entityTag string) *FoldersLocationsBucketsViewsGetCall { +func (c *FoldersLocationsBucketsGetCall) IfNoneMatch(entityTag string) *FoldersLocationsBucketsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -9957,23 +10108,23 @@ func (c *FoldersLocationsBucketsViewsGetCall) IfNoneMatch(entityTag string) *Fol // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *FoldersLocationsBucketsViewsGetCall) Context(ctx context.Context) *FoldersLocationsBucketsViewsGetCall { +func (c *FoldersLocationsBucketsGetCall) Context(ctx context.Context) *FoldersLocationsBucketsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *FoldersLocationsBucketsViewsGetCall) Header() http.Header { +func (c *FoldersLocationsBucketsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FoldersLocationsBucketsViewsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *FoldersLocationsBucketsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9997,14 +10148,14 @@ func (c *FoldersLocationsBucketsViewsGetCall) doRequest(alt string) (*http.Respo return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.folders.locations.buckets.views.get" call. -// Exactly one of *LogView or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *LogView.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *FoldersLocationsBucketsViewsGetCall) Do(opts ...googleapi.CallOption) (*LogView, error) { +// Do executes the "logging.folders.locations.buckets.get" call. +// Exactly one of *LogBucket or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *LogBucket.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *FoldersLocationsBucketsGetCall) Do(opts ...googleapi.CallOption) (*LogBucket, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10023,7 +10174,7 @@ func (c *FoldersLocationsBucketsViewsGetCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogView{ + ret := &LogBucket{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10035,25 +10186,25 @@ func (c *FoldersLocationsBucketsViewsGetCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Gets a view.", - // "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}", + // "description": "Gets a bucket.", + // "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}", // "httpMethod": "GET", - // "id": "logging.folders.locations.buckets.views.get", + // "id": "logging.folders.locations.buckets.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name of the policy: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id\".", + // "description": "Required. The resource name of the bucket: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\".", // "location": "path", - // "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", + // "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v2/{+name}", // "response": { - // "$ref": "LogView" + // "$ref": "LogBucket" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -10065,9 +10216,9 @@ func (c *FoldersLocationsBucketsViewsGetCall) Do(opts ...googleapi.CallOption) ( } -// method id "logging.folders.locations.buckets.views.list": +// method id "logging.folders.locations.buckets.list": -type FoldersLocationsBucketsViewsListCall struct { +type FoldersLocationsBucketsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -10076,9 +10227,9 @@ type FoldersLocationsBucketsViewsListCall struct { header_ http.Header } -// List: Lists views on a bucket.. -func (r *FoldersLocationsBucketsViewsService) List(parent string) *FoldersLocationsBucketsViewsListCall { - c := &FoldersLocationsBucketsViewsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// List: Lists buckets. +func (r *FoldersLocationsBucketsService) List(parent string) *FoldersLocationsBucketsListCall { + c := &FoldersLocationsBucketsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } @@ -10087,7 +10238,7 @@ func (r *FoldersLocationsBucketsViewsService) List(parent string) *FoldersLocati // of results to return from this request. Non-positive values are // ignored. The presence of nextPageToken in the response indicates that // more results might be available. -func (c *FoldersLocationsBucketsViewsListCall) PageSize(pageSize int64) *FoldersLocationsBucketsViewsListCall { +func (c *FoldersLocationsBucketsListCall) PageSize(pageSize int64) *FoldersLocationsBucketsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } @@ -10097,7 +10248,7 @@ func (c *FoldersLocationsBucketsViewsListCall) PageSize(pageSize int64) *Folders // method. pageToken must be the value of nextPageToken from the // previous response. The values of other method parameters should be // identical to those in the previous call. -func (c *FoldersLocationsBucketsViewsListCall) PageToken(pageToken string) *FoldersLocationsBucketsViewsListCall { +func (c *FoldersLocationsBucketsListCall) PageToken(pageToken string) *FoldersLocationsBucketsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -10105,7 +10256,7 @@ func (c *FoldersLocationsBucketsViewsListCall) PageToken(pageToken string) *Fold // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *FoldersLocationsBucketsViewsListCall) Fields(s ...googleapi.Field) *FoldersLocationsBucketsViewsListCall { +func (c *FoldersLocationsBucketsListCall) Fields(s ...googleapi.Field) *FoldersLocationsBucketsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -10115,7 +10266,7 @@ func (c *FoldersLocationsBucketsViewsListCall) Fields(s ...googleapi.Field) *Fol // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *FoldersLocationsBucketsViewsListCall) IfNoneMatch(entityTag string) *FoldersLocationsBucketsViewsListCall { +func (c *FoldersLocationsBucketsListCall) IfNoneMatch(entityTag string) *FoldersLocationsBucketsListCall { c.ifNoneMatch_ = entityTag return c } @@ -10123,23 +10274,23 @@ func (c *FoldersLocationsBucketsViewsListCall) IfNoneMatch(entityTag string) *Fo // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *FoldersLocationsBucketsViewsListCall) Context(ctx context.Context) *FoldersLocationsBucketsViewsListCall { +func (c *FoldersLocationsBucketsListCall) Context(ctx context.Context) *FoldersLocationsBucketsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *FoldersLocationsBucketsViewsListCall) Header() http.Header { +func (c *FoldersLocationsBucketsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FoldersLocationsBucketsViewsListCall) doRequest(alt string) (*http.Response, error) { +func (c *FoldersLocationsBucketsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10150,7 +10301,7 @@ func (c *FoldersLocationsBucketsViewsListCall) doRequest(alt string) (*http.Resp var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/views") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/buckets") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -10163,14 +10314,14 @@ func (c *FoldersLocationsBucketsViewsListCall) doRequest(alt string) (*http.Resp return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.folders.locations.buckets.views.list" call. -// Exactly one of *ListViewsResponse or error will be non-nil. Any +// Do executes the "logging.folders.locations.buckets.list" call. +// Exactly one of *ListBucketsResponse or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either -// *ListViewsResponse.ServerResponse.Header or (if a response was +// *ListBucketsResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *FoldersLocationsBucketsViewsListCall) Do(opts ...googleapi.CallOption) (*ListViewsResponse, error) { +func (c *FoldersLocationsBucketsListCall) Do(opts ...googleapi.CallOption) (*ListBucketsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10189,7 +10340,7 @@ func (c *FoldersLocationsBucketsViewsListCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListViewsResponse{ + ret := &ListBucketsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10201,10 +10352,10 @@ func (c *FoldersLocationsBucketsViewsListCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Lists views on a bucket..", - // "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}/views", + // "description": "Lists buckets.", + // "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets", // "httpMethod": "GET", - // "id": "logging.folders.locations.buckets.views.list", + // "id": "logging.folders.locations.buckets.list", // "parameterOrder": [ // "parent" // ], @@ -10221,16 +10372,16 @@ func (c *FoldersLocationsBucketsViewsListCall) Do(opts ...googleapi.CallOption) // "type": "string" // }, // "parent": { - // "description": "Required. The bucket whose views are to be listed: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" ", + // "description": "Required. The parent resource whose buckets are to be listed: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]\" Note: The locations portion of the resource must be specified, but supplying the character - in place of LOCATION_ID will return all buckets.", // "location": "path", - // "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+$", + // "pattern": "^folders/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+parent}/views", + // "path": "v2/{+parent}/buckets", // "response": { - // "$ref": "ListViewsResponse" + // "$ref": "ListBucketsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -10245,7 +10396,7 @@ func (c *FoldersLocationsBucketsViewsListCall) Do(opts ...googleapi.CallOption) // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *FoldersLocationsBucketsViewsListCall) Pages(ctx context.Context, f func(*ListViewsResponse) error) error { +func (c *FoldersLocationsBucketsListCall) Pages(ctx context.Context, f func(*ListBucketsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -10263,34 +10414,38 @@ func (c *FoldersLocationsBucketsViewsListCall) Pages(ctx context.Context, f func } } -// method id "logging.folders.locations.buckets.views.patch": +// method id "logging.folders.locations.buckets.patch": -type FoldersLocationsBucketsViewsPatchCall struct { +type FoldersLocationsBucketsPatchCall struct { s *Service name string - logview *LogView + logbucket *LogBucket urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Patch: Updates a view. This method replaces the following fields in -// the existing view with values from the new view: filter. -func (r *FoldersLocationsBucketsViewsService) Patch(name string, logview *LogView) *FoldersLocationsBucketsViewsPatchCall { - c := &FoldersLocationsBucketsViewsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.logview = logview +// Patch: Updates a bucket. This method replaces the following fields in +// the existing bucket with values from the new bucket: +// retention_periodIf the retention period is decreased and the bucket +// is locked, FAILED_PRECONDITION will be returned.If the bucket has a +// LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be +// returned.A buckets region may not be modified after it is created. +func (r *FoldersLocationsBucketsService) Patch(name string, logbucket *LogBucket) *FoldersLocationsBucketsPatchCall { + c := &FoldersLocationsBucketsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.logbucket = logbucket return c } -// UpdateMask sets the optional parameter "updateMask": Field mask that -// specifies the fields in view that need an update. A field will be -// overwritten if, and only if, it is in the update mask. name and -// output only fields cannot be updated.For a detailed FieldMask -// definition, see +// UpdateMask sets the optional parameter "updateMask": Required. Field +// mask that specifies the fields in bucket that need an update. A +// bucket field will be overwritten if, and only if, it is in the update +// mask. name and output only fields cannot be updated.For a detailed +// FieldMask definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: -// updateMask=filter. -func (c *FoldersLocationsBucketsViewsPatchCall) UpdateMask(updateMask string) *FoldersLocationsBucketsViewsPatchCall { +// updateMask=retention_days. +func (c *FoldersLocationsBucketsPatchCall) UpdateMask(updateMask string) *FoldersLocationsBucketsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } @@ -10298,7 +10453,7 @@ func (c *FoldersLocationsBucketsViewsPatchCall) UpdateMask(updateMask string) *F // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *FoldersLocationsBucketsViewsPatchCall) Fields(s ...googleapi.Field) *FoldersLocationsBucketsViewsPatchCall { +func (c *FoldersLocationsBucketsPatchCall) Fields(s ...googleapi.Field) *FoldersLocationsBucketsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -10306,29 +10461,29 @@ func (c *FoldersLocationsBucketsViewsPatchCall) Fields(s ...googleapi.Field) *Fo // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *FoldersLocationsBucketsViewsPatchCall) Context(ctx context.Context) *FoldersLocationsBucketsViewsPatchCall { +func (c *FoldersLocationsBucketsPatchCall) Context(ctx context.Context) *FoldersLocationsBucketsPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *FoldersLocationsBucketsViewsPatchCall) Header() http.Header { +func (c *FoldersLocationsBucketsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FoldersLocationsBucketsViewsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *FoldersLocationsBucketsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logview) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logbucket) if err != nil { return nil, err } @@ -10348,14 +10503,14 @@ func (c *FoldersLocationsBucketsViewsPatchCall) doRequest(alt string) (*http.Res return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.folders.locations.buckets.views.patch" call. -// Exactly one of *LogView or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *LogView.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *FoldersLocationsBucketsViewsPatchCall) Do(opts ...googleapi.CallOption) (*LogView, error) { +// Do executes the "logging.folders.locations.buckets.patch" call. +// Exactly one of *LogBucket or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *LogBucket.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *FoldersLocationsBucketsPatchCall) Do(opts ...googleapi.CallOption) (*LogBucket, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10374,7 +10529,7 @@ func (c *FoldersLocationsBucketsViewsPatchCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogView{ + ret := &LogBucket{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10386,23 +10541,23 @@ func (c *FoldersLocationsBucketsViewsPatchCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Updates a view. This method replaces the following fields in the existing view with values from the new view: filter.", - // "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}", + // "description": "Updates a bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be returned.A buckets region may not be modified after it is created.", + // "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}", // "httpMethod": "PATCH", - // "id": "logging.folders.locations.buckets.views.patch", + // "id": "logging.folders.locations.buckets.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The full resource name of the view to update \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id\".", + // "description": "Required. The full resource name of the bucket to update. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\". Also requires permission \"resourcemanager.projects.updateLiens\" to set the locked property", // "location": "path", - // "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", + // "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+$", // "required": true, // "type": "string" // }, // "updateMask": { - // "description": "Optional. Field mask that specifies the fields in view that need an update. A field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter.", + // "description": "Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=retention_days.", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -10410,10 +10565,10 @@ func (c *FoldersLocationsBucketsViewsPatchCall) Do(opts ...googleapi.CallOption) // }, // "path": "v2/{+name}", // "request": { - // "$ref": "LogView" + // "$ref": "LogBucket" // }, // "response": { - // "$ref": "LogView" + // "$ref": "LogBucket" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -10423,30 +10578,30 @@ func (c *FoldersLocationsBucketsViewsPatchCall) Do(opts ...googleapi.CallOption) } -// method id "logging.folders.logs.delete": +// method id "logging.folders.locations.buckets.undelete": -type FoldersLogsDeleteCall struct { - s *Service - logName string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type FoldersLocationsBucketsUndeleteCall struct { + s *Service + name string + undeletebucketrequest *UndeleteBucketRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes all the log entries in a log. The log reappears if it -// receives new entries. Log entries written shortly before the delete -// operation might not be deleted. Entries received after the delete -// operation with a timestamp before the operation will be deleted. -func (r *FoldersLogsService) Delete(logName string) *FoldersLogsDeleteCall { - c := &FoldersLogsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.logName = logName +// Undelete: Undeletes a bucket. A bucket that has been deleted may be +// undeleted within the grace period of 7 days. +func (r *FoldersLocationsBucketsService) Undelete(name string, undeletebucketrequest *UndeleteBucketRequest) *FoldersLocationsBucketsUndeleteCall { + c := &FoldersLocationsBucketsUndeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.undeletebucketrequest = undeletebucketrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *FoldersLogsDeleteCall) Fields(s ...googleapi.Field) *FoldersLogsDeleteCall { +func (c *FoldersLocationsBucketsUndeleteCall) Fields(s ...googleapi.Field) *FoldersLocationsBucketsUndeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -10454,51 +10609,56 @@ func (c *FoldersLogsDeleteCall) Fields(s ...googleapi.Field) *FoldersLogsDeleteC // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *FoldersLogsDeleteCall) Context(ctx context.Context) *FoldersLogsDeleteCall { +func (c *FoldersLocationsBucketsUndeleteCall) Context(ctx context.Context) *FoldersLocationsBucketsUndeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *FoldersLogsDeleteCall) Header() http.Header { +func (c *FoldersLocationsBucketsUndeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FoldersLogsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *FoldersLocationsBucketsUndeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.undeletebucketrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+logName}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:undelete") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "logName": c.logName, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.folders.logs.delete" call. +// Do executes the "logging.folders.locations.buckets.undelete" call. // Exactly one of *Empty or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either // *Empty.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *FoldersLogsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +func (c *FoldersLocationsBucketsUndeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10529,23 +10689,26 @@ func (c *FoldersLogsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) } return ret, nil // { - // "description": "Deletes all the log entries in a log. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted. Entries received after the delete operation with a timestamp before the operation will be deleted.", - // "flatPath": "v2/folders/{foldersId}/logs/{logsId}", - // "httpMethod": "DELETE", - // "id": "logging.folders.logs.delete", + // "description": "Undeletes a bucket. A bucket that has been deleted may be undeleted within the grace period of 7 days.", + // "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}:undelete", + // "httpMethod": "POST", + // "id": "logging.folders.locations.buckets.undelete", // "parameterOrder": [ - // "logName" + // "name" // ], // "parameters": { - // "logName": { - // "description": "Required. The resource name of the log to delete: \"projects/[PROJECT_ID]/logs/[LOG_ID]\" \"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\" \"folders/[FOLDER_ID]/logs/[LOG_ID]\" [LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.", + // "name": { + // "description": "Required. The full resource name of the bucket to undelete. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\".", // "location": "path", - // "pattern": "^folders/[^/]+/logs/[^/]+$", + // "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+logName}", + // "path": "v2/{+name}:undelete", + // "request": { + // "$ref": "UndeleteBucketRequest" + // }, // "response": { // "$ref": "Empty" // }, @@ -10557,95 +10720,76 @@ func (c *FoldersLogsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) } -// method id "logging.folders.logs.list": +// method id "logging.folders.locations.buckets.views.create": -type FoldersLogsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type FoldersLocationsBucketsViewsCreateCall struct { + s *Service + parent string + logview *LogView + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists the logs in projects, organizations, folders, or billing -// accounts. Only logs that have entries are listed. -func (r *FoldersLogsService) List(parent string) *FoldersLogsListCall { - c := &FoldersLogsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Create: Creates a view over logs in a bucket. A bucket may contain a +// maximum of 50 views. +func (r *FoldersLocationsBucketsViewsService) Create(parent string, logview *LogView) *FoldersLocationsBucketsViewsCreateCall { + c := &FoldersLocationsBucketsViewsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent + c.logview = logview return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return from this request. Non-positive values are -// ignored. The presence of nextPageToken in the response indicates that -// more results might be available. -func (c *FoldersLogsListCall) PageSize(pageSize int64) *FoldersLogsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": If present, then -// retrieve the next batch of results from the preceding call to this -// method. pageToken must be the value of nextPageToken from the -// previous response. The values of other method parameters should be -// identical to those in the previous call. -func (c *FoldersLogsListCall) PageToken(pageToken string) *FoldersLogsListCall { - c.urlParams_.Set("pageToken", pageToken) +// ViewId sets the optional parameter "viewId": Required. The id to use +// for this view. +func (c *FoldersLocationsBucketsViewsCreateCall) ViewId(viewId string) *FoldersLocationsBucketsViewsCreateCall { + c.urlParams_.Set("viewId", viewId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *FoldersLogsListCall) Fields(s ...googleapi.Field) *FoldersLogsListCall { +func (c *FoldersLocationsBucketsViewsCreateCall) Fields(s ...googleapi.Field) *FoldersLocationsBucketsViewsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *FoldersLogsListCall) IfNoneMatch(entityTag string) *FoldersLogsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *FoldersLogsListCall) Context(ctx context.Context) *FoldersLogsListCall { +func (c *FoldersLocationsBucketsViewsCreateCall) Context(ctx context.Context) *FoldersLocationsBucketsViewsCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *FoldersLogsListCall) Header() http.Header { +func (c *FoldersLocationsBucketsViewsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FoldersLogsListCall) doRequest(alt string) (*http.Response, error) { +func (c *FoldersLocationsBucketsViewsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logview) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/logs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/views") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -10656,14 +10800,14 @@ func (c *FoldersLogsListCall) doRequest(alt string) (*http.Response, error) { return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.folders.logs.list" call. -// Exactly one of *ListLogsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListLogsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *FoldersLogsListCall) Do(opts ...googleapi.CallOption) (*ListLogsResponse, error) { +// Do executes the "logging.folders.locations.buckets.views.create" call. +// Exactly one of *LogView or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *LogView.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *FoldersLocationsBucketsViewsCreateCall) Do(opts ...googleapi.CallOption) (*LogView, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10682,7 +10826,7 @@ func (c *FoldersLogsListCall) Do(opts ...googleapi.CallOption) (*ListLogsRespons if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListLogsResponse{ + ret := &LogView{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10694,111 +10838,63 @@ func (c *FoldersLogsListCall) Do(opts ...googleapi.CallOption) (*ListLogsRespons } return ret, nil // { - // "description": "Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.", - // "flatPath": "v2/folders/{foldersId}/logs", - // "httpMethod": "GET", - // "id": "logging.folders.logs.list", + // "description": "Creates a view over logs in a bucket. A bucket may contain a maximum of 50 views.", + // "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}/views", + // "httpMethod": "POST", + // "id": "logging.folders.locations.buckets.views.create", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "pageSize": { - // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", - // "location": "query", - // "type": "string" - // }, // "parent": { - // "description": "Required. The resource name that owns the logs: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ", + // "description": "Required. The bucket in which to create the view \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-logging-project/locations/my-location/buckets/my-bucket\"", // "location": "path", - // "pattern": "^folders/[^/]+$", + // "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+$", // "required": true, // "type": "string" - // } + // }, + // "viewId": { + // "description": "Required. The id to use for this view.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v2/{+parent}/views", + // "request": { + // "$ref": "LogView" // }, - // "path": "v2/{+parent}/logs", // "response": { - // "$ref": "ListLogsResponse" + // "$ref": "LogView" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/logging.admin", - // "https://www.googleapis.com/auth/logging.read" + // "https://www.googleapis.com/auth/logging.admin" // ] // } } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *FoldersLogsListCall) Pages(ctx context.Context, f func(*ListLogsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -// method id "logging.folders.sinks.create": +// method id "logging.folders.locations.buckets.views.delete": -type FoldersSinksCreateCall struct { +type FoldersLocationsBucketsViewsDeleteCall struct { s *Service - parent string - logsink *LogSink + name string urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Create: Creates a sink that exports specified log entries to a -// destination. The export of newly-ingested log entries begins -// immediately, unless the sink's writer_identity is not permitted to -// write to the destination. A sink can export log entries only from the -// resource owning the sink. -func (r *FoldersSinksService) Create(parent string, logsink *LogSink) *FoldersSinksCreateCall { - c := &FoldersSinksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.logsink = logsink - return c -} - -// UniqueWriterIdentity sets the optional parameter -// "uniqueWriterIdentity": Determines the kind of IAM identity returned -// as writer_identity in the new sink. If this value is omitted or set -// to false, and if the sink's parent is a project, then the value -// returned as writer_identity is the same group or service account used -// by Logging before the addition of writer identities to this API. The -// sink's destination must be in the same project as the sink itself.If -// this field is set to true, or if the sink is owned by a non-project -// resource such as an organization, then the value of writer_identity -// will be a unique service account used only for exports from the new -// sink. For more information, see writer_identity in LogSink. -func (c *FoldersSinksCreateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *FoldersSinksCreateCall { - c.urlParams_.Set("uniqueWriterIdentity", fmt.Sprint(uniqueWriterIdentity)) +// Delete: Deletes a view from a bucket. +func (r *FoldersLocationsBucketsViewsService) Delete(name string) *FoldersLocationsBucketsViewsDeleteCall { + c := &FoldersLocationsBucketsViewsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *FoldersSinksCreateCall) Fields(s ...googleapi.Field) *FoldersSinksCreateCall { +func (c *FoldersLocationsBucketsViewsDeleteCall) Fields(s ...googleapi.Field) *FoldersLocationsBucketsViewsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -10806,56 +10902,51 @@ func (c *FoldersSinksCreateCall) Fields(s ...googleapi.Field) *FoldersSinksCreat // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *FoldersSinksCreateCall) Context(ctx context.Context) *FoldersSinksCreateCall { +func (c *FoldersLocationsBucketsViewsDeleteCall) Context(ctx context.Context) *FoldersLocationsBucketsViewsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *FoldersSinksCreateCall) Header() http.Header { +func (c *FoldersLocationsBucketsViewsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FoldersSinksCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *FoldersLocationsBucketsViewsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logsink) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/sinks") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.folders.sinks.create" call. -// Exactly one of *LogSink or error will be non-nil. Any non-2xx status +// Do executes the "logging.folders.locations.buckets.views.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either -// *LogSink.ServerResponse.Header or (if a response was returned at all) +// *Empty.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *FoldersSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogSink, error) { +func (c *FoldersLocationsBucketsViewsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10874,7 +10965,7 @@ func (c *FoldersSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogSink, err if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogSink{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10886,33 +10977,25 @@ func (c *FoldersSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogSink, err } return ret, nil // { - // "description": "Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", - // "flatPath": "v2/folders/{foldersId}/sinks", - // "httpMethod": "POST", - // "id": "logging.folders.sinks.create", + // "description": "Deletes a view from a bucket.", + // "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}", + // "httpMethod": "DELETE", + // "id": "logging.folders.locations.buckets.views.delete", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The resource in which to create the sink: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" Examples: \"projects/my-logging-project\", \"organizations/123456789\".", + // "name": { + // "description": "Required. The full resource name of the view to delete: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id\".", // "location": "path", - // "pattern": "^folders/[^/]+$", + // "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", // "required": true, // "type": "string" - // }, - // "uniqueWriterIdentity": { - // "description": "Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value returned as writer_identity is the same group or service account used by Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink.", - // "location": "query", - // "type": "boolean" // } // }, - // "path": "v2/{+parent}/sinks", - // "request": { - // "$ref": "LogSink" - // }, + // "path": "v2/{+name}", // "response": { - // "$ref": "LogSink" + // "$ref": "Empty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -10922,80 +11005,93 @@ func (c *FoldersSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogSink, err } -// method id "logging.folders.sinks.delete": +// method id "logging.folders.locations.buckets.views.get": -type FoldersSinksDeleteCall struct { - s *Service - sinkNameid string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type FoldersLocationsBucketsViewsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a sink. If the sink has a unique writer_identity, -// then that service account is also deleted. -func (r *FoldersSinksService) Delete(sinkNameid string) *FoldersSinksDeleteCall { - c := &FoldersSinksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.sinkNameid = sinkNameid +// Get: Gets a view. +func (r *FoldersLocationsBucketsViewsService) Get(name string) *FoldersLocationsBucketsViewsGetCall { + c := &FoldersLocationsBucketsViewsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *FoldersSinksDeleteCall) Fields(s ...googleapi.Field) *FoldersSinksDeleteCall { +func (c *FoldersLocationsBucketsViewsGetCall) Fields(s ...googleapi.Field) *FoldersLocationsBucketsViewsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *FoldersLocationsBucketsViewsGetCall) IfNoneMatch(entityTag string) *FoldersLocationsBucketsViewsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *FoldersSinksDeleteCall) Context(ctx context.Context) *FoldersSinksDeleteCall { +func (c *FoldersLocationsBucketsViewsGetCall) Context(ctx context.Context) *FoldersLocationsBucketsViewsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *FoldersSinksDeleteCall) Header() http.Header { +func (c *FoldersLocationsBucketsViewsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FoldersSinksDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *FoldersLocationsBucketsViewsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+sinkName}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "sinkName": c.sinkNameid, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.folders.sinks.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// Do executes the "logging.folders.locations.buckets.views.get" call. +// Exactly one of *LogView or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) +// *LogView.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *FoldersSinksDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +func (c *FoldersLocationsBucketsViewsGetCall) Do(opts ...googleapi.CallOption) (*LogView, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -11014,7 +11110,7 @@ func (c *FoldersSinksDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Empty{ + ret := &LogView{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -11026,56 +11122,77 @@ func (c *FoldersSinksDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error } return ret, nil // { - // "description": "Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.", - // "flatPath": "v2/folders/{foldersId}/sinks/{sinksId}", - // "httpMethod": "DELETE", - // "id": "logging.folders.sinks.delete", + // "description": "Gets a view.", + // "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}", + // "httpMethod": "GET", + // "id": "logging.folders.locations.buckets.views.get", // "parameterOrder": [ - // "sinkName" + // "name" // ], // "parameters": { - // "sinkName": { - // "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" Example: \"projects/my-project-id/sinks/my-sink-id\".", + // "name": { + // "description": "Required. The resource name of the policy: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id\".", // "location": "path", - // "pattern": "^folders/[^/]+/sinks/[^/]+$", + // "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+sinkName}", + // "path": "v2/{+name}", // "response": { - // "$ref": "Empty" + // "$ref": "LogView" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin" + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/logging.admin", + // "https://www.googleapis.com/auth/logging.read" // ] // } } -// method id "logging.folders.sinks.get": +// method id "logging.folders.locations.buckets.views.list": -type FoldersSinksGetCall struct { +type FoldersLocationsBucketsViewsListCall struct { s *Service - sinkName string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Get: Gets a sink. -func (r *FoldersSinksService) Get(sinkName string) *FoldersSinksGetCall { - c := &FoldersSinksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.sinkName = sinkName +// List: Lists views on a bucket. +func (r *FoldersLocationsBucketsViewsService) List(parent string) *FoldersLocationsBucketsViewsListCall { + c := &FoldersLocationsBucketsViewsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return from this request. Non-positive values are +// ignored. The presence of nextPageToken in the response indicates that +// more results might be available. +func (c *FoldersLocationsBucketsViewsListCall) PageSize(pageSize int64) *FoldersLocationsBucketsViewsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": If present, then +// retrieve the next batch of results from the preceding call to this +// method. pageToken must be the value of nextPageToken from the +// previous response. The values of other method parameters should be +// identical to those in the previous call. +func (c *FoldersLocationsBucketsViewsListCall) PageToken(pageToken string) *FoldersLocationsBucketsViewsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *FoldersSinksGetCall) Fields(s ...googleapi.Field) *FoldersSinksGetCall { +func (c *FoldersLocationsBucketsViewsListCall) Fields(s ...googleapi.Field) *FoldersLocationsBucketsViewsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -11085,7 +11202,7 @@ func (c *FoldersSinksGetCall) Fields(s ...googleapi.Field) *FoldersSinksGetCall // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *FoldersSinksGetCall) IfNoneMatch(entityTag string) *FoldersSinksGetCall { +func (c *FoldersLocationsBucketsViewsListCall) IfNoneMatch(entityTag string) *FoldersLocationsBucketsViewsListCall { c.ifNoneMatch_ = entityTag return c } @@ -11093,23 +11210,23 @@ func (c *FoldersSinksGetCall) IfNoneMatch(entityTag string) *FoldersSinksGetCall // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *FoldersSinksGetCall) Context(ctx context.Context) *FoldersSinksGetCall { +func (c *FoldersLocationsBucketsViewsListCall) Context(ctx context.Context) *FoldersLocationsBucketsViewsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *FoldersSinksGetCall) Header() http.Header { +func (c *FoldersLocationsBucketsViewsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FoldersSinksGetCall) doRequest(alt string) (*http.Response, error) { +func (c *FoldersLocationsBucketsViewsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11120,7 +11237,7 @@ func (c *FoldersSinksGetCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+sinkName}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/views") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -11128,19 +11245,204 @@ func (c *FoldersSinksGetCall) doRequest(alt string) (*http.Response, error) { } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "sinkName": c.sinkName, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.folders.sinks.get" call. -// Exactly one of *LogSink or error will be non-nil. Any non-2xx status +// Do executes the "logging.folders.locations.buckets.views.list" call. +// Exactly one of *ListViewsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListViewsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *FoldersLocationsBucketsViewsListCall) Do(opts ...googleapi.CallOption) (*ListViewsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListViewsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists views on a bucket.", + // "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}/views", + // "httpMethod": "GET", + // "id": "logging.folders.locations.buckets.views.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The bucket whose views are to be listed: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" ", + // "location": "path", + // "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+parent}/views", + // "response": { + // "$ref": "ListViewsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/logging.admin", + // "https://www.googleapis.com/auth/logging.read" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *FoldersLocationsBucketsViewsListCall) Pages(ctx context.Context, f func(*ListViewsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "logging.folders.locations.buckets.views.patch": + +type FoldersLocationsBucketsViewsPatchCall struct { + s *Service + name string + logview *LogView + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a view. This method replaces the following fields in +// the existing view with values from the new view: filter. +func (r *FoldersLocationsBucketsViewsService) Patch(name string, logview *LogView) *FoldersLocationsBucketsViewsPatchCall { + c := &FoldersLocationsBucketsViewsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.logview = logview + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask that +// specifies the fields in view that need an update. A field will be +// overwritten if, and only if, it is in the update mask. name and +// output only fields cannot be updated.For a detailed FieldMask +// definition, see +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: +// updateMask=filter. +func (c *FoldersLocationsBucketsViewsPatchCall) UpdateMask(updateMask string) *FoldersLocationsBucketsViewsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *FoldersLocationsBucketsViewsPatchCall) Fields(s ...googleapi.Field) *FoldersLocationsBucketsViewsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *FoldersLocationsBucketsViewsPatchCall) Context(ctx context.Context) *FoldersLocationsBucketsViewsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *FoldersLocationsBucketsViewsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersLocationsBucketsViewsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logview) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "logging.folders.locations.buckets.views.patch" call. +// Exactly one of *LogView or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either -// *LogSink.ServerResponse.Header or (if a response was returned at all) +// *LogView.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *FoldersSinksGetCall) Do(opts ...googleapi.CallOption) (*LogSink, error) { +func (c *FoldersLocationsBucketsViewsPatchCall) Do(opts ...googleapi.CallOption) (*LogView, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -11159,7 +11461,7 @@ func (c *FoldersSinksGetCall) Do(opts ...googleapi.CallOption) (*LogSink, error) if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogSink{ + ret := &LogView{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -11171,25 +11473,2190 @@ func (c *FoldersSinksGetCall) Do(opts ...googleapi.CallOption) (*LogSink, error) } return ret, nil // { - // "description": "Gets a sink.", - // "flatPath": "v2/folders/{foldersId}/sinks/{sinksId}", + // "description": "Updates a view. This method replaces the following fields in the existing view with values from the new view: filter.", + // "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}", + // "httpMethod": "PATCH", + // "id": "logging.folders.locations.buckets.views.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The full resource name of the view to update \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id\".", + // "location": "path", + // "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Optional. Field mask that specifies the fields in view that need an update. A field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "request": { + // "$ref": "LogView" + // }, + // "response": { + // "$ref": "LogView" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/logging.admin" + // ] + // } + +} + +// method id "logging.folders.logs.delete": + +type FoldersLogsDeleteCall struct { + s *Service + logName string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes all the log entries in a log. The log reappears if it +// receives new entries. Log entries written shortly before the delete +// operation might not be deleted. Entries received after the delete +// operation with a timestamp before the operation will be deleted. +func (r *FoldersLogsService) Delete(logName string) *FoldersLogsDeleteCall { + c := &FoldersLogsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.logName = logName + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *FoldersLogsDeleteCall) Fields(s ...googleapi.Field) *FoldersLogsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *FoldersLogsDeleteCall) Context(ctx context.Context) *FoldersLogsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *FoldersLogsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersLogsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+logName}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "logName": c.logName, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "logging.folders.logs.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *FoldersLogsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes all the log entries in a log. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted. Entries received after the delete operation with a timestamp before the operation will be deleted.", + // "flatPath": "v2/folders/{foldersId}/logs/{logsId}", + // "httpMethod": "DELETE", + // "id": "logging.folders.logs.delete", + // "parameterOrder": [ + // "logName" + // ], + // "parameters": { + // "logName": { + // "description": "Required. The resource name of the log to delete: \"projects/[PROJECT_ID]/logs/[LOG_ID]\" \"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\" \"folders/[FOLDER_ID]/logs/[LOG_ID]\" [LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.", + // "location": "path", + // "pattern": "^folders/[^/]+/logs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+logName}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/logging.admin" + // ] + // } + +} + +// method id "logging.folders.logs.list": + +type FoldersLogsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the logs in projects, organizations, folders, or billing +// accounts. Only logs that have entries are listed. +func (r *FoldersLogsService) List(parent string) *FoldersLogsListCall { + c := &FoldersLogsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return from this request. Non-positive values are +// ignored. The presence of nextPageToken in the response indicates that +// more results might be available. +func (c *FoldersLogsListCall) PageSize(pageSize int64) *FoldersLogsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": If present, then +// retrieve the next batch of results from the preceding call to this +// method. pageToken must be the value of nextPageToken from the +// previous response. The values of other method parameters should be +// identical to those in the previous call. +func (c *FoldersLogsListCall) PageToken(pageToken string) *FoldersLogsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ResourceNames sets the optional parameter "resourceNames": The +// resource name that owns the logs: +// projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW +// _ID +// organization/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/v +// iews/VIEW_ID +// billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKE +// T_ID/views/VIEW_ID +// folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_I +// DTo support legacy queries, it could also be: "projects/PROJECT_ID" +// "organizations/ORGANIZATION_ID" "billingAccounts/BILLING_ACCOUNT_ID" +// "folders/FOLDER_ID" +func (c *FoldersLogsListCall) ResourceNames(resourceNames ...string) *FoldersLogsListCall { + c.urlParams_.SetMulti("resourceNames", append([]string{}, resourceNames...)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *FoldersLogsListCall) Fields(s ...googleapi.Field) *FoldersLogsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *FoldersLogsListCall) IfNoneMatch(entityTag string) *FoldersLogsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *FoldersLogsListCall) Context(ctx context.Context) *FoldersLogsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *FoldersLogsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersLogsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/logs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "logging.folders.logs.list" call. +// Exactly one of *ListLogsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListLogsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *FoldersLogsListCall) Do(opts ...googleapi.CallOption) (*ListLogsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListLogsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.", + // "flatPath": "v2/folders/{foldersId}/logs", + // "httpMethod": "GET", + // "id": "logging.folders.logs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name that owns the logs: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ", + // "location": "path", + // "pattern": "^folders/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "resourceNames": { + // "description": "Optional. The resource name that owns the logs: projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID organization/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_IDTo support legacy queries, it could also be: \"projects/PROJECT_ID\" \"organizations/ORGANIZATION_ID\" \"billingAccounts/BILLING_ACCOUNT_ID\" \"folders/FOLDER_ID\"", + // "location": "query", + // "repeated": true, + // "type": "string" + // } + // }, + // "path": "v2/{+parent}/logs", + // "response": { + // "$ref": "ListLogsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/logging.admin", + // "https://www.googleapis.com/auth/logging.read" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *FoldersLogsListCall) Pages(ctx context.Context, f func(*ListLogsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "logging.folders.sinks.create": + +type FoldersSinksCreateCall struct { + s *Service + parent string + logsink *LogSink + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a sink that exports specified log entries to a +// destination. The export of newly-ingested log entries begins +// immediately, unless the sink's writer_identity is not permitted to +// write to the destination. A sink can export log entries only from the +// resource owning the sink. +func (r *FoldersSinksService) Create(parent string, logsink *LogSink) *FoldersSinksCreateCall { + c := &FoldersSinksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.logsink = logsink + return c +} + +// UniqueWriterIdentity sets the optional parameter +// "uniqueWriterIdentity": Determines the kind of IAM identity returned +// as writer_identity in the new sink. If this value is omitted or set +// to false, and if the sink's parent is a project, then the value +// returned as writer_identity is the same group or service account used +// by Logging before the addition of writer identities to this API. The +// sink's destination must be in the same project as the sink itself.If +// this field is set to true, or if the sink is owned by a non-project +// resource such as an organization, then the value of writer_identity +// will be a unique service account used only for exports from the new +// sink. For more information, see writer_identity in LogSink. +func (c *FoldersSinksCreateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *FoldersSinksCreateCall { + c.urlParams_.Set("uniqueWriterIdentity", fmt.Sprint(uniqueWriterIdentity)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *FoldersSinksCreateCall) Fields(s ...googleapi.Field) *FoldersSinksCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *FoldersSinksCreateCall) Context(ctx context.Context) *FoldersSinksCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *FoldersSinksCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersSinksCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logsink) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/sinks") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "logging.folders.sinks.create" call. +// Exactly one of *LogSink or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *LogSink.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *FoldersSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogSink, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &LogSink{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", + // "flatPath": "v2/folders/{foldersId}/sinks", + // "httpMethod": "POST", + // "id": "logging.folders.sinks.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The resource in which to create the sink: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" Examples: \"projects/my-logging-project\", \"organizations/123456789\".", + // "location": "path", + // "pattern": "^folders/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "uniqueWriterIdentity": { + // "description": "Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value returned as writer_identity is the same group or service account used by Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink.", + // "location": "query", + // "type": "boolean" + // } + // }, + // "path": "v2/{+parent}/sinks", + // "request": { + // "$ref": "LogSink" + // }, + // "response": { + // "$ref": "LogSink" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/logging.admin" + // ] + // } + +} + +// method id "logging.folders.sinks.delete": + +type FoldersSinksDeleteCall struct { + s *Service + sinkNameid string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a sink. If the sink has a unique writer_identity, +// then that service account is also deleted. +func (r *FoldersSinksService) Delete(sinkNameid string) *FoldersSinksDeleteCall { + c := &FoldersSinksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.sinkNameid = sinkNameid + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *FoldersSinksDeleteCall) Fields(s ...googleapi.Field) *FoldersSinksDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *FoldersSinksDeleteCall) Context(ctx context.Context) *FoldersSinksDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *FoldersSinksDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersSinksDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+sinkName}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "sinkName": c.sinkNameid, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "logging.folders.sinks.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *FoldersSinksDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.", + // "flatPath": "v2/folders/{foldersId}/sinks/{sinksId}", + // "httpMethod": "DELETE", + // "id": "logging.folders.sinks.delete", + // "parameterOrder": [ + // "sinkName" + // ], + // "parameters": { + // "sinkName": { + // "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" Example: \"projects/my-project-id/sinks/my-sink-id\".", + // "location": "path", + // "pattern": "^folders/[^/]+/sinks/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+sinkName}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/logging.admin" + // ] + // } + +} + +// method id "logging.folders.sinks.get": + +type FoldersSinksGetCall struct { + s *Service + sinkName string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a sink. +func (r *FoldersSinksService) Get(sinkName string) *FoldersSinksGetCall { + c := &FoldersSinksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.sinkName = sinkName + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *FoldersSinksGetCall) Fields(s ...googleapi.Field) *FoldersSinksGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *FoldersSinksGetCall) IfNoneMatch(entityTag string) *FoldersSinksGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *FoldersSinksGetCall) Context(ctx context.Context) *FoldersSinksGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *FoldersSinksGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersSinksGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+sinkName}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "sinkName": c.sinkName, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "logging.folders.sinks.get" call. +// Exactly one of *LogSink or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *LogSink.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *FoldersSinksGetCall) Do(opts ...googleapi.CallOption) (*LogSink, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &LogSink{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a sink.", + // "flatPath": "v2/folders/{foldersId}/sinks/{sinksId}", + // "httpMethod": "GET", + // "id": "logging.folders.sinks.get", + // "parameterOrder": [ + // "sinkName" + // ], + // "parameters": { + // "sinkName": { + // "description": "Required. The resource name of the sink: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" Example: \"projects/my-project-id/sinks/my-sink-id\".", + // "location": "path", + // "pattern": "^folders/[^/]+/sinks/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+sinkName}", + // "response": { + // "$ref": "LogSink" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/logging.admin", + // "https://www.googleapis.com/auth/logging.read" + // ] + // } + +} + +// method id "logging.folders.sinks.list": + +type FoldersSinksListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists sinks. +func (r *FoldersSinksService) List(parent string) *FoldersSinksListCall { + c := &FoldersSinksListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return from this request. Non-positive values are +// ignored. The presence of nextPageToken in the response indicates that +// more results might be available. +func (c *FoldersSinksListCall) PageSize(pageSize int64) *FoldersSinksListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": If present, then +// retrieve the next batch of results from the preceding call to this +// method. pageToken must be the value of nextPageToken from the +// previous response. The values of other method parameters should be +// identical to those in the previous call. +func (c *FoldersSinksListCall) PageToken(pageToken string) *FoldersSinksListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *FoldersSinksListCall) Fields(s ...googleapi.Field) *FoldersSinksListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *FoldersSinksListCall) IfNoneMatch(entityTag string) *FoldersSinksListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *FoldersSinksListCall) Context(ctx context.Context) *FoldersSinksListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *FoldersSinksListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersSinksListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/sinks") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "logging.folders.sinks.list" call. +// Exactly one of *ListSinksResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListSinksResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *FoldersSinksListCall) Do(opts ...googleapi.CallOption) (*ListSinksResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListSinksResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists sinks.", + // "flatPath": "v2/folders/{foldersId}/sinks", + // "httpMethod": "GET", + // "id": "logging.folders.sinks.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent resource whose sinks are to be listed: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ", + // "location": "path", + // "pattern": "^folders/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+parent}/sinks", + // "response": { + // "$ref": "ListSinksResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/logging.admin", + // "https://www.googleapis.com/auth/logging.read" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *FoldersSinksListCall) Pages(ctx context.Context, f func(*ListSinksResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "logging.folders.sinks.patch": + +type FoldersSinksPatchCall struct { + s *Service + sinkNameid string + logsink *LogSink + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a sink. This method replaces the following fields in +// the existing sink with values from the new sink: destination, and +// filter.The updated sink might also have a new writer_identity; see +// the unique_writer_identity field. +func (r *FoldersSinksService) Patch(sinkNameid string, logsink *LogSink) *FoldersSinksPatchCall { + c := &FoldersSinksPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.sinkNameid = sinkNameid + c.logsink = logsink + return c +} + +// UniqueWriterIdentity sets the optional parameter +// "uniqueWriterIdentity": See sinks.create for a description of this +// field. When updating a sink, the effect of this field on the value of +// writer_identity in the updated sink depends on both the old and new +// values of this field: If the old and new values of this field are +// both false or both true, then there is no change to the sink's +// writer_identity. If the old value is false and the new value is true, +// then writer_identity is changed to a unique service account. It is an +// error if the old value is true and the new value is set to false or +// defaulted to false. +func (c *FoldersSinksPatchCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *FoldersSinksPatchCall { + c.urlParams_.Set("uniqueWriterIdentity", fmt.Sprint(uniqueWriterIdentity)) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask that +// specifies the fields in sink that need an update. A sink field will +// be overwritten if, and only if, it is in the update mask. name and +// output only fields cannot be updated.An empty updateMask is +// temporarily treated as using the following mask for backwards +// compatibility purposes: destination,filter,includeChildren At some +// point in the future, behavior will be removed and specifying an empty +// updateMask will be an error.For a detailed FieldMask definition, see +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: +// updateMask=filter. +func (c *FoldersSinksPatchCall) UpdateMask(updateMask string) *FoldersSinksPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *FoldersSinksPatchCall) Fields(s ...googleapi.Field) *FoldersSinksPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *FoldersSinksPatchCall) Context(ctx context.Context) *FoldersSinksPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *FoldersSinksPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersSinksPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logsink) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+sinkName}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "sinkName": c.sinkNameid, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "logging.folders.sinks.patch" call. +// Exactly one of *LogSink or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *LogSink.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *FoldersSinksPatchCall) Do(opts ...googleapi.CallOption) (*LogSink, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &LogSink{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.The updated sink might also have a new writer_identity; see the unique_writer_identity field.", + // "flatPath": "v2/folders/{foldersId}/sinks/{sinksId}", + // "httpMethod": "PATCH", + // "id": "logging.folders.sinks.patch", + // "parameterOrder": [ + // "sinkName" + // ], + // "parameters": { + // "sinkName": { + // "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" Example: \"projects/my-project-id/sinks/my-sink-id\".", + // "location": "path", + // "pattern": "^folders/[^/]+/sinks/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "uniqueWriterIdentity": { + // "description": "Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false.", + // "location": "query", + // "type": "boolean" + // }, + // "updateMask": { + // "description": "Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes: destination,filter,includeChildren At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v2/{+sinkName}", + // "request": { + // "$ref": "LogSink" + // }, + // "response": { + // "$ref": "LogSink" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/logging.admin" + // ] + // } + +} + +// method id "logging.folders.sinks.update": + +type FoldersSinksUpdateCall struct { + s *Service + sinkNameid string + logsink *LogSink + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Update: Updates a sink. This method replaces the following fields in +// the existing sink with values from the new sink: destination, and +// filter.The updated sink might also have a new writer_identity; see +// the unique_writer_identity field. +func (r *FoldersSinksService) Update(sinkNameid string, logsink *LogSink) *FoldersSinksUpdateCall { + c := &FoldersSinksUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.sinkNameid = sinkNameid + c.logsink = logsink + return c +} + +// UniqueWriterIdentity sets the optional parameter +// "uniqueWriterIdentity": See sinks.create for a description of this +// field. When updating a sink, the effect of this field on the value of +// writer_identity in the updated sink depends on both the old and new +// values of this field: If the old and new values of this field are +// both false or both true, then there is no change to the sink's +// writer_identity. If the old value is false and the new value is true, +// then writer_identity is changed to a unique service account. It is an +// error if the old value is true and the new value is set to false or +// defaulted to false. +func (c *FoldersSinksUpdateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *FoldersSinksUpdateCall { + c.urlParams_.Set("uniqueWriterIdentity", fmt.Sprint(uniqueWriterIdentity)) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask that +// specifies the fields in sink that need an update. A sink field will +// be overwritten if, and only if, it is in the update mask. name and +// output only fields cannot be updated.An empty updateMask is +// temporarily treated as using the following mask for backwards +// compatibility purposes: destination,filter,includeChildren At some +// point in the future, behavior will be removed and specifying an empty +// updateMask will be an error.For a detailed FieldMask definition, see +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: +// updateMask=filter. +func (c *FoldersSinksUpdateCall) UpdateMask(updateMask string) *FoldersSinksUpdateCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *FoldersSinksUpdateCall) Fields(s ...googleapi.Field) *FoldersSinksUpdateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *FoldersSinksUpdateCall) Context(ctx context.Context) *FoldersSinksUpdateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *FoldersSinksUpdateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersSinksUpdateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logsink) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+sinkName}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PUT", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "sinkName": c.sinkNameid, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "logging.folders.sinks.update" call. +// Exactly one of *LogSink or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *LogSink.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *FoldersSinksUpdateCall) Do(opts ...googleapi.CallOption) (*LogSink, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &LogSink{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.The updated sink might also have a new writer_identity; see the unique_writer_identity field.", + // "flatPath": "v2/folders/{foldersId}/sinks/{sinksId}", + // "httpMethod": "PUT", + // "id": "logging.folders.sinks.update", + // "parameterOrder": [ + // "sinkName" + // ], + // "parameters": { + // "sinkName": { + // "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" Example: \"projects/my-project-id/sinks/my-sink-id\".", + // "location": "path", + // "pattern": "^folders/[^/]+/sinks/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "uniqueWriterIdentity": { + // "description": "Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false.", + // "location": "query", + // "type": "boolean" + // }, + // "updateMask": { + // "description": "Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes: destination,filter,includeChildren At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v2/{+sinkName}", + // "request": { + // "$ref": "LogSink" + // }, + // "response": { + // "$ref": "LogSink" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/logging.admin" + // ] + // } + +} + +// method id "logging.locations.get": + +type LocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information about a location. +func (r *LocationsService) Get(name string) *LocationsGetCall { + c := &LocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *LocationsGetCall) Fields(s ...googleapi.Field) *LocationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *LocationsGetCall) IfNoneMatch(entityTag string) *LocationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *LocationsGetCall) Context(ctx context.Context) *LocationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *LocationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *LocationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "logging.locations.get" call. +// Exactly one of *Location or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Location.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *LocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Location{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets information about a location.", + // "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}", + // "httpMethod": "GET", + // "id": "logging.locations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Resource name for the location.", + // "location": "path", + // "pattern": "^[^/]+/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "response": { + // "$ref": "Location" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/logging.admin", + // "https://www.googleapis.com/auth/logging.read" + // ] + // } + +} + +// method id "logging.locations.list": + +type LocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists information about the supported locations for this +// service. +func (r *LocationsService) List(name string) *LocationsListCall { + c := &LocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *LocationsListCall) Filter(filter string) *LocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *LocationsListCall) PageSize(pageSize int64) *LocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *LocationsListCall) PageToken(pageToken string) *LocationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *LocationsListCall) Fields(s ...googleapi.Field) *LocationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *LocationsListCall) IfNoneMatch(entityTag string) *LocationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *LocationsListCall) Context(ctx context.Context) *LocationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *LocationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *LocationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}/locations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "logging.locations.list" call. +// Exactly one of *ListLocationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *LocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListLocationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists information about the supported locations for this service.", + // "flatPath": "v2/{v2Id}/{v2Id1}/locations", + // "httpMethod": "GET", + // "id": "logging.locations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The resource that owns the locations collection, if applicable.", + // "location": "path", + // "pattern": "^[^/]+/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v2/{+name}/locations", + // "response": { + // "$ref": "ListLocationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/logging.admin", + // "https://www.googleapis.com/auth/logging.read" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *LocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "logging.locations.buckets.create": + +type LocationsBucketsCreateCall struct { + s *Service + parent string + logbucket *LogBucket + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a bucket that can be used to store log entries. Once +// a bucket has been created, the region cannot be changed. +func (r *LocationsBucketsService) Create(parent string, logbucket *LogBucket) *LocationsBucketsCreateCall { + c := &LocationsBucketsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.logbucket = logbucket + return c +} + +// BucketId sets the optional parameter "bucketId": Required. A +// client-assigned identifier such as "my-bucket". Identifiers are +// limited to 100 characters and can include only letters, digits, +// underscores, hyphens, and periods. +func (c *LocationsBucketsCreateCall) BucketId(bucketId string) *LocationsBucketsCreateCall { + c.urlParams_.Set("bucketId", bucketId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *LocationsBucketsCreateCall) Fields(s ...googleapi.Field) *LocationsBucketsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *LocationsBucketsCreateCall) Context(ctx context.Context) *LocationsBucketsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *LocationsBucketsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *LocationsBucketsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logbucket) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/buckets") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "logging.locations.buckets.create" call. +// Exactly one of *LogBucket or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *LogBucket.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *LocationsBucketsCreateCall) Do(opts ...googleapi.CallOption) (*LogBucket, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &LogBucket{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a bucket that can be used to store log entries. Once a bucket has been created, the region cannot be changed.", + // "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets", + // "httpMethod": "POST", + // "id": "logging.locations.buckets.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "bucketId": { + // "description": "Required. A client-assigned identifier such as \"my-bucket\". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource in which to create the bucket: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" Example: \"projects/my-logging-project/locations/global\"", + // "location": "path", + // "pattern": "^[^/]+/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+parent}/buckets", + // "request": { + // "$ref": "LogBucket" + // }, + // "response": { + // "$ref": "LogBucket" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/logging.admin" + // ] + // } + +} + +// method id "logging.locations.buckets.delete": + +type LocationsBucketsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a bucket. Moves the bucket to the DELETE_REQUESTED +// state. After 7 days, the bucket will be purged and all logs in the +// bucket will be permanently deleted. +func (r *LocationsBucketsService) Delete(name string) *LocationsBucketsDeleteCall { + c := &LocationsBucketsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *LocationsBucketsDeleteCall) Fields(s ...googleapi.Field) *LocationsBucketsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *LocationsBucketsDeleteCall) Context(ctx context.Context) *LocationsBucketsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *LocationsBucketsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *LocationsBucketsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "logging.locations.buckets.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *LocationsBucketsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a bucket. Moves the bucket to the DELETE_REQUESTED state. After 7 days, the bucket will be purged and all logs in the bucket will be permanently deleted.", + // "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}", + // "httpMethod": "DELETE", + // "id": "logging.locations.buckets.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The full resource name of the bucket to delete. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\".", + // "location": "path", + // "pattern": "^[^/]+/[^/]+/locations/[^/]+/buckets/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/logging.admin" + // ] + // } + +} + +// method id "logging.locations.buckets.get": + +type LocationsBucketsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a bucket. +func (r *LocationsBucketsService) Get(name string) *LocationsBucketsGetCall { + c := &LocationsBucketsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *LocationsBucketsGetCall) Fields(s ...googleapi.Field) *LocationsBucketsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *LocationsBucketsGetCall) IfNoneMatch(entityTag string) *LocationsBucketsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *LocationsBucketsGetCall) Context(ctx context.Context) *LocationsBucketsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *LocationsBucketsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *LocationsBucketsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "logging.locations.buckets.get" call. +// Exactly one of *LogBucket or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *LogBucket.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *LocationsBucketsGetCall) Do(opts ...googleapi.CallOption) (*LogBucket, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &LogBucket{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a bucket.", + // "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}", // "httpMethod": "GET", - // "id": "logging.folders.sinks.get", + // "id": "logging.locations.buckets.get", // "parameterOrder": [ - // "sinkName" + // "name" // ], // "parameters": { - // "sinkName": { - // "description": "Required. The resource name of the sink: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" Example: \"projects/my-project-id/sinks/my-sink-id\".", + // "name": { + // "description": "Required. The resource name of the bucket: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\".", // "location": "path", - // "pattern": "^folders/[^/]+/sinks/[^/]+$", + // "pattern": "^[^/]+/[^/]+/locations/[^/]+/buckets/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+sinkName}", + // "path": "v2/{+name}", // "response": { - // "$ref": "LogSink" + // "$ref": "LogBucket" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -11201,9 +13668,9 @@ func (c *FoldersSinksGetCall) Do(opts ...googleapi.CallOption) (*LogSink, error) } -// method id "logging.folders.sinks.list": +// method id "logging.locations.buckets.list": -type FoldersSinksListCall struct { +type LocationsBucketsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -11212,9 +13679,9 @@ type FoldersSinksListCall struct { header_ http.Header } -// List: Lists sinks. -func (r *FoldersSinksService) List(parent string) *FoldersSinksListCall { - c := &FoldersSinksListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// List: Lists buckets. +func (r *LocationsBucketsService) List(parent string) *LocationsBucketsListCall { + c := &LocationsBucketsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } @@ -11223,7 +13690,7 @@ func (r *FoldersSinksService) List(parent string) *FoldersSinksListCall { // of results to return from this request. Non-positive values are // ignored. The presence of nextPageToken in the response indicates that // more results might be available. -func (c *FoldersSinksListCall) PageSize(pageSize int64) *FoldersSinksListCall { +func (c *LocationsBucketsListCall) PageSize(pageSize int64) *LocationsBucketsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } @@ -11233,7 +13700,7 @@ func (c *FoldersSinksListCall) PageSize(pageSize int64) *FoldersSinksListCall { // method. pageToken must be the value of nextPageToken from the // previous response. The values of other method parameters should be // identical to those in the previous call. -func (c *FoldersSinksListCall) PageToken(pageToken string) *FoldersSinksListCall { +func (c *LocationsBucketsListCall) PageToken(pageToken string) *LocationsBucketsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -11241,7 +13708,7 @@ func (c *FoldersSinksListCall) PageToken(pageToken string) *FoldersSinksListCall // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *FoldersSinksListCall) Fields(s ...googleapi.Field) *FoldersSinksListCall { +func (c *LocationsBucketsListCall) Fields(s ...googleapi.Field) *LocationsBucketsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -11251,7 +13718,7 @@ func (c *FoldersSinksListCall) Fields(s ...googleapi.Field) *FoldersSinksListCal // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *FoldersSinksListCall) IfNoneMatch(entityTag string) *FoldersSinksListCall { +func (c *LocationsBucketsListCall) IfNoneMatch(entityTag string) *LocationsBucketsListCall { c.ifNoneMatch_ = entityTag return c } @@ -11259,23 +13726,23 @@ func (c *FoldersSinksListCall) IfNoneMatch(entityTag string) *FoldersSinksListCa // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *FoldersSinksListCall) Context(ctx context.Context) *FoldersSinksListCall { +func (c *LocationsBucketsListCall) Context(ctx context.Context) *LocationsBucketsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *FoldersSinksListCall) Header() http.Header { +func (c *LocationsBucketsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FoldersSinksListCall) doRequest(alt string) (*http.Response, error) { +func (c *LocationsBucketsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11286,7 +13753,7 @@ func (c *FoldersSinksListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/sinks") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/buckets") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -11299,14 +13766,14 @@ func (c *FoldersSinksListCall) doRequest(alt string) (*http.Response, error) { return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.folders.sinks.list" call. -// Exactly one of *ListSinksResponse or error will be non-nil. Any +// Do executes the "logging.locations.buckets.list" call. +// Exactly one of *ListBucketsResponse or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either -// *ListSinksResponse.ServerResponse.Header or (if a response was +// *ListBucketsResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *FoldersSinksListCall) Do(opts ...googleapi.CallOption) (*ListSinksResponse, error) { +func (c *LocationsBucketsListCall) Do(opts ...googleapi.CallOption) (*ListBucketsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -11325,7 +13792,7 @@ func (c *FoldersSinksListCall) Do(opts ...googleapi.CallOption) (*ListSinksRespo if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListSinksResponse{ + ret := &ListBucketsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -11337,10 +13804,10 @@ func (c *FoldersSinksListCall) Do(opts ...googleapi.CallOption) (*ListSinksRespo } return ret, nil // { - // "description": "Lists sinks.", - // "flatPath": "v2/folders/{foldersId}/sinks", + // "description": "Lists buckets.", + // "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets", // "httpMethod": "GET", - // "id": "logging.folders.sinks.list", + // "id": "logging.locations.buckets.list", // "parameterOrder": [ // "parent" // ], @@ -11357,16 +13824,16 @@ func (c *FoldersSinksListCall) Do(opts ...googleapi.CallOption) (*ListSinksRespo // "type": "string" // }, // "parent": { - // "description": "Required. The parent resource whose sinks are to be listed: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ", + // "description": "Required. The parent resource whose buckets are to be listed: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]\" Note: The locations portion of the resource must be specified, but supplying the character - in place of LOCATION_ID will return all buckets.", // "location": "path", - // "pattern": "^folders/[^/]+$", + // "pattern": "^[^/]+/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+parent}/sinks", + // "path": "v2/{+parent}/buckets", // "response": { - // "$ref": "ListSinksResponse" + // "$ref": "ListBucketsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -11381,7 +13848,7 @@ func (c *FoldersSinksListCall) Do(opts ...googleapi.CallOption) (*ListSinksRespo // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *FoldersSinksListCall) Pages(ctx context.Context, f func(*ListSinksResponse) error) error { +func (c *LocationsBucketsListCall) Pages(ctx context.Context, f func(*ListBucketsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -11399,239 +13866,38 @@ func (c *FoldersSinksListCall) Pages(ctx context.Context, f func(*ListSinksRespo } } -// method id "logging.folders.sinks.patch": - -type FoldersSinksPatchCall struct { - s *Service - sinkNameid string - logsink *LogSink - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates a sink. This method replaces the following fields in -// the existing sink with values from the new sink: destination, and -// filter.The updated sink might also have a new writer_identity; see -// the unique_writer_identity field. -func (r *FoldersSinksService) Patch(sinkNameid string, logsink *LogSink) *FoldersSinksPatchCall { - c := &FoldersSinksPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.sinkNameid = sinkNameid - c.logsink = logsink - return c -} - -// UniqueWriterIdentity sets the optional parameter -// "uniqueWriterIdentity": See sinks.create for a description of this -// field. When updating a sink, the effect of this field on the value of -// writer_identity in the updated sink depends on both the old and new -// values of this field: If the old and new values of this field are -// both false or both true, then there is no change to the sink's -// writer_identity. If the old value is false and the new value is true, -// then writer_identity is changed to a unique service account. It is an -// error if the old value is true and the new value is set to false or -// defaulted to false. -func (c *FoldersSinksPatchCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *FoldersSinksPatchCall { - c.urlParams_.Set("uniqueWriterIdentity", fmt.Sprint(uniqueWriterIdentity)) - return c -} - -// UpdateMask sets the optional parameter "updateMask": Field mask that -// specifies the fields in sink that need an update. A sink field will -// be overwritten if, and only if, it is in the update mask. name and -// output only fields cannot be updated.An empty updateMask is -// temporarily treated as using the following mask for backwards -// compatibility purposes: destination,filter,includeChildren At some -// point in the future, behavior will be removed and specifying an empty -// updateMask will be an error.For a detailed FieldMask definition, see -// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: -// updateMask=filter. -func (c *FoldersSinksPatchCall) UpdateMask(updateMask string) *FoldersSinksPatchCall { - c.urlParams_.Set("updateMask", updateMask) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *FoldersSinksPatchCall) Fields(s ...googleapi.Field) *FoldersSinksPatchCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *FoldersSinksPatchCall) Context(ctx context.Context) *FoldersSinksPatchCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *FoldersSinksPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FoldersSinksPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logsink) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+sinkName}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "sinkName": c.sinkNameid, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "logging.folders.sinks.patch" call. -// Exactly one of *LogSink or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *LogSink.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *FoldersSinksPatchCall) Do(opts ...googleapi.CallOption) (*LogSink, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, &googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - } - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - ret := &LogSink{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.The updated sink might also have a new writer_identity; see the unique_writer_identity field.", - // "flatPath": "v2/folders/{foldersId}/sinks/{sinksId}", - // "httpMethod": "PATCH", - // "id": "logging.folders.sinks.patch", - // "parameterOrder": [ - // "sinkName" - // ], - // "parameters": { - // "sinkName": { - // "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" Example: \"projects/my-project-id/sinks/my-sink-id\".", - // "location": "path", - // "pattern": "^folders/[^/]+/sinks/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "uniqueWriterIdentity": { - // "description": "Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false.", - // "location": "query", - // "type": "boolean" - // }, - // "updateMask": { - // "description": "Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes: destination,filter,includeChildren At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2/{+sinkName}", - // "request": { - // "$ref": "LogSink" - // }, - // "response": { - // "$ref": "LogSink" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin" - // ] - // } - -} - -// method id "logging.folders.sinks.update": +// method id "logging.locations.buckets.patch": -type FoldersSinksUpdateCall struct { +type LocationsBucketsPatchCall struct { s *Service - sinkNameid string - logsink *LogSink + name string + logbucket *LogBucket urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Update: Updates a sink. This method replaces the following fields in -// the existing sink with values from the new sink: destination, and -// filter.The updated sink might also have a new writer_identity; see -// the unique_writer_identity field. -func (r *FoldersSinksService) Update(sinkNameid string, logsink *LogSink) *FoldersSinksUpdateCall { - c := &FoldersSinksUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.sinkNameid = sinkNameid - c.logsink = logsink - return c -} - -// UniqueWriterIdentity sets the optional parameter -// "uniqueWriterIdentity": See sinks.create for a description of this -// field. When updating a sink, the effect of this field on the value of -// writer_identity in the updated sink depends on both the old and new -// values of this field: If the old and new values of this field are -// both false or both true, then there is no change to the sink's -// writer_identity. If the old value is false and the new value is true, -// then writer_identity is changed to a unique service account. It is an -// error if the old value is true and the new value is set to false or -// defaulted to false. -func (c *FoldersSinksUpdateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *FoldersSinksUpdateCall { - c.urlParams_.Set("uniqueWriterIdentity", fmt.Sprint(uniqueWriterIdentity)) +// Patch: Updates a bucket. This method replaces the following fields in +// the existing bucket with values from the new bucket: +// retention_periodIf the retention period is decreased and the bucket +// is locked, FAILED_PRECONDITION will be returned.If the bucket has a +// LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be +// returned.A buckets region may not be modified after it is created. +func (r *LocationsBucketsService) Patch(name string, logbucket *LogBucket) *LocationsBucketsPatchCall { + c := &LocationsBucketsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.logbucket = logbucket return c } -// UpdateMask sets the optional parameter "updateMask": Field mask that -// specifies the fields in sink that need an update. A sink field will -// be overwritten if, and only if, it is in the update mask. name and -// output only fields cannot be updated.An empty updateMask is -// temporarily treated as using the following mask for backwards -// compatibility purposes: destination,filter,includeChildren At some -// point in the future, behavior will be removed and specifying an empty -// updateMask will be an error.For a detailed FieldMask definition, see +// UpdateMask sets the optional parameter "updateMask": Required. Field +// mask that specifies the fields in bucket that need an update. A +// bucket field will be overwritten if, and only if, it is in the update +// mask. name and output only fields cannot be updated.For a detailed +// FieldMask definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: -// updateMask=filter. -func (c *FoldersSinksUpdateCall) UpdateMask(updateMask string) *FoldersSinksUpdateCall { +// updateMask=retention_days. +func (c *LocationsBucketsPatchCall) UpdateMask(updateMask string) *LocationsBucketsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } @@ -11639,7 +13905,7 @@ func (c *FoldersSinksUpdateCall) UpdateMask(updateMask string) *FoldersSinksUpda // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *FoldersSinksUpdateCall) Fields(s ...googleapi.Field) *FoldersSinksUpdateCall { +func (c *LocationsBucketsPatchCall) Fields(s ...googleapi.Field) *LocationsBucketsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -11647,56 +13913,56 @@ func (c *FoldersSinksUpdateCall) Fields(s ...googleapi.Field) *FoldersSinksUpdat // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *FoldersSinksUpdateCall) Context(ctx context.Context) *FoldersSinksUpdateCall { +func (c *LocationsBucketsPatchCall) Context(ctx context.Context) *LocationsBucketsPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *FoldersSinksUpdateCall) Header() http.Header { +func (c *LocationsBucketsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FoldersSinksUpdateCall) doRequest(alt string) (*http.Response, error) { +func (c *LocationsBucketsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logsink) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logbucket) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+sinkName}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "sinkName": c.sinkNameid, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.folders.sinks.update" call. -// Exactly one of *LogSink or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *LogSink.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *FoldersSinksUpdateCall) Do(opts ...googleapi.CallOption) (*LogSink, error) { +// Do executes the "logging.locations.buckets.patch" call. +// Exactly one of *LogBucket or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *LogBucket.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *LocationsBucketsPatchCall) Do(opts ...googleapi.CallOption) (*LogBucket, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -11715,7 +13981,7 @@ func (c *FoldersSinksUpdateCall) Do(opts ...googleapi.CallOption) (*LogSink, err if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogSink{ + ret := &LogBucket{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -11727,39 +13993,34 @@ func (c *FoldersSinksUpdateCall) Do(opts ...googleapi.CallOption) (*LogSink, err } return ret, nil // { - // "description": "Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.The updated sink might also have a new writer_identity; see the unique_writer_identity field.", - // "flatPath": "v2/folders/{foldersId}/sinks/{sinksId}", - // "httpMethod": "PUT", - // "id": "logging.folders.sinks.update", + // "description": "Updates a bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be returned.A buckets region may not be modified after it is created.", + // "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}", + // "httpMethod": "PATCH", + // "id": "logging.locations.buckets.patch", // "parameterOrder": [ - // "sinkName" + // "name" // ], // "parameters": { - // "sinkName": { - // "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" Example: \"projects/my-project-id/sinks/my-sink-id\".", + // "name": { + // "description": "Required. The full resource name of the bucket to update. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\". Also requires permission \"resourcemanager.projects.updateLiens\" to set the locked property", // "location": "path", - // "pattern": "^folders/[^/]+/sinks/[^/]+$", + // "pattern": "^[^/]+/[^/]+/locations/[^/]+/buckets/[^/]+$", // "required": true, // "type": "string" // }, - // "uniqueWriterIdentity": { - // "description": "Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false.", - // "location": "query", - // "type": "boolean" - // }, // "updateMask": { - // "description": "Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes: destination,filter,includeChildren At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter.", + // "description": "Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=retention_days.", // "format": "google-fieldmask", // "location": "query", // "type": "string" // } // }, - // "path": "v2/{+sinkName}", + // "path": "v2/{+name}", // "request": { - // "$ref": "LogSink" + // "$ref": "LogBucket" // }, // "response": { - // "$ref": "LogSink" + // "$ref": "LogBucket" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -11769,39 +14030,30 @@ func (c *FoldersSinksUpdateCall) Do(opts ...googleapi.CallOption) (*LogSink, err } -// method id "logging.locations.buckets.create": - -type LocationsBucketsCreateCall struct { - s *Service - parent string - logbucket *LogBucket - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} +// method id "logging.locations.buckets.undelete": -// Create: Creates a bucket that can be used to store log entries. Once -// a bucket has been created, the region cannot be changed. -func (r *LocationsBucketsService) Create(parent string, logbucket *LogBucket) *LocationsBucketsCreateCall { - c := &LocationsBucketsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.logbucket = logbucket - return c +type LocationsBucketsUndeleteCall struct { + s *Service + name string + undeletebucketrequest *UndeleteBucketRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// BucketId sets the optional parameter "bucketId": Required. A -// client-assigned identifier such as "my-bucket". Identifiers are -// limited to 100 characters and can include only letters, digits, -// underscores, hyphens, and periods. -func (c *LocationsBucketsCreateCall) BucketId(bucketId string) *LocationsBucketsCreateCall { - c.urlParams_.Set("bucketId", bucketId) +// Undelete: Undeletes a bucket. A bucket that has been deleted may be +// undeleted within the grace period of 7 days. +func (r *LocationsBucketsService) Undelete(name string, undeletebucketrequest *UndeleteBucketRequest) *LocationsBucketsUndeleteCall { + c := &LocationsBucketsUndeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.undeletebucketrequest = undeletebucketrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *LocationsBucketsCreateCall) Fields(s ...googleapi.Field) *LocationsBucketsCreateCall { +func (c *LocationsBucketsUndeleteCall) Fields(s ...googleapi.Field) *LocationsBucketsUndeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -11809,36 +14061,36 @@ func (c *LocationsBucketsCreateCall) Fields(s ...googleapi.Field) *LocationsBuck // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *LocationsBucketsCreateCall) Context(ctx context.Context) *LocationsBucketsCreateCall { +func (c *LocationsBucketsUndeleteCall) Context(ctx context.Context) *LocationsBucketsUndeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *LocationsBucketsCreateCall) Header() http.Header { +func (c *LocationsBucketsUndeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *LocationsBucketsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *LocationsBucketsUndeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logbucket) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.undeletebucketrequest) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/buckets") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:undelete") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -11846,19 +14098,19 @@ func (c *LocationsBucketsCreateCall) doRequest(alt string) (*http.Response, erro } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.locations.buckets.create" call. -// Exactly one of *LogBucket or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LogBucket.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *LocationsBucketsCreateCall) Do(opts ...googleapi.CallOption) (*LogBucket, error) { +// Do executes the "logging.locations.buckets.undelete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *LocationsBucketsUndeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -11877,7 +14129,7 @@ func (c *LocationsBucketsCreateCall) Do(opts ...googleapi.CallOption) (*LogBucke if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogBucket{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -11889,33 +14141,28 @@ func (c *LocationsBucketsCreateCall) Do(opts ...googleapi.CallOption) (*LogBucke } return ret, nil // { - // "description": "Creates a bucket that can be used to store log entries. Once a bucket has been created, the region cannot be changed.", - // "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets", + // "description": "Undeletes a bucket. A bucket that has been deleted may be undeleted within the grace period of 7 days.", + // "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}:undelete", // "httpMethod": "POST", - // "id": "logging.locations.buckets.create", + // "id": "logging.locations.buckets.undelete", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "bucketId": { - // "description": "Required. A client-assigned identifier such as \"my-bucket\". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource in which to create the bucket: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" Example: \"projects/my-logging-project/locations/global\"", + // "name": { + // "description": "Required. The full resource name of the bucket to undelete. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\".", // "location": "path", - // "pattern": "^[^/]+/[^/]+/locations/[^/]+$", + // "pattern": "^[^/]+/[^/]+/locations/[^/]+/buckets/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+parent}/buckets", + // "path": "v2/{+name}:undelete", // "request": { - // "$ref": "LogBucket" + // "$ref": "UndeleteBucketRequest" // }, // "response": { - // "$ref": "LogBucket" + // "$ref": "Empty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -11925,29 +14172,37 @@ func (c *LocationsBucketsCreateCall) Do(opts ...googleapi.CallOption) (*LogBucke } -// method id "logging.locations.buckets.delete": +// method id "logging.locations.buckets.views.create": -type LocationsBucketsDeleteCall struct { +type LocationsBucketsViewsCreateCall struct { s *Service - name string + parent string + logview *LogView urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Delete: Deletes a bucket. Moves the bucket to the DELETE_REQUESTED -// state. After 7 days, the bucket will be purged and all logs in the -// bucket will be permanently deleted. -func (r *LocationsBucketsService) Delete(name string) *LocationsBucketsDeleteCall { - c := &LocationsBucketsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// Create: Creates a view over logs in a bucket. A bucket may contain a +// maximum of 50 views. +func (r *LocationsBucketsViewsService) Create(parent string, logview *LogView) *LocationsBucketsViewsCreateCall { + c := &LocationsBucketsViewsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.logview = logview + return c +} + +// ViewId sets the optional parameter "viewId": Required. The id to use +// for this view. +func (c *LocationsBucketsViewsCreateCall) ViewId(viewId string) *LocationsBucketsViewsCreateCall { + c.urlParams_.Set("viewId", viewId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *LocationsBucketsDeleteCall) Fields(s ...googleapi.Field) *LocationsBucketsDeleteCall { +func (c *LocationsBucketsViewsCreateCall) Fields(s ...googleapi.Field) *LocationsBucketsViewsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -11955,51 +14210,56 @@ func (c *LocationsBucketsDeleteCall) Fields(s ...googleapi.Field) *LocationsBuck // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *LocationsBucketsDeleteCall) Context(ctx context.Context) *LocationsBucketsDeleteCall { +func (c *LocationsBucketsViewsCreateCall) Context(ctx context.Context) *LocationsBucketsViewsCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *LocationsBucketsDeleteCall) Header() http.Header { +func (c *LocationsBucketsViewsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *LocationsBucketsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *LocationsBucketsViewsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logview) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/views") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.locations.buckets.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// Do executes the "logging.locations.buckets.views.create" call. +// Exactly one of *LogView or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) +// *LogView.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *LocationsBucketsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +func (c *LocationsBucketsViewsCreateCall) Do(opts ...googleapi.CallOption) (*LogView, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12018,7 +14278,7 @@ func (c *LocationsBucketsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, e if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Empty{ + ret := &LogView{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -12030,25 +14290,33 @@ func (c *LocationsBucketsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, e } return ret, nil // { - // "description": "Deletes a bucket. Moves the bucket to the DELETE_REQUESTED state. After 7 days, the bucket will be purged and all logs in the bucket will be permanently deleted.", - // "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}", - // "httpMethod": "DELETE", - // "id": "logging.locations.buckets.delete", + // "description": "Creates a view over logs in a bucket. A bucket may contain a maximum of 50 views.", + // "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}/views", + // "httpMethod": "POST", + // "id": "logging.locations.buckets.views.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The full resource name of the bucket to delete. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\".", + // "parent": { + // "description": "Required. The bucket in which to create the view \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-logging-project/locations/my-location/buckets/my-bucket\"", // "location": "path", // "pattern": "^[^/]+/[^/]+/locations/[^/]+/buckets/[^/]+$", // "required": true, // "type": "string" + // }, + // "viewId": { + // "description": "Required. The id to use for this view.", + // "location": "query", + // "type": "string" // } // }, - // "path": "v2/{+name}", + // "path": "v2/{+parent}/views", + // "request": { + // "$ref": "LogView" + // }, // "response": { - // "$ref": "Empty" + // "$ref": "LogView" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -12058,20 +14326,19 @@ func (c *LocationsBucketsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, e } -// method id "logging.locations.buckets.get": +// method id "logging.locations.buckets.views.delete": -type LocationsBucketsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type LocationsBucketsViewsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets a bucket (Beta). -func (r *LocationsBucketsService) Get(name string) *LocationsBucketsGetCall { - c := &LocationsBucketsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Delete: Deletes a view from a bucket. +func (r *LocationsBucketsViewsService) Delete(name string) *LocationsBucketsViewsDeleteCall { + c := &LocationsBucketsViewsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -12079,54 +14346,41 @@ func (r *LocationsBucketsService) Get(name string) *LocationsBucketsGetCall { // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *LocationsBucketsGetCall) Fields(s ...googleapi.Field) *LocationsBucketsGetCall { +func (c *LocationsBucketsViewsDeleteCall) Fields(s ...googleapi.Field) *LocationsBucketsViewsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *LocationsBucketsGetCall) IfNoneMatch(entityTag string) *LocationsBucketsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *LocationsBucketsGetCall) Context(ctx context.Context) *LocationsBucketsGetCall { +func (c *LocationsBucketsViewsDeleteCall) Context(ctx context.Context) *LocationsBucketsViewsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *LocationsBucketsGetCall) Header() http.Header { +func (c *LocationsBucketsViewsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *LocationsBucketsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *LocationsBucketsViewsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -12137,14 +14391,14 @@ func (c *LocationsBucketsGetCall) doRequest(alt string) (*http.Response, error) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.locations.buckets.get" call. -// Exactly one of *LogBucket or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LogBucket.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *LocationsBucketsGetCall) Do(opts ...googleapi.CallOption) (*LogBucket, error) { +// Do executes the "logging.locations.buckets.views.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *LocationsBucketsViewsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12163,7 +14417,7 @@ func (c *LocationsBucketsGetCall) Do(opts ...googleapi.CallOption) (*LogBucket, if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogBucket{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -12175,77 +14429,56 @@ func (c *LocationsBucketsGetCall) Do(opts ...googleapi.CallOption) (*LogBucket, } return ret, nil // { - // "description": "Gets a bucket (Beta).", - // "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}", - // "httpMethod": "GET", - // "id": "logging.locations.buckets.get", + // "description": "Deletes a view from a bucket.", + // "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}", + // "httpMethod": "DELETE", + // "id": "logging.locations.buckets.views.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name of the bucket: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\".", + // "description": "Required. The full resource name of the view to delete: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id\".", // "location": "path", - // "pattern": "^[^/]+/[^/]+/locations/[^/]+/buckets/[^/]+$", + // "pattern": "^[^/]+/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v2/{+name}", // "response": { - // "$ref": "LogBucket" + // "$ref": "Empty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/logging.admin", - // "https://www.googleapis.com/auth/logging.read" + // "https://www.googleapis.com/auth/logging.admin" // ] // } } -// method id "logging.locations.buckets.list": +// method id "logging.locations.buckets.views.get": -type LocationsBucketsListCall struct { +type LocationsBucketsViewsGetCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists buckets (Beta). -func (r *LocationsBucketsService) List(parent string) *LocationsBucketsListCall { - c := &LocationsBucketsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return from this request. Non-positive values are -// ignored. The presence of nextPageToken in the response indicates that -// more results might be available. -func (c *LocationsBucketsListCall) PageSize(pageSize int64) *LocationsBucketsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": If present, then -// retrieve the next batch of results from the preceding call to this -// method. pageToken must be the value of nextPageToken from the -// previous response. The values of other method parameters should be -// identical to those in the previous call. -func (c *LocationsBucketsListCall) PageToken(pageToken string) *LocationsBucketsListCall { - c.urlParams_.Set("pageToken", pageToken) +// Get: Gets a view. +func (r *LocationsBucketsViewsService) Get(name string) *LocationsBucketsViewsGetCall { + c := &LocationsBucketsViewsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *LocationsBucketsListCall) Fields(s ...googleapi.Field) *LocationsBucketsListCall { +func (c *LocationsBucketsViewsGetCall) Fields(s ...googleapi.Field) *LocationsBucketsViewsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -12255,7 +14488,7 @@ func (c *LocationsBucketsListCall) Fields(s ...googleapi.Field) *LocationsBucket // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *LocationsBucketsListCall) IfNoneMatch(entityTag string) *LocationsBucketsListCall { +func (c *LocationsBucketsViewsGetCall) IfNoneMatch(entityTag string) *LocationsBucketsViewsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -12263,23 +14496,23 @@ func (c *LocationsBucketsListCall) IfNoneMatch(entityTag string) *LocationsBucke // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *LocationsBucketsListCall) Context(ctx context.Context) *LocationsBucketsListCall { +func (c *LocationsBucketsViewsGetCall) Context(ctx context.Context) *LocationsBucketsViewsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *LocationsBucketsListCall) Header() http.Header { +func (c *LocationsBucketsViewsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *LocationsBucketsListCall) doRequest(alt string) (*http.Response, error) { +func (c *LocationsBucketsViewsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12290,7 +14523,7 @@ func (c *LocationsBucketsListCall) doRequest(alt string) (*http.Response, error) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/buckets") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -12298,19 +14531,19 @@ func (c *LocationsBucketsListCall) doRequest(alt string) (*http.Response, error) } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.locations.buckets.list" call. -// Exactly one of *ListBucketsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListBucketsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *LocationsBucketsListCall) Do(opts ...googleapi.CallOption) (*ListBucketsResponse, error) { +// Do executes the "logging.locations.buckets.views.get" call. +// Exactly one of *LogView or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *LogView.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *LocationsBucketsViewsGetCall) Do(opts ...googleapi.CallOption) (*LogView, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12329,7 +14562,7 @@ func (c *LocationsBucketsListCall) Do(opts ...googleapi.CallOption) (*ListBucket if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListBucketsResponse{ + ret := &LogView{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -12341,36 +14574,25 @@ func (c *LocationsBucketsListCall) Do(opts ...googleapi.CallOption) (*ListBucket } return ret, nil // { - // "description": "Lists buckets (Beta).", - // "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets", + // "description": "Gets a view.", + // "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}", // "httpMethod": "GET", - // "id": "logging.locations.buckets.list", + // "id": "logging.locations.buckets.views.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "pageSize": { - // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent resource whose buckets are to be listed: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]\" Note: The locations portion of the resource must be specified, but supplying the character - in place of LOCATION_ID will return all buckets.", + // "name": { + // "description": "Required. The resource name of the policy: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id\".", // "location": "path", - // "pattern": "^[^/]+/[^/]+/locations/[^/]+$", + // "pattern": "^[^/]+/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+parent}/buckets", + // "path": "v2/{+name}", // "response": { - // "$ref": "ListBucketsResponse" + // "$ref": "LogView" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -12382,125 +14604,112 @@ func (c *LocationsBucketsListCall) Do(opts ...googleapi.CallOption) (*ListBucket } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *LocationsBucketsListCall) Pages(ctx context.Context, f func(*ListBucketsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} +// method id "logging.locations.buckets.views.list": -// method id "logging.locations.buckets.patch": +type LocationsBucketsViewsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} -type LocationsBucketsPatchCall struct { - s *Service - name string - logbucket *LogBucket - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// List: Lists views on a bucket. +func (r *LocationsBucketsViewsService) List(parent string) *LocationsBucketsViewsListCall { + c := &LocationsBucketsViewsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c } -// Patch: Updates a bucket. This method replaces the following fields in -// the existing bucket with values from the new bucket: -// retention_periodIf the retention period is decreased and the bucket -// is locked, FAILED_PRECONDITION will be returned.If the bucket has a -// LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be -// returned.A buckets region may not be modified after it is created. -// This method is in Beta. -func (r *LocationsBucketsService) Patch(name string, logbucket *LogBucket) *LocationsBucketsPatchCall { - c := &LocationsBucketsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.logbucket = logbucket +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return from this request. Non-positive values are +// ignored. The presence of nextPageToken in the response indicates that +// more results might be available. +func (c *LocationsBucketsViewsListCall) PageSize(pageSize int64) *LocationsBucketsViewsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// UpdateMask sets the optional parameter "updateMask": Required. Field -// mask that specifies the fields in bucket that need an update. A -// bucket field will be overwritten if, and only if, it is in the update -// mask. name and output only fields cannot be updated.For a detailed -// FieldMask definition, see -// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: -// updateMask=retention_days. -func (c *LocationsBucketsPatchCall) UpdateMask(updateMask string) *LocationsBucketsPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// PageToken sets the optional parameter "pageToken": If present, then +// retrieve the next batch of results from the preceding call to this +// method. pageToken must be the value of nextPageToken from the +// previous response. The values of other method parameters should be +// identical to those in the previous call. +func (c *LocationsBucketsViewsListCall) PageToken(pageToken string) *LocationsBucketsViewsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *LocationsBucketsPatchCall) Fields(s ...googleapi.Field) *LocationsBucketsPatchCall { +func (c *LocationsBucketsViewsListCall) Fields(s ...googleapi.Field) *LocationsBucketsViewsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *LocationsBucketsViewsListCall) IfNoneMatch(entityTag string) *LocationsBucketsViewsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *LocationsBucketsPatchCall) Context(ctx context.Context) *LocationsBucketsPatchCall { +func (c *LocationsBucketsViewsListCall) Context(ctx context.Context) *LocationsBucketsViewsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *LocationsBucketsPatchCall) Header() http.Header { +func (c *LocationsBucketsViewsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *LocationsBucketsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *LocationsBucketsViewsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logbucket) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/views") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.locations.buckets.patch" call. -// Exactly one of *LogBucket or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LogBucket.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *LocationsBucketsPatchCall) Do(opts ...googleapi.CallOption) (*LogBucket, error) { +// Do executes the "logging.locations.buckets.views.list" call. +// Exactly one of *ListViewsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListViewsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *LocationsBucketsViewsListCall) Do(opts ...googleapi.CallOption) (*ListViewsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12519,7 +14728,7 @@ func (c *LocationsBucketsPatchCall) Do(opts ...googleapi.CallOption) (*LogBucket if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogBucket{ + ret := &ListViewsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -12531,67 +14740,104 @@ func (c *LocationsBucketsPatchCall) Do(opts ...googleapi.CallOption) (*LogBucket } return ret, nil // { - // "description": "Updates a bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be returned.A buckets region may not be modified after it is created. This method is in Beta.", - // "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}", - // "httpMethod": "PATCH", - // "id": "logging.locations.buckets.patch", + // "description": "Lists views on a bucket.", + // "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}/views", + // "httpMethod": "GET", + // "id": "logging.locations.buckets.views.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The full resource name of the bucket to update. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\". Also requires permission \"resourcemanager.projects.updateLiens\" to set the locked property", + // "pageSize": { + // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The bucket whose views are to be listed: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" ", // "location": "path", // "pattern": "^[^/]+/[^/]+/locations/[^/]+/buckets/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=retention_days.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v2/{+name}", - // "request": { - // "$ref": "LogBucket" - // }, + // "path": "v2/{+parent}/views", // "response": { - // "$ref": "LogBucket" + // "$ref": "ListViewsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin" + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/logging.admin", + // "https://www.googleapis.com/auth/logging.read" // ] // } } -// method id "logging.locations.buckets.undelete": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *LocationsBucketsViewsListCall) Pages(ctx context.Context, f func(*ListViewsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type LocationsBucketsUndeleteCall struct { - s *Service - name string - undeletebucketrequest *UndeleteBucketRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "logging.locations.buckets.views.patch": + +type LocationsBucketsViewsPatchCall struct { + s *Service + name string + logview *LogView + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Undelete: Undeletes a bucket. A bucket that has been deleted may be -// undeleted within the grace period of 7 days. -func (r *LocationsBucketsService) Undelete(name string, undeletebucketrequest *UndeleteBucketRequest) *LocationsBucketsUndeleteCall { - c := &LocationsBucketsUndeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Patch: Updates a view. This method replaces the following fields in +// the existing view with values from the new view: filter. +func (r *LocationsBucketsViewsService) Patch(name string, logview *LogView) *LocationsBucketsViewsPatchCall { + c := &LocationsBucketsViewsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.undeletebucketrequest = undeletebucketrequest + c.logview = logview + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask that +// specifies the fields in view that need an update. A field will be +// overwritten if, and only if, it is in the update mask. name and +// output only fields cannot be updated.For a detailed FieldMask +// definition, see +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: +// updateMask=filter. +func (c *LocationsBucketsViewsPatchCall) UpdateMask(updateMask string) *LocationsBucketsViewsPatchCall { + c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *LocationsBucketsUndeleteCall) Fields(s ...googleapi.Field) *LocationsBucketsUndeleteCall { +func (c *LocationsBucketsViewsPatchCall) Fields(s ...googleapi.Field) *LocationsBucketsViewsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -12599,38 +14845,38 @@ func (c *LocationsBucketsUndeleteCall) Fields(s ...googleapi.Field) *LocationsBu // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *LocationsBucketsUndeleteCall) Context(ctx context.Context) *LocationsBucketsUndeleteCall { +func (c *LocationsBucketsViewsPatchCall) Context(ctx context.Context) *LocationsBucketsViewsPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *LocationsBucketsUndeleteCall) Header() http.Header { +func (c *LocationsBucketsViewsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *LocationsBucketsUndeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *LocationsBucketsViewsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.undeletebucketrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logview) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:undelete") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -12641,14 +14887,14 @@ func (c *LocationsBucketsUndeleteCall) doRequest(alt string) (*http.Response, er return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.locations.buckets.undelete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// Do executes the "logging.locations.buckets.views.patch" call. +// Exactly one of *LogView or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) +// *LogView.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *LocationsBucketsUndeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +func (c *LocationsBucketsViewsPatchCall) Do(opts ...googleapi.CallOption) (*LogView, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12667,7 +14913,7 @@ func (c *LocationsBucketsUndeleteCall) Do(opts ...googleapi.CallOption) (*Empty, if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Empty{ + ret := &LogView{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -12679,28 +14925,34 @@ func (c *LocationsBucketsUndeleteCall) Do(opts ...googleapi.CallOption) (*Empty, } return ret, nil // { - // "description": "Undeletes a bucket. A bucket that has been deleted may be undeleted within the grace period of 7 days.", - // "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}:undelete", - // "httpMethod": "POST", - // "id": "logging.locations.buckets.undelete", + // "description": "Updates a view. This method replaces the following fields in the existing view with values from the new view: filter.", + // "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}", + // "httpMethod": "PATCH", + // "id": "logging.locations.buckets.views.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The full resource name of the bucket to undelete. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\".", + // "description": "Required. The full resource name of the view to update \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id\".", // "location": "path", - // "pattern": "^[^/]+/[^/]+/locations/[^/]+/buckets/[^/]+$", + // "pattern": "^[^/]+/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Optional. Field mask that specifies the fields in view that need an update. A field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v2/{+name}:undelete", + // "path": "v2/{+name}", // "request": { - // "$ref": "UndeleteBucketRequest" + // "$ref": "LogView" // }, // "response": { - // "$ref": "Empty" + // "$ref": "LogView" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -12710,37 +14962,30 @@ func (c *LocationsBucketsUndeleteCall) Do(opts ...googleapi.CallOption) (*Empty, } -// method id "logging.locations.buckets.views.create": +// method id "logging.logs.delete": -type LocationsBucketsViewsCreateCall struct { +type LogsDeleteCall struct { s *Service - parent string - logview *LogView + logName string urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Create: Creates a view over logs in a bucket. A bucket may contain a -// maximum of 50 views. -func (r *LocationsBucketsViewsService) Create(parent string, logview *LogView) *LocationsBucketsViewsCreateCall { - c := &LocationsBucketsViewsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.logview = logview - return c -} - -// ViewId sets the optional parameter "viewId": Required. The id to use -// for this view. -func (c *LocationsBucketsViewsCreateCall) ViewId(viewId string) *LocationsBucketsViewsCreateCall { - c.urlParams_.Set("viewId", viewId) +// Delete: Deletes all the log entries in a log. The log reappears if it +// receives new entries. Log entries written shortly before the delete +// operation might not be deleted. Entries received after the delete +// operation with a timestamp before the operation will be deleted. +func (r *LogsService) Delete(logName string) *LogsDeleteCall { + c := &LogsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.logName = logName return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *LocationsBucketsViewsCreateCall) Fields(s ...googleapi.Field) *LocationsBucketsViewsCreateCall { +func (c *LogsDeleteCall) Fields(s ...googleapi.Field) *LogsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -12748,56 +14993,51 @@ func (c *LocationsBucketsViewsCreateCall) Fields(s ...googleapi.Field) *Location // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *LocationsBucketsViewsCreateCall) Context(ctx context.Context) *LocationsBucketsViewsCreateCall { +func (c *LogsDeleteCall) Context(ctx context.Context) *LogsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *LocationsBucketsViewsCreateCall) Header() http.Header { +func (c *LogsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *LocationsBucketsViewsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *LogsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logview) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/views") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+logName}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "logName": c.logName, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.locations.buckets.views.create" call. -// Exactly one of *LogView or error will be non-nil. Any non-2xx status +// Do executes the "logging.logs.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either -// *LogView.ServerResponse.Header or (if a response was returned at all) +// *Empty.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *LocationsBucketsViewsCreateCall) Do(opts ...googleapi.CallOption) (*LogView, error) { +func (c *LogsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12816,7 +15056,7 @@ func (c *LocationsBucketsViewsCreateCall) Do(opts ...googleapi.CallOption) (*Log if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogView{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -12828,33 +15068,25 @@ func (c *LocationsBucketsViewsCreateCall) Do(opts ...googleapi.CallOption) (*Log } return ret, nil // { - // "description": "Creates a view over logs in a bucket. A bucket may contain a maximum of 50 views.", - // "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}/views", - // "httpMethod": "POST", - // "id": "logging.locations.buckets.views.create", + // "description": "Deletes all the log entries in a log. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted. Entries received after the delete operation with a timestamp before the operation will be deleted.", + // "flatPath": "v2/{v2Id}/{v2Id1}/logs/{logsId}", + // "httpMethod": "DELETE", + // "id": "logging.logs.delete", // "parameterOrder": [ - // "parent" + // "logName" // ], // "parameters": { - // "parent": { - // "description": "Required. The bucket in which to create the view \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-logging-project/locations/my-location/buckets/my-bucket\"", + // "logName": { + // "description": "Required. The resource name of the log to delete: \"projects/[PROJECT_ID]/logs/[LOG_ID]\" \"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\" \"folders/[FOLDER_ID]/logs/[LOG_ID]\" [LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.", // "location": "path", - // "pattern": "^[^/]+/[^/]+/locations/[^/]+/buckets/[^/]+$", + // "pattern": "^[^/]+/[^/]+/logs/[^/]+$", // "required": true, // "type": "string" - // }, - // "viewId": { - // "description": "Required. The id to use for this view.", - // "location": "query", - // "type": "string" // } // }, - // "path": "v2/{+parent}/views", - // "request": { - // "$ref": "LogView" - // }, + // "path": "v2/{+logName}", // "response": { - // "$ref": "LogView" + // "$ref": "Empty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -12864,79 +15096,130 @@ func (c *LocationsBucketsViewsCreateCall) Do(opts ...googleapi.CallOption) (*Log } -// method id "logging.locations.buckets.views.delete": +// method id "logging.logs.list": -type LocationsBucketsViewsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type LogsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a view from a bucket. -func (r *LocationsBucketsViewsService) Delete(name string) *LocationsBucketsViewsDeleteCall { - c := &LocationsBucketsViewsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// List: Lists the logs in projects, organizations, folders, or billing +// accounts. Only logs that have entries are listed. +func (r *LogsService) List(parent string) *LogsListCall { + c := &LogsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return from this request. Non-positive values are +// ignored. The presence of nextPageToken in the response indicates that +// more results might be available. +func (c *LogsListCall) PageSize(pageSize int64) *LogsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": If present, then +// retrieve the next batch of results from the preceding call to this +// method. pageToken must be the value of nextPageToken from the +// previous response. The values of other method parameters should be +// identical to those in the previous call. +func (c *LogsListCall) PageToken(pageToken string) *LogsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ResourceNames sets the optional parameter "resourceNames": The +// resource name that owns the logs: +// projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW +// _ID +// organization/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/v +// iews/VIEW_ID +// billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKE +// T_ID/views/VIEW_ID +// folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_I +// DTo support legacy queries, it could also be: "projects/PROJECT_ID" +// "organizations/ORGANIZATION_ID" "billingAccounts/BILLING_ACCOUNT_ID" +// "folders/FOLDER_ID" +func (c *LogsListCall) ResourceNames(resourceNames ...string) *LogsListCall { + c.urlParams_.SetMulti("resourceNames", append([]string{}, resourceNames...)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *LocationsBucketsViewsDeleteCall) Fields(s ...googleapi.Field) *LocationsBucketsViewsDeleteCall { +func (c *LogsListCall) Fields(s ...googleapi.Field) *LogsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *LogsListCall) IfNoneMatch(entityTag string) *LogsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *LocationsBucketsViewsDeleteCall) Context(ctx context.Context) *LocationsBucketsViewsDeleteCall { +func (c *LogsListCall) Context(ctx context.Context) *LogsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *LocationsBucketsViewsDeleteCall) Header() http.Header { +func (c *LogsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *LocationsBucketsViewsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *LogsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/logs") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.locations.buckets.views.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *LocationsBucketsViewsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +// Do executes the "logging.logs.list" call. +// Exactly one of *ListLogsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListLogsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *LogsListCall) Do(opts ...googleapi.CallOption) (*ListLogsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12955,7 +15238,7 @@ func (c *LocationsBucketsViewsDeleteCall) Do(opts ...googleapi.CallOption) (*Emp if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Empty{ + ret := &ListLogsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -12967,56 +15250,114 @@ func (c *LocationsBucketsViewsDeleteCall) Do(opts ...googleapi.CallOption) (*Emp } return ret, nil // { - // "description": "Deletes a view from a bucket.", - // "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}", - // "httpMethod": "DELETE", - // "id": "logging.locations.buckets.views.delete", + // "description": "Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.", + // "flatPath": "v2/{v2Id}/{v2Id1}/logs", + // "httpMethod": "GET", + // "id": "logging.logs.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The full resource name of the view to delete: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id\".", + // "pageSize": { + // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name that owns the logs: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ", // "location": "path", - // "pattern": "^[^/]+/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", + // "pattern": "^[^/]+/[^/]+$", // "required": true, // "type": "string" + // }, + // "resourceNames": { + // "description": "Optional. The resource name that owns the logs: projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID organization/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_IDTo support legacy queries, it could also be: \"projects/PROJECT_ID\" \"organizations/ORGANIZATION_ID\" \"billingAccounts/BILLING_ACCOUNT_ID\" \"folders/FOLDER_ID\"", + // "location": "query", + // "repeated": true, + // "type": "string" // } // }, - // "path": "v2/{+name}", + // "path": "v2/{+parent}/logs", // "response": { - // "$ref": "Empty" + // "$ref": "ListLogsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin" + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/logging.admin", + // "https://www.googleapis.com/auth/logging.read" // ] // } } -// method id "logging.locations.buckets.views.get": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *LogsListCall) Pages(ctx context.Context, f func(*ListLogsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type LocationsBucketsViewsGetCall struct { +// method id "logging.monitoredResourceDescriptors.list": + +type MonitoredResourceDescriptorsListCall struct { s *Service - name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Get: Gets a view. -func (r *LocationsBucketsViewsService) Get(name string) *LocationsBucketsViewsGetCall { - c := &LocationsBucketsViewsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// List: Lists the descriptors for monitored resource types used by +// Logging. +func (r *MonitoredResourceDescriptorsService) List() *MonitoredResourceDescriptorsListCall { + c := &MonitoredResourceDescriptorsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return from this request. Non-positive values are +// ignored. The presence of nextPageToken in the response indicates that +// more results might be available. +func (c *MonitoredResourceDescriptorsListCall) PageSize(pageSize int64) *MonitoredResourceDescriptorsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": If present, then +// retrieve the next batch of results from the preceding call to this +// method. pageToken must be the value of nextPageToken from the +// previous response. The values of other method parameters should be +// identical to those in the previous call. +func (c *MonitoredResourceDescriptorsListCall) PageToken(pageToken string) *MonitoredResourceDescriptorsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *LocationsBucketsViewsGetCall) Fields(s ...googleapi.Field) *LocationsBucketsViewsGetCall { +func (c *MonitoredResourceDescriptorsListCall) Fields(s ...googleapi.Field) *MonitoredResourceDescriptorsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -13026,7 +15367,7 @@ func (c *LocationsBucketsViewsGetCall) Fields(s ...googleapi.Field) *LocationsBu // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *LocationsBucketsViewsGetCall) IfNoneMatch(entityTag string) *LocationsBucketsViewsGetCall { +func (c *MonitoredResourceDescriptorsListCall) IfNoneMatch(entityTag string) *MonitoredResourceDescriptorsListCall { c.ifNoneMatch_ = entityTag return c } @@ -13034,23 +15375,23 @@ func (c *LocationsBucketsViewsGetCall) IfNoneMatch(entityTag string) *LocationsB // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *LocationsBucketsViewsGetCall) Context(ctx context.Context) *LocationsBucketsViewsGetCall { +func (c *MonitoredResourceDescriptorsListCall) Context(ctx context.Context) *MonitoredResourceDescriptorsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *LocationsBucketsViewsGetCall) Header() http.Header { +func (c *MonitoredResourceDescriptorsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *LocationsBucketsViewsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *MonitoredResourceDescriptorsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13061,27 +15402,26 @@ func (c *LocationsBucketsViewsGetCall) doRequest(alt string) (*http.Response, er var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/monitoredResourceDescriptors") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.locations.buckets.views.get" call. -// Exactly one of *LogView or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *LogView.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *LocationsBucketsViewsGetCall) Do(opts ...googleapi.CallOption) (*LogView, error) { +// Do executes the "logging.monitoredResourceDescriptors.list" call. +// Exactly one of *ListMonitoredResourceDescriptorsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *ListMonitoredResourceDescriptorsResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *MonitoredResourceDescriptorsListCall) Do(opts ...googleapi.CallOption) (*ListMonitoredResourceDescriptorsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -13100,7 +15440,7 @@ func (c *LocationsBucketsViewsGetCall) Do(opts ...googleapi.CallOption) (*LogVie if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogView{ + ret := &ListMonitoredResourceDescriptorsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -13112,25 +15452,27 @@ func (c *LocationsBucketsViewsGetCall) Do(opts ...googleapi.CallOption) (*LogVie } return ret, nil // { - // "description": "Gets a view.", - // "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}", + // "description": "Lists the descriptors for monitored resource types used by Logging.", + // "flatPath": "v2/monitoredResourceDescriptors", // "httpMethod": "GET", - // "id": "logging.locations.buckets.views.get", - // "parameterOrder": [ - // "name" - // ], + // "id": "logging.monitoredResourceDescriptors.list", + // "parameterOrder": [], // "parameters": { - // "name": { - // "description": "Required. The resource name of the policy: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id\".", - // "location": "path", - // "pattern": "^[^/]+/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", - // "required": true, + // "pageSize": { + // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", + // "location": "query", // "type": "string" // } // }, - // "path": "v2/{+name}", + // "path": "v2/monitoredResourceDescriptors", // "response": { - // "$ref": "LogView" + // "$ref": "ListMonitoredResourceDescriptorsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -13142,47 +15484,55 @@ func (c *LocationsBucketsViewsGetCall) Do(opts ...googleapi.CallOption) (*LogVie } -// method id "logging.locations.buckets.views.list": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *MonitoredResourceDescriptorsListCall) Pages(ctx context.Context, f func(*ListMonitoredResourceDescriptorsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type LocationsBucketsViewsListCall struct { +// method id "logging.organizations.getCmekSettings": + +type OrganizationsGetCmekSettingsCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists views on a bucket.. -func (r *LocationsBucketsViewsService) List(parent string) *LocationsBucketsViewsListCall { - c := &LocationsBucketsViewsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return from this request. Non-positive values are -// ignored. The presence of nextPageToken in the response indicates that -// more results might be available. -func (c *LocationsBucketsViewsListCall) PageSize(pageSize int64) *LocationsBucketsViewsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": If present, then -// retrieve the next batch of results from the preceding call to this -// method. pageToken must be the value of nextPageToken from the -// previous response. The values of other method parameters should be -// identical to those in the previous call. -func (c *LocationsBucketsViewsListCall) PageToken(pageToken string) *LocationsBucketsViewsListCall { - c.urlParams_.Set("pageToken", pageToken) +// GetCmekSettings: Gets the Logs Router CMEK settings for the given +// resource.Note: CMEK for the Logs Router can currently only be +// configured for GCP organizations. Once configured, it applies to all +// projects and folders in the GCP organization.See Enabling CMEK for +// Logs Router +// (https://cloud.google.com/logging/docs/routing/managed-encryption) +// for more information. +func (r *OrganizationsService) GetCmekSettings(name string) *OrganizationsGetCmekSettingsCall { + c := &OrganizationsGetCmekSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *LocationsBucketsViewsListCall) Fields(s ...googleapi.Field) *LocationsBucketsViewsListCall { +func (c *OrganizationsGetCmekSettingsCall) Fields(s ...googleapi.Field) *OrganizationsGetCmekSettingsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -13192,7 +15542,7 @@ func (c *LocationsBucketsViewsListCall) Fields(s ...googleapi.Field) *LocationsB // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *LocationsBucketsViewsListCall) IfNoneMatch(entityTag string) *LocationsBucketsViewsListCall { +func (c *OrganizationsGetCmekSettingsCall) IfNoneMatch(entityTag string) *OrganizationsGetCmekSettingsCall { c.ifNoneMatch_ = entityTag return c } @@ -13200,23 +15550,23 @@ func (c *LocationsBucketsViewsListCall) IfNoneMatch(entityTag string) *Locations // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *LocationsBucketsViewsListCall) Context(ctx context.Context) *LocationsBucketsViewsListCall { +func (c *OrganizationsGetCmekSettingsCall) Context(ctx context.Context) *OrganizationsGetCmekSettingsCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *LocationsBucketsViewsListCall) Header() http.Header { +func (c *OrganizationsGetCmekSettingsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *LocationsBucketsViewsListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsGetCmekSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13227,7 +15577,7 @@ func (c *LocationsBucketsViewsListCall) doRequest(alt string) (*http.Response, e var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/views") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}/cmekSettings") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -13235,19 +15585,19 @@ func (c *LocationsBucketsViewsListCall) doRequest(alt string) (*http.Response, e } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.locations.buckets.views.list" call. -// Exactly one of *ListViewsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListViewsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *LocationsBucketsViewsListCall) Do(opts ...googleapi.CallOption) (*ListViewsResponse, error) { +// Do executes the "logging.organizations.getCmekSettings" call. +// Exactly one of *CmekSettings or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *CmekSettings.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *OrganizationsGetCmekSettingsCall) Do(opts ...googleapi.CallOption) (*CmekSettings, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -13266,7 +15616,7 @@ func (c *LocationsBucketsViewsListCall) Do(opts ...googleapi.CallOption) (*ListV if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListViewsResponse{ + ret := &CmekSettings{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -13278,36 +15628,25 @@ func (c *LocationsBucketsViewsListCall) Do(opts ...googleapi.CallOption) (*ListV } return ret, nil // { - // "description": "Lists views on a bucket..", - // "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}/views", + // "description": "Gets the Logs Router CMEK settings for the given resource.Note: CMEK for the Logs Router can currently only be configured for GCP organizations. Once configured, it applies to all projects and folders in the GCP organization.See Enabling CMEK for Logs Router (https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.", + // "flatPath": "v2/organizations/{organizationsId}/cmekSettings", // "httpMethod": "GET", - // "id": "logging.locations.buckets.views.list", + // "id": "logging.organizations.getCmekSettings", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "pageSize": { - // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The bucket whose views are to be listed: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" ", + // "name": { + // "description": "Required. The resource for which to retrieve CMEK settings. \"projects/[PROJECT_ID]/cmekSettings\" \"organizations/[ORGANIZATION_ID]/cmekSettings\" \"billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings\" \"folders/[FOLDER_ID]/cmekSettings\" Example: \"organizations/12345/cmekSettings\".Note: CMEK for the Logs Router can currently only be configured for GCP organizations. Once configured, it applies to all projects and folders in the GCP organization.", // "location": "path", - // "pattern": "^[^/]+/[^/]+/locations/[^/]+/buckets/[^/]+$", + // "pattern": "^organizations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+parent}/views", + // "path": "v2/{+name}/cmekSettings", // "response": { - // "$ref": "ListViewsResponse" + // "$ref": "CmekSettings" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -13319,55 +15658,40 @@ func (c *LocationsBucketsViewsListCall) Do(opts ...googleapi.CallOption) (*ListV } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *LocationsBucketsViewsListCall) Pages(ctx context.Context, f func(*ListViewsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -// method id "logging.locations.buckets.views.patch": +// method id "logging.organizations.updateCmekSettings": -type LocationsBucketsViewsPatchCall struct { - s *Service - name string - logview *LogView - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsUpdateCmekSettingsCall struct { + s *Service + name string + cmeksettings *CmekSettings + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates a view. This method replaces the following fields in -// the existing view with values from the new view: filter. -func (r *LocationsBucketsViewsService) Patch(name string, logview *LogView) *LocationsBucketsViewsPatchCall { - c := &LocationsBucketsViewsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// UpdateCmekSettings: Updates the Logs Router CMEK settings for the +// given resource.Note: CMEK for the Logs Router can currently only be +// configured for GCP organizations. Once configured, it applies to all +// projects and folders in the GCP organization.UpdateCmekSettings will +// fail if 1) kms_key_name is invalid, or 2) the associated service +// account does not have the required +// roles/cloudkms.cryptoKeyEncrypterDecrypter role assigned for the key, +// or 3) access to the key is disabled.See Enabling CMEK for Logs Router +// (https://cloud.google.com/logging/docs/routing/managed-encryption) +// for more information. +func (r *OrganizationsService) UpdateCmekSettings(name string, cmeksettings *CmekSettings) *OrganizationsUpdateCmekSettingsCall { + c := &OrganizationsUpdateCmekSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.logview = logview + c.cmeksettings = cmeksettings return c } -// UpdateMask sets the optional parameter "updateMask": Field mask that -// specifies the fields in view that need an update. A field will be -// overwritten if, and only if, it is in the update mask. name and -// output only fields cannot be updated.For a detailed FieldMask -// definition, see -// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: -// updateMask=filter. -func (c *LocationsBucketsViewsPatchCall) UpdateMask(updateMask string) *LocationsBucketsViewsPatchCall { +// UpdateMask sets the optional parameter "updateMask": Field mask +// identifying which fields from cmek_settings should be updated. A +// field will be overwritten if and only if it is in the update mask. +// Output only fields cannot be updated.See FieldMask for more +// information.Example: "updateMask=kmsKeyName" +func (c *OrganizationsUpdateCmekSettingsCall) UpdateMask(updateMask string) *OrganizationsUpdateCmekSettingsCall { c.urlParams_.Set("updateMask", updateMask) return c } @@ -13375,7 +15699,7 @@ func (c *LocationsBucketsViewsPatchCall) UpdateMask(updateMask string) *Location // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *LocationsBucketsViewsPatchCall) Fields(s ...googleapi.Field) *LocationsBucketsViewsPatchCall { +func (c *OrganizationsUpdateCmekSettingsCall) Fields(s ...googleapi.Field) *OrganizationsUpdateCmekSettingsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -13383,36 +15707,36 @@ func (c *LocationsBucketsViewsPatchCall) Fields(s ...googleapi.Field) *Locations // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *LocationsBucketsViewsPatchCall) Context(ctx context.Context) *LocationsBucketsViewsPatchCall { +func (c *OrganizationsUpdateCmekSettingsCall) Context(ctx context.Context) *OrganizationsUpdateCmekSettingsCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *LocationsBucketsViewsPatchCall) Header() http.Header { +func (c *OrganizationsUpdateCmekSettingsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *LocationsBucketsViewsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsUpdateCmekSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logview) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.cmeksettings) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}/cmekSettings") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -13425,14 +15749,14 @@ func (c *LocationsBucketsViewsPatchCall) doRequest(alt string) (*http.Response, return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.locations.buckets.views.patch" call. -// Exactly one of *LogView or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *LogView.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *LocationsBucketsViewsPatchCall) Do(opts ...googleapi.CallOption) (*LogView, error) { +// Do executes the "logging.organizations.updateCmekSettings" call. +// Exactly one of *CmekSettings or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *CmekSettings.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *OrganizationsUpdateCmekSettingsCall) Do(opts ...googleapi.CallOption) (*CmekSettings, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -13451,7 +15775,7 @@ func (c *LocationsBucketsViewsPatchCall) Do(opts ...googleapi.CallOption) (*LogV if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogView{ + ret := &CmekSettings{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -13463,34 +15787,34 @@ func (c *LocationsBucketsViewsPatchCall) Do(opts ...googleapi.CallOption) (*LogV } return ret, nil // { - // "description": "Updates a view. This method replaces the following fields in the existing view with values from the new view: filter.", - // "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}", + // "description": "Updates the Logs Router CMEK settings for the given resource.Note: CMEK for the Logs Router can currently only be configured for GCP organizations. Once configured, it applies to all projects and folders in the GCP organization.UpdateCmekSettings will fail if 1) kms_key_name is invalid, or 2) the associated service account does not have the required roles/cloudkms.cryptoKeyEncrypterDecrypter role assigned for the key, or 3) access to the key is disabled.See Enabling CMEK for Logs Router (https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.", + // "flatPath": "v2/organizations/{organizationsId}/cmekSettings", // "httpMethod": "PATCH", - // "id": "logging.locations.buckets.views.patch", + // "id": "logging.organizations.updateCmekSettings", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The full resource name of the view to update \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id\".", + // "description": "Required. The resource name for the CMEK settings to update. \"projects/[PROJECT_ID]/cmekSettings\" \"organizations/[ORGANIZATION_ID]/cmekSettings\" \"billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings\" \"folders/[FOLDER_ID]/cmekSettings\" Example: \"organizations/12345/cmekSettings\".Note: CMEK for the Logs Router can currently only be configured for GCP organizations. Once configured, it applies to all projects and folders in the GCP organization.", // "location": "path", - // "pattern": "^[^/]+/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", + // "pattern": "^organizations/[^/]+$", // "required": true, // "type": "string" // }, // "updateMask": { - // "description": "Optional. Field mask that specifies the fields in view that need an update. A field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter.", + // "description": "Optional. Field mask identifying which fields from cmek_settings should be updated. A field will be overwritten if and only if it is in the update mask. Output only fields cannot be updated.See FieldMask for more information.Example: \"updateMask=kmsKeyName\"", // "format": "google-fieldmask", // "location": "query", // "type": "string" // } // }, - // "path": "v2/{+name}", + // "path": "v2/{+name}/cmekSettings", // "request": { - // "$ref": "LogView" + // "$ref": "CmekSettings" // }, // "response": { - // "$ref": "LogView" + // "$ref": "CmekSettings" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -13500,30 +15824,31 @@ func (c *LocationsBucketsViewsPatchCall) Do(opts ...googleapi.CallOption) (*LogV } -// method id "logging.logs.delete": +// method id "logging.organizations.exclusions.create": -type LogsDeleteCall struct { - s *Service - logName string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsExclusionsCreateCall struct { + s *Service + parent string + logexclusion *LogExclusion + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes all the log entries in a log. The log reappears if it -// receives new entries. Log entries written shortly before the delete -// operation might not be deleted. Entries received after the delete -// operation with a timestamp before the operation will be deleted. -func (r *LogsService) Delete(logName string) *LogsDeleteCall { - c := &LogsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.logName = logName +// Create: Creates a new exclusion in a specified parent resource. Only +// log entries belonging to that resource can be excluded. You can have +// up to 10 exclusions in a resource. +func (r *OrganizationsExclusionsService) Create(parent string, logexclusion *LogExclusion) *OrganizationsExclusionsCreateCall { + c := &OrganizationsExclusionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.logexclusion = logexclusion return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *LogsDeleteCall) Fields(s ...googleapi.Field) *LogsDeleteCall { +func (c *OrganizationsExclusionsCreateCall) Fields(s ...googleapi.Field) *OrganizationsExclusionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -13531,51 +15856,56 @@ func (c *LogsDeleteCall) Fields(s ...googleapi.Field) *LogsDeleteCall { // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *LogsDeleteCall) Context(ctx context.Context) *LogsDeleteCall { +func (c *OrganizationsExclusionsCreateCall) Context(ctx context.Context) *OrganizationsExclusionsCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *LogsDeleteCall) Header() http.Header { +func (c *OrganizationsExclusionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *LogsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsExclusionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logexclusion) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+logName}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/exclusions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "logName": c.logName, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.logs.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *LogsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +// Do executes the "logging.organizations.exclusions.create" call. +// Exactly one of *LogExclusion or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *LogExclusion.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *OrganizationsExclusionsCreateCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -13594,7 +15924,7 @@ func (c *LogsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Empty{ + ret := &LogExclusion{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -13606,25 +15936,28 @@ func (c *LogsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { } return ret, nil // { - // "description": "Deletes all the log entries in a log. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted. Entries received after the delete operation with a timestamp before the operation will be deleted.", - // "flatPath": "v2/{v2Id}/{v2Id1}/logs/{logsId}", - // "httpMethod": "DELETE", - // "id": "logging.logs.delete", + // "description": "Creates a new exclusion in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.", + // "flatPath": "v2/organizations/{organizationsId}/exclusions", + // "httpMethod": "POST", + // "id": "logging.organizations.exclusions.create", // "parameterOrder": [ - // "logName" + // "parent" // ], // "parameters": { - // "logName": { - // "description": "Required. The resource name of the log to delete: \"projects/[PROJECT_ID]/logs/[LOG_ID]\" \"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\" \"folders/[FOLDER_ID]/logs/[LOG_ID]\" [LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.", + // "parent": { + // "description": "Required. The parent resource in which to create the exclusion: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" Examples: \"projects/my-logging-project\", \"organizations/123456789\".", // "location": "path", - // "pattern": "^[^/]+/[^/]+/logs/[^/]+$", + // "pattern": "^organizations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+logName}", + // "path": "v2/{+parent}/exclusions", + // "request": { + // "$ref": "LogExclusion" + // }, // "response": { - // "$ref": "Empty" + // "$ref": "LogExclusion" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -13634,113 +15967,79 @@ func (c *LogsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { } -// method id "logging.logs.list": - -type LogsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists the logs in projects, organizations, folders, or billing -// accounts. Only logs that have entries are listed. -func (r *LogsService) List(parent string) *LogsListCall { - c := &LogsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} +// method id "logging.organizations.exclusions.delete": -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return from this request. Non-positive values are -// ignored. The presence of nextPageToken in the response indicates that -// more results might be available. -func (c *LogsListCall) PageSize(pageSize int64) *LogsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c +type OrganizationsExclusionsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// PageToken sets the optional parameter "pageToken": If present, then -// retrieve the next batch of results from the preceding call to this -// method. pageToken must be the value of nextPageToken from the -// previous response. The values of other method parameters should be -// identical to those in the previous call. -func (c *LogsListCall) PageToken(pageToken string) *LogsListCall { - c.urlParams_.Set("pageToken", pageToken) +// Delete: Deletes an exclusion. +func (r *OrganizationsExclusionsService) Delete(name string) *OrganizationsExclusionsDeleteCall { + c := &OrganizationsExclusionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *LogsListCall) Fields(s ...googleapi.Field) *LogsListCall { +func (c *OrganizationsExclusionsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsExclusionsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *LogsListCall) IfNoneMatch(entityTag string) *LogsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *LogsListCall) Context(ctx context.Context) *LogsListCall { +func (c *OrganizationsExclusionsDeleteCall) Context(ctx context.Context) *OrganizationsExclusionsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *LogsListCall) Header() http.Header { +func (c *OrganizationsExclusionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *LogsListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsExclusionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/logs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.logs.list" call. -// Exactly one of *ListLogsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListLogsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *LogsListCall) Do(opts ...googleapi.CallOption) (*ListLogsResponse, error) { +// Do executes the "logging.organizations.exclusions.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *OrganizationsExclusionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -13759,7 +16058,7 @@ func (c *LogsListCall) Do(opts ...googleapi.CallOption) (*ListLogsResponse, erro if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListLogsResponse{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -13771,108 +16070,56 @@ func (c *LogsListCall) Do(opts ...googleapi.CallOption) (*ListLogsResponse, erro } return ret, nil // { - // "description": "Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.", - // "flatPath": "v2/{v2Id}/{v2Id1}/logs", - // "httpMethod": "GET", - // "id": "logging.logs.list", + // "description": "Deletes an exclusion.", + // "flatPath": "v2/organizations/{organizationsId}/exclusions/{exclusionsId}", + // "httpMethod": "DELETE", + // "id": "logging.organizations.exclusions.delete", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "pageSize": { - // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name that owns the logs: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ", - // "location": "path", - // "pattern": "^[^/]+/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/{+parent}/logs", - // "response": { - // "$ref": "ListLogsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/logging.admin", - // "https://www.googleapis.com/auth/logging.read" - // ] - // } - -} - -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *LogsListCall) Pages(ctx context.Context, f func(*ListLogsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } + // "name": { + // "description": "Required. The resource name of an existing exclusion to delete: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" Example: \"projects/my-project-id/exclusions/my-exclusion-id\".", + // "location": "path", + // "pattern": "^organizations/[^/]+/exclusions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/logging.admin" + // ] + // } + } -// method id "logging.monitoredResourceDescriptors.list": +// method id "logging.organizations.exclusions.get": -type MonitoredResourceDescriptorsListCall struct { +type OrganizationsExclusionsGetCall struct { s *Service + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists the descriptors for monitored resource types used by -// Logging. -func (r *MonitoredResourceDescriptorsService) List() *MonitoredResourceDescriptorsListCall { - c := &MonitoredResourceDescriptorsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return from this request. Non-positive values are -// ignored. The presence of nextPageToken in the response indicates that -// more results might be available. -func (c *MonitoredResourceDescriptorsListCall) PageSize(pageSize int64) *MonitoredResourceDescriptorsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": If present, then -// retrieve the next batch of results from the preceding call to this -// method. pageToken must be the value of nextPageToken from the -// previous response. The values of other method parameters should be -// identical to those in the previous call. -func (c *MonitoredResourceDescriptorsListCall) PageToken(pageToken string) *MonitoredResourceDescriptorsListCall { - c.urlParams_.Set("pageToken", pageToken) +// Get: Gets the description of an exclusion. +func (r *OrganizationsExclusionsService) Get(name string) *OrganizationsExclusionsGetCall { + c := &OrganizationsExclusionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *MonitoredResourceDescriptorsListCall) Fields(s ...googleapi.Field) *MonitoredResourceDescriptorsListCall { +func (c *OrganizationsExclusionsGetCall) Fields(s ...googleapi.Field) *OrganizationsExclusionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -13882,7 +16129,7 @@ func (c *MonitoredResourceDescriptorsListCall) Fields(s ...googleapi.Field) *Mon // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *MonitoredResourceDescriptorsListCall) IfNoneMatch(entityTag string) *MonitoredResourceDescriptorsListCall { +func (c *OrganizationsExclusionsGetCall) IfNoneMatch(entityTag string) *OrganizationsExclusionsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -13890,23 +16137,23 @@ func (c *MonitoredResourceDescriptorsListCall) IfNoneMatch(entityTag string) *Mo // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *MonitoredResourceDescriptorsListCall) Context(ctx context.Context) *MonitoredResourceDescriptorsListCall { +func (c *OrganizationsExclusionsGetCall) Context(ctx context.Context) *OrganizationsExclusionsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *MonitoredResourceDescriptorsListCall) Header() http.Header { +func (c *OrganizationsExclusionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *MonitoredResourceDescriptorsListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsExclusionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13917,26 +16164,27 @@ func (c *MonitoredResourceDescriptorsListCall) doRequest(alt string) (*http.Resp var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/monitoredResourceDescriptors") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.monitoredResourceDescriptors.list" call. -// Exactly one of *ListMonitoredResourceDescriptorsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *ListMonitoredResourceDescriptorsResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *MonitoredResourceDescriptorsListCall) Do(opts ...googleapi.CallOption) (*ListMonitoredResourceDescriptorsResponse, error) { +// Do executes the "logging.organizations.exclusions.get" call. +// Exactly one of *LogExclusion or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *LogExclusion.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *OrganizationsExclusionsGetCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -13955,7 +16203,7 @@ func (c *MonitoredResourceDescriptorsListCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListMonitoredResourceDescriptorsResponse{ + ret := &LogExclusion{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -13967,27 +16215,25 @@ func (c *MonitoredResourceDescriptorsListCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Lists the descriptors for monitored resource types used by Logging.", - // "flatPath": "v2/monitoredResourceDescriptors", + // "description": "Gets the description of an exclusion.", + // "flatPath": "v2/organizations/{organizationsId}/exclusions/{exclusionsId}", // "httpMethod": "GET", - // "id": "logging.monitoredResourceDescriptors.list", - // "parameterOrder": [], + // "id": "logging.organizations.exclusions.get", + // "parameterOrder": [ + // "name" + // ], // "parameters": { - // "pageSize": { - // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", - // "location": "query", + // "name": { + // "description": "Required. The resource name of an existing exclusion: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" Example: \"projects/my-project-id/exclusions/my-exclusion-id\".", + // "location": "path", + // "pattern": "^organizations/[^/]+/exclusions/[^/]+$", + // "required": true, // "type": "string" // } // }, - // "path": "v2/monitoredResourceDescriptors", + // "path": "v2/{+name}", // "response": { - // "$ref": "ListMonitoredResourceDescriptorsResponse" + // "$ref": "LogExclusion" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -13999,55 +16245,47 @@ func (c *MonitoredResourceDescriptorsListCall) Do(opts ...googleapi.CallOption) } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *MonitoredResourceDescriptorsListCall) Pages(ctx context.Context, f func(*ListMonitoredResourceDescriptorsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -// method id "logging.organizations.getCmekSettings": +// method id "logging.organizations.exclusions.list": -type OrganizationsGetCmekSettingsCall struct { +type OrganizationsExclusionsListCall struct { s *Service - name string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// GetCmekSettings: Gets the Logs Router CMEK settings for the given -// resource.Note: CMEK for the Logs Router can currently only be -// configured for GCP organizations. Once configured, it applies to all -// projects and folders in the GCP organization.See Enabling CMEK for -// Logs Router -// (https://cloud.google.com/logging/docs/routing/managed-encryption) -// for more information. -func (r *OrganizationsService) GetCmekSettings(name string) *OrganizationsGetCmekSettingsCall { - c := &OrganizationsGetCmekSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// List: Lists all the exclusions in a parent resource. +func (r *OrganizationsExclusionsService) List(parent string) *OrganizationsExclusionsListCall { + c := &OrganizationsExclusionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return from this request. Non-positive values are +// ignored. The presence of nextPageToken in the response indicates that +// more results might be available. +func (c *OrganizationsExclusionsListCall) PageSize(pageSize int64) *OrganizationsExclusionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": If present, then +// retrieve the next batch of results from the preceding call to this +// method. pageToken must be the value of nextPageToken from the +// previous response. The values of other method parameters should be +// identical to those in the previous call. +func (c *OrganizationsExclusionsListCall) PageToken(pageToken string) *OrganizationsExclusionsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsGetCmekSettingsCall) Fields(s ...googleapi.Field) *OrganizationsGetCmekSettingsCall { +func (c *OrganizationsExclusionsListCall) Fields(s ...googleapi.Field) *OrganizationsExclusionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -14057,7 +16295,7 @@ func (c *OrganizationsGetCmekSettingsCall) Fields(s ...googleapi.Field) *Organiz // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OrganizationsGetCmekSettingsCall) IfNoneMatch(entityTag string) *OrganizationsGetCmekSettingsCall { +func (c *OrganizationsExclusionsListCall) IfNoneMatch(entityTag string) *OrganizationsExclusionsListCall { c.ifNoneMatch_ = entityTag return c } @@ -14065,23 +16303,23 @@ func (c *OrganizationsGetCmekSettingsCall) IfNoneMatch(entityTag string) *Organi // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsGetCmekSettingsCall) Context(ctx context.Context) *OrganizationsGetCmekSettingsCall { +func (c *OrganizationsExclusionsListCall) Context(ctx context.Context) *OrganizationsExclusionsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsGetCmekSettingsCall) Header() http.Header { +func (c *OrganizationsExclusionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsGetCmekSettingsCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsExclusionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14092,7 +16330,7 @@ func (c *OrganizationsGetCmekSettingsCall) doRequest(alt string) (*http.Response var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}/cmekSettings") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/exclusions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -14100,19 +16338,19 @@ func (c *OrganizationsGetCmekSettingsCall) doRequest(alt string) (*http.Response } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.organizations.getCmekSettings" call. -// Exactly one of *CmekSettings or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CmekSettings.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *OrganizationsGetCmekSettingsCall) Do(opts ...googleapi.CallOption) (*CmekSettings, error) { +// Do executes the "logging.organizations.exclusions.list" call. +// Exactly one of *ListExclusionsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListExclusionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsExclusionsListCall) Do(opts ...googleapi.CallOption) (*ListExclusionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -14131,7 +16369,7 @@ func (c *OrganizationsGetCmekSettingsCall) Do(opts ...googleapi.CallOption) (*Cm if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &CmekSettings{ + ret := &ListExclusionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -14143,25 +16381,36 @@ func (c *OrganizationsGetCmekSettingsCall) Do(opts ...googleapi.CallOption) (*Cm } return ret, nil // { - // "description": "Gets the Logs Router CMEK settings for the given resource.Note: CMEK for the Logs Router can currently only be configured for GCP organizations. Once configured, it applies to all projects and folders in the GCP organization.See Enabling CMEK for Logs Router (https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.", - // "flatPath": "v2/organizations/{organizationsId}/cmekSettings", + // "description": "Lists all the exclusions in a parent resource.", + // "flatPath": "v2/organizations/{organizationsId}/exclusions", // "httpMethod": "GET", - // "id": "logging.organizations.getCmekSettings", + // "id": "logging.organizations.exclusions.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The resource for which to retrieve CMEK settings. \"projects/[PROJECT_ID]/cmekSettings\" \"organizations/[ORGANIZATION_ID]/cmekSettings\" \"billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings\" \"folders/[FOLDER_ID]/cmekSettings\" Example: \"organizations/12345/cmekSettings\".Note: CMEK for the Logs Router can currently only be configured for GCP organizations. Once configured, it applies to all projects and folders in the GCP organization.", + // "pageSize": { + // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent resource whose exclusions are to be listed. \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ", // "location": "path", // "pattern": "^organizations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+name}/cmekSettings", + // "path": "v2/{+parent}/exclusions", // "response": { - // "$ref": "CmekSettings" + // "$ref": "ListExclusionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -14173,40 +16422,54 @@ func (c *OrganizationsGetCmekSettingsCall) Do(opts ...googleapi.CallOption) (*Cm } -// method id "logging.organizations.updateCmekSettings": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *OrganizationsExclusionsListCall) Pages(ctx context.Context, f func(*ListExclusionsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type OrganizationsUpdateCmekSettingsCall struct { +// method id "logging.organizations.exclusions.patch": + +type OrganizationsExclusionsPatchCall struct { s *Service name string - cmeksettings *CmekSettings + logexclusion *LogExclusion urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// UpdateCmekSettings: Updates the Logs Router CMEK settings for the -// given resource.Note: CMEK for the Logs Router can currently only be -// configured for GCP organizations. Once configured, it applies to all -// projects and folders in the GCP organization.UpdateCmekSettings will -// fail if 1) kms_key_name is invalid, or 2) the associated service -// account does not have the required -// roles/cloudkms.cryptoKeyEncrypterDecrypter role assigned for the key, -// or 3) access to the key is disabled.See Enabling CMEK for Logs Router -// (https://cloud.google.com/logging/docs/routing/managed-encryption) -// for more information. -func (r *OrganizationsService) UpdateCmekSettings(name string, cmeksettings *CmekSettings) *OrganizationsUpdateCmekSettingsCall { - c := &OrganizationsUpdateCmekSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Patch: Changes one or more properties of an existing exclusion. +func (r *OrganizationsExclusionsService) Patch(name string, logexclusion *LogExclusion) *OrganizationsExclusionsPatchCall { + c := &OrganizationsExclusionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.cmeksettings = cmeksettings + c.logexclusion = logexclusion return c } -// UpdateMask sets the optional parameter "updateMask": Field mask -// identifying which fields from cmek_settings should be updated. A -// field will be overwritten if and only if it is in the update mask. -// Output only fields cannot be updated.See FieldMask for more -// information.Example: "updateMask=kmsKeyName" -func (c *OrganizationsUpdateCmekSettingsCall) UpdateMask(updateMask string) *OrganizationsUpdateCmekSettingsCall { +// UpdateMask sets the optional parameter "updateMask": Required. A +// non-empty list of fields to change in the existing exclusion. New +// values for the fields are taken from the corresponding fields in the +// LogExclusion included in this request. Fields not mentioned in +// update_mask are not changed and are ignored in the request.For +// example, to change the filter and description of an exclusion, +// specify an update_mask of "filter,description". +func (c *OrganizationsExclusionsPatchCall) UpdateMask(updateMask string) *OrganizationsExclusionsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } @@ -14214,7 +16477,7 @@ func (c *OrganizationsUpdateCmekSettingsCall) UpdateMask(updateMask string) *Org // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsUpdateCmekSettingsCall) Fields(s ...googleapi.Field) *OrganizationsUpdateCmekSettingsCall { +func (c *OrganizationsExclusionsPatchCall) Fields(s ...googleapi.Field) *OrganizationsExclusionsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -14222,36 +16485,36 @@ func (c *OrganizationsUpdateCmekSettingsCall) Fields(s ...googleapi.Field) *Orga // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsUpdateCmekSettingsCall) Context(ctx context.Context) *OrganizationsUpdateCmekSettingsCall { +func (c *OrganizationsExclusionsPatchCall) Context(ctx context.Context) *OrganizationsExclusionsPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsUpdateCmekSettingsCall) Header() http.Header { +func (c *OrganizationsExclusionsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsUpdateCmekSettingsCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsExclusionsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.cmeksettings) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logexclusion) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}/cmekSettings") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -14264,14 +16527,14 @@ func (c *OrganizationsUpdateCmekSettingsCall) doRequest(alt string) (*http.Respo return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.organizations.updateCmekSettings" call. -// Exactly one of *CmekSettings or error will be non-nil. Any non-2xx +// Do executes the "logging.organizations.exclusions.patch" call. +// Exactly one of *LogExclusion or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either -// *CmekSettings.ServerResponse.Header or (if a response was returned at +// *LogExclusion.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *OrganizationsUpdateCmekSettingsCall) Do(opts ...googleapi.CallOption) (*CmekSettings, error) { +func (c *OrganizationsExclusionsPatchCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -14290,7 +16553,7 @@ func (c *OrganizationsUpdateCmekSettingsCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &CmekSettings{ + ret := &LogExclusion{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -14302,34 +16565,34 @@ func (c *OrganizationsUpdateCmekSettingsCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Updates the Logs Router CMEK settings for the given resource.Note: CMEK for the Logs Router can currently only be configured for GCP organizations. Once configured, it applies to all projects and folders in the GCP organization.UpdateCmekSettings will fail if 1) kms_key_name is invalid, or 2) the associated service account does not have the required roles/cloudkms.cryptoKeyEncrypterDecrypter role assigned for the key, or 3) access to the key is disabled.See Enabling CMEK for Logs Router (https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.", - // "flatPath": "v2/organizations/{organizationsId}/cmekSettings", + // "description": "Changes one or more properties of an existing exclusion.", + // "flatPath": "v2/organizations/{organizationsId}/exclusions/{exclusionsId}", // "httpMethod": "PATCH", - // "id": "logging.organizations.updateCmekSettings", + // "id": "logging.organizations.exclusions.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name for the CMEK settings to update. \"projects/[PROJECT_ID]/cmekSettings\" \"organizations/[ORGANIZATION_ID]/cmekSettings\" \"billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings\" \"folders/[FOLDER_ID]/cmekSettings\" Example: \"organizations/12345/cmekSettings\".Note: CMEK for the Logs Router can currently only be configured for GCP organizations. Once configured, it applies to all projects and folders in the GCP organization.", + // "description": "Required. The resource name of the exclusion to update: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" Example: \"projects/my-project-id/exclusions/my-exclusion-id\".", // "location": "path", - // "pattern": "^organizations/[^/]+$", + // "pattern": "^organizations/[^/]+/exclusions/[^/]+$", // "required": true, // "type": "string" // }, // "updateMask": { - // "description": "Optional. Field mask identifying which fields from cmek_settings should be updated. A field will be overwritten if and only if it is in the update mask. Output only fields cannot be updated.See FieldMask for more information.Example: \"updateMask=kmsKeyName\"", + // "description": "Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.For example, to change the filter and description of an exclusion, specify an update_mask of \"filter,description\".", // "format": "google-fieldmask", // "location": "query", // "type": "string" // } // }, - // "path": "v2/{+name}/cmekSettings", + // "path": "v2/{+name}", // "request": { - // "$ref": "CmekSettings" + // "$ref": "LogExclusion" // }, // "response": { - // "$ref": "CmekSettings" + // "$ref": "LogExclusion" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -14339,88 +16602,93 @@ func (c *OrganizationsUpdateCmekSettingsCall) Do(opts ...googleapi.CallOption) ( } -// method id "logging.organizations.exclusions.create": +// method id "logging.organizations.locations.get": -type OrganizationsExclusionsCreateCall struct { +type OrganizationsLocationsGetCall struct { s *Service - parent string - logexclusion *LogExclusion + name string urlParams_ gensupport.URLParams + ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Create: Creates a new exclusion in a specified parent resource. Only -// log entries belonging to that resource can be excluded. You can have -// up to 10 exclusions in a resource. -func (r *OrganizationsExclusionsService) Create(parent string, logexclusion *LogExclusion) *OrganizationsExclusionsCreateCall { - c := &OrganizationsExclusionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.logexclusion = logexclusion +// Get: Gets information about a location. +func (r *OrganizationsLocationsService) Get(name string) *OrganizationsLocationsGetCall { + c := &OrganizationsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsExclusionsCreateCall) Fields(s ...googleapi.Field) *OrganizationsExclusionsCreateCall { +func (c *OrganizationsLocationsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsLocationsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsExclusionsCreateCall) Context(ctx context.Context) *OrganizationsExclusionsCreateCall { +func (c *OrganizationsLocationsGetCall) Context(ctx context.Context) *OrganizationsLocationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsExclusionsCreateCall) Header() http.Header { +func (c *OrganizationsLocationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsExclusionsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logexclusion) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/exclusions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.organizations.exclusions.create" call. -// Exactly one of *LogExclusion or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LogExclusion.ServerResponse.Header or (if a response was returned at +// Do executes the "logging.organizations.locations.get" call. +// Exactly one of *Location or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Location.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *OrganizationsExclusionsCreateCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error) { +func (c *OrganizationsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -14439,7 +16707,7 @@ func (c *OrganizationsExclusionsCreateCall) Do(opts ...googleapi.CallOption) (*L if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogExclusion{ + ret := &Location{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -14451,92 +16719,127 @@ func (c *OrganizationsExclusionsCreateCall) Do(opts ...googleapi.CallOption) (*L } return ret, nil // { - // "description": "Creates a new exclusion in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.", - // "flatPath": "v2/organizations/{organizationsId}/exclusions", - // "httpMethod": "POST", - // "id": "logging.organizations.exclusions.create", + // "description": "Gets information about a location.", + // "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}", + // "httpMethod": "GET", + // "id": "logging.organizations.locations.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The parent resource in which to create the exclusion: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" Examples: \"projects/my-logging-project\", \"organizations/123456789\".", + // "name": { + // "description": "Resource name for the location.", // "location": "path", - // "pattern": "^organizations/[^/]+$", + // "pattern": "^organizations/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+parent}/exclusions", - // "request": { - // "$ref": "LogExclusion" - // }, + // "path": "v2/{+name}", // "response": { - // "$ref": "LogExclusion" + // "$ref": "Location" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin" + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/logging.admin", + // "https://www.googleapis.com/auth/logging.read" // ] // } } -// method id "logging.organizations.exclusions.delete": +// method id "logging.organizations.locations.list": -type OrganizationsExclusionsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes an exclusion. -func (r *OrganizationsExclusionsService) Delete(name string) *OrganizationsExclusionsDeleteCall { - c := &OrganizationsExclusionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// List: Lists information about the supported locations for this +// service. +func (r *OrganizationsLocationsService) List(name string) *OrganizationsLocationsListCall { + c := &OrganizationsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *OrganizationsLocationsListCall) Filter(filter string) *OrganizationsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *OrganizationsLocationsListCall) PageSize(pageSize int64) *OrganizationsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *OrganizationsLocationsListCall) PageToken(pageToken string) *OrganizationsLocationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsExclusionsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsExclusionsDeleteCall { +func (c *OrganizationsLocationsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsLocationsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsExclusionsDeleteCall) Context(ctx context.Context) *OrganizationsExclusionsDeleteCall { +func (c *OrganizationsLocationsListCall) Context(ctx context.Context) *OrganizationsLocationsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsExclusionsDeleteCall) Header() http.Header { +func (c *OrganizationsLocationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsExclusionsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}/locations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -14547,14 +16850,14 @@ func (c *OrganizationsExclusionsDeleteCall) doRequest(alt string) (*http.Respons return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.organizations.exclusions.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *OrganizationsExclusionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +// Do executes the "logging.organizations.locations.list" call. +// Exactly one of *ListLocationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -14573,7 +16876,7 @@ func (c *OrganizationsExclusionsDeleteCall) Do(opts ...googleapi.CallOption) (*E if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Empty{ + ret := &ListLocationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -14585,121 +16888,163 @@ func (c *OrganizationsExclusionsDeleteCall) Do(opts ...googleapi.CallOption) (*E } return ret, nil // { - // "description": "Deletes an exclusion.", - // "flatPath": "v2/organizations/{organizationsId}/exclusions/{exclusionsId}", - // "httpMethod": "DELETE", - // "id": "logging.organizations.exclusions.delete", + // "description": "Lists information about the supported locations for this service.", + // "flatPath": "v2/organizations/{organizationsId}/locations", + // "httpMethod": "GET", + // "id": "logging.organizations.locations.list", // "parameterOrder": [ // "name" // ], // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, // "name": { - // "description": "Required. The resource name of an existing exclusion to delete: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" Example: \"projects/my-project-id/exclusions/my-exclusion-id\".", + // "description": "The resource that owns the locations collection, if applicable.", // "location": "path", - // "pattern": "^organizations/[^/]+/exclusions/[^/]+$", + // "pattern": "^organizations/[^/]+$", // "required": true, // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" // } // }, - // "path": "v2/{+name}", + // "path": "v2/{+name}/locations", // "response": { - // "$ref": "Empty" + // "$ref": "ListLocationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin" + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/logging.admin", + // "https://www.googleapis.com/auth/logging.read" // ] // } } -// method id "logging.organizations.exclusions.get": - -type OrganizationsExclusionsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *OrganizationsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "logging.organizations.locations.buckets.create": + +type OrganizationsLocationsBucketsCreateCall struct { + s *Service + parent string + logbucket *LogBucket + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a bucket that can be used to store log entries. Once +// a bucket has been created, the region cannot be changed. +func (r *OrganizationsLocationsBucketsService) Create(parent string, logbucket *LogBucket) *OrganizationsLocationsBucketsCreateCall { + c := &OrganizationsLocationsBucketsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.logbucket = logbucket + return c } -// Get: Gets the description of an exclusion. -func (r *OrganizationsExclusionsService) Get(name string) *OrganizationsExclusionsGetCall { - c := &OrganizationsExclusionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// BucketId sets the optional parameter "bucketId": Required. A +// client-assigned identifier such as "my-bucket". Identifiers are +// limited to 100 characters and can include only letters, digits, +// underscores, hyphens, and periods. +func (c *OrganizationsLocationsBucketsCreateCall) BucketId(bucketId string) *OrganizationsLocationsBucketsCreateCall { + c.urlParams_.Set("bucketId", bucketId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsExclusionsGetCall) Fields(s ...googleapi.Field) *OrganizationsExclusionsGetCall { +func (c *OrganizationsLocationsBucketsCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsBucketsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsExclusionsGetCall) IfNoneMatch(entityTag string) *OrganizationsExclusionsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsExclusionsGetCall) Context(ctx context.Context) *OrganizationsExclusionsGetCall { +func (c *OrganizationsLocationsBucketsCreateCall) Context(ctx context.Context) *OrganizationsLocationsBucketsCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsExclusionsGetCall) Header() http.Header { +func (c *OrganizationsLocationsBucketsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsExclusionsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsBucketsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logbucket) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/buckets") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.organizations.exclusions.get" call. -// Exactly one of *LogExclusion or error will be non-nil. Any non-2xx +// Do executes the "logging.organizations.locations.buckets.create" call. +// Exactly one of *LogBucket or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either -// *LogExclusion.ServerResponse.Header or (if a response was returned at +// *LogBucket.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *OrganizationsExclusionsGetCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error) { +func (c *OrganizationsLocationsBucketsCreateCall) Do(opts ...googleapi.CallOption) (*LogBucket, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -14718,7 +17063,7 @@ func (c *OrganizationsExclusionsGetCall) Do(opts ...googleapi.CallOption) (*LogE if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogExclusion{ + ret := &LogBucket{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -14730,142 +17075,117 @@ func (c *OrganizationsExclusionsGetCall) Do(opts ...googleapi.CallOption) (*LogE } return ret, nil // { - // "description": "Gets the description of an exclusion.", - // "flatPath": "v2/organizations/{organizationsId}/exclusions/{exclusionsId}", - // "httpMethod": "GET", - // "id": "logging.organizations.exclusions.get", + // "description": "Creates a bucket that can be used to store log entries. Once a bucket has been created, the region cannot be changed.", + // "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets", + // "httpMethod": "POST", + // "id": "logging.organizations.locations.buckets.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The resource name of an existing exclusion: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" Example: \"projects/my-project-id/exclusions/my-exclusion-id\".", + // "bucketId": { + // "description": "Required. A client-assigned identifier such as \"my-bucket\". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource in which to create the bucket: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" Example: \"projects/my-logging-project/locations/global\"", // "location": "path", - // "pattern": "^organizations/[^/]+/exclusions/[^/]+$", + // "pattern": "^organizations/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+name}", + // "path": "v2/{+parent}/buckets", + // "request": { + // "$ref": "LogBucket" + // }, // "response": { - // "$ref": "LogExclusion" + // "$ref": "LogBucket" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/logging.admin", - // "https://www.googleapis.com/auth/logging.read" + // "https://www.googleapis.com/auth/logging.admin" // ] // } } -// method id "logging.organizations.exclusions.list": - -type OrganizationsExclusionsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists all the exclusions in a parent resource. -func (r *OrganizationsExclusionsService) List(parent string) *OrganizationsExclusionsListCall { - c := &OrganizationsExclusionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} +// method id "logging.organizations.locations.buckets.delete": -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return from this request. Non-positive values are -// ignored. The presence of nextPageToken in the response indicates that -// more results might be available. -func (c *OrganizationsExclusionsListCall) PageSize(pageSize int64) *OrganizationsExclusionsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c +type OrganizationsLocationsBucketsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// PageToken sets the optional parameter "pageToken": If present, then -// retrieve the next batch of results from the preceding call to this -// method. pageToken must be the value of nextPageToken from the -// previous response. The values of other method parameters should be -// identical to those in the previous call. -func (c *OrganizationsExclusionsListCall) PageToken(pageToken string) *OrganizationsExclusionsListCall { - c.urlParams_.Set("pageToken", pageToken) +// Delete: Deletes a bucket. Moves the bucket to the DELETE_REQUESTED +// state. After 7 days, the bucket will be purged and all logs in the +// bucket will be permanently deleted. +func (r *OrganizationsLocationsBucketsService) Delete(name string) *OrganizationsLocationsBucketsDeleteCall { + c := &OrganizationsLocationsBucketsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsExclusionsListCall) Fields(s ...googleapi.Field) *OrganizationsExclusionsListCall { +func (c *OrganizationsLocationsBucketsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsBucketsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsExclusionsListCall) IfNoneMatch(entityTag string) *OrganizationsExclusionsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsExclusionsListCall) Context(ctx context.Context) *OrganizationsExclusionsListCall { +func (c *OrganizationsLocationsBucketsDeleteCall) Context(ctx context.Context) *OrganizationsLocationsBucketsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsExclusionsListCall) Header() http.Header { +func (c *OrganizationsLocationsBucketsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsExclusionsListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsBucketsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/exclusions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.organizations.exclusions.list" call. -// Exactly one of *ListExclusionsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListExclusionsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *OrganizationsExclusionsListCall) Do(opts ...googleapi.CallOption) (*ListExclusionsResponse, error) { +// Do executes the "logging.organizations.locations.buckets.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *OrganizationsLocationsBucketsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -14884,7 +17204,7 @@ func (c *OrganizationsExclusionsListCall) Do(opts ...googleapi.CallOption) (*Lis if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListExclusionsResponse{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -14896,142 +17216,103 @@ func (c *OrganizationsExclusionsListCall) Do(opts ...googleapi.CallOption) (*Lis } return ret, nil // { - // "description": "Lists all the exclusions in a parent resource.", - // "flatPath": "v2/organizations/{organizationsId}/exclusions", - // "httpMethod": "GET", - // "id": "logging.organizations.exclusions.list", + // "description": "Deletes a bucket. Moves the bucket to the DELETE_REQUESTED state. After 7 days, the bucket will be purged and all logs in the bucket will be permanently deleted.", + // "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}", + // "httpMethod": "DELETE", + // "id": "logging.organizations.locations.buckets.delete", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "pageSize": { - // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent resource whose exclusions are to be listed. \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ", - // "location": "path", - // "pattern": "^organizations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/{+parent}/exclusions", - // "response": { - // "$ref": "ListExclusionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/logging.admin", - // "https://www.googleapis.com/auth/logging.read" - // ] - // } - -} - -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *OrganizationsExclusionsListCall) Pages(ctx context.Context, f func(*ListExclusionsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } + // "name": { + // "description": "Required. The full resource name of the bucket to delete. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\".", + // "location": "path", + // "pattern": "^organizations/[^/]+/locations/[^/]+/buckets/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/logging.admin" + // ] + // } + } -// method id "logging.organizations.exclusions.patch": +// method id "logging.organizations.locations.buckets.get": -type OrganizationsExclusionsPatchCall struct { +type OrganizationsLocationsBucketsGetCall struct { s *Service name string - logexclusion *LogExclusion urlParams_ gensupport.URLParams + ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Patch: Changes one or more properties of an existing exclusion. -func (r *OrganizationsExclusionsService) Patch(name string, logexclusion *LogExclusion) *OrganizationsExclusionsPatchCall { - c := &OrganizationsExclusionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Get: Gets a bucket. +func (r *OrganizationsLocationsBucketsService) Get(name string) *OrganizationsLocationsBucketsGetCall { + c := &OrganizationsLocationsBucketsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.logexclusion = logexclusion - return c -} - -// UpdateMask sets the optional parameter "updateMask": Required. A -// non-empty list of fields to change in the existing exclusion. New -// values for the fields are taken from the corresponding fields in the -// LogExclusion included in this request. Fields not mentioned in -// update_mask are not changed and are ignored in the request.For -// example, to change the filter and description of an exclusion, -// specify an update_mask of "filter,description". -func (c *OrganizationsExclusionsPatchCall) UpdateMask(updateMask string) *OrganizationsExclusionsPatchCall { - c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsExclusionsPatchCall) Fields(s ...googleapi.Field) *OrganizationsExclusionsPatchCall { +func (c *OrganizationsLocationsBucketsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsBucketsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsLocationsBucketsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsBucketsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsExclusionsPatchCall) Context(ctx context.Context) *OrganizationsExclusionsPatchCall { +func (c *OrganizationsLocationsBucketsGetCall) Context(ctx context.Context) *OrganizationsLocationsBucketsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsExclusionsPatchCall) Header() http.Header { +func (c *OrganizationsLocationsBucketsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsExclusionsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsBucketsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logexclusion) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -15042,14 +17323,14 @@ func (c *OrganizationsExclusionsPatchCall) doRequest(alt string) (*http.Response return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.organizations.exclusions.patch" call. -// Exactly one of *LogExclusion or error will be non-nil. Any non-2xx +// Do executes the "logging.organizations.locations.buckets.get" call. +// Exactly one of *LogBucket or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either -// *LogExclusion.ServerResponse.Header or (if a response was returned at +// *LogBucket.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *OrganizationsExclusionsPatchCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error) { +func (c *OrganizationsLocationsBucketsGetCall) Do(opts ...googleapi.CallOption) (*LogBucket, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -15068,7 +17349,7 @@ func (c *OrganizationsExclusionsPatchCall) Do(opts ...googleapi.CallOption) (*Lo if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogExclusion{ + ret := &LogBucket{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -15080,115 +17361,124 @@ func (c *OrganizationsExclusionsPatchCall) Do(opts ...googleapi.CallOption) (*Lo } return ret, nil // { - // "description": "Changes one or more properties of an existing exclusion.", - // "flatPath": "v2/organizations/{organizationsId}/exclusions/{exclusionsId}", - // "httpMethod": "PATCH", - // "id": "logging.organizations.exclusions.patch", + // "description": "Gets a bucket.", + // "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}", + // "httpMethod": "GET", + // "id": "logging.organizations.locations.buckets.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name of the exclusion to update: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" Example: \"projects/my-project-id/exclusions/my-exclusion-id\".", + // "description": "Required. The resource name of the bucket: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\".", // "location": "path", - // "pattern": "^organizations/[^/]+/exclusions/[^/]+$", + // "pattern": "^organizations/[^/]+/locations/[^/]+/buckets/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.For example, to change the filter and description of an exclusion, specify an update_mask of \"filter,description\".", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, // "path": "v2/{+name}", - // "request": { - // "$ref": "LogExclusion" - // }, // "response": { - // "$ref": "LogExclusion" + // "$ref": "LogBucket" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin" + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/logging.admin", + // "https://www.googleapis.com/auth/logging.read" // ] // } } -// method id "logging.organizations.locations.buckets.create": +// method id "logging.organizations.locations.buckets.list": -type OrganizationsLocationsBucketsCreateCall struct { - s *Service - parent string - logbucket *LogBucket - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsLocationsBucketsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a bucket that can be used to store log entries. Once -// a bucket has been created, the region cannot be changed. -func (r *OrganizationsLocationsBucketsService) Create(parent string, logbucket *LogBucket) *OrganizationsLocationsBucketsCreateCall { - c := &OrganizationsLocationsBucketsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// List: Lists buckets. +func (r *OrganizationsLocationsBucketsService) List(parent string) *OrganizationsLocationsBucketsListCall { + c := &OrganizationsLocationsBucketsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.logbucket = logbucket return c } -// BucketId sets the optional parameter "bucketId": Required. A -// client-assigned identifier such as "my-bucket". Identifiers are -// limited to 100 characters and can include only letters, digits, -// underscores, hyphens, and periods. -func (c *OrganizationsLocationsBucketsCreateCall) BucketId(bucketId string) *OrganizationsLocationsBucketsCreateCall { - c.urlParams_.Set("bucketId", bucketId) +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return from this request. Non-positive values are +// ignored. The presence of nextPageToken in the response indicates that +// more results might be available. +func (c *OrganizationsLocationsBucketsListCall) PageSize(pageSize int64) *OrganizationsLocationsBucketsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": If present, then +// retrieve the next batch of results from the preceding call to this +// method. pageToken must be the value of nextPageToken from the +// previous response. The values of other method parameters should be +// identical to those in the previous call. +func (c *OrganizationsLocationsBucketsListCall) PageToken(pageToken string) *OrganizationsLocationsBucketsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsLocationsBucketsCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsBucketsCreateCall { +func (c *OrganizationsLocationsBucketsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsBucketsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsLocationsBucketsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsBucketsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsLocationsBucketsCreateCall) Context(ctx context.Context) *OrganizationsLocationsBucketsCreateCall { +func (c *OrganizationsLocationsBucketsListCall) Context(ctx context.Context) *OrganizationsLocationsBucketsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsLocationsBucketsCreateCall) Header() http.Header { +func (c *OrganizationsLocationsBucketsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsBucketsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsBucketsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logbucket) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/buckets") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -15199,14 +17489,14 @@ func (c *OrganizationsLocationsBucketsCreateCall) doRequest(alt string) (*http.R return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.organizations.locations.buckets.create" call. -// Exactly one of *LogBucket or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LogBucket.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *OrganizationsLocationsBucketsCreateCall) Do(opts ...googleapi.CallOption) (*LogBucket, error) { +// Do executes the "logging.organizations.locations.buckets.list" call. +// Exactly one of *ListBucketsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListBucketsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsLocationsBucketsListCall) Do(opts ...googleapi.CallOption) (*ListBucketsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -15225,7 +17515,7 @@ func (c *OrganizationsLocationsBucketsCreateCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogBucket{ + ret := &ListBucketsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -15237,21 +17527,27 @@ func (c *OrganizationsLocationsBucketsCreateCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Creates a bucket that can be used to store log entries. Once a bucket has been created, the region cannot be changed.", + // "description": "Lists buckets.", // "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets", - // "httpMethod": "POST", - // "id": "logging.organizations.locations.buckets.create", + // "httpMethod": "GET", + // "id": "logging.organizations.locations.buckets.list", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "bucketId": { - // "description": "Required. A client-assigned identifier such as \"my-bucket\". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.", + // "pageSize": { + // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource in which to create the bucket: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" Example: \"projects/my-logging-project/locations/global\"", + // "description": "Required. The parent resource whose buckets are to be listed: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]\" Note: The locations portion of the resource must be specified, but supplying the character - in place of LOCATION_ID will return all buckets.", // "location": "path", // "pattern": "^organizations/[^/]+/locations/[^/]+$", // "required": true, @@ -15259,43 +17555,80 @@ func (c *OrganizationsLocationsBucketsCreateCall) Do(opts ...googleapi.CallOptio // } // }, // "path": "v2/{+parent}/buckets", - // "request": { - // "$ref": "LogBucket" - // }, // "response": { - // "$ref": "LogBucket" + // "$ref": "ListBucketsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin" + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/logging.admin", + // "https://www.googleapis.com/auth/logging.read" // ] // } } -// method id "logging.organizations.locations.buckets.delete": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *OrganizationsLocationsBucketsListCall) Pages(ctx context.Context, f func(*ListBucketsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type OrganizationsLocationsBucketsDeleteCall struct { +// method id "logging.organizations.locations.buckets.patch": + +type OrganizationsLocationsBucketsPatchCall struct { s *Service name string + logbucket *LogBucket urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Delete: Deletes a bucket. Moves the bucket to the DELETE_REQUESTED -// state. After 7 days, the bucket will be purged and all logs in the -// bucket will be permanently deleted. -func (r *OrganizationsLocationsBucketsService) Delete(name string) *OrganizationsLocationsBucketsDeleteCall { - c := &OrganizationsLocationsBucketsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// Patch: Updates a bucket. This method replaces the following fields in +// the existing bucket with values from the new bucket: +// retention_periodIf the retention period is decreased and the bucket +// is locked, FAILED_PRECONDITION will be returned.If the bucket has a +// LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be +// returned.A buckets region may not be modified after it is created. +func (r *OrganizationsLocationsBucketsService) Patch(name string, logbucket *LogBucket) *OrganizationsLocationsBucketsPatchCall { + c := &OrganizationsLocationsBucketsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.logbucket = logbucket + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Field +// mask that specifies the fields in bucket that need an update. A +// bucket field will be overwritten if, and only if, it is in the update +// mask. name and output only fields cannot be updated.For a detailed +// FieldMask definition, see +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: +// updateMask=retention_days. +func (c *OrganizationsLocationsBucketsPatchCall) UpdateMask(updateMask string) *OrganizationsLocationsBucketsPatchCall { + c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsLocationsBucketsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsBucketsDeleteCall { +func (c *OrganizationsLocationsBucketsPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsBucketsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -15303,33 +17636,38 @@ func (c *OrganizationsLocationsBucketsDeleteCall) Fields(s ...googleapi.Field) * // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsLocationsBucketsDeleteCall) Context(ctx context.Context) *OrganizationsLocationsBucketsDeleteCall { +func (c *OrganizationsLocationsBucketsPatchCall) Context(ctx context.Context) *OrganizationsLocationsBucketsPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsLocationsBucketsDeleteCall) Header() http.Header { +func (c *OrganizationsLocationsBucketsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsBucketsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsBucketsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logbucket) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -15340,14 +17678,14 @@ func (c *OrganizationsLocationsBucketsDeleteCall) doRequest(alt string) (*http.R return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.organizations.locations.buckets.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *OrganizationsLocationsBucketsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +// Do executes the "logging.organizations.locations.buckets.patch" call. +// Exactly one of *LogBucket or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *LogBucket.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *OrganizationsLocationsBucketsPatchCall) Do(opts ...googleapi.CallOption) (*LogBucket, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -15366,7 +17704,7 @@ func (c *OrganizationsLocationsBucketsDeleteCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Empty{ + ret := &LogBucket{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -15378,25 +17716,34 @@ func (c *OrganizationsLocationsBucketsDeleteCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Deletes a bucket. Moves the bucket to the DELETE_REQUESTED state. After 7 days, the bucket will be purged and all logs in the bucket will be permanently deleted.", + // "description": "Updates a bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be returned.A buckets region may not be modified after it is created.", // "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}", - // "httpMethod": "DELETE", - // "id": "logging.organizations.locations.buckets.delete", + // "httpMethod": "PATCH", + // "id": "logging.organizations.locations.buckets.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The full resource name of the bucket to delete. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\".", + // "description": "Required. The full resource name of the bucket to update. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\". Also requires permission \"resourcemanager.projects.updateLiens\" to set the locked property", // "location": "path", // "pattern": "^organizations/[^/]+/locations/[^/]+/buckets/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=retention_days.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, // "path": "v2/{+name}", + // "request": { + // "$ref": "LogBucket" + // }, // "response": { - // "$ref": "Empty" + // "$ref": "LogBucket" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -15406,75 +17753,69 @@ func (c *OrganizationsLocationsBucketsDeleteCall) Do(opts ...googleapi.CallOptio } -// method id "logging.organizations.locations.buckets.get": +// method id "logging.organizations.locations.buckets.undelete": -type OrganizationsLocationsBucketsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsLocationsBucketsUndeleteCall struct { + s *Service + name string + undeletebucketrequest *UndeleteBucketRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets a bucket (Beta). -func (r *OrganizationsLocationsBucketsService) Get(name string) *OrganizationsLocationsBucketsGetCall { - c := &OrganizationsLocationsBucketsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Undelete: Undeletes a bucket. A bucket that has been deleted may be +// undeleted within the grace period of 7 days. +func (r *OrganizationsLocationsBucketsService) Undelete(name string, undeletebucketrequest *UndeleteBucketRequest) *OrganizationsLocationsBucketsUndeleteCall { + c := &OrganizationsLocationsBucketsUndeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.undeletebucketrequest = undeletebucketrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsLocationsBucketsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsBucketsGetCall { +func (c *OrganizationsLocationsBucketsUndeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsBucketsUndeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsLocationsBucketsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsBucketsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsLocationsBucketsGetCall) Context(ctx context.Context) *OrganizationsLocationsBucketsGetCall { +func (c *OrganizationsLocationsBucketsUndeleteCall) Context(ctx context.Context) *OrganizationsLocationsBucketsUndeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsLocationsBucketsGetCall) Header() http.Header { +func (c *OrganizationsLocationsBucketsUndeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsBucketsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsBucketsUndeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.undeletebucketrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:undelete") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -15485,14 +17826,14 @@ func (c *OrganizationsLocationsBucketsGetCall) doRequest(alt string) (*http.Resp return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.organizations.locations.buckets.get" call. -// Exactly one of *LogBucket or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LogBucket.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *OrganizationsLocationsBucketsGetCall) Do(opts ...googleapi.CallOption) (*LogBucket, error) { +// Do executes the "logging.organizations.locations.buckets.undelete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *OrganizationsLocationsBucketsUndeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -15511,7 +17852,7 @@ func (c *OrganizationsLocationsBucketsGetCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogBucket{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -15523,124 +17864,107 @@ func (c *OrganizationsLocationsBucketsGetCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Gets a bucket (Beta).", - // "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}", - // "httpMethod": "GET", - // "id": "logging.organizations.locations.buckets.get", + // "description": "Undeletes a bucket. A bucket that has been deleted may be undeleted within the grace period of 7 days.", + // "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}:undelete", + // "httpMethod": "POST", + // "id": "logging.organizations.locations.buckets.undelete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name of the bucket: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\".", + // "description": "Required. The full resource name of the bucket to undelete. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\".", // "location": "path", // "pattern": "^organizations/[^/]+/locations/[^/]+/buckets/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+name}", + // "path": "v2/{+name}:undelete", + // "request": { + // "$ref": "UndeleteBucketRequest" + // }, // "response": { - // "$ref": "LogBucket" + // "$ref": "Empty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/logging.admin", - // "https://www.googleapis.com/auth/logging.read" + // "https://www.googleapis.com/auth/logging.admin" // ] // } } -// method id "logging.organizations.locations.buckets.list": +// method id "logging.organizations.locations.buckets.views.create": -type OrganizationsLocationsBucketsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsLocationsBucketsViewsCreateCall struct { + s *Service + parent string + logview *LogView + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists buckets (Beta). -func (r *OrganizationsLocationsBucketsService) List(parent string) *OrganizationsLocationsBucketsListCall { - c := &OrganizationsLocationsBucketsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Create: Creates a view over logs in a bucket. A bucket may contain a +// maximum of 50 views. +func (r *OrganizationsLocationsBucketsViewsService) Create(parent string, logview *LogView) *OrganizationsLocationsBucketsViewsCreateCall { + c := &OrganizationsLocationsBucketsViewsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent + c.logview = logview return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return from this request. Non-positive values are -// ignored. The presence of nextPageToken in the response indicates that -// more results might be available. -func (c *OrganizationsLocationsBucketsListCall) PageSize(pageSize int64) *OrganizationsLocationsBucketsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": If present, then -// retrieve the next batch of results from the preceding call to this -// method. pageToken must be the value of nextPageToken from the -// previous response. The values of other method parameters should be -// identical to those in the previous call. -func (c *OrganizationsLocationsBucketsListCall) PageToken(pageToken string) *OrganizationsLocationsBucketsListCall { - c.urlParams_.Set("pageToken", pageToken) +// ViewId sets the optional parameter "viewId": Required. The id to use +// for this view. +func (c *OrganizationsLocationsBucketsViewsCreateCall) ViewId(viewId string) *OrganizationsLocationsBucketsViewsCreateCall { + c.urlParams_.Set("viewId", viewId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsLocationsBucketsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsBucketsListCall { +func (c *OrganizationsLocationsBucketsViewsCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsBucketsViewsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsLocationsBucketsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsBucketsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsLocationsBucketsListCall) Context(ctx context.Context) *OrganizationsLocationsBucketsListCall { +func (c *OrganizationsLocationsBucketsViewsCreateCall) Context(ctx context.Context) *OrganizationsLocationsBucketsViewsCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsLocationsBucketsListCall) Header() http.Header { +func (c *OrganizationsLocationsBucketsViewsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsBucketsListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsBucketsViewsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logview) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/buckets") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/views") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -15651,14 +17975,14 @@ func (c *OrganizationsLocationsBucketsListCall) doRequest(alt string) (*http.Res return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.organizations.locations.buckets.list" call. -// Exactly one of *ListBucketsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListBucketsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *OrganizationsLocationsBucketsListCall) Do(opts ...googleapi.CallOption) (*ListBucketsResponse, error) { +// Do executes the "logging.organizations.locations.buckets.views.create" call. +// Exactly one of *LogView or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *LogView.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *OrganizationsLocationsBucketsViewsCreateCall) Do(opts ...googleapi.CallOption) (*LogView, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -15677,7 +18001,7 @@ func (c *OrganizationsLocationsBucketsListCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListBucketsResponse{ + ret := &LogView{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -15689,109 +18013,63 @@ func (c *OrganizationsLocationsBucketsListCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Lists buckets (Beta).", - // "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets", - // "httpMethod": "GET", - // "id": "logging.organizations.locations.buckets.list", + // "description": "Creates a view over logs in a bucket. A bucket may contain a maximum of 50 views.", + // "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}/views", + // "httpMethod": "POST", + // "id": "logging.organizations.locations.buckets.views.create", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "pageSize": { - // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", - // "location": "query", - // "type": "string" - // }, // "parent": { - // "description": "Required. The parent resource whose buckets are to be listed: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]\" Note: The locations portion of the resource must be specified, but supplying the character - in place of LOCATION_ID will return all buckets.", + // "description": "Required. The bucket in which to create the view \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-logging-project/locations/my-location/buckets/my-bucket\"", // "location": "path", - // "pattern": "^organizations/[^/]+/locations/[^/]+$", + // "pattern": "^organizations/[^/]+/locations/[^/]+/buckets/[^/]+$", // "required": true, // "type": "string" + // }, + // "viewId": { + // "description": "Required. The id to use for this view.", + // "location": "query", + // "type": "string" // } // }, - // "path": "v2/{+parent}/buckets", + // "path": "v2/{+parent}/views", + // "request": { + // "$ref": "LogView" + // }, // "response": { - // "$ref": "ListBucketsResponse" + // "$ref": "LogView" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/logging.admin", - // "https://www.googleapis.com/auth/logging.read" + // "https://www.googleapis.com/auth/logging.admin" // ] // } } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *OrganizationsLocationsBucketsListCall) Pages(ctx context.Context, f func(*ListBucketsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -// method id "logging.organizations.locations.buckets.patch": +// method id "logging.organizations.locations.buckets.views.delete": -type OrganizationsLocationsBucketsPatchCall struct { +type OrganizationsLocationsBucketsViewsDeleteCall struct { s *Service name string - logbucket *LogBucket urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Patch: Updates a bucket. This method replaces the following fields in -// the existing bucket with values from the new bucket: -// retention_periodIf the retention period is decreased and the bucket -// is locked, FAILED_PRECONDITION will be returned.If the bucket has a -// LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be -// returned.A buckets region may not be modified after it is created. -// This method is in Beta. -func (r *OrganizationsLocationsBucketsService) Patch(name string, logbucket *LogBucket) *OrganizationsLocationsBucketsPatchCall { - c := &OrganizationsLocationsBucketsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Delete: Deletes a view from a bucket. +func (r *OrganizationsLocationsBucketsViewsService) Delete(name string) *OrganizationsLocationsBucketsViewsDeleteCall { + c := &OrganizationsLocationsBucketsViewsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.logbucket = logbucket - return c -} - -// UpdateMask sets the optional parameter "updateMask": Required. Field -// mask that specifies the fields in bucket that need an update. A -// bucket field will be overwritten if, and only if, it is in the update -// mask. name and output only fields cannot be updated.For a detailed -// FieldMask definition, see -// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: -// updateMask=retention_days. -func (c *OrganizationsLocationsBucketsPatchCall) UpdateMask(updateMask string) *OrganizationsLocationsBucketsPatchCall { - c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsLocationsBucketsPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsBucketsPatchCall { +func (c *OrganizationsLocationsBucketsViewsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsBucketsViewsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -15799,38 +18077,33 @@ func (c *OrganizationsLocationsBucketsPatchCall) Fields(s ...googleapi.Field) *O // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsLocationsBucketsPatchCall) Context(ctx context.Context) *OrganizationsLocationsBucketsPatchCall { +func (c *OrganizationsLocationsBucketsViewsDeleteCall) Context(ctx context.Context) *OrganizationsLocationsBucketsViewsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsLocationsBucketsPatchCall) Header() http.Header { +func (c *OrganizationsLocationsBucketsViewsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsBucketsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsBucketsViewsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logbucket) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -15841,14 +18114,14 @@ func (c *OrganizationsLocationsBucketsPatchCall) doRequest(alt string) (*http.Re return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.organizations.locations.buckets.patch" call. -// Exactly one of *LogBucket or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LogBucket.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *OrganizationsLocationsBucketsPatchCall) Do(opts ...googleapi.CallOption) (*LogBucket, error) { +// Do executes the "logging.organizations.locations.buckets.views.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *OrganizationsLocationsBucketsViewsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -15867,7 +18140,7 @@ func (c *OrganizationsLocationsBucketsPatchCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogBucket{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -15879,34 +18152,25 @@ func (c *OrganizationsLocationsBucketsPatchCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "Updates a bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be returned.A buckets region may not be modified after it is created. This method is in Beta.", - // "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}", - // "httpMethod": "PATCH", - // "id": "logging.organizations.locations.buckets.patch", + // "description": "Deletes a view from a bucket.", + // "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}", + // "httpMethod": "DELETE", + // "id": "logging.organizations.locations.buckets.views.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The full resource name of the bucket to update. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\". Also requires permission \"resourcemanager.projects.updateLiens\" to set the locked property", + // "description": "Required. The full resource name of the view to delete: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id\".", // "location": "path", - // "pattern": "^organizations/[^/]+/locations/[^/]+/buckets/[^/]+$", + // "pattern": "^organizations/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=retention_days.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, // "path": "v2/{+name}", - // "request": { - // "$ref": "LogBucket" - // }, // "response": { - // "$ref": "LogBucket" + // "$ref": "Empty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -15916,69 +18180,75 @@ func (c *OrganizationsLocationsBucketsPatchCall) Do(opts ...googleapi.CallOption } -// method id "logging.organizations.locations.buckets.undelete": +// method id "logging.organizations.locations.buckets.views.get": -type OrganizationsLocationsBucketsUndeleteCall struct { - s *Service - name string - undeletebucketrequest *UndeleteBucketRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsLocationsBucketsViewsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Undelete: Undeletes a bucket. A bucket that has been deleted may be -// undeleted within the grace period of 7 days. -func (r *OrganizationsLocationsBucketsService) Undelete(name string, undeletebucketrequest *UndeleteBucketRequest) *OrganizationsLocationsBucketsUndeleteCall { - c := &OrganizationsLocationsBucketsUndeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Get: Gets a view. +func (r *OrganizationsLocationsBucketsViewsService) Get(name string) *OrganizationsLocationsBucketsViewsGetCall { + c := &OrganizationsLocationsBucketsViewsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.undeletebucketrequest = undeletebucketrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsLocationsBucketsUndeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsBucketsUndeleteCall { +func (c *OrganizationsLocationsBucketsViewsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsBucketsViewsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsLocationsBucketsViewsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsBucketsViewsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsLocationsBucketsUndeleteCall) Context(ctx context.Context) *OrganizationsLocationsBucketsUndeleteCall { +func (c *OrganizationsLocationsBucketsViewsGetCall) Context(ctx context.Context) *OrganizationsLocationsBucketsViewsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsLocationsBucketsUndeleteCall) Header() http.Header { +func (c *OrganizationsLocationsBucketsViewsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsBucketsUndeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsBucketsViewsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.undeletebucketrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:undelete") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -15989,14 +18259,14 @@ func (c *OrganizationsLocationsBucketsUndeleteCall) doRequest(alt string) (*http return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.organizations.locations.buckets.undelete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// Do executes the "logging.organizations.locations.buckets.views.get" call. +// Exactly one of *LogView or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) +// *LogView.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *OrganizationsLocationsBucketsUndeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +func (c *OrganizationsLocationsBucketsViewsGetCall) Do(opts ...googleapi.CallOption) (*LogView, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -16015,7 +18285,7 @@ func (c *OrganizationsLocationsBucketsUndeleteCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Empty{ + ret := &LogView{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -16027,107 +18297,124 @@ func (c *OrganizationsLocationsBucketsUndeleteCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Undeletes a bucket. A bucket that has been deleted may be undeleted within the grace period of 7 days.", - // "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}:undelete", - // "httpMethod": "POST", - // "id": "logging.organizations.locations.buckets.undelete", + // "description": "Gets a view.", + // "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}", + // "httpMethod": "GET", + // "id": "logging.organizations.locations.buckets.views.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The full resource name of the bucket to undelete. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id\".", + // "description": "Required. The resource name of the policy: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id\".", // "location": "path", - // "pattern": "^organizations/[^/]+/locations/[^/]+/buckets/[^/]+$", + // "pattern": "^organizations/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+name}:undelete", - // "request": { - // "$ref": "UndeleteBucketRequest" - // }, + // "path": "v2/{+name}", // "response": { - // "$ref": "Empty" + // "$ref": "LogView" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin" + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/logging.admin", + // "https://www.googleapis.com/auth/logging.read" // ] // } } -// method id "logging.organizations.locations.buckets.views.create": +// method id "logging.organizations.locations.buckets.views.list": -type OrganizationsLocationsBucketsViewsCreateCall struct { - s *Service - parent string - logview *LogView - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsLocationsBucketsViewsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a view over logs in a bucket. A bucket may contain a -// maximum of 50 views. -func (r *OrganizationsLocationsBucketsViewsService) Create(parent string, logview *LogView) *OrganizationsLocationsBucketsViewsCreateCall { - c := &OrganizationsLocationsBucketsViewsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// List: Lists views on a bucket. +func (r *OrganizationsLocationsBucketsViewsService) List(parent string) *OrganizationsLocationsBucketsViewsListCall { + c := &OrganizationsLocationsBucketsViewsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.logview = logview return c } -// ViewId sets the optional parameter "viewId": Required. The id to use -// for this view. -func (c *OrganizationsLocationsBucketsViewsCreateCall) ViewId(viewId string) *OrganizationsLocationsBucketsViewsCreateCall { - c.urlParams_.Set("viewId", viewId) +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return from this request. Non-positive values are +// ignored. The presence of nextPageToken in the response indicates that +// more results might be available. +func (c *OrganizationsLocationsBucketsViewsListCall) PageSize(pageSize int64) *OrganizationsLocationsBucketsViewsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": If present, then +// retrieve the next batch of results from the preceding call to this +// method. pageToken must be the value of nextPageToken from the +// previous response. The values of other method parameters should be +// identical to those in the previous call. +func (c *OrganizationsLocationsBucketsViewsListCall) PageToken(pageToken string) *OrganizationsLocationsBucketsViewsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsLocationsBucketsViewsCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsBucketsViewsCreateCall { +func (c *OrganizationsLocationsBucketsViewsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsBucketsViewsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsLocationsBucketsViewsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsBucketsViewsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsLocationsBucketsViewsCreateCall) Context(ctx context.Context) *OrganizationsLocationsBucketsViewsCreateCall { +func (c *OrganizationsLocationsBucketsViewsListCall) Context(ctx context.Context) *OrganizationsLocationsBucketsViewsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsLocationsBucketsViewsCreateCall) Header() http.Header { +func (c *OrganizationsLocationsBucketsViewsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsBucketsViewsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsBucketsViewsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logview) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/views") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -16138,14 +18425,14 @@ func (c *OrganizationsLocationsBucketsViewsCreateCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.organizations.locations.buckets.views.create" call. -// Exactly one of *LogView or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *LogView.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *OrganizationsLocationsBucketsViewsCreateCall) Do(opts ...googleapi.CallOption) (*LogView, error) { +// Do executes the "logging.organizations.locations.buckets.views.list" call. +// Exactly one of *ListViewsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListViewsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsLocationsBucketsViewsListCall) Do(opts ...googleapi.CallOption) (*ListViewsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -16164,7 +18451,7 @@ func (c *OrganizationsLocationsBucketsViewsCreateCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogView{ + ret := &ListViewsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -16176,63 +18463,104 @@ func (c *OrganizationsLocationsBucketsViewsCreateCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Creates a view over logs in a bucket. A bucket may contain a maximum of 50 views.", + // "description": "Lists views on a bucket.", // "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}/views", - // "httpMethod": "POST", - // "id": "logging.organizations.locations.buckets.views.create", + // "httpMethod": "GET", + // "id": "logging.organizations.locations.buckets.views.list", // "parameterOrder": [ // "parent" // ], // "parameters": { + // "pageSize": { + // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", + // "location": "query", + // "type": "string" + // }, // "parent": { - // "description": "Required. The bucket in which to create the view \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" Example: \"projects/my-logging-project/locations/my-location/buckets/my-bucket\"", + // "description": "Required. The bucket whose views are to be listed: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" ", // "location": "path", // "pattern": "^organizations/[^/]+/locations/[^/]+/buckets/[^/]+$", // "required": true, // "type": "string" - // }, - // "viewId": { - // "description": "Required. The id to use for this view.", - // "location": "query", - // "type": "string" // } // }, // "path": "v2/{+parent}/views", - // "request": { - // "$ref": "LogView" - // }, // "response": { - // "$ref": "LogView" + // "$ref": "ListViewsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin" + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/logging.admin", + // "https://www.googleapis.com/auth/logging.read" // ] // } } -// method id "logging.organizations.locations.buckets.views.delete": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *OrganizationsLocationsBucketsViewsListCall) Pages(ctx context.Context, f func(*ListViewsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type OrganizationsLocationsBucketsViewsDeleteCall struct { +// method id "logging.organizations.locations.buckets.views.patch": + +type OrganizationsLocationsBucketsViewsPatchCall struct { s *Service name string + logview *LogView urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Delete: Deletes a view from a bucket. -func (r *OrganizationsLocationsBucketsViewsService) Delete(name string) *OrganizationsLocationsBucketsViewsDeleteCall { - c := &OrganizationsLocationsBucketsViewsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Patch: Updates a view. This method replaces the following fields in +// the existing view with values from the new view: filter. +func (r *OrganizationsLocationsBucketsViewsService) Patch(name string, logview *LogView) *OrganizationsLocationsBucketsViewsPatchCall { + c := &OrganizationsLocationsBucketsViewsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.logview = logview + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask that +// specifies the fields in view that need an update. A field will be +// overwritten if, and only if, it is in the update mask. name and +// output only fields cannot be updated.For a detailed FieldMask +// definition, see +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: +// updateMask=filter. +func (c *OrganizationsLocationsBucketsViewsPatchCall) UpdateMask(updateMask string) *OrganizationsLocationsBucketsViewsPatchCall { + c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsLocationsBucketsViewsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsBucketsViewsDeleteCall { +func (c *OrganizationsLocationsBucketsViewsPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsBucketsViewsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -16240,33 +18568,38 @@ func (c *OrganizationsLocationsBucketsViewsDeleteCall) Fields(s ...googleapi.Fie // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsLocationsBucketsViewsDeleteCall) Context(ctx context.Context) *OrganizationsLocationsBucketsViewsDeleteCall { +func (c *OrganizationsLocationsBucketsViewsPatchCall) Context(ctx context.Context) *OrganizationsLocationsBucketsViewsPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsLocationsBucketsViewsDeleteCall) Header() http.Header { +func (c *OrganizationsLocationsBucketsViewsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsBucketsViewsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsBucketsViewsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logview) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -16277,14 +18610,14 @@ func (c *OrganizationsLocationsBucketsViewsDeleteCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.organizations.locations.buckets.views.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// Do executes the "logging.organizations.locations.buckets.views.patch" call. +// Exactly one of *LogView or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) +// *LogView.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *OrganizationsLocationsBucketsViewsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +func (c *OrganizationsLocationsBucketsViewsPatchCall) Do(opts ...googleapi.CallOption) (*LogView, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -16303,7 +18636,7 @@ func (c *OrganizationsLocationsBucketsViewsDeleteCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Empty{ + ret := &LogView{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -16315,25 +18648,34 @@ func (c *OrganizationsLocationsBucketsViewsDeleteCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Deletes a view from a bucket.", + // "description": "Updates a view. This method replaces the following fields in the existing view with values from the new view: filter.", // "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}", - // "httpMethod": "DELETE", - // "id": "logging.organizations.locations.buckets.views.delete", + // "httpMethod": "PATCH", + // "id": "logging.organizations.locations.buckets.views.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The full resource name of the view to delete: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id\".", + // "description": "Required. The full resource name of the view to update \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id\".", // "location": "path", // "pattern": "^organizations/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Optional. Field mask that specifies the fields in view that need an update. A field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, // "path": "v2/{+name}", + // "request": { + // "$ref": "LogView" + // }, // "response": { - // "$ref": "Empty" + // "$ref": "LogView" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -16343,93 +18685,82 @@ func (c *OrganizationsLocationsBucketsViewsDeleteCall) Do(opts ...googleapi.Call } -// method id "logging.organizations.locations.buckets.views.get": +// method id "logging.organizations.logs.delete": -type OrganizationsLocationsBucketsViewsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsLogsDeleteCall struct { + s *Service + logName string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets a view. -func (r *OrganizationsLocationsBucketsViewsService) Get(name string) *OrganizationsLocationsBucketsViewsGetCall { - c := &OrganizationsLocationsBucketsViewsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// Delete: Deletes all the log entries in a log. The log reappears if it +// receives new entries. Log entries written shortly before the delete +// operation might not be deleted. Entries received after the delete +// operation with a timestamp before the operation will be deleted. +func (r *OrganizationsLogsService) Delete(logName string) *OrganizationsLogsDeleteCall { + c := &OrganizationsLogsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.logName = logName return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsLocationsBucketsViewsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsBucketsViewsGetCall { +func (c *OrganizationsLogsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLogsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsLocationsBucketsViewsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsBucketsViewsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsLocationsBucketsViewsGetCall) Context(ctx context.Context) *OrganizationsLocationsBucketsViewsGetCall { +func (c *OrganizationsLogsDeleteCall) Context(ctx context.Context) *OrganizationsLogsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsLocationsBucketsViewsGetCall) Header() http.Header { +func (c *OrganizationsLogsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsBucketsViewsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLogsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+logName}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "logName": c.logName, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.organizations.locations.buckets.views.get" call. -// Exactly one of *LogView or error will be non-nil. Any non-2xx status +// Do executes the "logging.organizations.logs.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either -// *LogView.ServerResponse.Header or (if a response was returned at all) +// *Empty.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *OrganizationsLocationsBucketsViewsGetCall) Do(opts ...googleapi.CallOption) (*LogView, error) { +func (c *OrganizationsLogsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -16448,7 +18779,7 @@ func (c *OrganizationsLocationsBucketsViewsGetCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogView{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -16460,39 +18791,37 @@ func (c *OrganizationsLocationsBucketsViewsGetCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Gets a view.", - // "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}", - // "httpMethod": "GET", - // "id": "logging.organizations.locations.buckets.views.get", + // "description": "Deletes all the log entries in a log. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted. Entries received after the delete operation with a timestamp before the operation will be deleted.", + // "flatPath": "v2/organizations/{organizationsId}/logs/{logsId}", + // "httpMethod": "DELETE", + // "id": "logging.organizations.logs.delete", // "parameterOrder": [ - // "name" + // "logName" // ], // "parameters": { - // "name": { - // "description": "Required. The resource name of the policy: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id\".", + // "logName": { + // "description": "Required. The resource name of the log to delete: \"projects/[PROJECT_ID]/logs/[LOG_ID]\" \"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\" \"folders/[FOLDER_ID]/logs/[LOG_ID]\" [LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.", // "location": "path", - // "pattern": "^organizations/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", + // "pattern": "^organizations/[^/]+/logs/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+name}", + // "path": "v2/{+logName}", // "response": { - // "$ref": "LogView" + // "$ref": "Empty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/logging.admin", - // "https://www.googleapis.com/auth/logging.read" + // "https://www.googleapis.com/auth/logging.admin" // ] // } } -// method id "logging.organizations.locations.buckets.views.list": +// method id "logging.organizations.logs.list": -type OrganizationsLocationsBucketsViewsListCall struct { +type OrganizationsLogsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -16501,9 +18830,10 @@ type OrganizationsLocationsBucketsViewsListCall struct { header_ http.Header } -// List: Lists views on a bucket.. -func (r *OrganizationsLocationsBucketsViewsService) List(parent string) *OrganizationsLocationsBucketsViewsListCall { - c := &OrganizationsLocationsBucketsViewsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// List: Lists the logs in projects, organizations, folders, or billing +// accounts. Only logs that have entries are listed. +func (r *OrganizationsLogsService) List(parent string) *OrganizationsLogsListCall { + c := &OrganizationsLogsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } @@ -16512,7 +18842,7 @@ func (r *OrganizationsLocationsBucketsViewsService) List(parent string) *Organiz // of results to return from this request. Non-positive values are // ignored. The presence of nextPageToken in the response indicates that // more results might be available. -func (c *OrganizationsLocationsBucketsViewsListCall) PageSize(pageSize int64) *OrganizationsLocationsBucketsViewsListCall { +func (c *OrganizationsLogsListCall) PageSize(pageSize int64) *OrganizationsLogsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } @@ -16522,15 +18852,32 @@ func (c *OrganizationsLocationsBucketsViewsListCall) PageSize(pageSize int64) *O // method. pageToken must be the value of nextPageToken from the // previous response. The values of other method parameters should be // identical to those in the previous call. -func (c *OrganizationsLocationsBucketsViewsListCall) PageToken(pageToken string) *OrganizationsLocationsBucketsViewsListCall { +func (c *OrganizationsLogsListCall) PageToken(pageToken string) *OrganizationsLogsListCall { c.urlParams_.Set("pageToken", pageToken) return c } +// ResourceNames sets the optional parameter "resourceNames": The +// resource name that owns the logs: +// projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW +// _ID +// organization/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/v +// iews/VIEW_ID +// billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKE +// T_ID/views/VIEW_ID +// folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_I +// DTo support legacy queries, it could also be: "projects/PROJECT_ID" +// "organizations/ORGANIZATION_ID" "billingAccounts/BILLING_ACCOUNT_ID" +// "folders/FOLDER_ID" +func (c *OrganizationsLogsListCall) ResourceNames(resourceNames ...string) *OrganizationsLogsListCall { + c.urlParams_.SetMulti("resourceNames", append([]string{}, resourceNames...)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsLocationsBucketsViewsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsBucketsViewsListCall { +func (c *OrganizationsLogsListCall) Fields(s ...googleapi.Field) *OrganizationsLogsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -16540,7 +18887,7 @@ func (c *OrganizationsLocationsBucketsViewsListCall) Fields(s ...googleapi.Field // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OrganizationsLocationsBucketsViewsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsBucketsViewsListCall { +func (c *OrganizationsLogsListCall) IfNoneMatch(entityTag string) *OrganizationsLogsListCall { c.ifNoneMatch_ = entityTag return c } @@ -16548,23 +18895,23 @@ func (c *OrganizationsLocationsBucketsViewsListCall) IfNoneMatch(entityTag strin // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsLocationsBucketsViewsListCall) Context(ctx context.Context) *OrganizationsLocationsBucketsViewsListCall { +func (c *OrganizationsLogsListCall) Context(ctx context.Context) *OrganizationsLogsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsLocationsBucketsViewsListCall) Header() http.Header { +func (c *OrganizationsLogsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsBucketsViewsListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLogsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16575,7 +18922,7 @@ func (c *OrganizationsLocationsBucketsViewsListCall) doRequest(alt string) (*htt var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/views") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/logs") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -16588,14 +18935,14 @@ func (c *OrganizationsLocationsBucketsViewsListCall) doRequest(alt string) (*htt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.organizations.locations.buckets.views.list" call. -// Exactly one of *ListViewsResponse or error will be non-nil. Any +// Do executes the "logging.organizations.logs.list" call. +// Exactly one of *ListLogsResponse or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either -// *ListViewsResponse.ServerResponse.Header or (if a response was +// *ListLogsResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsLocationsBucketsViewsListCall) Do(opts ...googleapi.CallOption) (*ListViewsResponse, error) { +func (c *OrganizationsLogsListCall) Do(opts ...googleapi.CallOption) (*ListLogsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -16614,7 +18961,7 @@ func (c *OrganizationsLocationsBucketsViewsListCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListViewsResponse{ + ret := &ListLogsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -16626,10 +18973,10 @@ func (c *OrganizationsLocationsBucketsViewsListCall) Do(opts ...googleapi.CallOp } return ret, nil // { - // "description": "Lists views on a bucket..", - // "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}/views", + // "description": "Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.", + // "flatPath": "v2/organizations/{organizationsId}/logs", // "httpMethod": "GET", - // "id": "logging.organizations.locations.buckets.views.list", + // "id": "logging.organizations.logs.list", // "parameterOrder": [ // "parent" // ], @@ -16646,16 +18993,22 @@ func (c *OrganizationsLocationsBucketsViewsListCall) Do(opts ...googleapi.CallOp // "type": "string" // }, // "parent": { - // "description": "Required. The bucket whose views are to be listed: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" ", + // "description": "Required. The resource name that owns the logs: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ", // "location": "path", - // "pattern": "^organizations/[^/]+/locations/[^/]+/buckets/[^/]+$", + // "pattern": "^organizations/[^/]+$", // "required": true, // "type": "string" + // }, + // "resourceNames": { + // "description": "Optional. The resource name that owns the logs: projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID organization/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_IDTo support legacy queries, it could also be: \"projects/PROJECT_ID\" \"organizations/ORGANIZATION_ID\" \"billingAccounts/BILLING_ACCOUNT_ID\" \"folders/FOLDER_ID\"", + // "location": "query", + // "repeated": true, + // "type": "string" // } // }, - // "path": "v2/{+parent}/views", + // "path": "v2/{+parent}/logs", // "response": { - // "$ref": "ListViewsResponse" + // "$ref": "ListLogsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -16670,7 +19023,7 @@ func (c *OrganizationsLocationsBucketsViewsListCall) Do(opts ...googleapi.CallOp // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *OrganizationsLocationsBucketsViewsListCall) Pages(ctx context.Context, f func(*ListViewsResponse) error) error { +func (c *OrganizationsLogsListCall) Pages(ctx context.Context, f func(*ListLogsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -16688,190 +19041,49 @@ func (c *OrganizationsLocationsBucketsViewsListCall) Pages(ctx context.Context, } } -// method id "logging.organizations.locations.buckets.views.patch": +// method id "logging.organizations.sinks.create": -type OrganizationsLocationsBucketsViewsPatchCall struct { +type OrganizationsSinksCreateCall struct { s *Service - name string - logview *LogView + parent string + logsink *LogSink urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Patch: Updates a view. This method replaces the following fields in -// the existing view with values from the new view: filter. -func (r *OrganizationsLocationsBucketsViewsService) Patch(name string, logview *LogView) *OrganizationsLocationsBucketsViewsPatchCall { - c := &OrganizationsLocationsBucketsViewsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.logview = logview - return c -} - -// UpdateMask sets the optional parameter "updateMask": Field mask that -// specifies the fields in view that need an update. A field will be -// overwritten if, and only if, it is in the update mask. name and -// output only fields cannot be updated.For a detailed FieldMask -// definition, see -// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: -// updateMask=filter. -func (c *OrganizationsLocationsBucketsViewsPatchCall) UpdateMask(updateMask string) *OrganizationsLocationsBucketsViewsPatchCall { - c.urlParams_.Set("updateMask", updateMask) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *OrganizationsLocationsBucketsViewsPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsBucketsViewsPatchCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *OrganizationsLocationsBucketsViewsPatchCall) Context(ctx context.Context) *OrganizationsLocationsBucketsViewsPatchCall { - c.ctx_ = ctx +// Create: Creates a sink that exports specified log entries to a +// destination. The export of newly-ingested log entries begins +// immediately, unless the sink's writer_identity is not permitted to +// write to the destination. A sink can export log entries only from the +// resource owning the sink. +func (r *OrganizationsSinksService) Create(parent string, logsink *LogSink) *OrganizationsSinksCreateCall { + c := &OrganizationsSinksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.logsink = logsink return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *OrganizationsLocationsBucketsViewsPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *OrganizationsLocationsBucketsViewsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logview) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "logging.organizations.locations.buckets.views.patch" call. -// Exactly one of *LogView or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *LogView.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *OrganizationsLocationsBucketsViewsPatchCall) Do(opts ...googleapi.CallOption) (*LogView, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, &googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - } - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - ret := &LogView{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Updates a view. This method replaces the following fields in the existing view with values from the new view: filter.", - // "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}", - // "httpMethod": "PATCH", - // "id": "logging.organizations.locations.buckets.views.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The full resource name of the view to update \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" Example: \"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id\".", - // "location": "path", - // "pattern": "^organizations/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Optional. Field mask that specifies the fields in view that need an update. A field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2/{+name}", - // "request": { - // "$ref": "LogView" - // }, - // "response": { - // "$ref": "LogView" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin" - // ] - // } - -} - -// method id "logging.organizations.logs.delete": - -type OrganizationsLogsDeleteCall struct { - s *Service - logName string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes all the log entries in a log. The log reappears if it -// receives new entries. Log entries written shortly before the delete -// operation might not be deleted. Entries received after the delete -// operation with a timestamp before the operation will be deleted. -func (r *OrganizationsLogsService) Delete(logName string) *OrganizationsLogsDeleteCall { - c := &OrganizationsLogsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.logName = logName +// UniqueWriterIdentity sets the optional parameter +// "uniqueWriterIdentity": Determines the kind of IAM identity returned +// as writer_identity in the new sink. If this value is omitted or set +// to false, and if the sink's parent is a project, then the value +// returned as writer_identity is the same group or service account used +// by Logging before the addition of writer identities to this API. The +// sink's destination must be in the same project as the sink itself.If +// this field is set to true, or if the sink is owned by a non-project +// resource such as an organization, then the value of writer_identity +// will be a unique service account used only for exports from the new +// sink. For more information, see writer_identity in LogSink. +func (c *OrganizationsSinksCreateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *OrganizationsSinksCreateCall { + c.urlParams_.Set("uniqueWriterIdentity", fmt.Sprint(uniqueWriterIdentity)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsLogsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLogsDeleteCall { +func (c *OrganizationsSinksCreateCall) Fields(s ...googleapi.Field) *OrganizationsSinksCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -16879,51 +19091,56 @@ func (c *OrganizationsLogsDeleteCall) Fields(s ...googleapi.Field) *Organization // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsLogsDeleteCall) Context(ctx context.Context) *OrganizationsLogsDeleteCall { +func (c *OrganizationsSinksCreateCall) Context(ctx context.Context) *OrganizationsSinksCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsLogsDeleteCall) Header() http.Header { +func (c *OrganizationsSinksCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLogsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsSinksCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logsink) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+logName}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/sinks") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "logName": c.logName, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.organizations.logs.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// Do executes the "logging.organizations.sinks.create" call. +// Exactly one of *LogSink or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) +// *LogSink.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *OrganizationsLogsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +func (c *OrganizationsSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogSink, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -16942,7 +19159,7 @@ func (c *OrganizationsLogsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Empty{ + ret := &LogSink{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -16954,25 +19171,33 @@ func (c *OrganizationsLogsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, } return ret, nil // { - // "description": "Deletes all the log entries in a log. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted. Entries received after the delete operation with a timestamp before the operation will be deleted.", - // "flatPath": "v2/organizations/{organizationsId}/logs/{logsId}", - // "httpMethod": "DELETE", - // "id": "logging.organizations.logs.delete", + // "description": "Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", + // "flatPath": "v2/organizations/{organizationsId}/sinks", + // "httpMethod": "POST", + // "id": "logging.organizations.sinks.create", // "parameterOrder": [ - // "logName" + // "parent" // ], // "parameters": { - // "logName": { - // "description": "Required. The resource name of the log to delete: \"projects/[PROJECT_ID]/logs/[LOG_ID]\" \"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\" \"folders/[FOLDER_ID]/logs/[LOG_ID]\" [LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.", + // "parent": { + // "description": "Required. The resource in which to create the sink: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" Examples: \"projects/my-logging-project\", \"organizations/123456789\".", // "location": "path", - // "pattern": "^organizations/[^/]+/logs/[^/]+$", + // "pattern": "^organizations/[^/]+$", // "required": true, // "type": "string" + // }, + // "uniqueWriterIdentity": { + // "description": "Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value returned as writer_identity is the same group or service account used by Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink.", + // "location": "query", + // "type": "boolean" // } // }, - // "path": "v2/{+logName}", + // "path": "v2/{+parent}/sinks", + // "request": { + // "$ref": "LogSink" + // }, // "response": { - // "$ref": "Empty" + // "$ref": "LogSink" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -16982,113 +19207,80 @@ func (c *OrganizationsLogsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, } -// method id "logging.organizations.logs.list": - -type OrganizationsLogsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists the logs in projects, organizations, folders, or billing -// accounts. Only logs that have entries are listed. -func (r *OrganizationsLogsService) List(parent string) *OrganizationsLogsListCall { - c := &OrganizationsLogsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} +// method id "logging.organizations.sinks.delete": -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return from this request. Non-positive values are -// ignored. The presence of nextPageToken in the response indicates that -// more results might be available. -func (c *OrganizationsLogsListCall) PageSize(pageSize int64) *OrganizationsLogsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c +type OrganizationsSinksDeleteCall struct { + s *Service + sinkNameid string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// PageToken sets the optional parameter "pageToken": If present, then -// retrieve the next batch of results from the preceding call to this -// method. pageToken must be the value of nextPageToken from the -// previous response. The values of other method parameters should be -// identical to those in the previous call. -func (c *OrganizationsLogsListCall) PageToken(pageToken string) *OrganizationsLogsListCall { - c.urlParams_.Set("pageToken", pageToken) +// Delete: Deletes a sink. If the sink has a unique writer_identity, +// then that service account is also deleted. +func (r *OrganizationsSinksService) Delete(sinkNameid string) *OrganizationsSinksDeleteCall { + c := &OrganizationsSinksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.sinkNameid = sinkNameid return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsLogsListCall) Fields(s ...googleapi.Field) *OrganizationsLogsListCall { +func (c *OrganizationsSinksDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSinksDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsLogsListCall) IfNoneMatch(entityTag string) *OrganizationsLogsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsLogsListCall) Context(ctx context.Context) *OrganizationsLogsListCall { +func (c *OrganizationsSinksDeleteCall) Context(ctx context.Context) *OrganizationsSinksDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsLogsListCall) Header() http.Header { +func (c *OrganizationsSinksDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLogsListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsSinksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/logs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+sinkName}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "sinkName": c.sinkNameid, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.organizations.logs.list" call. -// Exactly one of *ListLogsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListLogsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *OrganizationsLogsListCall) Do(opts ...googleapi.CallOption) (*ListLogsResponse, error) { +// Do executes the "logging.organizations.sinks.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *OrganizationsSinksDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -17107,7 +19299,7 @@ func (c *OrganizationsLogsListCall) Do(opts ...googleapi.CallOption) (*ListLogsR if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListLogsResponse{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -17119,168 +19311,121 @@ func (c *OrganizationsLogsListCall) Do(opts ...googleapi.CallOption) (*ListLogsR } return ret, nil // { - // "description": "Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.", - // "flatPath": "v2/organizations/{organizationsId}/logs", - // "httpMethod": "GET", - // "id": "logging.organizations.logs.list", + // "description": "Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.", + // "flatPath": "v2/organizations/{organizationsId}/sinks/{sinksId}", + // "httpMethod": "DELETE", + // "id": "logging.organizations.sinks.delete", // "parameterOrder": [ - // "parent" + // "sinkName" // ], // "parameters": { - // "pageSize": { - // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name that owns the logs: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ", + // "sinkName": { + // "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" Example: \"projects/my-project-id/sinks/my-sink-id\".", // "location": "path", - // "pattern": "^organizations/[^/]+$", + // "pattern": "^organizations/[^/]+/sinks/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+parent}/logs", + // "path": "v2/{+sinkName}", // "response": { - // "$ref": "ListLogsResponse" + // "$ref": "Empty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/logging.admin", - // "https://www.googleapis.com/auth/logging.read" + // "https://www.googleapis.com/auth/logging.admin" // ] // } } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *OrganizationsLogsListCall) Pages(ctx context.Context, f func(*ListLogsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -// method id "logging.organizations.sinks.create": - -type OrganizationsSinksCreateCall struct { - s *Service - parent string - logsink *LogSink - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} +// method id "logging.organizations.sinks.get": -// Create: Creates a sink that exports specified log entries to a -// destination. The export of newly-ingested log entries begins -// immediately, unless the sink's writer_identity is not permitted to -// write to the destination. A sink can export log entries only from the -// resource owning the sink. -func (r *OrganizationsSinksService) Create(parent string, logsink *LogSink) *OrganizationsSinksCreateCall { - c := &OrganizationsSinksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.logsink = logsink - return c +type OrganizationsSinksGetCall struct { + s *Service + sinkName string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// UniqueWriterIdentity sets the optional parameter -// "uniqueWriterIdentity": Determines the kind of IAM identity returned -// as writer_identity in the new sink. If this value is omitted or set -// to false, and if the sink's parent is a project, then the value -// returned as writer_identity is the same group or service account used -// by Logging before the addition of writer identities to this API. The -// sink's destination must be in the same project as the sink itself.If -// this field is set to true, or if the sink is owned by a non-project -// resource such as an organization, then the value of writer_identity -// will be a unique service account used only for exports from the new -// sink. For more information, see writer_identity in LogSink. -func (c *OrganizationsSinksCreateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *OrganizationsSinksCreateCall { - c.urlParams_.Set("uniqueWriterIdentity", fmt.Sprint(uniqueWriterIdentity)) +// Get: Gets a sink. +func (r *OrganizationsSinksService) Get(sinkName string) *OrganizationsSinksGetCall { + c := &OrganizationsSinksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.sinkName = sinkName return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsSinksCreateCall) Fields(s ...googleapi.Field) *OrganizationsSinksCreateCall { +func (c *OrganizationsSinksGetCall) Fields(s ...googleapi.Field) *OrganizationsSinksGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsSinksGetCall) IfNoneMatch(entityTag string) *OrganizationsSinksGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsSinksCreateCall) Context(ctx context.Context) *OrganizationsSinksCreateCall { +func (c *OrganizationsSinksGetCall) Context(ctx context.Context) *OrganizationsSinksGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsSinksCreateCall) Header() http.Header { +func (c *OrganizationsSinksGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsSinksCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsSinksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logsink) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/sinks") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+sinkName}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "sinkName": c.sinkName, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.organizations.sinks.create" call. +// Do executes the "logging.organizations.sinks.get" call. // Exactly one of *LogSink or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either // *LogSink.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *OrganizationsSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogSink, error) { +func (c *OrganizationsSinksGetCall) Do(opts ...googleapi.CallOption) (*LogSink, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -17311,116 +19456,142 @@ func (c *OrganizationsSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogSin } return ret, nil // { - // "description": "Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", - // "flatPath": "v2/organizations/{organizationsId}/sinks", - // "httpMethod": "POST", - // "id": "logging.organizations.sinks.create", + // "description": "Gets a sink.", + // "flatPath": "v2/organizations/{organizationsId}/sinks/{sinksId}", + // "httpMethod": "GET", + // "id": "logging.organizations.sinks.get", // "parameterOrder": [ - // "parent" + // "sinkName" // ], // "parameters": { - // "parent": { - // "description": "Required. The resource in which to create the sink: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" Examples: \"projects/my-logging-project\", \"organizations/123456789\".", + // "sinkName": { + // "description": "Required. The resource name of the sink: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" Example: \"projects/my-project-id/sinks/my-sink-id\".", // "location": "path", - // "pattern": "^organizations/[^/]+$", + // "pattern": "^organizations/[^/]+/sinks/[^/]+$", // "required": true, // "type": "string" - // }, - // "uniqueWriterIdentity": { - // "description": "Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value returned as writer_identity is the same group or service account used by Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink.", - // "location": "query", - // "type": "boolean" // } // }, - // "path": "v2/{+parent}/sinks", - // "request": { - // "$ref": "LogSink" - // }, + // "path": "v2/{+sinkName}", // "response": { // "$ref": "LogSink" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin" + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/logging.admin", + // "https://www.googleapis.com/auth/logging.read" // ] // } } -// method id "logging.organizations.sinks.delete": +// method id "logging.organizations.sinks.list": -type OrganizationsSinksDeleteCall struct { - s *Service - sinkNameid string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsSinksListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a sink. If the sink has a unique writer_identity, -// then that service account is also deleted. -func (r *OrganizationsSinksService) Delete(sinkNameid string) *OrganizationsSinksDeleteCall { - c := &OrganizationsSinksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.sinkNameid = sinkNameid +// List: Lists sinks. +func (r *OrganizationsSinksService) List(parent string) *OrganizationsSinksListCall { + c := &OrganizationsSinksListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return from this request. Non-positive values are +// ignored. The presence of nextPageToken in the response indicates that +// more results might be available. +func (c *OrganizationsSinksListCall) PageSize(pageSize int64) *OrganizationsSinksListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": If present, then +// retrieve the next batch of results from the preceding call to this +// method. pageToken must be the value of nextPageToken from the +// previous response. The values of other method parameters should be +// identical to those in the previous call. +func (c *OrganizationsSinksListCall) PageToken(pageToken string) *OrganizationsSinksListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsSinksDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSinksDeleteCall { +func (c *OrganizationsSinksListCall) Fields(s ...googleapi.Field) *OrganizationsSinksListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsSinksListCall) IfNoneMatch(entityTag string) *OrganizationsSinksListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsSinksDeleteCall) Context(ctx context.Context) *OrganizationsSinksDeleteCall { +func (c *OrganizationsSinksListCall) Context(ctx context.Context) *OrganizationsSinksListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsSinksDeleteCall) Header() http.Header { +func (c *OrganizationsSinksListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsSinksDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsSinksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+sinkName}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/sinks") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "sinkName": c.sinkNameid, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.organizations.sinks.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *OrganizationsSinksDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +// Do executes the "logging.organizations.sinks.list" call. +// Exactly one of *ListSinksResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListSinksResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsSinksListCall) Do(opts ...googleapi.CallOption) (*ListSinksResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -17439,7 +19610,7 @@ func (c *OrganizationsSinksDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Empty{ + ret := &ListSinksResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -17451,121 +19622,181 @@ func (c *OrganizationsSinksDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, } return ret, nil // { - // "description": "Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.", - // "flatPath": "v2/organizations/{organizationsId}/sinks/{sinksId}", - // "httpMethod": "DELETE", - // "id": "logging.organizations.sinks.delete", + // "description": "Lists sinks.", + // "flatPath": "v2/organizations/{organizationsId}/sinks", + // "httpMethod": "GET", + // "id": "logging.organizations.sinks.list", // "parameterOrder": [ - // "sinkName" + // "parent" // ], // "parameters": { - // "sinkName": { - // "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" Example: \"projects/my-project-id/sinks/my-sink-id\".", + // "pageSize": { + // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent resource whose sinks are to be listed: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ", // "location": "path", - // "pattern": "^organizations/[^/]+/sinks/[^/]+$", + // "pattern": "^organizations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+sinkName}", + // "path": "v2/{+parent}/sinks", // "response": { - // "$ref": "Empty" + // "$ref": "ListSinksResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin" + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/logging.admin", + // "https://www.googleapis.com/auth/logging.read" // ] // } } -// method id "logging.organizations.sinks.get": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *OrganizationsSinksListCall) Pages(ctx context.Context, f func(*ListSinksResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type OrganizationsSinksGetCall struct { - s *Service - sinkName string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// method id "logging.organizations.sinks.patch": + +type OrganizationsSinksPatchCall struct { + s *Service + sinkNameid string + logsink *LogSink + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets a sink. -func (r *OrganizationsSinksService) Get(sinkName string) *OrganizationsSinksGetCall { - c := &OrganizationsSinksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.sinkName = sinkName +// Patch: Updates a sink. This method replaces the following fields in +// the existing sink with values from the new sink: destination, and +// filter.The updated sink might also have a new writer_identity; see +// the unique_writer_identity field. +func (r *OrganizationsSinksService) Patch(sinkNameid string, logsink *LogSink) *OrganizationsSinksPatchCall { + c := &OrganizationsSinksPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.sinkNameid = sinkNameid + c.logsink = logsink + return c +} + +// UniqueWriterIdentity sets the optional parameter +// "uniqueWriterIdentity": See sinks.create for a description of this +// field. When updating a sink, the effect of this field on the value of +// writer_identity in the updated sink depends on both the old and new +// values of this field: If the old and new values of this field are +// both false or both true, then there is no change to the sink's +// writer_identity. If the old value is false and the new value is true, +// then writer_identity is changed to a unique service account. It is an +// error if the old value is true and the new value is set to false or +// defaulted to false. +func (c *OrganizationsSinksPatchCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *OrganizationsSinksPatchCall { + c.urlParams_.Set("uniqueWriterIdentity", fmt.Sprint(uniqueWriterIdentity)) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask that +// specifies the fields in sink that need an update. A sink field will +// be overwritten if, and only if, it is in the update mask. name and +// output only fields cannot be updated.An empty updateMask is +// temporarily treated as using the following mask for backwards +// compatibility purposes: destination,filter,includeChildren At some +// point in the future, behavior will be removed and specifying an empty +// updateMask will be an error.For a detailed FieldMask definition, see +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: +// updateMask=filter. +func (c *OrganizationsSinksPatchCall) UpdateMask(updateMask string) *OrganizationsSinksPatchCall { + c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsSinksGetCall) Fields(s ...googleapi.Field) *OrganizationsSinksGetCall { +func (c *OrganizationsSinksPatchCall) Fields(s ...googleapi.Field) *OrganizationsSinksPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsSinksGetCall) IfNoneMatch(entityTag string) *OrganizationsSinksGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsSinksGetCall) Context(ctx context.Context) *OrganizationsSinksGetCall { +func (c *OrganizationsSinksPatchCall) Context(ctx context.Context) *OrganizationsSinksPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsSinksGetCall) Header() http.Header { +func (c *OrganizationsSinksPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsSinksGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsSinksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logsink) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+sinkName}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "sinkName": c.sinkName, + "sinkName": c.sinkNameid, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.organizations.sinks.get" call. +// Do executes the "logging.organizations.sinks.patch" call. // Exactly one of *LogSink or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either // *LogSink.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *OrganizationsSinksGetCall) Do(opts ...googleapi.CallOption) (*LogSink, error) { +func (c *OrganizationsSinksPatchCall) Do(opts ...googleapi.CallOption) (*LogSink, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -17596,142 +19827,161 @@ func (c *OrganizationsSinksGetCall) Do(opts ...googleapi.CallOption) (*LogSink, } return ret, nil // { - // "description": "Gets a sink.", + // "description": "Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.The updated sink might also have a new writer_identity; see the unique_writer_identity field.", // "flatPath": "v2/organizations/{organizationsId}/sinks/{sinksId}", - // "httpMethod": "GET", - // "id": "logging.organizations.sinks.get", + // "httpMethod": "PATCH", + // "id": "logging.organizations.sinks.patch", // "parameterOrder": [ // "sinkName" // ], // "parameters": { // "sinkName": { - // "description": "Required. The resource name of the sink: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" Example: \"projects/my-project-id/sinks/my-sink-id\".", + // "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" Example: \"projects/my-project-id/sinks/my-sink-id\".", // "location": "path", // "pattern": "^organizations/[^/]+/sinks/[^/]+$", // "required": true, // "type": "string" + // }, + // "uniqueWriterIdentity": { + // "description": "Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false.", + // "location": "query", + // "type": "boolean" + // }, + // "updateMask": { + // "description": "Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes: destination,filter,includeChildren At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, // "path": "v2/{+sinkName}", + // "request": { + // "$ref": "LogSink" + // }, // "response": { // "$ref": "LogSink" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/logging.admin", - // "https://www.googleapis.com/auth/logging.read" + // "https://www.googleapis.com/auth/logging.admin" // ] // } } -// method id "logging.organizations.sinks.list": +// method id "logging.organizations.sinks.update": -type OrganizationsSinksListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsSinksUpdateCall struct { + s *Service + sinkNameid string + logsink *LogSink + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists sinks. -func (r *OrganizationsSinksService) List(parent string) *OrganizationsSinksListCall { - c := &OrganizationsSinksListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// Update: Updates a sink. This method replaces the following fields in +// the existing sink with values from the new sink: destination, and +// filter.The updated sink might also have a new writer_identity; see +// the unique_writer_identity field. +func (r *OrganizationsSinksService) Update(sinkNameid string, logsink *LogSink) *OrganizationsSinksUpdateCall { + c := &OrganizationsSinksUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.sinkNameid = sinkNameid + c.logsink = logsink return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return from this request. Non-positive values are -// ignored. The presence of nextPageToken in the response indicates that -// more results might be available. -func (c *OrganizationsSinksListCall) PageSize(pageSize int64) *OrganizationsSinksListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// UniqueWriterIdentity sets the optional parameter +// "uniqueWriterIdentity": See sinks.create for a description of this +// field. When updating a sink, the effect of this field on the value of +// writer_identity in the updated sink depends on both the old and new +// values of this field: If the old and new values of this field are +// both false or both true, then there is no change to the sink's +// writer_identity. If the old value is false and the new value is true, +// then writer_identity is changed to a unique service account. It is an +// error if the old value is true and the new value is set to false or +// defaulted to false. +func (c *OrganizationsSinksUpdateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *OrganizationsSinksUpdateCall { + c.urlParams_.Set("uniqueWriterIdentity", fmt.Sprint(uniqueWriterIdentity)) return c } -// PageToken sets the optional parameter "pageToken": If present, then -// retrieve the next batch of results from the preceding call to this -// method. pageToken must be the value of nextPageToken from the -// previous response. The values of other method parameters should be -// identical to those in the previous call. -func (c *OrganizationsSinksListCall) PageToken(pageToken string) *OrganizationsSinksListCall { - c.urlParams_.Set("pageToken", pageToken) +// UpdateMask sets the optional parameter "updateMask": Field mask that +// specifies the fields in sink that need an update. A sink field will +// be overwritten if, and only if, it is in the update mask. name and +// output only fields cannot be updated.An empty updateMask is +// temporarily treated as using the following mask for backwards +// compatibility purposes: destination,filter,includeChildren At some +// point in the future, behavior will be removed and specifying an empty +// updateMask will be an error.For a detailed FieldMask definition, see +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: +// updateMask=filter. +func (c *OrganizationsSinksUpdateCall) UpdateMask(updateMask string) *OrganizationsSinksUpdateCall { + c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsSinksListCall) Fields(s ...googleapi.Field) *OrganizationsSinksListCall { +func (c *OrganizationsSinksUpdateCall) Fields(s ...googleapi.Field) *OrganizationsSinksUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsSinksListCall) IfNoneMatch(entityTag string) *OrganizationsSinksListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsSinksListCall) Context(ctx context.Context) *OrganizationsSinksListCall { +func (c *OrganizationsSinksUpdateCall) Context(ctx context.Context) *OrganizationsSinksUpdateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsSinksListCall) Header() http.Header { +func (c *OrganizationsSinksUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsSinksListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsSinksUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logsink) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/sinks") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+sinkName}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("PUT", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "sinkName": c.sinkNameid, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.organizations.sinks.list" call. -// Exactly one of *ListSinksResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListSinksResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *OrganizationsSinksListCall) Do(opts ...googleapi.CallOption) (*ListSinksResponse, error) { +// Do executes the "logging.organizations.sinks.update" call. +// Exactly one of *LogSink or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *LogSink.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *OrganizationsSinksUpdateCall) Do(opts ...googleapi.CallOption) (*LogSink, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -17750,7 +20000,7 @@ func (c *OrganizationsSinksListCall) Do(opts ...googleapi.CallOption) (*ListSink if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListSinksResponse{ + ret := &LogSink{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -17762,124 +20012,73 @@ func (c *OrganizationsSinksListCall) Do(opts ...googleapi.CallOption) (*ListSink } return ret, nil // { - // "description": "Lists sinks.", - // "flatPath": "v2/organizations/{organizationsId}/sinks", - // "httpMethod": "GET", - // "id": "logging.organizations.sinks.list", + // "description": "Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.The updated sink might also have a new writer_identity; see the unique_writer_identity field.", + // "flatPath": "v2/organizations/{organizationsId}/sinks/{sinksId}", + // "httpMethod": "PUT", + // "id": "logging.organizations.sinks.update", // "parameterOrder": [ - // "parent" + // "sinkName" // ], // "parameters": { - // "pageSize": { - // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent resource whose sinks are to be listed: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ", + // "sinkName": { + // "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" Example: \"projects/my-project-id/sinks/my-sink-id\".", // "location": "path", - // "pattern": "^organizations/[^/]+$", + // "pattern": "^organizations/[^/]+/sinks/[^/]+$", // "required": true, // "type": "string" - // } - // }, - // "path": "v2/{+parent}/sinks", - // "response": { - // "$ref": "ListSinksResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/logging.admin", - // "https://www.googleapis.com/auth/logging.read" - // ] - // } - -} - -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *OrganizationsSinksListCall) Pages(ctx context.Context, f func(*ListSinksResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -// method id "logging.organizations.sinks.patch": + // }, + // "uniqueWriterIdentity": { + // "description": "Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false.", + // "location": "query", + // "type": "boolean" + // }, + // "updateMask": { + // "description": "Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes: destination,filter,includeChildren At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v2/{+sinkName}", + // "request": { + // "$ref": "LogSink" + // }, + // "response": { + // "$ref": "LogSink" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/logging.admin" + // ] + // } -type OrganizationsSinksPatchCall struct { - s *Service - sinkNameid string - logsink *LogSink - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header } -// Patch: Updates a sink. This method replaces the following fields in -// the existing sink with values from the new sink: destination, and -// filter.The updated sink might also have a new writer_identity; see -// the unique_writer_identity field. -func (r *OrganizationsSinksService) Patch(sinkNameid string, logsink *LogSink) *OrganizationsSinksPatchCall { - c := &OrganizationsSinksPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.sinkNameid = sinkNameid - c.logsink = logsink - return c -} +// method id "logging.projects.exclusions.create": -// UniqueWriterIdentity sets the optional parameter -// "uniqueWriterIdentity": See sinks.create for a description of this -// field. When updating a sink, the effect of this field on the value of -// writer_identity in the updated sink depends on both the old and new -// values of this field: If the old and new values of this field are -// both false or both true, then there is no change to the sink's -// writer_identity. If the old value is false and the new value is true, -// then writer_identity is changed to a unique service account. It is an -// error if the old value is true and the new value is set to false or -// defaulted to false. -func (c *OrganizationsSinksPatchCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *OrganizationsSinksPatchCall { - c.urlParams_.Set("uniqueWriterIdentity", fmt.Sprint(uniqueWriterIdentity)) - return c +type ProjectsExclusionsCreateCall struct { + s *Service + parent string + logexclusion *LogExclusion + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// UpdateMask sets the optional parameter "updateMask": Field mask that -// specifies the fields in sink that need an update. A sink field will -// be overwritten if, and only if, it is in the update mask. name and -// output only fields cannot be updated.An empty updateMask is -// temporarily treated as using the following mask for backwards -// compatibility purposes: destination,filter,includeChildren At some -// point in the future, behavior will be removed and specifying an empty -// updateMask will be an error.For a detailed FieldMask definition, see -// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: -// updateMask=filter. -func (c *OrganizationsSinksPatchCall) UpdateMask(updateMask string) *OrganizationsSinksPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// Create: Creates a new exclusion in a specified parent resource. Only +// log entries belonging to that resource can be excluded. You can have +// up to 10 exclusions in a resource. +func (r *ProjectsExclusionsService) Create(parent string, logexclusion *LogExclusion) *ProjectsExclusionsCreateCall { + c := &ProjectsExclusionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.logexclusion = logexclusion return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsSinksPatchCall) Fields(s ...googleapi.Field) *OrganizationsSinksPatchCall { +func (c *ProjectsExclusionsCreateCall) Fields(s ...googleapi.Field) *ProjectsExclusionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -17887,56 +20086,56 @@ func (c *OrganizationsSinksPatchCall) Fields(s ...googleapi.Field) *Organization // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsSinksPatchCall) Context(ctx context.Context) *OrganizationsSinksPatchCall { +func (c *ProjectsExclusionsCreateCall) Context(ctx context.Context) *ProjectsExclusionsCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsSinksPatchCall) Header() http.Header { +func (c *ProjectsExclusionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsSinksPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsExclusionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logsink) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logexclusion) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+sinkName}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/exclusions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "sinkName": c.sinkNameid, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.organizations.sinks.patch" call. -// Exactly one of *LogSink or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *LogSink.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *OrganizationsSinksPatchCall) Do(opts ...googleapi.CallOption) (*LogSink, error) { +// Do executes the "logging.projects.exclusions.create" call. +// Exactly one of *LogExclusion or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *LogExclusion.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsExclusionsCreateCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -17955,7 +20154,7 @@ func (c *OrganizationsSinksPatchCall) Do(opts ...googleapi.CallOption) (*LogSink if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogSink{ + ret := &LogExclusion{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -17967,39 +20166,28 @@ func (c *OrganizationsSinksPatchCall) Do(opts ...googleapi.CallOption) (*LogSink } return ret, nil // { - // "description": "Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.The updated sink might also have a new writer_identity; see the unique_writer_identity field.", - // "flatPath": "v2/organizations/{organizationsId}/sinks/{sinksId}", - // "httpMethod": "PATCH", - // "id": "logging.organizations.sinks.patch", + // "description": "Creates a new exclusion in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.", + // "flatPath": "v2/projects/{projectsId}/exclusions", + // "httpMethod": "POST", + // "id": "logging.projects.exclusions.create", // "parameterOrder": [ - // "sinkName" + // "parent" // ], // "parameters": { - // "sinkName": { - // "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" Example: \"projects/my-project-id/sinks/my-sink-id\".", + // "parent": { + // "description": "Required. The parent resource in which to create the exclusion: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" Examples: \"projects/my-logging-project\", \"organizations/123456789\".", // "location": "path", - // "pattern": "^organizations/[^/]+/sinks/[^/]+$", + // "pattern": "^projects/[^/]+$", // "required": true, // "type": "string" - // }, - // "uniqueWriterIdentity": { - // "description": "Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false.", - // "location": "query", - // "type": "boolean" - // }, - // "updateMask": { - // "description": "Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes: destination,filter,includeChildren At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v2/{+sinkName}", + // "path": "v2/{+parent}/exclusions", // "request": { - // "$ref": "LogSink" + // "$ref": "LogExclusion" // }, // "response": { - // "$ref": "LogSink" + // "$ref": "LogExclusion" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -18009,62 +20197,27 @@ func (c *OrganizationsSinksPatchCall) Do(opts ...googleapi.CallOption) (*LogSink } -// method id "logging.organizations.sinks.update": +// method id "logging.projects.exclusions.delete": -type OrganizationsSinksUpdateCall struct { +type ProjectsExclusionsDeleteCall struct { s *Service - sinkNameid string - logsink *LogSink + name string urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Update: Updates a sink. This method replaces the following fields in -// the existing sink with values from the new sink: destination, and -// filter.The updated sink might also have a new writer_identity; see -// the unique_writer_identity field. -func (r *OrganizationsSinksService) Update(sinkNameid string, logsink *LogSink) *OrganizationsSinksUpdateCall { - c := &OrganizationsSinksUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.sinkNameid = sinkNameid - c.logsink = logsink - return c -} - -// UniqueWriterIdentity sets the optional parameter -// "uniqueWriterIdentity": See sinks.create for a description of this -// field. When updating a sink, the effect of this field on the value of -// writer_identity in the updated sink depends on both the old and new -// values of this field: If the old and new values of this field are -// both false or both true, then there is no change to the sink's -// writer_identity. If the old value is false and the new value is true, -// then writer_identity is changed to a unique service account. It is an -// error if the old value is true and the new value is set to false or -// defaulted to false. -func (c *OrganizationsSinksUpdateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *OrganizationsSinksUpdateCall { - c.urlParams_.Set("uniqueWriterIdentity", fmt.Sprint(uniqueWriterIdentity)) - return c -} - -// UpdateMask sets the optional parameter "updateMask": Field mask that -// specifies the fields in sink that need an update. A sink field will -// be overwritten if, and only if, it is in the update mask. name and -// output only fields cannot be updated.An empty updateMask is -// temporarily treated as using the following mask for backwards -// compatibility purposes: destination,filter,includeChildren At some -// point in the future, behavior will be removed and specifying an empty -// updateMask will be an error.For a detailed FieldMask definition, see -// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: -// updateMask=filter. -func (c *OrganizationsSinksUpdateCall) UpdateMask(updateMask string) *OrganizationsSinksUpdateCall { - c.urlParams_.Set("updateMask", updateMask) +// Delete: Deletes an exclusion. +func (r *ProjectsExclusionsService) Delete(name string) *ProjectsExclusionsDeleteCall { + c := &ProjectsExclusionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsSinksUpdateCall) Fields(s ...googleapi.Field) *OrganizationsSinksUpdateCall { +func (c *ProjectsExclusionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsExclusionsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -18072,56 +20225,51 @@ func (c *OrganizationsSinksUpdateCall) Fields(s ...googleapi.Field) *Organizatio // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsSinksUpdateCall) Context(ctx context.Context) *OrganizationsSinksUpdateCall { +func (c *ProjectsExclusionsDeleteCall) Context(ctx context.Context) *ProjectsExclusionsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsSinksUpdateCall) Header() http.Header { +func (c *ProjectsExclusionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsSinksUpdateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsExclusionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logsink) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+sinkName}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "sinkName": c.sinkNameid, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.organizations.sinks.update" call. -// Exactly one of *LogSink or error will be non-nil. Any non-2xx status +// Do executes the "logging.projects.exclusions.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either -// *LogSink.ServerResponse.Header or (if a response was returned at all) +// *Empty.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *OrganizationsSinksUpdateCall) Do(opts ...googleapi.CallOption) (*LogSink, error) { +func (c *ProjectsExclusionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -18140,7 +20288,7 @@ func (c *OrganizationsSinksUpdateCall) Do(opts ...googleapi.CallOption) (*LogSin if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogSink{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -18152,39 +20300,25 @@ func (c *OrganizationsSinksUpdateCall) Do(opts ...googleapi.CallOption) (*LogSin } return ret, nil // { - // "description": "Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.The updated sink might also have a new writer_identity; see the unique_writer_identity field.", - // "flatPath": "v2/organizations/{organizationsId}/sinks/{sinksId}", - // "httpMethod": "PUT", - // "id": "logging.organizations.sinks.update", + // "description": "Deletes an exclusion.", + // "flatPath": "v2/projects/{projectsId}/exclusions/{exclusionsId}", + // "httpMethod": "DELETE", + // "id": "logging.projects.exclusions.delete", // "parameterOrder": [ - // "sinkName" + // "name" // ], // "parameters": { - // "sinkName": { - // "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" Example: \"projects/my-project-id/sinks/my-sink-id\".", + // "name": { + // "description": "Required. The resource name of an existing exclusion to delete: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" Example: \"projects/my-project-id/exclusions/my-exclusion-id\".", // "location": "path", - // "pattern": "^organizations/[^/]+/sinks/[^/]+$", + // "pattern": "^projects/[^/]+/exclusions/[^/]+$", // "required": true, // "type": "string" - // }, - // "uniqueWriterIdentity": { - // "description": "Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false.", - // "location": "query", - // "type": "boolean" - // }, - // "updateMask": { - // "description": "Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes: destination,filter,includeChildren At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v2/{+sinkName}", - // "request": { - // "$ref": "LogSink" - // }, + // "path": "v2/{+name}", // "response": { - // "$ref": "LogSink" + // "$ref": "Empty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -18194,88 +20328,93 @@ func (c *OrganizationsSinksUpdateCall) Do(opts ...googleapi.CallOption) (*LogSin } -// method id "logging.projects.exclusions.create": +// method id "logging.projects.exclusions.get": -type ProjectsExclusionsCreateCall struct { +type ProjectsExclusionsGetCall struct { s *Service - parent string - logexclusion *LogExclusion + name string urlParams_ gensupport.URLParams + ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Create: Creates a new exclusion in a specified parent resource. Only -// log entries belonging to that resource can be excluded. You can have -// up to 10 exclusions in a resource. -func (r *ProjectsExclusionsService) Create(parent string, logexclusion *LogExclusion) *ProjectsExclusionsCreateCall { - c := &ProjectsExclusionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.logexclusion = logexclusion +// Get: Gets the description of an exclusion. +func (r *ProjectsExclusionsService) Get(name string) *ProjectsExclusionsGetCall { + c := &ProjectsExclusionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsExclusionsCreateCall) Fields(s ...googleapi.Field) *ProjectsExclusionsCreateCall { +func (c *ProjectsExclusionsGetCall) Fields(s ...googleapi.Field) *ProjectsExclusionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsExclusionsGetCall) IfNoneMatch(entityTag string) *ProjectsExclusionsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsExclusionsCreateCall) Context(ctx context.Context) *ProjectsExclusionsCreateCall { +func (c *ProjectsExclusionsGetCall) Context(ctx context.Context) *ProjectsExclusionsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsExclusionsCreateCall) Header() http.Header { +func (c *ProjectsExclusionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsExclusionsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsExclusionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logexclusion) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/exclusions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.projects.exclusions.create" call. +// Do executes the "logging.projects.exclusions.get" call. // Exactly one of *LogExclusion or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *LogExclusion.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsExclusionsCreateCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error) { +func (c *ProjectsExclusionsGetCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -18306,110 +20445,142 @@ func (c *ProjectsExclusionsCreateCall) Do(opts ...googleapi.CallOption) (*LogExc } return ret, nil // { - // "description": "Creates a new exclusion in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.", - // "flatPath": "v2/projects/{projectsId}/exclusions", - // "httpMethod": "POST", - // "id": "logging.projects.exclusions.create", + // "description": "Gets the description of an exclusion.", + // "flatPath": "v2/projects/{projectsId}/exclusions/{exclusionsId}", + // "httpMethod": "GET", + // "id": "logging.projects.exclusions.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The parent resource in which to create the exclusion: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" Examples: \"projects/my-logging-project\", \"organizations/123456789\".", + // "name": { + // "description": "Required. The resource name of an existing exclusion: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" Example: \"projects/my-project-id/exclusions/my-exclusion-id\".", // "location": "path", - // "pattern": "^projects/[^/]+$", + // "pattern": "^projects/[^/]+/exclusions/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+parent}/exclusions", - // "request": { - // "$ref": "LogExclusion" - // }, + // "path": "v2/{+name}", // "response": { // "$ref": "LogExclusion" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin" + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/logging.admin", + // "https://www.googleapis.com/auth/logging.read" // ] // } } -// method id "logging.projects.exclusions.delete": +// method id "logging.projects.exclusions.list": -type ProjectsExclusionsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsExclusionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes an exclusion. -func (r *ProjectsExclusionsService) Delete(name string) *ProjectsExclusionsDeleteCall { - c := &ProjectsExclusionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// List: Lists all the exclusions in a parent resource. +func (r *ProjectsExclusionsService) List(parent string) *ProjectsExclusionsListCall { + c := &ProjectsExclusionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return from this request. Non-positive values are +// ignored. The presence of nextPageToken in the response indicates that +// more results might be available. +func (c *ProjectsExclusionsListCall) PageSize(pageSize int64) *ProjectsExclusionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": If present, then +// retrieve the next batch of results from the preceding call to this +// method. pageToken must be the value of nextPageToken from the +// previous response. The values of other method parameters should be +// identical to those in the previous call. +func (c *ProjectsExclusionsListCall) PageToken(pageToken string) *ProjectsExclusionsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsExclusionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsExclusionsDeleteCall { +func (c *ProjectsExclusionsListCall) Fields(s ...googleapi.Field) *ProjectsExclusionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsExclusionsListCall) IfNoneMatch(entityTag string) *ProjectsExclusionsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsExclusionsDeleteCall) Context(ctx context.Context) *ProjectsExclusionsDeleteCall { +func (c *ProjectsExclusionsListCall) Context(ctx context.Context) *ProjectsExclusionsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsExclusionsDeleteCall) Header() http.Header { +func (c *ProjectsExclusionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsExclusionsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsExclusionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/exclusions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.projects.exclusions.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *ProjectsExclusionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +// Do executes the "logging.projects.exclusions.list" call. +// Exactly one of *ListExclusionsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListExclusionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsExclusionsListCall) Do(opts ...googleapi.CallOption) (*ListExclusionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -18428,7 +20599,7 @@ func (c *ProjectsExclusionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Empty{ + ret := &ListExclusionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -18440,103 +20611,142 @@ func (c *ProjectsExclusionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, } return ret, nil // { - // "description": "Deletes an exclusion.", - // "flatPath": "v2/projects/{projectsId}/exclusions/{exclusionsId}", - // "httpMethod": "DELETE", - // "id": "logging.projects.exclusions.delete", + // "description": "Lists all the exclusions in a parent resource.", + // "flatPath": "v2/projects/{projectsId}/exclusions", + // "httpMethod": "GET", + // "id": "logging.projects.exclusions.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The resource name of an existing exclusion to delete: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" Example: \"projects/my-project-id/exclusions/my-exclusion-id\".", + // "pageSize": { + // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent resource whose exclusions are to be listed. \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ", // "location": "path", - // "pattern": "^projects/[^/]+/exclusions/[^/]+$", + // "pattern": "^projects/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+name}", + // "path": "v2/{+parent}/exclusions", // "response": { - // "$ref": "Empty" + // "$ref": "ListExclusionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin" + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/logging.admin", + // "https://www.googleapis.com/auth/logging.read" // ] // } } -// method id "logging.projects.exclusions.get": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsExclusionsListCall) Pages(ctx context.Context, f func(*ListExclusionsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type ProjectsExclusionsGetCall struct { +// method id "logging.projects.exclusions.patch": + +type ProjectsExclusionsPatchCall struct { s *Service name string + logexclusion *LogExclusion urlParams_ gensupport.URLParams - ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Get: Gets the description of an exclusion. -func (r *ProjectsExclusionsService) Get(name string) *ProjectsExclusionsGetCall { - c := &ProjectsExclusionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Patch: Changes one or more properties of an existing exclusion. +func (r *ProjectsExclusionsService) Patch(name string, logexclusion *LogExclusion) *ProjectsExclusionsPatchCall { + c := &ProjectsExclusionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.logexclusion = logexclusion return c } -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsExclusionsGetCall) Fields(s ...googleapi.Field) *ProjectsExclusionsGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) +// UpdateMask sets the optional parameter "updateMask": Required. A +// non-empty list of fields to change in the existing exclusion. New +// values for the fields are taken from the corresponding fields in the +// LogExclusion included in this request. Fields not mentioned in +// update_mask are not changed and are ignored in the request.For +// example, to change the filter and description of an exclusion, +// specify an update_mask of "filter,description". +func (c *ProjectsExclusionsPatchCall) UpdateMask(updateMask string) *ProjectsExclusionsPatchCall { + c.urlParams_.Set("updateMask", updateMask) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsExclusionsGetCall) IfNoneMatch(entityTag string) *ProjectsExclusionsGetCall { - c.ifNoneMatch_ = entityTag +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsExclusionsPatchCall) Fields(s ...googleapi.Field) *ProjectsExclusionsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsExclusionsGetCall) Context(ctx context.Context) *ProjectsExclusionsGetCall { +func (c *ProjectsExclusionsPatchCall) Context(ctx context.Context) *ProjectsExclusionsPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsExclusionsGetCall) Header() http.Header { +func (c *ProjectsExclusionsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsExclusionsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsExclusionsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.logexclusion) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -18547,14 +20757,14 @@ func (c *ProjectsExclusionsGetCall) doRequest(alt string) (*http.Response, error return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.projects.exclusions.get" call. +// Do executes the "logging.projects.exclusions.patch" call. // Exactly one of *LogExclusion or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *LogExclusion.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsExclusionsGetCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error) { +func (c *ProjectsExclusionsPatchCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -18585,77 +20795,65 @@ func (c *ProjectsExclusionsGetCall) Do(opts ...googleapi.CallOption) (*LogExclus } return ret, nil // { - // "description": "Gets the description of an exclusion.", + // "description": "Changes one or more properties of an existing exclusion.", // "flatPath": "v2/projects/{projectsId}/exclusions/{exclusionsId}", - // "httpMethod": "GET", - // "id": "logging.projects.exclusions.get", + // "httpMethod": "PATCH", + // "id": "logging.projects.exclusions.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name of an existing exclusion: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" Example: \"projects/my-project-id/exclusions/my-exclusion-id\".", + // "description": "Required. The resource name of the exclusion to update: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" Example: \"projects/my-project-id/exclusions/my-exclusion-id\".", // "location": "path", // "pattern": "^projects/[^/]+/exclusions/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.For example, to change the filter and description of an exclusion, specify an update_mask of \"filter,description\".", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, // "path": "v2/{+name}", + // "request": { + // "$ref": "LogExclusion" + // }, // "response": { // "$ref": "LogExclusion" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/logging.admin", - // "https://www.googleapis.com/auth/logging.read" + // "https://www.googleapis.com/auth/logging.admin" // ] // } } -// method id "logging.projects.exclusions.list": +// method id "logging.projects.locations.get": -type ProjectsExclusionsListCall struct { +type ProjectsLocationsGetCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists all the exclusions in a parent resource. -func (r *ProjectsExclusionsService) List(parent string) *ProjectsExclusionsListCall { - c := &ProjectsExclusionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return from this request. Non-positive values are -// ignored. The presence of nextPageToken in the response indicates that -// more results might be available. -func (c *ProjectsExclusionsListCall) PageSize(pageSize int64) *ProjectsExclusionsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": If present, then -// retrieve the next batch of results from the preceding call to this -// method. pageToken must be the value of nextPageToken from the -// previous response. The values of other method parameters should be -// identical to those in the previous call. -func (c *ProjectsExclusionsListCall) PageToken(pageToken string) *ProjectsExclusionsListCall { - c.urlParams_.Set("pageToken", pageToken) +// Get: Gets information about a location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsExclusionsListCall) Fields(s ...googleapi.Field) *ProjectsExclusionsListCall { +func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -18665,7 +20863,7 @@ func (c *ProjectsExclusionsListCall) Fields(s ...googleapi.Field) *ProjectsExclu // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsExclusionsListCall) IfNoneMatch(entityTag string) *ProjectsExclusionsListCall { +func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -18673,23 +20871,23 @@ func (c *ProjectsExclusionsListCall) IfNoneMatch(entityTag string) *ProjectsExcl // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsExclusionsListCall) Context(ctx context.Context) *ProjectsExclusionsListCall { +func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsExclusionsListCall) Header() http.Header { +func (c *ProjectsLocationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsExclusionsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18700,7 +20898,7 @@ func (c *ProjectsExclusionsListCall) doRequest(alt string) (*http.Response, erro var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/exclusions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -18708,19 +20906,19 @@ func (c *ProjectsExclusionsListCall) doRequest(alt string) (*http.Response, erro } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.projects.exclusions.list" call. -// Exactly one of *ListExclusionsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListExclusionsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsExclusionsListCall) Do(opts ...googleapi.CallOption) (*ListExclusionsResponse, error) { +// Do executes the "logging.projects.locations.get" call. +// Exactly one of *Location or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Location.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -18739,7 +20937,7 @@ func (c *ProjectsExclusionsListCall) Do(opts ...googleapi.CallOption) (*ListExcl if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListExclusionsResponse{ + ret := &Location{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -18751,36 +20949,25 @@ func (c *ProjectsExclusionsListCall) Do(opts ...googleapi.CallOption) (*ListExcl } return ret, nil // { - // "description": "Lists all the exclusions in a parent resource.", - // "flatPath": "v2/projects/{projectsId}/exclusions", + // "description": "Gets information about a location.", + // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}", // "httpMethod": "GET", - // "id": "logging.projects.exclusions.list", + // "id": "logging.projects.locations.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "pageSize": { - // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent resource whose exclusions are to be listed. \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ", + // "name": { + // "description": "Resource name for the location.", // "location": "path", - // "pattern": "^projects/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v2/{+parent}/exclusions", + // "path": "v2/{+name}", // "response": { - // "$ref": "ListExclusionsResponse" + // "$ref": "Location" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -18792,101 +20979,97 @@ func (c *ProjectsExclusionsListCall) Do(opts ...googleapi.CallOption) (*ListExcl } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsExclusionsListCall) Pages(ctx context.Context, f func(*ListExclusionsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -// method id "logging.projects.exclusions.patch": +// method id "logging.projects.locations.list": -type ProjectsExclusionsPatchCall struct { +type ProjectsLocationsListCall struct { s *Service name string - logexclusion *LogExclusion urlParams_ gensupport.URLParams + ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Patch: Changes one or more properties of an existing exclusion. -func (r *ProjectsExclusionsService) Patch(name string, logexclusion *LogExclusion) *ProjectsExclusionsPatchCall { - c := &ProjectsExclusionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// List: Lists information about the supported locations for this +// service. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.logexclusion = logexclusion return c } -// UpdateMask sets the optional parameter "updateMask": Required. A -// non-empty list of fields to change in the existing exclusion. New -// values for the fields are taken from the corresponding fields in the -// LogExclusion included in this request. Fields not mentioned in -// update_mask are not changed and are ignored in the request.For -// example, to change the filter and description of an exclusion, -// specify an update_mask of "filter,description". -func (c *ProjectsExclusionsPatchCall) UpdateMask(updateMask string) *ProjectsExclusionsPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsExclusionsPatchCall) Fields(s ...googleapi.Field) *ProjectsExclusionsPatchCall { +func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsExclusionsPatchCall) Context(ctx context.Context) *ProjectsExclusionsPatchCall { +func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsExclusionsPatchCall) Header() http.Header { +func (c *ProjectsLocationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsExclusionsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.logexclusion) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}/locations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -18897,14 +21080,14 @@ func (c *ProjectsExclusionsPatchCall) doRequest(alt string) (*http.Response, err return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.projects.exclusions.patch" call. -// Exactly one of *LogExclusion or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LogExclusion.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsExclusionsPatchCall) Do(opts ...googleapi.CallOption) (*LogExclusion, error) { +// Do executes the "logging.projects.locations.list" call. +// Exactly one of *ListLocationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -18923,7 +21106,7 @@ func (c *ProjectsExclusionsPatchCall) Do(opts ...googleapi.CallOption) (*LogExcl if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &LogExclusion{ + ret := &ListLocationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -18935,43 +21118,73 @@ func (c *ProjectsExclusionsPatchCall) Do(opts ...googleapi.CallOption) (*LogExcl } return ret, nil // { - // "description": "Changes one or more properties of an existing exclusion.", - // "flatPath": "v2/projects/{projectsId}/exclusions/{exclusionsId}", - // "httpMethod": "PATCH", - // "id": "logging.projects.exclusions.patch", + // "description": "Lists information about the supported locations for this service.", + // "flatPath": "v2/projects/{projectsId}/locations", + // "httpMethod": "GET", + // "id": "logging.projects.locations.list", // "parameterOrder": [ // "name" // ], // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, // "name": { - // "description": "Required. The resource name of the exclusion to update: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" Example: \"projects/my-project-id/exclusions/my-exclusion-id\".", + // "description": "The resource that owns the locations collection, if applicable.", // "location": "path", - // "pattern": "^projects/[^/]+/exclusions/[^/]+$", + // "pattern": "^projects/[^/]+$", // "required": true, // "type": "string" // }, - // "updateMask": { - // "description": "Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.For example, to change the filter and description of an exclusion, specify an update_mask of \"filter,description\".", - // "format": "google-fieldmask", + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", // "location": "query", // "type": "string" // } // }, - // "path": "v2/{+name}", - // "request": { - // "$ref": "LogExclusion" - // }, + // "path": "v2/{+name}/locations", // "response": { - // "$ref": "LogExclusion" + // "$ref": "ListLocationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin" + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/logging.admin", + // "https://www.googleapis.com/auth/logging.read" // ] // } } +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + // method id "logging.projects.locations.buckets.create": type ProjectsLocationsBucketsCreateCall struct { @@ -19028,7 +21241,7 @@ func (c *ProjectsLocationsBucketsCreateCall) Header() http.Header { func (c *ProjectsLocationsBucketsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19174,7 +21387,7 @@ func (c *ProjectsLocationsBucketsDeleteCall) Header() http.Header { func (c *ProjectsLocationsBucketsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19272,7 +21485,7 @@ type ProjectsLocationsBucketsGetCall struct { header_ http.Header } -// Get: Gets a bucket (Beta). +// Get: Gets a bucket. func (r *ProjectsLocationsBucketsService) Get(name string) *ProjectsLocationsBucketsGetCall { c := &ProjectsLocationsBucketsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -19316,7 +21529,7 @@ func (c *ProjectsLocationsBucketsGetCall) Header() http.Header { func (c *ProjectsLocationsBucketsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19378,7 +21591,7 @@ func (c *ProjectsLocationsBucketsGetCall) Do(opts ...googleapi.CallOption) (*Log } return ret, nil // { - // "description": "Gets a bucket (Beta).", + // "description": "Gets a bucket.", // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/buckets/{bucketsId}", // "httpMethod": "GET", // "id": "logging.projects.locations.buckets.get", @@ -19419,7 +21632,7 @@ type ProjectsLocationsBucketsListCall struct { header_ http.Header } -// List: Lists buckets (Beta). +// List: Lists buckets. func (r *ProjectsLocationsBucketsService) List(parent string) *ProjectsLocationsBucketsListCall { c := &ProjectsLocationsBucketsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -19482,7 +21695,7 @@ func (c *ProjectsLocationsBucketsListCall) Header() http.Header { func (c *ProjectsLocationsBucketsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19544,7 +21757,7 @@ func (c *ProjectsLocationsBucketsListCall) Do(opts ...googleapi.CallOption) (*Li } return ret, nil // { - // "description": "Lists buckets (Beta).", + // "description": "Lists buckets.", // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/buckets", // "httpMethod": "GET", // "id": "logging.projects.locations.buckets.list", @@ -19623,7 +21836,6 @@ type ProjectsLocationsBucketsPatchCall struct { // is locked, FAILED_PRECONDITION will be returned.If the bucket has a // LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be // returned.A buckets region may not be modified after it is created. -// This method is in Beta. func (r *ProjectsLocationsBucketsService) Patch(name string, logbucket *LogBucket) *ProjectsLocationsBucketsPatchCall { c := &ProjectsLocationsBucketsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -19670,7 +21882,7 @@ func (c *ProjectsLocationsBucketsPatchCall) Header() http.Header { func (c *ProjectsLocationsBucketsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19734,7 +21946,7 @@ func (c *ProjectsLocationsBucketsPatchCall) Do(opts ...googleapi.CallOption) (*L } return ret, nil // { - // "description": "Updates a bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be returned.A buckets region may not be modified after it is created. This method is in Beta.", + // "description": "Updates a bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be returned.A buckets region may not be modified after it is created.", // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/buckets/{bucketsId}", // "httpMethod": "PATCH", // "id": "logging.projects.locations.buckets.patch", @@ -19818,7 +22030,7 @@ func (c *ProjectsLocationsBucketsUndeleteCall) Header() http.Header { func (c *ProjectsLocationsBucketsUndeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19967,7 +22179,7 @@ func (c *ProjectsLocationsBucketsViewsCreateCall) Header() http.Header { func (c *ProjectsLocationsBucketsViewsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20111,7 +22323,7 @@ func (c *ProjectsLocationsBucketsViewsDeleteCall) Header() http.Header { func (c *ProjectsLocationsBucketsViewsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20253,7 +22465,7 @@ func (c *ProjectsLocationsBucketsViewsGetCall) Header() http.Header { func (c *ProjectsLocationsBucketsViewsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20356,7 +22568,7 @@ type ProjectsLocationsBucketsViewsListCall struct { header_ http.Header } -// List: Lists views on a bucket.. +// List: Lists views on a bucket. func (r *ProjectsLocationsBucketsViewsService) List(parent string) *ProjectsLocationsBucketsViewsListCall { c := &ProjectsLocationsBucketsViewsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -20419,7 +22631,7 @@ func (c *ProjectsLocationsBucketsViewsListCall) Header() http.Header { func (c *ProjectsLocationsBucketsViewsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20481,7 +22693,7 @@ func (c *ProjectsLocationsBucketsViewsListCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Lists views on a bucket..", + // "description": "Lists views on a bucket.", // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/buckets/{bucketsId}/views", // "httpMethod": "GET", // "id": "logging.projects.locations.buckets.views.list", @@ -20602,7 +22814,7 @@ func (c *ProjectsLocationsBucketsViewsPatchCall) Header() http.Header { func (c *ProjectsLocationsBucketsViewsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20750,7 +22962,7 @@ func (c *ProjectsLogsDeleteCall) Header() http.Header { func (c *ProjectsLogsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20875,6 +23087,23 @@ func (c *ProjectsLogsListCall) PageToken(pageToken string) *ProjectsLogsListCall return c } +// ResourceNames sets the optional parameter "resourceNames": The +// resource name that owns the logs: +// projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW +// _ID +// organization/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/v +// iews/VIEW_ID +// billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKE +// T_ID/views/VIEW_ID +// folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_I +// DTo support legacy queries, it could also be: "projects/PROJECT_ID" +// "organizations/ORGANIZATION_ID" "billingAccounts/BILLING_ACCOUNT_ID" +// "folders/FOLDER_ID" +func (c *ProjectsLogsListCall) ResourceNames(resourceNames ...string) *ProjectsLogsListCall { + c.urlParams_.SetMulti("resourceNames", append([]string{}, resourceNames...)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -20912,7 +23141,7 @@ func (c *ProjectsLogsListCall) Header() http.Header { func (c *ProjectsLogsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20999,6 +23228,12 @@ func (c *ProjectsLogsListCall) Do(opts ...googleapi.CallOption) (*ListLogsRespon // "pattern": "^projects/[^/]+$", // "required": true, // "type": "string" + // }, + // "resourceNames": { + // "description": "Optional. The resource name that owns the logs: projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID organization/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/views/VIEW_IDTo support legacy queries, it could also be: \"projects/PROJECT_ID\" \"organizations/ORGANIZATION_ID\" \"billingAccounts/BILLING_ACCOUNT_ID\" \"folders/FOLDER_ID\"", + // "location": "query", + // "repeated": true, + // "type": "string" // } // }, // "path": "v2/{+parent}/logs", @@ -21082,7 +23317,7 @@ func (c *ProjectsMetricsCreateCall) Header() http.Header { func (c *ProjectsMetricsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21222,7 +23457,7 @@ func (c *ProjectsMetricsDeleteCall) Header() http.Header { func (c *ProjectsMetricsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21365,7 +23600,7 @@ func (c *ProjectsMetricsGetCall) Header() http.Header { func (c *ProjectsMetricsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21531,7 +23766,7 @@ func (c *ProjectsMetricsListCall) Header() http.Header { func (c *ProjectsMetricsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21701,7 +23936,7 @@ func (c *ProjectsMetricsUpdateCall) Header() http.Header { func (c *ProjectsMetricsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21863,7 +24098,7 @@ func (c *ProjectsSinksCreateCall) Header() http.Header { func (c *ProjectsSinksCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22008,7 +24243,7 @@ func (c *ProjectsSinksDeleteCall) Header() http.Header { func (c *ProjectsSinksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22150,7 +24385,7 @@ func (c *ProjectsSinksGetCall) Header() http.Header { func (c *ProjectsSinksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22316,7 +24551,7 @@ func (c *ProjectsSinksListCall) Header() http.Header { func (c *ProjectsSinksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22519,7 +24754,7 @@ func (c *ProjectsSinksPatchCall) Header() http.Header { func (c *ProjectsSinksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22704,7 +24939,7 @@ func (c *ProjectsSinksUpdateCall) Header() http.Header { func (c *ProjectsSinksUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22876,7 +25111,7 @@ func (c *SinksCreateCall) Header() http.Header { func (c *SinksCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23021,7 +25256,7 @@ func (c *SinksDeleteCall) Header() http.Header { func (c *SinksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23163,7 +25398,7 @@ func (c *SinksGetCall) Header() http.Header { func (c *SinksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23329,7 +25564,7 @@ func (c *SinksListCall) Header() http.Header { func (c *SinksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23532,7 +25767,7 @@ func (c *SinksUpdateCall) Header() http.Header { func (c *SinksUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23699,7 +25934,7 @@ func (c *V2GetCmekSettingsCall) Header() http.Header { func (c *V2GetCmekSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23856,7 +26091,7 @@ func (c *V2UpdateCmekSettingsCall) Header() http.Header { func (c *V2UpdateCmekSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/managedidentities/v1/managedidentities-api.json b/managedidentities/v1/managedidentities-api.json index 137a21b4aa5..7fd329687d7 100644 --- a/managedidentities/v1/managedidentities-api.json +++ b/managedidentities/v1/managedidentities-api.json @@ -703,7 +703,7 @@ } } }, - "revision": "20201007", + "revision": "20201030", "rootUrl": "https://managedidentities.googleapis.com/", "schemas": { "AttachTrustRequest": { @@ -722,7 +722,6 @@ "id": "Binding", "properties": { "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", "type": "string" }, "condition": { @@ -749,6 +748,63 @@ "properties": {}, "type": "object" }, + "DailyCycle": { + "description": "Time window specified for daily operations.", + "id": "DailyCycle", + "properties": { + "duration": { + "description": "Output only. Duration of the time window, set by service producer.", + "format": "google-duration", + "type": "string" + }, + "startTime": { + "$ref": "TimeOfDay", + "description": "Time within the day to start the operations." + } + }, + "type": "object" + }, + "Date": { + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.", + "id": "Date", + "properties": { + "day": { + "description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.", + "format": "int32", + "type": "integer" + }, + "month": { + "description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.", + "format": "int32", + "type": "integer" + }, + "year": { + "description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "DenyMaintenancePeriod": { + "description": "DenyMaintenancePeriod definition. Maintenance is forbidden within the deny period. The start_date must be less than the end_date.", + "id": "DenyMaintenancePeriod", + "properties": { + "endDate": { + "$ref": "Date", + "description": "Deny period end date. This can be: * A full date, with non-zero year, month and day values. * A month and day value, with a zero year. Allows recurring deny periods each year. Date matching this period will have to be before the end." + }, + "startDate": { + "$ref": "Date", + "description": "Deny period start date. This can be: * A full date, with non-zero year, month and day values. * A month and day value, with a zero year. Allows recurring deny periods each year. Date matching this period will have to be the same or after the start." + }, + "time": { + "$ref": "TimeOfDay", + "description": "Time in UTC when the Blackout period starts on start_date and ends on end_date. This can be: * Full time. * All zeros for 00:00:00 UTC" + } + }, + "type": "object" + }, "DetachTrustRequest": { "description": "Request message for DetachTrust", "id": "DetachTrustRequest", @@ -1025,7 +1081,7 @@ "additionalProperties": { "type": "string" }, - "description": "The MaintenancePolicies that have been attached to the instance. The key must be of the type name of the oneof policy name defined in MaintenancePolicy, and the referenced policy must define the same policy type. For complete details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug.", + "description": "Deprecated. The MaintenancePolicies that have been attached to the instance. The key must be of the type name of the oneof policy name defined in MaintenancePolicy, and the referenced policy must define the same policy type. For complete details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug.", "type": "object" }, "maintenanceSchedules": { @@ -1144,6 +1200,13 @@ "exclude": { "description": "Optional. Exclude instance from maintenance. When true, rollout service will not attempt maintenance on the instance. Rollout service will include the instance in reported rollout progress as not attempted.", "type": "boolean" + }, + "maintenancePolicies": { + "additionalProperties": { + "$ref": "MaintenancePolicy" + }, + "description": "Optional. The MaintenancePolicies that have been attached to the instance. The key must be of the type name of the oneof policy name defined in MaintenancePolicy, and the embedded policy must define the same policy type. For complete details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug. If only the name is needed (like in the deprecated Instance.maintenance_policy_names field) then only populate MaintenancePolicy.name.", + "type": "object" } }, "type": "object" @@ -1349,6 +1412,71 @@ }, "type": "object" }, + "MaintenancePolicy": { + "description": "Defines policies to service maintenance events.", + "id": "MaintenancePolicy", + "properties": { + "createTime": { + "description": "Output only. The time when the resource was created.", + "format": "google-datetime", + "type": "string" + }, + "description": { + "description": "Optional. Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Resource labels to represent user provided metadata. Each label is a key-value pair, where both the key and the value are arbitrary strings provided by the user.", + "type": "object" + }, + "name": { + "description": "Required. MaintenancePolicy name using the form: `projects/{project_id}/locations/{location_id}/maintenancePolicies/{maintenance_policy_id}` where {project_id} refers to a GCP consumer project ID, {location_id} refers to a GCP region/zone, {maintenance_policy_id} must be 1-63 characters long and match the regular expression `[a-z0-9]([-a-z0-9]*[a-z0-9])?`.", + "type": "string" + }, + "state": { + "description": "Optional. The state of the policy.", + "enum": [ + "STATE_UNSPECIFIED", + "READY", + "DELETING" + ], + "enumDescriptions": [ + "Unspecified state.", + "Resource is ready to be used.", + "Resource is being deleted. It can no longer be attached to instances." + ], + "type": "string" + }, + "updatePolicy": { + "$ref": "UpdatePolicy", + "description": "Maintenance policy applicable to instance update." + }, + "updateTime": { + "description": "Output only. The time when the resource was updated.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "MaintenanceWindow": { + "description": "MaintenanceWindow definition.", + "id": "MaintenanceWindow", + "properties": { + "dailyCycle": { + "$ref": "DailyCycle", + "description": "Daily cycle." + }, + "weeklyCycle": { + "$ref": "WeeklyCycle", + "description": "Weekly cycle." + } + }, + "type": "object" + }, "Operation": { "description": "This resource represents a long-running operation that is the result of a network API call.", "id": "Operation", @@ -1480,6 +1608,46 @@ }, "type": "object" }, + "Schedule": { + "description": "Configure the schedule.", + "id": "Schedule", + "properties": { + "day": { + "description": "Allows to define schedule that runs specified day of the week.", + "enum": [ + "DAY_OF_WEEK_UNSPECIFIED", + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ], + "enumDescriptions": [ + "The day of the week is unspecified.", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ], + "type": "string" + }, + "duration": { + "description": "Output only. Duration of the time window, set by service producer.", + "format": "google-duration", + "type": "string" + }, + "startTime": { + "$ref": "TimeOfDay", + "description": "Time within the window to start the operations." + } + }, + "type": "object" + }, "SetIamPolicyRequest": { "description": "Request message for `SetIamPolicy` method.", "id": "SetIamPolicyRequest", @@ -1546,6 +1714,33 @@ }, "type": "object" }, + "TimeOfDay": { + "description": "Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.", + "id": "TimeOfDay", + "properties": { + "hours": { + "description": "Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + "format": "int32", + "type": "integer" + }, + "minutes": { + "description": "Minutes of hour of day. Must be from 0 to 59.", + "format": "int32", + "type": "integer" + }, + "nanos": { + "description": "Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.", + "format": "int32", + "type": "integer" + }, + "seconds": { + "description": "Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "Trust": { "description": "Represents a relationship between two domains. This allows a controller in one domain to authenticate a user in another domain.", "id": "Trust", @@ -1646,6 +1841,38 @@ }, "type": "object" }, + "UpdatePolicy": { + "description": "Maintenance policy applicable to instance updates.", + "id": "UpdatePolicy", + "properties": { + "channel": { + "description": "Optional. Relative scheduling channel applied to resource.", + "enum": [ + "UPDATE_CHANNEL_UNSPECIFIED", + "EARLIER", + "LATER" + ], + "enumDescriptions": [ + "Unspecified channel.", + "Early channel within a customer project.", + "Later channel within a customer project." + ], + "type": "string" + }, + "denyMaintenancePeriods": { + "description": "Deny Maintenance Period that is applied to resource to indicate when maintenance is forbidden. User can specify zero or more non-overlapping deny periods. For V1, Maximum number of deny_maintenance_periods is expected to be one.", + "items": { + "$ref": "DenyMaintenancePeriod" + }, + "type": "array" + }, + "window": { + "$ref": "MaintenanceWindow", + "description": "Optional. Maintenance window that is applied to resources covered by this policy." + } + }, + "type": "object" + }, "ValidateTrustRequest": { "description": "Request message for ValidateTrust", "id": "ValidateTrustRequest", @@ -1656,6 +1883,20 @@ } }, "type": "object" + }, + "WeeklyCycle": { + "description": "Time window specified for weekly operations.", + "id": "WeeklyCycle", + "properties": { + "schedule": { + "description": "User can specify multiple windows in a week. Minimum of 1 window.", + "items": { + "$ref": "Schedule" + }, + "type": "array" + } + }, + "type": "object" } }, "servicePath": "", diff --git a/managedidentities/v1/managedidentities-gen.go b/managedidentities/v1/managedidentities-gen.go index 96262b33546..af81734eecd 100644 --- a/managedidentities/v1/managedidentities-gen.go +++ b/managedidentities/v1/managedidentities-gen.go @@ -222,8 +222,6 @@ func (s *AttachTrustRequest) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. BindingId string `json:"bindingId,omitempty"` // Condition: The condition that is associated with this binding. If the @@ -303,6 +301,128 @@ func (s *Binding) MarshalJSON() ([]byte, error) { type CancelOperationRequest struct { } +// DailyCycle: Time window specified for daily operations. +type DailyCycle struct { + // Duration: Output only. Duration of the time window, set by service + // producer. + Duration string `json:"duration,omitempty"` + + // StartTime: Time within the day to start the operations. + StartTime *TimeOfDay `json:"startTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Duration") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Duration") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DailyCycle) MarshalJSON() ([]byte, error) { + type NoMethod DailyCycle + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Date: Represents a whole or partial calendar date, such as a +// birthday. The time of day and time zone are either specified +// elsewhere or are insignificant. The date is relative to the Gregorian +// Calendar. This can represent one of the following: * A full date, +// with non-zero year, month, and day values * A month and day value, +// with a zero year, such as an anniversary * A year on its own, with +// zero month and day values * A year and month value, with a zero day, +// such as a credit card expiration date Related types are +// google.type.TimeOfDay and `google.protobuf.Timestamp`. +type Date struct { + // Day: Day of a month. Must be from 1 to 31 and valid for the year and + // month, or 0 to specify a year by itself or a year and month where the + // day isn't significant. + Day int64 `json:"day,omitempty"` + + // Month: Month of a year. Must be from 1 to 12, or 0 to specify a year + // without a month and day. + Month int64 `json:"month,omitempty"` + + // Year: Year of the date. Must be from 1 to 9999, or 0 to specify a + // date without a year. + Year int64 `json:"year,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Day") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Day") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Date) MarshalJSON() ([]byte, error) { + type NoMethod Date + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DenyMaintenancePeriod: DenyMaintenancePeriod definition. Maintenance +// is forbidden within the deny period. The start_date must be less than +// the end_date. +type DenyMaintenancePeriod struct { + // EndDate: Deny period end date. This can be: * A full date, with + // non-zero year, month and day values. * A month and day value, with a + // zero year. Allows recurring deny periods each year. Date matching + // this period will have to be before the end. + EndDate *Date `json:"endDate,omitempty"` + + // StartDate: Deny period start date. This can be: * A full date, with + // non-zero year, month and day values. * A month and day value, with a + // zero year. Allows recurring deny periods each year. Date matching + // this period will have to be the same or after the start. + StartDate *Date `json:"startDate,omitempty"` + + // Time: Time in UTC when the Blackout period starts on start_date and + // ends on end_date. This can be: * Full time. * All zeros for 00:00:00 + // UTC + Time *TimeOfDay `json:"time,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndDate") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EndDate") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DenyMaintenancePeriod) MarshalJSON() ([]byte, error) { + type NoMethod DenyMaintenancePeriod + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // DetachTrustRequest: Request message for DetachTrust type DetachTrustRequest struct { // Trust: Required. The domain trust resource to removed. @@ -657,11 +777,11 @@ type GoogleCloudSaasacceleratorManagementProvidersV1Instance struct { // value are arbitrary strings provided by the user. Labels map[string]string `json:"labels,omitempty"` - // MaintenancePolicyNames: The MaintenancePolicies that have been - // attached to the instance. The key must be of the type name of the - // oneof policy name defined in MaintenancePolicy, and the referenced - // policy must define the same policy type. For complete details of - // MaintenancePolicy, please refer to go/cloud-saas-mw-ug. + // MaintenancePolicyNames: Deprecated. The MaintenancePolicies that have + // been attached to the instance. The key must be of the type name of + // the oneof policy name defined in MaintenancePolicy, and the + // referenced policy must define the same policy type. For complete + // details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug. MaintenancePolicyNames map[string]string `json:"maintenancePolicyNames,omitempty"` // MaintenanceSchedules: The MaintenanceSchedule contains the scheduling @@ -804,6 +924,16 @@ type GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings struct { // attempted. Exclude bool `json:"exclude,omitempty"` + // MaintenancePolicies: Optional. The MaintenancePolicies that have been + // attached to the instance. The key must be of the type name of the + // oneof policy name defined in MaintenancePolicy, and the embedded + // policy must define the same policy type. For complete details of + // MaintenancePolicy, please refer to go/cloud-saas-mw-ug. If only the + // name is needed (like in the deprecated + // Instance.maintenance_policy_names field) then only populate + // MaintenancePolicy.name. + MaintenancePolicies map[string]MaintenancePolicy `json:"maintenancePolicies,omitempty"` + // ForceSendFields is a list of field names (e.g. "Exclude") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, @@ -1217,6 +1347,98 @@ func (s *Location) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MaintenancePolicy: Defines policies to service maintenance events. +type MaintenancePolicy struct { + // CreateTime: Output only. The time when the resource was created. + CreateTime string `json:"createTime,omitempty"` + + // Description: Optional. Description of what this policy is for. + // Create/Update methods return INVALID_ARGUMENT if the length is + // greater than 512. + Description string `json:"description,omitempty"` + + // Labels: Optional. Resource labels to represent user provided + // metadata. Each label is a key-value pair, where both the key and the + // value are arbitrary strings provided by the user. + Labels map[string]string `json:"labels,omitempty"` + + // Name: Required. MaintenancePolicy name using the form: + // `projects/{project_id}/locations/{location_id}/maintenancePolicies/{ma + // intenance_policy_id}` where {project_id} refers to a GCP consumer + // project ID, {location_id} refers to a GCP region/zone, + // {maintenance_policy_id} must be 1-63 characters long and match the + // regular expression `[a-z0-9]([-a-z0-9]*[a-z0-9])?`. + Name string `json:"name,omitempty"` + + // State: Optional. The state of the policy. + // + // Possible values: + // "STATE_UNSPECIFIED" - Unspecified state. + // "READY" - Resource is ready to be used. + // "DELETING" - Resource is being deleted. It can no longer be + // attached to instances. + State string `json:"state,omitempty"` + + // UpdatePolicy: Maintenance policy applicable to instance update. + UpdatePolicy *UpdatePolicy `json:"updatePolicy,omitempty"` + + // UpdateTime: Output only. The time when the resource was updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MaintenancePolicy) MarshalJSON() ([]byte, error) { + type NoMethod MaintenancePolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MaintenanceWindow: MaintenanceWindow definition. +type MaintenanceWindow struct { + // DailyCycle: Daily cycle. + DailyCycle *DailyCycle `json:"dailyCycle,omitempty"` + + // WeeklyCycle: Weekly cycle. + WeeklyCycle *WeeklyCycle `json:"weeklyCycle,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DailyCycle") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DailyCycle") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MaintenanceWindow) MarshalJSON() ([]byte, error) { + type NoMethod MaintenanceWindow + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Operation: This resource represents a long-running operation that is // the result of a network API call. type Operation struct { @@ -1501,6 +1723,51 @@ func (s *ResetAdminPasswordResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Schedule: Configure the schedule. +type Schedule struct { + // Day: Allows to define schedule that runs specified day of the week. + // + // Possible values: + // "DAY_OF_WEEK_UNSPECIFIED" - The day of the week is unspecified. + // "MONDAY" - Monday + // "TUESDAY" - Tuesday + // "WEDNESDAY" - Wednesday + // "THURSDAY" - Thursday + // "FRIDAY" - Friday + // "SATURDAY" - Saturday + // "SUNDAY" - Sunday + Day string `json:"day,omitempty"` + + // Duration: Output only. Duration of the time window, set by service + // producer. + Duration string `json:"duration,omitempty"` + + // StartTime: Time within the window to start the operations. + StartTime *TimeOfDay `json:"startTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Day") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Day") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Schedule) MarshalJSON() ([]byte, error) { + type NoMethod Schedule + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SetIamPolicyRequest: Request message for `SetIamPolicy` method. type SetIamPolicyRequest struct { // Policy: REQUIRED: The complete policy to be applied to the @@ -1642,6 +1909,50 @@ func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TimeOfDay: Represents a time of day. The date and time zone are +// either not significant or are specified elsewhere. An API may choose +// to allow leap seconds. Related types are google.type.Date and +// `google.protobuf.Timestamp`. +type TimeOfDay struct { + // Hours: Hours of day in 24 hour format. Should be from 0 to 23. An API + // may choose to allow the value "24:00:00" for scenarios like business + // closing time. + Hours int64 `json:"hours,omitempty"` + + // Minutes: Minutes of hour of day. Must be from 0 to 59. + Minutes int64 `json:"minutes,omitempty"` + + // Nanos: Fractions of seconds in nanoseconds. Must be from 0 to + // 999,999,999. + Nanos int64 `json:"nanos,omitempty"` + + // Seconds: Seconds of minutes of the time. Must normally be from 0 to + // 59. An API may allow the value 60 if it allows leap-seconds. + Seconds int64 `json:"seconds,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Hours") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Hours") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TimeOfDay) MarshalJSON() ([]byte, error) { + type NoMethod TimeOfDay + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Trust: Represents a relationship between two domains. This allows a // controller in one domain to authenticate a user in another domain. type Trust struct { @@ -1730,6 +2041,49 @@ func (s *Trust) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// UpdatePolicy: Maintenance policy applicable to instance updates. +type UpdatePolicy struct { + // Channel: Optional. Relative scheduling channel applied to resource. + // + // Possible values: + // "UPDATE_CHANNEL_UNSPECIFIED" - Unspecified channel. + // "EARLIER" - Early channel within a customer project. + // "LATER" - Later channel within a customer project. + Channel string `json:"channel,omitempty"` + + // DenyMaintenancePeriods: Deny Maintenance Period that is applied to + // resource to indicate when maintenance is forbidden. User can specify + // zero or more non-overlapping deny periods. For V1, Maximum number of + // deny_maintenance_periods is expected to be one. + DenyMaintenancePeriods []*DenyMaintenancePeriod `json:"denyMaintenancePeriods,omitempty"` + + // Window: Optional. Maintenance window that is applied to resources + // covered by this policy. + Window *MaintenanceWindow `json:"window,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Channel") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Channel") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *UpdatePolicy) MarshalJSON() ([]byte, error) { + type NoMethod UpdatePolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ValidateTrustRequest: Request message for ValidateTrust type ValidateTrustRequest struct { // Trust: Required. The domain trust to validate trust state for. @@ -1758,6 +2112,35 @@ func (s *ValidateTrustRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// WeeklyCycle: Time window specified for weekly operations. +type WeeklyCycle struct { + // Schedule: User can specify multiple windows in a week. Minimum of 1 + // window. + Schedule []*Schedule `json:"schedule,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Schedule") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Schedule") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *WeeklyCycle) MarshalJSON() ([]byte, error) { + type NoMethod WeeklyCycle + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // method id "managedidentities.projects.locations.get": type ProjectsLocationsGetCall struct { @@ -1813,7 +2196,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1979,7 +2362,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2151,7 +2534,7 @@ func (c *ProjectsLocationsGlobalDomainsAttachTrustCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsAttachTrustCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2305,7 +2688,7 @@ func (c *ProjectsLocationsGlobalDomainsCreateCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2448,7 +2831,7 @@ func (c *ProjectsLocationsGlobalDomainsDeleteCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2580,7 +2963,7 @@ func (c *ProjectsLocationsGlobalDomainsDetachTrustCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsDetachTrustCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2729,7 +3112,7 @@ func (c *ProjectsLocationsGlobalDomainsGetCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2890,7 +3273,7 @@ func (c *ProjectsLocationsGlobalDomainsGetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3075,7 +3458,7 @@ func (c *ProjectsLocationsGlobalDomainsListCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3261,7 +3644,7 @@ func (c *ProjectsLocationsGlobalDomainsPatchCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3407,7 +3790,7 @@ func (c *ProjectsLocationsGlobalDomainsReconfigureTrustCall) Header() http.Heade func (c *ProjectsLocationsGlobalDomainsReconfigureTrustCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3547,7 +3930,7 @@ func (c *ProjectsLocationsGlobalDomainsResetAdminPasswordCall) Header() http.Hea func (c *ProjectsLocationsGlobalDomainsResetAdminPasswordCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3689,7 +4072,7 @@ func (c *ProjectsLocationsGlobalDomainsSetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3834,7 +4217,7 @@ func (c *ProjectsLocationsGlobalDomainsTestIamPermissionsCall) Header() http.Hea func (c *ProjectsLocationsGlobalDomainsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3976,7 +4359,7 @@ func (c *ProjectsLocationsGlobalDomainsValidateTrustCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsValidateTrustCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4125,7 +4508,7 @@ func (c *ProjectsLocationsGlobalOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsGlobalOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4266,7 +4649,7 @@ func (c *ProjectsLocationsGlobalOperationsDeleteCall) Header() http.Header { func (c *ProjectsLocationsGlobalOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4409,7 +4792,7 @@ func (c *ProjectsLocationsGlobalOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsGlobalOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4583,7 +4966,7 @@ func (c *ProjectsLocationsGlobalOperationsListCall) Header() http.Header { func (c *ProjectsLocationsGlobalOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/managedidentities/v1alpha1/managedidentities-api.json b/managedidentities/v1alpha1/managedidentities-api.json index 680754d87cb..da8d391f09f 100644 --- a/managedidentities/v1alpha1/managedidentities-api.json +++ b/managedidentities/v1alpha1/managedidentities-api.json @@ -780,7 +780,7 @@ } } }, - "revision": "20201007", + "revision": "20201030", "rootUrl": "https://managedidentities.googleapis.com/", "schemas": { "AttachTrustRequest": { @@ -798,7 +798,6 @@ "id": "Binding", "properties": { "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", "type": "string" }, "condition": { @@ -825,6 +824,63 @@ "properties": {}, "type": "object" }, + "DailyCycle": { + "description": "Time window specified for daily operations.", + "id": "DailyCycle", + "properties": { + "duration": { + "description": "Output only. Duration of the time window, set by service producer.", + "format": "google-duration", + "type": "string" + }, + "startTime": { + "$ref": "TimeOfDay", + "description": "Time within the day to start the operations." + } + }, + "type": "object" + }, + "Date": { + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.", + "id": "Date", + "properties": { + "day": { + "description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.", + "format": "int32", + "type": "integer" + }, + "month": { + "description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.", + "format": "int32", + "type": "integer" + }, + "year": { + "description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "DenyMaintenancePeriod": { + "description": "DenyMaintenancePeriod definition. Maintenance is forbidden within the deny period. The start_date must be less than the end_date.", + "id": "DenyMaintenancePeriod", + "properties": { + "endDate": { + "$ref": "Date", + "description": "Deny period end date. This can be: * A full date, with non-zero year, month and day values. * A month and day value, with a zero year. Allows recurring deny periods each year. Date matching this period will have to be before the end." + }, + "startDate": { + "$ref": "Date", + "description": "Deny period start date. This can be: * A full date, with non-zero year, month and day values. * A month and day value, with a zero year. Allows recurring deny periods each year. Date matching this period will have to be the same or after the start." + }, + "time": { + "$ref": "TimeOfDay", + "description": "Time in UTC when the Blackout period starts on start_date and ends on end_date. This can be: * Full time. * All zeros for 00:00:00 UTC" + } + }, + "type": "object" + }, "DetachTrustRequest": { "id": "DetachTrustRequest", "properties": { @@ -1093,7 +1149,7 @@ "additionalProperties": { "type": "string" }, - "description": "The MaintenancePolicies that have been attached to the instance. The key must be of the type name of the oneof policy name defined in MaintenancePolicy, and the referenced policy must define the same policy type. For complete details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug.", + "description": "Deprecated. The MaintenancePolicies that have been attached to the instance. The key must be of the type name of the oneof policy name defined in MaintenancePolicy, and the referenced policy must define the same policy type. For complete details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug.", "type": "object" }, "maintenanceSchedules": { @@ -1212,6 +1268,13 @@ "exclude": { "description": "Optional. Exclude instance from maintenance. When true, rollout service will not attempt maintenance on the instance. Rollout service will include the instance in reported rollout progress as not attempted.", "type": "boolean" + }, + "maintenancePolicies": { + "additionalProperties": { + "$ref": "MaintenancePolicy" + }, + "description": "Optional. The MaintenancePolicies that have been attached to the instance. The key must be of the type name of the oneof policy name defined in MaintenancePolicy, and the embedded policy must define the same policy type. For complete details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug. If only the name is needed (like in the deprecated Instance.maintenance_policy_names field) then only populate MaintenancePolicy.name.", + "type": "object" } }, "type": "object" @@ -1441,6 +1504,71 @@ }, "type": "object" }, + "MaintenancePolicy": { + "description": "Defines policies to service maintenance events.", + "id": "MaintenancePolicy", + "properties": { + "createTime": { + "description": "Output only. The time when the resource was created.", + "format": "google-datetime", + "type": "string" + }, + "description": { + "description": "Optional. Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Resource labels to represent user provided metadata. Each label is a key-value pair, where both the key and the value are arbitrary strings provided by the user.", + "type": "object" + }, + "name": { + "description": "Required. MaintenancePolicy name using the form: `projects/{project_id}/locations/{location_id}/maintenancePolicies/{maintenance_policy_id}` where {project_id} refers to a GCP consumer project ID, {location_id} refers to a GCP region/zone, {maintenance_policy_id} must be 1-63 characters long and match the regular expression `[a-z0-9]([-a-z0-9]*[a-z0-9])?`.", + "type": "string" + }, + "state": { + "description": "Optional. The state of the policy.", + "enum": [ + "STATE_UNSPECIFIED", + "READY", + "DELETING" + ], + "enumDescriptions": [ + "Unspecified state.", + "Resource is ready to be used.", + "Resource is being deleted. It can no longer be attached to instances." + ], + "type": "string" + }, + "updatePolicy": { + "$ref": "UpdatePolicy", + "description": "Maintenance policy applicable to instance update." + }, + "updateTime": { + "description": "Output only. The time when the resource was updated.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "MaintenanceWindow": { + "description": "MaintenanceWindow definition.", + "id": "MaintenanceWindow", + "properties": { + "dailyCycle": { + "$ref": "DailyCycle", + "description": "Daily cycle." + }, + "weeklyCycle": { + "$ref": "WeeklyCycle", + "description": "Weekly cycle." + } + }, + "type": "object" + }, "Operation": { "description": "This resource represents a long-running operation that is the result of a network API call.", "id": "Operation", @@ -1606,6 +1734,46 @@ }, "type": "object" }, + "Schedule": { + "description": "Configure the schedule.", + "id": "Schedule", + "properties": { + "day": { + "description": "Allows to define schedule that runs specified day of the week.", + "enum": [ + "DAY_OF_WEEK_UNSPECIFIED", + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ], + "enumDescriptions": [ + "The day of the week is unspecified.", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ], + "type": "string" + }, + "duration": { + "description": "Output only. Duration of the time window, set by service producer.", + "format": "google-duration", + "type": "string" + }, + "startTime": { + "$ref": "TimeOfDay", + "description": "Time within the window to start the operations." + } + }, + "type": "object" + }, "SetIamPolicyRequest": { "description": "Request message for `SetIamPolicy` method.", "id": "SetIamPolicyRequest", @@ -1672,6 +1840,33 @@ }, "type": "object" }, + "TimeOfDay": { + "description": "Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.", + "id": "TimeOfDay", + "properties": { + "hours": { + "description": "Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + "format": "int32", + "type": "integer" + }, + "minutes": { + "description": "Minutes of hour of day. Must be from 0 to 59.", + "format": "int32", + "type": "integer" + }, + "nanos": { + "description": "Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.", + "format": "int32", + "type": "integer" + }, + "seconds": { + "description": "Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "Trust": { "description": "Represents a relationship between two domains which makes it possible for users in one domain to be authenticated by a dc in another domain. Refer https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc731335(v%3dws.10)", "id": "Trust", @@ -1767,6 +1962,38 @@ }, "type": "object" }, + "UpdatePolicy": { + "description": "Maintenance policy applicable to instance updates.", + "id": "UpdatePolicy", + "properties": { + "channel": { + "description": "Optional. Relative scheduling channel applied to resource.", + "enum": [ + "UPDATE_CHANNEL_UNSPECIFIED", + "EARLIER", + "LATER" + ], + "enumDescriptions": [ + "Unspecified channel.", + "Early channel within a customer project.", + "Later channel within a customer project." + ], + "type": "string" + }, + "denyMaintenancePeriods": { + "description": "Deny Maintenance Period that is applied to resource to indicate when maintenance is forbidden. User can specify zero or more non-overlapping deny periods. For V1, Maximum number of deny_maintenance_periods is expected to be one.", + "items": { + "$ref": "DenyMaintenancePeriod" + }, + "type": "array" + }, + "window": { + "$ref": "MaintenanceWindow", + "description": "Optional. Maintenance window that is applied to resources covered by this policy." + } + }, + "type": "object" + }, "ValidateTrustRequest": { "id": "ValidateTrustRequest", "properties": { @@ -1776,6 +2003,20 @@ } }, "type": "object" + }, + "WeeklyCycle": { + "description": "Time window specified for weekly operations.", + "id": "WeeklyCycle", + "properties": { + "schedule": { + "description": "User can specify multiple windows in a week. Minimum of 1 window.", + "items": { + "$ref": "Schedule" + }, + "type": "array" + } + }, + "type": "object" } }, "servicePath": "", diff --git a/managedidentities/v1alpha1/managedidentities-gen.go b/managedidentities/v1alpha1/managedidentities-gen.go index a32a2341b09..07b029fbbe2 100644 --- a/managedidentities/v1alpha1/managedidentities-gen.go +++ b/managedidentities/v1alpha1/managedidentities-gen.go @@ -233,8 +233,6 @@ func (s *AttachTrustRequest) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. BindingId string `json:"bindingId,omitempty"` // Condition: The condition that is associated with this binding. If the @@ -314,6 +312,128 @@ func (s *Binding) MarshalJSON() ([]byte, error) { type CancelOperationRequest struct { } +// DailyCycle: Time window specified for daily operations. +type DailyCycle struct { + // Duration: Output only. Duration of the time window, set by service + // producer. + Duration string `json:"duration,omitempty"` + + // StartTime: Time within the day to start the operations. + StartTime *TimeOfDay `json:"startTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Duration") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Duration") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DailyCycle) MarshalJSON() ([]byte, error) { + type NoMethod DailyCycle + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Date: Represents a whole or partial calendar date, such as a +// birthday. The time of day and time zone are either specified +// elsewhere or are insignificant. The date is relative to the Gregorian +// Calendar. This can represent one of the following: * A full date, +// with non-zero year, month, and day values * A month and day value, +// with a zero year, such as an anniversary * A year on its own, with +// zero month and day values * A year and month value, with a zero day, +// such as a credit card expiration date Related types are +// google.type.TimeOfDay and `google.protobuf.Timestamp`. +type Date struct { + // Day: Day of a month. Must be from 1 to 31 and valid for the year and + // month, or 0 to specify a year by itself or a year and month where the + // day isn't significant. + Day int64 `json:"day,omitempty"` + + // Month: Month of a year. Must be from 1 to 12, or 0 to specify a year + // without a month and day. + Month int64 `json:"month,omitempty"` + + // Year: Year of the date. Must be from 1 to 9999, or 0 to specify a + // date without a year. + Year int64 `json:"year,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Day") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Day") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Date) MarshalJSON() ([]byte, error) { + type NoMethod Date + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DenyMaintenancePeriod: DenyMaintenancePeriod definition. Maintenance +// is forbidden within the deny period. The start_date must be less than +// the end_date. +type DenyMaintenancePeriod struct { + // EndDate: Deny period end date. This can be: * A full date, with + // non-zero year, month and day values. * A month and day value, with a + // zero year. Allows recurring deny periods each year. Date matching + // this period will have to be before the end. + EndDate *Date `json:"endDate,omitempty"` + + // StartDate: Deny period start date. This can be: * A full date, with + // non-zero year, month and day values. * A month and day value, with a + // zero year. Allows recurring deny periods each year. Date matching + // this period will have to be the same or after the start. + StartDate *Date `json:"startDate,omitempty"` + + // Time: Time in UTC when the Blackout period starts on start_date and + // ends on end_date. This can be: * Full time. * All zeros for 00:00:00 + // UTC + Time *TimeOfDay `json:"time,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndDate") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EndDate") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DenyMaintenancePeriod) MarshalJSON() ([]byte, error) { + type NoMethod DenyMaintenancePeriod + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type DetachTrustRequest struct { // Trust: The domain trust resource to removed. Trust *Trust `json:"trust,omitempty"` @@ -672,11 +792,11 @@ type GoogleCloudSaasacceleratorManagementProvidersV1Instance struct { // value are arbitrary strings provided by the user. Labels map[string]string `json:"labels,omitempty"` - // MaintenancePolicyNames: The MaintenancePolicies that have been - // attached to the instance. The key must be of the type name of the - // oneof policy name defined in MaintenancePolicy, and the referenced - // policy must define the same policy type. For complete details of - // MaintenancePolicy, please refer to go/cloud-saas-mw-ug. + // MaintenancePolicyNames: Deprecated. The MaintenancePolicies that have + // been attached to the instance. The key must be of the type name of + // the oneof policy name defined in MaintenancePolicy, and the + // referenced policy must define the same policy type. For complete + // details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug. MaintenancePolicyNames map[string]string `json:"maintenancePolicyNames,omitempty"` // MaintenanceSchedules: The MaintenanceSchedule contains the scheduling @@ -819,6 +939,16 @@ type GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings struct { // attempted. Exclude bool `json:"exclude,omitempty"` + // MaintenancePolicies: Optional. The MaintenancePolicies that have been + // attached to the instance. The key must be of the type name of the + // oneof policy name defined in MaintenancePolicy, and the embedded + // policy must define the same policy type. For complete details of + // MaintenancePolicy, please refer to go/cloud-saas-mw-ug. If only the + // name is needed (like in the deprecated + // Instance.maintenance_policy_names field) then only populate + // MaintenancePolicy.name. + MaintenancePolicies map[string]MaintenancePolicy `json:"maintenancePolicies,omitempty"` + // ForceSendFields is a list of field names (e.g. "Exclude") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, @@ -1271,6 +1401,98 @@ func (s *Location) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MaintenancePolicy: Defines policies to service maintenance events. +type MaintenancePolicy struct { + // CreateTime: Output only. The time when the resource was created. + CreateTime string `json:"createTime,omitempty"` + + // Description: Optional. Description of what this policy is for. + // Create/Update methods return INVALID_ARGUMENT if the length is + // greater than 512. + Description string `json:"description,omitempty"` + + // Labels: Optional. Resource labels to represent user provided + // metadata. Each label is a key-value pair, where both the key and the + // value are arbitrary strings provided by the user. + Labels map[string]string `json:"labels,omitempty"` + + // Name: Required. MaintenancePolicy name using the form: + // `projects/{project_id}/locations/{location_id}/maintenancePolicies/{ma + // intenance_policy_id}` where {project_id} refers to a GCP consumer + // project ID, {location_id} refers to a GCP region/zone, + // {maintenance_policy_id} must be 1-63 characters long and match the + // regular expression `[a-z0-9]([-a-z0-9]*[a-z0-9])?`. + Name string `json:"name,omitempty"` + + // State: Optional. The state of the policy. + // + // Possible values: + // "STATE_UNSPECIFIED" - Unspecified state. + // "READY" - Resource is ready to be used. + // "DELETING" - Resource is being deleted. It can no longer be + // attached to instances. + State string `json:"state,omitempty"` + + // UpdatePolicy: Maintenance policy applicable to instance update. + UpdatePolicy *UpdatePolicy `json:"updatePolicy,omitempty"` + + // UpdateTime: Output only. The time when the resource was updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MaintenancePolicy) MarshalJSON() ([]byte, error) { + type NoMethod MaintenancePolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MaintenanceWindow: MaintenanceWindow definition. +type MaintenanceWindow struct { + // DailyCycle: Daily cycle. + DailyCycle *DailyCycle `json:"dailyCycle,omitempty"` + + // WeeklyCycle: Weekly cycle. + WeeklyCycle *WeeklyCycle `json:"weeklyCycle,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DailyCycle") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DailyCycle") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MaintenanceWindow) MarshalJSON() ([]byte, error) { + type NoMethod MaintenanceWindow + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Operation: This resource represents a long-running operation that is // the result of a network API call. type Operation struct { @@ -1601,6 +1823,51 @@ func (s *SQLIntegration) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Schedule: Configure the schedule. +type Schedule struct { + // Day: Allows to define schedule that runs specified day of the week. + // + // Possible values: + // "DAY_OF_WEEK_UNSPECIFIED" - The day of the week is unspecified. + // "MONDAY" - Monday + // "TUESDAY" - Tuesday + // "WEDNESDAY" - Wednesday + // "THURSDAY" - Thursday + // "FRIDAY" - Friday + // "SATURDAY" - Saturday + // "SUNDAY" - Sunday + Day string `json:"day,omitempty"` + + // Duration: Output only. Duration of the time window, set by service + // producer. + Duration string `json:"duration,omitempty"` + + // StartTime: Time within the window to start the operations. + StartTime *TimeOfDay `json:"startTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Day") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Day") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Schedule) MarshalJSON() ([]byte, error) { + type NoMethod Schedule + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SetIamPolicyRequest: Request message for `SetIamPolicy` method. type SetIamPolicyRequest struct { // Policy: REQUIRED: The complete policy to be applied to the @@ -1742,6 +2009,50 @@ func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TimeOfDay: Represents a time of day. The date and time zone are +// either not significant or are specified elsewhere. An API may choose +// to allow leap seconds. Related types are google.type.Date and +// `google.protobuf.Timestamp`. +type TimeOfDay struct { + // Hours: Hours of day in 24 hour format. Should be from 0 to 23. An API + // may choose to allow the value "24:00:00" for scenarios like business + // closing time. + Hours int64 `json:"hours,omitempty"` + + // Minutes: Minutes of hour of day. Must be from 0 to 59. + Minutes int64 `json:"minutes,omitempty"` + + // Nanos: Fractions of seconds in nanoseconds. Must be from 0 to + // 999,999,999. + Nanos int64 `json:"nanos,omitempty"` + + // Seconds: Seconds of minutes of the time. Must normally be from 0 to + // 59. An API may allow the value 60 if it allows leap-seconds. + Seconds int64 `json:"seconds,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Hours") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Hours") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TimeOfDay) MarshalJSON() ([]byte, error) { + type NoMethod TimeOfDay + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Trust: Represents a relationship between two domains which makes it // possible for users in one domain to be authenticated by a dc in // another domain. Refer @@ -1831,6 +2142,49 @@ func (s *Trust) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// UpdatePolicy: Maintenance policy applicable to instance updates. +type UpdatePolicy struct { + // Channel: Optional. Relative scheduling channel applied to resource. + // + // Possible values: + // "UPDATE_CHANNEL_UNSPECIFIED" - Unspecified channel. + // "EARLIER" - Early channel within a customer project. + // "LATER" - Later channel within a customer project. + Channel string `json:"channel,omitempty"` + + // DenyMaintenancePeriods: Deny Maintenance Period that is applied to + // resource to indicate when maintenance is forbidden. User can specify + // zero or more non-overlapping deny periods. For V1, Maximum number of + // deny_maintenance_periods is expected to be one. + DenyMaintenancePeriods []*DenyMaintenancePeriod `json:"denyMaintenancePeriods,omitempty"` + + // Window: Optional. Maintenance window that is applied to resources + // covered by this policy. + Window *MaintenanceWindow `json:"window,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Channel") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Channel") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *UpdatePolicy) MarshalJSON() ([]byte, error) { + type NoMethod UpdatePolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type ValidateTrustRequest struct { // Trust: The domain trust to validate trust state for. Trust *Trust `json:"trust,omitempty"` @@ -1858,6 +2212,35 @@ func (s *ValidateTrustRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// WeeklyCycle: Time window specified for weekly operations. +type WeeklyCycle struct { + // Schedule: User can specify multiple windows in a week. Minimum of 1 + // window. + Schedule []*Schedule `json:"schedule,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Schedule") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Schedule") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *WeeklyCycle) MarshalJSON() ([]byte, error) { + type NoMethod WeeklyCycle + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // method id "managedidentities.projects.locations.get": type ProjectsLocationsGetCall struct { @@ -1913,7 +2296,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2079,7 +2462,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2251,7 +2634,7 @@ func (c *ProjectsLocationsGlobalDomainsAttachTrustCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsAttachTrustCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2405,7 +2788,7 @@ func (c *ProjectsLocationsGlobalDomainsCreateCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2548,7 +2931,7 @@ func (c *ProjectsLocationsGlobalDomainsDeleteCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2680,7 +3063,7 @@ func (c *ProjectsLocationsGlobalDomainsDetachTrustCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsDetachTrustCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2829,7 +3212,7 @@ func (c *ProjectsLocationsGlobalDomainsGetCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2990,7 +3373,7 @@ func (c *ProjectsLocationsGlobalDomainsGetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3173,7 +3556,7 @@ func (c *ProjectsLocationsGlobalDomainsListCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3361,7 +3744,7 @@ func (c *ProjectsLocationsGlobalDomainsPatchCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3507,7 +3890,7 @@ func (c *ProjectsLocationsGlobalDomainsReconfigureTrustCall) Header() http.Heade func (c *ProjectsLocationsGlobalDomainsReconfigureTrustCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3648,7 +4031,7 @@ func (c *ProjectsLocationsGlobalDomainsResetAdminPasswordCall) Header() http.Hea func (c *ProjectsLocationsGlobalDomainsResetAdminPasswordCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3790,7 +4173,7 @@ func (c *ProjectsLocationsGlobalDomainsSetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3935,7 +4318,7 @@ func (c *ProjectsLocationsGlobalDomainsTestIamPermissionsCall) Header() http.Hea func (c *ProjectsLocationsGlobalDomainsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4075,7 +4458,7 @@ func (c *ProjectsLocationsGlobalDomainsValidateTrustCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsValidateTrustCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4224,7 +4607,7 @@ func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsGetCall) Header() http.Hea func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4402,7 +4785,7 @@ func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsListCall) Header() http.He func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4588,7 +4971,7 @@ func (c *ProjectsLocationsGlobalOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsGlobalOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4729,7 +5112,7 @@ func (c *ProjectsLocationsGlobalOperationsDeleteCall) Header() http.Header { func (c *ProjectsLocationsGlobalOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4872,7 +5255,7 @@ func (c *ProjectsLocationsGlobalOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsGlobalOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5046,7 +5429,7 @@ func (c *ProjectsLocationsGlobalOperationsListCall) Header() http.Header { func (c *ProjectsLocationsGlobalOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/managedidentities/v1beta1/managedidentities-api.json b/managedidentities/v1beta1/managedidentities-api.json index 60b7986b9ff..0998cce5a80 100644 --- a/managedidentities/v1beta1/managedidentities-api.json +++ b/managedidentities/v1beta1/managedidentities-api.json @@ -780,7 +780,7 @@ } } }, - "revision": "20201007", + "revision": "20201113", "rootUrl": "https://managedidentities.googleapis.com/", "schemas": { "AttachTrustRequest": { @@ -798,10 +798,6 @@ "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { - "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", - "type": "string" - }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." @@ -826,6 +822,63 @@ "properties": {}, "type": "object" }, + "DailyCycle": { + "description": "Time window specified for daily operations.", + "id": "DailyCycle", + "properties": { + "duration": { + "description": "Output only. Duration of the time window, set by service producer.", + "format": "google-duration", + "type": "string" + }, + "startTime": { + "$ref": "TimeOfDay", + "description": "Time within the day to start the operations." + } + }, + "type": "object" + }, + "Date": { + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.", + "id": "Date", + "properties": { + "day": { + "description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.", + "format": "int32", + "type": "integer" + }, + "month": { + "description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.", + "format": "int32", + "type": "integer" + }, + "year": { + "description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "DenyMaintenancePeriod": { + "description": "DenyMaintenancePeriod definition. Maintenance is forbidden within the deny period. The start_date must be less than the end_date.", + "id": "DenyMaintenancePeriod", + "properties": { + "endDate": { + "$ref": "Date", + "description": "Deny period end date. This can be: * A full date, with non-zero year, month and day values. * A month and day value, with a zero year. Allows recurring deny periods each year. Date matching this period will have to be before the end." + }, + "startDate": { + "$ref": "Date", + "description": "Deny period start date. This can be: * A full date, with non-zero year, month and day values. * A month and day value, with a zero year. Allows recurring deny periods each year. Date matching this period will have to be the same or after the start." + }, + "time": { + "$ref": "TimeOfDay", + "description": "Time in UTC when the Blackout period starts on start_date and ends on end_date. This can be: * Full time. * All zeros for 00:00:00 UTC" + } + }, + "type": "object" + }, "DetachTrustRequest": { "description": "Request message for DetachTrust", "id": "DetachTrustRequest", @@ -838,7 +891,7 @@ "type": "object" }, "Domain": { - "description": "Represents a managed Microsoft Active Directory domain.", + "description": "If the domain is being changed, it will be placed into the UPDATING state, which indicates that the resource is being reconciled. At this point, Get will reflect an intermediate state. Represents a managed Microsoft Active Directory domain.", "id": "Domain", "properties": { "admin": { @@ -1103,7 +1156,7 @@ "additionalProperties": { "type": "string" }, - "description": "The MaintenancePolicies that have been attached to the instance. The key must be of the type name of the oneof policy name defined in MaintenancePolicy, and the referenced policy must define the same policy type. For complete details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug.", + "description": "Deprecated. The MaintenancePolicies that have been attached to the instance. The key must be of the type name of the oneof policy name defined in MaintenancePolicy, and the referenced policy must define the same policy type. For complete details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug.", "type": "object" }, "maintenanceSchedules": { @@ -1222,6 +1275,13 @@ "exclude": { "description": "Optional. Exclude instance from maintenance. When true, rollout service will not attempt maintenance on the instance. Rollout service will include the instance in reported rollout progress as not attempted.", "type": "boolean" + }, + "maintenancePolicies": { + "additionalProperties": { + "$ref": "MaintenancePolicy" + }, + "description": "Optional. The MaintenancePolicies that have been attached to the instance. The key must be of the type name of the oneof policy name defined in MaintenancePolicy, and the embedded policy must define the same policy type. For complete details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug. If only the name is needed (like in the deprecated Instance.maintenance_policy_names field) then only populate MaintenancePolicy.name.", + "type": "object" } }, "type": "object" @@ -1452,6 +1512,71 @@ }, "type": "object" }, + "MaintenancePolicy": { + "description": "Defines policies to service maintenance events.", + "id": "MaintenancePolicy", + "properties": { + "createTime": { + "description": "Output only. The time when the resource was created.", + "format": "google-datetime", + "type": "string" + }, + "description": { + "description": "Optional. Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Resource labels to represent user provided metadata. Each label is a key-value pair, where both the key and the value are arbitrary strings provided by the user.", + "type": "object" + }, + "name": { + "description": "Required. MaintenancePolicy name using the form: `projects/{project_id}/locations/{location_id}/maintenancePolicies/{maintenance_policy_id}` where {project_id} refers to a GCP consumer project ID, {location_id} refers to a GCP region/zone, {maintenance_policy_id} must be 1-63 characters long and match the regular expression `[a-z0-9]([-a-z0-9]*[a-z0-9])?`.", + "type": "string" + }, + "state": { + "description": "Optional. The state of the policy.", + "enum": [ + "STATE_UNSPECIFIED", + "READY", + "DELETING" + ], + "enumDescriptions": [ + "Unspecified state.", + "Resource is ready to be used.", + "Resource is being deleted. It can no longer be attached to instances." + ], + "type": "string" + }, + "updatePolicy": { + "$ref": "UpdatePolicy", + "description": "Maintenance policy applicable to instance update." + }, + "updateTime": { + "description": "Output only. The time when the resource was updated.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "MaintenanceWindow": { + "description": "MaintenanceWindow definition.", + "id": "MaintenanceWindow", + "properties": { + "dailyCycle": { + "$ref": "DailyCycle", + "description": "Daily cycle." + }, + "weeklyCycle": { + "$ref": "WeeklyCycle", + "description": "Weekly cycle." + } + }, + "type": "object" + }, "Operation": { "description": "This resource represents a long-running operation that is the result of a network API call.", "id": "Operation", @@ -1627,6 +1752,46 @@ }, "type": "object" }, + "Schedule": { + "description": "Configure the schedule.", + "id": "Schedule", + "properties": { + "day": { + "description": "Allows to define schedule that runs specified day of the week.", + "enum": [ + "DAY_OF_WEEK_UNSPECIFIED", + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ], + "enumDescriptions": [ + "The day of the week is unspecified.", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ], + "type": "string" + }, + "duration": { + "description": "Output only. Duration of the time window, set by service producer.", + "format": "google-duration", + "type": "string" + }, + "startTime": { + "$ref": "TimeOfDay", + "description": "Time within the window to start the operations." + } + }, + "type": "object" + }, "SetIamPolicyRequest": { "description": "Request message for `SetIamPolicy` method.", "id": "SetIamPolicyRequest", @@ -1693,6 +1858,33 @@ }, "type": "object" }, + "TimeOfDay": { + "description": "Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.", + "id": "TimeOfDay", + "properties": { + "hours": { + "description": "Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + "format": "int32", + "type": "integer" + }, + "minutes": { + "description": "Minutes of hour of day. Must be from 0 to 59.", + "format": "int32", + "type": "integer" + }, + "nanos": { + "description": "Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.", + "format": "int32", + "type": "integer" + }, + "seconds": { + "description": "Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "Trust": { "description": "Represents a relationship between two domains. This allows a controller in one domain to authenticate a user in another domain.", "id": "Trust", @@ -1793,6 +1985,38 @@ }, "type": "object" }, + "UpdatePolicy": { + "description": "Maintenance policy applicable to instance updates.", + "id": "UpdatePolicy", + "properties": { + "channel": { + "description": "Optional. Relative scheduling channel applied to resource.", + "enum": [ + "UPDATE_CHANNEL_UNSPECIFIED", + "EARLIER", + "LATER" + ], + "enumDescriptions": [ + "Unspecified channel.", + "Early channel within a customer project.", + "Later channel within a customer project." + ], + "type": "string" + }, + "denyMaintenancePeriods": { + "description": "Deny Maintenance Period that is applied to resource to indicate when maintenance is forbidden. User can specify zero or more non-overlapping deny periods. For V1, Maximum number of deny_maintenance_periods is expected to be one.", + "items": { + "$ref": "DenyMaintenancePeriod" + }, + "type": "array" + }, + "window": { + "$ref": "MaintenanceWindow", + "description": "Optional. Maintenance window that is applied to resources covered by this policy." + } + }, + "type": "object" + }, "ValidateTrustRequest": { "description": "Request message for ValidateTrust", "id": "ValidateTrustRequest", @@ -1803,6 +2027,20 @@ } }, "type": "object" + }, + "WeeklyCycle": { + "description": "Time window specified for weekly operations.", + "id": "WeeklyCycle", + "properties": { + "schedule": { + "description": "User can specify multiple windows in a week. Minimum of 1 window.", + "items": { + "$ref": "Schedule" + }, + "type": "array" + } + }, + "type": "object" } }, "servicePath": "", diff --git a/managedidentities/v1beta1/managedidentities-gen.go b/managedidentities/v1beta1/managedidentities-gen.go index 110c82d64e7..3d6f0b83b65 100644 --- a/managedidentities/v1beta1/managedidentities-gen.go +++ b/managedidentities/v1beta1/managedidentities-gen.go @@ -234,10 +234,6 @@ func (s *AttachTrustRequest) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. - BindingId string `json:"bindingId,omitempty"` - // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -287,7 +283,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "BindingId") to + // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -295,7 +291,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BindingId") to include in + // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -315,6 +311,128 @@ func (s *Binding) MarshalJSON() ([]byte, error) { type CancelOperationRequest struct { } +// DailyCycle: Time window specified for daily operations. +type DailyCycle struct { + // Duration: Output only. Duration of the time window, set by service + // producer. + Duration string `json:"duration,omitempty"` + + // StartTime: Time within the day to start the operations. + StartTime *TimeOfDay `json:"startTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Duration") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Duration") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DailyCycle) MarshalJSON() ([]byte, error) { + type NoMethod DailyCycle + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Date: Represents a whole or partial calendar date, such as a +// birthday. The time of day and time zone are either specified +// elsewhere or are insignificant. The date is relative to the Gregorian +// Calendar. This can represent one of the following: * A full date, +// with non-zero year, month, and day values * A month and day value, +// with a zero year, such as an anniversary * A year on its own, with +// zero month and day values * A year and month value, with a zero day, +// such as a credit card expiration date Related types are +// google.type.TimeOfDay and `google.protobuf.Timestamp`. +type Date struct { + // Day: Day of a month. Must be from 1 to 31 and valid for the year and + // month, or 0 to specify a year by itself or a year and month where the + // day isn't significant. + Day int64 `json:"day,omitempty"` + + // Month: Month of a year. Must be from 1 to 12, or 0 to specify a year + // without a month and day. + Month int64 `json:"month,omitempty"` + + // Year: Year of the date. Must be from 1 to 9999, or 0 to specify a + // date without a year. + Year int64 `json:"year,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Day") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Day") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Date) MarshalJSON() ([]byte, error) { + type NoMethod Date + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DenyMaintenancePeriod: DenyMaintenancePeriod definition. Maintenance +// is forbidden within the deny period. The start_date must be less than +// the end_date. +type DenyMaintenancePeriod struct { + // EndDate: Deny period end date. This can be: * A full date, with + // non-zero year, month and day values. * A month and day value, with a + // zero year. Allows recurring deny periods each year. Date matching + // this period will have to be before the end. + EndDate *Date `json:"endDate,omitempty"` + + // StartDate: Deny period start date. This can be: * A full date, with + // non-zero year, month and day values. * A month and day value, with a + // zero year. Allows recurring deny periods each year. Date matching + // this period will have to be the same or after the start. + StartDate *Date `json:"startDate,omitempty"` + + // Time: Time in UTC when the Blackout period starts on start_date and + // ends on end_date. This can be: * Full time. * All zeros for 00:00:00 + // UTC + Time *TimeOfDay `json:"time,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndDate") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EndDate") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DenyMaintenancePeriod) MarshalJSON() ([]byte, error) { + type NoMethod DenyMaintenancePeriod + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // DetachTrustRequest: Request message for DetachTrust type DetachTrustRequest struct { // Trust: Required. The domain trust resource to removed. @@ -343,7 +461,10 @@ func (s *DetachTrustRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Domain: Represents a managed Microsoft Active Directory domain. +// Domain: If the domain is being changed, it will be placed into the +// UPDATING state, which indicates that the resource is being +// reconciled. At this point, Get will reflect an intermediate state. +// Represents a managed Microsoft Active Directory domain. type Domain struct { // Admin: Optional. The name of delegated administrator account used to // perform Active Directory operations. If not specified, `setupadmin` @@ -669,11 +790,11 @@ type GoogleCloudSaasacceleratorManagementProvidersV1Instance struct { // value are arbitrary strings provided by the user. Labels map[string]string `json:"labels,omitempty"` - // MaintenancePolicyNames: The MaintenancePolicies that have been - // attached to the instance. The key must be of the type name of the - // oneof policy name defined in MaintenancePolicy, and the referenced - // policy must define the same policy type. For complete details of - // MaintenancePolicy, please refer to go/cloud-saas-mw-ug. + // MaintenancePolicyNames: Deprecated. The MaintenancePolicies that have + // been attached to the instance. The key must be of the type name of + // the oneof policy name defined in MaintenancePolicy, and the + // referenced policy must define the same policy type. For complete + // details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug. MaintenancePolicyNames map[string]string `json:"maintenancePolicyNames,omitempty"` // MaintenanceSchedules: The MaintenanceSchedule contains the scheduling @@ -816,6 +937,16 @@ type GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings struct { // attempted. Exclude bool `json:"exclude,omitempty"` + // MaintenancePolicies: Optional. The MaintenancePolicies that have been + // attached to the instance. The key must be of the type name of the + // oneof policy name defined in MaintenancePolicy, and the embedded + // policy must define the same policy type. For complete details of + // MaintenancePolicy, please refer to go/cloud-saas-mw-ug. If only the + // name is needed (like in the deprecated + // Instance.maintenance_policy_names field) then only populate + // MaintenancePolicy.name. + MaintenancePolicies map[string]MaintenancePolicy `json:"maintenancePolicies,omitempty"` + // ForceSendFields is a list of field names (e.g. "Exclude") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, @@ -1269,6 +1400,98 @@ func (s *Location) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MaintenancePolicy: Defines policies to service maintenance events. +type MaintenancePolicy struct { + // CreateTime: Output only. The time when the resource was created. + CreateTime string `json:"createTime,omitempty"` + + // Description: Optional. Description of what this policy is for. + // Create/Update methods return INVALID_ARGUMENT if the length is + // greater than 512. + Description string `json:"description,omitempty"` + + // Labels: Optional. Resource labels to represent user provided + // metadata. Each label is a key-value pair, where both the key and the + // value are arbitrary strings provided by the user. + Labels map[string]string `json:"labels,omitempty"` + + // Name: Required. MaintenancePolicy name using the form: + // `projects/{project_id}/locations/{location_id}/maintenancePolicies/{ma + // intenance_policy_id}` where {project_id} refers to a GCP consumer + // project ID, {location_id} refers to a GCP region/zone, + // {maintenance_policy_id} must be 1-63 characters long and match the + // regular expression `[a-z0-9]([-a-z0-9]*[a-z0-9])?`. + Name string `json:"name,omitempty"` + + // State: Optional. The state of the policy. + // + // Possible values: + // "STATE_UNSPECIFIED" - Unspecified state. + // "READY" - Resource is ready to be used. + // "DELETING" - Resource is being deleted. It can no longer be + // attached to instances. + State string `json:"state,omitempty"` + + // UpdatePolicy: Maintenance policy applicable to instance update. + UpdatePolicy *UpdatePolicy `json:"updatePolicy,omitempty"` + + // UpdateTime: Output only. The time when the resource was updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MaintenancePolicy) MarshalJSON() ([]byte, error) { + type NoMethod MaintenancePolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MaintenanceWindow: MaintenanceWindow definition. +type MaintenanceWindow struct { + // DailyCycle: Daily cycle. + DailyCycle *DailyCycle `json:"dailyCycle,omitempty"` + + // WeeklyCycle: Weekly cycle. + WeeklyCycle *WeeklyCycle `json:"weeklyCycle,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DailyCycle") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DailyCycle") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MaintenanceWindow) MarshalJSON() ([]byte, error) { + type NoMethod MaintenanceWindow + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Operation: This resource represents a long-running operation that is // the result of a network API call. type Operation struct { @@ -1608,6 +1831,51 @@ func (s *SQLIntegration) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Schedule: Configure the schedule. +type Schedule struct { + // Day: Allows to define schedule that runs specified day of the week. + // + // Possible values: + // "DAY_OF_WEEK_UNSPECIFIED" - The day of the week is unspecified. + // "MONDAY" - Monday + // "TUESDAY" - Tuesday + // "WEDNESDAY" - Wednesday + // "THURSDAY" - Thursday + // "FRIDAY" - Friday + // "SATURDAY" - Saturday + // "SUNDAY" - Sunday + Day string `json:"day,omitempty"` + + // Duration: Output only. Duration of the time window, set by service + // producer. + Duration string `json:"duration,omitempty"` + + // StartTime: Time within the window to start the operations. + StartTime *TimeOfDay `json:"startTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Day") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Day") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Schedule) MarshalJSON() ([]byte, error) { + type NoMethod Schedule + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SetIamPolicyRequest: Request message for `SetIamPolicy` method. type SetIamPolicyRequest struct { // Policy: REQUIRED: The complete policy to be applied to the @@ -1749,6 +2017,50 @@ func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TimeOfDay: Represents a time of day. The date and time zone are +// either not significant or are specified elsewhere. An API may choose +// to allow leap seconds. Related types are google.type.Date and +// `google.protobuf.Timestamp`. +type TimeOfDay struct { + // Hours: Hours of day in 24 hour format. Should be from 0 to 23. An API + // may choose to allow the value "24:00:00" for scenarios like business + // closing time. + Hours int64 `json:"hours,omitempty"` + + // Minutes: Minutes of hour of day. Must be from 0 to 59. + Minutes int64 `json:"minutes,omitempty"` + + // Nanos: Fractions of seconds in nanoseconds. Must be from 0 to + // 999,999,999. + Nanos int64 `json:"nanos,omitempty"` + + // Seconds: Seconds of minutes of the time. Must normally be from 0 to + // 59. An API may allow the value 60 if it allows leap-seconds. + Seconds int64 `json:"seconds,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Hours") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Hours") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TimeOfDay) MarshalJSON() ([]byte, error) { + type NoMethod TimeOfDay + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Trust: Represents a relationship between two domains. This allows a // controller in one domain to authenticate a user in another domain. type Trust struct { @@ -1836,6 +2148,49 @@ func (s *Trust) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// UpdatePolicy: Maintenance policy applicable to instance updates. +type UpdatePolicy struct { + // Channel: Optional. Relative scheduling channel applied to resource. + // + // Possible values: + // "UPDATE_CHANNEL_UNSPECIFIED" - Unspecified channel. + // "EARLIER" - Early channel within a customer project. + // "LATER" - Later channel within a customer project. + Channel string `json:"channel,omitempty"` + + // DenyMaintenancePeriods: Deny Maintenance Period that is applied to + // resource to indicate when maintenance is forbidden. User can specify + // zero or more non-overlapping deny periods. For V1, Maximum number of + // deny_maintenance_periods is expected to be one. + DenyMaintenancePeriods []*DenyMaintenancePeriod `json:"denyMaintenancePeriods,omitempty"` + + // Window: Optional. Maintenance window that is applied to resources + // covered by this policy. + Window *MaintenanceWindow `json:"window,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Channel") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Channel") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *UpdatePolicy) MarshalJSON() ([]byte, error) { + type NoMethod UpdatePolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ValidateTrustRequest: Request message for ValidateTrust type ValidateTrustRequest struct { // Trust: Required. The domain trust to validate trust state for. @@ -1864,6 +2219,35 @@ func (s *ValidateTrustRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// WeeklyCycle: Time window specified for weekly operations. +type WeeklyCycle struct { + // Schedule: User can specify multiple windows in a week. Minimum of 1 + // window. + Schedule []*Schedule `json:"schedule,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Schedule") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Schedule") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *WeeklyCycle) MarshalJSON() ([]byte, error) { + type NoMethod WeeklyCycle + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // method id "managedidentities.projects.locations.get": type ProjectsLocationsGetCall struct { @@ -1919,7 +2303,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2085,7 +2469,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2257,7 +2641,7 @@ func (c *ProjectsLocationsGlobalDomainsAttachTrustCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsAttachTrustCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2410,7 +2794,7 @@ func (c *ProjectsLocationsGlobalDomainsCreateCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2553,7 +2937,7 @@ func (c *ProjectsLocationsGlobalDomainsDeleteCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2685,7 +3069,7 @@ func (c *ProjectsLocationsGlobalDomainsDetachTrustCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsDetachTrustCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2834,7 +3218,7 @@ func (c *ProjectsLocationsGlobalDomainsGetCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2995,7 +3379,7 @@ func (c *ProjectsLocationsGlobalDomainsGetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3180,7 +3564,7 @@ func (c *ProjectsLocationsGlobalDomainsListCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3367,7 +3751,7 @@ func (c *ProjectsLocationsGlobalDomainsPatchCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3513,7 +3897,7 @@ func (c *ProjectsLocationsGlobalDomainsReconfigureTrustCall) Header() http.Heade func (c *ProjectsLocationsGlobalDomainsReconfigureTrustCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3653,7 +4037,7 @@ func (c *ProjectsLocationsGlobalDomainsResetAdminPasswordCall) Header() http.Hea func (c *ProjectsLocationsGlobalDomainsResetAdminPasswordCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3795,7 +4179,7 @@ func (c *ProjectsLocationsGlobalDomainsSetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3940,7 +4324,7 @@ func (c *ProjectsLocationsGlobalDomainsTestIamPermissionsCall) Header() http.Hea func (c *ProjectsLocationsGlobalDomainsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4082,7 +4466,7 @@ func (c *ProjectsLocationsGlobalDomainsValidateTrustCall) Header() http.Header { func (c *ProjectsLocationsGlobalDomainsValidateTrustCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4231,7 +4615,7 @@ func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsGetCall) Header() http.Hea func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4409,7 +4793,7 @@ func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsListCall) Header() http.He func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4595,7 +4979,7 @@ func (c *ProjectsLocationsGlobalOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsGlobalOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4736,7 +5120,7 @@ func (c *ProjectsLocationsGlobalOperationsDeleteCall) Header() http.Header { func (c *ProjectsLocationsGlobalOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4879,7 +5263,7 @@ func (c *ProjectsLocationsGlobalOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsGlobalOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5053,7 +5437,7 @@ func (c *ProjectsLocationsGlobalOperationsListCall) Header() http.Header { func (c *ProjectsLocationsGlobalOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201119") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/manufacturers/v1/manufacturers-gen.go b/manufacturers/v1/manufacturers-gen.go index fd4b73da8fd..8c1955473be 100644 --- a/manufacturers/v1/manufacturers-gen.go +++ b/manufacturers/v1/manufacturers-gen.go @@ -837,7 +837,7 @@ func (c *AccountsProductsDeleteCall) Header() http.Header { func (c *AccountsProductsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1007,7 +1007,7 @@ func (c *AccountsProductsGetCall) Header() http.Header { func (c *AccountsProductsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1206,7 +1206,7 @@ func (c *AccountsProductsListCall) Header() http.Header { func (c *AccountsProductsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1405,7 +1405,7 @@ func (c *AccountsProductsUpdateCall) Header() http.Header { func (c *AccountsProductsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/memcache/v1beta2/memcache-api.json b/memcache/v1beta2/memcache-api.json index 82660ec154c..3c09bafdbf1 100644 --- a/memcache/v1beta2/memcache-api.json +++ b/memcache/v1beta2/memcache-api.json @@ -528,7 +528,7 @@ } } }, - "revision": "20201006", + "revision": "20201109", "rootUrl": "https://memcache.googleapis.com/", "schemas": { "ApplyParametersRequest": { @@ -555,6 +555,63 @@ "properties": {}, "type": "object" }, + "DailyCycle": { + "description": "Time window specified for daily operations.", + "id": "DailyCycle", + "properties": { + "duration": { + "description": "Output only. Duration of the time window, set by service producer.", + "format": "google-duration", + "type": "string" + }, + "startTime": { + "$ref": "TimeOfDay", + "description": "Time within the day to start the operations." + } + }, + "type": "object" + }, + "Date": { + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.", + "id": "Date", + "properties": { + "day": { + "description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.", + "format": "int32", + "type": "integer" + }, + "month": { + "description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.", + "format": "int32", + "type": "integer" + }, + "year": { + "description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "DenyMaintenancePeriod": { + "description": "DenyMaintenancePeriod definition. Maintenance is forbidden within the deny period. The start_date must be less than the end_date.", + "id": "DenyMaintenancePeriod", + "properties": { + "endDate": { + "$ref": "Date", + "description": "Deny period end date. This can be: * A full date, with non-zero year, month and day values. * A month and day value, with a zero year. Allows recurring deny periods each year. Date matching this period will have to be before the end." + }, + "startDate": { + "$ref": "Date", + "description": "Deny period start date. This can be: * A full date, with non-zero year, month and day values. * A month and day value, with a zero year. Allows recurring deny periods each year. Date matching this period will have to be the same or after the start." + }, + "time": { + "$ref": "TimeOfDay", + "description": "Time in UTC when the Blackout period starts on start_date and ends on end_date. This can be: * Full time. * All zeros for 00:00:00 UTC" + } + }, + "type": "object" + }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", "id": "Empty", @@ -644,7 +701,7 @@ "additionalProperties": { "type": "string" }, - "description": "The MaintenancePolicies that have been attached to the instance. The key must be of the type name of the oneof policy name defined in MaintenancePolicy, and the referenced policy must define the same policy type. For complete details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug.", + "description": "Deprecated. The MaintenancePolicies that have been attached to the instance. The key must be of the type name of the oneof policy name defined in MaintenancePolicy, and the referenced policy must define the same policy type. For complete details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug.", "type": "object" }, "maintenanceSchedules": { @@ -763,6 +820,13 @@ "exclude": { "description": "Optional. Exclude instance from maintenance. When true, rollout service will not attempt maintenance on the instance. Rollout service will include the instance in reported rollout progress as not attempted.", "type": "boolean" + }, + "maintenancePolicies": { + "additionalProperties": { + "$ref": "MaintenancePolicy" + }, + "description": "Optional. The MaintenancePolicies that have been attached to the instance. The key must be of the type name of the oneof policy name defined in MaintenancePolicy, and the embedded policy must define the same policy type. For complete details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug. If only the name is needed (like in the deprecated Instance.maintenance_policy_names field) then only populate MaintenancePolicy.name.", + "type": "object" } }, "type": "object" @@ -1103,6 +1167,71 @@ }, "type": "object" }, + "MaintenancePolicy": { + "description": "Defines policies to service maintenance events.", + "id": "MaintenancePolicy", + "properties": { + "createTime": { + "description": "Output only. The time when the resource was created.", + "format": "google-datetime", + "type": "string" + }, + "description": { + "description": "Optional. Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Resource labels to represent user provided metadata. Each label is a key-value pair, where both the key and the value are arbitrary strings provided by the user.", + "type": "object" + }, + "name": { + "description": "Required. MaintenancePolicy name using the form: `projects/{project_id}/locations/{location_id}/maintenancePolicies/{maintenance_policy_id}` where {project_id} refers to a GCP consumer project ID, {location_id} refers to a GCP region/zone, {maintenance_policy_id} must be 1-63 characters long and match the regular expression `[a-z0-9]([-a-z0-9]*[a-z0-9])?`.", + "type": "string" + }, + "state": { + "description": "Optional. The state of the policy.", + "enum": [ + "STATE_UNSPECIFIED", + "READY", + "DELETING" + ], + "enumDescriptions": [ + "Unspecified state.", + "Resource is ready to be used.", + "Resource is being deleted. It can no longer be attached to instances." + ], + "type": "string" + }, + "updatePolicy": { + "$ref": "UpdatePolicy", + "description": "Maintenance policy applicable to instance update." + }, + "updateTime": { + "description": "Output only. The time when the resource was updated.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "MaintenanceWindow": { + "description": "MaintenanceWindow definition.", + "id": "MaintenanceWindow", + "properties": { + "dailyCycle": { + "$ref": "DailyCycle", + "description": "Daily cycle." + }, + "weeklyCycle": { + "$ref": "WeeklyCycle", + "description": "Weekly cycle." + } + }, + "type": "object" + }, "MemcacheParameters": { "id": "MemcacheParameters", "properties": { @@ -1223,6 +1352,46 @@ }, "type": "object" }, + "Schedule": { + "description": "Configure the schedule.", + "id": "Schedule", + "properties": { + "day": { + "description": "Allows to define schedule that runs specified day of the week.", + "enum": [ + "DAY_OF_WEEK_UNSPECIFIED", + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ], + "enumDescriptions": [ + "The day of the week is unspecified.", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ], + "type": "string" + }, + "duration": { + "description": "Output only. Duration of the time window, set by service producer.", + "format": "google-duration", + "type": "string" + }, + "startTime": { + "$ref": "TimeOfDay", + "description": "Time within the window to start the operations." + } + }, + "type": "object" + }, "Status": { "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "id": "Status", @@ -1250,6 +1419,33 @@ }, "type": "object" }, + "TimeOfDay": { + "description": "Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.", + "id": "TimeOfDay", + "properties": { + "hours": { + "description": "Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + "format": "int32", + "type": "integer" + }, + "minutes": { + "description": "Minutes of hour of day. Must be from 0 to 59.", + "format": "int32", + "type": "integer" + }, + "nanos": { + "description": "Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.", + "format": "int32", + "type": "integer" + }, + "seconds": { + "description": "Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "UpdateParametersRequest": { "description": "Request for UpdateParameters.", "id": "UpdateParametersRequest", @@ -1266,6 +1462,52 @@ }, "type": "object" }, + "UpdatePolicy": { + "description": "Maintenance policy applicable to instance updates.", + "id": "UpdatePolicy", + "properties": { + "channel": { + "description": "Optional. Relative scheduling channel applied to resource.", + "enum": [ + "UPDATE_CHANNEL_UNSPECIFIED", + "EARLIER", + "LATER" + ], + "enumDescriptions": [ + "Unspecified channel.", + "Early channel within a customer project.", + "Later channel within a customer project." + ], + "type": "string" + }, + "denyMaintenancePeriods": { + "description": "Deny Maintenance Period that is applied to resource to indicate when maintenance is forbidden. User can specify zero or more non-overlapping deny periods. For V1, Maximum number of deny_maintenance_periods is expected to be one.", + "items": { + "$ref": "DenyMaintenancePeriod" + }, + "type": "array" + }, + "window": { + "$ref": "MaintenanceWindow", + "description": "Optional. Maintenance window that is applied to resources covered by this policy." + } + }, + "type": "object" + }, + "WeeklyCycle": { + "description": "Time window specified for weekly operations.", + "id": "WeeklyCycle", + "properties": { + "schedule": { + "description": "User can specify multiple windows in a week. Minimum of 1 window.", + "items": { + "$ref": "Schedule" + }, + "type": "array" + } + }, + "type": "object" + }, "ZoneMetadata": { "id": "ZoneMetadata", "properties": {}, diff --git a/memcache/v1beta2/memcache-gen.go b/memcache/v1beta2/memcache-gen.go index 0427c9577d6..d3b1989911c 100644 --- a/memcache/v1beta2/memcache-gen.go +++ b/memcache/v1beta2/memcache-gen.go @@ -220,6 +220,128 @@ func (s *ApplyParametersRequest) MarshalJSON() ([]byte, error) { type CancelOperationRequest struct { } +// DailyCycle: Time window specified for daily operations. +type DailyCycle struct { + // Duration: Output only. Duration of the time window, set by service + // producer. + Duration string `json:"duration,omitempty"` + + // StartTime: Time within the day to start the operations. + StartTime *TimeOfDay `json:"startTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Duration") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Duration") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DailyCycle) MarshalJSON() ([]byte, error) { + type NoMethod DailyCycle + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Date: Represents a whole or partial calendar date, such as a +// birthday. The time of day and time zone are either specified +// elsewhere or are insignificant. The date is relative to the Gregorian +// Calendar. This can represent one of the following: * A full date, +// with non-zero year, month, and day values * A month and day value, +// with a zero year, such as an anniversary * A year on its own, with +// zero month and day values * A year and month value, with a zero day, +// such as a credit card expiration date Related types are +// google.type.TimeOfDay and `google.protobuf.Timestamp`. +type Date struct { + // Day: Day of a month. Must be from 1 to 31 and valid for the year and + // month, or 0 to specify a year by itself or a year and month where the + // day isn't significant. + Day int64 `json:"day,omitempty"` + + // Month: Month of a year. Must be from 1 to 12, or 0 to specify a year + // without a month and day. + Month int64 `json:"month,omitempty"` + + // Year: Year of the date. Must be from 1 to 9999, or 0 to specify a + // date without a year. + Year int64 `json:"year,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Day") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Day") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Date) MarshalJSON() ([]byte, error) { + type NoMethod Date + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DenyMaintenancePeriod: DenyMaintenancePeriod definition. Maintenance +// is forbidden within the deny period. The start_date must be less than +// the end_date. +type DenyMaintenancePeriod struct { + // EndDate: Deny period end date. This can be: * A full date, with + // non-zero year, month and day values. * A month and day value, with a + // zero year. Allows recurring deny periods each year. Date matching + // this period will have to be before the end. + EndDate *Date `json:"endDate,omitempty"` + + // StartDate: Deny period start date. This can be: * A full date, with + // non-zero year, month and day values. * A month and day value, with a + // zero year. Allows recurring deny periods each year. Date matching + // this period will have to be the same or after the start. + StartDate *Date `json:"startDate,omitempty"` + + // Time: Time in UTC when the Blackout period starts on start_date and + // ends on end_date. This can be: * Full time. * All zeros for 00:00:00 + // UTC + Time *TimeOfDay `json:"time,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndDate") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EndDate") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DenyMaintenancePeriod) MarshalJSON() ([]byte, error) { + type NoMethod DenyMaintenancePeriod + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Empty: A generic empty message that you can re-use to avoid defining // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For @@ -333,11 +455,11 @@ type GoogleCloudSaasacceleratorManagementProvidersV1Instance struct { // value are arbitrary strings provided by the user. Labels map[string]string `json:"labels,omitempty"` - // MaintenancePolicyNames: The MaintenancePolicies that have been - // attached to the instance. The key must be of the type name of the - // oneof policy name defined in MaintenancePolicy, and the referenced - // policy must define the same policy type. For complete details of - // MaintenancePolicy, please refer to go/cloud-saas-mw-ug. + // MaintenancePolicyNames: Deprecated. The MaintenancePolicies that have + // been attached to the instance. The key must be of the type name of + // the oneof policy name defined in MaintenancePolicy, and the + // referenced policy must define the same policy type. For complete + // details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug. MaintenancePolicyNames map[string]string `json:"maintenancePolicyNames,omitempty"` // MaintenanceSchedules: The MaintenanceSchedule contains the scheduling @@ -480,6 +602,16 @@ type GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings struct { // attempted. Exclude bool `json:"exclude,omitempty"` + // MaintenancePolicies: Optional. The MaintenancePolicies that have been + // attached to the instance. The key must be of the type name of the + // oneof policy name defined in MaintenancePolicy, and the embedded + // policy must define the same policy type. For complete details of + // MaintenancePolicy, please refer to go/cloud-saas-mw-ug. If only the + // name is needed (like in the deprecated + // Instance.maintenance_policy_names field) then only populate + // MaintenancePolicy.name. + MaintenancePolicies map[string]MaintenancePolicy `json:"maintenancePolicies,omitempty"` + // ForceSendFields is a list of field names (e.g. "Exclude") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, @@ -1046,6 +1178,98 @@ func (s *Location) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MaintenancePolicy: Defines policies to service maintenance events. +type MaintenancePolicy struct { + // CreateTime: Output only. The time when the resource was created. + CreateTime string `json:"createTime,omitempty"` + + // Description: Optional. Description of what this policy is for. + // Create/Update methods return INVALID_ARGUMENT if the length is + // greater than 512. + Description string `json:"description,omitempty"` + + // Labels: Optional. Resource labels to represent user provided + // metadata. Each label is a key-value pair, where both the key and the + // value are arbitrary strings provided by the user. + Labels map[string]string `json:"labels,omitempty"` + + // Name: Required. MaintenancePolicy name using the form: + // `projects/{project_id}/locations/{location_id}/maintenancePolicies/{ma + // intenance_policy_id}` where {project_id} refers to a GCP consumer + // project ID, {location_id} refers to a GCP region/zone, + // {maintenance_policy_id} must be 1-63 characters long and match the + // regular expression `[a-z0-9]([-a-z0-9]*[a-z0-9])?`. + Name string `json:"name,omitempty"` + + // State: Optional. The state of the policy. + // + // Possible values: + // "STATE_UNSPECIFIED" - Unspecified state. + // "READY" - Resource is ready to be used. + // "DELETING" - Resource is being deleted. It can no longer be + // attached to instances. + State string `json:"state,omitempty"` + + // UpdatePolicy: Maintenance policy applicable to instance update. + UpdatePolicy *UpdatePolicy `json:"updatePolicy,omitempty"` + + // UpdateTime: Output only. The time when the resource was updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MaintenancePolicy) MarshalJSON() ([]byte, error) { + type NoMethod MaintenancePolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MaintenanceWindow: MaintenanceWindow definition. +type MaintenanceWindow struct { + // DailyCycle: Daily cycle. + DailyCycle *DailyCycle `json:"dailyCycle,omitempty"` + + // WeeklyCycle: Weekly cycle. + WeeklyCycle *WeeklyCycle `json:"weeklyCycle,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DailyCycle") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DailyCycle") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MaintenanceWindow) MarshalJSON() ([]byte, error) { + type NoMethod MaintenanceWindow + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type MemcacheParameters struct { // Id: Output only. The unique ID associated with this set of // parameters. Users can use this id to determine if the parameters @@ -1227,6 +1451,51 @@ func (s *Operation) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Schedule: Configure the schedule. +type Schedule struct { + // Day: Allows to define schedule that runs specified day of the week. + // + // Possible values: + // "DAY_OF_WEEK_UNSPECIFIED" - The day of the week is unspecified. + // "MONDAY" - Monday + // "TUESDAY" - Tuesday + // "WEDNESDAY" - Wednesday + // "THURSDAY" - Thursday + // "FRIDAY" - Friday + // "SATURDAY" - Saturday + // "SUNDAY" - Sunday + Day string `json:"day,omitempty"` + + // Duration: Output only. Duration of the time window, set by service + // producer. + Duration string `json:"duration,omitempty"` + + // StartTime: Time within the window to start the operations. + StartTime *TimeOfDay `json:"startTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Day") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Day") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Schedule) MarshalJSON() ([]byte, error) { + type NoMethod Schedule + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Status: The `Status` type defines a logical error model that is // suitable for different programming environments, including REST APIs // and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each @@ -1271,6 +1540,50 @@ func (s *Status) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TimeOfDay: Represents a time of day. The date and time zone are +// either not significant or are specified elsewhere. An API may choose +// to allow leap seconds. Related types are google.type.Date and +// `google.protobuf.Timestamp`. +type TimeOfDay struct { + // Hours: Hours of day in 24 hour format. Should be from 0 to 23. An API + // may choose to allow the value "24:00:00" for scenarios like business + // closing time. + Hours int64 `json:"hours,omitempty"` + + // Minutes: Minutes of hour of day. Must be from 0 to 59. + Minutes int64 `json:"minutes,omitempty"` + + // Nanos: Fractions of seconds in nanoseconds. Must be from 0 to + // 999,999,999. + Nanos int64 `json:"nanos,omitempty"` + + // Seconds: Seconds of minutes of the time. Must normally be from 0 to + // 59. An API may allow the value 60 if it allows leap-seconds. + Seconds int64 `json:"seconds,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Hours") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Hours") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TimeOfDay) MarshalJSON() ([]byte, error) { + type NoMethod TimeOfDay + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // UpdateParametersRequest: Request for UpdateParameters. type UpdateParametersRequest struct { // Parameters: The parameters to apply to the instance. @@ -1302,6 +1615,78 @@ func (s *UpdateParametersRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// UpdatePolicy: Maintenance policy applicable to instance updates. +type UpdatePolicy struct { + // Channel: Optional. Relative scheduling channel applied to resource. + // + // Possible values: + // "UPDATE_CHANNEL_UNSPECIFIED" - Unspecified channel. + // "EARLIER" - Early channel within a customer project. + // "LATER" - Later channel within a customer project. + Channel string `json:"channel,omitempty"` + + // DenyMaintenancePeriods: Deny Maintenance Period that is applied to + // resource to indicate when maintenance is forbidden. User can specify + // zero or more non-overlapping deny periods. For V1, Maximum number of + // deny_maintenance_periods is expected to be one. + DenyMaintenancePeriods []*DenyMaintenancePeriod `json:"denyMaintenancePeriods,omitempty"` + + // Window: Optional. Maintenance window that is applied to resources + // covered by this policy. + Window *MaintenanceWindow `json:"window,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Channel") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Channel") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *UpdatePolicy) MarshalJSON() ([]byte, error) { + type NoMethod UpdatePolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// WeeklyCycle: Time window specified for weekly operations. +type WeeklyCycle struct { + // Schedule: User can specify multiple windows in a week. Minimum of 1 + // window. + Schedule []*Schedule `json:"schedule,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Schedule") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Schedule") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *WeeklyCycle) MarshalJSON() ([]byte, error) { + type NoMethod WeeklyCycle + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type ZoneMetadata struct { } @@ -1360,7 +1745,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1526,7 +1911,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1700,7 +2085,7 @@ func (c *ProjectsLocationsInstancesApplyParametersCall) Header() http.Header { func (c *ProjectsLocationsInstancesApplyParametersCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1852,7 +2237,7 @@ func (c *ProjectsLocationsInstancesCreateCall) Header() http.Header { func (c *ProjectsLocationsInstancesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1995,7 +2380,7 @@ func (c *ProjectsLocationsInstancesDeleteCall) Header() http.Header { func (c *ProjectsLocationsInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2136,7 +2521,7 @@ func (c *ProjectsLocationsInstancesGetCall) Header() http.Header { func (c *ProjectsLocationsInstancesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2313,7 +2698,7 @@ func (c *ProjectsLocationsInstancesListCall) Header() http.Header { func (c *ProjectsLocationsInstancesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2497,7 +2882,7 @@ func (c *ProjectsLocationsInstancesPatchCall) Header() http.Header { func (c *ProjectsLocationsInstancesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2646,7 +3031,7 @@ func (c *ProjectsLocationsInstancesUpdateParametersCall) Header() http.Header { func (c *ProjectsLocationsInstancesUpdateParametersCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2795,7 +3180,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2936,7 +3321,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3079,7 +3464,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3253,7 +3638,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/ml/v1/ml-api.json b/ml/v1/ml-api.json index 7d4e26b0d15..a42ba3d426a 100644 --- a/ml/v1/ml-api.json +++ b/ml/v1/ml-api.json @@ -864,6 +864,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "listOptimalTrials": { + "description": "Lists the pareto-optimal trials for multi-objective study or the optimal trials for single-objective study. The definition of pareto-optimal can be checked in wiki page. https://en.wikipedia.org/wiki/Pareto_efficiency", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/studies/{studiesId}/trials:listOptimalTrials", + "httpMethod": "POST", + "id": "ml.projects.locations.studies.trials.listOptimalTrials", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The name of the study that the pareto-optimal trial belongs to.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/studies/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/trials:listOptimalTrials", + "request": { + "$ref": "GoogleCloudMlV1__ListOptimalTrialsRequest" + }, + "response": { + "$ref": "GoogleCloudMlV1__ListOptimalTrialsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "stop": { "description": "Stops a trial.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/studies/{studiesId}/trials/{trialsId}:stop", @@ -1458,7 +1486,7 @@ } } }, - "revision": "20201016", + "revision": "20201112", "rootUrl": "https://ml.googleapis.com/", "schemas": { "GoogleApi__HttpBody": { @@ -1790,6 +1818,7 @@ "NVIDIA_TESLA_V100", "NVIDIA_TESLA_P4", "NVIDIA_TESLA_T4", + "NVIDIA_TESLA_A100", "TPU_V2", "TPU_V3" ], @@ -1800,6 +1829,7 @@ "Nvidia Tesla V100 GPU.", "Nvidia Tesla P4 GPU.", "Nvidia Tesla T4 GPU.", + "Nvidia Tesla A100 GPU.", "TPU v2.", "TPU v3." ], @@ -1898,6 +1928,7 @@ "NVIDIA_TESLA_V100", "NVIDIA_TESLA_P4", "NVIDIA_TESLA_T4", + "NVIDIA_TESLA_A100", "TPU_V2", "TPU_V3" ], @@ -1908,6 +1939,7 @@ "Nvidia Tesla V100 GPU.", "Nvidia Tesla P4 GPU.", "Nvidia Tesla T4 GPU.", + "Nvidia Tesla A100 GPU.", "TPU v2.", "TPU v3." ], @@ -2422,6 +2454,26 @@ }, "type": "object" }, + "GoogleCloudMlV1__ListOptimalTrialsRequest": { + "description": "The request message for the ListTrials service method.", + "id": "GoogleCloudMlV1__ListOptimalTrialsRequest", + "properties": {}, + "type": "object" + }, + "GoogleCloudMlV1__ListOptimalTrialsResponse": { + "description": "The response message for the ListOptimalTrials method.", + "id": "GoogleCloudMlV1__ListOptimalTrialsResponse", + "properties": { + "trials": { + "description": "The pareto-optimal trials for multiple objective study or the optimal trial for single objective study. The definition of pareto-optimal can be checked in wiki page. https://en.wikipedia.org/wiki/Pareto_efficiency", + "items": { + "$ref": "GoogleCloudMlV1__Trial" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudMlV1__ListStudiesResponse": { "id": "GoogleCloudMlV1__ListStudiesResponse", "properties": { @@ -3579,10 +3631,6 @@ "description": "Associates `members` with a `role`.", "id": "GoogleIamV1__Binding", "properties": { - "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", - "type": "string" - }, "condition": { "$ref": "GoogleType__Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." diff --git a/ml/v1/ml-gen.go b/ml/v1/ml-gen.go index 110c9e1d8c7..20b08f83990 100644 --- a/ml/v1/ml-gen.go +++ b/ml/v1/ml-gen.go @@ -889,6 +889,7 @@ type GoogleCloudMlV1__AcceleratorConfig struct { // "NVIDIA_TESLA_V100" - Nvidia Tesla V100 GPU. // "NVIDIA_TESLA_P4" - Nvidia Tesla P4 GPU. // "NVIDIA_TESLA_T4" - Nvidia Tesla T4 GPU. + // "NVIDIA_TESLA_A100" - Nvidia Tesla A100 GPU. // "TPU_V2" - TPU v2. // "TPU_V3" - TPU v3. Type string `json:"type,omitempty"` @@ -1100,6 +1101,7 @@ type GoogleCloudMlV1__Capability struct { // "NVIDIA_TESLA_V100" - Nvidia Tesla V100 GPU. // "NVIDIA_TESLA_P4" - Nvidia Tesla P4 GPU. // "NVIDIA_TESLA_T4" - Nvidia Tesla T4 GPU. + // "NVIDIA_TESLA_A100" - Nvidia Tesla A100 GPU. // "TPU_V2" - TPU v2. // "TPU_V3" - TPU v3. AvailableAccelerators []string `json:"availableAccelerators,omitempty"` @@ -2070,6 +2072,47 @@ func (s *GoogleCloudMlV1__ListModelsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudMlV1__ListOptimalTrialsRequest: The request message for +// the ListTrials service method. +type GoogleCloudMlV1__ListOptimalTrialsRequest struct { +} + +// GoogleCloudMlV1__ListOptimalTrialsResponse: The response message for +// the ListOptimalTrials method. +type GoogleCloudMlV1__ListOptimalTrialsResponse struct { + // Trials: The pareto-optimal trials for multiple objective study or the + // optimal trial for single objective study. The definition of + // pareto-optimal can be checked in wiki page. + // https://en.wikipedia.org/wiki/Pareto_efficiency + Trials []*GoogleCloudMlV1__Trial `json:"trials,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Trials") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Trials") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudMlV1__ListOptimalTrialsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudMlV1__ListOptimalTrialsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type GoogleCloudMlV1__ListStudiesResponse struct { // Studies: The studies associated with the project. Studies []*GoogleCloudMlV1__Study `json:"studies,omitempty"` @@ -4140,10 +4183,6 @@ func (s *GoogleIamV1__AuditLogConfig) MarshalJSON() ([]byte, error) { // GoogleIamV1__Binding: Associates `members` with a `role`. type GoogleIamV1__Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. - BindingId string `json:"bindingId,omitempty"` - // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -4193,7 +4232,7 @@ type GoogleIamV1__Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "BindingId") to + // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -4201,7 +4240,7 @@ type GoogleIamV1__Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BindingId") to include in + // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -4685,7 +4724,7 @@ func (c *ProjectsExplainCall) Header() http.Header { func (c *ProjectsExplainCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4838,7 +4877,7 @@ func (c *ProjectsGetConfigCall) Header() http.Header { func (c *ProjectsGetConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4975,7 +5014,7 @@ func (c *ProjectsPredictCall) Header() http.Header { func (c *ProjectsPredictCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5120,7 +5159,7 @@ func (c *ProjectsJobsCancelCall) Header() http.Header { func (c *ProjectsJobsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5260,7 +5299,7 @@ func (c *ProjectsJobsCreateCall) Header() http.Header { func (c *ProjectsJobsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5409,7 +5448,7 @@ func (c *ProjectsJobsGetCall) Header() http.Header { func (c *ProjectsJobsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5571,7 +5610,7 @@ func (c *ProjectsJobsGetIamPolicyCall) Header() http.Header { func (c *ProjectsJobsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5753,7 +5792,7 @@ func (c *ProjectsJobsListCall) Header() http.Header { func (c *ProjectsJobsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5944,7 +5983,7 @@ func (c *ProjectsJobsPatchCall) Header() http.Header { func (c *ProjectsJobsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6092,7 +6131,7 @@ func (c *ProjectsJobsSetIamPolicyCall) Header() http.Header { func (c *ProjectsJobsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6237,7 +6276,7 @@ func (c *ProjectsJobsTestIamPermissionsCall) Header() http.Header { func (c *ProjectsJobsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6388,7 +6427,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6552,7 +6591,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6728,7 +6767,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6871,7 +6910,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7014,7 +7053,7 @@ func (c *ProjectsLocationsStudiesCreateCall) Header() http.Header { func (c *ProjectsLocationsStudiesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7157,7 +7196,7 @@ func (c *ProjectsLocationsStudiesDeleteCall) Header() http.Header { func (c *ProjectsLocationsStudiesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7298,7 +7337,7 @@ func (c *ProjectsLocationsStudiesGetCall) Header() http.Header { func (c *ProjectsLocationsStudiesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7442,7 +7481,7 @@ func (c *ProjectsLocationsStudiesListCall) Header() http.Header { func (c *ProjectsLocationsStudiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7580,7 +7619,7 @@ func (c *ProjectsLocationsStudiesTrialsAddMeasurementCall) Header() http.Header func (c *ProjectsLocationsStudiesTrialsAddMeasurementCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7722,7 +7761,7 @@ func (c *ProjectsLocationsStudiesTrialsCheckEarlyStoppingStateCall) Header() htt func (c *ProjectsLocationsStudiesTrialsCheckEarlyStoppingStateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7862,7 +7901,7 @@ func (c *ProjectsLocationsStudiesTrialsCompleteCall) Header() http.Header { func (c *ProjectsLocationsStudiesTrialsCompleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8002,7 +8041,7 @@ func (c *ProjectsLocationsStudiesTrialsCreateCall) Header() http.Header { func (c *ProjectsLocationsStudiesTrialsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8140,7 +8179,7 @@ func (c *ProjectsLocationsStudiesTrialsDeleteCall) Header() http.Header { func (c *ProjectsLocationsStudiesTrialsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8281,7 +8320,7 @@ func (c *ProjectsLocationsStudiesTrialsGetCall) Header() http.Header { func (c *ProjectsLocationsStudiesTrialsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8425,7 +8464,7 @@ func (c *ProjectsLocationsStudiesTrialsListCall) Header() http.Header { func (c *ProjectsLocationsStudiesTrialsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8515,6 +8554,151 @@ func (c *ProjectsLocationsStudiesTrialsListCall) Do(opts ...googleapi.CallOption } +// method id "ml.projects.locations.studies.trials.listOptimalTrials": + +type ProjectsLocationsStudiesTrialsListOptimalTrialsCall struct { + s *Service + parent string + googlecloudmlv1__listoptimaltrialsrequest *GoogleCloudMlV1__ListOptimalTrialsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// ListOptimalTrials: Lists the pareto-optimal trials for +// multi-objective study or the optimal trials for single-objective +// study. The definition of pareto-optimal can be checked in wiki page. +// https://en.wikipedia.org/wiki/Pareto_efficiency +func (r *ProjectsLocationsStudiesTrialsService) ListOptimalTrials(parent string, googlecloudmlv1__listoptimaltrialsrequest *GoogleCloudMlV1__ListOptimalTrialsRequest) *ProjectsLocationsStudiesTrialsListOptimalTrialsCall { + c := &ProjectsLocationsStudiesTrialsListOptimalTrialsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudmlv1__listoptimaltrialsrequest = googlecloudmlv1__listoptimaltrialsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsStudiesTrialsListOptimalTrialsCall) Fields(s ...googleapi.Field) *ProjectsLocationsStudiesTrialsListOptimalTrialsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsStudiesTrialsListOptimalTrialsCall) Context(ctx context.Context) *ProjectsLocationsStudiesTrialsListOptimalTrialsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsStudiesTrialsListOptimalTrialsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsStudiesTrialsListOptimalTrialsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudmlv1__listoptimaltrialsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/trials:listOptimalTrials") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "ml.projects.locations.studies.trials.listOptimalTrials" call. +// Exactly one of *GoogleCloudMlV1__ListOptimalTrialsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudMlV1__ListOptimalTrialsResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsStudiesTrialsListOptimalTrialsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudMlV1__ListOptimalTrialsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudMlV1__ListOptimalTrialsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists the pareto-optimal trials for multi-objective study or the optimal trials for single-objective study. The definition of pareto-optimal can be checked in wiki page. https://en.wikipedia.org/wiki/Pareto_efficiency", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/studies/{studiesId}/trials:listOptimalTrials", + // "httpMethod": "POST", + // "id": "ml.projects.locations.studies.trials.listOptimalTrials", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The name of the study that the pareto-optimal trial belongs to.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/studies/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/trials:listOptimalTrials", + // "request": { + // "$ref": "GoogleCloudMlV1__ListOptimalTrialsRequest" + // }, + // "response": { + // "$ref": "GoogleCloudMlV1__ListOptimalTrialsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "ml.projects.locations.studies.trials.stop": type ProjectsLocationsStudiesTrialsStopCall struct { @@ -8561,7 +8745,7 @@ func (c *ProjectsLocationsStudiesTrialsStopCall) Header() http.Header { func (c *ProjectsLocationsStudiesTrialsStopCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8705,7 +8889,7 @@ func (c *ProjectsLocationsStudiesTrialsSuggestCall) Header() http.Header { func (c *ProjectsLocationsStudiesTrialsSuggestCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8848,7 +9032,7 @@ func (c *ProjectsModelsCreateCall) Header() http.Header { func (c *ProjectsModelsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8988,7 +9172,7 @@ func (c *ProjectsModelsDeleteCall) Header() http.Header { func (c *ProjectsModelsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9131,7 +9315,7 @@ func (c *ProjectsModelsGetCall) Header() http.Header { func (c *ProjectsModelsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9293,7 +9477,7 @@ func (c *ProjectsModelsGetIamPolicyCall) Header() http.Header { func (c *ProjectsModelsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9471,7 +9655,7 @@ func (c *ProjectsModelsListCall) Header() http.Header { func (c *ProjectsModelsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9661,7 +9845,7 @@ func (c *ProjectsModelsPatchCall) Header() http.Header { func (c *ProjectsModelsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9809,7 +9993,7 @@ func (c *ProjectsModelsSetIamPolicyCall) Header() http.Header { func (c *ProjectsModelsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9954,7 +10138,7 @@ func (c *ProjectsModelsTestIamPermissionsCall) Header() http.Header { func (c *ProjectsModelsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10101,7 +10285,7 @@ func (c *ProjectsModelsVersionsCreateCall) Header() http.Header { func (c *ProjectsModelsVersionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10243,7 +10427,7 @@ func (c *ProjectsModelsVersionsDeleteCall) Header() http.Header { func (c *ProjectsModelsVersionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10387,7 +10571,7 @@ func (c *ProjectsModelsVersionsGetCall) Header() http.Header { func (c *ProjectsModelsVersionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10561,7 +10745,7 @@ func (c *ProjectsModelsVersionsListCall) Header() http.Header { func (c *ProjectsModelsVersionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10753,7 +10937,7 @@ func (c *ProjectsModelsVersionsPatchCall) Header() http.Header { func (c *ProjectsModelsVersionsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10904,7 +11088,7 @@ func (c *ProjectsModelsVersionsSetDefaultCall) Header() http.Header { func (c *ProjectsModelsVersionsSetDefaultCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11051,7 +11235,7 @@ func (c *ProjectsOperationsCancelCall) Header() http.Header { func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11194,7 +11378,7 @@ func (c *ProjectsOperationsGetCall) Header() http.Header { func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11368,7 +11552,7 @@ func (c *ProjectsOperationsListCall) Header() http.Header { func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/monitoring/v1/monitoring-gen.go b/monitoring/v1/monitoring-gen.go index fdc67b5abd6..b1cf2502eb9 100644 --- a/monitoring/v1/monitoring-gen.go +++ b/monitoring/v1/monitoring-gen.go @@ -1898,7 +1898,7 @@ func (c *ProjectsDashboardsCreateCall) Header() http.Header { func (c *ProjectsDashboardsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2041,7 +2041,7 @@ func (c *ProjectsDashboardsDeleteCall) Header() http.Header { func (c *ProjectsDashboardsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2187,7 +2187,7 @@ func (c *ProjectsDashboardsGetCall) Header() http.Header { func (c *ProjectsDashboardsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2353,7 +2353,7 @@ func (c *ProjectsDashboardsListCall) Header() http.Header { func (c *ProjectsDashboardsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2525,7 +2525,7 @@ func (c *ProjectsDashboardsPatchCall) Header() http.Header { func (c *ProjectsDashboardsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/monitoring/v3/monitoring-api.json b/monitoring/v3/monitoring-api.json index f44115d76d4..fafac21d7bc 100644 --- a/monitoring/v3/monitoring-api.json +++ b/monitoring/v3/monitoring-api.json @@ -1562,7 +1562,7 @@ ], "parameters": { "name": { - "description": "A unique resource name for this Uptime check configuration. The format is: projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] This field should be omitted when creating the Uptime check configuration; on create, the resource name is assigned by the server and included in the response.", + "description": "A unique resource name for this Uptime check configuration. The format is: projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] [PROJECT_ID_OR_NUMBER] is the Workspace host project associated with the Uptime check.This field should be omitted when creating the Uptime check configuration; on create, the resource name is assigned by the server and included in the response.", "location": "path", "pattern": "^projects/[^/]+/uptimeCheckConfigs/[^/]+$", "required": true, @@ -1995,7 +1995,7 @@ } } }, - "revision": "20201019", + "revision": "20201116", "rootUrl": "https://monitoring.googleapis.com/", "schemas": { "Aggregation": { @@ -4519,7 +4519,7 @@ "description": "The monitored resource (https://cloud.google.com/monitoring/api/resources) associated with the configuration. The following monitored resource types are supported for Uptime checks: uptime_url, gce_instance, gae_app, aws_ec2_instance, aws_elb_load_balancer" }, "name": { - "description": "A unique resource name for this Uptime check configuration. The format is: projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] This field should be omitted when creating the Uptime check configuration; on create, the resource name is assigned by the server and included in the response.", + "description": "A unique resource name for this Uptime check configuration. The format is: projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] [PROJECT_ID_OR_NUMBER] is the Workspace host project associated with the Uptime check.This field should be omitted when creating the Uptime check configuration; on create, the resource name is assigned by the server and included in the response.", "type": "string" }, "period": { diff --git a/monitoring/v3/monitoring-gen.go b/monitoring/v3/monitoring-gen.go index 5c04eb2e654..e0380001fa8 100644 --- a/monitoring/v3/monitoring-gen.go +++ b/monitoring/v3/monitoring-gen.go @@ -5241,9 +5241,10 @@ type UptimeCheckConfig struct { // Name: A unique resource name for this Uptime check configuration. The // format is: // projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] - // This field should be omitted when creating the Uptime check - // configuration; on create, the resource name is assigned by the server - // and included in the response. + // [PROJECT_ID_OR_NUMBER] is the Workspace host project associated with + // the Uptime check.This field should be omitted when creating the + // Uptime check configuration; on create, the resource name is assigned + // by the server and included in the response. Name string `json:"name,omitempty"` // Period: How often, in seconds, the Uptime check is performed. @@ -5557,7 +5558,7 @@ func (c *ProjectsAlertPoliciesCreateCall) Header() http.Header { func (c *ProjectsAlertPoliciesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5696,7 +5697,7 @@ func (c *ProjectsAlertPoliciesDeleteCall) Header() http.Header { func (c *ProjectsAlertPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5838,7 +5839,7 @@ func (c *ProjectsAlertPoliciesGetCall) Header() http.Header { func (c *ProjectsAlertPoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6020,7 +6021,7 @@ func (c *ProjectsAlertPoliciesListCall) Header() http.Header { func (c *ProjectsAlertPoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6225,7 +6226,7 @@ func (c *ProjectsAlertPoliciesPatchCall) Header() http.Header { func (c *ProjectsAlertPoliciesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6374,7 +6375,7 @@ func (c *ProjectsCollectdTimeSeriesCreateCall) Header() http.Header { func (c *ProjectsCollectdTimeSeriesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6523,7 +6524,7 @@ func (c *ProjectsGroupsCreateCall) Header() http.Header { func (c *ProjectsGroupsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6676,7 +6677,7 @@ func (c *ProjectsGroupsDeleteCall) Header() http.Header { func (c *ProjectsGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6823,7 +6824,7 @@ func (c *ProjectsGroupsGetCall) Header() http.Header { func (c *ProjectsGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7018,7 +7019,7 @@ func (c *ProjectsGroupsListCall) Header() http.Header { func (c *ProjectsGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7210,7 +7211,7 @@ func (c *ProjectsGroupsUpdateCall) Header() http.Header { func (c *ProjectsGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7409,7 +7410,7 @@ func (c *ProjectsGroupsMembersListCall) Header() http.Header { func (c *ProjectsGroupsMembersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7597,7 +7598,7 @@ func (c *ProjectsMetricDescriptorsCreateCall) Header() http.Header { func (c *ProjectsMetricDescriptorsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7738,7 +7739,7 @@ func (c *ProjectsMetricDescriptorsDeleteCall) Header() http.Header { func (c *ProjectsMetricDescriptorsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7881,7 +7882,7 @@ func (c *ProjectsMetricDescriptorsGetCall) Header() http.Header { func (c *ProjectsMetricDescriptorsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8058,7 +8059,7 @@ func (c *ProjectsMetricDescriptorsListCall) Header() http.Header { func (c *ProjectsMetricDescriptorsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8243,7 +8244,7 @@ func (c *ProjectsMonitoredResourceDescriptorsGetCall) Header() http.Header { func (c *ProjectsMonitoredResourceDescriptorsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8418,7 +8419,7 @@ func (c *ProjectsMonitoredResourceDescriptorsListCall) Header() http.Header { func (c *ProjectsMonitoredResourceDescriptorsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8606,7 +8607,7 @@ func (c *ProjectsNotificationChannelDescriptorsGetCall) Header() http.Header { func (c *ProjectsNotificationChannelDescriptorsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8770,7 +8771,7 @@ func (c *ProjectsNotificationChannelDescriptorsListCall) Header() http.Header { func (c *ProjectsNotificationChannelDescriptorsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8943,7 +8944,7 @@ func (c *ProjectsNotificationChannelsCreateCall) Header() http.Header { func (c *ProjectsNotificationChannelsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9092,7 +9093,7 @@ func (c *ProjectsNotificationChannelsDeleteCall) Header() http.Header { func (c *ProjectsNotificationChannelsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9244,7 +9245,7 @@ func (c *ProjectsNotificationChannelsGetCall) Header() http.Header { func (c *ProjectsNotificationChannelsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9401,7 +9402,7 @@ func (c *ProjectsNotificationChannelsGetVerificationCodeCall) Header() http.Head func (c *ProjectsNotificationChannelsGetVerificationCodeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9591,7 +9592,7 @@ func (c *ProjectsNotificationChannelsListCall) Header() http.Header { func (c *ProjectsNotificationChannelsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9778,7 +9779,7 @@ func (c *ProjectsNotificationChannelsPatchCall) Header() http.Header { func (c *ProjectsNotificationChannelsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9927,7 +9928,7 @@ func (c *ProjectsNotificationChannelsSendVerificationCodeCall) Header() http.Hea func (c *ProjectsNotificationChannelsSendVerificationCodeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10070,7 +10071,7 @@ func (c *ProjectsNotificationChannelsVerifyCall) Header() http.Header { func (c *ProjectsNotificationChannelsVerifyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10214,7 +10215,7 @@ func (c *ProjectsTimeSeriesCreateCall) Header() http.Header { func (c *ProjectsTimeSeriesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10913,7 +10914,7 @@ func (c *ProjectsTimeSeriesListCall) Header() http.Header { func (c *ProjectsTimeSeriesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11310,7 +11311,7 @@ func (c *ProjectsTimeSeriesQueryCall) Header() http.Header { func (c *ProjectsTimeSeriesQueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11473,7 +11474,7 @@ func (c *ProjectsUptimeCheckConfigsCreateCall) Header() http.Header { func (c *ProjectsUptimeCheckConfigsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11615,7 +11616,7 @@ func (c *ProjectsUptimeCheckConfigsDeleteCall) Header() http.Header { func (c *ProjectsUptimeCheckConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11757,7 +11758,7 @@ func (c *ProjectsUptimeCheckConfigsGetCall) Header() http.Header { func (c *ProjectsUptimeCheckConfigsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11923,7 +11924,7 @@ func (c *ProjectsUptimeCheckConfigsListCall) Header() http.Header { func (c *ProjectsUptimeCheckConfigsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12105,7 +12106,7 @@ func (c *ProjectsUptimeCheckConfigsPatchCall) Header() http.Header { func (c *ProjectsUptimeCheckConfigsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12178,7 +12179,7 @@ func (c *ProjectsUptimeCheckConfigsPatchCall) Do(opts ...googleapi.CallOption) ( // ], // "parameters": { // "name": { - // "description": "A unique resource name for this Uptime check configuration. The format is: projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] This field should be omitted when creating the Uptime check configuration; on create, the resource name is assigned by the server and included in the response.", + // "description": "A unique resource name for this Uptime check configuration. The format is: projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] [PROJECT_ID_OR_NUMBER] is the Workspace host project associated with the Uptime check.This field should be omitted when creating the Uptime check configuration; on create, the resource name is assigned by the server and included in the response.", // "location": "path", // "pattern": "^projects/[^/]+/uptimeCheckConfigs/[^/]+$", // "required": true, @@ -12260,7 +12261,7 @@ func (c *ServicesCreateCall) Header() http.Header { func (c *ServicesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12404,7 +12405,7 @@ func (c *ServicesDeleteCall) Header() http.Header { func (c *ServicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12546,7 +12547,7 @@ func (c *ServicesGetCall) Header() http.Header { func (c *ServicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12728,7 +12729,7 @@ func (c *ServicesListCall) Header() http.Header { func (c *ServicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12909,7 +12910,7 @@ func (c *ServicesPatchCall) Header() http.Header { func (c *ServicesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13065,7 +13066,7 @@ func (c *ServicesServiceLevelObjectivesCreateCall) Header() http.Header { func (c *ServicesServiceLevelObjectivesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13209,7 +13210,7 @@ func (c *ServicesServiceLevelObjectivesDeleteCall) Header() http.Header { func (c *ServicesServiceLevelObjectivesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13372,7 +13373,7 @@ func (c *ServicesServiceLevelObjectivesGetCall) Header() http.Header { func (c *ServicesServiceLevelObjectivesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13578,7 +13579,7 @@ func (c *ServicesServiceLevelObjectivesListCall) Header() http.Header { func (c *ServicesServiceLevelObjectivesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13775,7 +13776,7 @@ func (c *ServicesServiceLevelObjectivesPatchCall) Header() http.Header { func (c *ServicesServiceLevelObjectivesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13949,7 +13950,7 @@ func (c *UptimeCheckIpsListCall) Header() http.Header { func (c *UptimeCheckIpsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201120") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/networkmanagement/v1/networkmanagement-api.json b/networkmanagement/v1/networkmanagement-api.json index 08c318bce3e..caf2dbfc3cb 100644 --- a/networkmanagement/v1/networkmanagement-api.json +++ b/networkmanagement/v1/networkmanagement-api.json @@ -591,7 +591,7 @@ } } }, - "revision": "20200820", + "revision": "20201029", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -687,6 +687,9 @@ "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { + "bindingId": { + "type": "string" + }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." diff --git a/networkmanagement/v1/networkmanagement-gen.go b/networkmanagement/v1/networkmanagement-gen.go index b85e096d871..5f0b7228dfa 100644 --- a/networkmanagement/v1/networkmanagement-gen.go +++ b/networkmanagement/v1/networkmanagement-gen.go @@ -353,6 +353,8 @@ func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { + BindingId string `json:"bindingId,omitempty"` + // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -402,7 +404,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to + // ForceSendFields is a list of field names (e.g. "BindingId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -410,7 +412,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Condition") to include in + // NullFields is a list of field names (e.g. "BindingId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -2173,7 +2175,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2339,7 +2341,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2531,7 +2533,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsCreateCall) Header() http.Heade func (c *ProjectsLocationsGlobalConnectivityTestsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2674,7 +2676,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsDeleteCall) Header() http.Heade func (c *ProjectsLocationsGlobalConnectivityTestsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2815,7 +2817,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsGetCall) Header() http.Header { func (c *ProjectsLocationsGlobalConnectivityTestsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2976,7 +2978,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall) Header() http func (c *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3164,7 +3166,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsListCall) Header() http.Header func (c *ProjectsLocationsGlobalConnectivityTestsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3360,7 +3362,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsPatchCall) Header() http.Header func (c *ProjectsLocationsGlobalConnectivityTestsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3514,7 +3516,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsRerunCall) Header() http.Header func (c *ProjectsLocationsGlobalConnectivityTestsRerunCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3656,7 +3658,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsSetIamPolicyCall) Header() http func (c *ProjectsLocationsGlobalConnectivityTestsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3801,7 +3803,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall) Header( func (c *ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3950,7 +3952,7 @@ func (c *ProjectsLocationsGlobalOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsGlobalOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4091,7 +4093,7 @@ func (c *ProjectsLocationsGlobalOperationsDeleteCall) Header() http.Header { func (c *ProjectsLocationsGlobalOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4234,7 +4236,7 @@ func (c *ProjectsLocationsGlobalOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsGlobalOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4408,7 +4410,7 @@ func (c *ProjectsLocationsGlobalOperationsListCall) Header() http.Header { func (c *ProjectsLocationsGlobalOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/networkmanagement/v1beta1/networkmanagement-api.json b/networkmanagement/v1beta1/networkmanagement-api.json index 2daa7f546df..837ea59f1e0 100644 --- a/networkmanagement/v1beta1/networkmanagement-api.json +++ b/networkmanagement/v1beta1/networkmanagement-api.json @@ -591,7 +591,7 @@ } } }, - "revision": "20200910", + "revision": "20201029", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -687,6 +687,9 @@ "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { + "bindingId": { + "type": "string" + }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." @@ -1195,6 +1198,37 @@ }, "type": "object" }, + "LatencyDistribution": { + "description": "Describes measured latency distribution.", + "id": "LatencyDistribution", + "properties": { + "latencyPercentiles": { + "description": "Representative latency percentiles.", + "items": { + "$ref": "LatencyPercentile" + }, + "type": "array" + } + }, + "type": "object" + }, + "LatencyPercentile": { + "description": "Latency percentile rank and value.", + "id": "LatencyPercentile", + "properties": { + "latencyMicros": { + "description": "percent-th percentile of latency observed, in microseconds. Fraction of percent/100 of samples have latency lower or equal to the value of this field.", + "format": "int64", + "type": "string" + }, + "percent": { + "description": "Percentage of samples this data point applies to.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "ListConnectivityTestsResponse": { "description": "Response for the `ListConnectivityTests` method.", "id": "ListConnectivityTestsResponse", @@ -1537,6 +1571,10 @@ "$ref": "Status", "description": "The details of an internal failure or a cancellation of reachability analysis." }, + "probingLatency": { + "$ref": "LatencyDistribution", + "description": "One way probing latency distribution. The latency is measured as duration of packet traversal of Google Cloud network, from source to destination endpoint." + }, "result": { "description": "The overall reachability result of the test.", "enum": [ diff --git a/networkmanagement/v1beta1/networkmanagement-gen.go b/networkmanagement/v1beta1/networkmanagement-gen.go index 3d7c5021b70..ae9cf57d46a 100644 --- a/networkmanagement/v1beta1/networkmanagement-gen.go +++ b/networkmanagement/v1beta1/networkmanagement-gen.go @@ -353,6 +353,8 @@ func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { + BindingId string `json:"bindingId,omitempty"` + // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -402,7 +404,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to + // ForceSendFields is a list of field names (e.g. "BindingId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -410,7 +412,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Condition") to include in + // NullFields is a list of field names (e.g. "BindingId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -1143,6 +1145,68 @@ func (s *InstanceInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// LatencyDistribution: Describes measured latency distribution. +type LatencyDistribution struct { + // LatencyPercentiles: Representative latency percentiles. + LatencyPercentiles []*LatencyPercentile `json:"latencyPercentiles,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LatencyPercentiles") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "LatencyPercentiles") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *LatencyDistribution) MarshalJSON() ([]byte, error) { + type NoMethod LatencyDistribution + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LatencyPercentile: Latency percentile rank and value. +type LatencyPercentile struct { + // LatencyMicros: percent-th percentile of latency observed, in + // microseconds. Fraction of percent/100 of samples have latency lower + // or equal to the value of this field. + LatencyMicros int64 `json:"latencyMicros,omitempty,string"` + + // Percent: Percentage of samples this data point applies to. + Percent int64 `json:"percent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LatencyMicros") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "LatencyMicros") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *LatencyPercentile) MarshalJSON() ([]byte, error) { + type NoMethod LatencyPercentile + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListConnectivityTestsResponse: Response for the // `ListConnectivityTests` method. type ListConnectivityTestsResponse struct { @@ -1686,6 +1750,11 @@ type ProbingDetails struct { // reachability analysis. Error *Status `json:"error,omitempty"` + // ProbingLatency: One way probing latency distribution. The latency is + // measured as duration of packet traversal of Google Cloud network, + // from source to destination endpoint. + ProbingLatency *LatencyDistribution `json:"probingLatency,omitempty"` + // Result: The overall reachability result of the test. // // Possible values: @@ -2372,7 +2441,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2538,7 +2607,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2730,7 +2799,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsCreateCall) Header() http.Heade func (c *ProjectsLocationsGlobalConnectivityTestsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2873,7 +2942,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsDeleteCall) Header() http.Heade func (c *ProjectsLocationsGlobalConnectivityTestsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3014,7 +3083,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsGetCall) Header() http.Header { func (c *ProjectsLocationsGlobalConnectivityTestsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3175,7 +3244,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall) Header() http func (c *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3363,7 +3432,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsListCall) Header() http.Header func (c *ProjectsLocationsGlobalConnectivityTestsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3559,7 +3628,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsPatchCall) Header() http.Header func (c *ProjectsLocationsGlobalConnectivityTestsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3713,7 +3782,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsRerunCall) Header() http.Header func (c *ProjectsLocationsGlobalConnectivityTestsRerunCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3855,7 +3924,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsSetIamPolicyCall) Header() http func (c *ProjectsLocationsGlobalConnectivityTestsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4000,7 +4069,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall) Header( func (c *ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4149,7 +4218,7 @@ func (c *ProjectsLocationsGlobalOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsGlobalOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4290,7 +4359,7 @@ func (c *ProjectsLocationsGlobalOperationsDeleteCall) Header() http.Header { func (c *ProjectsLocationsGlobalOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4433,7 +4502,7 @@ func (c *ProjectsLocationsGlobalOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsGlobalOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4607,7 +4676,7 @@ func (c *ProjectsLocationsGlobalOperationsListCall) Header() http.Header { func (c *ProjectsLocationsGlobalOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/notebooks/v1/notebooks-api.json b/notebooks/v1/notebooks-api.json new file mode 100644 index 00000000000..274a60d348b --- /dev/null +++ b/notebooks/v1/notebooks-api.json @@ -0,0 +1,1892 @@ +{ + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/cloud-platform": { + "description": "View and manage your data across Google Cloud Platform services" + } + } + } + }, + "basePath": "", + "baseUrl": "https://notebooks.googleapis.com/", + "batchPath": "batch", + "canonicalName": "AI Platform Notebooks", + "description": "AI Platform Notebooks API is used to manage notebook resources in Google Cloud.", + "discoveryVersion": "v1", + "documentationLink": "https://cloud.google.com/ai-platform/notebooks/docs/", + "fullyEncodeReservedExpansion": true, + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "id": "notebooks:v1", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://notebooks.mtls.googleapis.com/", + "name": "notebooks", + "ownerDomain": "google.com", + "ownerName": "Google", + "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, + "alt": { + "default": "json", + "description": "Data format for response.", + "enum": [ + "json", + "media", + "proto" + ], + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query", + "type": "string" + }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, + "fields": { + "description": "Selector specifying which fields to include in a partial response.", + "location": "query", + "type": "string" + }, + "key": { + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "location": "query", + "type": "string" + }, + "oauth_token": { + "description": "OAuth 2.0 token for the current user.", + "location": "query", + "type": "string" + }, + "prettyPrint": { + "default": "true", + "description": "Returns response with indentations and line breaks.", + "location": "query", + "type": "boolean" + }, + "quotaUser": { + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query", + "type": "string" + }, + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query", + "type": "string" + } + }, + "protocol": "rest", + "resources": { + "projects": { + "resources": { + "locations": { + "methods": { + "get": { + "description": "Gets information about a location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}", + "httpMethod": "GET", + "id": "notebooks.projects.locations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Resource name for the location.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Location" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists information about the supported locations for this service.", + "flatPath": "v1/projects/{projectsId}/locations", + "httpMethod": "GET", + "id": "notebooks.projects.locations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The resource that owns the locations collection, if applicable.", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}/locations", + "response": { + "$ref": "ListLocationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "environments": { + "methods": { + "create": { + "description": "Creates a new Environment.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/environments", + "httpMethod": "POST", + "id": "notebooks.projects.locations.environments.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "environmentId": { + "description": "Required. User-defined unique ID of this environment. The `environment_id` must be 1 to 63 characters long and contain only lowercase letters, numeric characters, and dashes. The first character must be a lowercase letter and the last character cannot be a dash.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Format: `projects/{project_id}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/environments", + "request": { + "$ref": "Environment" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single Environment.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/environments/{environmentsId}", + "httpMethod": "DELETE", + "id": "notebooks.projects.locations.environments.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Format: `projects/{project_id}/locations/{location}/environments/{environment_id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/environments/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single Environment.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/environments/{environmentsId}", + "httpMethod": "GET", + "id": "notebooks.projects.locations.environments.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Format: `projects/{project_id}/locations/{location}/environments/{environment_id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/environments/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Environment" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists environments in a project.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/environments", + "httpMethod": "GET", + "id": "notebooks.projects.locations.environments.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Maximum return size of the list call.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A previous returned page token that can be used to continue listing from the last result.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Format: `projects/{project_id}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/environments", + "response": { + "$ref": "ListEnvironmentsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "instances": { + "methods": { + "create": { + "description": "Creates a new Instance in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances", + "httpMethod": "POST", + "id": "notebooks.projects.locations.instances.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "instanceId": { + "description": "Required. User-defined unique ID of this instance.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Format: `parent=projects/{project_id}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/instances", + "request": { + "$ref": "Instance" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single Instance.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}", + "httpMethod": "DELETE", + "id": "notebooks.projects.locations.instances.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single Instance.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}", + "httpMethod": "GET", + "id": "notebooks.projects.locations.instances.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Instance" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:getIamPolicy", + "httpMethod": "GET", + "id": "notebooks.projects.locations.instances.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:getIamPolicy", + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "isUpgradeable": { + "description": "Check if a notebook instance is upgradable.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:isUpgradeable", + "httpMethod": "GET", + "id": "notebooks.projects.locations.instances.isUpgradeable", + "parameterOrder": [ + "notebookInstance" + ], + "parameters": { + "notebookInstance": { + "description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+notebookInstance}:isUpgradeable", + "response": { + "$ref": "IsInstanceUpgradeableResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists instances in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances", + "httpMethod": "GET", + "id": "notebooks.projects.locations.instances.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Maximum return size of the list call.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A previous returned page token that can be used to continue listing from the last result.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Format: `parent=projects/{project_id}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/instances", + "response": { + "$ref": "ListInstancesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "register": { + "description": "Registers an existing legacy notebook instance to the Notebooks API server. Legacy instances are instances created with the legacy Compute Engine calls. They are not manageable by the Notebooks API out of the box. This call makes these instances manageable by the Notebooks API.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances:register", + "httpMethod": "POST", + "id": "notebooks.projects.locations.instances.register", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Format: `parent=projects/{project_id}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/instances:register", + "request": { + "$ref": "RegisterInstanceRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "report": { + "description": "Allows notebook instances to report their latest instance information to the Notebooks API server. The server will merge the reported information to the instance metadata store. Do not use this method directly.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:report", + "httpMethod": "POST", + "id": "notebooks.projects.locations.instances.report", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:report", + "request": { + "$ref": "ReportInstanceInfoRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "reset": { + "description": "Resets a notebook instance.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:reset", + "httpMethod": "POST", + "id": "notebooks.projects.locations.instances.reset", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:reset", + "request": { + "$ref": "ResetInstanceRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setAccelerator": { + "description": "Updates the guest accelerators of a single Instance.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:setAccelerator", + "httpMethod": "PATCH", + "id": "notebooks.projects.locations.instances.setAccelerator", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:setAccelerator", + "request": { + "$ref": "SetInstanceAcceleratorRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:setIamPolicy", + "httpMethod": "POST", + "id": "notebooks.projects.locations.instances.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setLabels": { + "description": "Replaces all the labels of an Instance.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:setLabels", + "httpMethod": "PATCH", + "id": "notebooks.projects.locations.instances.setLabels", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:setLabels", + "request": { + "$ref": "SetInstanceLabelsRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setMachineType": { + "description": "Updates the machine type of a single Instance.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:setMachineType", + "httpMethod": "PATCH", + "id": "notebooks.projects.locations.instances.setMachineType", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:setMachineType", + "request": { + "$ref": "SetInstanceMachineTypeRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "start": { + "description": "Starts a notebook instance.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:start", + "httpMethod": "POST", + "id": "notebooks.projects.locations.instances.start", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:start", + "request": { + "$ref": "StartInstanceRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "stop": { + "description": "Stops a notebook instance.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:stop", + "httpMethod": "POST", + "id": "notebooks.projects.locations.instances.stop", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:stop", + "request": { + "$ref": "StopInstanceRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:testIamPermissions", + "httpMethod": "POST", + "id": "notebooks.projects.locations.instances.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "upgrade": { + "description": "Upgrades a notebook instance to the latest version.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:upgrade", + "httpMethod": "POST", + "id": "notebooks.projects.locations.instances.upgrade", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:upgrade", + "request": { + "$ref": "UpgradeInstanceRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "upgradeInternal": { + "description": "Allows notebook instances to call this endpoint to upgrade themselves. Do not use this method directly.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:upgradeInternal", + "httpMethod": "POST", + "id": "notebooks.projects.locations.instances.upgradeInternal", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:upgradeInternal", + "request": { + "$ref": "UpgradeInstanceInternalRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "notebooks.projects.locations.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "request": { + "$ref": "CancelOperationRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "notebooks.projects.locations.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "notebooks.projects.locations.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", + "httpMethod": "GET", + "id": "notebooks.projects.locations.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "ListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + } + }, + "revision": "20201110", + "rootUrl": "https://notebooks.googleapis.com/", + "schemas": { + "AcceleratorConfig": { + "description": "Definition of a hardware accelerator. Note that not all combinations of `type` and `core_count` are valid. Check [GPUs on Compute Engine](/compute/docs/gpus/#gpus-list) to find a valid combination. TPUs are not supported.", + "id": "AcceleratorConfig", + "properties": { + "coreCount": { + "description": "Count of cores of this accelerator.", + "format": "int64", + "type": "string" + }, + "type": { + "description": "Type of this accelerator.", + "enum": [ + "ACCELERATOR_TYPE_UNSPECIFIED", + "NVIDIA_TESLA_K80", + "NVIDIA_TESLA_P100", + "NVIDIA_TESLA_V100", + "NVIDIA_TESLA_P4", + "NVIDIA_TESLA_T4", + "NVIDIA_TESLA_A100", + "NVIDIA_TESLA_T4_VWS", + "NVIDIA_TESLA_P100_VWS", + "NVIDIA_TESLA_P4_VWS", + "TPU_V2", + "TPU_V3" + ], + "enumDescriptions": [ + "Accelerator type is not specified.", + "Accelerator type is Nvidia Tesla K80.", + "Accelerator type is Nvidia Tesla P100.", + "Accelerator type is Nvidia Tesla V100.", + "Accelerator type is Nvidia Tesla P4.", + "Accelerator type is Nvidia Tesla T4.", + "Accelerator type is Nvidia Tesla A100.", + "Accelerator type is NVIDIA Tesla T4 Virtual Workstations.", + "Accelerator type is NVIDIA Tesla P100 Virtual Workstations.", + "Accelerator type is NVIDIA Tesla P4 Virtual Workstations.", + "(Coming soon) Accelerator type is TPU V2.", + "(Coming soon) Accelerator type is TPU V3." + ], + "type": "string" + } + }, + "type": "object" + }, + "Binding": { + "description": "Associates `members` with a `role`.", + "id": "Binding", + "properties": { + "condition": { + "$ref": "Expr", + "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." + }, + "members": { + "description": "Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "items": { + "type": "string" + }, + "type": "array" + }, + "role": { + "description": "Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", + "type": "string" + } + }, + "type": "object" + }, + "CancelOperationRequest": { + "description": "The request message for Operations.CancelOperation.", + "id": "CancelOperationRequest", + "properties": {}, + "type": "object" + }, + "ContainerImage": { + "description": "Definition of a container image for starting a notebook instance with the environment installed in a container.", + "id": "ContainerImage", + "properties": { + "repository": { + "description": "Required. The path to the container image repository. For example: `gcr.io/{project_id}/{image_name}`", + "type": "string" + }, + "tag": { + "description": "The tag of the container image. If not specified, this defaults to the latest tag.", + "type": "string" + } + }, + "type": "object" + }, + "Disk": { + "description": "An instance-attached disk resource.", + "id": "Disk", + "properties": { + "autoDelete": { + "description": "Indicates whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).", + "type": "boolean" + }, + "boot": { + "description": "Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.", + "type": "boolean" + }, + "deviceName": { + "description": "Indicates a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine.This field is only applicable for persistent disks.", + "type": "string" + }, + "diskSizeGb": { + "description": "Indicates the size of the disk in base-2 GB.", + "format": "int64", + "type": "string" + }, + "guestOsFeatures": { + "description": "Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.", + "items": { + "$ref": "GuestOsFeature" + }, + "type": "array" + }, + "index": { + "description": "A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number.", + "format": "int64", + "type": "string" + }, + "interface": { + "description": "Indicates the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Valid values: NVME SCSI", + "type": "string" + }, + "kind": { + "description": "Type of the resource. Always compute#attachedDisk for attached disks.", + "type": "string" + }, + "licenses": { + "description": "A list of publicly visible licenses. Reserved for Google's use. A License represents billing and aggregate usage data for public and marketplace images.", + "items": { + "type": "string" + }, + "type": "array" + }, + "mode": { + "description": "The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Valid values: READ_ONLY READ_WRITE", + "type": "string" + }, + "source": { + "description": "Indicates a valid partial or full URL to an existing Persistent Disk resource.", + "type": "string" + }, + "type": { + "description": "Indicates the type of the disk, either SCRATCH or PERSISTENT. Valid values: PERSISTENT SCRATCH", + "type": "string" + } + }, + "type": "object" + }, + "Empty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "id": "Empty", + "properties": {}, + "type": "object" + }, + "Environment": { + "description": "Definition of a software environment that is used to start a notebook instance.", + "id": "Environment", + "properties": { + "containerImage": { + "$ref": "ContainerImage", + "description": "Use a container image to start the notebook instance." + }, + "createTime": { + "description": "Output only. The time at which this environment was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "A brief description of this environment.", + "type": "string" + }, + "displayName": { + "description": "Display name of this environment for the UI.", + "type": "string" + }, + "name": { + "description": "Output only. Name of this environment. Format: `projects/{project_id}/locations/{location}/environments/{environment_id}`", + "readOnly": true, + "type": "string" + }, + "postStartupScript": { + "description": "Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path. Example: `\"gs://path-to-file/file-name\"`", + "type": "string" + }, + "vmImage": { + "$ref": "VmImage", + "description": "Use a Compute Engine VM image to start the notebook instance." + } + }, + "type": "object" + }, + "Expr": { + "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", + "id": "Expr", + "properties": { + "description": { + "description": "Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.", + "type": "string" + }, + "expression": { + "description": "Textual representation of an expression in Common Expression Language syntax.", + "type": "string" + }, + "location": { + "description": "Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.", + "type": "string" + }, + "title": { + "description": "Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.", + "type": "string" + } + }, + "type": "object" + }, + "GuestOsFeature": { + "description": "Guest OS features for boot disk.", + "id": "GuestOsFeature", + "properties": { + "type": { + "description": "The ID of a supported feature. Read Enabling guest operating system features to see a list of available options. Valid values: FEATURE_TYPE_UNSPECIFIED MULTI_IP_SUBNET SECURE_BOOT UEFI_COMPATIBLE VIRTIO_SCSI_MULTIQUEUE WINDOWS", + "type": "string" + } + }, + "type": "object" + }, + "Instance": { + "description": "The definition of a notebook instance.", + "id": "Instance", + "properties": { + "acceleratorConfig": { + "$ref": "AcceleratorConfig", + "description": "The hardware accelerator used on this instance. If you use accelerators, make sure that your configuration has [enough vCPUs and memory to support the `machine_type` you have selected](/compute/docs/gpus/#gpus-list)." + }, + "bootDiskSizeGb": { + "description": "Input only. The size of the boot disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). The minimum recommended value is 100 GB. If not specified, this defaults to 100.", + "format": "int64", + "type": "string" + }, + "bootDiskType": { + "description": "Input only. The type of the boot disk attached to this instance, defaults to standard persistent disk (`PD_STANDARD`).", + "enum": [ + "DISK_TYPE_UNSPECIFIED", + "PD_STANDARD", + "PD_SSD", + "PD_BALANCED" + ], + "enumDescriptions": [ + "Disk type not set.", + "Standard persistent disk type.", + "SSD persistent disk type.", + "Balanced persistent disk type." + ], + "type": "string" + }, + "containerImage": { + "$ref": "ContainerImage", + "description": "Use a container image to start the notebook instance." + }, + "createTime": { + "description": "Output only. Instance creation time.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "customGpuDriverPath": { + "description": "Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we'll automatically choose from official GPU drivers.", + "type": "string" + }, + "dataDiskSizeGb": { + "description": "Input only. The size of the data disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). You can choose the size of the data disk based on how big your notebooks and data are. If not specified, this defaults to 100.", + "format": "int64", + "type": "string" + }, + "dataDiskType": { + "description": "Input only. The type of the data disk attached to this instance, defaults to standard persistent disk (`PD_STANDARD`).", + "enum": [ + "DISK_TYPE_UNSPECIFIED", + "PD_STANDARD", + "PD_SSD", + "PD_BALANCED" + ], + "enumDescriptions": [ + "Disk type not set.", + "Standard persistent disk type.", + "SSD persistent disk type.", + "Balanced persistent disk type." + ], + "type": "string" + }, + "diskEncryption": { + "description": "Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.", + "enum": [ + "DISK_ENCRYPTION_UNSPECIFIED", + "GMEK", + "CMEK" + ], + "enumDescriptions": [ + "Disk encryption is not specified.", + "Use Google managed encryption keys to encrypt the boot disk.", + "Use customer managed encryption keys to encrypt the boot disk." + ], + "type": "string" + }, + "disks": { + "description": "Output only. Attached disks to notebook instance.", + "items": { + "$ref": "Disk" + }, + "readOnly": true, + "type": "array" + }, + "installGpuDriver": { + "description": "Whether the end user authorizes Google Cloud to install GPU driver on this instance. If this field is empty or set to false, the GPU driver won't be installed. Only applicable to instances with GPUs.", + "type": "boolean" + }, + "instanceOwners": { + "description": "Input only. The owner of this instance after creation. Format: `alias@example.com` Currently supports one owner only. If not specified, all of the service account users of your VM instance's service account can use the instance.", + "items": { + "type": "string" + }, + "type": "array" + }, + "kmsKey": { + "description": "Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption is CMEK. Format: `projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}` Learn more about [using your own encryption keys](/kms/docs/quickstart).", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Labels to apply to this instance. These can be later modified by the setLabels method.", + "type": "object" + }, + "machineType": { + "description": "Required. The [Compute Engine machine type](/compute/docs/machine-types) of this instance.", + "type": "string" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Custom metadata to apply to this instance.", + "type": "object" + }, + "name": { + "description": "Output only. The name of this notebook instance. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`", + "readOnly": true, + "type": "string" + }, + "network": { + "description": "The name of the VPC that this instance is in. Format: `projects/{project_id}/global/networks/{network_id}`", + "type": "string" + }, + "noProxyAccess": { + "description": "If true, the notebook instance will not register with the proxy.", + "type": "boolean" + }, + "noPublicIp": { + "description": "If true, no public IP will be assigned to this instance.", + "type": "boolean" + }, + "noRemoveDataDisk": { + "description": "Input only. If true, the data disk will not be auto deleted when deleting the instance.", + "type": "boolean" + }, + "postStartupScript": { + "description": "Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/file-name).", + "type": "string" + }, + "proxyUri": { + "description": "Output only. The proxy endpoint that is used to access the Jupyter notebook.", + "readOnly": true, + "type": "string" + }, + "serviceAccount": { + "description": "The service account on this instance, giving access to other Google Cloud services. You can use any service account within the same project, but you must have the service account user permission to use the instance. If not specified, the [Compute Engine default service account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.", + "type": "string" + }, + "state": { + "description": "Output only. The state of this instance.", + "enum": [ + "STATE_UNSPECIFIED", + "STARTING", + "PROVISIONING", + "ACTIVE", + "STOPPING", + "STOPPED", + "DELETED", + "UPGRADING", + "INITIALIZING", + "REGISTERING" + ], + "enumDescriptions": [ + "State is not specified.", + "The control logic is starting the instance.", + "The control logic is installing required frameworks and registering the instance with notebook proxy", + "The instance is running.", + "The control logic is stopping the instance.", + "The instance is stopped.", + "The instance is deleted.", + "The instance is upgrading.", + "The instance is being created.", + "The instance is getting registered." + ], + "readOnly": true, + "type": "string" + }, + "subnet": { + "description": "The name of the subnet that this instance is in. Format: `projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}`", + "type": "string" + }, + "updateTime": { + "description": "Output only. Instance update time.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "upgradeHistory": { + "description": "The upgrade history of this instance.", + "items": { + "$ref": "UpgradeHistoryEntry" + }, + "type": "array" + }, + "vmImage": { + "$ref": "VmImage", + "description": "Use a Compute Engine VM image to start the notebook instance." + } + }, + "type": "object" + }, + "IsInstanceUpgradeableResponse": { + "description": "Response for checking if a notebook instance is upgradeable.", + "id": "IsInstanceUpgradeableResponse", + "properties": { + "upgradeInfo": { + "description": "Additional information about upgrade.", + "type": "string" + }, + "upgradeVersion": { + "description": "The version this instance will be upgraded to if calling the upgrade endpoint. This field will only be populated if field upgradeable is true.", + "type": "string" + }, + "upgradeable": { + "description": "If an instance is upgradeable.", + "type": "boolean" + } + }, + "type": "object" + }, + "ListEnvironmentsResponse": { + "description": "Response for listing environments.", + "id": "ListEnvironmentsResponse", + "properties": { + "environments": { + "description": "A list of returned environments.", + "items": { + "$ref": "Environment" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A page token that can be used to continue listing from the last result in the next list call.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListInstancesResponse": { + "description": "Response for listing notebook instances.", + "id": "ListInstancesResponse", + "properties": { + "instances": { + "description": "A list of returned instances.", + "items": { + "$ref": "Instance" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Page token that can be used to continue listing from the last result in the next list call.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached. For example, ['us-west1-a', 'us-central1-b']. A ListInstancesResponse will only contain either instances or unreachables,", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListLocationsResponse": { + "description": "The response message for Locations.ListLocations.", + "id": "ListLocationsResponse", + "properties": { + "locations": { + "description": "A list of locations that matches the specified filter in the request.", + "items": { + "$ref": "Location" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + } + }, + "type": "object" + }, + "ListOperationsResponse": { + "description": "The response message for Operations.ListOperations.", + "id": "ListOperationsResponse", + "properties": { + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + }, + "operations": { + "description": "A list of operations that matches the specified filter in the request.", + "items": { + "$ref": "Operation" + }, + "type": "array" + } + }, + "type": "object" + }, + "Location": { + "description": "A resource that represents Google Cloud Platform location.", + "id": "Location", + "properties": { + "displayName": { + "description": "The friendly name for this location, typically a nearby city name. For example, \"Tokyo\".", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Cross-service attributes for the location. For example {\"cloud.googleapis.com/region\": \"us-east1\"}", + "type": "object" + }, + "locationId": { + "description": "The canonical id for this location. For example: `\"us-east1\"`.", + "type": "string" + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata. For example the available capacity at the given location.", + "type": "object" + }, + "name": { + "description": "Resource name for the location, which may vary between implementations. For example: `\"projects/example-project/locations/us-east1\"`", + "type": "string" + } + }, + "type": "object" + }, + "Operation": { + "description": "This resource represents a long-running operation that is the result of a network API call.", + "id": "Operation", + "properties": { + "done": { + "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", + "type": "boolean" + }, + "error": { + "$ref": "Status", + "description": "The error result of the operation in case of failure or cancellation." + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "type": "object" + }, + "name": { + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", + "type": "string" + }, + "response": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "type": "object" + } + }, + "type": "object" + }, + "OperationMetadata": { + "description": "Represents the metadata of the long-running operation.", + "id": "OperationMetadata", + "properties": { + "apiVersion": { + "description": "API version used to start the operation.", + "type": "string" + }, + "createTime": { + "description": "The time the operation was created.", + "format": "google-datetime", + "type": "string" + }, + "endTime": { + "description": "The time the operation finished running.", + "format": "google-datetime", + "type": "string" + }, + "endpoint": { + "description": "API endpoint name of this operation.", + "type": "string" + }, + "requestedCancellation": { + "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "type": "boolean" + }, + "statusMessage": { + "description": "Human-readable status of the operation, if any.", + "type": "string" + }, + "target": { + "description": "Server-defined resource path for the target of the operation.", + "type": "string" + }, + "verb": { + "description": "Name of the verb executed by the operation.", + "type": "string" + } + }, + "type": "object" + }, + "Policy": { + "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", + "id": "Policy", + "properties": { + "bindings": { + "description": "Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.", + "items": { + "$ref": "Binding" + }, + "type": "array" + }, + "etag": { + "description": "`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.", + "format": "byte", + "type": "string" + }, + "version": { + "description": "Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "RegisterInstanceRequest": { + "description": "Request for registering a notebook instance.", + "id": "RegisterInstanceRequest", + "properties": { + "instanceId": { + "description": "Required. User defined unique ID of this instance. The `instance_id` must be 1 to 63 characters long and contain only lowercase letters, numeric characters, and dashes. The first character must be a lowercase letter and the last character cannot be a dash.", + "type": "string" + } + }, + "type": "object" + }, + "ReportInstanceInfoRequest": { + "description": "Request for notebook instances to report information to Notebooks API.", + "id": "ReportInstanceInfoRequest", + "properties": { + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "The metadata reported to Notebooks API. This will be merged to the instance metadata store", + "type": "object" + }, + "vmId": { + "description": "Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity", + "type": "string" + } + }, + "type": "object" + }, + "ResetInstanceRequest": { + "description": "Request for reseting a notebook instance", + "id": "ResetInstanceRequest", + "properties": {}, + "type": "object" + }, + "SetIamPolicyRequest": { + "description": "Request message for `SetIamPolicy` method.", + "id": "SetIamPolicyRequest", + "properties": { + "policy": { + "$ref": "Policy", + "description": "REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them." + } + }, + "type": "object" + }, + "SetInstanceAcceleratorRequest": { + "description": "Request for setting instance accelerator.", + "id": "SetInstanceAcceleratorRequest", + "properties": { + "coreCount": { + "description": "Required. Count of cores of this accelerator. Note that not all combinations of `type` and `core_count` are valid. Check [GPUs on Compute Engine](https://cloud.google.com/compute/docs/gpus/#gpus-list) to find a valid combination. TPUs are not supported.", + "format": "int64", + "type": "string" + }, + "type": { + "description": "Required. Type of this accelerator.", + "enum": [ + "ACCELERATOR_TYPE_UNSPECIFIED", + "NVIDIA_TESLA_K80", + "NVIDIA_TESLA_P100", + "NVIDIA_TESLA_V100", + "NVIDIA_TESLA_P4", + "NVIDIA_TESLA_T4", + "NVIDIA_TESLA_A100", + "NVIDIA_TESLA_T4_VWS", + "NVIDIA_TESLA_P100_VWS", + "NVIDIA_TESLA_P4_VWS", + "TPU_V2", + "TPU_V3" + ], + "enumDescriptions": [ + "Accelerator type is not specified.", + "Accelerator type is Nvidia Tesla K80.", + "Accelerator type is Nvidia Tesla P100.", + "Accelerator type is Nvidia Tesla V100.", + "Accelerator type is Nvidia Tesla P4.", + "Accelerator type is Nvidia Tesla T4.", + "Accelerator type is Nvidia Tesla A100.", + "Accelerator type is NVIDIA Tesla T4 Virtual Workstations.", + "Accelerator type is NVIDIA Tesla P100 Virtual Workstations.", + "Accelerator type is NVIDIA Tesla P4 Virtual Workstations.", + "(Coming soon) Accelerator type is TPU V2.", + "(Coming soon) Accelerator type is TPU V3." + ], + "type": "string" + } + }, + "type": "object" + }, + "SetInstanceLabelsRequest": { + "description": "Request for setting instance labels.", + "id": "SetInstanceLabelsRequest", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Labels to apply to this instance. These can be later modified by the setLabels method", + "type": "object" + } + }, + "type": "object" + }, + "SetInstanceMachineTypeRequest": { + "description": "Request for setting instance machine type.", + "id": "SetInstanceMachineTypeRequest", + "properties": { + "machineType": { + "description": "Required. The [Compute Engine machine type](https://cloud.google.com/compute/docs/machine-types).", + "type": "string" + } + }, + "type": "object" + }, + "StartInstanceRequest": { + "description": "Request for starting a notebook instance", + "id": "StartInstanceRequest", + "properties": {}, + "type": "object" + }, + "Status": { + "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", + "id": "Status", + "properties": { + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "format": "int32", + "type": "integer" + }, + "details": { + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", + "type": "string" + } + }, + "type": "object" + }, + "StopInstanceRequest": { + "description": "Request for stopping a notebook instance", + "id": "StopInstanceRequest", + "properties": {}, + "type": "object" + }, + "TestIamPermissionsRequest": { + "description": "Request message for `TestIamPermissions` method.", + "id": "TestIamPermissionsRequest", + "properties": { + "permissions": { + "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "TestIamPermissionsResponse": { + "description": "Response message for `TestIamPermissions` method.", + "id": "TestIamPermissionsResponse", + "properties": { + "permissions": { + "description": "A subset of `TestPermissionsRequest.permissions` that the caller is allowed.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "UpgradeHistoryEntry": { + "id": "UpgradeHistoryEntry", + "properties": { + "containerImage": { + "description": "The container image before this instance upgrade.", + "type": "string" + }, + "createTime": { + "description": "The time that this instance upgrade history entry is created.", + "format": "google-datetime", + "type": "string" + }, + "framework": { + "description": "The framework of this notebook instance.", + "type": "string" + }, + "snapshot": { + "description": "The snapshot of the boot disk of this notebook instance before upgrade.", + "type": "string" + }, + "state": { + "description": "The state of this instance upgrade history entry.", + "enum": [ + "STATE_UNSPECIFIED", + "STARTED", + "SUCCEEDED", + "FAILED" + ], + "enumDescriptions": [ + "State is not specified.", + "The instance upgrade is started.", + "The instance upgrade is succeeded.", + "The instance upgrade is failed." + ], + "type": "string" + }, + "version": { + "description": "The version of the notebook instance before this upgrade.", + "type": "string" + }, + "vmImage": { + "description": "The VM image before this instance upgrade.", + "type": "string" + } + }, + "type": "object" + }, + "UpgradeInstanceInternalRequest": { + "description": "Request for upgrading a notebook instance from within the VM", + "id": "UpgradeInstanceInternalRequest", + "properties": { + "vmId": { + "description": "Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity", + "type": "string" + } + }, + "type": "object" + }, + "UpgradeInstanceRequest": { + "description": "Request for upgrading a notebook instance", + "id": "UpgradeInstanceRequest", + "properties": {}, + "type": "object" + }, + "VmImage": { + "description": "Definition of a custom Compute Engine virtual machine image for starting a notebook instance with the environment installed directly on the VM.", + "id": "VmImage", + "properties": { + "imageFamily": { + "description": "Use this VM image family to find the image; the newest image in this family will be used.", + "type": "string" + }, + "imageName": { + "description": "Use VM image name to find the image.", + "type": "string" + }, + "project": { + "description": "Required. The name of the Google Cloud project that this VM image belongs to. Format: `projects/{project_id}`", + "type": "string" + } + }, + "type": "object" + } + }, + "servicePath": "", + "title": "Notebooks API", + "version": "v1", + "version_module": true +} \ No newline at end of file diff --git a/notebooks/v1/notebooks-gen.go b/notebooks/v1/notebooks-gen.go new file mode 100644 index 00000000000..baa3ce7aee6 --- /dev/null +++ b/notebooks/v1/notebooks-gen.go @@ -0,0 +1,5939 @@ +// Copyright 2020 Google LLC. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated file. DO NOT EDIT. + +// Package notebooks provides access to the Notebooks API. +// +// For product documentation, see: https://cloud.google.com/ai-platform/notebooks/docs/ +// +// Creating a client +// +// Usage example: +// +// import "google.golang.org/api/notebooks/v1" +// ... +// ctx := context.Background() +// notebooksService, err := notebooks.NewService(ctx) +// +// In this example, Google Application Default Credentials are used for authentication. +// +// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// +// Other authentication options +// +// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// +// notebooksService, err := notebooks.NewService(ctx, option.WithAPIKey("AIza...")) +// +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// +// config := &oauth2.Config{...} +// // ... +// token, err := config.Exchange(ctx, ...) +// notebooksService, err := notebooks.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) +// +// See https://godoc.org/google.golang.org/api/option/ for details on options. +package notebooks // import "google.golang.org/api/notebooks/v1" + +import ( + "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + googleapi "google.golang.org/api/googleapi" + gensupport "google.golang.org/api/internal/gensupport" + option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" + htransport "google.golang.org/api/transport/http" +) + +// Always reference these packages, just in case the auto-generated code +// below doesn't. +var _ = bytes.NewBuffer +var _ = strconv.Itoa +var _ = fmt.Sprintf +var _ = json.NewDecoder +var _ = io.Copy +var _ = url.Parse +var _ = gensupport.MarshalJSON +var _ = googleapi.Version +var _ = errors.New +var _ = strings.Replace +var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint + +const apiId = "notebooks:v1" +const apiName = "notebooks" +const apiVersion = "v1" +const basePath = "https://notebooks.googleapis.com/" +const mtlsBasePath = "https://notebooks.mtls.googleapis.com/" + +// OAuth2 scopes used by this API. +const ( + // View and manage your data across Google Cloud Platform services + CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" +) + +// NewService creates a new Service. +func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + scopesOption := option.WithScopes( + "https://www.googleapis.com/auth/cloud-platform", + ) + // NOTE: prepend, so we don't override user-specified scopes. + opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + client, endpoint, err := htransport.NewClient(ctx, opts...) + if err != nil { + return nil, err + } + s, err := New(client) + if err != nil { + return nil, err + } + if endpoint != "" { + s.BasePath = endpoint + } + return s, nil +} + +// New creates a new Service. It uses the provided http.Client for requests. +// +// Deprecated: please use NewService instead. +// To provide a custom HTTP client, use option.WithHTTPClient. +// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. +func New(client *http.Client) (*Service, error) { + if client == nil { + return nil, errors.New("client is nil") + } + s := &Service{client: client, BasePath: basePath} + s.Projects = NewProjectsService(s) + return s, nil +} + +type Service struct { + client *http.Client + BasePath string // API endpoint base URL + UserAgent string // optional additional User-Agent fragment + + Projects *ProjectsService +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewProjectsService(s *Service) *ProjectsService { + rs := &ProjectsService{s: s} + rs.Locations = NewProjectsLocationsService(s) + return rs +} + +type ProjectsService struct { + s *Service + + Locations *ProjectsLocationsService +} + +func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { + rs := &ProjectsLocationsService{s: s} + rs.Environments = NewProjectsLocationsEnvironmentsService(s) + rs.Instances = NewProjectsLocationsInstancesService(s) + rs.Operations = NewProjectsLocationsOperationsService(s) + return rs +} + +type ProjectsLocationsService struct { + s *Service + + Environments *ProjectsLocationsEnvironmentsService + + Instances *ProjectsLocationsInstancesService + + Operations *ProjectsLocationsOperationsService +} + +func NewProjectsLocationsEnvironmentsService(s *Service) *ProjectsLocationsEnvironmentsService { + rs := &ProjectsLocationsEnvironmentsService{s: s} + return rs +} + +type ProjectsLocationsEnvironmentsService struct { + s *Service +} + +func NewProjectsLocationsInstancesService(s *Service) *ProjectsLocationsInstancesService { + rs := &ProjectsLocationsInstancesService{s: s} + return rs +} + +type ProjectsLocationsInstancesService struct { + s *Service +} + +func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { + rs := &ProjectsLocationsOperationsService{s: s} + return rs +} + +type ProjectsLocationsOperationsService struct { + s *Service +} + +// AcceleratorConfig: Definition of a hardware accelerator. Note that +// not all combinations of `type` and `core_count` are valid. Check +// [GPUs on Compute Engine](/compute/docs/gpus/#gpus-list) to find a +// valid combination. TPUs are not supported. +type AcceleratorConfig struct { + // CoreCount: Count of cores of this accelerator. + CoreCount int64 `json:"coreCount,omitempty,string"` + + // Type: Type of this accelerator. + // + // Possible values: + // "ACCELERATOR_TYPE_UNSPECIFIED" - Accelerator type is not specified. + // "NVIDIA_TESLA_K80" - Accelerator type is Nvidia Tesla K80. + // "NVIDIA_TESLA_P100" - Accelerator type is Nvidia Tesla P100. + // "NVIDIA_TESLA_V100" - Accelerator type is Nvidia Tesla V100. + // "NVIDIA_TESLA_P4" - Accelerator type is Nvidia Tesla P4. + // "NVIDIA_TESLA_T4" - Accelerator type is Nvidia Tesla T4. + // "NVIDIA_TESLA_A100" - Accelerator type is Nvidia Tesla A100. + // "NVIDIA_TESLA_T4_VWS" - Accelerator type is NVIDIA Tesla T4 Virtual + // Workstations. + // "NVIDIA_TESLA_P100_VWS" - Accelerator type is NVIDIA Tesla P100 + // Virtual Workstations. + // "NVIDIA_TESLA_P4_VWS" - Accelerator type is NVIDIA Tesla P4 Virtual + // Workstations. + // "TPU_V2" - (Coming soon) Accelerator type is TPU V2. + // "TPU_V3" - (Coming soon) Accelerator type is TPU V3. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CoreCount") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CoreCount") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AcceleratorConfig) MarshalJSON() ([]byte, error) { + type NoMethod AcceleratorConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Binding: Associates `members` with a `role`. +type Binding struct { + // Condition: The condition that is associated with this binding. If the + // condition evaluates to `true`, then this binding applies to the + // current request. If the condition evaluates to `false`, then this + // binding does not apply to the current request. However, a different + // role binding might grant the same role to one or more of the members + // in this binding. To learn which resources support conditions in their + // IAM policies, see the [IAM + // documentation](https://cloud.google.com/iam/help/conditions/resource-p + // olicies). + Condition *Expr `json:"condition,omitempty"` + + // Members: Specifies the identities requesting access for a Cloud + // Platform resource. `members` can have the following values: * + // `allUsers`: A special identifier that represents anyone who is on the + // internet; with or without a Google account. * + // `allAuthenticatedUsers`: A special identifier that represents anyone + // who is authenticated with a Google account or a service account. * + // `user:{emailid}`: An email address that represents a specific Google + // account. For example, `alice@example.com` . * + // `serviceAccount:{emailid}`: An email address that represents a + // service account. For example, + // `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An + // email address that represents a Google group. For example, + // `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An + // email address (plus unique identifier) representing a user that has + // been recently deleted. For example, + // `alice@example.com?uid=123456789012345678901`. If the user is + // recovered, this value reverts to `user:{emailid}` and the recovered + // user retains the role in the binding. * + // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address + // (plus unique identifier) representing a service account that has been + // recently deleted. For example, + // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + // If the service account is undeleted, this value reverts to + // `serviceAccount:{emailid}` and the undeleted service account retains + // the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: + // An email address (plus unique identifier) representing a Google group + // that has been recently deleted. For example, + // `admins@example.com?uid=123456789012345678901`. If the group is + // recovered, this value reverts to `group:{emailid}` and the recovered + // group retains the role in the binding. * `domain:{domain}`: The G + // Suite domain (primary) that represents all the users of that domain. + // For example, `google.com` or `example.com`. + Members []string `json:"members,omitempty"` + + // Role: Role that is assigned to `members`. For example, + // `roles/viewer`, `roles/editor`, or `roles/owner`. + Role string `json:"role,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Condition") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Condition") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Binding) MarshalJSON() ([]byte, error) { + type NoMethod Binding + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CancelOperationRequest: The request message for +// Operations.CancelOperation. +type CancelOperationRequest struct { +} + +// ContainerImage: Definition of a container image for starting a +// notebook instance with the environment installed in a container. +type ContainerImage struct { + // Repository: Required. The path to the container image repository. For + // example: `gcr.io/{project_id}/{image_name}` + Repository string `json:"repository,omitempty"` + + // Tag: The tag of the container image. If not specified, this defaults + // to the latest tag. + Tag string `json:"tag,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Repository") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Repository") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ContainerImage) MarshalJSON() ([]byte, error) { + type NoMethod ContainerImage + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Disk: An instance-attached disk resource. +type Disk struct { + // AutoDelete: Indicates whether the disk will be auto-deleted when the + // instance is deleted (but not when the disk is detached from the + // instance). + AutoDelete bool `json:"autoDelete,omitempty"` + + // Boot: Indicates that this is a boot disk. The virtual machine will + // use the first partition of the disk for its root filesystem. + Boot bool `json:"boot,omitempty"` + + // DeviceName: Indicates a unique device name of your choice that is + // reflected into the /dev/disk/by-id/google-* tree of a Linux operating + // system running within the instance. This name can be used to + // reference the device for mounting, resizing, and so on, from within + // the instance. If not specified, the server chooses a default device + // name to apply to this disk, in the form persistent-disk-x, where x is + // a number assigned by Google Compute Engine.This field is only + // applicable for persistent disks. + DeviceName string `json:"deviceName,omitempty"` + + // DiskSizeGb: Indicates the size of the disk in base-2 GB. + DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` + + // GuestOsFeatures: Indicates a list of features to enable on the guest + // operating system. Applicable only for bootable images. Read Enabling + // guest operating system features to see a list of available options. + GuestOsFeatures []*GuestOsFeature `json:"guestOsFeatures,omitempty"` + + // Index: A zero-based index to this disk, where 0 is reserved for the + // boot disk. If you have many disks attached to an instance, each disk + // would have a unique index number. + Index int64 `json:"index,omitempty,string"` + + // Interface: Indicates the disk interface to use for attaching this + // disk, which is either SCSI or NVME. The default is SCSI. Persistent + // disks must always use SCSI and the request will fail if you attempt + // to attach a persistent disk in any other format than SCSI. Local SSDs + // can use either NVME or SCSI. For performance characteristics of SCSI + // over NVMe, see Local SSD performance. Valid values: NVME SCSI + Interface string `json:"interface,omitempty"` + + // Kind: Type of the resource. Always compute#attachedDisk for attached + // disks. + Kind string `json:"kind,omitempty"` + + // Licenses: A list of publicly visible licenses. Reserved for Google's + // use. A License represents billing and aggregate usage data for public + // and marketplace images. + Licenses []string `json:"licenses,omitempty"` + + // Mode: The mode in which to attach this disk, either READ_WRITE or + // READ_ONLY. If not specified, the default is to attach the disk in + // READ_WRITE mode. Valid values: READ_ONLY READ_WRITE + Mode string `json:"mode,omitempty"` + + // Source: Indicates a valid partial or full URL to an existing + // Persistent Disk resource. + Source string `json:"source,omitempty"` + + // Type: Indicates the type of the disk, either SCRATCH or PERSISTENT. + // Valid values: PERSISTENT SCRATCH + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AutoDelete") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AutoDelete") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Disk) MarshalJSON() ([]byte, error) { + type NoMethod Disk + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Empty: A generic empty message that you can re-use to avoid defining +// duplicated empty messages in your APIs. A typical example is to use +// it as the request or the response type of an API method. For +// instance: service Foo { rpc Bar(google.protobuf.Empty) returns +// (google.protobuf.Empty); } The JSON representation for `Empty` is +// empty JSON object `{}`. +type Empty struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// Environment: Definition of a software environment that is used to +// start a notebook instance. +type Environment struct { + // ContainerImage: Use a container image to start the notebook instance. + ContainerImage *ContainerImage `json:"containerImage,omitempty"` + + // CreateTime: Output only. The time at which this environment was + // created. + CreateTime string `json:"createTime,omitempty"` + + // Description: A brief description of this environment. + Description string `json:"description,omitempty"` + + // DisplayName: Display name of this environment for the UI. + DisplayName string `json:"displayName,omitempty"` + + // Name: Output only. Name of this environment. Format: + // `projects/{project_id}/locations/{location}/environments/{environment_ + // id}` + Name string `json:"name,omitempty"` + + // PostStartupScript: Path to a Bash script that automatically runs + // after a notebook instance fully boots up. The path must be a URL or + // Cloud Storage path. Example: "gs://path-to-file/file-name" + PostStartupScript string `json:"postStartupScript,omitempty"` + + // VmImage: Use a Compute Engine VM image to start the notebook + // instance. + VmImage *VmImage `json:"vmImage,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ContainerImage") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ContainerImage") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *Environment) MarshalJSON() ([]byte, error) { + type NoMethod Environment + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Expr: Represents a textual expression in the Common Expression +// Language (CEL) syntax. CEL is a C-like expression language. The +// syntax and semantics of CEL are documented at +// https://github.com/google/cel-spec. Example (Comparison): title: +// "Summary size limit" description: "Determines if a summary is less +// than 100 chars" expression: "document.summary.size() < 100" Example +// (Equality): title: "Requestor is owner" description: "Determines if +// requestor is the document owner" expression: "document.owner == +// request.auth.claims.email" Example (Logic): title: "Public documents" +// description: "Determine whether the document should be publicly +// visible" expression: "document.type != 'private' && document.type != +// 'internal'" Example (Data Manipulation): title: "Notification string" +// description: "Create a notification string with a timestamp." +// expression: "'New message received at ' + +// string(document.create_time)" The exact variables and functions that +// may be referenced within an expression are determined by the service +// that evaluates it. See the service documentation for additional +// information. +type Expr struct { + // Description: Optional. Description of the expression. This is a + // longer text which describes the expression, e.g. when hovered over it + // in a UI. + Description string `json:"description,omitempty"` + + // Expression: Textual representation of an expression in Common + // Expression Language syntax. + Expression string `json:"expression,omitempty"` + + // Location: Optional. String indicating the location of the expression + // for error reporting, e.g. a file name and a position in the file. + Location string `json:"location,omitempty"` + + // Title: Optional. Title for the expression, i.e. a short string + // describing its purpose. This can be used e.g. in UIs which allow to + // enter the expression. + Title string `json:"title,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Description") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Expr) MarshalJSON() ([]byte, error) { + type NoMethod Expr + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GuestOsFeature: Guest OS features for boot disk. +type GuestOsFeature struct { + // Type: The ID of a supported feature. Read Enabling guest operating + // system features to see a list of available options. Valid values: + // FEATURE_TYPE_UNSPECIFIED MULTI_IP_SUBNET SECURE_BOOT UEFI_COMPATIBLE + // VIRTIO_SCSI_MULTIQUEUE WINDOWS + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Type") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Type") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GuestOsFeature) MarshalJSON() ([]byte, error) { + type NoMethod GuestOsFeature + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Instance: The definition of a notebook instance. +type Instance struct { + // AcceleratorConfig: The hardware accelerator used on this instance. If + // you use accelerators, make sure that your configuration has [enough + // vCPUs and memory to support the `machine_type` you have + // selected](/compute/docs/gpus/#gpus-list). + AcceleratorConfig *AcceleratorConfig `json:"acceleratorConfig,omitempty"` + + // BootDiskSizeGb: Input only. The size of the boot disk in GB attached + // to this instance, up to a maximum of 64000 GB (64 TB). The minimum + // recommended value is 100 GB. If not specified, this defaults to 100. + BootDiskSizeGb int64 `json:"bootDiskSizeGb,omitempty,string"` + + // BootDiskType: Input only. The type of the boot disk attached to this + // instance, defaults to standard persistent disk (`PD_STANDARD`). + // + // Possible values: + // "DISK_TYPE_UNSPECIFIED" - Disk type not set. + // "PD_STANDARD" - Standard persistent disk type. + // "PD_SSD" - SSD persistent disk type. + // "PD_BALANCED" - Balanced persistent disk type. + BootDiskType string `json:"bootDiskType,omitempty"` + + // ContainerImage: Use a container image to start the notebook instance. + ContainerImage *ContainerImage `json:"containerImage,omitempty"` + + // CreateTime: Output only. Instance creation time. + CreateTime string `json:"createTime,omitempty"` + + // CustomGpuDriverPath: Specify a custom Cloud Storage path where the + // GPU driver is stored. If not specified, we'll automatically choose + // from official GPU drivers. + CustomGpuDriverPath string `json:"customGpuDriverPath,omitempty"` + + // DataDiskSizeGb: Input only. The size of the data disk in GB attached + // to this instance, up to a maximum of 64000 GB (64 TB). You can choose + // the size of the data disk based on how big your notebooks and data + // are. If not specified, this defaults to 100. + DataDiskSizeGb int64 `json:"dataDiskSizeGb,omitempty,string"` + + // DataDiskType: Input only. The type of the data disk attached to this + // instance, defaults to standard persistent disk (`PD_STANDARD`). + // + // Possible values: + // "DISK_TYPE_UNSPECIFIED" - Disk type not set. + // "PD_STANDARD" - Standard persistent disk type. + // "PD_SSD" - SSD persistent disk type. + // "PD_BALANCED" - Balanced persistent disk type. + DataDiskType string `json:"dataDiskType,omitempty"` + + // DiskEncryption: Input only. Disk encryption method used on the boot + // and data disks, defaults to GMEK. + // + // Possible values: + // "DISK_ENCRYPTION_UNSPECIFIED" - Disk encryption is not specified. + // "GMEK" - Use Google managed encryption keys to encrypt the boot + // disk. + // "CMEK" - Use customer managed encryption keys to encrypt the boot + // disk. + DiskEncryption string `json:"diskEncryption,omitempty"` + + // Disks: Output only. Attached disks to notebook instance. + Disks []*Disk `json:"disks,omitempty"` + + // InstallGpuDriver: Whether the end user authorizes Google Cloud to + // install GPU driver on this instance. If this field is empty or set to + // false, the GPU driver won't be installed. Only applicable to + // instances with GPUs. + InstallGpuDriver bool `json:"installGpuDriver,omitempty"` + + // InstanceOwners: Input only. The owner of this instance after + // creation. Format: `alias@example.com` Currently supports one owner + // only. If not specified, all of the service account users of your VM + // instance's service account can use the instance. + InstanceOwners []string `json:"instanceOwners,omitempty"` + + // KmsKey: Input only. The KMS key used to encrypt the disks, only + // applicable if disk_encryption is CMEK. Format: + // `projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cry + // ptoKeys/{key_id}` Learn more about [using your own encryption + // keys](/kms/docs/quickstart). + KmsKey string `json:"kmsKey,omitempty"` + + // Labels: Labels to apply to this instance. These can be later modified + // by the setLabels method. + Labels map[string]string `json:"labels,omitempty"` + + // MachineType: Required. The [Compute Engine machine + // type](/compute/docs/machine-types) of this instance. + MachineType string `json:"machineType,omitempty"` + + // Metadata: Custom metadata to apply to this instance. + Metadata map[string]string `json:"metadata,omitempty"` + + // Name: Output only. The name of this notebook instance. Format: + // `projects/{project_id}/locations/{location}/instances/{instance_id}` + Name string `json:"name,omitempty"` + + // Network: The name of the VPC that this instance is in. Format: + // `projects/{project_id}/global/networks/{network_id}` + Network string `json:"network,omitempty"` + + // NoProxyAccess: If true, the notebook instance will not register with + // the proxy. + NoProxyAccess bool `json:"noProxyAccess,omitempty"` + + // NoPublicIp: If true, no public IP will be assigned to this instance. + NoPublicIp bool `json:"noPublicIp,omitempty"` + + // NoRemoveDataDisk: Input only. If true, the data disk will not be auto + // deleted when deleting the instance. + NoRemoveDataDisk bool `json:"noRemoveDataDisk,omitempty"` + + // PostStartupScript: Path to a Bash script that automatically runs + // after a notebook instance fully boots up. The path must be a URL or + // Cloud Storage path (gs://path-to-file/file-name). + PostStartupScript string `json:"postStartupScript,omitempty"` + + // ProxyUri: Output only. The proxy endpoint that is used to access the + // Jupyter notebook. + ProxyUri string `json:"proxyUri,omitempty"` + + // ServiceAccount: The service account on this instance, giving access + // to other Google Cloud services. You can use any service account + // within the same project, but you must have the service account user + // permission to use the instance. If not specified, the [Compute Engine + // default service + // account](https://cloud.google.com/compute/docs/access/service-accounts + // #default_service_account) is used. + ServiceAccount string `json:"serviceAccount,omitempty"` + + // State: Output only. The state of this instance. + // + // Possible values: + // "STATE_UNSPECIFIED" - State is not specified. + // "STARTING" - The control logic is starting the instance. + // "PROVISIONING" - The control logic is installing required + // frameworks and registering the instance with notebook proxy + // "ACTIVE" - The instance is running. + // "STOPPING" - The control logic is stopping the instance. + // "STOPPED" - The instance is stopped. + // "DELETED" - The instance is deleted. + // "UPGRADING" - The instance is upgrading. + // "INITIALIZING" - The instance is being created. + // "REGISTERING" - The instance is getting registered. + State string `json:"state,omitempty"` + + // Subnet: The name of the subnet that this instance is in. Format: + // `projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}` + Subnet string `json:"subnet,omitempty"` + + // UpdateTime: Output only. Instance update time. + UpdateTime string `json:"updateTime,omitempty"` + + // UpgradeHistory: The upgrade history of this instance. + UpgradeHistory []*UpgradeHistoryEntry `json:"upgradeHistory,omitempty"` + + // VmImage: Use a Compute Engine VM image to start the notebook + // instance. + VmImage *VmImage `json:"vmImage,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AcceleratorConfig") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AcceleratorConfig") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *Instance) MarshalJSON() ([]byte, error) { + type NoMethod Instance + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// IsInstanceUpgradeableResponse: Response for checking if a notebook +// instance is upgradeable. +type IsInstanceUpgradeableResponse struct { + // UpgradeInfo: Additional information about upgrade. + UpgradeInfo string `json:"upgradeInfo,omitempty"` + + // UpgradeVersion: The version this instance will be upgraded to if + // calling the upgrade endpoint. This field will only be populated if + // field upgradeable is true. + UpgradeVersion string `json:"upgradeVersion,omitempty"` + + // Upgradeable: If an instance is upgradeable. + Upgradeable bool `json:"upgradeable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "UpgradeInfo") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "UpgradeInfo") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *IsInstanceUpgradeableResponse) MarshalJSON() ([]byte, error) { + type NoMethod IsInstanceUpgradeableResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListEnvironmentsResponse: Response for listing environments. +type ListEnvironmentsResponse struct { + // Environments: A list of returned environments. + Environments []*Environment `json:"environments,omitempty"` + + // NextPageToken: A page token that can be used to continue listing from + // the last result in the next list call. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Unreachable: Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Environments") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Environments") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListEnvironmentsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListEnvironmentsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListInstancesResponse: Response for listing notebook instances. +type ListInstancesResponse struct { + // Instances: A list of returned instances. + Instances []*Instance `json:"instances,omitempty"` + + // NextPageToken: Page token that can be used to continue listing from + // the last result in the next list call. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Unreachable: Locations that could not be reached. For example, + // ['us-west1-a', 'us-central1-b']. A ListInstancesResponse will only + // contain either instances or unreachables, + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Instances") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Instances") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListInstancesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListInstancesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListLocationsResponse: The response message for +// Locations.ListLocations. +type ListLocationsResponse struct { + // Locations: A list of locations that matches the specified filter in + // the request. + Locations []*Location `json:"locations,omitempty"` + + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Locations") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Locations") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListLocationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListOperationsResponse: The response message for +// Operations.ListOperations. +type ListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Operations: A list of operations that matches the specified filter in + // the request. + Operations []*Operation `json:"operations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListOperationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Location: A resource that represents Google Cloud Platform location. +type Location struct { + // DisplayName: The friendly name for this location, typically a nearby + // city name. For example, "Tokyo". + DisplayName string `json:"displayName,omitempty"` + + // Labels: Cross-service attributes for the location. For example + // {"cloud.googleapis.com/region": "us-east1"} + Labels map[string]string `json:"labels,omitempty"` + + // LocationId: The canonical id for this location. For example: + // "us-east1". + LocationId string `json:"locationId,omitempty"` + + // Metadata: Service-specific metadata. For example the available + // capacity at the given location. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: Resource name for the location, which may vary between + // implementations. For example: + // "projects/example-project/locations/us-east1" + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisplayName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Location) MarshalJSON() ([]byte, error) { + type NoMethod Location + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Operation: This resource represents a long-running operation that is +// the result of a network API call. +type Operation struct { + // Done: If the value is `false`, it means the operation is still in + // progress. If `true`, the operation is completed, and either `error` + // or `response` is available. + Done bool `json:"done,omitempty"` + + // Error: The error result of the operation in case of failure or + // cancellation. + Error *Status `json:"error,omitempty"` + + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as + // create time. Some services might not provide such metadata. Any + // method that returns a long-running operation should document the + // metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: The server-assigned name, which is only unique within the same + // service that originally returns it. If you use the default HTTP + // mapping, the `name` should be a resource name ending with + // `operations/{unique_id}`. + Name string `json:"name,omitempty"` + + // Response: The normal response of the operation in case of success. If + // the original method returns no data on success, such as `Delete`, the + // response is `google.protobuf.Empty`. If the original method is + // standard `Get`/`Create`/`Update`, the response should be the + // resource. For other methods, the response should have the type + // `XxxResponse`, where `Xxx` is the original method name. For example, + // if the original method name is `TakeSnapshot()`, the inferred + // response type is `TakeSnapshotResponse`. + Response googleapi.RawMessage `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Done") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Done") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Operation) MarshalJSON() ([]byte, error) { + type NoMethod Operation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// OperationMetadata: Represents the metadata of the long-running +// operation. +type OperationMetadata struct { + // ApiVersion: API version used to start the operation. + ApiVersion string `json:"apiVersion,omitempty"` + + // CreateTime: The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + + // EndTime: The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + + // Endpoint: API endpoint name of this operation. + Endpoint string `json:"endpoint,omitempty"` + + // RequestedCancellation: Identifies whether the user has requested + // cancellation of the operation. Operations that have successfully been + // cancelled have Operation.error value with a google.rpc.Status.code of + // 1, corresponding to `Code.CANCELLED`. + RequestedCancellation bool `json:"requestedCancellation,omitempty"` + + // StatusMessage: Human-readable status of the operation, if any. + StatusMessage string `json:"statusMessage,omitempty"` + + // Target: Server-defined resource path for the target of the operation. + Target string `json:"target,omitempty"` + + // Verb: Name of the verb executed by the operation. + Verb string `json:"verb,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ApiVersion") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ApiVersion") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *OperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod OperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Policy: An Identity and Access Management (IAM) policy, which +// specifies access controls for Google Cloud resources. A `Policy` is a +// collection of `bindings`. A `binding` binds one or more `members` to +// a single `role`. Members can be user accounts, service accounts, +// Google groups, and domains (such as G Suite). A `role` is a named +// list of permissions; each `role` can be an IAM predefined role or a +// user-created custom role. For some types of Google Cloud resources, a +// `binding` can also specify a `condition`, which is a logical +// expression that allows access to a resource only if the expression +// evaluates to `true`. A condition can add constraints based on +// attributes of the request, the resource, or both. To learn which +// resources support conditions in their IAM policies, see the [IAM +// documentation](https://cloud.google.com/iam/help/conditions/resource-p +// olicies). **JSON example:** { "bindings": [ { "role": +// "roles/resourcemanager.organizationAdmin", "members": [ +// "user:mike@example.com", "group:admins@example.com", +// "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { +// "role": "roles/resourcemanager.organizationViewer", "members": [ +// "user:eve@example.com" ], "condition": { "title": "expirable access", +// "description": "Does not grant access after Sep 2020", "expression": +// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], +// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - +// members: - user:mike@example.com - group:admins@example.com - +// domain:google.com - +// serviceAccount:my-project-id@appspot.gserviceaccount.com role: +// roles/resourcemanager.organizationAdmin - members: - +// user:eve@example.com role: roles/resourcemanager.organizationViewer +// condition: title: expirable access description: Does not grant access +// after Sep 2020 expression: request.time < +// timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: +// 3 For a description of IAM and its features, see the [IAM +// documentation](https://cloud.google.com/iam/docs/). +type Policy struct { + // Bindings: Associates a list of `members` to a `role`. Optionally, may + // specify a `condition` that determines how and when the `bindings` are + // applied. Each of the `bindings` must contain at least one member. + Bindings []*Binding `json:"bindings,omitempty"` + + // Etag: `etag` is used for optimistic concurrency control as a way to + // help prevent simultaneous updates of a policy from overwriting each + // other. It is strongly suggested that systems make use of the `etag` + // in the read-modify-write cycle to perform policy updates in order to + // avoid race conditions: An `etag` is returned in the response to + // `getIamPolicy`, and systems are expected to put that etag in the + // request to `setIamPolicy` to ensure that their change will be applied + // to the same version of the policy. **Important:** If you use IAM + // Conditions, you must include the `etag` field whenever you call + // `setIamPolicy`. If you omit this field, then IAM allows you to + // overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. + Etag string `json:"etag,omitempty"` + + // Version: Specifies the format of the policy. Valid values are `0`, + // `1`, and `3`. Requests that specify an invalid value are rejected. + // Any operation that affects conditional role bindings must specify + // version `3`. This requirement applies to the following operations: * + // Getting a policy that includes a conditional role binding * Adding a + // conditional role binding to a policy * Changing a conditional role + // binding in a policy * Removing any role binding, with or without a + // condition, from a policy that includes conditions **Important:** If + // you use IAM Conditions, you must include the `etag` field whenever + // you call `setIamPolicy`. If you omit this field, then IAM allows you + // to overwrite a version `3` policy with a version `1` policy, and all + // of the conditions in the version `3` policy are lost. If a policy + // does not include any conditions, operations on that policy may + // specify any valid version or leave the field unset. To learn which + // resources support conditions in their IAM policies, see the [IAM + // documentation](https://cloud.google.com/iam/help/conditions/resource-p + // olicies). + Version int64 `json:"version,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Bindings") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Bindings") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Policy) MarshalJSON() ([]byte, error) { + type NoMethod Policy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RegisterInstanceRequest: Request for registering a notebook instance. +type RegisterInstanceRequest struct { + // InstanceId: Required. User defined unique ID of this instance. The + // `instance_id` must be 1 to 63 characters long and contain only + // lowercase letters, numeric characters, and dashes. The first + // character must be a lowercase letter and the last character cannot be + // a dash. + InstanceId string `json:"instanceId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "InstanceId") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "InstanceId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RegisterInstanceRequest) MarshalJSON() ([]byte, error) { + type NoMethod RegisterInstanceRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ReportInstanceInfoRequest: Request for notebook instances to report +// information to Notebooks API. +type ReportInstanceInfoRequest struct { + // Metadata: The metadata reported to Notebooks API. This will be merged + // to the instance metadata store + Metadata map[string]string `json:"metadata,omitempty"` + + // VmId: Required. The VM hardware token for authenticating the VM. + // https://cloud.google.com/compute/docs/instances/verifying-instance-identity + VmId string `json:"vmId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Metadata") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Metadata") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ReportInstanceInfoRequest) MarshalJSON() ([]byte, error) { + type NoMethod ReportInstanceInfoRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ResetInstanceRequest: Request for reseting a notebook instance +type ResetInstanceRequest struct { +} + +// SetIamPolicyRequest: Request message for `SetIamPolicy` method. +type SetIamPolicyRequest struct { + // Policy: REQUIRED: The complete policy to be applied to the + // `resource`. The size of the policy is limited to a few 10s of KB. An + // empty policy is a valid policy but certain Cloud Platform services + // (such as Projects) might reject them. + Policy *Policy `json:"policy,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Policy") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Policy") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { + type NoMethod SetIamPolicyRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SetInstanceAcceleratorRequest: Request for setting instance +// accelerator. +type SetInstanceAcceleratorRequest struct { + // CoreCount: Required. Count of cores of this accelerator. Note that + // not all combinations of `type` and `core_count` are valid. Check + // [GPUs on Compute + // Engine](https://cloud.google.com/compute/docs/gpus/#gpus-list) to + // find a valid combination. TPUs are not supported. + CoreCount int64 `json:"coreCount,omitempty,string"` + + // Type: Required. Type of this accelerator. + // + // Possible values: + // "ACCELERATOR_TYPE_UNSPECIFIED" - Accelerator type is not specified. + // "NVIDIA_TESLA_K80" - Accelerator type is Nvidia Tesla K80. + // "NVIDIA_TESLA_P100" - Accelerator type is Nvidia Tesla P100. + // "NVIDIA_TESLA_V100" - Accelerator type is Nvidia Tesla V100. + // "NVIDIA_TESLA_P4" - Accelerator type is Nvidia Tesla P4. + // "NVIDIA_TESLA_T4" - Accelerator type is Nvidia Tesla T4. + // "NVIDIA_TESLA_A100" - Accelerator type is Nvidia Tesla A100. + // "NVIDIA_TESLA_T4_VWS" - Accelerator type is NVIDIA Tesla T4 Virtual + // Workstations. + // "NVIDIA_TESLA_P100_VWS" - Accelerator type is NVIDIA Tesla P100 + // Virtual Workstations. + // "NVIDIA_TESLA_P4_VWS" - Accelerator type is NVIDIA Tesla P4 Virtual + // Workstations. + // "TPU_V2" - (Coming soon) Accelerator type is TPU V2. + // "TPU_V3" - (Coming soon) Accelerator type is TPU V3. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CoreCount") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CoreCount") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SetInstanceAcceleratorRequest) MarshalJSON() ([]byte, error) { + type NoMethod SetInstanceAcceleratorRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SetInstanceLabelsRequest: Request for setting instance labels. +type SetInstanceLabelsRequest struct { + // Labels: Labels to apply to this instance. These can be later modified + // by the setLabels method + Labels map[string]string `json:"labels,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Labels") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Labels") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SetInstanceLabelsRequest) MarshalJSON() ([]byte, error) { + type NoMethod SetInstanceLabelsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SetInstanceMachineTypeRequest: Request for setting instance machine +// type. +type SetInstanceMachineTypeRequest struct { + // MachineType: Required. The [Compute Engine machine + // type](https://cloud.google.com/compute/docs/machine-types). + MachineType string `json:"machineType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MachineType") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MachineType") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SetInstanceMachineTypeRequest) MarshalJSON() ([]byte, error) { + type NoMethod SetInstanceMachineTypeRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// StartInstanceRequest: Request for starting a notebook instance +type StartInstanceRequest struct { +} + +// Status: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs +// and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each +// `Status` message contains three pieces of data: error code, error +// message, and error details. You can find out more about this error +// model and how to work with it in the [API Design +// Guide](https://cloud.google.com/apis/design/errors). +type Status struct { + // Code: The status code, which should be an enum value of + // google.rpc.Code. + Code int64 `json:"code,omitempty"` + + // Details: A list of messages that carry the error details. There is a + // common set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Status) MarshalJSON() ([]byte, error) { + type NoMethod Status + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// StopInstanceRequest: Request for stopping a notebook instance +type StopInstanceRequest struct { +} + +// TestIamPermissionsRequest: Request message for `TestIamPermissions` +// method. +type TestIamPermissionsRequest struct { + // Permissions: The set of permissions to check for the `resource`. + // Permissions with wildcards (such as '*' or 'storage.*') are not + // allowed. For more information see [IAM + // Overview](https://cloud.google.com/iam/docs/overview#permissions). + Permissions []string `json:"permissions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Permissions") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Permissions") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { + type NoMethod TestIamPermissionsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TestIamPermissionsResponse: Response message for `TestIamPermissions` +// method. +type TestIamPermissionsResponse struct { + // Permissions: A subset of `TestPermissionsRequest.permissions` that + // the caller is allowed. + Permissions []string `json:"permissions,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Permissions") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Permissions") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod TestIamPermissionsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type UpgradeHistoryEntry struct { + // ContainerImage: The container image before this instance upgrade. + ContainerImage string `json:"containerImage,omitempty"` + + // CreateTime: The time that this instance upgrade history entry is + // created. + CreateTime string `json:"createTime,omitempty"` + + // Framework: The framework of this notebook instance. + Framework string `json:"framework,omitempty"` + + // Snapshot: The snapshot of the boot disk of this notebook instance + // before upgrade. + Snapshot string `json:"snapshot,omitempty"` + + // State: The state of this instance upgrade history entry. + // + // Possible values: + // "STATE_UNSPECIFIED" - State is not specified. + // "STARTED" - The instance upgrade is started. + // "SUCCEEDED" - The instance upgrade is succeeded. + // "FAILED" - The instance upgrade is failed. + State string `json:"state,omitempty"` + + // Version: The version of the notebook instance before this upgrade. + Version string `json:"version,omitempty"` + + // VmImage: The VM image before this instance upgrade. + VmImage string `json:"vmImage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ContainerImage") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ContainerImage") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *UpgradeHistoryEntry) MarshalJSON() ([]byte, error) { + type NoMethod UpgradeHistoryEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// UpgradeInstanceInternalRequest: Request for upgrading a notebook +// instance from within the VM +type UpgradeInstanceInternalRequest struct { + // VmId: Required. The VM hardware token for authenticating the VM. + // https://cloud.google.com/compute/docs/instances/verifying-instance-identity + VmId string `json:"vmId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "VmId") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "VmId") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *UpgradeInstanceInternalRequest) MarshalJSON() ([]byte, error) { + type NoMethod UpgradeInstanceInternalRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// UpgradeInstanceRequest: Request for upgrading a notebook instance +type UpgradeInstanceRequest struct { +} + +// VmImage: Definition of a custom Compute Engine virtual machine image +// for starting a notebook instance with the environment installed +// directly on the VM. +type VmImage struct { + // ImageFamily: Use this VM image family to find the image; the newest + // image in this family will be used. + ImageFamily string `json:"imageFamily,omitempty"` + + // ImageName: Use VM image name to find the image. + ImageName string `json:"imageName,omitempty"` + + // Project: Required. The name of the Google Cloud project that this VM + // image belongs to. Format: `projects/{project_id}` + Project string `json:"project,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ImageFamily") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ImageFamily") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *VmImage) MarshalJSON() ([]byte, error) { + type NoMethod VmImage + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "notebooks.projects.locations.get": + +type ProjectsLocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information about a location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.get" call. +// Exactly one of *Location or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Location.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Location{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets information about a location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}", + // "httpMethod": "GET", + // "id": "notebooks.projects.locations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Resource name for the location.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Location" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "notebooks.projects.locations.list": + +type ProjectsLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists information about the supported locations for this +// service. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.list" call. +// Exactly one of *ListLocationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListLocationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists information about the supported locations for this service.", + // "flatPath": "v1/projects/{projectsId}/locations", + // "httpMethod": "GET", + // "id": "notebooks.projects.locations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The resource that owns the locations collection, if applicable.", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}/locations", + // "response": { + // "$ref": "ListLocationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "notebooks.projects.locations.environments.create": + +type ProjectsLocationsEnvironmentsCreateCall struct { + s *Service + parent string + environment *Environment + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new Environment. +func (r *ProjectsLocationsEnvironmentsService) Create(parent string, environment *Environment) *ProjectsLocationsEnvironmentsCreateCall { + c := &ProjectsLocationsEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.environment = environment + return c +} + +// EnvironmentId sets the optional parameter "environmentId": Required. +// User-defined unique ID of this environment. The `environment_id` must +// be 1 to 63 characters long and contain only lowercase letters, +// numeric characters, and dashes. The first character must be a +// lowercase letter and the last character cannot be a dash. +func (c *ProjectsLocationsEnvironmentsCreateCall) EnvironmentId(environmentId string) *ProjectsLocationsEnvironmentsCreateCall { + c.urlParams_.Set("environmentId", environmentId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsEnvironmentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEnvironmentsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsEnvironmentsCreateCall) Context(ctx context.Context) *ProjectsLocationsEnvironmentsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsEnvironmentsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.environment) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/environments") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.environments.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new Environment.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/environments", + // "httpMethod": "POST", + // "id": "notebooks.projects.locations.environments.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "environmentId": { + // "description": "Required. User-defined unique ID of this environment. The `environment_id` must be 1 to 63 characters long and contain only lowercase letters, numeric characters, and dashes. The first character must be a lowercase letter and the last character cannot be a dash.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Format: `projects/{project_id}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/environments", + // "request": { + // "$ref": "Environment" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "notebooks.projects.locations.environments.delete": + +type ProjectsLocationsEnvironmentsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single Environment. +func (r *ProjectsLocationsEnvironmentsService) Delete(name string) *ProjectsLocationsEnvironmentsDeleteCall { + c := &ProjectsLocationsEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEnvironmentsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsEnvironmentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEnvironmentsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsEnvironmentsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.environments.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a single Environment.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/environments/{environmentsId}", + // "httpMethod": "DELETE", + // "id": "notebooks.projects.locations.environments.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Format: `projects/{project_id}/locations/{location}/environments/{environment_id}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/environments/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "notebooks.projects.locations.environments.get": + +type ProjectsLocationsEnvironmentsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single Environment. +func (r *ProjectsLocationsEnvironmentsService) Get(name string) *ProjectsLocationsEnvironmentsGetCall { + c := &ProjectsLocationsEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsEnvironmentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEnvironmentsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsEnvironmentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEnvironmentsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsEnvironmentsGetCall) Context(ctx context.Context) *ProjectsLocationsEnvironmentsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsEnvironmentsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.environments.get" call. +// Exactly one of *Environment or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Environment.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*Environment, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Environment{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets details of a single Environment.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/environments/{environmentsId}", + // "httpMethod": "GET", + // "id": "notebooks.projects.locations.environments.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Format: `projects/{project_id}/locations/{location}/environments/{environment_id}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/environments/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Environment" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "notebooks.projects.locations.environments.list": + +type ProjectsLocationsEnvironmentsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists environments in a project. +func (r *ProjectsLocationsEnvironmentsService) List(parent string) *ProjectsLocationsEnvironmentsListCall { + c := &ProjectsLocationsEnvironmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum return size +// of the list call. +func (c *ProjectsLocationsEnvironmentsListCall) PageSize(pageSize int64) *ProjectsLocationsEnvironmentsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A previous +// returned page token that can be used to continue listing from the +// last result. +func (c *ProjectsLocationsEnvironmentsListCall) PageToken(pageToken string) *ProjectsLocationsEnvironmentsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsEnvironmentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEnvironmentsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsEnvironmentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEnvironmentsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsEnvironmentsListCall) Context(ctx context.Context) *ProjectsLocationsEnvironmentsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsEnvironmentsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEnvironmentsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/environments") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.environments.list" call. +// Exactly one of *ListEnvironmentsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListEnvironmentsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsEnvironmentsListCall) Do(opts ...googleapi.CallOption) (*ListEnvironmentsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListEnvironmentsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists environments in a project.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/environments", + // "httpMethod": "GET", + // "id": "notebooks.projects.locations.environments.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Maximum return size of the list call.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A previous returned page token that can be used to continue listing from the last result.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Format: `projects/{project_id}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/environments", + // "response": { + // "$ref": "ListEnvironmentsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsEnvironmentsListCall) Pages(ctx context.Context, f func(*ListEnvironmentsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "notebooks.projects.locations.instances.create": + +type ProjectsLocationsInstancesCreateCall struct { + s *Service + parent string + instance *Instance + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new Instance in a given project and location. +func (r *ProjectsLocationsInstancesService) Create(parent string, instance *Instance) *ProjectsLocationsInstancesCreateCall { + c := &ProjectsLocationsInstancesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.instance = instance + return c +} + +// InstanceId sets the optional parameter "instanceId": Required. +// User-defined unique ID of this instance. +func (c *ProjectsLocationsInstancesCreateCall) InstanceId(instanceId string) *ProjectsLocationsInstancesCreateCall { + c.urlParams_.Set("instanceId", instanceId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesCreateCall) Context(ctx context.Context) *ProjectsLocationsInstancesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.instance) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/instances") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.instances.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new Instance in a given project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances", + // "httpMethod": "POST", + // "id": "notebooks.projects.locations.instances.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "instanceId": { + // "description": "Required. User-defined unique ID of this instance.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Format: `parent=projects/{project_id}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/instances", + // "request": { + // "$ref": "Instance" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "notebooks.projects.locations.instances.delete": + +type ProjectsLocationsInstancesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single Instance. +func (r *ProjectsLocationsInstancesService) Delete(name string) *ProjectsLocationsInstancesDeleteCall { + c := &ProjectsLocationsInstancesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesDeleteCall) Context(ctx context.Context) *ProjectsLocationsInstancesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.instances.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a single Instance.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}", + // "httpMethod": "DELETE", + // "id": "notebooks.projects.locations.instances.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "notebooks.projects.locations.instances.get": + +type ProjectsLocationsInstancesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single Instance. +func (r *ProjectsLocationsInstancesService) Get(name string) *ProjectsLocationsInstancesGetCall { + c := &ProjectsLocationsInstancesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsInstancesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesGetCall) Context(ctx context.Context) *ProjectsLocationsInstancesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.instances.get" call. +// Exactly one of *Instance or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Instance.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesGetCall) Do(opts ...googleapi.CallOption) (*Instance, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Instance{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets details of a single Instance.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}", + // "httpMethod": "GET", + // "id": "notebooks.projects.locations.instances.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Instance" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "notebooks.projects.locations.instances.getIamPolicy": + +type ProjectsLocationsInstancesGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. +func (r *ProjectsLocationsInstancesService) GetIamPolicy(resource string) *ProjectsLocationsInstancesGetIamPolicyCall { + c := &ProjectsLocationsInstancesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The policy format version to be +// returned. Valid values are 0, 1, and 3. Requests specifying an +// invalid value will be rejected. Requests for policies with any +// conditional bindings must specify version 3. Policies without any +// conditional bindings may specify any valid value or leave the field +// unset. To learn which resources support conditions in their IAM +// policies, see the [IAM +// documentation](https://cloud.google.com/iam/help/conditions/resource-p +// olicies). +func (c *ProjectsLocationsInstancesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsInstancesGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsInstancesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsInstancesGetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.instances.getIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsInstancesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:getIamPolicy", + // "httpMethod": "GET", + // "id": "notebooks.projects.locations.instances.getIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "options.requestedPolicyVersion": { + // "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:getIamPolicy", + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "notebooks.projects.locations.instances.isUpgradeable": + +type ProjectsLocationsInstancesIsUpgradeableCall struct { + s *Service + notebookInstance string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// IsUpgradeable: Check if a notebook instance is upgradable. +func (r *ProjectsLocationsInstancesService) IsUpgradeable(notebookInstance string) *ProjectsLocationsInstancesIsUpgradeableCall { + c := &ProjectsLocationsInstancesIsUpgradeableCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.notebookInstance = notebookInstance + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesIsUpgradeableCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesIsUpgradeableCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsInstancesIsUpgradeableCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesIsUpgradeableCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesIsUpgradeableCall) Context(ctx context.Context) *ProjectsLocationsInstancesIsUpgradeableCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesIsUpgradeableCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesIsUpgradeableCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+notebookInstance}:isUpgradeable") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "notebookInstance": c.notebookInstance, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.instances.isUpgradeable" call. +// Exactly one of *IsInstanceUpgradeableResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *IsInstanceUpgradeableResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesIsUpgradeableCall) Do(opts ...googleapi.CallOption) (*IsInstanceUpgradeableResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &IsInstanceUpgradeableResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Check if a notebook instance is upgradable.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:isUpgradeable", + // "httpMethod": "GET", + // "id": "notebooks.projects.locations.instances.isUpgradeable", + // "parameterOrder": [ + // "notebookInstance" + // ], + // "parameters": { + // "notebookInstance": { + // "description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+notebookInstance}:isUpgradeable", + // "response": { + // "$ref": "IsInstanceUpgradeableResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "notebooks.projects.locations.instances.list": + +type ProjectsLocationsInstancesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists instances in a given project and location. +func (r *ProjectsLocationsInstancesService) List(parent string) *ProjectsLocationsInstancesListCall { + c := &ProjectsLocationsInstancesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum return size +// of the list call. +func (c *ProjectsLocationsInstancesListCall) PageSize(pageSize int64) *ProjectsLocationsInstancesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A previous +// returned page token that can be used to continue listing from the +// last result. +func (c *ProjectsLocationsInstancesListCall) PageToken(pageToken string) *ProjectsLocationsInstancesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsInstancesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesListCall) Context(ctx context.Context) *ProjectsLocationsInstancesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/instances") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.instances.list" call. +// Exactly one of *ListInstancesResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListInstancesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesListCall) Do(opts ...googleapi.CallOption) (*ListInstancesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListInstancesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists instances in a given project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances", + // "httpMethod": "GET", + // "id": "notebooks.projects.locations.instances.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Maximum return size of the list call.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A previous returned page token that can be used to continue listing from the last result.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Format: `parent=projects/{project_id}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/instances", + // "response": { + // "$ref": "ListInstancesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsInstancesListCall) Pages(ctx context.Context, f func(*ListInstancesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "notebooks.projects.locations.instances.register": + +type ProjectsLocationsInstancesRegisterCall struct { + s *Service + parent string + registerinstancerequest *RegisterInstanceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Register: Registers an existing legacy notebook instance to the +// Notebooks API server. Legacy instances are instances created with the +// legacy Compute Engine calls. They are not manageable by the Notebooks +// API out of the box. This call makes these instances manageable by the +// Notebooks API. +func (r *ProjectsLocationsInstancesService) Register(parent string, registerinstancerequest *RegisterInstanceRequest) *ProjectsLocationsInstancesRegisterCall { + c := &ProjectsLocationsInstancesRegisterCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.registerinstancerequest = registerinstancerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesRegisterCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesRegisterCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesRegisterCall) Context(ctx context.Context) *ProjectsLocationsInstancesRegisterCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesRegisterCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesRegisterCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.registerinstancerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/instances:register") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.instances.register" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesRegisterCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Registers an existing legacy notebook instance to the Notebooks API server. Legacy instances are instances created with the legacy Compute Engine calls. They are not manageable by the Notebooks API out of the box. This call makes these instances manageable by the Notebooks API.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances:register", + // "httpMethod": "POST", + // "id": "notebooks.projects.locations.instances.register", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Format: `parent=projects/{project_id}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/instances:register", + // "request": { + // "$ref": "RegisterInstanceRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "notebooks.projects.locations.instances.report": + +type ProjectsLocationsInstancesReportCall struct { + s *Service + name string + reportinstanceinforequest *ReportInstanceInfoRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Report: Allows notebook instances to report their latest instance +// information to the Notebooks API server. The server will merge the +// reported information to the instance metadata store. Do not use this +// method directly. +func (r *ProjectsLocationsInstancesService) Report(name string, reportinstanceinforequest *ReportInstanceInfoRequest) *ProjectsLocationsInstancesReportCall { + c := &ProjectsLocationsInstancesReportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.reportinstanceinforequest = reportinstanceinforequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesReportCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesReportCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesReportCall) Context(ctx context.Context) *ProjectsLocationsInstancesReportCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesReportCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesReportCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.reportinstanceinforequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:report") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.instances.report" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesReportCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Allows notebook instances to report their latest instance information to the Notebooks API server. The server will merge the reported information to the instance metadata store. Do not use this method directly.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:report", + // "httpMethod": "POST", + // "id": "notebooks.projects.locations.instances.report", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:report", + // "request": { + // "$ref": "ReportInstanceInfoRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "notebooks.projects.locations.instances.reset": + +type ProjectsLocationsInstancesResetCall struct { + s *Service + name string + resetinstancerequest *ResetInstanceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Reset: Resets a notebook instance. +func (r *ProjectsLocationsInstancesService) Reset(name string, resetinstancerequest *ResetInstanceRequest) *ProjectsLocationsInstancesResetCall { + c := &ProjectsLocationsInstancesResetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.resetinstancerequest = resetinstancerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesResetCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesResetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesResetCall) Context(ctx context.Context) *ProjectsLocationsInstancesResetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesResetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesResetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.resetinstancerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:reset") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.instances.reset" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesResetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Resets a notebook instance.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:reset", + // "httpMethod": "POST", + // "id": "notebooks.projects.locations.instances.reset", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:reset", + // "request": { + // "$ref": "ResetInstanceRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "notebooks.projects.locations.instances.setAccelerator": + +type ProjectsLocationsInstancesSetAcceleratorCall struct { + s *Service + name string + setinstanceacceleratorrequest *SetInstanceAcceleratorRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetAccelerator: Updates the guest accelerators of a single Instance. +func (r *ProjectsLocationsInstancesService) SetAccelerator(name string, setinstanceacceleratorrequest *SetInstanceAcceleratorRequest) *ProjectsLocationsInstancesSetAcceleratorCall { + c := &ProjectsLocationsInstancesSetAcceleratorCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.setinstanceacceleratorrequest = setinstanceacceleratorrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesSetAcceleratorCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesSetAcceleratorCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesSetAcceleratorCall) Context(ctx context.Context) *ProjectsLocationsInstancesSetAcceleratorCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesSetAcceleratorCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesSetAcceleratorCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.setinstanceacceleratorrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:setAccelerator") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.instances.setAccelerator" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesSetAcceleratorCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates the guest accelerators of a single Instance.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:setAccelerator", + // "httpMethod": "PATCH", + // "id": "notebooks.projects.locations.instances.setAccelerator", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:setAccelerator", + // "request": { + // "$ref": "SetInstanceAcceleratorRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "notebooks.projects.locations.instances.setIamPolicy": + +type ProjectsLocationsInstancesSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +func (r *ProjectsLocationsInstancesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsInstancesSetIamPolicyCall { + c := &ProjectsLocationsInstancesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsInstancesSetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.instances.setIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsInstancesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "notebooks.projects.locations.instances.setIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "notebooks.projects.locations.instances.setLabels": + +type ProjectsLocationsInstancesSetLabelsCall struct { + s *Service + name string + setinstancelabelsrequest *SetInstanceLabelsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetLabels: Replaces all the labels of an Instance. +func (r *ProjectsLocationsInstancesService) SetLabels(name string, setinstancelabelsrequest *SetInstanceLabelsRequest) *ProjectsLocationsInstancesSetLabelsCall { + c := &ProjectsLocationsInstancesSetLabelsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.setinstancelabelsrequest = setinstancelabelsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesSetLabelsCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesSetLabelsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesSetLabelsCall) Context(ctx context.Context) *ProjectsLocationsInstancesSetLabelsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesSetLabelsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesSetLabelsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.setinstancelabelsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:setLabels") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.instances.setLabels" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Replaces all the labels of an Instance.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:setLabels", + // "httpMethod": "PATCH", + // "id": "notebooks.projects.locations.instances.setLabels", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:setLabels", + // "request": { + // "$ref": "SetInstanceLabelsRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "notebooks.projects.locations.instances.setMachineType": + +type ProjectsLocationsInstancesSetMachineTypeCall struct { + s *Service + name string + setinstancemachinetyperequest *SetInstanceMachineTypeRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetMachineType: Updates the machine type of a single Instance. +func (r *ProjectsLocationsInstancesService) SetMachineType(name string, setinstancemachinetyperequest *SetInstanceMachineTypeRequest) *ProjectsLocationsInstancesSetMachineTypeCall { + c := &ProjectsLocationsInstancesSetMachineTypeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.setinstancemachinetyperequest = setinstancemachinetyperequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesSetMachineTypeCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesSetMachineTypeCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesSetMachineTypeCall) Context(ctx context.Context) *ProjectsLocationsInstancesSetMachineTypeCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesSetMachineTypeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesSetMachineTypeCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.setinstancemachinetyperequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:setMachineType") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.instances.setMachineType" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesSetMachineTypeCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates the machine type of a single Instance.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:setMachineType", + // "httpMethod": "PATCH", + // "id": "notebooks.projects.locations.instances.setMachineType", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:setMachineType", + // "request": { + // "$ref": "SetInstanceMachineTypeRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "notebooks.projects.locations.instances.start": + +type ProjectsLocationsInstancesStartCall struct { + s *Service + name string + startinstancerequest *StartInstanceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Start: Starts a notebook instance. +func (r *ProjectsLocationsInstancesService) Start(name string, startinstancerequest *StartInstanceRequest) *ProjectsLocationsInstancesStartCall { + c := &ProjectsLocationsInstancesStartCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.startinstancerequest = startinstancerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesStartCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesStartCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesStartCall) Context(ctx context.Context) *ProjectsLocationsInstancesStartCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesStartCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesStartCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.startinstancerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:start") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.instances.start" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesStartCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Starts a notebook instance.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:start", + // "httpMethod": "POST", + // "id": "notebooks.projects.locations.instances.start", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:start", + // "request": { + // "$ref": "StartInstanceRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "notebooks.projects.locations.instances.stop": + +type ProjectsLocationsInstancesStopCall struct { + s *Service + name string + stopinstancerequest *StopInstanceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Stop: Stops a notebook instance. +func (r *ProjectsLocationsInstancesService) Stop(name string, stopinstancerequest *StopInstanceRequest) *ProjectsLocationsInstancesStopCall { + c := &ProjectsLocationsInstancesStopCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.stopinstancerequest = stopinstancerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesStopCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesStopCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesStopCall) Context(ctx context.Context) *ProjectsLocationsInstancesStopCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesStopCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesStopCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.stopinstancerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:stop") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.instances.stop" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesStopCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Stops a notebook instance.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:stop", + // "httpMethod": "POST", + // "id": "notebooks.projects.locations.instances.stop", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:stop", + // "request": { + // "$ref": "StopInstanceRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "notebooks.projects.locations.instances.testIamPermissions": + +type ProjectsLocationsInstancesTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. +func (r *ProjectsLocationsInstancesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsInstancesTestIamPermissionsCall { + c := &ProjectsLocationsInstancesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsInstancesTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.instances.testIamPermissions" call. +// Exactly one of *TestIamPermissionsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &TestIamPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "notebooks.projects.locations.instances.testIamPermissions", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:testIamPermissions", + // "request": { + // "$ref": "TestIamPermissionsRequest" + // }, + // "response": { + // "$ref": "TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "notebooks.projects.locations.instances.upgrade": + +type ProjectsLocationsInstancesUpgradeCall struct { + s *Service + name string + upgradeinstancerequest *UpgradeInstanceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Upgrade: Upgrades a notebook instance to the latest version. +func (r *ProjectsLocationsInstancesService) Upgrade(name string, upgradeinstancerequest *UpgradeInstanceRequest) *ProjectsLocationsInstancesUpgradeCall { + c := &ProjectsLocationsInstancesUpgradeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.upgradeinstancerequest = upgradeinstancerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesUpgradeCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesUpgradeCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesUpgradeCall) Context(ctx context.Context) *ProjectsLocationsInstancesUpgradeCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesUpgradeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesUpgradeCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.upgradeinstancerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:upgrade") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.instances.upgrade" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesUpgradeCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Upgrades a notebook instance to the latest version.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:upgrade", + // "httpMethod": "POST", + // "id": "notebooks.projects.locations.instances.upgrade", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:upgrade", + // "request": { + // "$ref": "UpgradeInstanceRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "notebooks.projects.locations.instances.upgradeInternal": + +type ProjectsLocationsInstancesUpgradeInternalCall struct { + s *Service + name string + upgradeinstanceinternalrequest *UpgradeInstanceInternalRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpgradeInternal: Allows notebook instances to call this endpoint to +// upgrade themselves. Do not use this method directly. +func (r *ProjectsLocationsInstancesService) UpgradeInternal(name string, upgradeinstanceinternalrequest *UpgradeInstanceInternalRequest) *ProjectsLocationsInstancesUpgradeInternalCall { + c := &ProjectsLocationsInstancesUpgradeInternalCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.upgradeinstanceinternalrequest = upgradeinstanceinternalrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesUpgradeInternalCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesUpgradeInternalCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesUpgradeInternalCall) Context(ctx context.Context) *ProjectsLocationsInstancesUpgradeInternalCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesUpgradeInternalCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesUpgradeInternalCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.upgradeinstanceinternalrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:upgradeInternal") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.instances.upgradeInternal" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesUpgradeInternalCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Allows notebook instances to call this endpoint to upgrade themselves. Do not use this method directly.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:upgradeInternal", + // "httpMethod": "POST", + // "id": "notebooks.projects.locations.instances.upgradeInternal", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:upgradeInternal", + // "request": { + // "$ref": "UpgradeInstanceInternalRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "notebooks.projects.locations.operations.cancel": + +type ProjectsLocationsOperationsCancelCall struct { + s *Service + name string + canceloperationrequest *CancelOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. +func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall { + c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.canceloperationrequest = canceloperationrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.operations.cancel" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "notebooks.projects.locations.operations.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be cancelled.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:cancel", + // "request": { + // "$ref": "CancelOperationRequest" + // }, + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "notebooks.projects.locations.operations.delete": + +type ProjectsLocationsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a long-running operation. This method indicates that +// the client is no longer interested in the operation result. It does +// not cancel the operation. If the server doesn't support this method, +// it returns `google.rpc.Code.UNIMPLEMENTED`. +func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall { + c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.operations.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "notebooks.projects.locations.operations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be deleted.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "notebooks.projects.locations.operations.get": + +type ProjectsLocationsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { + c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.operations.get" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "notebooks.projects.locations.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "notebooks.projects.locations.operations.list": + +type ProjectsLocationsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to +// override the binding to use different resource name schemes, such as +// `users/*/operations`. To override the binding, API services can add a +// binding such as "/v1/{name=users/*}/operations" to their service +// configuration. For backwards compatibility, the default name includes +// the operations collection id, however overriding users must ensure +// the name binding is the parent resource, without the operations +// collection id. +func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { + c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.operations.list" call. +// Exactly one of *ListOperationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", + // "httpMethod": "GET", + // "id": "notebooks.projects.locations.operations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}/operations", + // "response": { + // "$ref": "ListOperationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} diff --git a/oauth2/v2/oauth2-gen.go b/oauth2/v2/oauth2-gen.go index 759c4fdb011..beb1c7e743c 100644 --- a/oauth2/v2/oauth2-gen.go +++ b/oauth2/v2/oauth2-gen.go @@ -353,7 +353,7 @@ func (c *TokeninfoCall) Header() http.Header { func (c *TokeninfoCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -482,7 +482,7 @@ func (c *UserinfoGetCall) Header() http.Header { func (c *UserinfoGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -609,7 +609,7 @@ func (c *UserinfoV2MeGetCall) Header() http.Header { func (c *UserinfoV2MeGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/option/internaloption/internaloption.go b/option/internaloption/internaloption.go index b4d78a830ae..6ee4501c048 100644 --- a/option/internaloption/internaloption.go +++ b/option/internaloption/internaloption.go @@ -50,3 +50,18 @@ type skipDialSettingsValidation struct{} func (s skipDialSettingsValidation) Apply(settings *internal.DialSettings) { settings.SkipValidation = true } + +// EnableDirectPath returns a ClientOption that overrides the default +// attempt to use DirectPath. +// +// It should only be used internally by generated clients. +// This is an EXPERIMENTAL API and may be changed or removed in the future. +func EnableDirectPath(dp bool) option.ClientOption { + return enableDirectPath(dp) +} + +type enableDirectPath bool + +func (e enableDirectPath) Apply(o *internal.DialSettings) { + o.EnableDirectPath = bool(e) +} diff --git a/osconfig/v1/osconfig-api.json b/osconfig/v1/osconfig-api.json index 2f5d8a5a140..58c3c80f893 100644 --- a/osconfig/v1/osconfig-api.json +++ b/osconfig/v1/osconfig-api.json @@ -406,7 +406,7 @@ } } }, - "revision": "20200930", + "revision": "20201112", "rootUrl": "https://osconfig.googleapis.com/", "schemas": { "AptSettings": { @@ -587,6 +587,292 @@ "properties": {}, "type": "object" }, + "Inventory": { + "description": "The inventory details of a VM.", + "id": "Inventory", + "properties": { + "items": { + "additionalProperties": { + "$ref": "InventoryItem" + }, + "description": "Inventory items related to the VM keyed by an opaque unique identifier for each inventory item. The identifier is unique to each distinct and addressable inventory item and will change, when there is a new package version.", + "type": "object" + }, + "osInfo": { + "$ref": "InventoryOsInfo", + "description": "Base level operating system information for the VM." + } + }, + "type": "object" + }, + "InventoryItem": { + "description": "A single piece of inventory on a VM.", + "id": "InventoryItem", + "properties": { + "availablePackage": { + "$ref": "InventorySoftwarePackage", + "description": "Software package available to be installed on the VM instance." + }, + "createTime": { + "description": "When this inventory item was first detected.", + "format": "google-datetime", + "type": "string" + }, + "id": { + "description": "Identifier for this item, unique across items for this VM.", + "type": "string" + }, + "installedPackage": { + "$ref": "InventorySoftwarePackage", + "description": "Software package present on the VM instance." + }, + "originType": { + "description": "The origin of this inventory item.", + "enum": [ + "ORIGIN_TYPE_UNSPECIFIED", + "INVENTORY_REPORT" + ], + "enumDescriptions": [ + "Invalid. An origin type must be specified.", + "This inventory item was discovered as the result of the agent reporting inventory via the reporting API." + ], + "type": "string" + }, + "type": { + "description": "The specific type of inventory, correlating to its specific details.", + "enum": [ + "TYPE_UNSPECIFIED", + "INSTALLED_PACKAGE", + "AVAILABLE_PACKAGE" + ], + "enumDescriptions": [ + "Invalid. An type must be specified.", + "This represents a package that is installed on the VM.", + "This represents an update that is available for a package." + ], + "type": "string" + }, + "updateTime": { + "description": "When this inventory item was last modified.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "InventoryOsInfo": { + "description": "Operating system information for the VM.", + "id": "InventoryOsInfo", + "properties": { + "architecture": { + "description": "The system architecture of the operating system.", + "type": "string" + }, + "hostname": { + "description": "The VM hostname.", + "type": "string" + }, + "kernelRelease": { + "description": "The kernel release of the operating system.", + "type": "string" + }, + "kernelVersion": { + "description": "The kernel version of the operating system.", + "type": "string" + }, + "longName": { + "description": "The operating system long name. For example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019 Datacenter'.", + "type": "string" + }, + "osconfigAgentVersion": { + "description": "The current version of the OS Config agent running on the VM.", + "type": "string" + }, + "shortName": { + "description": "The operating system short name. For example, 'windows' or 'debian'.", + "type": "string" + }, + "version": { + "description": "The version of the operating system.", + "type": "string" + } + }, + "type": "object" + }, + "InventorySoftwarePackage": { + "description": "Software package information of the operating system.", + "id": "InventorySoftwarePackage", + "properties": { + "aptPackage": { + "$ref": "InventoryVersionedPackage", + "description": "Details of an APT package. For details about the apt package manager, see https://wiki.debian.org/Apt." + }, + "cosPackage": { + "$ref": "InventoryVersionedPackage", + "description": "Details of a COS package." + }, + "googetPackage": { + "$ref": "InventoryVersionedPackage", + "description": "Details of a Googet package. For details about the googet package manager, see https://github.com/google/googet." + }, + "qfePackage": { + "$ref": "InventoryWindowsQuickFixEngineeringPackage", + "description": "Details of a Windows Quick Fix engineering package. See https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering for info in Windows Quick Fix Engineering." + }, + "wuaPackage": { + "$ref": "InventoryWindowsUpdatePackage", + "description": "Details of a Windows Update package. See https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for information about Windows Update." + }, + "yumPackage": { + "$ref": "InventoryVersionedPackage", + "description": "Yum package info. For details about the yum package manager, see https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum." + }, + "zypperPackage": { + "$ref": "InventoryVersionedPackage", + "description": "Details of a Zypper package. For details about the Zypper package manager, see https://en.opensuse.org/SDB:Zypper_manual." + }, + "zypperPatch": { + "$ref": "InventoryZypperPatch", + "description": "Details of a Zypper patch. For details about the Zypper package manager, see https://en.opensuse.org/SDB:Zypper_manual." + } + }, + "type": "object" + }, + "InventoryVersionedPackage": { + "description": "Information related to the a standard versioned package. This includes package info for APT, Yum, Zypper, and Googet package managers.", + "id": "InventoryVersionedPackage", + "properties": { + "architecture": { + "description": "The system architecture this package is intended for.", + "type": "string" + }, + "packageName": { + "description": "The name of the package.", + "type": "string" + }, + "version": { + "description": "The version of the package.", + "type": "string" + } + }, + "type": "object" + }, + "InventoryWindowsQuickFixEngineeringPackage": { + "description": "Information related to a Quick Fix Engineering package. Fields are taken from Windows QuickFixEngineering Interface and match the source names: https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering", + "id": "InventoryWindowsQuickFixEngineeringPackage", + "properties": { + "caption": { + "description": "A short textual description of the QFE update.", + "type": "string" + }, + "description": { + "description": "A textual description of the QFE update.", + "type": "string" + }, + "hotFixId": { + "description": "Unique identifier associated with a particular QFE update.", + "type": "string" + }, + "installTime": { + "description": "Date that the QFE update was installed. Mapped from installed_on field.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "InventoryWindowsUpdatePackage": { + "description": "Details related to a Windows Update package. Field data and names are taken from Windows Update API IUpdate Interface: https://docs.microsoft.com/en-us/windows/win32/api/_wua/ Descriptive fields like title, and description are localized based on the locale of the VM being updated.", + "id": "InventoryWindowsUpdatePackage", + "properties": { + "categories": { + "description": "The categories that are associated with this update package.", + "items": { + "$ref": "InventoryWindowsUpdatePackageWindowsUpdateCategory" + }, + "type": "array" + }, + "description": { + "description": "The localized description of the update package.", + "type": "string" + }, + "kbArticleIds": { + "description": "A collection of Microsoft Knowledge Base article IDs that are associated with the update package.", + "items": { + "type": "string" + }, + "type": "array" + }, + "lastDeploymentChangeTime": { + "description": "The last published date of the update, in (UTC) date and time.", + "format": "google-datetime", + "type": "string" + }, + "moreInfoUrls": { + "description": "A collection of URLs that provide more information about the update package.", + "items": { + "type": "string" + }, + "type": "array" + }, + "revisionNumber": { + "description": "The revision number of this update package.", + "format": "int32", + "type": "integer" + }, + "supportUrl": { + "description": "A hyperlink to the language-specific support information for the update.", + "type": "string" + }, + "title": { + "description": "The localized title of the update package.", + "type": "string" + }, + "updateId": { + "description": "Gets the identifier of an update package. Stays the same across revisions.", + "type": "string" + } + }, + "type": "object" + }, + "InventoryWindowsUpdatePackageWindowsUpdateCategory": { + "description": "Categories specified by the Windows Update.", + "id": "InventoryWindowsUpdatePackageWindowsUpdateCategory", + "properties": { + "id": { + "description": "The identifier of the windows update category.", + "type": "string" + }, + "name": { + "description": "The name of the windows update category.", + "type": "string" + } + }, + "type": "object" + }, + "InventoryZypperPatch": { + "description": "Details related to a Zypper Patch.", + "id": "InventoryZypperPatch", + "properties": { + "category": { + "description": "The category of the patch.", + "type": "string" + }, + "patchName": { + "description": "The name of the patch.", + "type": "string" + }, + "severity": { + "description": "The severity specified for this patch", + "type": "string" + }, + "summary": { + "description": "Any summary information provided about this patch.", + "type": "string" + } + }, + "type": "object" + }, "ListPatchDeploymentsResponse": { "description": "A response message for listing patch deployments.", "id": "ListPatchDeploymentsResponse", diff --git a/osconfig/v1/osconfig-gen.go b/osconfig/v1/osconfig-gen.go index 7ceba28ce12..15bcd99fa09 100644 --- a/osconfig/v1/osconfig-gen.go +++ b/osconfig/v1/osconfig-gen.go @@ -453,6 +453,424 @@ func (s *GcsObject) MarshalJSON() ([]byte, error) { type GooSettings struct { } +// Inventory: The inventory details of a VM. +type Inventory struct { + // Items: Inventory items related to the VM keyed by an opaque unique + // identifier for each inventory item. The identifier is unique to each + // distinct and addressable inventory item and will change, when there + // is a new package version. + Items map[string]InventoryItem `json:"items,omitempty"` + + // OsInfo: Base level operating system information for the VM. + OsInfo *InventoryOsInfo `json:"osInfo,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Items") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Items") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Inventory) MarshalJSON() ([]byte, error) { + type NoMethod Inventory + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// InventoryItem: A single piece of inventory on a VM. +type InventoryItem struct { + // AvailablePackage: Software package available to be installed on the + // VM instance. + AvailablePackage *InventorySoftwarePackage `json:"availablePackage,omitempty"` + + // CreateTime: When this inventory item was first detected. + CreateTime string `json:"createTime,omitempty"` + + // Id: Identifier for this item, unique across items for this VM. + Id string `json:"id,omitempty"` + + // InstalledPackage: Software package present on the VM instance. + InstalledPackage *InventorySoftwarePackage `json:"installedPackage,omitempty"` + + // OriginType: The origin of this inventory item. + // + // Possible values: + // "ORIGIN_TYPE_UNSPECIFIED" - Invalid. An origin type must be + // specified. + // "INVENTORY_REPORT" - This inventory item was discovered as the + // result of the agent reporting inventory via the reporting API. + OriginType string `json:"originType,omitempty"` + + // Type: The specific type of inventory, correlating to its specific + // details. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Invalid. An type must be specified. + // "INSTALLED_PACKAGE" - This represents a package that is installed + // on the VM. + // "AVAILABLE_PACKAGE" - This represents an update that is available + // for a package. + Type string `json:"type,omitempty"` + + // UpdateTime: When this inventory item was last modified. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AvailablePackage") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AvailablePackage") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *InventoryItem) MarshalJSON() ([]byte, error) { + type NoMethod InventoryItem + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// InventoryOsInfo: Operating system information for the VM. +type InventoryOsInfo struct { + // Architecture: The system architecture of the operating system. + Architecture string `json:"architecture,omitempty"` + + // Hostname: The VM hostname. + Hostname string `json:"hostname,omitempty"` + + // KernelRelease: The kernel release of the operating system. + KernelRelease string `json:"kernelRelease,omitempty"` + + // KernelVersion: The kernel version of the operating system. + KernelVersion string `json:"kernelVersion,omitempty"` + + // LongName: The operating system long name. For example 'Debian + // GNU/Linux 9' or 'Microsoft Window Server 2019 Datacenter'. + LongName string `json:"longName,omitempty"` + + // OsconfigAgentVersion: The current version of the OS Config agent + // running on the VM. + OsconfigAgentVersion string `json:"osconfigAgentVersion,omitempty"` + + // ShortName: The operating system short name. For example, 'windows' or + // 'debian'. + ShortName string `json:"shortName,omitempty"` + + // Version: The version of the operating system. + Version string `json:"version,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Architecture") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Architecture") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *InventoryOsInfo) MarshalJSON() ([]byte, error) { + type NoMethod InventoryOsInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// InventorySoftwarePackage: Software package information of the +// operating system. +type InventorySoftwarePackage struct { + // AptPackage: Details of an APT package. For details about the apt + // package manager, see https://wiki.debian.org/Apt. + AptPackage *InventoryVersionedPackage `json:"aptPackage,omitempty"` + + // CosPackage: Details of a COS package. + CosPackage *InventoryVersionedPackage `json:"cosPackage,omitempty"` + + // GoogetPackage: Details of a Googet package. For details about the + // googet package manager, see https://github.com/google/googet. + GoogetPackage *InventoryVersionedPackage `json:"googetPackage,omitempty"` + + // QfePackage: Details of a Windows Quick Fix engineering package. See + // https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering for info in Windows Quick Fix + // Engineering. + QfePackage *InventoryWindowsQuickFixEngineeringPackage `json:"qfePackage,omitempty"` + + // WuaPackage: Details of a Windows Update package. See + // https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for + // information about Windows Update. + WuaPackage *InventoryWindowsUpdatePackage `json:"wuaPackage,omitempty"` + + // YumPackage: Yum package info. For details about the yum package + // manager, see + // https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum. + YumPackage *InventoryVersionedPackage `json:"yumPackage,omitempty"` + + // ZypperPackage: Details of a Zypper package. For details about the + // Zypper package manager, see + // https://en.opensuse.org/SDB:Zypper_manual. + ZypperPackage *InventoryVersionedPackage `json:"zypperPackage,omitempty"` + + // ZypperPatch: Details of a Zypper patch. For details about the Zypper + // package manager, see https://en.opensuse.org/SDB:Zypper_manual. + ZypperPatch *InventoryZypperPatch `json:"zypperPatch,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AptPackage") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AptPackage") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *InventorySoftwarePackage) MarshalJSON() ([]byte, error) { + type NoMethod InventorySoftwarePackage + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// InventoryVersionedPackage: Information related to the a standard +// versioned package. This includes package info for APT, Yum, Zypper, +// and Googet package managers. +type InventoryVersionedPackage struct { + // Architecture: The system architecture this package is intended for. + Architecture string `json:"architecture,omitempty"` + + // PackageName: The name of the package. + PackageName string `json:"packageName,omitempty"` + + // Version: The version of the package. + Version string `json:"version,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Architecture") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Architecture") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *InventoryVersionedPackage) MarshalJSON() ([]byte, error) { + type NoMethod InventoryVersionedPackage + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// InventoryWindowsQuickFixEngineeringPackage: Information related to a +// Quick Fix Engineering package. Fields are taken from Windows +// QuickFixEngineering Interface and match the source names: +// https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering +type InventoryWindowsQuickFixEngineeringPackage struct { + // Caption: A short textual description of the QFE update. + Caption string `json:"caption,omitempty"` + + // Description: A textual description of the QFE update. + Description string `json:"description,omitempty"` + + // HotFixId: Unique identifier associated with a particular QFE update. + HotFixId string `json:"hotFixId,omitempty"` + + // InstallTime: Date that the QFE update was installed. Mapped from + // installed_on field. + InstallTime string `json:"installTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Caption") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Caption") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *InventoryWindowsQuickFixEngineeringPackage) MarshalJSON() ([]byte, error) { + type NoMethod InventoryWindowsQuickFixEngineeringPackage + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// InventoryWindowsUpdatePackage: Details related to a Windows Update +// package. Field data and names are taken from Windows Update API +// IUpdate Interface: +// https://docs.microsoft.com/en-us/windows/win32/api/_wua/ Descriptive +// fields like title, and description are localized based on the locale +// of the VM being updated. +type InventoryWindowsUpdatePackage struct { + // Categories: The categories that are associated with this update + // package. + Categories []*InventoryWindowsUpdatePackageWindowsUpdateCategory `json:"categories,omitempty"` + + // Description: The localized description of the update package. + Description string `json:"description,omitempty"` + + // KbArticleIds: A collection of Microsoft Knowledge Base article IDs + // that are associated with the update package. + KbArticleIds []string `json:"kbArticleIds,omitempty"` + + // LastDeploymentChangeTime: The last published date of the update, in + // (UTC) date and time. + LastDeploymentChangeTime string `json:"lastDeploymentChangeTime,omitempty"` + + // MoreInfoUrls: A collection of URLs that provide more information + // about the update package. + MoreInfoUrls []string `json:"moreInfoUrls,omitempty"` + + // RevisionNumber: The revision number of this update package. + RevisionNumber int64 `json:"revisionNumber,omitempty"` + + // SupportUrl: A hyperlink to the language-specific support information + // for the update. + SupportUrl string `json:"supportUrl,omitempty"` + + // Title: The localized title of the update package. + Title string `json:"title,omitempty"` + + // UpdateId: Gets the identifier of an update package. Stays the same + // across revisions. + UpdateId string `json:"updateId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Categories") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Categories") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *InventoryWindowsUpdatePackage) MarshalJSON() ([]byte, error) { + type NoMethod InventoryWindowsUpdatePackage + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// InventoryWindowsUpdatePackageWindowsUpdateCategory: Categories +// specified by the Windows Update. +type InventoryWindowsUpdatePackageWindowsUpdateCategory struct { + // Id: The identifier of the windows update category. + Id string `json:"id,omitempty"` + + // Name: The name of the windows update category. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Id") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Id") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *InventoryWindowsUpdatePackageWindowsUpdateCategory) MarshalJSON() ([]byte, error) { + type NoMethod InventoryWindowsUpdatePackageWindowsUpdateCategory + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// InventoryZypperPatch: Details related to a Zypper Patch. +type InventoryZypperPatch struct { + // Category: The category of the patch. + Category string `json:"category,omitempty"` + + // PatchName: The name of the patch. + PatchName string `json:"patchName,omitempty"` + + // Severity: The severity specified for this patch + Severity string `json:"severity,omitempty"` + + // Summary: Any summary information provided about this patch. + Summary string `json:"summary,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Category") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Category") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *InventoryZypperPatch) MarshalJSON() ([]byte, error) { + type NoMethod InventoryZypperPatch + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListPatchDeploymentsResponse: A response message for listing patch // deployments. type ListPatchDeploymentsResponse struct { @@ -1643,7 +2061,7 @@ func (c *ProjectsPatchDeploymentsCreateCall) Header() http.Header { func (c *ProjectsPatchDeploymentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1786,7 +2204,7 @@ func (c *ProjectsPatchDeploymentsDeleteCall) Header() http.Header { func (c *ProjectsPatchDeploymentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1927,7 +2345,7 @@ func (c *ProjectsPatchDeploymentsGetCall) Header() http.Header { func (c *ProjectsPatchDeploymentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2086,7 +2504,7 @@ func (c *ProjectsPatchDeploymentsListCall) Header() http.Header { func (c *ProjectsPatchDeploymentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2254,7 +2672,7 @@ func (c *ProjectsPatchJobsCancelCall) Header() http.Header { func (c *ProjectsPatchJobsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2394,7 +2812,7 @@ func (c *ProjectsPatchJobsExecuteCall) Header() http.Header { func (c *ProjectsPatchJobsExecuteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2544,7 +2962,7 @@ func (c *ProjectsPatchJobsGetCall) Header() http.Header { func (c *ProjectsPatchJobsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2712,7 +3130,7 @@ func (c *ProjectsPatchJobsListCall) Header() http.Header { func (c *ProjectsPatchJobsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2916,7 +3334,7 @@ func (c *ProjectsPatchJobsInstanceDetailsListCall) Header() http.Header { func (c *ProjectsPatchJobsInstanceDetailsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/osconfig/v1beta/osconfig-api.json b/osconfig/v1beta/osconfig-api.json index 8111d9e72fe..8eed5db72da 100644 --- a/osconfig/v1beta/osconfig-api.json +++ b/osconfig/v1beta/osconfig-api.json @@ -599,7 +599,7 @@ } } }, - "revision": "20200930", + "revision": "20201112", "rootUrl": "https://osconfig.googleapis.com/", "schemas": { "AptRepository": { @@ -1039,6 +1039,292 @@ }, "type": "object" }, + "Inventory": { + "description": "The inventory details of a VM.", + "id": "Inventory", + "properties": { + "items": { + "additionalProperties": { + "$ref": "InventoryItem" + }, + "description": "Inventory items related to the VM keyed by an opaque unique identifier for each inventory item. The identifier is unique to each distinct and addressable inventory item and will change, when there is a new package version.", + "type": "object" + }, + "osInfo": { + "$ref": "InventoryOsInfo", + "description": "Base level operating system information for the VM." + } + }, + "type": "object" + }, + "InventoryItem": { + "description": "A single piece of inventory on a VM.", + "id": "InventoryItem", + "properties": { + "availablePackage": { + "$ref": "InventorySoftwarePackage", + "description": "Software package available to be installed on the VM instance." + }, + "createTime": { + "description": "When this inventory item was first detected.", + "format": "google-datetime", + "type": "string" + }, + "id": { + "description": "Identifier for this item, unique across items for this VM.", + "type": "string" + }, + "installedPackage": { + "$ref": "InventorySoftwarePackage", + "description": "Software package present on the VM instance." + }, + "originType": { + "description": "The origin of this inventory item.", + "enum": [ + "ORIGIN_TYPE_UNSPECIFIED", + "INVENTORY_REPORT" + ], + "enumDescriptions": [ + "Invalid. An origin type must be specified.", + "This inventory item was discovered as the result of the agent reporting inventory via the reporting API." + ], + "type": "string" + }, + "type": { + "description": "The specific type of inventory, correlating to its specific details.", + "enum": [ + "TYPE_UNSPECIFIED", + "INSTALLED_PACKAGE", + "AVAILABLE_PACKAGE" + ], + "enumDescriptions": [ + "Invalid. An type must be specified.", + "This represents a package that is installed on the VM.", + "This represents an update that is available for a package." + ], + "type": "string" + }, + "updateTime": { + "description": "When this inventory item was last modified.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "InventoryOsInfo": { + "description": "Operating system information for the VM.", + "id": "InventoryOsInfo", + "properties": { + "architecture": { + "description": "The system architecture of the operating system.", + "type": "string" + }, + "hostname": { + "description": "The VM hostname.", + "type": "string" + }, + "kernelRelease": { + "description": "The kernel release of the operating system.", + "type": "string" + }, + "kernelVersion": { + "description": "The kernel version of the operating system.", + "type": "string" + }, + "longName": { + "description": "The operating system long name. For example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019 Datacenter'.", + "type": "string" + }, + "osconfigAgentVersion": { + "description": "The current version of the OS Config agent running on the VM.", + "type": "string" + }, + "shortName": { + "description": "The operating system short name. For example, 'windows' or 'debian'.", + "type": "string" + }, + "version": { + "description": "The version of the operating system.", + "type": "string" + } + }, + "type": "object" + }, + "InventorySoftwarePackage": { + "description": "Software package information of the operating system.", + "id": "InventorySoftwarePackage", + "properties": { + "aptPackage": { + "$ref": "InventoryVersionedPackage", + "description": "Details of an APT package. For details about the apt package manager, see https://wiki.debian.org/Apt." + }, + "cosPackage": { + "$ref": "InventoryVersionedPackage", + "description": "Details of a COS package." + }, + "googetPackage": { + "$ref": "InventoryVersionedPackage", + "description": "Details of a Googet package. For details about the googet package manager, see https://github.com/google/googet." + }, + "qfePackage": { + "$ref": "InventoryWindowsQuickFixEngineeringPackage", + "description": "Details of a Windows Quick Fix engineering package. See https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering for info in Windows Quick Fix Engineering." + }, + "wuaPackage": { + "$ref": "InventoryWindowsUpdatePackage", + "description": "Details of a Windows Update package. See https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for information about Windows Update." + }, + "yumPackage": { + "$ref": "InventoryVersionedPackage", + "description": "Yum package info. For details about the yum package manager, see https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum." + }, + "zypperPackage": { + "$ref": "InventoryVersionedPackage", + "description": "Details of a Zypper package. For details about the Zypper package manager, see https://en.opensuse.org/SDB:Zypper_manual." + }, + "zypperPatch": { + "$ref": "InventoryZypperPatch", + "description": "Details of a Zypper patch. For details about the Zypper package manager, see https://en.opensuse.org/SDB:Zypper_manual." + } + }, + "type": "object" + }, + "InventoryVersionedPackage": { + "description": "Information related to the a standard versioned package. This includes package info for APT, Yum, Zypper, and Googet package managers.", + "id": "InventoryVersionedPackage", + "properties": { + "architecture": { + "description": "The system architecture this package is intended for.", + "type": "string" + }, + "packageName": { + "description": "The name of the package.", + "type": "string" + }, + "version": { + "description": "The version of the package.", + "type": "string" + } + }, + "type": "object" + }, + "InventoryWindowsQuickFixEngineeringPackage": { + "description": "Information related to a Quick Fix Engineering package. Fields are taken from Windows QuickFixEngineering Interface and match the source names: https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering", + "id": "InventoryWindowsQuickFixEngineeringPackage", + "properties": { + "caption": { + "description": "A short textual description of the QFE update.", + "type": "string" + }, + "description": { + "description": "A textual description of the QFE update.", + "type": "string" + }, + "hotFixId": { + "description": "Unique identifier associated with a particular QFE update.", + "type": "string" + }, + "installTime": { + "description": "Date that the QFE update was installed. Mapped from installed_on field.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "InventoryWindowsUpdatePackage": { + "description": "Details related to a Windows Update package. Field data and names are taken from Windows Update API IUpdate Interface: https://docs.microsoft.com/en-us/windows/win32/api/_wua/ Descriptive fields like title, and description are localized based on the locale of the VM being updated.", + "id": "InventoryWindowsUpdatePackage", + "properties": { + "categories": { + "description": "The categories that are associated with this update package.", + "items": { + "$ref": "InventoryWindowsUpdatePackageWindowsUpdateCategory" + }, + "type": "array" + }, + "description": { + "description": "The localized description of the update package.", + "type": "string" + }, + "kbArticleIds": { + "description": "A collection of Microsoft Knowledge Base article IDs that are associated with the update package.", + "items": { + "type": "string" + }, + "type": "array" + }, + "lastDeploymentChangeTime": { + "description": "The last published date of the update, in (UTC) date and time.", + "format": "google-datetime", + "type": "string" + }, + "moreInfoUrls": { + "description": "A collection of URLs that provide more information about the update package.", + "items": { + "type": "string" + }, + "type": "array" + }, + "revisionNumber": { + "description": "The revision number of this update package.", + "format": "int32", + "type": "integer" + }, + "supportUrl": { + "description": "A hyperlink to the language-specific support information for the update.", + "type": "string" + }, + "title": { + "description": "The localized title of the update package.", + "type": "string" + }, + "updateId": { + "description": "Gets the identifier of an update package. Stays the same across revisions.", + "type": "string" + } + }, + "type": "object" + }, + "InventoryWindowsUpdatePackageWindowsUpdateCategory": { + "description": "Categories specified by the Windows Update.", + "id": "InventoryWindowsUpdatePackageWindowsUpdateCategory", + "properties": { + "id": { + "description": "The identifier of the windows update category.", + "type": "string" + }, + "name": { + "description": "The name of the windows update category.", + "type": "string" + } + }, + "type": "object" + }, + "InventoryZypperPatch": { + "description": "Details related to a Zypper Patch.", + "id": "InventoryZypperPatch", + "properties": { + "category": { + "description": "The category of the patch.", + "type": "string" + }, + "patchName": { + "description": "The name of the patch.", + "type": "string" + }, + "severity": { + "description": "The severity specified for this patch", + "type": "string" + }, + "summary": { + "description": "Any summary information provided about this patch.", + "type": "string" + } + }, + "type": "object" + }, "ListGuestPoliciesResponse": { "description": "A response message for listing guest policies.", "id": "ListGuestPoliciesResponse", diff --git a/osconfig/v1beta/osconfig-gen.go b/osconfig/v1beta/osconfig-gen.go index d66b332081f..22ccb12ebe6 100644 --- a/osconfig/v1beta/osconfig-gen.go +++ b/osconfig/v1beta/osconfig-gen.go @@ -920,6 +920,424 @@ func (s *GuestPolicy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Inventory: The inventory details of a VM. +type Inventory struct { + // Items: Inventory items related to the VM keyed by an opaque unique + // identifier for each inventory item. The identifier is unique to each + // distinct and addressable inventory item and will change, when there + // is a new package version. + Items map[string]InventoryItem `json:"items,omitempty"` + + // OsInfo: Base level operating system information for the VM. + OsInfo *InventoryOsInfo `json:"osInfo,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Items") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Items") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Inventory) MarshalJSON() ([]byte, error) { + type NoMethod Inventory + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// InventoryItem: A single piece of inventory on a VM. +type InventoryItem struct { + // AvailablePackage: Software package available to be installed on the + // VM instance. + AvailablePackage *InventorySoftwarePackage `json:"availablePackage,omitempty"` + + // CreateTime: When this inventory item was first detected. + CreateTime string `json:"createTime,omitempty"` + + // Id: Identifier for this item, unique across items for this VM. + Id string `json:"id,omitempty"` + + // InstalledPackage: Software package present on the VM instance. + InstalledPackage *InventorySoftwarePackage `json:"installedPackage,omitempty"` + + // OriginType: The origin of this inventory item. + // + // Possible values: + // "ORIGIN_TYPE_UNSPECIFIED" - Invalid. An origin type must be + // specified. + // "INVENTORY_REPORT" - This inventory item was discovered as the + // result of the agent reporting inventory via the reporting API. + OriginType string `json:"originType,omitempty"` + + // Type: The specific type of inventory, correlating to its specific + // details. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Invalid. An type must be specified. + // "INSTALLED_PACKAGE" - This represents a package that is installed + // on the VM. + // "AVAILABLE_PACKAGE" - This represents an update that is available + // for a package. + Type string `json:"type,omitempty"` + + // UpdateTime: When this inventory item was last modified. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AvailablePackage") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AvailablePackage") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *InventoryItem) MarshalJSON() ([]byte, error) { + type NoMethod InventoryItem + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// InventoryOsInfo: Operating system information for the VM. +type InventoryOsInfo struct { + // Architecture: The system architecture of the operating system. + Architecture string `json:"architecture,omitempty"` + + // Hostname: The VM hostname. + Hostname string `json:"hostname,omitempty"` + + // KernelRelease: The kernel release of the operating system. + KernelRelease string `json:"kernelRelease,omitempty"` + + // KernelVersion: The kernel version of the operating system. + KernelVersion string `json:"kernelVersion,omitempty"` + + // LongName: The operating system long name. For example 'Debian + // GNU/Linux 9' or 'Microsoft Window Server 2019 Datacenter'. + LongName string `json:"longName,omitempty"` + + // OsconfigAgentVersion: The current version of the OS Config agent + // running on the VM. + OsconfigAgentVersion string `json:"osconfigAgentVersion,omitempty"` + + // ShortName: The operating system short name. For example, 'windows' or + // 'debian'. + ShortName string `json:"shortName,omitempty"` + + // Version: The version of the operating system. + Version string `json:"version,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Architecture") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Architecture") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *InventoryOsInfo) MarshalJSON() ([]byte, error) { + type NoMethod InventoryOsInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// InventorySoftwarePackage: Software package information of the +// operating system. +type InventorySoftwarePackage struct { + // AptPackage: Details of an APT package. For details about the apt + // package manager, see https://wiki.debian.org/Apt. + AptPackage *InventoryVersionedPackage `json:"aptPackage,omitempty"` + + // CosPackage: Details of a COS package. + CosPackage *InventoryVersionedPackage `json:"cosPackage,omitempty"` + + // GoogetPackage: Details of a Googet package. For details about the + // googet package manager, see https://github.com/google/googet. + GoogetPackage *InventoryVersionedPackage `json:"googetPackage,omitempty"` + + // QfePackage: Details of a Windows Quick Fix engineering package. See + // https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering for info in Windows Quick Fix + // Engineering. + QfePackage *InventoryWindowsQuickFixEngineeringPackage `json:"qfePackage,omitempty"` + + // WuaPackage: Details of a Windows Update package. See + // https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for + // information about Windows Update. + WuaPackage *InventoryWindowsUpdatePackage `json:"wuaPackage,omitempty"` + + // YumPackage: Yum package info. For details about the yum package + // manager, see + // https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum. + YumPackage *InventoryVersionedPackage `json:"yumPackage,omitempty"` + + // ZypperPackage: Details of a Zypper package. For details about the + // Zypper package manager, see + // https://en.opensuse.org/SDB:Zypper_manual. + ZypperPackage *InventoryVersionedPackage `json:"zypperPackage,omitempty"` + + // ZypperPatch: Details of a Zypper patch. For details about the Zypper + // package manager, see https://en.opensuse.org/SDB:Zypper_manual. + ZypperPatch *InventoryZypperPatch `json:"zypperPatch,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AptPackage") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AptPackage") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *InventorySoftwarePackage) MarshalJSON() ([]byte, error) { + type NoMethod InventorySoftwarePackage + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// InventoryVersionedPackage: Information related to the a standard +// versioned package. This includes package info for APT, Yum, Zypper, +// and Googet package managers. +type InventoryVersionedPackage struct { + // Architecture: The system architecture this package is intended for. + Architecture string `json:"architecture,omitempty"` + + // PackageName: The name of the package. + PackageName string `json:"packageName,omitempty"` + + // Version: The version of the package. + Version string `json:"version,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Architecture") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Architecture") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *InventoryVersionedPackage) MarshalJSON() ([]byte, error) { + type NoMethod InventoryVersionedPackage + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// InventoryWindowsQuickFixEngineeringPackage: Information related to a +// Quick Fix Engineering package. Fields are taken from Windows +// QuickFixEngineering Interface and match the source names: +// https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering +type InventoryWindowsQuickFixEngineeringPackage struct { + // Caption: A short textual description of the QFE update. + Caption string `json:"caption,omitempty"` + + // Description: A textual description of the QFE update. + Description string `json:"description,omitempty"` + + // HotFixId: Unique identifier associated with a particular QFE update. + HotFixId string `json:"hotFixId,omitempty"` + + // InstallTime: Date that the QFE update was installed. Mapped from + // installed_on field. + InstallTime string `json:"installTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Caption") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Caption") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *InventoryWindowsQuickFixEngineeringPackage) MarshalJSON() ([]byte, error) { + type NoMethod InventoryWindowsQuickFixEngineeringPackage + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// InventoryWindowsUpdatePackage: Details related to a Windows Update +// package. Field data and names are taken from Windows Update API +// IUpdate Interface: +// https://docs.microsoft.com/en-us/windows/win32/api/_wua/ Descriptive +// fields like title, and description are localized based on the locale +// of the VM being updated. +type InventoryWindowsUpdatePackage struct { + // Categories: The categories that are associated with this update + // package. + Categories []*InventoryWindowsUpdatePackageWindowsUpdateCategory `json:"categories,omitempty"` + + // Description: The localized description of the update package. + Description string `json:"description,omitempty"` + + // KbArticleIds: A collection of Microsoft Knowledge Base article IDs + // that are associated with the update package. + KbArticleIds []string `json:"kbArticleIds,omitempty"` + + // LastDeploymentChangeTime: The last published date of the update, in + // (UTC) date and time. + LastDeploymentChangeTime string `json:"lastDeploymentChangeTime,omitempty"` + + // MoreInfoUrls: A collection of URLs that provide more information + // about the update package. + MoreInfoUrls []string `json:"moreInfoUrls,omitempty"` + + // RevisionNumber: The revision number of this update package. + RevisionNumber int64 `json:"revisionNumber,omitempty"` + + // SupportUrl: A hyperlink to the language-specific support information + // for the update. + SupportUrl string `json:"supportUrl,omitempty"` + + // Title: The localized title of the update package. + Title string `json:"title,omitempty"` + + // UpdateId: Gets the identifier of an update package. Stays the same + // across revisions. + UpdateId string `json:"updateId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Categories") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Categories") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *InventoryWindowsUpdatePackage) MarshalJSON() ([]byte, error) { + type NoMethod InventoryWindowsUpdatePackage + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// InventoryWindowsUpdatePackageWindowsUpdateCategory: Categories +// specified by the Windows Update. +type InventoryWindowsUpdatePackageWindowsUpdateCategory struct { + // Id: The identifier of the windows update category. + Id string `json:"id,omitempty"` + + // Name: The name of the windows update category. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Id") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Id") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *InventoryWindowsUpdatePackageWindowsUpdateCategory) MarshalJSON() ([]byte, error) { + type NoMethod InventoryWindowsUpdatePackageWindowsUpdateCategory + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// InventoryZypperPatch: Details related to a Zypper Patch. +type InventoryZypperPatch struct { + // Category: The category of the patch. + Category string `json:"category,omitempty"` + + // PatchName: The name of the patch. + PatchName string `json:"patchName,omitempty"` + + // Severity: The severity specified for this patch + Severity string `json:"severity,omitempty"` + + // Summary: Any summary information provided about this patch. + Summary string `json:"summary,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Category") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Category") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *InventoryZypperPatch) MarshalJSON() ([]byte, error) { + type NoMethod InventoryZypperPatch + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListGuestPoliciesResponse: A response message for listing guest // policies. type ListGuestPoliciesResponse struct { @@ -2914,7 +3332,7 @@ func (c *ProjectsGuestPoliciesCreateCall) Header() http.Header { func (c *ProjectsGuestPoliciesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3057,7 +3475,7 @@ func (c *ProjectsGuestPoliciesDeleteCall) Header() http.Header { func (c *ProjectsGuestPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3198,7 +3616,7 @@ func (c *ProjectsGuestPoliciesGetCall) Header() http.Header { func (c *ProjectsGuestPoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3357,7 +3775,7 @@ func (c *ProjectsGuestPoliciesListCall) Header() http.Header { func (c *ProjectsGuestPoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3531,7 +3949,7 @@ func (c *ProjectsGuestPoliciesPatchCall) Header() http.Header { func (c *ProjectsGuestPoliciesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3688,7 +4106,7 @@ func (c *ProjectsPatchDeploymentsCreateCall) Header() http.Header { func (c *ProjectsPatchDeploymentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3831,7 +4249,7 @@ func (c *ProjectsPatchDeploymentsDeleteCall) Header() http.Header { func (c *ProjectsPatchDeploymentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3972,7 +4390,7 @@ func (c *ProjectsPatchDeploymentsGetCall) Header() http.Header { func (c *ProjectsPatchDeploymentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4131,7 +4549,7 @@ func (c *ProjectsPatchDeploymentsListCall) Header() http.Header { func (c *ProjectsPatchDeploymentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4299,7 +4717,7 @@ func (c *ProjectsPatchJobsCancelCall) Header() http.Header { func (c *ProjectsPatchJobsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4439,7 +4857,7 @@ func (c *ProjectsPatchJobsExecuteCall) Header() http.Header { func (c *ProjectsPatchJobsExecuteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4589,7 +5007,7 @@ func (c *ProjectsPatchJobsGetCall) Header() http.Header { func (c *ProjectsPatchJobsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4757,7 +5175,7 @@ func (c *ProjectsPatchJobsListCall) Header() http.Header { func (c *ProjectsPatchJobsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4961,7 +5379,7 @@ func (c *ProjectsPatchJobsInstanceDetailsListCall) Header() http.Header { func (c *ProjectsPatchJobsInstanceDetailsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5136,7 +5554,7 @@ func (c *ProjectsZonesInstancesLookupEffectiveGuestPolicyCall) Header() http.Hea func (c *ProjectsZonesInstancesLookupEffectiveGuestPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/oslogin/v1/oslogin-gen.go b/oslogin/v1/oslogin-gen.go index ae257d1e0e9..783d9bf38b2 100644 --- a/oslogin/v1/oslogin-gen.go +++ b/oslogin/v1/oslogin-gen.go @@ -447,7 +447,7 @@ func (c *UsersGetLoginProfileCall) Header() http.Header { func (c *UsersGetLoginProfileCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -602,7 +602,7 @@ func (c *UsersImportSshPublicKeyCall) Header() http.Header { func (c *UsersImportSshPublicKeyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -746,7 +746,7 @@ func (c *UsersProjectsDeleteCall) Header() http.Header { func (c *UsersProjectsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -877,7 +877,7 @@ func (c *UsersSshPublicKeysDeleteCall) Header() http.Header { func (c *UsersSshPublicKeysDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1019,7 +1019,7 @@ func (c *UsersSshPublicKeysGetCall) Header() http.Header { func (c *UsersSshPublicKeysGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1163,7 +1163,7 @@ func (c *UsersSshPublicKeysPatchCall) Header() http.Header { func (c *UsersSshPublicKeysPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/oslogin/v1alpha/oslogin-gen.go b/oslogin/v1alpha/oslogin-gen.go index f6576030309..8aec1753c98 100644 --- a/oslogin/v1alpha/oslogin-gen.go +++ b/oslogin/v1alpha/oslogin-gen.go @@ -469,7 +469,7 @@ func (c *UsersGetLoginProfileCall) Header() http.Header { func (c *UsersGetLoginProfileCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -641,7 +641,7 @@ func (c *UsersImportSshPublicKeyCall) Header() http.Header { func (c *UsersImportSshPublicKeyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -799,7 +799,7 @@ func (c *UsersProjectsDeleteCall) Header() http.Header { func (c *UsersProjectsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -945,7 +945,7 @@ func (c *UsersSshPublicKeysDeleteCall) Header() http.Header { func (c *UsersSshPublicKeysDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1087,7 +1087,7 @@ func (c *UsersSshPublicKeysGetCall) Header() http.Header { func (c *UsersSshPublicKeysGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1231,7 +1231,7 @@ func (c *UsersSshPublicKeysPatchCall) Header() http.Header { func (c *UsersSshPublicKeysPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/oslogin/v1beta/oslogin-gen.go b/oslogin/v1beta/oslogin-gen.go index 977f8b595c8..2cbe1ed82f0 100644 --- a/oslogin/v1beta/oslogin-gen.go +++ b/oslogin/v1beta/oslogin-gen.go @@ -455,7 +455,7 @@ func (c *UsersGetLoginProfileCall) Header() http.Header { func (c *UsersGetLoginProfileCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -612,7 +612,7 @@ func (c *UsersImportSshPublicKeyCall) Header() http.Header { func (c *UsersImportSshPublicKeyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -756,7 +756,7 @@ func (c *UsersProjectsDeleteCall) Header() http.Header { func (c *UsersProjectsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -887,7 +887,7 @@ func (c *UsersSshPublicKeysDeleteCall) Header() http.Header { func (c *UsersSshPublicKeysDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1029,7 +1029,7 @@ func (c *UsersSshPublicKeysGetCall) Header() http.Header { func (c *UsersSshPublicKeysGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1173,7 +1173,7 @@ func (c *UsersSshPublicKeysPatchCall) Header() http.Header { func (c *UsersSshPublicKeysPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/pagespeedonline/v5/pagespeedonline-gen.go b/pagespeedonline/v5/pagespeedonline-gen.go index 5efc2f087a3..d3e3bdc9573 100644 --- a/pagespeedonline/v5/pagespeedonline-gen.go +++ b/pagespeedonline/v5/pagespeedonline-gen.go @@ -1145,7 +1145,7 @@ func (c *PagespeedapiRunpagespeedCall) Header() http.Header { func (c *PagespeedapiRunpagespeedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/people/v1/people-api.json b/people/v1/people-api.json index 6f287b32131..6b6252cd189 100644 --- a/people/v1/people-api.json +++ b/people/v1/people-api.json @@ -424,7 +424,7 @@ "people": { "methods": { "createContact": { - "description": "Create a new contact and return the person resource for that contact. The request throws a 400 error if more than one field is specified on a field that is a singleton for contact sources: * biographies * birthdays * genders * names", + "description": "Create a new contact and return the person resource for that contact. The request returns a 400 error if more than one field is specified on a field that is a singleton for contact sources: * biographies * birthdays * genders * names", "flatPath": "v1/people:createContact", "httpMethod": "POST", "id": "people.people.createContact", @@ -437,7 +437,7 @@ "type": "string" }, "sources": { - "description": "Optional. A mask of what source types to return. Defaults to ReadSourceType.CONTACT and ReadSourceType.PROFILE if not set.", + "description": "Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set.", "enum": [ "READ_SOURCE_TYPE_UNSPECIFIED", "READ_SOURCE_TYPE_PROFILE", @@ -514,7 +514,7 @@ "type": "string" }, "sources": { - "description": "Optional. A mask of what source types to return. Defaults to ReadSourceType.CONTACT and ReadSourceType.PROFILE if not set.", + "description": "Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set.", "enum": [ "READ_SOURCE_TYPE_UNSPECIFIED", "READ_SOURCE_TYPE_PROFILE", @@ -541,7 +541,7 @@ ] }, "get": { - "description": "Provides information about a person by specifying a resource name. Use `people/me` to indicate the authenticated user. The request throws a 400 error if 'personFields' is not specified.", + "description": "Provides information about a person by specifying a resource name. Use `people/me` to indicate the authenticated user. The request returns a 400 error if 'personFields' is not specified.", "flatPath": "v1/people/{peopleId}", "httpMethod": "GET", "id": "people.people.get", @@ -569,7 +569,7 @@ "type": "string" }, "sources": { - "description": "Optional. A mask of what source types to return. Defaults to ReadSourceType.PROFILE and ReadSourceType.CONTACT if not set.", + "description": "Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_PROFILE and READ_SOURCE_TYPE_CONTACT if not set.", "enum": [ "READ_SOURCE_TYPE_UNSPECIFIED", "READ_SOURCE_TYPE_PROFILE", @@ -606,7 +606,7 @@ ] }, "getBatchGet": { - "description": "Provides information about a list of specific people by specifying a list of requested resource names. Use `people/me` to indicate the authenticated user. The request throws a 400 error if 'personFields' is not specified.", + "description": "Provides information about a list of specific people by specifying a list of requested resource names. Use `people/me` to indicate the authenticated user. The request returns a 400 error if 'personFields' is not specified.", "flatPath": "v1/people:batchGet", "httpMethod": "GET", "id": "people.people.getBatchGet", @@ -631,7 +631,7 @@ "type": "string" }, "sources": { - "description": "Optional. A mask of what source types to return. Defaults to ReadSourceType.CONTACT and ReadSourceType.PROFILE if not set.", + "description": "Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set.", "enum": [ "READ_SOURCE_TYPE_UNSPECIFIED", "READ_SOURCE_TYPE_PROFILE", @@ -831,7 +831,7 @@ "type": "string" }, "sources": { - "description": "Optional. A mask of what source types to return. Defaults to ReadSourceType.CONTACT and ReadSourceType.PROFILE if not set.", + "description": "Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set.", "enum": [ "READ_SOURCE_TYPE_UNSPECIFIED", "READ_SOURCE_TYPE_PROFILE", @@ -899,7 +899,7 @@ "connections": { "methods": { "list": { - "description": "Provides a list of the authenticated user's contacts. The request throws a 400 error if 'personFields' is not specified.", + "description": "Provides a list of the authenticated user's contacts. The request returns a 400 error if `personFields` is not specified. The request returns a 410 error if `sync_token` is specified and is expired. Sync tokens expire after 7 days. A request without `sync_token` should be made and all contacts should be synced.", "flatPath": "v1/people/{peopleId}/connections", "httpMethod": "GET", "id": "people.people.connections.list", @@ -960,7 +960,7 @@ "type": "string" }, "sources": { - "description": "Optional. A mask of what source types to return. Defaults to ReadSourceType.CONTACT and ReadSourceType.PROFILE if not set.", + "description": "Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set.", "enum": [ "READ_SOURCE_TYPE_UNSPECIFIED", "READ_SOURCE_TYPE_PROFILE", @@ -997,7 +997,7 @@ } } }, - "revision": "20201013", + "revision": "20201117", "rootUrl": "https://people.googleapis.com/", "schemas": { "Address": { @@ -1329,7 +1329,7 @@ "type": "string" }, "sources": { - "description": "Optional. A mask of what source types to return. Defaults to ReadSourceType.CONTACT and ReadSourceType.PROFILE if not set.", + "description": "Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set.", "items": { "enum": [ "READ_SOURCE_TYPE_UNSPECIFIED", @@ -1861,14 +1861,14 @@ "id": "ModifyContactGroupMembersRequest", "properties": { "resourceNamesToAdd": { - "description": "Optional. The resource names of the contact people to add in the form of `people/{person_id}`.", + "description": "Optional. The resource names of the contact people to add in the form of `people/{person_id}`. The total number of resource names in `resource_names_to_add` and `resource_names_to_remove` must be less than or equal to 1000.", "items": { "type": "string" }, "type": "array" }, "resourceNamesToRemove": { - "description": "Optional. The resource names of the contact people to remove in the form of `people/{person_id}`.", + "description": "Optional. The resource names of the contact people to remove in the form of `people/{person_id}`. The total number of resource names in `resource_names_to_add` and `resource_names_to_remove` must be less than or equal to 1000.", "items": { "type": "string" }, @@ -2789,7 +2789,7 @@ "type": "string" }, "sources": { - "description": "Optional. A mask of what source types to return. Defaults to ReadSourceType.CONTACT and ReadSourceType.PROFILE if not set.", + "description": "Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set.", "items": { "enum": [ "READ_SOURCE_TYPE_UNSPECIFIED", diff --git a/people/v1/people-gen.go b/people/v1/people-gen.go index 08cb5104cba..ddfd566a328 100644 --- a/people/v1/people-gen.go +++ b/people/v1/people-gen.go @@ -764,7 +764,7 @@ type CopyOtherContactToMyContactsGroupRequest struct { ReadMask string `json:"readMask,omitempty"` // Sources: Optional. A mask of what source types to return. Defaults to - // ReadSourceType.CONTACT and ReadSourceType.PROFILE if not set. + // READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set. // // Possible values: // "READ_SOURCE_TYPE_UNSPECIFIED" - Unspecified. @@ -1699,11 +1699,15 @@ func (s *MiscKeyword) MarshalJSON() ([]byte, error) { // system groups. type ModifyContactGroupMembersRequest struct { // ResourceNamesToAdd: Optional. The resource names of the contact - // people to add in the form of `people/{person_id}`. + // people to add in the form of `people/{person_id}`. The total number + // of resource names in `resource_names_to_add` and + // `resource_names_to_remove` must be less than or equal to 1000. ResourceNamesToAdd []string `json:"resourceNamesToAdd,omitempty"` // ResourceNamesToRemove: Optional. The resource names of the contact - // people to remove in the form of `people/{person_id}`. + // people to remove in the form of `people/{person_id}`. The total + // number of resource names in `resource_names_to_add` and + // `resource_names_to_remove` must be less than or equal to 1000. ResourceNamesToRemove []string `json:"resourceNamesToRemove,omitempty"` // ForceSendFields is a list of field names (e.g. "ResourceNamesToAdd") @@ -2859,7 +2863,7 @@ type UpdateContactPhotoRequest struct { PhotoBytes string `json:"photoBytes,omitempty"` // Sources: Optional. A mask of what source types to return. Defaults to - // ReadSourceType.CONTACT and ReadSourceType.PROFILE if not set. + // READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set. // // Possible values: // "READ_SOURCE_TYPE_UNSPECIFIED" - Unspecified. @@ -3072,7 +3076,7 @@ func (c *ContactGroupsBatchGetCall) Header() http.Header { func (c *ContactGroupsBatchGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3206,7 +3210,7 @@ func (c *ContactGroupsCreateCall) Header() http.Header { func (c *ContactGroupsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3339,7 +3343,7 @@ func (c *ContactGroupsDeleteCall) Header() http.Header { func (c *ContactGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3494,7 +3498,7 @@ func (c *ContactGroupsGetCall) Header() http.Header { func (c *ContactGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3669,7 +3673,7 @@ func (c *ContactGroupsListCall) Header() http.Header { func (c *ContactGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3831,7 +3835,7 @@ func (c *ContactGroupsUpdateCall) Header() http.Header { func (c *ContactGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3975,7 +3979,7 @@ func (c *ContactGroupsMembersModifyCall) Header() http.Header { func (c *ContactGroupsMembersModifyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4117,7 +4121,7 @@ func (c *OtherContactsCopyOtherContactToMyContactsGroupCall) Header() http.Heade func (c *OtherContactsCopyOtherContactToMyContactsGroupCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4315,7 +4319,7 @@ func (c *OtherContactsListCall) Header() http.Header { func (c *OtherContactsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4451,7 +4455,7 @@ type PeopleCreateContactCall struct { } // CreateContact: Create a new contact and return the person resource -// for that contact. The request throws a 400 error if more than one +// for that contact. The request returns a 400 error if more than one // field is specified on a field that is a singleton for contact // sources: * biographies * birthdays * genders * names func (r *PeopleService) CreateContact(person *Person) *PeopleCreateContactCall { @@ -4476,8 +4480,8 @@ func (c *PeopleCreateContactCall) PersonFields(personFields string) *PeopleCreat } // Sources sets the optional parameter "sources": A mask of what source -// types to return. Defaults to ReadSourceType.CONTACT and -// ReadSourceType.PROFILE if not set. +// types to return. Defaults to READ_SOURCE_TYPE_CONTACT and +// READ_SOURCE_TYPE_PROFILE if not set. // // Possible values: // "READ_SOURCE_TYPE_UNSPECIFIED" - Unspecified. @@ -4518,7 +4522,7 @@ func (c *PeopleCreateContactCall) Header() http.Header { func (c *PeopleCreateContactCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4579,7 +4583,7 @@ func (c *PeopleCreateContactCall) Do(opts ...googleapi.CallOption) (*Person, err } return ret, nil // { - // "description": "Create a new contact and return the person resource for that contact. The request throws a 400 error if more than one field is specified on a field that is a singleton for contact sources: * biographies * birthdays * genders * names", + // "description": "Create a new contact and return the person resource for that contact. The request returns a 400 error if more than one field is specified on a field that is a singleton for contact sources: * biographies * birthdays * genders * names", // "flatPath": "v1/people:createContact", // "httpMethod": "POST", // "id": "people.people.createContact", @@ -4592,7 +4596,7 @@ func (c *PeopleCreateContactCall) Do(opts ...googleapi.CallOption) (*Person, err // "type": "string" // }, // "sources": { - // "description": "Optional. A mask of what source types to return. Defaults to ReadSourceType.CONTACT and ReadSourceType.PROFILE if not set.", + // "description": "Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set.", // "enum": [ // "READ_SOURCE_TYPE_UNSPECIFIED", // "READ_SOURCE_TYPE_PROFILE", @@ -4669,7 +4673,7 @@ func (c *PeopleDeleteContactCall) Header() http.Header { func (c *PeopleDeleteContactCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4788,8 +4792,8 @@ func (c *PeopleDeleteContactPhotoCall) PersonFields(personFields string) *People } // Sources sets the optional parameter "sources": A mask of what source -// types to return. Defaults to ReadSourceType.CONTACT and -// ReadSourceType.PROFILE if not set. +// types to return. Defaults to READ_SOURCE_TYPE_CONTACT and +// READ_SOURCE_TYPE_PROFILE if not set. // // Possible values: // "READ_SOURCE_TYPE_UNSPECIFIED" - Unspecified. @@ -4830,7 +4834,7 @@ func (c *PeopleDeleteContactPhotoCall) Header() http.Header { func (c *PeopleDeleteContactPhotoCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4911,7 +4915,7 @@ func (c *PeopleDeleteContactPhotoCall) Do(opts ...googleapi.CallOption) (*Delete // "type": "string" // }, // "sources": { - // "description": "Optional. A mask of what source types to return. Defaults to ReadSourceType.CONTACT and ReadSourceType.PROFILE if not set.", + // "description": "Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set.", // "enum": [ // "READ_SOURCE_TYPE_UNSPECIFIED", // "READ_SOURCE_TYPE_PROFILE", @@ -4953,7 +4957,7 @@ type PeopleGetCall struct { // Get: Provides information about a person by specifying a resource // name. Use `people/me` to indicate the authenticated user. The request -// throws a 400 error if 'personFields' is not specified. +// returns a 400 error if 'personFields' is not specified. func (r *PeopleService) Get(resourceName string) *PeopleGetCall { c := &PeopleGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resourceName = resourceName @@ -4984,8 +4988,8 @@ func (c *PeopleGetCall) RequestMaskIncludeField(requestMaskIncludeField string) } // Sources sets the optional parameter "sources": A mask of what source -// types to return. Defaults to ReadSourceType.PROFILE and -// ReadSourceType.CONTACT if not set. +// types to return. Defaults to READ_SOURCE_TYPE_PROFILE and +// READ_SOURCE_TYPE_CONTACT if not set. // // Possible values: // "READ_SOURCE_TYPE_UNSPECIFIED" - Unspecified. @@ -5036,7 +5040,7 @@ func (c *PeopleGetCall) Header() http.Header { func (c *PeopleGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5098,7 +5102,7 @@ func (c *PeopleGetCall) Do(opts ...googleapi.CallOption) (*Person, error) { } return ret, nil // { - // "description": "Provides information about a person by specifying a resource name. Use `people/me` to indicate the authenticated user. The request throws a 400 error if 'personFields' is not specified.", + // "description": "Provides information about a person by specifying a resource name. Use `people/me` to indicate the authenticated user. The request returns a 400 error if 'personFields' is not specified.", // "flatPath": "v1/people/{peopleId}", // "httpMethod": "GET", // "id": "people.people.get", @@ -5126,7 +5130,7 @@ func (c *PeopleGetCall) Do(opts ...googleapi.CallOption) (*Person, error) { // "type": "string" // }, // "sources": { - // "description": "Optional. A mask of what source types to return. Defaults to ReadSourceType.PROFILE and ReadSourceType.CONTACT if not set.", + // "description": "Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_PROFILE and READ_SOURCE_TYPE_CONTACT if not set.", // "enum": [ // "READ_SOURCE_TYPE_UNSPECIFIED", // "READ_SOURCE_TYPE_PROFILE", @@ -5177,7 +5181,7 @@ type PeopleGetBatchGetCall struct { // GetBatchGet: Provides information about a list of specific people by // specifying a list of requested resource names. Use `people/me` to -// indicate the authenticated user. The request throws a 400 error if +// indicate the authenticated user. The request returns a 400 error if // 'personFields' is not specified. func (r *PeopleService) GetBatchGet() *PeopleGetBatchGetCall { c := &PeopleGetBatchGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -5223,8 +5227,8 @@ func (c *PeopleGetBatchGetCall) ResourceNames(resourceNames ...string) *PeopleGe } // Sources sets the optional parameter "sources": A mask of what source -// types to return. Defaults to ReadSourceType.CONTACT and -// ReadSourceType.PROFILE if not set. +// types to return. Defaults to READ_SOURCE_TYPE_CONTACT and +// READ_SOURCE_TYPE_PROFILE if not set. // // Possible values: // "READ_SOURCE_TYPE_UNSPECIFIED" - Unspecified. @@ -5275,7 +5279,7 @@ func (c *PeopleGetBatchGetCall) Header() http.Header { func (c *PeopleGetBatchGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5334,7 +5338,7 @@ func (c *PeopleGetBatchGetCall) Do(opts ...googleapi.CallOption) (*GetPeopleResp } return ret, nil // { - // "description": "Provides information about a list of specific people by specifying a list of requested resource names. Use `people/me` to indicate the authenticated user. The request throws a 400 error if 'personFields' is not specified.", + // "description": "Provides information about a list of specific people by specifying a list of requested resource names. Use `people/me` to indicate the authenticated user. The request returns a 400 error if 'personFields' is not specified.", // "flatPath": "v1/people:batchGet", // "httpMethod": "GET", // "id": "people.people.getBatchGet", @@ -5359,7 +5363,7 @@ func (c *PeopleGetBatchGetCall) Do(opts ...googleapi.CallOption) (*GetPeopleResp // "type": "string" // }, // "sources": { - // "description": "Optional. A mask of what source types to return. Defaults to ReadSourceType.CONTACT and ReadSourceType.PROFILE if not set.", + // "description": "Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set.", // "enum": [ // "READ_SOURCE_TYPE_UNSPECIFIED", // "READ_SOURCE_TYPE_PROFILE", @@ -5528,7 +5532,7 @@ func (c *PeopleListDirectoryPeopleCall) Header() http.Header { func (c *PeopleListDirectoryPeopleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5803,7 +5807,7 @@ func (c *PeopleSearchDirectoryPeopleCall) Header() http.Header { func (c *PeopleSearchDirectoryPeopleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6002,8 +6006,8 @@ func (c *PeopleUpdateContactCall) PersonFields(personFields string) *PeopleUpdat } // Sources sets the optional parameter "sources": A mask of what source -// types to return. Defaults to ReadSourceType.CONTACT and -// ReadSourceType.PROFILE if not set. +// types to return. Defaults to READ_SOURCE_TYPE_CONTACT and +// READ_SOURCE_TYPE_PROFILE if not set. // // Possible values: // "READ_SOURCE_TYPE_UNSPECIFIED" - Unspecified. @@ -6058,7 +6062,7 @@ func (c *PeopleUpdateContactCall) Header() http.Header { func (c *PeopleUpdateContactCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6144,7 +6148,7 @@ func (c *PeopleUpdateContactCall) Do(opts ...googleapi.CallOption) (*Person, err // "type": "string" // }, // "sources": { - // "description": "Optional. A mask of what source types to return. Defaults to ReadSourceType.CONTACT and ReadSourceType.PROFILE if not set.", + // "description": "Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set.", // "enum": [ // "READ_SOURCE_TYPE_UNSPECIFIED", // "READ_SOURCE_TYPE_PROFILE", @@ -6228,7 +6232,7 @@ func (c *PeopleUpdateContactPhotoCall) Header() http.Header { func (c *PeopleUpdateContactPhotoCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6334,7 +6338,10 @@ type PeopleConnectionsListCall struct { } // List: Provides a list of the authenticated user's contacts. The -// request throws a 400 error if 'personFields' is not specified. +// request returns a 400 error if `personFields` is not specified. The +// request returns a 410 error if `sync_token` is specified and is +// expired. Sync tokens expire after 7 days. A request without +// `sync_token` should be made and all contacts should be synced. func (r *PeopleConnectionsService) List(resourceName string) *PeopleConnectionsListCall { c := &PeopleConnectionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resourceName = resourceName @@ -6410,8 +6417,8 @@ func (c *PeopleConnectionsListCall) SortOrder(sortOrder string) *PeopleConnectio } // Sources sets the optional parameter "sources": A mask of what source -// types to return. Defaults to ReadSourceType.CONTACT and -// ReadSourceType.PROFILE if not set. +// types to return. Defaults to READ_SOURCE_TYPE_CONTACT and +// READ_SOURCE_TYPE_PROFILE if not set. // // Possible values: // "READ_SOURCE_TYPE_UNSPECIFIED" - Unspecified. @@ -6473,7 +6480,7 @@ func (c *PeopleConnectionsListCall) Header() http.Header { func (c *PeopleConnectionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6535,7 +6542,7 @@ func (c *PeopleConnectionsListCall) Do(opts ...googleapi.CallOption) (*ListConne } return ret, nil // { - // "description": "Provides a list of the authenticated user's contacts. The request throws a 400 error if 'personFields' is not specified.", + // "description": "Provides a list of the authenticated user's contacts. The request returns a 400 error if `personFields` is not specified. The request returns a 410 error if `sync_token` is specified and is expired. Sync tokens expire after 7 days. A request without `sync_token` should be made and all contacts should be synced.", // "flatPath": "v1/people/{peopleId}/connections", // "httpMethod": "GET", // "id": "people.people.connections.list", @@ -6596,7 +6603,7 @@ func (c *PeopleConnectionsListCall) Do(opts ...googleapi.CallOption) (*ListConne // "type": "string" // }, // "sources": { - // "description": "Optional. A mask of what source types to return. Defaults to ReadSourceType.CONTACT and ReadSourceType.PROFILE if not set.", + // "description": "Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set.", // "enum": [ // "READ_SOURCE_TYPE_UNSPECIFIED", // "READ_SOURCE_TYPE_PROFILE", diff --git a/playablelocations/v3/playablelocations-gen.go b/playablelocations/v3/playablelocations-gen.go index 9621bd96484..0fda600a707 100644 --- a/playablelocations/v3/playablelocations-gen.go +++ b/playablelocations/v3/playablelocations-gen.go @@ -882,7 +882,7 @@ func (c *V3LogImpressionsCall) Header() http.Header { func (c *V3LogImpressionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1009,7 +1009,7 @@ func (c *V3LogPlayerReportsCall) Header() http.Header { func (c *V3LogPlayerReportsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1136,7 +1136,7 @@ func (c *V3SamplePlayableLocationsCall) Header() http.Header { func (c *V3SamplePlayableLocationsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/playcustomapp/v1/playcustomapp-gen.go b/playcustomapp/v1/playcustomapp-gen.go index d45bc4b853f..213533c109f 100644 --- a/playcustomapp/v1/playcustomapp-gen.go +++ b/playcustomapp/v1/playcustomapp-gen.go @@ -281,7 +281,7 @@ func (c *AccountsCustomAppsCreateCall) Header() http.Header { func (c *AccountsCustomAppsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/policytroubleshooter/v1/policytroubleshooter-api.json b/policytroubleshooter/v1/policytroubleshooter-api.json index a8adcbcf18f..6c2381da061 100644 --- a/policytroubleshooter/v1/policytroubleshooter-api.json +++ b/policytroubleshooter/v1/policytroubleshooter-api.json @@ -128,7 +128,7 @@ } } }, - "revision": "20200801", + "revision": "20201107", "rootUrl": "https://policytroubleshooter.googleapis.com/", "schemas": { "GoogleCloudPolicytroubleshooterV1AccessTuple": { diff --git a/policytroubleshooter/v1/policytroubleshooter-gen.go b/policytroubleshooter/v1/policytroubleshooter-gen.go index 9063b77c13e..f562a6a769f 100644 --- a/policytroubleshooter/v1/policytroubleshooter-gen.go +++ b/policytroubleshooter/v1/policytroubleshooter-gen.go @@ -897,7 +897,7 @@ func (c *IamTroubleshootCall) Header() http.Header { func (c *IamTroubleshootCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/policytroubleshooter/v1beta/policytroubleshooter-api.json b/policytroubleshooter/v1beta/policytroubleshooter-api.json index edcc0bbcce2..bfcb3b84d38 100644 --- a/policytroubleshooter/v1beta/policytroubleshooter-api.json +++ b/policytroubleshooter/v1beta/policytroubleshooter-api.json @@ -128,7 +128,7 @@ } } }, - "revision": "20200801", + "revision": "20201107", "rootUrl": "https://policytroubleshooter.googleapis.com/", "schemas": { "GoogleCloudPolicytroubleshooterV1betaAccessTuple": { diff --git a/policytroubleshooter/v1beta/policytroubleshooter-gen.go b/policytroubleshooter/v1beta/policytroubleshooter-gen.go index 83cd5d86edd..02111ba6c42 100644 --- a/policytroubleshooter/v1beta/policytroubleshooter-gen.go +++ b/policytroubleshooter/v1beta/policytroubleshooter-gen.go @@ -897,7 +897,7 @@ func (c *IamTroubleshootCall) Header() http.Header { func (c *IamTroubleshootCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/poly/v1/poly-gen.go b/poly/v1/poly-gen.go index ec6453c51a6..bc3e78bd844 100644 --- a/poly/v1/poly-gen.go +++ b/poly/v1/poly-gen.go @@ -1004,7 +1004,7 @@ func (c *AssetsGetCall) Header() http.Header { func (c *AssetsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1219,7 +1219,7 @@ func (c *AssetsListCall) Header() http.Header { func (c *AssetsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1473,7 +1473,7 @@ func (c *UsersAssetsListCall) Header() http.Header { func (c *UsersAssetsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1707,7 +1707,7 @@ func (c *UsersLikedassetsListCall) Header() http.Header { func (c *UsersLikedassetsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/privateca/v1beta1/privateca-api.json b/privateca/v1beta1/privateca-api.json new file mode 100644 index 00000000000..079cfe38808 --- /dev/null +++ b/privateca/v1beta1/privateca-api.json @@ -0,0 +1,2875 @@ +{ + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/cloud-platform": { + "description": "View and manage your data across Google Cloud Platform services" + } + } + } + }, + "basePath": "", + "baseUrl": "https://privateca.googleapis.com/", + "batchPath": "batch", + "canonicalName": "Certificate Authority Service", + "description": "The Certificate Authority Service API is a highly-available, scalable service that enables you to simplify and automate the management of private certificate authorities (CAs) while staying in control of your private keys.\" ", + "discoveryVersion": "v1", + "documentationLink": "https://cloud.google.com/", + "fullyEncodeReservedExpansion": true, + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "id": "privateca:v1beta1", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://privateca.mtls.googleapis.com/", + "name": "privateca", + "ownerDomain": "google.com", + "ownerName": "Google", + "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, + "alt": { + "default": "json", + "description": "Data format for response.", + "enum": [ + "json", + "media", + "proto" + ], + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query", + "type": "string" + }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, + "fields": { + "description": "Selector specifying which fields to include in a partial response.", + "location": "query", + "type": "string" + }, + "key": { + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "location": "query", + "type": "string" + }, + "oauth_token": { + "description": "OAuth 2.0 token for the current user.", + "location": "query", + "type": "string" + }, + "prettyPrint": { + "default": "true", + "description": "Returns response with indentations and line breaks.", + "location": "query", + "type": "boolean" + }, + "quotaUser": { + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query", + "type": "string" + }, + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query", + "type": "string" + } + }, + "protocol": "rest", + "resources": { + "projects": { + "resources": { + "locations": { + "methods": { + "get": { + "description": "Gets information about a location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}", + "httpMethod": "GET", + "id": "privateca.projects.locations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Resource name for the location.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Location" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists information about the supported locations for this service.", + "flatPath": "v1beta1/projects/{projectsId}/locations", + "httpMethod": "GET", + "id": "privateca.projects.locations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The resource that owns the locations collection, if applicable.", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}/locations", + "response": { + "$ref": "ListLocationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "certificateAuthorities": { + "methods": { + "activate": { + "description": "Activate a CertificateAuthority that is in state PENDING_ACTIVATION and is of type SUBORDINATE. After the parent Certificate Authority signs a certificate signing request from FetchCertificateAuthorityCsr, this method can complete the activation process.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:activate", + "httpMethod": "POST", + "id": "privateca.projects.locations.certificateAuthorities.activate", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:activate", + "request": { + "$ref": "ActivateCertificateAuthorityRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "create": { + "description": "Create a new CertificateAuthority in a given Project and Location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities", + "httpMethod": "POST", + "id": "privateca.projects.locations.certificateAuthorities.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "certificateAuthorityId": { + "description": "Required. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the location associated with the CertificateAuthorities, in the format `projects/*/locations/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+parent}/certificateAuthorities", + "request": { + "$ref": "CertificateAuthority" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "disable": { + "description": "Disable a CertificateAuthority.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:disable", + "httpMethod": "POST", + "id": "privateca.projects.locations.certificateAuthorities.disable", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:disable", + "request": { + "$ref": "DisableCertificateAuthorityRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "enable": { + "description": "Enable a CertificateAuthority.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:enable", + "httpMethod": "POST", + "id": "privateca.projects.locations.certificateAuthorities.enable", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:enable", + "request": { + "$ref": "EnableCertificateAuthorityRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "fetch": { + "description": "Fetch a certificate signing request (CSR) from a CertificateAuthority that is in state PENDING_ACTIVATION and is of type SUBORDINATE. The CSR must then be signed by the desired parent Certificate Authority, which could be another CertificateAuthority resource, or could be an on-prem certificate authority. See also ActivateCertificateAuthority.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:fetch", + "httpMethod": "GET", + "id": "privateca.projects.locations.certificateAuthorities.fetch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:fetch", + "response": { + "$ref": "FetchCertificateAuthorityCsrResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Returns a CertificateAuthority.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}", + "httpMethod": "GET", + "id": "privateca.projects.locations.certificateAuthorities.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the CertificateAuthority to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "CertificateAuthority" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:getIamPolicy", + "httpMethod": "GET", + "id": "privateca.projects.locations.certificateAuthorities.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:getIamPolicy", + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists CertificateAuthorities.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities", + "httpMethod": "GET", + "id": "privateca.projects.locations.certificateAuthorities.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Only include resources that match the filter in the response.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Specify how the results should be sorted.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Limit on the number of CertificateAuthorities to include in the response. Further CertificateAuthorities can subsequently be obtained by including the ListCertificateAuthoritiesResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Pagination token, returned earlier via ListCertificateAuthoritiesResponse.next_page_token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the location associated with the CertificateAuthorities, in the format `projects/*/locations/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/certificateAuthorities", + "response": { + "$ref": "ListCertificateAuthoritiesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Update a CertificateAuthority.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}", + "httpMethod": "PATCH", + "id": "privateca.projects.locations.certificateAuthorities.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Required. A list of fields to be updated in this request.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "request": { + "$ref": "CertificateAuthority" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "restore": { + "description": "Restore a CertificateAuthority that is scheduled for deletion.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:restore", + "httpMethod": "POST", + "id": "privateca.projects.locations.certificateAuthorities.restore", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:restore", + "request": { + "$ref": "RestoreCertificateAuthorityRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "scheduleDelete": { + "description": "Schedule a CertificateAuthority for deletion.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:scheduleDelete", + "httpMethod": "POST", + "id": "privateca.projects.locations.certificateAuthorities.scheduleDelete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:scheduleDelete", + "request": { + "$ref": "ScheduleDeleteCertificateAuthorityRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:setIamPolicy", + "httpMethod": "POST", + "id": "privateca.projects.locations.certificateAuthorities.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:testIamPermissions", + "httpMethod": "POST", + "id": "privateca.projects.locations.certificateAuthorities.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "certificateRevocationLists": { + "methods": { + "get": { + "description": "Returns a CertificateRevocationList.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists/{certificateRevocationListsId}", + "httpMethod": "GET", + "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the CertificateRevocationList to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "CertificateRevocationList" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists/{certificateRevocationListsId}:getIamPolicy", + "httpMethod": "GET", + "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:getIamPolicy", + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists CertificateRevocationLists.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists", + "httpMethod": "GET", + "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Only include resources that match the filter in the response.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Specify how the results should be sorted.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Limit on the number of CertificateRevocationLists to include in the response. Further CertificateRevocationLists can subsequently be obtained by including the ListCertificateRevocationListsResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Pagination token, returned earlier via ListCertificateRevocationListsResponse.next_page_token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the location associated with the CertificateRevocationLists, in the format `projects/*/locations/*/certificateauthorities/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/certificateRevocationLists", + "response": { + "$ref": "ListCertificateRevocationListsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Update a CertificateRevocationList.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists/{certificateRevocationListsId}", + "httpMethod": "PATCH", + "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The resource path for this CertificateRevocationList in the format `projects/*/locations/*/certificateAuthorities/*/ certificateRevocationLists/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Required. A list of fields to be updated in this request.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "request": { + "$ref": "CertificateRevocationList" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists/{certificateRevocationListsId}:setIamPolicy", + "httpMethod": "POST", + "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists/{certificateRevocationListsId}:testIamPermissions", + "httpMethod": "POST", + "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "certificates": { + "methods": { + "create": { + "description": "Create a new Certificate in a given Project, Location from a particular CertificateAuthority.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificates", + "httpMethod": "POST", + "id": "privateca.projects.locations.certificateAuthorities.certificates.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "certificateId": { + "description": "Optional. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a CertificateAuthority in the Enterprise CertificateAuthority.Tier, but is optional and its value is ignored otherwise.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the location and CertificateAuthority associated with the Certificate, in the format `projects/*/locations/*/certificateAuthorities/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+parent}/certificates", + "request": { + "$ref": "Certificate" + }, + "response": { + "$ref": "Certificate" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Returns a Certificate.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificates/{certificatesId}", + "httpMethod": "GET", + "id": "privateca.projects.locations.certificateAuthorities.certificates.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the Certificate to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificates/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Certificate" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Certificates.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificates", + "httpMethod": "GET", + "id": "privateca.projects.locations.certificateAuthorities.certificates.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Only include resources that match the filter in the response. For details on supported filters and syntax, see [Certificates Filtering documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#filtering_support).", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Specify how the results should be sorted. For details on supported fields and syntax, see [Certificates Sorting documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#sorting_support).", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Limit on the number of Certificates to include in the response. Further Certificates can subsequently be obtained by including the ListCertificatesResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Pagination token, returned earlier via ListCertificatesResponse.next_page_token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the location associated with the Certificates, in the format `projects/*/locations/*/certificateauthorities/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/certificates", + "response": { + "$ref": "ListCertificatesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Update a Certificate. Currently, the only field you can update is the labels field.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificates/{certificatesId}", + "httpMethod": "PATCH", + "id": "privateca.projects.locations.certificateAuthorities.certificates.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The resource path for this Certificate in the format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificates/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Required. A list of fields to be updated in this request.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "request": { + "$ref": "Certificate" + }, + "response": { + "$ref": "Certificate" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "revoke": { + "description": "Revoke a Certificate.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificates/{certificatesId}:revoke", + "httpMethod": "POST", + "id": "privateca.projects.locations.certificateAuthorities.certificates.revoke", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name for this Certificate in the format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificates/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:revoke", + "request": { + "$ref": "RevokeCertificateRequest" + }, + "response": { + "$ref": "Certificate" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "privateca.projects.locations.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:cancel", + "request": { + "$ref": "CancelOperationRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "privateca.projects.locations.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "privateca.projects.locations.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations", + "httpMethod": "GET", + "id": "privateca.projects.locations.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}/operations", + "response": { + "$ref": "ListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "reusableConfigs": { + "methods": { + "get": { + "description": "Returns a ReusableConfig.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reusableConfigs/{reusableConfigsId}", + "httpMethod": "GET", + "id": "privateca.projects.locations.reusableConfigs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the ReusableConfigs to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/reusableConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "ReusableConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reusableConfigs/{reusableConfigsId}:getIamPolicy", + "httpMethod": "GET", + "id": "privateca.projects.locations.reusableConfigs.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/reusableConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:getIamPolicy", + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists ReusableConfigs.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reusableConfigs", + "httpMethod": "GET", + "id": "privateca.projects.locations.reusableConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Only include resources that match the filter in the response.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Specify how the results should be sorted.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Limit on the number of ReusableConfigs to include in the response. Further ReusableConfigs can subsequently be obtained by including the ListReusableConfigsResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Pagination token, returned earlier via ListReusableConfigsResponse.next_page_token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the location associated with the ReusableConfigs, in the format `projects/*/locations/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/reusableConfigs", + "response": { + "$ref": "ListReusableConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reusableConfigs/{reusableConfigsId}:setIamPolicy", + "httpMethod": "POST", + "id": "privateca.projects.locations.reusableConfigs.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/reusableConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reusableConfigs/{reusableConfigsId}:testIamPermissions", + "httpMethod": "POST", + "id": "privateca.projects.locations.reusableConfigs.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/reusableConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + } + }, + "revision": "20201112", + "rootUrl": "https://privateca.googleapis.com/", + "schemas": { + "AccessUrls": { + "description": "URLs where a CertificateAuthority will publish content.", + "id": "AccessUrls", + "properties": { + "caCertificateAccessUrl": { + "description": "The URL where this CertificateAuthority's CA certificate is published. This will only be set for CAs that have been activated.", + "type": "string" + }, + "crlAccessUrl": { + "description": "The URL where this CertificateAuthority's CRLs are published. This will only be set for CAs that have been activated.", + "type": "string" + } + }, + "type": "object" + }, + "ActivateCertificateAuthorityRequest": { + "description": "Request message for CertificateAuthorityService.ActivateCertificateAuthority.", + "id": "ActivateCertificateAuthorityRequest", + "properties": { + "pemCaCertificate": { + "description": "Required. The signed CA certificate issued from FetchCertificateAuthorityCsrResponse.pem_csr.", + "type": "string" + }, + "requestId": { + "description": "Optional. An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "type": "string" + }, + "subordinateConfig": { + "$ref": "SubordinateConfig", + "description": "Required. Must include information about the issuer of 'pem_ca_certificate', and any further issuers until the self-signed CA." + } + }, + "type": "object" + }, + "AllowedConfigList": { + "id": "AllowedConfigList", + "properties": { + "allowedConfigValues": { + "description": "Required. All Certificates issued by the CertificateAuthority must match at least one listed ReusableConfigWrapper. If a ReusableConfigWrapper has an empty field, any value will be allowed for that field.", + "items": { + "$ref": "ReusableConfigWrapper" + }, + "type": "array" + } + }, + "type": "object" + }, + "AllowedSubjectAltNames": { + "description": "AllowedSubjectAltNames specifies the allowed values for SubjectAltNames by the CertificateAuthority when issuing Certificates.", + "id": "AllowedSubjectAltNames", + "properties": { + "allowCustomSans": { + "description": "Optional. Specifies if to allow custom X509Extension values.", + "type": "boolean" + }, + "allowGlobbingDnsWildcards": { + "description": "Optional. Specifies if glob patterns used for allowed_dns_names allow wildcard certificates. If this is set, certificate requests with wildcard domains will be permitted to match a glob pattern specified in allowed_dns_names. Otherwise, certificate requests with wildcard domains will be permitted only if allowed_dns_names contains a literal wildcard.", + "type": "boolean" + }, + "allowedDnsNames": { + "description": "Optional. Contains valid, fully-qualified host names. Glob patterns are also supported. To allow an explicit wildcard certificate, escape with backlash (i.e. \"\\*\"). E.g. for globbed entries: '*bar.com' will allow 'foo.bar.com', but not '*.bar.com', unless the allow_globbing_dns_wildcards field is set. E.g. for wildcard entries: '\\*.bar.com' will allow '*.bar.com', but not 'foo.bar.com'.", + "items": { + "type": "string" + }, + "type": "array" + }, + "allowedEmailAddresses": { + "description": "Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also supported.", + "items": { + "type": "string" + }, + "type": "array" + }, + "allowedIps": { + "description": "Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6 addresses and subnet ranges. Subnet ranges are specified using the '/' notation (e.g. 10.0.0.0/8, 2001:700:300:1800::/64). Glob patterns are supported only for ip address entries (i.e. not for subnet ranges).", + "items": { + "type": "string" + }, + "type": "array" + }, + "allowedUris": { + "description": "Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To match across path seperators (i.e. '/') use the double star glob pattern (i.e. '**').", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "AuditConfig": { + "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.", + "id": "AuditConfig", + "properties": { + "auditLogConfigs": { + "description": "The configuration for logging of each type of permission.", + "items": { + "$ref": "AuditLogConfig" + }, + "type": "array" + }, + "service": { + "description": "Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.", + "type": "string" + } + }, + "type": "object" + }, + "AuditLogConfig": { + "description": "Provides the configuration for logging a type of permissions. Example: { \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.", + "id": "AuditLogConfig", + "properties": { + "exemptedMembers": { + "description": "Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.", + "items": { + "type": "string" + }, + "type": "array" + }, + "logType": { + "description": "The log type that this config enables.", + "enum": [ + "LOG_TYPE_UNSPECIFIED", + "ADMIN_READ", + "DATA_WRITE", + "DATA_READ" + ], + "enumDescriptions": [ + "Default case. Should never be this.", + "Admin reads. Example: CloudIAM getIamPolicy", + "Data writes. Example: CloudSQL Users create", + "Data reads. Example: CloudSQL Users list" + ], + "type": "string" + } + }, + "type": "object" + }, + "Binding": { + "description": "Associates `members` with a `role`.", + "id": "Binding", + "properties": { + "condition": { + "$ref": "Expr", + "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." + }, + "members": { + "description": "Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "items": { + "type": "string" + }, + "type": "array" + }, + "role": { + "description": "Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", + "type": "string" + } + }, + "type": "object" + }, + "CaOptions": { + "description": "Describes values that are relevant in a CA certificate.", + "id": "CaOptions", + "properties": { + "isCa": { + "description": "Optional. Refers to the \"CA\" X.509 extension, which is a boolean value. When this value is missing, the extension will be omitted from the CA certificate.", + "type": "boolean" + }, + "maxIssuerPathLength": { + "description": "Optional. Refers to the path length restriction X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "CancelOperationRequest": { + "description": "The request message for Operations.CancelOperation.", + "id": "CancelOperationRequest", + "properties": {}, + "type": "object" + }, + "Certificate": { + "description": "A Certificate corresponds to a signed X.509 certificate issued by a CertificateAuthority.", + "id": "Certificate", + "properties": { + "certificateDescription": { + "$ref": "CertificateDescription", + "description": "Output only. A structured description of the issued X.509 certificate.", + "readOnly": true + }, + "config": { + "$ref": "CertificateConfig", + "description": "Immutable. A description of the certificate and key that does not require X.509 or ASN.1." + }, + "createTime": { + "description": "Output only. The time at which this Certificate was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Labels with user-defined metadata.", + "type": "object" + }, + "lifetime": { + "description": "Required. Immutable. The desired lifetime of a certificate. Used to create the \"not_before_time\" and \"not_after_time\" fields inside an X.509 certificate. Note that the lifetime may be truncated if it would extend past the life of any certificate authority in the issuing chain.", + "format": "google-duration", + "type": "string" + }, + "name": { + "description": "Output only. The resource path for this Certificate in the format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.", + "readOnly": true, + "type": "string" + }, + "pemCertificate": { + "description": "Output only. The pem-encoded, signed X.509 certificate.", + "readOnly": true, + "type": "string" + }, + "pemCertificateChain": { + "description": "Output only. The chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "pemCsr": { + "description": "Immutable. A pem-encoded X.509 certificate signing request (CSR).", + "type": "string" + }, + "revocationDetails": { + "$ref": "RevocationDetails", + "description": "Output only. Details regarding the revocation of this Certificate. This Certificate is considered revoked if and only if this field is present.", + "readOnly": true + }, + "updateTime": { + "description": "Output only. The time at which this Certificate was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "CertificateAuthority": { + "description": "A CertificateAuthority represents an individual Certificate Authority. A CertificateAuthority can be used to create Certificates.", + "id": "CertificateAuthority", + "properties": { + "accessUrls": { + "$ref": "AccessUrls", + "description": "Output only. URLs for accessing content published by this CA, such as the CA certificate and CRLs.", + "readOnly": true + }, + "caCertificateDescriptions": { + "description": "Output only. A structured description of this CertificateAuthority's CA certificate and its issuers. Ordered as self-to-root.", + "items": { + "$ref": "CertificateDescription" + }, + "readOnly": true, + "type": "array" + }, + "certificatePolicy": { + "$ref": "CertificateAuthorityPolicy", + "description": "Optional. The CertificateAuthorityPolicy to enforce when issuing Certificates from this CertificateAuthority." + }, + "config": { + "$ref": "CertificateConfig", + "description": "Required. Immutable. The config used to create a self-signed X.509 certificate or CSR." + }, + "createTime": { + "description": "Output only. The time at which this CertificateAuthority was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "deleteTime": { + "description": "Output only. The time at which this CertificateAuthority will be deleted, if scheduled for deletion.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "gcsBucket": { + "description": "Immutable. The name of a Cloud Storage bucket where this CertificateAuthority will publish content, such as the CA certificate and CRLs. This must be a bucket name, without any prefixes (such as `gs://`) or suffixes (such as `.googleapis.com`). For example, to use a bucket named `my-bucket`, you would simply specify `my-bucket`. If not specified, a managed bucket will be created.", + "type": "string" + }, + "issuingOptions": { + "$ref": "IssuingOptions", + "description": "Optional. The IssuingOptions to follow when issuing Certificates from this CertificateAuthority." + }, + "keySpec": { + "$ref": "KeyVersionSpec", + "description": "Required. Immutable. Used when issuing certificates for this CertificateAuthority. If this CertificateAuthority is a self-signed CertificateAuthority, this key is also used to sign the self-signed CA certificate. Otherwise, it is used to sign a CSR." + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Labels with user-defined metadata.", + "type": "object" + }, + "lifetime": { + "description": "Required. The desired lifetime of the CA certificate. Used to create the \"not_before_time\" and \"not_after_time\" fields inside an X.509 certificate.", + "format": "google-duration", + "type": "string" + }, + "name": { + "description": "Output only. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", + "readOnly": true, + "type": "string" + }, + "pemCaCertificates": { + "description": "Output only. This CertificateAuthority's certificate chain, including the current CertificateAuthority's certificate. Ordered such that the root issuer is the final element (consistent with RFC 5246). For a self-signed CA, this will only list the current CertificateAuthority's certificate.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "state": { + "description": "Output only. The State for this CertificateAuthority.", + "enum": [ + "STATE_UNSPECIFIED", + "ENABLED", + "DISABLED", + "PENDING_ACTIVATION", + "PENDING_DELETION" + ], + "enumDescriptions": [ + "Not specified.", + "Certificates can be issued from this CA. CRLs will be generated for this CA.", + "Certificates cannot be issued from this CA. CRLs will still be generated.", + "Certificates cannot be issued from this CA. CRLs will not be generated.", + "Certificates cannot be issued from this CA. CRLs will not be generated." + ], + "readOnly": true, + "type": "string" + }, + "subordinateConfig": { + "$ref": "SubordinateConfig", + "description": "Optional. If this is a subordinate CertificateAuthority, this field will be set with the subordinate configuration, which describes its issuers. This may be updated, but this CertificateAuthority must continue to validate." + }, + "tier": { + "description": "Required. Immutable. The Tier of this CertificateAuthority.", + "enum": [ + "TIER_UNSPECIFIED", + "ENTERPRISE", + "DEVOPS" + ], + "enumDescriptions": [ + "Not specified.", + "Enterprise tier.", + "DevOps tier." + ], + "type": "string" + }, + "type": { + "description": "Required. Immutable. The Type of this CertificateAuthority.", + "enum": [ + "TYPE_UNSPECIFIED", + "SELF_SIGNED", + "SUBORDINATE" + ], + "enumDescriptions": [ + "Not specified.", + "Self-signed CA.", + "Subordinate CA. Could be issued by a Private CA CertificateAuthority or an unmanaged CA." + ], + "type": "string" + }, + "updateTime": { + "description": "Output only. The time at which this CertificateAuthority was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "CertificateAuthorityPolicy": { + "description": "The issuing policy for a CertificateAuthority. Certificates will not be successfully issued from this CertificateAuthority if they violate the policy.", + "id": "CertificateAuthorityPolicy", + "properties": { + "allowedCommonNames": { + "description": "Optional. If any value is specified here, then all Certificates issued by the CertificateAuthority must match at least one listed value. If no value is specified, all values will be allowed for this fied. Glob patterns are also supported.", + "items": { + "type": "string" + }, + "type": "array" + }, + "allowedConfigList": { + "$ref": "AllowedConfigList", + "description": "Optional. All Certificates issued by the CertificateAuthority must match at least one listed ReusableConfigWrapper in the list." + }, + "allowedIssuanceModes": { + "$ref": "IssuanceModes", + "description": "Optional. If specified, then only methods allowed in the IssuanceModes may be used to issue Certificates." + }, + "allowedLocationsAndOrganizations": { + "description": "Optional. If any Subject is specified here, then all Certificates issued by the CertificateAuthority must match at least one listed Subject. If a Subject has an empty field, any value will be allowed for that field.", + "items": { + "$ref": "Subject" + }, + "type": "array" + }, + "allowedSans": { + "$ref": "AllowedSubjectAltNames", + "description": "Optional. If a AllowedSubjectAltNames is specified here, then all Certificates issued by the CertificateAuthority must match AllowedSubjectAltNames. If no value or an empty value is specified, any value will be allowed for the SubjectAltNames field." + }, + "maximumLifetime": { + "description": "Optional. The maximum lifetime allowed by the CertificateAuthority. Note that if the any part if the issuing chain expires before a Certificate's requested maximum_lifetime, the effective lifetime will be explicitly truncated.", + "format": "google-duration", + "type": "string" + }, + "overwriteConfigValues": { + "$ref": "ReusableConfigWrapper", + "description": "Optional. All Certificates issued by the CertificateAuthority will use the provided configuration values, overwriting any requested configuration values." + } + }, + "type": "object" + }, + "CertificateConfig": { + "description": "A CertificateConfig describes an X.509 certificate or CSR that is to be created, as an alternative to using ASN.1.", + "id": "CertificateConfig", + "properties": { + "publicKey": { + "$ref": "PublicKey", + "description": "Optional. The public key that corresponds to this config. This is, for example, used when issuing Certificates, but not when creating a self-signed CertificateAuthority or CertificateAuthority CSR." + }, + "reusableConfig": { + "$ref": "ReusableConfigWrapper", + "description": "Required. Describes how some of the technical fields in a certificate should be populated." + }, + "subjectConfig": { + "$ref": "SubjectConfig", + "description": "Required. Specifies some of the values in a certificate that are related to the subject." + } + }, + "type": "object" + }, + "CertificateDescription": { + "description": "A CertificateDescription describes an X.509 certificate or CSR that has been issued, as an alternative to using ASN.1 / X.509.", + "id": "CertificateDescription", + "properties": { + "aiaIssuingCertificateUrls": { + "description": "Describes lists of issuer CA certificate URLs that appear in the \"Authority Information Access\" extension in the certificate.", + "items": { + "type": "string" + }, + "type": "array" + }, + "authorityKeyId": { + "$ref": "KeyId", + "description": "Identifies the subject_key_id of the parent certificate, per https://tools.ietf.org/html/rfc5280#section-4.2.1.1" + }, + "certFingerprint": { + "$ref": "CertificateFingerprint", + "description": "The hash of the x.509 certificate." + }, + "configValues": { + "$ref": "ReusableConfigValues", + "description": "Describes some of the technical fields in a certificate." + }, + "crlDistributionPoints": { + "description": "Describes a list of locations to obtain CRL information, i.e. the DistributionPoint.fullName described by https://tools.ietf.org/html/rfc5280#section-4.2.1.13", + "items": { + "type": "string" + }, + "type": "array" + }, + "publicKey": { + "$ref": "PublicKey", + "description": "The public key that corresponds to an issued certificate." + }, + "subjectDescription": { + "$ref": "SubjectDescription", + "description": "Describes some of the values in a certificate that are related to the subject and lifetime." + }, + "subjectKeyId": { + "$ref": "KeyId", + "description": "Provides a means of identifiying certificates that contain a particular public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2." + } + }, + "type": "object" + }, + "CertificateFingerprint": { + "description": "A group of fingerprints for the x509 certificate.", + "id": "CertificateFingerprint", + "properties": { + "sha256Hash": { + "description": "The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.", + "type": "string" + } + }, + "type": "object" + }, + "CertificateRevocationList": { + "description": "A CertificateRevocationList corresponds to a signed X.509 certificate Revocation List (CRL). A CRL contains the serial numbers of certificates that should no longer be trusted.", + "id": "CertificateRevocationList", + "properties": { + "accessUrl": { + "description": "Output only. The location where 'pem_crl' can be accessed.", + "readOnly": true, + "type": "string" + }, + "createTime": { + "description": "Output only. The time at which this CertificateRevocationList was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Labels with user-defined metadata.", + "type": "object" + }, + "name": { + "description": "Output only. The resource path for this CertificateRevocationList in the format `projects/*/locations/*/certificateAuthorities/*/ certificateRevocationLists/*`.", + "readOnly": true, + "type": "string" + }, + "pemCrl": { + "description": "Output only. The PEM-encoded X.509 CRL.", + "readOnly": true, + "type": "string" + }, + "revokedCertificates": { + "description": "Output only. The revoked serial numbers that appear in pem_crl.", + "items": { + "$ref": "RevokedCertificate" + }, + "readOnly": true, + "type": "array" + }, + "sequenceNumber": { + "description": "Output only. The CRL sequence number that appears in pem_crl.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. The State for this CertificateRevocationList.", + "enum": [ + "STATE_UNSPECIFIED", + "ACTIVE", + "SUPERSEDED" + ], + "enumDescriptions": [ + "Not specified.", + "The CertificateRevocationList is up to date.", + "The CertificateRevocationList is no longer current." + ], + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. The time at which this CertificateRevocationList was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "DisableCertificateAuthorityRequest": { + "description": "Request message for CertificateAuthorityService.DisableCertificateAuthority.", + "id": "DisableCertificateAuthorityRequest", + "properties": { + "requestId": { + "description": "Optional. An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "type": "string" + } + }, + "type": "object" + }, + "Empty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "id": "Empty", + "properties": {}, + "type": "object" + }, + "EnableCertificateAuthorityRequest": { + "description": "Request message for CertificateAuthorityService.EnableCertificateAuthority.", + "id": "EnableCertificateAuthorityRequest", + "properties": { + "requestId": { + "description": "Optional. An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "type": "string" + } + }, + "type": "object" + }, + "Expr": { + "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", + "id": "Expr", + "properties": { + "description": { + "description": "Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.", + "type": "string" + }, + "expression": { + "description": "Textual representation of an expression in Common Expression Language syntax.", + "type": "string" + }, + "location": { + "description": "Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.", + "type": "string" + }, + "title": { + "description": "Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.", + "type": "string" + } + }, + "type": "object" + }, + "ExtendedKeyUsageOptions": { + "description": "KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value.", + "id": "ExtendedKeyUsageOptions", + "properties": { + "clientAuth": { + "description": "Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as \"TLS WWW client authentication\", though regularly used for non-WWW TLS.", + "type": "boolean" + }, + "codeSigning": { + "description": "Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as \"Signing of downloadable executable code client authentication\".", + "type": "boolean" + }, + "emailProtection": { + "description": "Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as \"Email protection\".", + "type": "boolean" + }, + "ocspSigning": { + "description": "Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as \"Signing OCSP responses\".", + "type": "boolean" + }, + "serverAuth": { + "description": "Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as \"TLS WWW server authentication\", though regularly used for non-WWW TLS.", + "type": "boolean" + }, + "timeStamping": { + "description": "Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as \"Binding the hash of an object to a time\".", + "type": "boolean" + } + }, + "type": "object" + }, + "FetchCertificateAuthorityCsrResponse": { + "description": "Response message for CertificateAuthorityService.FetchCertificateAuthorityCsr.", + "id": "FetchCertificateAuthorityCsrResponse", + "properties": { + "pemCsr": { + "description": "Output only. The PEM-encoded signed certificate signing request (CSR).", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "IssuanceModes": { + "description": "IssuanceModes specifies the allowed ways in which Certificates may be requested from this CertificateAuthority.", + "id": "IssuanceModes", + "properties": { + "allowConfigBasedIssuance": { + "description": "Required. When true, allows callers to create Certificates by specifying a CertificateConfig.", + "type": "boolean" + }, + "allowCsrBasedIssuance": { + "description": "Required. When true, allows callers to create Certificates by specifying a CSR.", + "type": "boolean" + } + }, + "type": "object" + }, + "IssuingOptions": { + "description": "Options that affect all certificates issued by a CertificateAuthority.", + "id": "IssuingOptions", + "properties": { + "includeCaCertUrl": { + "description": "Required. When true, includes a URL to the issuing CA certificate in the \"authority information access\" X.509 extension.", + "type": "boolean" + }, + "includeCrlAccessUrl": { + "description": "Required. When true, includes a URL to the CRL corresponding to certificates issued from a CertificateAuthority. CRLs will expire 7 days from their creation. However, we will rebuild daily. CRLs are also rebuilt shortly after a certificate is revoked.", + "type": "boolean" + } + }, + "type": "object" + }, + "KeyId": { + "description": "A KeyId identifies a specific public key, usually by hashing the public key.", + "id": "KeyId", + "properties": { + "keyId": { + "description": "Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key.", + "type": "string" + } + }, + "type": "object" + }, + "KeyUsage": { + "description": "A KeyUsage describes key usage values that may appear in an X.509 certificate.", + "id": "KeyUsage", + "properties": { + "baseKeyUsage": { + "$ref": "KeyUsageOptions", + "description": "Describes high-level ways in which a key may be used." + }, + "extendedKeyUsage": { + "$ref": "ExtendedKeyUsageOptions", + "description": "Detailed scenarios in which a key may be used." + }, + "unknownExtendedKeyUsages": { + "description": "Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.", + "items": { + "$ref": "ObjectId" + }, + "type": "array" + } + }, + "type": "object" + }, + "KeyUsageOptions": { + "description": "KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3.", + "id": "KeyUsageOptions", + "properties": { + "certSign": { + "description": "The key may be used to sign certificates.", + "type": "boolean" + }, + "contentCommitment": { + "description": "The key may be used for cryptographic commitments. Note that this may also be referred to as \"non-repudiation\".", + "type": "boolean" + }, + "crlSign": { + "description": "The key may be used sign certificate revocation lists.", + "type": "boolean" + }, + "dataEncipherment": { + "description": "The key may be used to encipher data.", + "type": "boolean" + }, + "decipherOnly": { + "description": "The key may be used to decipher only.", + "type": "boolean" + }, + "digitalSignature": { + "description": "The key may be used for digital signatures.", + "type": "boolean" + }, + "encipherOnly": { + "description": "The key may be used to encipher only.", + "type": "boolean" + }, + "keyAgreement": { + "description": "The key may be used in a key agreement protocol.", + "type": "boolean" + }, + "keyEncipherment": { + "description": "The key may be used to encipher other keys.", + "type": "boolean" + } + }, + "type": "object" + }, + "KeyVersionSpec": { + "description": "A Cloud KMS key configuration that a CertificateAuthority will use.", + "id": "KeyVersionSpec", + "properties": { + "algorithm": { + "description": "Required. The algorithm to use for creating a managed Cloud KMS key for a for a simplified experience. All managed keys will be have their ProtectionLevel as `HSM`.", + "enum": [ + "SIGN_HASH_ALGORITHM_UNSPECIFIED", + "RSA_PSS_2048_SHA256", + "RSA_PSS_3072_SHA256", + "RSA_PSS_4096_SHA256", + "RSA_PKCS1_2048_SHA256", + "RSA_PKCS1_3072_SHA256", + "RSA_PKCS1_4096_SHA256", + "EC_P256_SHA256", + "EC_P384_SHA384" + ], + "enumDescriptions": [ + "Not specified.", + "maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_2048_SHA256", + "maps to CryptoKeyVersionAlgorithm. RSA_SIGN_PSS_3072_SHA256", + "maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_4096_SHA256", + "maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_2048_SHA256", + "maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_3072_SHA256", + "maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_4096_SHA256", + "maps to CryptoKeyVersionAlgorithm.EC_SIGN_P256_SHA256", + "maps to CryptoKeyVersionAlgorithm.EC_SIGN_P384_SHA384" + ], + "type": "string" + }, + "cloudKmsKeyVersion": { + "description": "Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the format `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`. This option enables full flexibility in the key's capabilities and properties.", + "type": "string" + } + }, + "type": "object" + }, + "ListCertificateAuthoritiesResponse": { + "description": "Response message for CertificateAuthorityService.ListCertificateAuthorities.", + "id": "ListCertificateAuthoritiesResponse", + "properties": { + "certificateAuthorities": { + "description": "The list of CertificateAuthorities.", + "items": { + "$ref": "CertificateAuthority" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token to retrieve next page of results. Pass this value in ListCertificateAuthoritiesRequest.next_page_token to retrieve the next page of results.", + "type": "string" + }, + "unreachable": { + "description": "A list of locations (e.g. \"us-west1\") that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListCertificateRevocationListsResponse": { + "description": "Response message for CertificateAuthorityService.ListCertificateRevocationLists.", + "id": "ListCertificateRevocationListsResponse", + "properties": { + "certificateRevocationLists": { + "description": "The list of CertificateRevocationLists.", + "items": { + "$ref": "CertificateRevocationList" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token to retrieve next page of results. Pass this value in ListCertificateRevocationListsRequest.next_page_token to retrieve the next page of results.", + "type": "string" + }, + "unreachable": { + "description": "A list of locations (e.g. \"us-west1\") that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListCertificatesResponse": { + "description": "Response message for CertificateAuthorityService.ListCertificates.", + "id": "ListCertificatesResponse", + "properties": { + "certificates": { + "description": "The list of Certificates.", + "items": { + "$ref": "Certificate" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token to retrieve next page of results. Pass this value in ListCertificatesRequest.next_page_token to retrieve the next page of results.", + "type": "string" + }, + "unreachable": { + "description": "A list of locations (e.g. \"us-west1\") that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListLocationsResponse": { + "description": "The response message for Locations.ListLocations.", + "id": "ListLocationsResponse", + "properties": { + "locations": { + "description": "A list of locations that matches the specified filter in the request.", + "items": { + "$ref": "Location" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + } + }, + "type": "object" + }, + "ListOperationsResponse": { + "description": "The response message for Operations.ListOperations.", + "id": "ListOperationsResponse", + "properties": { + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + }, + "operations": { + "description": "A list of operations that matches the specified filter in the request.", + "items": { + "$ref": "Operation" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListReusableConfigsResponse": { + "description": "Response message for CertificateAuthorityService.ListReusableConfigs.", + "id": "ListReusableConfigsResponse", + "properties": { + "nextPageToken": { + "description": "A token to retrieve next page of results. Pass this value in ListReusableConfigsRequest.next_page_token to retrieve the next page of results.", + "type": "string" + }, + "reusableConfigs": { + "description": "The list of ReusableConfigs.", + "items": { + "$ref": "ReusableConfig" + }, + "type": "array" + }, + "unreachable": { + "description": "A list of locations (e.g. \"us-west1\") that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "Location": { + "description": "A resource that represents Google Cloud Platform location.", + "id": "Location", + "properties": { + "displayName": { + "description": "The friendly name for this location, typically a nearby city name. For example, \"Tokyo\".", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Cross-service attributes for the location. For example {\"cloud.googleapis.com/region\": \"us-east1\"}", + "type": "object" + }, + "locationId": { + "description": "The canonical id for this location. For example: `\"us-east1\"`.", + "type": "string" + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata. For example the available capacity at the given location.", + "type": "object" + }, + "name": { + "description": "Resource name for the location, which may vary between implementations. For example: `\"projects/example-project/locations/us-east1\"`", + "type": "string" + } + }, + "type": "object" + }, + "ObjectId": { + "description": "An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages.", + "id": "ObjectId", + "properties": { + "objectIdPath": { + "description": "Required. The parts of an OID path. The most significant parts of the path come first.", + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array" + } + }, + "type": "object" + }, + "Operation": { + "description": "This resource represents a long-running operation that is the result of a network API call.", + "id": "Operation", + "properties": { + "done": { + "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", + "type": "boolean" + }, + "error": { + "$ref": "Status", + "description": "The error result of the operation in case of failure or cancellation." + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "type": "object" + }, + "name": { + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", + "type": "string" + }, + "response": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "type": "object" + } + }, + "type": "object" + }, + "OperationMetadata": { + "description": "Represents the metadata of the long-running operation.", + "id": "OperationMetadata", + "properties": { + "apiVersion": { + "description": "Output only. API version used to start the operation.", + "readOnly": true, + "type": "string" + }, + "createTime": { + "description": "Output only. The time the operation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "endTime": { + "description": "Output only. The time the operation finished running.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "requestedCancellation": { + "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "readOnly": true, + "type": "boolean" + }, + "statusMessage": { + "description": "Output only. Human-readable status of the operation, if any.", + "readOnly": true, + "type": "string" + }, + "target": { + "description": "Output only. Server-defined resource path for the target of the operation.", + "readOnly": true, + "type": "string" + }, + "verb": { + "description": "Output only. Name of the verb executed by the operation.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "Policy": { + "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", + "id": "Policy", + "properties": { + "auditConfigs": { + "description": "Specifies cloud audit logging configuration for this policy.", + "items": { + "$ref": "AuditConfig" + }, + "type": "array" + }, + "bindings": { + "description": "Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.", + "items": { + "$ref": "Binding" + }, + "type": "array" + }, + "etag": { + "description": "`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.", + "format": "byte", + "type": "string" + }, + "version": { + "description": "Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "PublicKey": { + "description": "A PublicKey describes a public key.", + "id": "PublicKey", + "properties": { + "key": { + "description": "Required. A public key. When this is specified in a request, the padding and encoding can be any of the options described by the respective 'KeyType' value. When this is generated by the service, it will always be an RFC 5280 [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1) structure containing an algorithm identifier and a key.", + "format": "byte", + "type": "string" + }, + "type": { + "description": "Required. The type of public key.", + "enum": [ + "KEY_TYPE_UNSPECIFIED", + "PEM_RSA_KEY", + "PEM_EC_KEY" + ], + "enumDescriptions": [ + "Default unspecified value.", + "A PEM-encoded PKCS#1/RFC 3447 RSAPrivateKey structure, or an RFC 5280 [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1) structure containing the former.", + "A PEM-encoded compressed NIST P-256/secp256r1/prime256v1 or P-384 key, or an RFC 5280 [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1) structure containing the former." + ], + "type": "string" + } + }, + "type": "object" + }, + "RestoreCertificateAuthorityRequest": { + "description": "Request message for CertificateAuthorityService.RestoreCertificateAuthority.", + "id": "RestoreCertificateAuthorityRequest", + "properties": { + "requestId": { + "description": "Optional. An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "type": "string" + } + }, + "type": "object" + }, + "ReusableConfig": { + "description": "A ReusableConfig refers to a managed ReusableConfigValues. Those, in turn, are used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions.", + "id": "ReusableConfig", + "properties": { + "createTime": { + "description": "Output only. The time at which this ReusableConfig was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Optional. A human-readable description of scenarios these ReusableConfigValues may be compatible with.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Labels with user-defined metadata.", + "type": "object" + }, + "name": { + "description": "Output only. The resource path for this ReusableConfig in the format `projects/*/locations/*/reusableConfigs/*`.", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. The time at which this ReusableConfig was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "values": { + "$ref": "ReusableConfigValues", + "description": "Required. The config values." + } + }, + "type": "object" + }, + "ReusableConfigValues": { + "description": "A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions.", + "id": "ReusableConfigValues", + "properties": { + "additionalExtensions": { + "description": "Optional. Describes custom X.509 extensions.", + "items": { + "$ref": "X509Extension" + }, + "type": "array" + }, + "aiaOcspServers": { + "description": "Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the \"Authority Information Access\" extension in the certificate.", + "items": { + "type": "string" + }, + "type": "array" + }, + "caOptions": { + "$ref": "CaOptions", + "description": "Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate." + }, + "keyUsage": { + "$ref": "KeyUsage", + "description": "Optional. Indicates the intended use for keys that correspond to a certificate." + }, + "policyIds": { + "description": "Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.", + "items": { + "$ref": "ObjectId" + }, + "type": "array" + } + }, + "type": "object" + }, + "ReusableConfigWrapper": { + "description": "A ReusableConfigWrapper describes values that may assist in creating an X.509 certificate, or a reference to a pre-defined set of values.", + "id": "ReusableConfigWrapper", + "properties": { + "reusableConfig": { + "description": "Required. A resource path to a ReusableConfig in the format `projects/*/locations/*/reusableConfigs/*`.", + "type": "string" + }, + "reusableConfigValues": { + "$ref": "ReusableConfigValues", + "description": "Required. A user-specified inline ReusableConfigValues." + } + }, + "type": "object" + }, + "RevocationDetails": { + "description": "Describes fields that are relavent to the revocation of a Certificate.", + "id": "RevocationDetails", + "properties": { + "revocationState": { + "description": "Indicates why a Certificate was revoked.", + "enum": [ + "REVOCATION_REASON_UNSPECIFIED", + "KEY_COMPROMISE", + "CERTIFICATE_AUTHORITY_COMPROMISE", + "AFFILIATION_CHANGED", + "SUPERSEDED", + "CESSATION_OF_OPERATION", + "CERTIFICATE_HOLD", + "PRIVILEGE_WITHDRAWN", + "ATTRIBUTE_AUTHORITY_COMPROMISE" + ], + "enumDescriptions": [ + "Default unspecified value. This value does indicate that a Certificate has been revoked, but that a reason has not been recorded.", + "Key material for this Certificate may have leaked.", + "The key material for a certificate authority in the issuing path may have leaked.", + "The subject or other attributes in this Certificate have changed.", + "This Certificate has been superseded.", + "This Certificate or entities in the issuing path have ceased to operate.", + "This Certificate should not be considered valid, it is expected that it may become valid in the future.", + "This Certificate no longer has permission to assert the listed attributes.", + "The authority which determines appropriate attributes for a Certificate may have been compromised." + ], + "type": "string" + }, + "revocationTime": { + "description": "The time at which this Certificate was revoked.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "RevokeCertificateRequest": { + "description": "Request message for CertificateAuthorityService.RevokeCertificate.", + "id": "RevokeCertificateRequest", + "properties": { + "reason": { + "description": "Required. The RevocationReason for revoking this certificate.", + "enum": [ + "REVOCATION_REASON_UNSPECIFIED", + "KEY_COMPROMISE", + "CERTIFICATE_AUTHORITY_COMPROMISE", + "AFFILIATION_CHANGED", + "SUPERSEDED", + "CESSATION_OF_OPERATION", + "CERTIFICATE_HOLD", + "PRIVILEGE_WITHDRAWN", + "ATTRIBUTE_AUTHORITY_COMPROMISE" + ], + "enumDescriptions": [ + "Default unspecified value. This value does indicate that a Certificate has been revoked, but that a reason has not been recorded.", + "Key material for this Certificate may have leaked.", + "The key material for a certificate authority in the issuing path may have leaked.", + "The subject or other attributes in this Certificate have changed.", + "This Certificate has been superseded.", + "This Certificate or entities in the issuing path have ceased to operate.", + "This Certificate should not be considered valid, it is expected that it may become valid in the future.", + "This Certificate no longer has permission to assert the listed attributes.", + "The authority which determines appropriate attributes for a Certificate may have been compromised." + ], + "type": "string" + }, + "requestId": { + "description": "Optional. An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "type": "string" + } + }, + "type": "object" + }, + "RevokedCertificate": { + "description": "Describes a revoked Certificate.", + "id": "RevokedCertificate", + "properties": { + "certificate": { + "description": "The resource path for the Certificate in the format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.", + "type": "string" + }, + "hexSerialNumber": { + "description": "The serial number of the Certificate.", + "type": "string" + }, + "revocationReason": { + "description": "The reason the Certificate was revoked.", + "enum": [ + "REVOCATION_REASON_UNSPECIFIED", + "KEY_COMPROMISE", + "CERTIFICATE_AUTHORITY_COMPROMISE", + "AFFILIATION_CHANGED", + "SUPERSEDED", + "CESSATION_OF_OPERATION", + "CERTIFICATE_HOLD", + "PRIVILEGE_WITHDRAWN", + "ATTRIBUTE_AUTHORITY_COMPROMISE" + ], + "enumDescriptions": [ + "Default unspecified value. This value does indicate that a Certificate has been revoked, but that a reason has not been recorded.", + "Key material for this Certificate may have leaked.", + "The key material for a certificate authority in the issuing path may have leaked.", + "The subject or other attributes in this Certificate have changed.", + "This Certificate has been superseded.", + "This Certificate or entities in the issuing path have ceased to operate.", + "This Certificate should not be considered valid, it is expected that it may become valid in the future.", + "This Certificate no longer has permission to assert the listed attributes.", + "The authority which determines appropriate attributes for a Certificate may have been compromised." + ], + "type": "string" + } + }, + "type": "object" + }, + "ScheduleDeleteCertificateAuthorityRequest": { + "description": "Request message for CertificateAuthorityService.ScheduleDeleteCertificateAuthority.", + "id": "ScheduleDeleteCertificateAuthorityRequest", + "properties": { + "requestId": { + "description": "Optional. An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "type": "string" + } + }, + "type": "object" + }, + "SetIamPolicyRequest": { + "description": "Request message for `SetIamPolicy` method.", + "id": "SetIamPolicyRequest", + "properties": { + "policy": { + "$ref": "Policy", + "description": "REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them." + }, + "updateMask": { + "description": "OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: \"bindings, etag\"`", + "format": "google-fieldmask", + "type": "string" + } + }, + "type": "object" + }, + "Status": { + "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", + "id": "Status", + "properties": { + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "format": "int32", + "type": "integer" + }, + "details": { + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", + "type": "string" + } + }, + "type": "object" + }, + "Subject": { + "description": "Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate.", + "id": "Subject", + "properties": { + "countryCode": { + "description": "The country code of the subject.", + "type": "string" + }, + "locality": { + "description": "The locality or city of the subject.", + "type": "string" + }, + "organization": { + "description": "The organization of the subject.", + "type": "string" + }, + "organizationalUnit": { + "description": "The organizational_unit of the subject.", + "type": "string" + }, + "postalCode": { + "description": "The postal code of the subject.", + "type": "string" + }, + "province": { + "description": "The province, territory, or regional state of the subject.", + "type": "string" + }, + "streetAddress": { + "description": "The street address of the subject.", + "type": "string" + } + }, + "type": "object" + }, + "SubjectAltNames": { + "description": "SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the \"common name\" in the distinguished name).", + "id": "SubjectAltNames", + "properties": { + "customSans": { + "description": "Contains additional subject alternative name values.", + "items": { + "$ref": "X509Extension" + }, + "type": "array" + }, + "dnsNames": { + "description": "Contains only valid, fully-qualified host names.", + "items": { + "type": "string" + }, + "type": "array" + }, + "emailAddresses": { + "description": "Contains only valid RFC 2822 E-mail addresses.", + "items": { + "type": "string" + }, + "type": "array" + }, + "ipAddresses": { + "description": "Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.", + "items": { + "type": "string" + }, + "type": "array" + }, + "uris": { + "description": "Contains only valid RFC 3986 URIs.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "SubjectConfig": { + "description": "These values are used to create the distinguished name and subject alternative name fields in an X.509 certificate.", + "id": "SubjectConfig", + "properties": { + "commonName": { + "description": "Optional. The \"common name\" of the distinguished name.", + "type": "string" + }, + "subject": { + "$ref": "Subject", + "description": "Required. Contains distinguished name fields such as the location and organization." + }, + "subjectAltName": { + "$ref": "SubjectAltNames", + "description": "Optional. The subject alternative name fields." + } + }, + "type": "object" + }, + "SubjectDescription": { + "description": "These values describe fields in an issued X.509 certificate such as the distinguished name, subject alternative names, serial number, and lifetime.", + "id": "SubjectDescription", + "properties": { + "commonName": { + "description": "The \"common name\" of the distinguished name.", + "type": "string" + }, + "hexSerialNumber": { + "description": "The serial number encoded in lowercase hexadecimal.", + "type": "string" + }, + "lifetime": { + "description": "For convenience, the actual lifetime of an issued certificate. Corresponds to 'not_after_time' - 'not_before_time'.", + "format": "google-duration", + "type": "string" + }, + "notAfterTime": { + "description": "The time at which the certificate expires.", + "format": "google-datetime", + "type": "string" + }, + "notBeforeTime": { + "description": "The time at which the certificate becomes valid.", + "format": "google-datetime", + "type": "string" + }, + "subject": { + "$ref": "Subject", + "description": "Contains distinguished name fields such as the location and organization." + }, + "subjectAltName": { + "$ref": "SubjectAltNames", + "description": "The subject alternative name fields." + } + }, + "type": "object" + }, + "SubordinateConfig": { + "description": "Describes a subordinate CA's issuers. This is either a resource path to a known issuing CertificateAuthority, or a PEM issuer certificate chain.", + "id": "SubordinateConfig", + "properties": { + "certificateAuthority": { + "description": "Required. This can refer to a CertificateAuthority in the same project that was used to create a subordinate CertificateAuthority. This field is used for information and usability purposes only. The resource name is in the format `projects/*/locations/*/certificateAuthorities/*`.", + "type": "string" + }, + "pemIssuerChain": { + "$ref": "SubordinateConfigChain", + "description": "Required. Contains the PEM certificate chain for the issuers of this CertificateAuthority, but not pem certificate for this CA itself." + } + }, + "type": "object" + }, + "SubordinateConfigChain": { + "description": "This message describes a subordinate CA's issuer certificate chain. This wrapper exists for compatibility reasons.", + "id": "SubordinateConfigChain", + "properties": { + "pemCertificates": { + "description": "Required. Expected to be in leaf-to-root order according to RFC 5246.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "TestIamPermissionsRequest": { + "description": "Request message for `TestIamPermissions` method.", + "id": "TestIamPermissionsRequest", + "properties": { + "permissions": { + "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "TestIamPermissionsResponse": { + "description": "Response message for `TestIamPermissions` method.", + "id": "TestIamPermissionsResponse", + "properties": { + "permissions": { + "description": "A subset of `TestPermissionsRequest.permissions` that the caller is allowed.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "X509Extension": { + "description": "An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs.", + "id": "X509Extension", + "properties": { + "critical": { + "description": "Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error).", + "type": "boolean" + }, + "objectId": { + "$ref": "ObjectId", + "description": "Required. The OID for this X.509 extension." + }, + "value": { + "description": "Required. The value of this X.509 extension.", + "format": "byte", + "type": "string" + } + }, + "type": "object" + } + }, + "servicePath": "", + "title": "Certificate Authority API", + "version": "v1beta1", + "version_module": true +} \ No newline at end of file diff --git a/privateca/v1beta1/privateca-gen.go b/privateca/v1beta1/privateca-gen.go new file mode 100644 index 00000000000..8ab19907489 --- /dev/null +++ b/privateca/v1beta1/privateca-gen.go @@ -0,0 +1,8681 @@ +// Copyright 2020 Google LLC. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated file. DO NOT EDIT. + +// Package privateca provides access to the Certificate Authority API. +// +// For product documentation, see: https://cloud.google.com/ +// +// Creating a client +// +// Usage example: +// +// import "google.golang.org/api/privateca/v1beta1" +// ... +// ctx := context.Background() +// privatecaService, err := privateca.NewService(ctx) +// +// In this example, Google Application Default Credentials are used for authentication. +// +// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// +// Other authentication options +// +// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// +// privatecaService, err := privateca.NewService(ctx, option.WithAPIKey("AIza...")) +// +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// +// config := &oauth2.Config{...} +// // ... +// token, err := config.Exchange(ctx, ...) +// privatecaService, err := privateca.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) +// +// See https://godoc.org/google.golang.org/api/option/ for details on options. +package privateca // import "google.golang.org/api/privateca/v1beta1" + +import ( + "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + googleapi "google.golang.org/api/googleapi" + gensupport "google.golang.org/api/internal/gensupport" + option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" + htransport "google.golang.org/api/transport/http" +) + +// Always reference these packages, just in case the auto-generated code +// below doesn't. +var _ = bytes.NewBuffer +var _ = strconv.Itoa +var _ = fmt.Sprintf +var _ = json.NewDecoder +var _ = io.Copy +var _ = url.Parse +var _ = gensupport.MarshalJSON +var _ = googleapi.Version +var _ = errors.New +var _ = strings.Replace +var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint + +const apiId = "privateca:v1beta1" +const apiName = "privateca" +const apiVersion = "v1beta1" +const basePath = "https://privateca.googleapis.com/" +const mtlsBasePath = "https://privateca.mtls.googleapis.com/" + +// OAuth2 scopes used by this API. +const ( + // View and manage your data across Google Cloud Platform services + CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" +) + +// NewService creates a new Service. +func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + scopesOption := option.WithScopes( + "https://www.googleapis.com/auth/cloud-platform", + ) + // NOTE: prepend, so we don't override user-specified scopes. + opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + client, endpoint, err := htransport.NewClient(ctx, opts...) + if err != nil { + return nil, err + } + s, err := New(client) + if err != nil { + return nil, err + } + if endpoint != "" { + s.BasePath = endpoint + } + return s, nil +} + +// New creates a new Service. It uses the provided http.Client for requests. +// +// Deprecated: please use NewService instead. +// To provide a custom HTTP client, use option.WithHTTPClient. +// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. +func New(client *http.Client) (*Service, error) { + if client == nil { + return nil, errors.New("client is nil") + } + s := &Service{client: client, BasePath: basePath} + s.Projects = NewProjectsService(s) + return s, nil +} + +type Service struct { + client *http.Client + BasePath string // API endpoint base URL + UserAgent string // optional additional User-Agent fragment + + Projects *ProjectsService +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewProjectsService(s *Service) *ProjectsService { + rs := &ProjectsService{s: s} + rs.Locations = NewProjectsLocationsService(s) + return rs +} + +type ProjectsService struct { + s *Service + + Locations *ProjectsLocationsService +} + +func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { + rs := &ProjectsLocationsService{s: s} + rs.CertificateAuthorities = NewProjectsLocationsCertificateAuthoritiesService(s) + rs.Operations = NewProjectsLocationsOperationsService(s) + rs.ReusableConfigs = NewProjectsLocationsReusableConfigsService(s) + return rs +} + +type ProjectsLocationsService struct { + s *Service + + CertificateAuthorities *ProjectsLocationsCertificateAuthoritiesService + + Operations *ProjectsLocationsOperationsService + + ReusableConfigs *ProjectsLocationsReusableConfigsService +} + +func NewProjectsLocationsCertificateAuthoritiesService(s *Service) *ProjectsLocationsCertificateAuthoritiesService { + rs := &ProjectsLocationsCertificateAuthoritiesService{s: s} + rs.CertificateRevocationLists = NewProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService(s) + rs.Certificates = NewProjectsLocationsCertificateAuthoritiesCertificatesService(s) + return rs +} + +type ProjectsLocationsCertificateAuthoritiesService struct { + s *Service + + CertificateRevocationLists *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService + + Certificates *ProjectsLocationsCertificateAuthoritiesCertificatesService +} + +func NewProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService(s *Service) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService { + rs := &ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService{s: s} + return rs +} + +type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService struct { + s *Service +} + +func NewProjectsLocationsCertificateAuthoritiesCertificatesService(s *Service) *ProjectsLocationsCertificateAuthoritiesCertificatesService { + rs := &ProjectsLocationsCertificateAuthoritiesCertificatesService{s: s} + return rs +} + +type ProjectsLocationsCertificateAuthoritiesCertificatesService struct { + s *Service +} + +func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { + rs := &ProjectsLocationsOperationsService{s: s} + return rs +} + +type ProjectsLocationsOperationsService struct { + s *Service +} + +func NewProjectsLocationsReusableConfigsService(s *Service) *ProjectsLocationsReusableConfigsService { + rs := &ProjectsLocationsReusableConfigsService{s: s} + return rs +} + +type ProjectsLocationsReusableConfigsService struct { + s *Service +} + +// AccessUrls: URLs where a CertificateAuthority will publish content. +type AccessUrls struct { + // CaCertificateAccessUrl: The URL where this CertificateAuthority's CA + // certificate is published. This will only be set for CAs that have + // been activated. + CaCertificateAccessUrl string `json:"caCertificateAccessUrl,omitempty"` + + // CrlAccessUrl: The URL where this CertificateAuthority's CRLs are + // published. This will only be set for CAs that have been activated. + CrlAccessUrl string `json:"crlAccessUrl,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "CaCertificateAccessUrl") to unconditionally include in API requests. + // By default, fields with empty values are omitted from API requests. + // However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CaCertificateAccessUrl") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AccessUrls) MarshalJSON() ([]byte, error) { + type NoMethod AccessUrls + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ActivateCertificateAuthorityRequest: Request message for +// CertificateAuthorityService.ActivateCertificateAuthority. +type ActivateCertificateAuthorityRequest struct { + // PemCaCertificate: Required. The signed CA certificate issued from + // FetchCertificateAuthorityCsrResponse.pem_csr. + PemCaCertificate string `json:"pemCaCertificate,omitempty"` + + // RequestId: Optional. An ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will + // know to ignore the request if it has already been completed. The + // server will guarantee that for at least 60 minutes since the first + // request. For example, consider a situation where you make an initial + // request and t he request times out. If you make the request again + // with the same request ID, the server can check if original operation + // with the same request ID was received, and if so, will ignore the + // second request. This prevents clients from accidentally creating + // duplicate commitments. The request ID must be a valid UUID with the + // exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + RequestId string `json:"requestId,omitempty"` + + // SubordinateConfig: Required. Must include information about the + // issuer of 'pem_ca_certificate', and any further issuers until the + // self-signed CA. + SubordinateConfig *SubordinateConfig `json:"subordinateConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PemCaCertificate") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PemCaCertificate") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ActivateCertificateAuthorityRequest) MarshalJSON() ([]byte, error) { + type NoMethod ActivateCertificateAuthorityRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type AllowedConfigList struct { + // AllowedConfigValues: Required. All Certificates issued by the + // CertificateAuthority must match at least one listed + // ReusableConfigWrapper. If a ReusableConfigWrapper has an empty field, + // any value will be allowed for that field. + AllowedConfigValues []*ReusableConfigWrapper `json:"allowedConfigValues,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AllowedConfigValues") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AllowedConfigValues") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AllowedConfigList) MarshalJSON() ([]byte, error) { + type NoMethod AllowedConfigList + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AllowedSubjectAltNames: AllowedSubjectAltNames specifies the allowed +// values for SubjectAltNames by the CertificateAuthority when issuing +// Certificates. +type AllowedSubjectAltNames struct { + // AllowCustomSans: Optional. Specifies if to allow custom X509Extension + // values. + AllowCustomSans bool `json:"allowCustomSans,omitempty"` + + // AllowGlobbingDnsWildcards: Optional. Specifies if glob patterns used + // for allowed_dns_names allow wildcard certificates. If this is set, + // certificate requests with wildcard domains will be permitted to match + // a glob pattern specified in allowed_dns_names. Otherwise, certificate + // requests with wildcard domains will be permitted only if + // allowed_dns_names contains a literal wildcard. + AllowGlobbingDnsWildcards bool `json:"allowGlobbingDnsWildcards,omitempty"` + + // AllowedDnsNames: Optional. Contains valid, fully-qualified host + // names. Glob patterns are also supported. To allow an explicit + // wildcard certificate, escape with backlash (i.e. "\*"). E.g. for + // globbed entries: '*bar.com' will allow 'foo.bar.com', but not + // '*.bar.com', unless the allow_globbing_dns_wildcards field is set. + // E.g. for wildcard entries: '\*.bar.com' will allow '*.bar.com', but + // not 'foo.bar.com'. + AllowedDnsNames []string `json:"allowedDnsNames,omitempty"` + + // AllowedEmailAddresses: Optional. Contains valid RFC 2822 E-mail + // addresses. Glob patterns are also supported. + AllowedEmailAddresses []string `json:"allowedEmailAddresses,omitempty"` + + // AllowedIps: Optional. Contains valid 32-bit IPv4 addresses and subnet + // ranges or RFC 4291 IPv6 addresses and subnet ranges. Subnet ranges + // are specified using the '/' notation (e.g. 10.0.0.0/8, + // 2001:700:300:1800::/64). Glob patterns are supported only for ip + // address entries (i.e. not for subnet ranges). + AllowedIps []string `json:"allowedIps,omitempty"` + + // AllowedUris: Optional. Contains valid RFC 3986 URIs. Glob patterns + // are also supported. To match across path seperators (i.e. '/') use + // the double star glob pattern (i.e. '**'). + AllowedUris []string `json:"allowedUris,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AllowCustomSans") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AllowCustomSans") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AllowedSubjectAltNames) MarshalJSON() ([]byte, error) { + type NoMethod AllowedSubjectAltNames + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AuditConfig: Specifies the audit configuration for a service. The +// configuration determines which permission types are logged, and what +// identities, if any, are exempted from logging. An AuditConfig must +// have one or more AuditLogConfigs. If there are AuditConfigs for both +// `allServices` and a specific service, the union of the two +// AuditConfigs is used for that service: the log_types specified in +// each AuditConfig are enabled, and the exempted_members in each +// AuditLogConfig are exempted. Example Policy with multiple +// AuditConfigs: { "audit_configs": [ { "service": "allServices", +// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": +// [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { +// "log_type": "ADMIN_READ" } ] }, { "service": +// "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": +// "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ +// "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy +// enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts +// jose@example.com from DATA_READ logging, and aliya@example.com from +// DATA_WRITE logging. +type AuditConfig struct { + // AuditLogConfigs: The configuration for logging of each type of + // permission. + AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"` + + // Service: Specifies a service that will be enabled for audit logging. + // For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + // `allServices` is a special value that covers all services. + Service string `json:"service,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AuditLogConfigs") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AuditConfig) MarshalJSON() ([]byte, error) { + type NoMethod AuditConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AuditLogConfig: Provides the configuration for logging a type of +// permissions. Example: { "audit_log_configs": [ { "log_type": +// "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { +// "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and +// 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ +// logging. +type AuditLogConfig struct { + // ExemptedMembers: Specifies the identities that do not cause logging + // for this type of permission. Follows the same format of + // Binding.members. + ExemptedMembers []string `json:"exemptedMembers,omitempty"` + + // LogType: The log type that this config enables. + // + // Possible values: + // "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this. + // "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy + // "DATA_WRITE" - Data writes. Example: CloudSQL Users create + // "DATA_READ" - Data reads. Example: CloudSQL Users list + LogType string `json:"logType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExemptedMembers") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExemptedMembers") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { + type NoMethod AuditLogConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Binding: Associates `members` with a `role`. +type Binding struct { + // Condition: The condition that is associated with this binding. If the + // condition evaluates to `true`, then this binding applies to the + // current request. If the condition evaluates to `false`, then this + // binding does not apply to the current request. However, a different + // role binding might grant the same role to one or more of the members + // in this binding. To learn which resources support conditions in their + // IAM policies, see the [IAM + // documentation](https://cloud.google.com/iam/help/conditions/resource-p + // olicies). + Condition *Expr `json:"condition,omitempty"` + + // Members: Specifies the identities requesting access for a Cloud + // Platform resource. `members` can have the following values: * + // `allUsers`: A special identifier that represents anyone who is on the + // internet; with or without a Google account. * + // `allAuthenticatedUsers`: A special identifier that represents anyone + // who is authenticated with a Google account or a service account. * + // `user:{emailid}`: An email address that represents a specific Google + // account. For example, `alice@example.com` . * + // `serviceAccount:{emailid}`: An email address that represents a + // service account. For example, + // `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An + // email address that represents a Google group. For example, + // `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An + // email address (plus unique identifier) representing a user that has + // been recently deleted. For example, + // `alice@example.com?uid=123456789012345678901`. If the user is + // recovered, this value reverts to `user:{emailid}` and the recovered + // user retains the role in the binding. * + // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address + // (plus unique identifier) representing a service account that has been + // recently deleted. For example, + // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + // If the service account is undeleted, this value reverts to + // `serviceAccount:{emailid}` and the undeleted service account retains + // the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: + // An email address (plus unique identifier) representing a Google group + // that has been recently deleted. For example, + // `admins@example.com?uid=123456789012345678901`. If the group is + // recovered, this value reverts to `group:{emailid}` and the recovered + // group retains the role in the binding. * `domain:{domain}`: The G + // Suite domain (primary) that represents all the users of that domain. + // For example, `google.com` or `example.com`. + Members []string `json:"members,omitempty"` + + // Role: Role that is assigned to `members`. For example, + // `roles/viewer`, `roles/editor`, or `roles/owner`. + Role string `json:"role,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Condition") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Condition") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Binding) MarshalJSON() ([]byte, error) { + type NoMethod Binding + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CaOptions: Describes values that are relevant in a CA certificate. +type CaOptions struct { + // IsCa: Optional. Refers to the "CA" X.509 extension, which is a + // boolean value. When this value is missing, the extension will be + // omitted from the CA certificate. + IsCa bool `json:"isCa,omitempty"` + + // MaxIssuerPathLength: Optional. Refers to the path length restriction + // X.509 extension. For a CA certificate, this value describes the depth + // of subordinate CA certificates that are allowed. If this value is + // less than 0, the request will fail. If this value is missing, the max + // path length will be omitted from the CA certificate. + MaxIssuerPathLength int64 `json:"maxIssuerPathLength,omitempty"` + + // ForceSendFields is a list of field names (e.g. "IsCa") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "IsCa") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CaOptions) MarshalJSON() ([]byte, error) { + type NoMethod CaOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CancelOperationRequest: The request message for +// Operations.CancelOperation. +type CancelOperationRequest struct { +} + +// Certificate: A Certificate corresponds to a signed X.509 certificate +// issued by a CertificateAuthority. +type Certificate struct { + // CertificateDescription: Output only. A structured description of the + // issued X.509 certificate. + CertificateDescription *CertificateDescription `json:"certificateDescription,omitempty"` + + // Config: Immutable. A description of the certificate and key that does + // not require X.509 or ASN.1. + Config *CertificateConfig `json:"config,omitempty"` + + // CreateTime: Output only. The time at which this Certificate was + // created. + CreateTime string `json:"createTime,omitempty"` + + // Labels: Optional. Labels with user-defined metadata. + Labels map[string]string `json:"labels,omitempty"` + + // Lifetime: Required. Immutable. The desired lifetime of a certificate. + // Used to create the "not_before_time" and "not_after_time" fields + // inside an X.509 certificate. Note that the lifetime may be truncated + // if it would extend past the life of any certificate authority in the + // issuing chain. + Lifetime string `json:"lifetime,omitempty"` + + // Name: Output only. The resource path for this Certificate in the + // format + // `projects/*/locations/*/certificateAuthorities/*/certificates/*`. + Name string `json:"name,omitempty"` + + // PemCertificate: Output only. The pem-encoded, signed X.509 + // certificate. + PemCertificate string `json:"pemCertificate,omitempty"` + + // PemCertificateChain: Output only. The chain that may be used to + // verify the X.509 certificate. Expected to be in issuer-to-root order + // according to RFC 5246. + PemCertificateChain []string `json:"pemCertificateChain,omitempty"` + + // PemCsr: Immutable. A pem-encoded X.509 certificate signing request + // (CSR). + PemCsr string `json:"pemCsr,omitempty"` + + // RevocationDetails: Output only. Details regarding the revocation of + // this Certificate. This Certificate is considered revoked if and only + // if this field is present. + RevocationDetails *RevocationDetails `json:"revocationDetails,omitempty"` + + // UpdateTime: Output only. The time at which this Certificate was + // updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "CertificateDescription") to unconditionally include in API requests. + // By default, fields with empty values are omitted from API requests. + // However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CertificateDescription") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *Certificate) MarshalJSON() ([]byte, error) { + type NoMethod Certificate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CertificateAuthority: A CertificateAuthority represents an individual +// Certificate Authority. A CertificateAuthority can be used to create +// Certificates. +type CertificateAuthority struct { + // AccessUrls: Output only. URLs for accessing content published by this + // CA, such as the CA certificate and CRLs. + AccessUrls *AccessUrls `json:"accessUrls,omitempty"` + + // CaCertificateDescriptions: Output only. A structured description of + // this CertificateAuthority's CA certificate and its issuers. Ordered + // as self-to-root. + CaCertificateDescriptions []*CertificateDescription `json:"caCertificateDescriptions,omitempty"` + + // CertificatePolicy: Optional. The CertificateAuthorityPolicy to + // enforce when issuing Certificates from this CertificateAuthority. + CertificatePolicy *CertificateAuthorityPolicy `json:"certificatePolicy,omitempty"` + + // Config: Required. Immutable. The config used to create a self-signed + // X.509 certificate or CSR. + Config *CertificateConfig `json:"config,omitempty"` + + // CreateTime: Output only. The time at which this CertificateAuthority + // was created. + CreateTime string `json:"createTime,omitempty"` + + // DeleteTime: Output only. The time at which this CertificateAuthority + // will be deleted, if scheduled for deletion. + DeleteTime string `json:"deleteTime,omitempty"` + + // GcsBucket: Immutable. The name of a Cloud Storage bucket where this + // CertificateAuthority will publish content, such as the CA certificate + // and CRLs. This must be a bucket name, without any prefixes (such as + // `gs://`) or suffixes (such as `.googleapis.com`). For example, to use + // a bucket named `my-bucket`, you would simply specify `my-bucket`. If + // not specified, a managed bucket will be created. + GcsBucket string `json:"gcsBucket,omitempty"` + + // IssuingOptions: Optional. The IssuingOptions to follow when issuing + // Certificates from this CertificateAuthority. + IssuingOptions *IssuingOptions `json:"issuingOptions,omitempty"` + + // KeySpec: Required. Immutable. Used when issuing certificates for this + // CertificateAuthority. If this CertificateAuthority is a self-signed + // CertificateAuthority, this key is also used to sign the self-signed + // CA certificate. Otherwise, it is used to sign a CSR. + KeySpec *KeyVersionSpec `json:"keySpec,omitempty"` + + // Labels: Optional. Labels with user-defined metadata. + Labels map[string]string `json:"labels,omitempty"` + + // Lifetime: Required. The desired lifetime of the CA certificate. Used + // to create the "not_before_time" and "not_after_time" fields inside an + // X.509 certificate. + Lifetime string `json:"lifetime,omitempty"` + + // Name: Output only. The resource name for this CertificateAuthority in + // the format `projects/*/locations/*/certificateAuthorities/*`. + Name string `json:"name,omitempty"` + + // PemCaCertificates: Output only. This CertificateAuthority's + // certificate chain, including the current CertificateAuthority's + // certificate. Ordered such that the root issuer is the final element + // (consistent with RFC 5246). For a self-signed CA, this will only list + // the current CertificateAuthority's certificate. + PemCaCertificates []string `json:"pemCaCertificates,omitempty"` + + // State: Output only. The State for this CertificateAuthority. + // + // Possible values: + // "STATE_UNSPECIFIED" - Not specified. + // "ENABLED" - Certificates can be issued from this CA. CRLs will be + // generated for this CA. + // "DISABLED" - Certificates cannot be issued from this CA. CRLs will + // still be generated. + // "PENDING_ACTIVATION" - Certificates cannot be issued from this CA. + // CRLs will not be generated. + // "PENDING_DELETION" - Certificates cannot be issued from this CA. + // CRLs will not be generated. + State string `json:"state,omitempty"` + + // SubordinateConfig: Optional. If this is a subordinate + // CertificateAuthority, this field will be set with the subordinate + // configuration, which describes its issuers. This may be updated, but + // this CertificateAuthority must continue to validate. + SubordinateConfig *SubordinateConfig `json:"subordinateConfig,omitempty"` + + // Tier: Required. Immutable. The Tier of this CertificateAuthority. + // + // Possible values: + // "TIER_UNSPECIFIED" - Not specified. + // "ENTERPRISE" - Enterprise tier. + // "DEVOPS" - DevOps tier. + Tier string `json:"tier,omitempty"` + + // Type: Required. Immutable. The Type of this CertificateAuthority. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Not specified. + // "SELF_SIGNED" - Self-signed CA. + // "SUBORDINATE" - Subordinate CA. Could be issued by a Private CA + // CertificateAuthority or an unmanaged CA. + Type string `json:"type,omitempty"` + + // UpdateTime: Output only. The time at which this CertificateAuthority + // was updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AccessUrls") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AccessUrls") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CertificateAuthority) MarshalJSON() ([]byte, error) { + type NoMethod CertificateAuthority + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CertificateAuthorityPolicy: The issuing policy for a +// CertificateAuthority. Certificates will not be successfully issued +// from this CertificateAuthority if they violate the policy. +type CertificateAuthorityPolicy struct { + // AllowedCommonNames: Optional. If any value is specified here, then + // all Certificates issued by the CertificateAuthority must match at + // least one listed value. If no value is specified, all values will be + // allowed for this fied. Glob patterns are also supported. + AllowedCommonNames []string `json:"allowedCommonNames,omitempty"` + + // AllowedConfigList: Optional. All Certificates issued by the + // CertificateAuthority must match at least one listed + // ReusableConfigWrapper in the list. + AllowedConfigList *AllowedConfigList `json:"allowedConfigList,omitempty"` + + // AllowedIssuanceModes: Optional. If specified, then only methods + // allowed in the IssuanceModes may be used to issue Certificates. + AllowedIssuanceModes *IssuanceModes `json:"allowedIssuanceModes,omitempty"` + + // AllowedLocationsAndOrganizations: Optional. If any Subject is + // specified here, then all Certificates issued by the + // CertificateAuthority must match at least one listed Subject. If a + // Subject has an empty field, any value will be allowed for that field. + AllowedLocationsAndOrganizations []*Subject `json:"allowedLocationsAndOrganizations,omitempty"` + + // AllowedSans: Optional. If a AllowedSubjectAltNames is specified here, + // then all Certificates issued by the CertificateAuthority must match + // AllowedSubjectAltNames. If no value or an empty value is specified, + // any value will be allowed for the SubjectAltNames field. + AllowedSans *AllowedSubjectAltNames `json:"allowedSans,omitempty"` + + // MaximumLifetime: Optional. The maximum lifetime allowed by the + // CertificateAuthority. Note that if the any part if the issuing chain + // expires before a Certificate's requested maximum_lifetime, the + // effective lifetime will be explicitly truncated. + MaximumLifetime string `json:"maximumLifetime,omitempty"` + + // OverwriteConfigValues: Optional. All Certificates issued by the + // CertificateAuthority will use the provided configuration values, + // overwriting any requested configuration values. + OverwriteConfigValues *ReusableConfigWrapper `json:"overwriteConfigValues,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AllowedCommonNames") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AllowedCommonNames") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CertificateAuthorityPolicy) MarshalJSON() ([]byte, error) { + type NoMethod CertificateAuthorityPolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CertificateConfig: A CertificateConfig describes an X.509 certificate +// or CSR that is to be created, as an alternative to using ASN.1. +type CertificateConfig struct { + // PublicKey: Optional. The public key that corresponds to this config. + // This is, for example, used when issuing Certificates, but not when + // creating a self-signed CertificateAuthority or CertificateAuthority + // CSR. + PublicKey *PublicKey `json:"publicKey,omitempty"` + + // ReusableConfig: Required. Describes how some of the technical fields + // in a certificate should be populated. + ReusableConfig *ReusableConfigWrapper `json:"reusableConfig,omitempty"` + + // SubjectConfig: Required. Specifies some of the values in a + // certificate that are related to the subject. + SubjectConfig *SubjectConfig `json:"subjectConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PublicKey") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PublicKey") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CertificateConfig) MarshalJSON() ([]byte, error) { + type NoMethod CertificateConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CertificateDescription: A CertificateDescription describes an X.509 +// certificate or CSR that has been issued, as an alternative to using +// ASN.1 / X.509. +type CertificateDescription struct { + // AiaIssuingCertificateUrls: Describes lists of issuer CA certificate + // URLs that appear in the "Authority Information Access" extension in + // the certificate. + AiaIssuingCertificateUrls []string `json:"aiaIssuingCertificateUrls,omitempty"` + + // AuthorityKeyId: Identifies the subject_key_id of the parent + // certificate, per https://tools.ietf.org/html/rfc5280#section-4.2.1.1 + AuthorityKeyId *KeyId `json:"authorityKeyId,omitempty"` + + // CertFingerprint: The hash of the x.509 certificate. + CertFingerprint *CertificateFingerprint `json:"certFingerprint,omitempty"` + + // ConfigValues: Describes some of the technical fields in a + // certificate. + ConfigValues *ReusableConfigValues `json:"configValues,omitempty"` + + // CrlDistributionPoints: Describes a list of locations to obtain CRL + // information, i.e. the DistributionPoint.fullName described by + // https://tools.ietf.org/html/rfc5280#section-4.2.1.13 + CrlDistributionPoints []string `json:"crlDistributionPoints,omitempty"` + + // PublicKey: The public key that corresponds to an issued certificate. + PublicKey *PublicKey `json:"publicKey,omitempty"` + + // SubjectDescription: Describes some of the values in a certificate + // that are related to the subject and lifetime. + SubjectDescription *SubjectDescription `json:"subjectDescription,omitempty"` + + // SubjectKeyId: Provides a means of identifiying certificates that + // contain a particular public key, per + // https://tools.ietf.org/html/rfc5280#section-4.2.1.2. + SubjectKeyId *KeyId `json:"subjectKeyId,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AiaIssuingCertificateUrls") to unconditionally include in API + // requests. By default, fields with empty values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "AiaIssuingCertificateUrls") to include in API requests with the JSON + // null value. By default, fields with empty values are omitted from API + // requests. However, any field with an empty value appearing in + // NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CertificateDescription) MarshalJSON() ([]byte, error) { + type NoMethod CertificateDescription + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CertificateFingerprint: A group of fingerprints for the x509 +// certificate. +type CertificateFingerprint struct { + // Sha256Hash: The SHA 256 hash, encoded in hexadecimal, of the DER x509 + // certificate. + Sha256Hash string `json:"sha256Hash,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Sha256Hash") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Sha256Hash") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CertificateFingerprint) MarshalJSON() ([]byte, error) { + type NoMethod CertificateFingerprint + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CertificateRevocationList: A CertificateRevocationList corresponds to +// a signed X.509 certificate Revocation List (CRL). A CRL contains the +// serial numbers of certificates that should no longer be trusted. +type CertificateRevocationList struct { + // AccessUrl: Output only. The location where 'pem_crl' can be accessed. + AccessUrl string `json:"accessUrl,omitempty"` + + // CreateTime: Output only. The time at which this + // CertificateRevocationList was created. + CreateTime string `json:"createTime,omitempty"` + + // Labels: Optional. Labels with user-defined metadata. + Labels map[string]string `json:"labels,omitempty"` + + // Name: Output only. The resource path for this + // CertificateRevocationList in the format + // `projects/*/locations/*/certificateAuthorities/*/ + // certificateRevocationLists/*`. + Name string `json:"name,omitempty"` + + // PemCrl: Output only. The PEM-encoded X.509 CRL. + PemCrl string `json:"pemCrl,omitempty"` + + // RevokedCertificates: Output only. The revoked serial numbers that + // appear in pem_crl. + RevokedCertificates []*RevokedCertificate `json:"revokedCertificates,omitempty"` + + // SequenceNumber: Output only. The CRL sequence number that appears in + // pem_crl. + SequenceNumber int64 `json:"sequenceNumber,omitempty,string"` + + // State: Output only. The State for this CertificateRevocationList. + // + // Possible values: + // "STATE_UNSPECIFIED" - Not specified. + // "ACTIVE" - The CertificateRevocationList is up to date. + // "SUPERSEDED" - The CertificateRevocationList is no longer current. + State string `json:"state,omitempty"` + + // UpdateTime: Output only. The time at which this + // CertificateRevocationList was updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AccessUrl") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AccessUrl") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CertificateRevocationList) MarshalJSON() ([]byte, error) { + type NoMethod CertificateRevocationList + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DisableCertificateAuthorityRequest: Request message for +// CertificateAuthorityService.DisableCertificateAuthority. +type DisableCertificateAuthorityRequest struct { + // RequestId: Optional. An ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will + // know to ignore the request if it has already been completed. The + // server will guarantee that for at least 60 minutes since the first + // request. For example, consider a situation where you make an initial + // request and t he request times out. If you make the request again + // with the same request ID, the server can check if original operation + // with the same request ID was received, and if so, will ignore the + // second request. This prevents clients from accidentally creating + // duplicate commitments. The request ID must be a valid UUID with the + // exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + RequestId string `json:"requestId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "RequestId") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "RequestId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DisableCertificateAuthorityRequest) MarshalJSON() ([]byte, error) { + type NoMethod DisableCertificateAuthorityRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Empty: A generic empty message that you can re-use to avoid defining +// duplicated empty messages in your APIs. A typical example is to use +// it as the request or the response type of an API method. For +// instance: service Foo { rpc Bar(google.protobuf.Empty) returns +// (google.protobuf.Empty); } The JSON representation for `Empty` is +// empty JSON object `{}`. +type Empty struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// EnableCertificateAuthorityRequest: Request message for +// CertificateAuthorityService.EnableCertificateAuthority. +type EnableCertificateAuthorityRequest struct { + // RequestId: Optional. An ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will + // know to ignore the request if it has already been completed. The + // server will guarantee that for at least 60 minutes since the first + // request. For example, consider a situation where you make an initial + // request and t he request times out. If you make the request again + // with the same request ID, the server can check if original operation + // with the same request ID was received, and if so, will ignore the + // second request. This prevents clients from accidentally creating + // duplicate commitments. The request ID must be a valid UUID with the + // exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + RequestId string `json:"requestId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "RequestId") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "RequestId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnableCertificateAuthorityRequest) MarshalJSON() ([]byte, error) { + type NoMethod EnableCertificateAuthorityRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Expr: Represents a textual expression in the Common Expression +// Language (CEL) syntax. CEL is a C-like expression language. The +// syntax and semantics of CEL are documented at +// https://github.com/google/cel-spec. Example (Comparison): title: +// "Summary size limit" description: "Determines if a summary is less +// than 100 chars" expression: "document.summary.size() < 100" Example +// (Equality): title: "Requestor is owner" description: "Determines if +// requestor is the document owner" expression: "document.owner == +// request.auth.claims.email" Example (Logic): title: "Public documents" +// description: "Determine whether the document should be publicly +// visible" expression: "document.type != 'private' && document.type != +// 'internal'" Example (Data Manipulation): title: "Notification string" +// description: "Create a notification string with a timestamp." +// expression: "'New message received at ' + +// string(document.create_time)" The exact variables and functions that +// may be referenced within an expression are determined by the service +// that evaluates it. See the service documentation for additional +// information. +type Expr struct { + // Description: Optional. Description of the expression. This is a + // longer text which describes the expression, e.g. when hovered over it + // in a UI. + Description string `json:"description,omitempty"` + + // Expression: Textual representation of an expression in Common + // Expression Language syntax. + Expression string `json:"expression,omitempty"` + + // Location: Optional. String indicating the location of the expression + // for error reporting, e.g. a file name and a position in the file. + Location string `json:"location,omitempty"` + + // Title: Optional. Title for the expression, i.e. a short string + // describing its purpose. This can be used e.g. in UIs which allow to + // enter the expression. + Title string `json:"title,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Description") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Expr) MarshalJSON() ([]byte, error) { + type NoMethod Expr + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ExtendedKeyUsageOptions: KeyUsage.ExtendedKeyUsageOptions has fields +// that correspond to certain common OIDs that could be specified as an +// extended key usage value. +type ExtendedKeyUsageOptions struct { + // ClientAuth: Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially + // described as "TLS WWW client authentication", though regularly used + // for non-WWW TLS. + ClientAuth bool `json:"clientAuth,omitempty"` + + // CodeSigning: Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially + // described as "Signing of downloadable executable code client + // authentication". + CodeSigning bool `json:"codeSigning,omitempty"` + + // EmailProtection: Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially + // described as "Email protection". + EmailProtection bool `json:"emailProtection,omitempty"` + + // OcspSigning: Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially + // described as "Signing OCSP responses". + OcspSigning bool `json:"ocspSigning,omitempty"` + + // ServerAuth: Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially + // described as "TLS WWW server authentication", though regularly used + // for non-WWW TLS. + ServerAuth bool `json:"serverAuth,omitempty"` + + // TimeStamping: Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially + // described as "Binding the hash of an object to a time". + TimeStamping bool `json:"timeStamping,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ClientAuth") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ClientAuth") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ExtendedKeyUsageOptions) MarshalJSON() ([]byte, error) { + type NoMethod ExtendedKeyUsageOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// FetchCertificateAuthorityCsrResponse: Response message for +// CertificateAuthorityService.FetchCertificateAuthorityCsr. +type FetchCertificateAuthorityCsrResponse struct { + // PemCsr: Output only. The PEM-encoded signed certificate signing + // request (CSR). + PemCsr string `json:"pemCsr,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "PemCsr") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PemCsr") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *FetchCertificateAuthorityCsrResponse) MarshalJSON() ([]byte, error) { + type NoMethod FetchCertificateAuthorityCsrResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// IssuanceModes: IssuanceModes specifies the allowed ways in which +// Certificates may be requested from this CertificateAuthority. +type IssuanceModes struct { + // AllowConfigBasedIssuance: Required. When true, allows callers to + // create Certificates by specifying a CertificateConfig. + AllowConfigBasedIssuance bool `json:"allowConfigBasedIssuance,omitempty"` + + // AllowCsrBasedIssuance: Required. When true, allows callers to create + // Certificates by specifying a CSR. + AllowCsrBasedIssuance bool `json:"allowCsrBasedIssuance,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AllowConfigBasedIssuance") to unconditionally include in API + // requests. By default, fields with empty values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AllowConfigBasedIssuance") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *IssuanceModes) MarshalJSON() ([]byte, error) { + type NoMethod IssuanceModes + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// IssuingOptions: Options that affect all certificates issued by a +// CertificateAuthority. +type IssuingOptions struct { + // IncludeCaCertUrl: Required. When true, includes a URL to the issuing + // CA certificate in the "authority information access" X.509 extension. + IncludeCaCertUrl bool `json:"includeCaCertUrl,omitempty"` + + // IncludeCrlAccessUrl: Required. When true, includes a URL to the CRL + // corresponding to certificates issued from a CertificateAuthority. + // CRLs will expire 7 days from their creation. However, we will rebuild + // daily. CRLs are also rebuilt shortly after a certificate is revoked. + IncludeCrlAccessUrl bool `json:"includeCrlAccessUrl,omitempty"` + + // ForceSendFields is a list of field names (e.g. "IncludeCaCertUrl") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "IncludeCaCertUrl") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *IssuingOptions) MarshalJSON() ([]byte, error) { + type NoMethod IssuingOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// KeyId: A KeyId identifies a specific public key, usually by hashing +// the public key. +type KeyId struct { + // KeyId: Optional. The value of this KeyId encoded in lowercase + // hexadecimal. This is most likely the 160 bit SHA-1 hash of the public + // key. + KeyId string `json:"keyId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "KeyId") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "KeyId") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *KeyId) MarshalJSON() ([]byte, error) { + type NoMethod KeyId + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// KeyUsage: A KeyUsage describes key usage values that may appear in an +// X.509 certificate. +type KeyUsage struct { + // BaseKeyUsage: Describes high-level ways in which a key may be used. + BaseKeyUsage *KeyUsageOptions `json:"baseKeyUsage,omitempty"` + + // ExtendedKeyUsage: Detailed scenarios in which a key may be used. + ExtendedKeyUsage *ExtendedKeyUsageOptions `json:"extendedKeyUsage,omitempty"` + + // UnknownExtendedKeyUsages: Used to describe extended key usages that + // are not listed in the KeyUsage.ExtendedKeyUsageOptions message. + UnknownExtendedKeyUsages []*ObjectId `json:"unknownExtendedKeyUsages,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BaseKeyUsage") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BaseKeyUsage") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *KeyUsage) MarshalJSON() ([]byte, error) { + type NoMethod KeyUsage + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// KeyUsageOptions: KeyUsage.KeyUsageOptions corresponds to the key +// usage values described in +// https://tools.ietf.org/html/rfc5280#section-4.2.1.3. +type KeyUsageOptions struct { + // CertSign: The key may be used to sign certificates. + CertSign bool `json:"certSign,omitempty"` + + // ContentCommitment: The key may be used for cryptographic commitments. + // Note that this may also be referred to as "non-repudiation". + ContentCommitment bool `json:"contentCommitment,omitempty"` + + // CrlSign: The key may be used sign certificate revocation lists. + CrlSign bool `json:"crlSign,omitempty"` + + // DataEncipherment: The key may be used to encipher data. + DataEncipherment bool `json:"dataEncipherment,omitempty"` + + // DecipherOnly: The key may be used to decipher only. + DecipherOnly bool `json:"decipherOnly,omitempty"` + + // DigitalSignature: The key may be used for digital signatures. + DigitalSignature bool `json:"digitalSignature,omitempty"` + + // EncipherOnly: The key may be used to encipher only. + EncipherOnly bool `json:"encipherOnly,omitempty"` + + // KeyAgreement: The key may be used in a key agreement protocol. + KeyAgreement bool `json:"keyAgreement,omitempty"` + + // KeyEncipherment: The key may be used to encipher other keys. + KeyEncipherment bool `json:"keyEncipherment,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CertSign") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CertSign") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *KeyUsageOptions) MarshalJSON() ([]byte, error) { + type NoMethod KeyUsageOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// KeyVersionSpec: A Cloud KMS key configuration that a +// CertificateAuthority will use. +type KeyVersionSpec struct { + // Algorithm: Required. The algorithm to use for creating a managed + // Cloud KMS key for a for a simplified experience. All managed keys + // will be have their ProtectionLevel as `HSM`. + // + // Possible values: + // "SIGN_HASH_ALGORITHM_UNSPECIFIED" - Not specified. + // "RSA_PSS_2048_SHA256" - maps to + // CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_2048_SHA256 + // "RSA_PSS_3072_SHA256" - maps to CryptoKeyVersionAlgorithm. + // RSA_SIGN_PSS_3072_SHA256 + // "RSA_PSS_4096_SHA256" - maps to + // CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_4096_SHA256 + // "RSA_PKCS1_2048_SHA256" - maps to + // CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_2048_SHA256 + // "RSA_PKCS1_3072_SHA256" - maps to + // CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_3072_SHA256 + // "RSA_PKCS1_4096_SHA256" - maps to + // CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_4096_SHA256 + // "EC_P256_SHA256" - maps to + // CryptoKeyVersionAlgorithm.EC_SIGN_P256_SHA256 + // "EC_P384_SHA384" - maps to + // CryptoKeyVersionAlgorithm.EC_SIGN_P384_SHA384 + Algorithm string `json:"algorithm,omitempty"` + + // CloudKmsKeyVersion: Required. The resource name for an existing Cloud + // KMS CryptoKeyVersion in the format + // `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`. + // This option enables full flexibility in the key's capabilities and + // properties. + CloudKmsKeyVersion string `json:"cloudKmsKeyVersion,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Algorithm") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Algorithm") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *KeyVersionSpec) MarshalJSON() ([]byte, error) { + type NoMethod KeyVersionSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListCertificateAuthoritiesResponse: Response message for +// CertificateAuthorityService.ListCertificateAuthorities. +type ListCertificateAuthoritiesResponse struct { + // CertificateAuthorities: The list of CertificateAuthorities. + CertificateAuthorities []*CertificateAuthority `json:"certificateAuthorities,omitempty"` + + // NextPageToken: A token to retrieve next page of results. Pass this + // value in ListCertificateAuthoritiesRequest.next_page_token to + // retrieve the next page of results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Unreachable: A list of locations (e.g. "us-west1") that could not be + // reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "CertificateAuthorities") to unconditionally include in API requests. + // By default, fields with empty values are omitted from API requests. + // However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CertificateAuthorities") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ListCertificateAuthoritiesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListCertificateAuthoritiesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListCertificateRevocationListsResponse: Response message for +// CertificateAuthorityService.ListCertificateRevocationLists. +type ListCertificateRevocationListsResponse struct { + // CertificateRevocationLists: The list of CertificateRevocationLists. + CertificateRevocationLists []*CertificateRevocationList `json:"certificateRevocationLists,omitempty"` + + // NextPageToken: A token to retrieve next page of results. Pass this + // value in ListCertificateRevocationListsRequest.next_page_token to + // retrieve the next page of results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Unreachable: A list of locations (e.g. "us-west1") that could not be + // reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "CertificateRevocationLists") to unconditionally include in API + // requests. By default, fields with empty values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "CertificateRevocationLists") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListCertificateRevocationListsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListCertificateRevocationListsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListCertificatesResponse: Response message for +// CertificateAuthorityService.ListCertificates. +type ListCertificatesResponse struct { + // Certificates: The list of Certificates. + Certificates []*Certificate `json:"certificates,omitempty"` + + // NextPageToken: A token to retrieve next page of results. Pass this + // value in ListCertificatesRequest.next_page_token to retrieve the next + // page of results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Unreachable: A list of locations (e.g. "us-west1") that could not be + // reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Certificates") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Certificates") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListCertificatesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListCertificatesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListLocationsResponse: The response message for +// Locations.ListLocations. +type ListLocationsResponse struct { + // Locations: A list of locations that matches the specified filter in + // the request. + Locations []*Location `json:"locations,omitempty"` + + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Locations") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Locations") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListLocationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListOperationsResponse: The response message for +// Operations.ListOperations. +type ListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Operations: A list of operations that matches the specified filter in + // the request. + Operations []*Operation `json:"operations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListOperationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListReusableConfigsResponse: Response message for +// CertificateAuthorityService.ListReusableConfigs. +type ListReusableConfigsResponse struct { + // NextPageToken: A token to retrieve next page of results. Pass this + // value in ListReusableConfigsRequest.next_page_token to retrieve the + // next page of results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ReusableConfigs: The list of ReusableConfigs. + ReusableConfigs []*ReusableConfig `json:"reusableConfigs,omitempty"` + + // Unreachable: A list of locations (e.g. "us-west1") that could not be + // reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListReusableConfigsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListReusableConfigsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Location: A resource that represents Google Cloud Platform location. +type Location struct { + // DisplayName: The friendly name for this location, typically a nearby + // city name. For example, "Tokyo". + DisplayName string `json:"displayName,omitempty"` + + // Labels: Cross-service attributes for the location. For example + // {"cloud.googleapis.com/region": "us-east1"} + Labels map[string]string `json:"labels,omitempty"` + + // LocationId: The canonical id for this location. For example: + // "us-east1". + LocationId string `json:"locationId,omitempty"` + + // Metadata: Service-specific metadata. For example the available + // capacity at the given location. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: Resource name for the location, which may vary between + // implementations. For example: + // "projects/example-project/locations/us-east1" + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisplayName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Location) MarshalJSON() ([]byte, error) { + type NoMethod Location + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ObjectId: An ObjectId specifies an object identifier (OID). These +// provide context and describe types in ASN.1 messages. +type ObjectId struct { + // ObjectIdPath: Required. The parts of an OID path. The most + // significant parts of the path come first. + ObjectIdPath []int64 `json:"objectIdPath,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ObjectIdPath") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ObjectIdPath") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ObjectId) MarshalJSON() ([]byte, error) { + type NoMethod ObjectId + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Operation: This resource represents a long-running operation that is +// the result of a network API call. +type Operation struct { + // Done: If the value is `false`, it means the operation is still in + // progress. If `true`, the operation is completed, and either `error` + // or `response` is available. + Done bool `json:"done,omitempty"` + + // Error: The error result of the operation in case of failure or + // cancellation. + Error *Status `json:"error,omitempty"` + + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as + // create time. Some services might not provide such metadata. Any + // method that returns a long-running operation should document the + // metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: The server-assigned name, which is only unique within the same + // service that originally returns it. If you use the default HTTP + // mapping, the `name` should be a resource name ending with + // `operations/{unique_id}`. + Name string `json:"name,omitempty"` + + // Response: The normal response of the operation in case of success. If + // the original method returns no data on success, such as `Delete`, the + // response is `google.protobuf.Empty`. If the original method is + // standard `Get`/`Create`/`Update`, the response should be the + // resource. For other methods, the response should have the type + // `XxxResponse`, where `Xxx` is the original method name. For example, + // if the original method name is `TakeSnapshot()`, the inferred + // response type is `TakeSnapshotResponse`. + Response googleapi.RawMessage `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Done") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Done") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Operation) MarshalJSON() ([]byte, error) { + type NoMethod Operation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// OperationMetadata: Represents the metadata of the long-running +// operation. +type OperationMetadata struct { + // ApiVersion: Output only. API version used to start the operation. + ApiVersion string `json:"apiVersion,omitempty"` + + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + + // RequestedCancellation: Output only. Identifies whether the user has + // requested cancellation of the operation. Operations that have + // successfully been cancelled have Operation.error value with a + // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + RequestedCancellation bool `json:"requestedCancellation,omitempty"` + + // StatusMessage: Output only. Human-readable status of the operation, + // if any. + StatusMessage string `json:"statusMessage,omitempty"` + + // Target: Output only. Server-defined resource path for the target of + // the operation. + Target string `json:"target,omitempty"` + + // Verb: Output only. Name of the verb executed by the operation. + Verb string `json:"verb,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ApiVersion") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ApiVersion") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *OperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod OperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Policy: An Identity and Access Management (IAM) policy, which +// specifies access controls for Google Cloud resources. A `Policy` is a +// collection of `bindings`. A `binding` binds one or more `members` to +// a single `role`. Members can be user accounts, service accounts, +// Google groups, and domains (such as G Suite). A `role` is a named +// list of permissions; each `role` can be an IAM predefined role or a +// user-created custom role. For some types of Google Cloud resources, a +// `binding` can also specify a `condition`, which is a logical +// expression that allows access to a resource only if the expression +// evaluates to `true`. A condition can add constraints based on +// attributes of the request, the resource, or both. To learn which +// resources support conditions in their IAM policies, see the [IAM +// documentation](https://cloud.google.com/iam/help/conditions/resource-p +// olicies). **JSON example:** { "bindings": [ { "role": +// "roles/resourcemanager.organizationAdmin", "members": [ +// "user:mike@example.com", "group:admins@example.com", +// "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { +// "role": "roles/resourcemanager.organizationViewer", "members": [ +// "user:eve@example.com" ], "condition": { "title": "expirable access", +// "description": "Does not grant access after Sep 2020", "expression": +// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], +// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - +// members: - user:mike@example.com - group:admins@example.com - +// domain:google.com - +// serviceAccount:my-project-id@appspot.gserviceaccount.com role: +// roles/resourcemanager.organizationAdmin - members: - +// user:eve@example.com role: roles/resourcemanager.organizationViewer +// condition: title: expirable access description: Does not grant access +// after Sep 2020 expression: request.time < +// timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: +// 3 For a description of IAM and its features, see the [IAM +// documentation](https://cloud.google.com/iam/docs/). +type Policy struct { + // AuditConfigs: Specifies cloud audit logging configuration for this + // policy. + AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"` + + // Bindings: Associates a list of `members` to a `role`. Optionally, may + // specify a `condition` that determines how and when the `bindings` are + // applied. Each of the `bindings` must contain at least one member. + Bindings []*Binding `json:"bindings,omitempty"` + + // Etag: `etag` is used for optimistic concurrency control as a way to + // help prevent simultaneous updates of a policy from overwriting each + // other. It is strongly suggested that systems make use of the `etag` + // in the read-modify-write cycle to perform policy updates in order to + // avoid race conditions: An `etag` is returned in the response to + // `getIamPolicy`, and systems are expected to put that etag in the + // request to `setIamPolicy` to ensure that their change will be applied + // to the same version of the policy. **Important:** If you use IAM + // Conditions, you must include the `etag` field whenever you call + // `setIamPolicy`. If you omit this field, then IAM allows you to + // overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. + Etag string `json:"etag,omitempty"` + + // Version: Specifies the format of the policy. Valid values are `0`, + // `1`, and `3`. Requests that specify an invalid value are rejected. + // Any operation that affects conditional role bindings must specify + // version `3`. This requirement applies to the following operations: * + // Getting a policy that includes a conditional role binding * Adding a + // conditional role binding to a policy * Changing a conditional role + // binding in a policy * Removing any role binding, with or without a + // condition, from a policy that includes conditions **Important:** If + // you use IAM Conditions, you must include the `etag` field whenever + // you call `setIamPolicy`. If you omit this field, then IAM allows you + // to overwrite a version `3` policy with a version `1` policy, and all + // of the conditions in the version `3` policy are lost. If a policy + // does not include any conditions, operations on that policy may + // specify any valid version or leave the field unset. To learn which + // resources support conditions in their IAM policies, see the [IAM + // documentation](https://cloud.google.com/iam/help/conditions/resource-p + // olicies). + Version int64 `json:"version,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AuditConfigs") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AuditConfigs") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Policy) MarshalJSON() ([]byte, error) { + type NoMethod Policy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PublicKey: A PublicKey describes a public key. +type PublicKey struct { + // Key: Required. A public key. When this is specified in a request, the + // padding and encoding can be any of the options described by the + // respective 'KeyType' value. When this is generated by the service, it + // will always be an RFC 5280 + // [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1 + // ) structure containing an algorithm identifier and a key. + Key string `json:"key,omitempty"` + + // Type: Required. The type of public key. + // + // Possible values: + // "KEY_TYPE_UNSPECIFIED" - Default unspecified value. + // "PEM_RSA_KEY" - A PEM-encoded PKCS#1/RFC 3447 RSAPrivateKey + // structure, or an RFC 5280 + // [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1 + // ) structure containing the former. + // "PEM_EC_KEY" - A PEM-encoded compressed NIST + // P-256/secp256r1/prime256v1 or P-384 key, or an RFC 5280 + // [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1 + // ) structure containing the former. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Key") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Key") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *PublicKey) MarshalJSON() ([]byte, error) { + type NoMethod PublicKey + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RestoreCertificateAuthorityRequest: Request message for +// CertificateAuthorityService.RestoreCertificateAuthority. +type RestoreCertificateAuthorityRequest struct { + // RequestId: Optional. An ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will + // know to ignore the request if it has already been completed. The + // server will guarantee that for at least 60 minutes since the first + // request. For example, consider a situation where you make an initial + // request and t he request times out. If you make the request again + // with the same request ID, the server can check if original operation + // with the same request ID was received, and if so, will ignore the + // second request. This prevents clients from accidentally creating + // duplicate commitments. The request ID must be a valid UUID with the + // exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + RequestId string `json:"requestId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "RequestId") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "RequestId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RestoreCertificateAuthorityRequest) MarshalJSON() ([]byte, error) { + type NoMethod RestoreCertificateAuthorityRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ReusableConfig: A ReusableConfig refers to a managed +// ReusableConfigValues. Those, in turn, are used to describe certain +// fields of an X.509 certificate, such as the key usage fields, fields +// specific to CA certificates, certificate policy extensions and custom +// extensions. +type ReusableConfig struct { + // CreateTime: Output only. The time at which this ReusableConfig was + // created. + CreateTime string `json:"createTime,omitempty"` + + // Description: Optional. A human-readable description of scenarios + // these ReusableConfigValues may be compatible with. + Description string `json:"description,omitempty"` + + // Labels: Optional. Labels with user-defined metadata. + Labels map[string]string `json:"labels,omitempty"` + + // Name: Output only. The resource path for this ReusableConfig in the + // format `projects/*/locations/*/reusableConfigs/*`. + Name string `json:"name,omitempty"` + + // UpdateTime: Output only. The time at which this ReusableConfig was + // updated. + UpdateTime string `json:"updateTime,omitempty"` + + // Values: Required. The config values. + Values *ReusableConfigValues `json:"values,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ReusableConfig) MarshalJSON() ([]byte, error) { + type NoMethod ReusableConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ReusableConfigValues: A ReusableConfigValues is used to describe +// certain fields of an X.509 certificate, such as the key usage fields, +// fields specific to CA certificates, certificate policy extensions and +// custom extensions. +type ReusableConfigValues struct { + // AdditionalExtensions: Optional. Describes custom X.509 extensions. + AdditionalExtensions []*X509Extension `json:"additionalExtensions,omitempty"` + + // AiaOcspServers: Optional. Describes Online Certificate Status + // Protocol (OCSP) endpoint addresses that appear in the "Authority + // Information Access" extension in the certificate. + AiaOcspServers []string `json:"aiaOcspServers,omitempty"` + + // CaOptions: Optional. Describes options in this ReusableConfigValues + // that are relevant in a CA certificate. + CaOptions *CaOptions `json:"caOptions,omitempty"` + + // KeyUsage: Optional. Indicates the intended use for keys that + // correspond to a certificate. + KeyUsage *KeyUsage `json:"keyUsage,omitempty"` + + // PolicyIds: Optional. Describes the X.509 certificate policy object + // identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. + PolicyIds []*ObjectId `json:"policyIds,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AdditionalExtensions") to unconditionally include in API requests. + // By default, fields with empty values are omitted from API requests. + // However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AdditionalExtensions") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ReusableConfigValues) MarshalJSON() ([]byte, error) { + type NoMethod ReusableConfigValues + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ReusableConfigWrapper: A ReusableConfigWrapper describes values that +// may assist in creating an X.509 certificate, or a reference to a +// pre-defined set of values. +type ReusableConfigWrapper struct { + // ReusableConfig: Required. A resource path to a ReusableConfig in the + // format `projects/*/locations/*/reusableConfigs/*`. + ReusableConfig string `json:"reusableConfig,omitempty"` + + // ReusableConfigValues: Required. A user-specified inline + // ReusableConfigValues. + ReusableConfigValues *ReusableConfigValues `json:"reusableConfigValues,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ReusableConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ReusableConfig") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ReusableConfigWrapper) MarshalJSON() ([]byte, error) { + type NoMethod ReusableConfigWrapper + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RevocationDetails: Describes fields that are relavent to the +// revocation of a Certificate. +type RevocationDetails struct { + // RevocationState: Indicates why a Certificate was revoked. + // + // Possible values: + // "REVOCATION_REASON_UNSPECIFIED" - Default unspecified value. This + // value does indicate that a Certificate has been revoked, but that a + // reason has not been recorded. + // "KEY_COMPROMISE" - Key material for this Certificate may have + // leaked. + // "CERTIFICATE_AUTHORITY_COMPROMISE" - The key material for a + // certificate authority in the issuing path may have leaked. + // "AFFILIATION_CHANGED" - The subject or other attributes in this + // Certificate have changed. + // "SUPERSEDED" - This Certificate has been superseded. + // "CESSATION_OF_OPERATION" - This Certificate or entities in the + // issuing path have ceased to operate. + // "CERTIFICATE_HOLD" - This Certificate should not be considered + // valid, it is expected that it may become valid in the future. + // "PRIVILEGE_WITHDRAWN" - This Certificate no longer has permission + // to assert the listed attributes. + // "ATTRIBUTE_AUTHORITY_COMPROMISE" - The authority which determines + // appropriate attributes for a Certificate may have been compromised. + RevocationState string `json:"revocationState,omitempty"` + + // RevocationTime: The time at which this Certificate was revoked. + RevocationTime string `json:"revocationTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "RevocationState") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "RevocationState") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *RevocationDetails) MarshalJSON() ([]byte, error) { + type NoMethod RevocationDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RevokeCertificateRequest: Request message for +// CertificateAuthorityService.RevokeCertificate. +type RevokeCertificateRequest struct { + // Reason: Required. The RevocationReason for revoking this certificate. + // + // Possible values: + // "REVOCATION_REASON_UNSPECIFIED" - Default unspecified value. This + // value does indicate that a Certificate has been revoked, but that a + // reason has not been recorded. + // "KEY_COMPROMISE" - Key material for this Certificate may have + // leaked. + // "CERTIFICATE_AUTHORITY_COMPROMISE" - The key material for a + // certificate authority in the issuing path may have leaked. + // "AFFILIATION_CHANGED" - The subject or other attributes in this + // Certificate have changed. + // "SUPERSEDED" - This Certificate has been superseded. + // "CESSATION_OF_OPERATION" - This Certificate or entities in the + // issuing path have ceased to operate. + // "CERTIFICATE_HOLD" - This Certificate should not be considered + // valid, it is expected that it may become valid in the future. + // "PRIVILEGE_WITHDRAWN" - This Certificate no longer has permission + // to assert the listed attributes. + // "ATTRIBUTE_AUTHORITY_COMPROMISE" - The authority which determines + // appropriate attributes for a Certificate may have been compromised. + Reason string `json:"reason,omitempty"` + + // RequestId: Optional. An ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will + // know to ignore the request if it has already been completed. The + // server will guarantee that for at least 60 minutes since the first + // request. For example, consider a situation where you make an initial + // request and t he request times out. If you make the request again + // with the same request ID, the server can check if original operation + // with the same request ID was received, and if so, will ignore the + // second request. This prevents clients from accidentally creating + // duplicate commitments. The request ID must be a valid UUID with the + // exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + RequestId string `json:"requestId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Reason") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Reason") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RevokeCertificateRequest) MarshalJSON() ([]byte, error) { + type NoMethod RevokeCertificateRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RevokedCertificate: Describes a revoked Certificate. +type RevokedCertificate struct { + // Certificate: The resource path for the Certificate in the format + // `projects/*/locations/*/certificateAuthorities/*/certificates/*`. + Certificate string `json:"certificate,omitempty"` + + // HexSerialNumber: The serial number of the Certificate. + HexSerialNumber string `json:"hexSerialNumber,omitempty"` + + // RevocationReason: The reason the Certificate was revoked. + // + // Possible values: + // "REVOCATION_REASON_UNSPECIFIED" - Default unspecified value. This + // value does indicate that a Certificate has been revoked, but that a + // reason has not been recorded. + // "KEY_COMPROMISE" - Key material for this Certificate may have + // leaked. + // "CERTIFICATE_AUTHORITY_COMPROMISE" - The key material for a + // certificate authority in the issuing path may have leaked. + // "AFFILIATION_CHANGED" - The subject or other attributes in this + // Certificate have changed. + // "SUPERSEDED" - This Certificate has been superseded. + // "CESSATION_OF_OPERATION" - This Certificate or entities in the + // issuing path have ceased to operate. + // "CERTIFICATE_HOLD" - This Certificate should not be considered + // valid, it is expected that it may become valid in the future. + // "PRIVILEGE_WITHDRAWN" - This Certificate no longer has permission + // to assert the listed attributes. + // "ATTRIBUTE_AUTHORITY_COMPROMISE" - The authority which determines + // appropriate attributes for a Certificate may have been compromised. + RevocationReason string `json:"revocationReason,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Certificate") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Certificate") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RevokedCertificate) MarshalJSON() ([]byte, error) { + type NoMethod RevokedCertificate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ScheduleDeleteCertificateAuthorityRequest: Request message for +// CertificateAuthorityService.ScheduleDeleteCertificateAuthority. +type ScheduleDeleteCertificateAuthorityRequest struct { + // RequestId: Optional. An ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will + // know to ignore the request if it has already been completed. The + // server will guarantee that for at least 60 minutes since the first + // request. For example, consider a situation where you make an initial + // request and t he request times out. If you make the request again + // with the same request ID, the server can check if original operation + // with the same request ID was received, and if so, will ignore the + // second request. This prevents clients from accidentally creating + // duplicate commitments. The request ID must be a valid UUID with the + // exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + RequestId string `json:"requestId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "RequestId") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "RequestId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ScheduleDeleteCertificateAuthorityRequest) MarshalJSON() ([]byte, error) { + type NoMethod ScheduleDeleteCertificateAuthorityRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SetIamPolicyRequest: Request message for `SetIamPolicy` method. +type SetIamPolicyRequest struct { + // Policy: REQUIRED: The complete policy to be applied to the + // `resource`. The size of the policy is limited to a few 10s of KB. An + // empty policy is a valid policy but certain Cloud Platform services + // (such as Projects) might reject them. + Policy *Policy `json:"policy,omitempty"` + + // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the + // policy to modify. Only the fields in the mask will be modified. If no + // mask is provided, the following default mask is used: `paths: + // "bindings, etag" + UpdateMask string `json:"updateMask,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Policy") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Policy") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { + type NoMethod SetIamPolicyRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Status: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs +// and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each +// `Status` message contains three pieces of data: error code, error +// message, and error details. You can find out more about this error +// model and how to work with it in the [API Design +// Guide](https://cloud.google.com/apis/design/errors). +type Status struct { + // Code: The status code, which should be an enum value of + // google.rpc.Code. + Code int64 `json:"code,omitempty"` + + // Details: A list of messages that carry the error details. There is a + // common set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Status) MarshalJSON() ([]byte, error) { + type NoMethod Status + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Subject: Subject describes parts of a distinguished name that, in +// turn, describes the subject of the certificate. +type Subject struct { + // CountryCode: The country code of the subject. + CountryCode string `json:"countryCode,omitempty"` + + // Locality: The locality or city of the subject. + Locality string `json:"locality,omitempty"` + + // Organization: The organization of the subject. + Organization string `json:"organization,omitempty"` + + // OrganizationalUnit: The organizational_unit of the subject. + OrganizationalUnit string `json:"organizationalUnit,omitempty"` + + // PostalCode: The postal code of the subject. + PostalCode string `json:"postalCode,omitempty"` + + // Province: The province, territory, or regional state of the subject. + Province string `json:"province,omitempty"` + + // StreetAddress: The street address of the subject. + StreetAddress string `json:"streetAddress,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CountryCode") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CountryCode") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Subject) MarshalJSON() ([]byte, error) { + type NoMethod Subject + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SubjectAltNames: SubjectAltNames corresponds to a more modern way of +// listing what the asserted identity is in a certificate (i.e., +// compared to the "common name" in the distinguished name). +type SubjectAltNames struct { + // CustomSans: Contains additional subject alternative name values. + CustomSans []*X509Extension `json:"customSans,omitempty"` + + // DnsNames: Contains only valid, fully-qualified host names. + DnsNames []string `json:"dnsNames,omitempty"` + + // EmailAddresses: Contains only valid RFC 2822 E-mail addresses. + EmailAddresses []string `json:"emailAddresses,omitempty"` + + // IpAddresses: Contains only valid 32-bit IPv4 addresses or RFC 4291 + // IPv6 addresses. + IpAddresses []string `json:"ipAddresses,omitempty"` + + // Uris: Contains only valid RFC 3986 URIs. + Uris []string `json:"uris,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CustomSans") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CustomSans") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SubjectAltNames) MarshalJSON() ([]byte, error) { + type NoMethod SubjectAltNames + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SubjectConfig: These values are used to create the distinguished name +// and subject alternative name fields in an X.509 certificate. +type SubjectConfig struct { + // CommonName: Optional. The "common name" of the distinguished name. + CommonName string `json:"commonName,omitempty"` + + // Subject: Required. Contains distinguished name fields such as the + // location and organization. + Subject *Subject `json:"subject,omitempty"` + + // SubjectAltName: Optional. The subject alternative name fields. + SubjectAltName *SubjectAltNames `json:"subjectAltName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CommonName") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CommonName") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SubjectConfig) MarshalJSON() ([]byte, error) { + type NoMethod SubjectConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SubjectDescription: These values describe fields in an issued X.509 +// certificate such as the distinguished name, subject alternative +// names, serial number, and lifetime. +type SubjectDescription struct { + // CommonName: The "common name" of the distinguished name. + CommonName string `json:"commonName,omitempty"` + + // HexSerialNumber: The serial number encoded in lowercase hexadecimal. + HexSerialNumber string `json:"hexSerialNumber,omitempty"` + + // Lifetime: For convenience, the actual lifetime of an issued + // certificate. Corresponds to 'not_after_time' - 'not_before_time'. + Lifetime string `json:"lifetime,omitempty"` + + // NotAfterTime: The time at which the certificate expires. + NotAfterTime string `json:"notAfterTime,omitempty"` + + // NotBeforeTime: The time at which the certificate becomes valid. + NotBeforeTime string `json:"notBeforeTime,omitempty"` + + // Subject: Contains distinguished name fields such as the location and + // organization. + Subject *Subject `json:"subject,omitempty"` + + // SubjectAltName: The subject alternative name fields. + SubjectAltName *SubjectAltNames `json:"subjectAltName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CommonName") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CommonName") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SubjectDescription) MarshalJSON() ([]byte, error) { + type NoMethod SubjectDescription + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SubordinateConfig: Describes a subordinate CA's issuers. This is +// either a resource path to a known issuing CertificateAuthority, or a +// PEM issuer certificate chain. +type SubordinateConfig struct { + // CertificateAuthority: Required. This can refer to a + // CertificateAuthority in the same project that was used to create a + // subordinate CertificateAuthority. This field is used for information + // and usability purposes only. The resource name is in the format + // `projects/*/locations/*/certificateAuthorities/*`. + CertificateAuthority string `json:"certificateAuthority,omitempty"` + + // PemIssuerChain: Required. Contains the PEM certificate chain for the + // issuers of this CertificateAuthority, but not pem certificate for + // this CA itself. + PemIssuerChain *SubordinateConfigChain `json:"pemIssuerChain,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "CertificateAuthority") to unconditionally include in API requests. + // By default, fields with empty values are omitted from API requests. + // However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CertificateAuthority") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *SubordinateConfig) MarshalJSON() ([]byte, error) { + type NoMethod SubordinateConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SubordinateConfigChain: This message describes a subordinate CA's +// issuer certificate chain. This wrapper exists for compatibility +// reasons. +type SubordinateConfigChain struct { + // PemCertificates: Required. Expected to be in leaf-to-root order + // according to RFC 5246. + PemCertificates []string `json:"pemCertificates,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PemCertificates") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PemCertificates") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *SubordinateConfigChain) MarshalJSON() ([]byte, error) { + type NoMethod SubordinateConfigChain + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TestIamPermissionsRequest: Request message for `TestIamPermissions` +// method. +type TestIamPermissionsRequest struct { + // Permissions: The set of permissions to check for the `resource`. + // Permissions with wildcards (such as '*' or 'storage.*') are not + // allowed. For more information see [IAM + // Overview](https://cloud.google.com/iam/docs/overview#permissions). + Permissions []string `json:"permissions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Permissions") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Permissions") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { + type NoMethod TestIamPermissionsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TestIamPermissionsResponse: Response message for `TestIamPermissions` +// method. +type TestIamPermissionsResponse struct { + // Permissions: A subset of `TestPermissionsRequest.permissions` that + // the caller is allowed. + Permissions []string `json:"permissions,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Permissions") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Permissions") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod TestIamPermissionsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// X509Extension: An X509Extension specifies an X.509 extension, which +// may be used in different parts of X.509 objects like certificates, +// CSRs, and CRLs. +type X509Extension struct { + // Critical: Required. Indicates whether or not this extension is + // critical (i.e., if the client does not know how to handle this + // extension, the client should consider this to be an error). + Critical bool `json:"critical,omitempty"` + + // ObjectId: Required. The OID for this X.509 extension. + ObjectId *ObjectId `json:"objectId,omitempty"` + + // Value: Required. The value of this X.509 extension. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Critical") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Critical") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *X509Extension) MarshalJSON() ([]byte, error) { + type NoMethod X509Extension + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "privateca.projects.locations.get": + +type ProjectsLocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information about a location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.get" call. +// Exactly one of *Location or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Location.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Location{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets information about a location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}", + // "httpMethod": "GET", + // "id": "privateca.projects.locations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Resource name for the location.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Location" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "privateca.projects.locations.list": + +type ProjectsLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists information about the supported locations for this +// service. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/locations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.list" call. +// Exactly one of *ListLocationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListLocationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists information about the supported locations for this service.", + // "flatPath": "v1beta1/projects/{projectsId}/locations", + // "httpMethod": "GET", + // "id": "privateca.projects.locations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The resource that owns the locations collection, if applicable.", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}/locations", + // "response": { + // "$ref": "ListLocationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "privateca.projects.locations.certificateAuthorities.activate": + +type ProjectsLocationsCertificateAuthoritiesActivateCall struct { + s *Service + name string + activatecertificateauthorityrequest *ActivateCertificateAuthorityRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Activate: Activate a CertificateAuthority that is in state +// PENDING_ACTIVATION and is of type SUBORDINATE. After the parent +// Certificate Authority signs a certificate signing request from +// FetchCertificateAuthorityCsr, this method can complete the activation +// process. +func (r *ProjectsLocationsCertificateAuthoritiesService) Activate(name string, activatecertificateauthorityrequest *ActivateCertificateAuthorityRequest) *ProjectsLocationsCertificateAuthoritiesActivateCall { + c := &ProjectsLocationsCertificateAuthoritiesActivateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.activatecertificateauthorityrequest = activatecertificateauthorityrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCertificateAuthoritiesActivateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesActivateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificateAuthoritiesActivateCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesActivateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificateAuthoritiesActivateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificateAuthoritiesActivateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.activatecertificateauthorityrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:activate") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.certificateAuthorities.activate" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsCertificateAuthoritiesActivateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Activate a CertificateAuthority that is in state PENDING_ACTIVATION and is of type SUBORDINATE. After the parent Certificate Authority signs a certificate signing request from FetchCertificateAuthorityCsr, this method can complete the activation process.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:activate", + // "httpMethod": "POST", + // "id": "privateca.projects.locations.certificateAuthorities.activate", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:activate", + // "request": { + // "$ref": "ActivateCertificateAuthorityRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "privateca.projects.locations.certificateAuthorities.create": + +type ProjectsLocationsCertificateAuthoritiesCreateCall struct { + s *Service + parent string + certificateauthority *CertificateAuthority + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Create a new CertificateAuthority in a given Project and +// Location. +func (r *ProjectsLocationsCertificateAuthoritiesService) Create(parent string, certificateauthority *CertificateAuthority) *ProjectsLocationsCertificateAuthoritiesCreateCall { + c := &ProjectsLocationsCertificateAuthoritiesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.certificateauthority = certificateauthority + return c +} + +// CertificateAuthorityId sets the optional parameter +// "certificateAuthorityId": Required. It must be unique within a +// location and match the regular expression `[a-zA-Z0-9_-]{1,63}` +func (c *ProjectsLocationsCertificateAuthoritiesCreateCall) CertificateAuthorityId(certificateAuthorityId string) *ProjectsLocationsCertificateAuthoritiesCreateCall { + c.urlParams_.Set("certificateAuthorityId", certificateAuthorityId) + return c +} + +// RequestId sets the optional parameter "requestId": An ID to identify +// requests. Specify a unique request ID so that if you must retry your +// request, the server will know to ignore the request if it has already +// been completed. The server will guarantee that for at least 60 +// minutes since the first request. For example, consider a situation +// where you make an initial request and t he request times out. If you +// make the request again with the same request ID, the server can check +// if original operation with the same request ID was received, and if +// so, will ignore the second request. This prevents clients from +// accidentally creating duplicate commitments. The request ID must be a +// valid UUID with the exception that zero UUID is not supported +// (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsCertificateAuthoritiesCreateCall) RequestId(requestId string) *ProjectsLocationsCertificateAuthoritiesCreateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCertificateAuthoritiesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificateAuthoritiesCreateCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificateAuthoritiesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificateAuthoritiesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.certificateauthority) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/certificateAuthorities") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.certificateAuthorities.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsCertificateAuthoritiesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Create a new CertificateAuthority in a given Project and Location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities", + // "httpMethod": "POST", + // "id": "privateca.projects.locations.certificateAuthorities.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "certificateAuthorityId": { + // "description": "Required. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the location associated with the CertificateAuthorities, in the format `projects/*/locations/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "Optional. An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/certificateAuthorities", + // "request": { + // "$ref": "CertificateAuthority" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "privateca.projects.locations.certificateAuthorities.disable": + +type ProjectsLocationsCertificateAuthoritiesDisableCall struct { + s *Service + name string + disablecertificateauthorityrequest *DisableCertificateAuthorityRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Disable: Disable a CertificateAuthority. +func (r *ProjectsLocationsCertificateAuthoritiesService) Disable(name string, disablecertificateauthorityrequest *DisableCertificateAuthorityRequest) *ProjectsLocationsCertificateAuthoritiesDisableCall { + c := &ProjectsLocationsCertificateAuthoritiesDisableCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.disablecertificateauthorityrequest = disablecertificateauthorityrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCertificateAuthoritiesDisableCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesDisableCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificateAuthoritiesDisableCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesDisableCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificateAuthoritiesDisableCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificateAuthoritiesDisableCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.disablecertificateauthorityrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:disable") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.certificateAuthorities.disable" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsCertificateAuthoritiesDisableCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Disable a CertificateAuthority.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:disable", + // "httpMethod": "POST", + // "id": "privateca.projects.locations.certificateAuthorities.disable", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:disable", + // "request": { + // "$ref": "DisableCertificateAuthorityRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "privateca.projects.locations.certificateAuthorities.enable": + +type ProjectsLocationsCertificateAuthoritiesEnableCall struct { + s *Service + name string + enablecertificateauthorityrequest *EnableCertificateAuthorityRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Enable: Enable a CertificateAuthority. +func (r *ProjectsLocationsCertificateAuthoritiesService) Enable(name string, enablecertificateauthorityrequest *EnableCertificateAuthorityRequest) *ProjectsLocationsCertificateAuthoritiesEnableCall { + c := &ProjectsLocationsCertificateAuthoritiesEnableCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.enablecertificateauthorityrequest = enablecertificateauthorityrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCertificateAuthoritiesEnableCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesEnableCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificateAuthoritiesEnableCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesEnableCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificateAuthoritiesEnableCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificateAuthoritiesEnableCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.enablecertificateauthorityrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:enable") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.certificateAuthorities.enable" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsCertificateAuthoritiesEnableCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Enable a CertificateAuthority.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:enable", + // "httpMethod": "POST", + // "id": "privateca.projects.locations.certificateAuthorities.enable", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:enable", + // "request": { + // "$ref": "EnableCertificateAuthorityRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "privateca.projects.locations.certificateAuthorities.fetch": + +type ProjectsLocationsCertificateAuthoritiesFetchCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Fetch: Fetch a certificate signing request (CSR) from a +// CertificateAuthority that is in state PENDING_ACTIVATION and is of +// type SUBORDINATE. The CSR must then be signed by the desired parent +// Certificate Authority, which could be another CertificateAuthority +// resource, or could be an on-prem certificate authority. See also +// ActivateCertificateAuthority. +func (r *ProjectsLocationsCertificateAuthoritiesService) Fetch(name string) *ProjectsLocationsCertificateAuthoritiesFetchCall { + c := &ProjectsLocationsCertificateAuthoritiesFetchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCertificateAuthoritiesFetchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesFetchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsCertificateAuthoritiesFetchCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesFetchCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificateAuthoritiesFetchCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesFetchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificateAuthoritiesFetchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificateAuthoritiesFetchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:fetch") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.certificateAuthorities.fetch" call. +// Exactly one of *FetchCertificateAuthorityCsrResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *FetchCertificateAuthorityCsrResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsCertificateAuthoritiesFetchCall) Do(opts ...googleapi.CallOption) (*FetchCertificateAuthorityCsrResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &FetchCertificateAuthorityCsrResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Fetch a certificate signing request (CSR) from a CertificateAuthority that is in state PENDING_ACTIVATION and is of type SUBORDINATE. The CSR must then be signed by the desired parent Certificate Authority, which could be another CertificateAuthority resource, or could be an on-prem certificate authority. See also ActivateCertificateAuthority.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:fetch", + // "httpMethod": "GET", + // "id": "privateca.projects.locations.certificateAuthorities.fetch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:fetch", + // "response": { + // "$ref": "FetchCertificateAuthorityCsrResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "privateca.projects.locations.certificateAuthorities.get": + +type ProjectsLocationsCertificateAuthoritiesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Returns a CertificateAuthority. +func (r *ProjectsLocationsCertificateAuthoritiesService) Get(name string) *ProjectsLocationsCertificateAuthoritiesGetCall { + c := &ProjectsLocationsCertificateAuthoritiesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCertificateAuthoritiesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsCertificateAuthoritiesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificateAuthoritiesGetCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificateAuthoritiesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificateAuthoritiesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.certificateAuthorities.get" call. +// Exactly one of *CertificateAuthority or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *CertificateAuthority.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsCertificateAuthoritiesGetCall) Do(opts ...googleapi.CallOption) (*CertificateAuthority, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &CertificateAuthority{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns a CertificateAuthority.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}", + // "httpMethod": "GET", + // "id": "privateca.projects.locations.certificateAuthorities.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the CertificateAuthority to get.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "CertificateAuthority" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "privateca.projects.locations.certificateAuthorities.getIamPolicy": + +type ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. +func (r *ProjectsLocationsCertificateAuthoritiesService) GetIamPolicy(resource string) *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall { + c := &ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The policy format version to be +// returned. Valid values are 0, 1, and 3. Requests specifying an +// invalid value will be rejected. Requests for policies with any +// conditional bindings must specify version 3. Policies without any +// conditional bindings may specify any valid value or leave the field +// unset. To learn which resources support conditions in their IAM +// policies, see the [IAM +// documentation](https://cloud.google.com/iam/help/conditions/resource-p +// olicies). +func (c *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.certificateAuthorities.getIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:getIamPolicy", + // "httpMethod": "GET", + // "id": "privateca.projects.locations.certificateAuthorities.getIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "options.requestedPolicyVersion": { + // "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:getIamPolicy", + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "privateca.projects.locations.certificateAuthorities.list": + +type ProjectsLocationsCertificateAuthoritiesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists CertificateAuthorities. +func (r *ProjectsLocationsCertificateAuthoritiesService) List(parent string) *ProjectsLocationsCertificateAuthoritiesListCall { + c := &ProjectsLocationsCertificateAuthoritiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Only include resources +// that match the filter in the response. +func (c *ProjectsLocationsCertificateAuthoritiesListCall) Filter(filter string) *ProjectsLocationsCertificateAuthoritiesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Specify how the +// results should be sorted. +func (c *ProjectsLocationsCertificateAuthoritiesListCall) OrderBy(orderBy string) *ProjectsLocationsCertificateAuthoritiesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Limit on the number +// of CertificateAuthorities to include in the response. Further +// CertificateAuthorities can subsequently be obtained by including the +// ListCertificateAuthoritiesResponse.next_page_token in a subsequent +// request. If unspecified, the server will pick an appropriate default. +func (c *ProjectsLocationsCertificateAuthoritiesListCall) PageSize(pageSize int64) *ProjectsLocationsCertificateAuthoritiesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Pagination token, +// returned earlier via +// ListCertificateAuthoritiesResponse.next_page_token. +func (c *ProjectsLocationsCertificateAuthoritiesListCall) PageToken(pageToken string) *ProjectsLocationsCertificateAuthoritiesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCertificateAuthoritiesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsCertificateAuthoritiesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificateAuthoritiesListCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificateAuthoritiesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificateAuthoritiesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/certificateAuthorities") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.certificateAuthorities.list" call. +// Exactly one of *ListCertificateAuthoritiesResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListCertificateAuthoritiesResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsCertificateAuthoritiesListCall) Do(opts ...googleapi.CallOption) (*ListCertificateAuthoritiesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListCertificateAuthoritiesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists CertificateAuthorities.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities", + // "httpMethod": "GET", + // "id": "privateca.projects.locations.certificateAuthorities.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. Only include resources that match the filter in the response.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Optional. Specify how the results should be sorted.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. Limit on the number of CertificateAuthorities to include in the response. Further CertificateAuthorities can subsequently be obtained by including the ListCertificateAuthoritiesResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. Pagination token, returned earlier via ListCertificateAuthoritiesResponse.next_page_token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the location associated with the CertificateAuthorities, in the format `projects/*/locations/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/certificateAuthorities", + // "response": { + // "$ref": "ListCertificateAuthoritiesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsCertificateAuthoritiesListCall) Pages(ctx context.Context, f func(*ListCertificateAuthoritiesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "privateca.projects.locations.certificateAuthorities.patch": + +type ProjectsLocationsCertificateAuthoritiesPatchCall struct { + s *Service + name string + certificateauthority *CertificateAuthority + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Update a CertificateAuthority. +func (r *ProjectsLocationsCertificateAuthoritiesService) Patch(name string, certificateauthority *CertificateAuthority) *ProjectsLocationsCertificateAuthoritiesPatchCall { + c := &ProjectsLocationsCertificateAuthoritiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.certificateauthority = certificateauthority + return c +} + +// RequestId sets the optional parameter "requestId": An ID to identify +// requests. Specify a unique request ID so that if you must retry your +// request, the server will know to ignore the request if it has already +// been completed. The server will guarantee that for at least 60 +// minutes since the first request. For example, consider a situation +// where you make an initial request and t he request times out. If you +// make the request again with the same request ID, the server can check +// if original operation with the same request ID was received, and if +// so, will ignore the second request. This prevents clients from +// accidentally creating duplicate commitments. The request ID must be a +// valid UUID with the exception that zero UUID is not supported +// (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsCertificateAuthoritiesPatchCall) RequestId(requestId string) *ProjectsLocationsCertificateAuthoritiesPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. A list +// of fields to be updated in this request. +func (c *ProjectsLocationsCertificateAuthoritiesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCertificateAuthoritiesPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCertificateAuthoritiesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificateAuthoritiesPatchCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificateAuthoritiesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificateAuthoritiesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.certificateauthority) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.certificateAuthorities.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsCertificateAuthoritiesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Update a CertificateAuthority.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}", + // "httpMethod": "PATCH", + // "id": "privateca.projects.locations.certificateAuthorities.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "Optional. An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. A list of fields to be updated in this request.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "CertificateAuthority" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "privateca.projects.locations.certificateAuthorities.restore": + +type ProjectsLocationsCertificateAuthoritiesRestoreCall struct { + s *Service + name string + restorecertificateauthorityrequest *RestoreCertificateAuthorityRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Restore: Restore a CertificateAuthority that is scheduled for +// deletion. +func (r *ProjectsLocationsCertificateAuthoritiesService) Restore(name string, restorecertificateauthorityrequest *RestoreCertificateAuthorityRequest) *ProjectsLocationsCertificateAuthoritiesRestoreCall { + c := &ProjectsLocationsCertificateAuthoritiesRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.restorecertificateauthorityrequest = restorecertificateauthorityrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCertificateAuthoritiesRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesRestoreCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificateAuthoritiesRestoreCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesRestoreCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificateAuthoritiesRestoreCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificateAuthoritiesRestoreCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.restorecertificateauthorityrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:restore") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.certificateAuthorities.restore" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsCertificateAuthoritiesRestoreCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Restore a CertificateAuthority that is scheduled for deletion.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:restore", + // "httpMethod": "POST", + // "id": "privateca.projects.locations.certificateAuthorities.restore", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:restore", + // "request": { + // "$ref": "RestoreCertificateAuthorityRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "privateca.projects.locations.certificateAuthorities.scheduleDelete": + +type ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall struct { + s *Service + name string + scheduledeletecertificateauthorityrequest *ScheduleDeleteCertificateAuthorityRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// ScheduleDelete: Schedule a CertificateAuthority for deletion. +func (r *ProjectsLocationsCertificateAuthoritiesService) ScheduleDelete(name string, scheduledeletecertificateauthorityrequest *ScheduleDeleteCertificateAuthorityRequest) *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall { + c := &ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.scheduledeletecertificateauthorityrequest = scheduledeletecertificateauthorityrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.scheduledeletecertificateauthorityrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:scheduleDelete") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.certificateAuthorities.scheduleDelete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Schedule a CertificateAuthority for deletion.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:scheduleDelete", + // "httpMethod": "POST", + // "id": "privateca.projects.locations.certificateAuthorities.scheduleDelete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:scheduleDelete", + // "request": { + // "$ref": "ScheduleDeleteCertificateAuthorityRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "privateca.projects.locations.certificateAuthorities.setIamPolicy": + +type ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +func (r *ProjectsLocationsCertificateAuthoritiesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall { + c := &ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.certificateAuthorities.setIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "privateca.projects.locations.certificateAuthorities.setIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "privateca.projects.locations.certificateAuthorities.testIamPermissions": + +type ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. +func (r *ProjectsLocationsCertificateAuthoritiesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall { + c := &ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.certificateAuthorities.testIamPermissions" call. +// Exactly one of *TestIamPermissionsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &TestIamPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "privateca.projects.locations.certificateAuthorities.testIamPermissions", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:testIamPermissions", + // "request": { + // "$ref": "TestIamPermissionsRequest" + // }, + // "response": { + // "$ref": "TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.get": + +type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Returns a CertificateRevocationList. +func (r *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) Get(name string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall { + c := &ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.get" call. +// Exactly one of *CertificateRevocationList or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *CertificateRevocationList.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall) Do(opts ...googleapi.CallOption) (*CertificateRevocationList, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &CertificateRevocationList{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns a CertificateRevocationList.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists/{certificateRevocationListsId}", + // "httpMethod": "GET", + // "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the CertificateRevocationList to get.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "CertificateRevocationList" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.getIamPolicy": + +type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. +func (r *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) GetIamPolicy(resource string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall { + c := &ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The policy format version to be +// returned. Valid values are 0, 1, and 3. Requests specifying an +// invalid value will be rejected. Requests for policies with any +// conditional bindings must specify version 3. Policies without any +// conditional bindings may specify any valid value or leave the field +// unset. To learn which resources support conditions in their IAM +// policies, see the [IAM +// documentation](https://cloud.google.com/iam/help/conditions/resource-p +// olicies). +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.getIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists/{certificateRevocationListsId}:getIamPolicy", + // "httpMethod": "GET", + // "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.getIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "options.requestedPolicyVersion": { + // "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:getIamPolicy", + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.list": + +type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists CertificateRevocationLists. +func (r *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) List(parent string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall { + c := &ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Only include resources +// that match the filter in the response. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Filter(filter string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Specify how the +// results should be sorted. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) OrderBy(orderBy string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Limit on the number +// of CertificateRevocationLists to include in the response. Further +// CertificateRevocationLists can subsequently be obtained by including +// the ListCertificateRevocationListsResponse.next_page_token in a +// subsequent request. If unspecified, the server will pick an +// appropriate default. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) PageSize(pageSize int64) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Pagination token, +// returned earlier via +// ListCertificateRevocationListsResponse.next_page_token. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) PageToken(pageToken string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/certificateRevocationLists") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.list" call. +// Exactly one of *ListCertificateRevocationListsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *ListCertificateRevocationListsResponse.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Do(opts ...googleapi.CallOption) (*ListCertificateRevocationListsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListCertificateRevocationListsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists CertificateRevocationLists.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists", + // "httpMethod": "GET", + // "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. Only include resources that match the filter in the response.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Optional. Specify how the results should be sorted.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. Limit on the number of CertificateRevocationLists to include in the response. Further CertificateRevocationLists can subsequently be obtained by including the ListCertificateRevocationListsResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. Pagination token, returned earlier via ListCertificateRevocationListsResponse.next_page_token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the location associated with the CertificateRevocationLists, in the format `projects/*/locations/*/certificateauthorities/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/certificateRevocationLists", + // "response": { + // "$ref": "ListCertificateRevocationListsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Pages(ctx context.Context, f func(*ListCertificateRevocationListsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.patch": + +type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall struct { + s *Service + name string + certificaterevocationlist *CertificateRevocationList + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Update a CertificateRevocationList. +func (r *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) Patch(name string, certificaterevocationlist *CertificateRevocationList) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall { + c := &ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.certificaterevocationlist = certificaterevocationlist + return c +} + +// RequestId sets the optional parameter "requestId": An ID to identify +// requests. Specify a unique request ID so that if you must retry your +// request, the server will know to ignore the request if it has already +// been completed. The server will guarantee that for at least 60 +// minutes since the first request. For example, consider a situation +// where you make an initial request and t he request times out. If you +// make the request again with the same request ID, the server can check +// if original operation with the same request ID was received, and if +// so, will ignore the second request. This prevents clients from +// accidentally creating duplicate commitments. The request ID must be a +// valid UUID with the exception that zero UUID is not supported +// (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) RequestId(requestId string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. A list +// of fields to be updated in this request. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.certificaterevocationlist) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Update a CertificateRevocationList.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists/{certificateRevocationListsId}", + // "httpMethod": "PATCH", + // "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. The resource path for this CertificateRevocationList in the format `projects/*/locations/*/certificateAuthorities/*/ certificateRevocationLists/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "Optional. An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. A list of fields to be updated in this request.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "CertificateRevocationList" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.setIamPolicy": + +type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +func (r *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall { + c := &ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.setIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists/{certificateRevocationListsId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.setIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.testIamPermissions": + +type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. +func (r *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall { + c := &ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.testIamPermissions" call. +// Exactly one of *TestIamPermissionsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &TestIamPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists/{certificateRevocationListsId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.testIamPermissions", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:testIamPermissions", + // "request": { + // "$ref": "TestIamPermissionsRequest" + // }, + // "response": { + // "$ref": "TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "privateca.projects.locations.certificateAuthorities.certificates.create": + +type ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall struct { + s *Service + parent string + certificate *Certificate + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Create a new Certificate in a given Project, Location from a +// particular CertificateAuthority. +func (r *ProjectsLocationsCertificateAuthoritiesCertificatesService) Create(parent string, certificate *Certificate) *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall { + c := &ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.certificate = certificate + return c +} + +// CertificateId sets the optional parameter "certificateId": It must be +// unique within a location and match the regular expression +// `[a-zA-Z0-9_-]{1,63}`. This field is required when using a +// CertificateAuthority in the Enterprise CertificateAuthority.Tier, but +// is optional and its value is ignored otherwise. +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) CertificateId(certificateId string) *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall { + c.urlParams_.Set("certificateId", certificateId) + return c +} + +// RequestId sets the optional parameter "requestId": An ID to identify +// requests. Specify a unique request ID so that if you must retry your +// request, the server will know to ignore the request if it has already +// been completed. The server will guarantee that for at least 60 +// minutes since the first request. For example, consider a situation +// where you make an initial request and t he request times out. If you +// make the request again with the same request ID, the server can check +// if original operation with the same request ID was received, and if +// so, will ignore the second request. This prevents clients from +// accidentally creating duplicate commitments. The request ID must be a +// valid UUID with the exception that zero UUID is not supported +// (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) RequestId(requestId string) *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.certificate) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/certificates") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.certificateAuthorities.certificates.create" call. +// Exactly one of *Certificate or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Certificate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) Do(opts ...googleapi.CallOption) (*Certificate, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Certificate{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Create a new Certificate in a given Project, Location from a particular CertificateAuthority.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificates", + // "httpMethod": "POST", + // "id": "privateca.projects.locations.certificateAuthorities.certificates.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "certificateId": { + // "description": "Optional. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a CertificateAuthority in the Enterprise CertificateAuthority.Tier, but is optional and its value is ignored otherwise.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the location and CertificateAuthority associated with the Certificate, in the format `projects/*/locations/*/certificateAuthorities/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "Optional. An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/certificates", + // "request": { + // "$ref": "Certificate" + // }, + // "response": { + // "$ref": "Certificate" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "privateca.projects.locations.certificateAuthorities.certificates.get": + +type ProjectsLocationsCertificateAuthoritiesCertificatesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Returns a Certificate. +func (r *ProjectsLocationsCertificateAuthoritiesCertificatesService) Get(name string) *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall { + c := &ProjectsLocationsCertificateAuthoritiesCertificatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.certificateAuthorities.certificates.get" call. +// Exactly one of *Certificate or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Certificate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) Do(opts ...googleapi.CallOption) (*Certificate, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Certificate{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns a Certificate.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificates/{certificatesId}", + // "httpMethod": "GET", + // "id": "privateca.projects.locations.certificateAuthorities.certificates.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the Certificate to get.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificates/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Certificate" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "privateca.projects.locations.certificateAuthorities.certificates.list": + +type ProjectsLocationsCertificateAuthoritiesCertificatesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists Certificates. +func (r *ProjectsLocationsCertificateAuthoritiesCertificatesService) List(parent string) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall { + c := &ProjectsLocationsCertificateAuthoritiesCertificatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Only include resources +// that match the filter in the response. For details on supported +// filters and syntax, see [Certificates Filtering +// documentation](https://cloud.google.com/certificate-authority-service/ +// docs/sorting-filtering-certificates#filtering_support). +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Filter(filter string) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Specify how the +// results should be sorted. For details on supported fields and syntax, +// see [Certificates Sorting +// documentation](https://cloud.google.com/certificate-authority-service/ +// docs/sorting-filtering-certificates#sorting_support). +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) OrderBy(orderBy string) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Limit on the number +// of Certificates to include in the response. Further Certificates can +// subsequently be obtained by including the +// ListCertificatesResponse.next_page_token in a subsequent request. If +// unspecified, the server will pick an appropriate default. +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) PageSize(pageSize int64) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Pagination token, +// returned earlier via ListCertificatesResponse.next_page_token. +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) PageToken(pageToken string) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/certificates") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.certificateAuthorities.certificates.list" call. +// Exactly one of *ListCertificatesResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListCertificatesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Do(opts ...googleapi.CallOption) (*ListCertificatesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListCertificatesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists Certificates.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificates", + // "httpMethod": "GET", + // "id": "privateca.projects.locations.certificateAuthorities.certificates.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. Only include resources that match the filter in the response. For details on supported filters and syntax, see [Certificates Filtering documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#filtering_support).", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Optional. Specify how the results should be sorted. For details on supported fields and syntax, see [Certificates Sorting documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#sorting_support).", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. Limit on the number of Certificates to include in the response. Further Certificates can subsequently be obtained by including the ListCertificatesResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. Pagination token, returned earlier via ListCertificatesResponse.next_page_token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the location associated with the Certificates, in the format `projects/*/locations/*/certificateauthorities/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/certificates", + // "response": { + // "$ref": "ListCertificatesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Pages(ctx context.Context, f func(*ListCertificatesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "privateca.projects.locations.certificateAuthorities.certificates.patch": + +type ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall struct { + s *Service + name string + certificate *Certificate + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Update a Certificate. Currently, the only field you can update +// is the labels field. +func (r *ProjectsLocationsCertificateAuthoritiesCertificatesService) Patch(name string, certificate *Certificate) *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall { + c := &ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.certificate = certificate + return c +} + +// RequestId sets the optional parameter "requestId": An ID to identify +// requests. Specify a unique request ID so that if you must retry your +// request, the server will know to ignore the request if it has already +// been completed. The server will guarantee that for at least 60 +// minutes since the first request. For example, consider a situation +// where you make an initial request and t he request times out. If you +// make the request again with the same request ID, the server can check +// if original operation with the same request ID was received, and if +// so, will ignore the second request. This prevents clients from +// accidentally creating duplicate commitments. The request ID must be a +// valid UUID with the exception that zero UUID is not supported +// (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) RequestId(requestId string) *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. A list +// of fields to be updated in this request. +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.certificate) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.certificateAuthorities.certificates.patch" call. +// Exactly one of *Certificate or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Certificate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) Do(opts ...googleapi.CallOption) (*Certificate, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Certificate{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Update a Certificate. Currently, the only field you can update is the labels field.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificates/{certificatesId}", + // "httpMethod": "PATCH", + // "id": "privateca.projects.locations.certificateAuthorities.certificates.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. The resource path for this Certificate in the format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificates/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "Optional. An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. A list of fields to be updated in this request.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "Certificate" + // }, + // "response": { + // "$ref": "Certificate" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "privateca.projects.locations.certificateAuthorities.certificates.revoke": + +type ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall struct { + s *Service + name string + revokecertificaterequest *RevokeCertificateRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Revoke: Revoke a Certificate. +func (r *ProjectsLocationsCertificateAuthoritiesCertificatesService) Revoke(name string, revokecertificaterequest *RevokeCertificateRequest) *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall { + c := &ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.revokecertificaterequest = revokecertificaterequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.revokecertificaterequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:revoke") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.certificateAuthorities.certificates.revoke" call. +// Exactly one of *Certificate or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Certificate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall) Do(opts ...googleapi.CallOption) (*Certificate, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Certificate{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Revoke a Certificate.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificates/{certificatesId}:revoke", + // "httpMethod": "POST", + // "id": "privateca.projects.locations.certificateAuthorities.certificates.revoke", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name for this Certificate in the format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificates/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:revoke", + // "request": { + // "$ref": "RevokeCertificateRequest" + // }, + // "response": { + // "$ref": "Certificate" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "privateca.projects.locations.operations.cancel": + +type ProjectsLocationsOperationsCancelCall struct { + s *Service + name string + canceloperationrequest *CancelOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. +func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall { + c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.canceloperationrequest = canceloperationrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.operations.cancel" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "privateca.projects.locations.operations.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be cancelled.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:cancel", + // "request": { + // "$ref": "CancelOperationRequest" + // }, + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "privateca.projects.locations.operations.delete": + +type ProjectsLocationsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a long-running operation. This method indicates that +// the client is no longer interested in the operation result. It does +// not cancel the operation. If the server doesn't support this method, +// it returns `google.rpc.Code.UNIMPLEMENTED`. +func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall { + c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.operations.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "privateca.projects.locations.operations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be deleted.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "privateca.projects.locations.operations.get": + +type ProjectsLocationsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { + c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.operations.get" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "privateca.projects.locations.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "privateca.projects.locations.operations.list": + +type ProjectsLocationsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to +// override the binding to use different resource name schemes, such as +// `users/*/operations`. To override the binding, API services can add a +// binding such as "/v1/{name=users/*}/operations" to their service +// configuration. For backwards compatibility, the default name includes +// the operations collection id, however overriding users must ensure +// the name binding is the parent resource, without the operations +// collection id. +func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { + c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.operations.list" call. +// Exactly one of *ListOperationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations", + // "httpMethod": "GET", + // "id": "privateca.projects.locations.operations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}/operations", + // "response": { + // "$ref": "ListOperationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "privateca.projects.locations.reusableConfigs.get": + +type ProjectsLocationsReusableConfigsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Returns a ReusableConfig. +func (r *ProjectsLocationsReusableConfigsService) Get(name string) *ProjectsLocationsReusableConfigsGetCall { + c := &ProjectsLocationsReusableConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsReusableConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsReusableConfigsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsReusableConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsReusableConfigsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsReusableConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsReusableConfigsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsReusableConfigsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsReusableConfigsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.reusableConfigs.get" call. +// Exactly one of *ReusableConfig or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *ReusableConfig.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsReusableConfigsGetCall) Do(opts ...googleapi.CallOption) (*ReusableConfig, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ReusableConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns a ReusableConfig.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reusableConfigs/{reusableConfigsId}", + // "httpMethod": "GET", + // "id": "privateca.projects.locations.reusableConfigs.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the ReusableConfigs to get.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/reusableConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "ReusableConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "privateca.projects.locations.reusableConfigs.getIamPolicy": + +type ProjectsLocationsReusableConfigsGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. +func (r *ProjectsLocationsReusableConfigsService) GetIamPolicy(resource string) *ProjectsLocationsReusableConfigsGetIamPolicyCall { + c := &ProjectsLocationsReusableConfigsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The policy format version to be +// returned. Valid values are 0, 1, and 3. Requests specifying an +// invalid value will be rejected. Requests for policies with any +// conditional bindings must specify version 3. Policies without any +// conditional bindings may specify any valid value or leave the field +// unset. To learn which resources support conditions in their IAM +// policies, see the [IAM +// documentation](https://cloud.google.com/iam/help/conditions/resource-p +// olicies). +func (c *ProjectsLocationsReusableConfigsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsReusableConfigsGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsReusableConfigsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsReusableConfigsGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsReusableConfigsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsReusableConfigsGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsReusableConfigsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsReusableConfigsGetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsReusableConfigsGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsReusableConfigsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.reusableConfigs.getIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsReusableConfigsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reusableConfigs/{reusableConfigsId}:getIamPolicy", + // "httpMethod": "GET", + // "id": "privateca.projects.locations.reusableConfigs.getIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "options.requestedPolicyVersion": { + // "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/reusableConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:getIamPolicy", + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "privateca.projects.locations.reusableConfigs.list": + +type ProjectsLocationsReusableConfigsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists ReusableConfigs. +func (r *ProjectsLocationsReusableConfigsService) List(parent string) *ProjectsLocationsReusableConfigsListCall { + c := &ProjectsLocationsReusableConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Only include resources +// that match the filter in the response. +func (c *ProjectsLocationsReusableConfigsListCall) Filter(filter string) *ProjectsLocationsReusableConfigsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Specify how the +// results should be sorted. +func (c *ProjectsLocationsReusableConfigsListCall) OrderBy(orderBy string) *ProjectsLocationsReusableConfigsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Limit on the number +// of ReusableConfigs to include in the response. Further +// ReusableConfigs can subsequently be obtained by including the +// ListReusableConfigsResponse.next_page_token in a subsequent request. +// If unspecified, the server will pick an appropriate default. +func (c *ProjectsLocationsReusableConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsReusableConfigsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Pagination token, +// returned earlier via ListReusableConfigsResponse.next_page_token. +func (c *ProjectsLocationsReusableConfigsListCall) PageToken(pageToken string) *ProjectsLocationsReusableConfigsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsReusableConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsReusableConfigsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsReusableConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsReusableConfigsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsReusableConfigsListCall) Context(ctx context.Context) *ProjectsLocationsReusableConfigsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsReusableConfigsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsReusableConfigsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/reusableConfigs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.reusableConfigs.list" call. +// Exactly one of *ListReusableConfigsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListReusableConfigsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsReusableConfigsListCall) Do(opts ...googleapi.CallOption) (*ListReusableConfigsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListReusableConfigsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists ReusableConfigs.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reusableConfigs", + // "httpMethod": "GET", + // "id": "privateca.projects.locations.reusableConfigs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. Only include resources that match the filter in the response.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Optional. Specify how the results should be sorted.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. Limit on the number of ReusableConfigs to include in the response. Further ReusableConfigs can subsequently be obtained by including the ListReusableConfigsResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. Pagination token, returned earlier via ListReusableConfigsResponse.next_page_token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the location associated with the ReusableConfigs, in the format `projects/*/locations/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/reusableConfigs", + // "response": { + // "$ref": "ListReusableConfigsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsReusableConfigsListCall) Pages(ctx context.Context, f func(*ListReusableConfigsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "privateca.projects.locations.reusableConfigs.setIamPolicy": + +type ProjectsLocationsReusableConfigsSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +func (r *ProjectsLocationsReusableConfigsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsReusableConfigsSetIamPolicyCall { + c := &ProjectsLocationsReusableConfigsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsReusableConfigsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsReusableConfigsSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsReusableConfigsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsReusableConfigsSetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsReusableConfigsSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsReusableConfigsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.reusableConfigs.setIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsReusableConfigsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reusableConfigs/{reusableConfigsId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "privateca.projects.locations.reusableConfigs.setIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/reusableConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "privateca.projects.locations.reusableConfigs.testIamPermissions": + +type ProjectsLocationsReusableConfigsTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. +func (r *ProjectsLocationsReusableConfigsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsReusableConfigsTestIamPermissionsCall { + c := &ProjectsLocationsReusableConfigsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsReusableConfigsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsReusableConfigsTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsReusableConfigsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsReusableConfigsTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsReusableConfigsTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsReusableConfigsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "privateca.projects.locations.reusableConfigs.testIamPermissions" call. +// Exactly one of *TestIamPermissionsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsReusableConfigsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &TestIamPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reusableConfigs/{reusableConfigsId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "privateca.projects.locations.reusableConfigs.testIamPermissions", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/reusableConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:testIamPermissions", + // "request": { + // "$ref": "TestIamPermissionsRequest" + // }, + // "response": { + // "$ref": "TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} diff --git a/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go b/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go index 714f02be68c..91e64355586 100644 --- a/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go +++ b/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go @@ -1777,7 +1777,7 @@ func (c *CustomersGetCall) Header() http.Header { func (c *CustomersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1934,7 +1934,7 @@ func (c *CustomersListCall) Header() http.Header { func (c *CustomersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2096,7 +2096,7 @@ func (c *CustomersPatchCall) Header() http.Header { func (c *CustomersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2242,7 +2242,7 @@ func (c *CustomersDeploymentsMoveCall) Header() http.Header { func (c *CustomersDeploymentsMoveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2382,7 +2382,7 @@ func (c *CustomersDeploymentsDevicesCreateCall) Header() http.Header { func (c *CustomersDeploymentsDevicesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2522,7 +2522,7 @@ func (c *CustomersDeploymentsDevicesCreateSignedCall) Header() http.Header { func (c *CustomersDeploymentsDevicesCreateSignedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2696,7 +2696,7 @@ func (c *CustomersDeploymentsDevicesListCall) Header() http.Header { func (c *CustomersDeploymentsDevicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2869,7 +2869,7 @@ func (c *CustomersDevicesBulkCall) Header() http.Header { func (c *CustomersDevicesBulkCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3010,7 +3010,7 @@ func (c *CustomersDevicesCreateCall) Header() http.Header { func (c *CustomersDevicesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3150,7 +3150,7 @@ func (c *CustomersDevicesCreateSignedCall) Header() http.Header { func (c *CustomersDevicesCreateSignedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3288,7 +3288,7 @@ func (c *CustomersDevicesDeleteCall) Header() http.Header { func (c *CustomersDevicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3429,7 +3429,7 @@ func (c *CustomersDevicesGetCall) Header() http.Header { func (c *CustomersDevicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3598,7 +3598,7 @@ func (c *CustomersDevicesListCall) Header() http.Header { func (c *CustomersDevicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3770,7 +3770,7 @@ func (c *CustomersDevicesMoveCall) Header() http.Header { func (c *CustomersDevicesMoveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3917,7 +3917,7 @@ func (c *CustomersDevicesPatchCall) Header() http.Header { func (c *CustomersDevicesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4063,7 +4063,7 @@ func (c *CustomersDevicesSignDeviceCall) Header() http.Header { func (c *CustomersDevicesSignDeviceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4203,7 +4203,7 @@ func (c *CustomersDevicesUpdateSignedCall) Header() http.Header { func (c *CustomersDevicesUpdateSignedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4343,7 +4343,7 @@ func (c *CustomersNodesCreateCall) Header() http.Header { func (c *CustomersNodesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4481,7 +4481,7 @@ func (c *CustomersNodesDeleteCall) Header() http.Header { func (c *CustomersNodesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4622,7 +4622,7 @@ func (c *CustomersNodesGetCall) Header() http.Header { func (c *CustomersNodesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4781,7 +4781,7 @@ func (c *CustomersNodesListCall) Header() http.Header { func (c *CustomersNodesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4948,7 +4948,7 @@ func (c *CustomersNodesMoveCall) Header() http.Header { func (c *CustomersNodesMoveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5095,7 +5095,7 @@ func (c *CustomersNodesPatchCall) Header() http.Header { func (c *CustomersNodesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5241,7 +5241,7 @@ func (c *CustomersNodesDevicesCreateCall) Header() http.Header { func (c *CustomersNodesDevicesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5381,7 +5381,7 @@ func (c *CustomersNodesDevicesCreateSignedCall) Header() http.Header { func (c *CustomersNodesDevicesCreateSignedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5555,7 +5555,7 @@ func (c *CustomersNodesDevicesListCall) Header() http.Header { func (c *CustomersNodesDevicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5727,7 +5727,7 @@ func (c *CustomersNodesNodesCreateCall) Header() http.Header { func (c *CustomersNodesNodesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5891,7 +5891,7 @@ func (c *CustomersNodesNodesListCall) Header() http.Header { func (c *CustomersNodesNodesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6056,7 +6056,7 @@ func (c *DeploymentsDevicesDeleteCall) Header() http.Header { func (c *DeploymentsDevicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6197,7 +6197,7 @@ func (c *DeploymentsDevicesGetCall) Header() http.Header { func (c *DeploymentsDevicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6332,7 +6332,7 @@ func (c *DeploymentsDevicesMoveCall) Header() http.Header { func (c *DeploymentsDevicesMoveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6479,7 +6479,7 @@ func (c *DeploymentsDevicesPatchCall) Header() http.Header { func (c *DeploymentsDevicesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6625,7 +6625,7 @@ func (c *DeploymentsDevicesSignDeviceCall) Header() http.Header { func (c *DeploymentsDevicesSignDeviceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6765,7 +6765,7 @@ func (c *DeploymentsDevicesUpdateSignedCall) Header() http.Header { func (c *DeploymentsDevicesUpdateSignedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6904,7 +6904,7 @@ func (c *InstallerGenerateSecretCall) Header() http.Header { func (c *InstallerGenerateSecretCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7030,7 +7030,7 @@ func (c *InstallerValidateCall) Header() http.Header { func (c *InstallerValidateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7167,7 +7167,7 @@ func (c *NodesGetCall) Header() http.Header { func (c *NodesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7302,7 +7302,7 @@ func (c *NodesDeploymentsMoveCall) Header() http.Header { func (c *NodesDeploymentsMoveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7442,7 +7442,7 @@ func (c *NodesDeploymentsDevicesCreateCall) Header() http.Header { func (c *NodesDeploymentsDevicesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7582,7 +7582,7 @@ func (c *NodesDeploymentsDevicesCreateSignedCall) Header() http.Header { func (c *NodesDeploymentsDevicesCreateSignedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7756,7 +7756,7 @@ func (c *NodesDeploymentsDevicesListCall) Header() http.Header { func (c *NodesDeploymentsDevicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7929,7 +7929,7 @@ func (c *NodesDevicesBulkCall) Header() http.Header { func (c *NodesDevicesBulkCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8070,7 +8070,7 @@ func (c *NodesDevicesCreateCall) Header() http.Header { func (c *NodesDevicesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8210,7 +8210,7 @@ func (c *NodesDevicesCreateSignedCall) Header() http.Header { func (c *NodesDevicesCreateSignedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8348,7 +8348,7 @@ func (c *NodesDevicesDeleteCall) Header() http.Header { func (c *NodesDevicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8489,7 +8489,7 @@ func (c *NodesDevicesGetCall) Header() http.Header { func (c *NodesDevicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8658,7 +8658,7 @@ func (c *NodesDevicesListCall) Header() http.Header { func (c *NodesDevicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8830,7 +8830,7 @@ func (c *NodesDevicesMoveCall) Header() http.Header { func (c *NodesDevicesMoveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8977,7 +8977,7 @@ func (c *NodesDevicesPatchCall) Header() http.Header { func (c *NodesDevicesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9123,7 +9123,7 @@ func (c *NodesDevicesSignDeviceCall) Header() http.Header { func (c *NodesDevicesSignDeviceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9263,7 +9263,7 @@ func (c *NodesDevicesUpdateSignedCall) Header() http.Header { func (c *NodesDevicesUpdateSignedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9403,7 +9403,7 @@ func (c *NodesNodesCreateCall) Header() http.Header { func (c *NodesNodesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9541,7 +9541,7 @@ func (c *NodesNodesDeleteCall) Header() http.Header { func (c *NodesNodesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9682,7 +9682,7 @@ func (c *NodesNodesGetCall) Header() http.Header { func (c *NodesNodesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9841,7 +9841,7 @@ func (c *NodesNodesListCall) Header() http.Header { func (c *NodesNodesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10008,7 +10008,7 @@ func (c *NodesNodesMoveCall) Header() http.Header { func (c *NodesNodesMoveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10155,7 +10155,7 @@ func (c *NodesNodesPatchCall) Header() http.Header { func (c *NodesNodesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10302,7 +10302,7 @@ func (c *NodesNodesDevicesBulkCall) Header() http.Header { func (c *NodesNodesDevicesBulkCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10443,7 +10443,7 @@ func (c *NodesNodesDevicesCreateCall) Header() http.Header { func (c *NodesNodesDevicesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10583,7 +10583,7 @@ func (c *NodesNodesDevicesCreateSignedCall) Header() http.Header { func (c *NodesNodesDevicesCreateSignedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10757,7 +10757,7 @@ func (c *NodesNodesDevicesListCall) Header() http.Header { func (c *NodesNodesDevicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10929,7 +10929,7 @@ func (c *NodesNodesNodesCreateCall) Header() http.Header { func (c *NodesNodesNodesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11093,7 +11093,7 @@ func (c *NodesNodesNodesListCall) Header() http.Header { func (c *NodesNodesNodesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11259,7 +11259,7 @@ func (c *PoliciesGetCall) Header() http.Header { func (c *PoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11385,7 +11385,7 @@ func (c *PoliciesSetCall) Header() http.Header { func (c *PoliciesSetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11511,7 +11511,7 @@ func (c *PoliciesTestCall) Header() http.Header { func (c *PoliciesTestCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/pubsub/v1/pubsub-api.json b/pubsub/v1/pubsub-api.json index 7ac25acd65b..7ebad70f99b 100644 --- a/pubsub/v1/pubsub-api.json +++ b/pubsub/v1/pubsub-api.json @@ -1119,7 +1119,7 @@ } } }, - "revision": "20201012", + "revision": "20201110", "rootUrl": "https://pubsub.googleapis.com/", "schemas": { "AcknowledgeRequest": { @@ -1140,10 +1140,6 @@ "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { - "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", - "type": "string" - }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." diff --git a/pubsub/v1/pubsub-gen.go b/pubsub/v1/pubsub-gen.go index 28f96dfbbc3..24aa4e7938c 100644 --- a/pubsub/v1/pubsub-gen.go +++ b/pubsub/v1/pubsub-gen.go @@ -246,10 +246,6 @@ func (s *AcknowledgeRequest) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. - BindingId string `json:"bindingId,omitempty"` - // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -299,7 +295,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "BindingId") to + // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -307,7 +303,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BindingId") to include in + // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -1854,7 +1850,7 @@ func (c *ProjectsSnapshotsCreateCall) Header() http.Header { func (c *ProjectsSnapshotsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2002,7 +1998,7 @@ func (c *ProjectsSnapshotsDeleteCall) Header() http.Header { func (c *ProjectsSnapshotsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2147,7 +2143,7 @@ func (c *ProjectsSnapshotsGetCall) Header() http.Header { func (c *ProjectsSnapshotsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2309,7 +2305,7 @@ func (c *ProjectsSnapshotsGetIamPolicyCall) Header() http.Header { func (c *ProjectsSnapshotsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2480,7 +2476,7 @@ func (c *ProjectsSnapshotsListCall) Header() http.Header { func (c *ProjectsSnapshotsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2651,7 +2647,7 @@ func (c *ProjectsSnapshotsPatchCall) Header() http.Header { func (c *ProjectsSnapshotsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2794,7 +2790,7 @@ func (c *ProjectsSnapshotsSetIamPolicyCall) Header() http.Header { func (c *ProjectsSnapshotsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2940,7 +2936,7 @@ func (c *ProjectsSnapshotsTestIamPermissionsCall) Header() http.Header { func (c *ProjectsSnapshotsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3086,7 +3082,7 @@ func (c *ProjectsSubscriptionsAcknowledgeCall) Header() http.Header { func (c *ProjectsSubscriptionsAcknowledgeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3237,7 +3233,7 @@ func (c *ProjectsSubscriptionsCreateCall) Header() http.Header { func (c *ProjectsSubscriptionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3381,7 +3377,7 @@ func (c *ProjectsSubscriptionsDeleteCall) Header() http.Header { func (c *ProjectsSubscriptionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3516,7 +3512,7 @@ func (c *ProjectsSubscriptionsDetachCall) Header() http.Header { func (c *ProjectsSubscriptionsDetachCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3658,7 +3654,7 @@ func (c *ProjectsSubscriptionsGetCall) Header() http.Header { func (c *ProjectsSubscriptionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3820,7 +3816,7 @@ func (c *ProjectsSubscriptionsGetIamPolicyCall) Header() http.Header { func (c *ProjectsSubscriptionsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3987,7 +3983,7 @@ func (c *ProjectsSubscriptionsListCall) Header() http.Header { func (c *ProjectsSubscriptionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4160,7 +4156,7 @@ func (c *ProjectsSubscriptionsModifyAckDeadlineCall) Header() http.Header { func (c *ProjectsSubscriptionsModifyAckDeadlineCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4306,7 +4302,7 @@ func (c *ProjectsSubscriptionsModifyPushConfigCall) Header() http.Header { func (c *ProjectsSubscriptionsModifyPushConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4448,7 +4444,7 @@ func (c *ProjectsSubscriptionsPatchCall) Header() http.Header { func (c *ProjectsSubscriptionsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4591,7 +4587,7 @@ func (c *ProjectsSubscriptionsPullCall) Header() http.Header { func (c *ProjectsSubscriptionsPullCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4738,7 +4734,7 @@ func (c *ProjectsSubscriptionsSeekCall) Header() http.Header { func (c *ProjectsSubscriptionsSeekCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4881,7 +4877,7 @@ func (c *ProjectsSubscriptionsSetIamPolicyCall) Header() http.Header { func (c *ProjectsSubscriptionsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5027,7 +5023,7 @@ func (c *ProjectsSubscriptionsTestIamPermissionsCall) Header() http.Header { func (c *ProjectsSubscriptionsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5170,7 +5166,7 @@ func (c *ProjectsTopicsCreateCall) Header() http.Header { func (c *ProjectsTopicsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5314,7 +5310,7 @@ func (c *ProjectsTopicsDeleteCall) Header() http.Header { func (c *ProjectsTopicsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5456,7 +5452,7 @@ func (c *ProjectsTopicsGetCall) Header() http.Header { func (c *ProjectsTopicsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5618,7 +5614,7 @@ func (c *ProjectsTopicsGetIamPolicyCall) Header() http.Header { func (c *ProjectsTopicsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5785,7 +5781,7 @@ func (c *ProjectsTopicsListCall) Header() http.Header { func (c *ProjectsTopicsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5954,7 +5950,7 @@ func (c *ProjectsTopicsPatchCall) Header() http.Header { func (c *ProjectsTopicsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6096,7 +6092,7 @@ func (c *ProjectsTopicsPublishCall) Header() http.Header { func (c *ProjectsTopicsPublishCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6239,7 +6235,7 @@ func (c *ProjectsTopicsSetIamPolicyCall) Header() http.Header { func (c *ProjectsTopicsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6385,7 +6381,7 @@ func (c *ProjectsTopicsTestIamPermissionsCall) Header() http.Header { func (c *ProjectsTopicsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6555,7 +6551,7 @@ func (c *ProjectsTopicsSnapshotsListCall) Header() http.Header { func (c *ProjectsTopicsSnapshotsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6748,7 +6744,7 @@ func (c *ProjectsTopicsSubscriptionsListCall) Header() http.Header { func (c *ProjectsTopicsSubscriptionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/pubsub/v1beta1a/pubsub-gen.go b/pubsub/v1beta1a/pubsub-gen.go index 2cb08e26325..e4aef608228 100644 --- a/pubsub/v1beta1a/pubsub-gen.go +++ b/pubsub/v1beta1a/pubsub-gen.go @@ -908,7 +908,7 @@ func (c *SubscriptionsAcknowledgeCall) Header() http.Header { func (c *SubscriptionsAcknowledgeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1039,7 +1039,7 @@ func (c *SubscriptionsCreateCall) Header() http.Header { func (c *SubscriptionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1167,7 +1167,7 @@ func (c *SubscriptionsDeleteCall) Header() http.Header { func (c *SubscriptionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1309,7 +1309,7 @@ func (c *SubscriptionsGetCall) Header() http.Header { func (c *SubscriptionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1473,7 +1473,7 @@ func (c *SubscriptionsListCall) Header() http.Header { func (c *SubscriptionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1633,7 +1633,7 @@ func (c *SubscriptionsModifyAckDeadlineCall) Header() http.Header { func (c *SubscriptionsModifyAckDeadlineCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1763,7 +1763,7 @@ func (c *SubscriptionsModifyPushConfigCall) Header() http.Header { func (c *SubscriptionsModifyPushConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1893,7 +1893,7 @@ func (c *SubscriptionsPullCall) Header() http.Header { func (c *SubscriptionsPullCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2022,7 +2022,7 @@ func (c *SubscriptionsPullBatchCall) Header() http.Header { func (c *SubscriptionsPullBatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2148,7 +2148,7 @@ func (c *TopicsCreateCall) Header() http.Header { func (c *TopicsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2276,7 +2276,7 @@ func (c *TopicsDeleteCall) Header() http.Header { func (c *TopicsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2421,7 +2421,7 @@ func (c *TopicsGetCall) Header() http.Header { func (c *TopicsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2585,7 +2585,7 @@ func (c *TopicsListCall) Header() http.Header { func (c *TopicsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2745,7 +2745,7 @@ func (c *TopicsPublishCall) Header() http.Header { func (c *TopicsPublishCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2872,7 +2872,7 @@ func (c *TopicsPublishBatchCall) Header() http.Header { func (c *TopicsPublishBatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/pubsub/v1beta2/pubsub-api.json b/pubsub/v1beta2/pubsub-api.json index 16cf7a968a6..865e0be9f9e 100644 --- a/pubsub/v1beta2/pubsub-api.json +++ b/pubsub/v1beta2/pubsub-api.json @@ -724,7 +724,7 @@ } } }, - "revision": "20200909", + "revision": "20201110", "rootUrl": "https://pubsub.googleapis.com/", "schemas": { "AcknowledgeRequest": { @@ -745,10 +745,6 @@ "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { - "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", - "type": "string" - }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." diff --git a/pubsub/v1beta2/pubsub-gen.go b/pubsub/v1beta2/pubsub-gen.go index b6c96c6b0e8..dfe17e2ec46 100644 --- a/pubsub/v1beta2/pubsub-gen.go +++ b/pubsub/v1beta2/pubsub-gen.go @@ -222,10 +222,6 @@ func (s *AcknowledgeRequest) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. - BindingId string `json:"bindingId,omitempty"` - // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -275,7 +271,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "BindingId") to + // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -283,7 +279,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BindingId") to include in + // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -1214,7 +1210,7 @@ func (c *ProjectsSubscriptionsAcknowledgeCall) Header() http.Header { func (c *ProjectsSubscriptionsAcknowledgeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1360,7 +1356,7 @@ func (c *ProjectsSubscriptionsCreateCall) Header() http.Header { func (c *ProjectsSubscriptionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1504,7 +1500,7 @@ func (c *ProjectsSubscriptionsDeleteCall) Header() http.Header { func (c *ProjectsSubscriptionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1646,7 +1642,7 @@ func (c *ProjectsSubscriptionsGetCall) Header() http.Header { func (c *ProjectsSubscriptionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1808,7 +1804,7 @@ func (c *ProjectsSubscriptionsGetIamPolicyCall) Header() http.Header { func (c *ProjectsSubscriptionsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1975,7 +1971,7 @@ func (c *ProjectsSubscriptionsListCall) Header() http.Header { func (c *ProjectsSubscriptionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2148,7 +2144,7 @@ func (c *ProjectsSubscriptionsModifyAckDeadlineCall) Header() http.Header { func (c *ProjectsSubscriptionsModifyAckDeadlineCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2294,7 +2290,7 @@ func (c *ProjectsSubscriptionsModifyPushConfigCall) Header() http.Header { func (c *ProjectsSubscriptionsModifyPushConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2438,7 +2434,7 @@ func (c *ProjectsSubscriptionsPullCall) Header() http.Header { func (c *ProjectsSubscriptionsPullCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2581,7 +2577,7 @@ func (c *ProjectsSubscriptionsSetIamPolicyCall) Header() http.Header { func (c *ProjectsSubscriptionsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2727,7 +2723,7 @@ func (c *ProjectsSubscriptionsTestIamPermissionsCall) Header() http.Header { func (c *ProjectsSubscriptionsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2868,7 +2864,7 @@ func (c *ProjectsTopicsCreateCall) Header() http.Header { func (c *ProjectsTopicsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3012,7 +3008,7 @@ func (c *ProjectsTopicsDeleteCall) Header() http.Header { func (c *ProjectsTopicsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3154,7 +3150,7 @@ func (c *ProjectsTopicsGetCall) Header() http.Header { func (c *ProjectsTopicsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3316,7 +3312,7 @@ func (c *ProjectsTopicsGetIamPolicyCall) Header() http.Header { func (c *ProjectsTopicsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3483,7 +3479,7 @@ func (c *ProjectsTopicsListCall) Header() http.Header { func (c *ProjectsTopicsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3654,7 +3650,7 @@ func (c *ProjectsTopicsPublishCall) Header() http.Header { func (c *ProjectsTopicsPublishCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3797,7 +3793,7 @@ func (c *ProjectsTopicsSetIamPolicyCall) Header() http.Header { func (c *ProjectsTopicsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3943,7 +3939,7 @@ func (c *ProjectsTopicsTestIamPermissionsCall) Header() http.Header { func (c *ProjectsTopicsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4109,7 +4105,7 @@ func (c *ProjectsTopicsSubscriptionsListCall) Header() http.Header { func (c *ProjectsTopicsSubscriptionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/pubsublite/v1/pubsublite-gen.go b/pubsublite/v1/pubsublite-gen.go index a5ba336a33a..7d638890044 100644 --- a/pubsublite/v1/pubsublite-gen.go +++ b/pubsublite/v1/pubsublite-gen.go @@ -944,7 +944,7 @@ func (c *AdminProjectsLocationsSubscriptionsCreateCall) Header() http.Header { func (c *AdminProjectsLocationsSubscriptionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1087,7 +1087,7 @@ func (c *AdminProjectsLocationsSubscriptionsDeleteCall) Header() http.Header { func (c *AdminProjectsLocationsSubscriptionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1228,7 +1228,7 @@ func (c *AdminProjectsLocationsSubscriptionsGetCall) Header() http.Header { func (c *AdminProjectsLocationsSubscriptionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1391,7 +1391,7 @@ func (c *AdminProjectsLocationsSubscriptionsListCall) Header() http.Header { func (c *AdminProjectsLocationsSubscriptionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1565,7 +1565,7 @@ func (c *AdminProjectsLocationsSubscriptionsPatchCall) Header() http.Header { func (c *AdminProjectsLocationsSubscriptionsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1719,7 +1719,7 @@ func (c *AdminProjectsLocationsTopicsCreateCall) Header() http.Header { func (c *AdminProjectsLocationsTopicsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1862,7 +1862,7 @@ func (c *AdminProjectsLocationsTopicsDeleteCall) Header() http.Header { func (c *AdminProjectsLocationsTopicsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2003,7 +2003,7 @@ func (c *AdminProjectsLocationsTopicsGetCall) Header() http.Header { func (c *AdminProjectsLocationsTopicsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2148,7 +2148,7 @@ func (c *AdminProjectsLocationsTopicsGetPartitionsCall) Header() http.Header { func (c *AdminProjectsLocationsTopicsGetPartitionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2309,7 +2309,7 @@ func (c *AdminProjectsLocationsTopicsListCall) Header() http.Header { func (c *AdminProjectsLocationsTopicsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2483,7 +2483,7 @@ func (c *AdminProjectsLocationsTopicsPatchCall) Header() http.Header { func (c *AdminProjectsLocationsTopicsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2657,7 +2657,7 @@ func (c *AdminProjectsLocationsTopicsSubscriptionsListCall) Header() http.Header func (c *AdminProjectsLocationsTopicsSubscriptionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2851,7 +2851,7 @@ func (c *CursorProjectsLocationsSubscriptionsCursorsListCall) Header() http.Head func (c *CursorProjectsLocationsSubscriptionsCursorsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3019,7 +3019,7 @@ func (c *TopicStatsProjectsLocationsTopicsComputeMessageStatsCall) Header() http func (c *TopicStatsProjectsLocationsTopicsComputeMessageStatsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/realtimebidding/v1/realtimebidding-api.json b/realtimebidding/v1/realtimebidding-api.json index 345082ca125..fee56e0e3f0 100644 --- a/realtimebidding/v1/realtimebidding-api.json +++ b/realtimebidding/v1/realtimebidding-api.json @@ -194,6 +194,382 @@ ] } } + }, + "pretargetingConfigs": { + "methods": { + "activate": { + "description": "Activates a pretargeting configuration.", + "flatPath": "v1/bidders/{biddersId}/pretargetingConfigs/{pretargetingConfigsId}:activate", + "httpMethod": "POST", + "id": "realtimebidding.bidders.pretargetingConfigs.activate", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}", + "location": "path", + "pattern": "^bidders/[^/]+/pretargetingConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:activate", + "request": { + "$ref": "ActivatePretargetingConfigRequest" + }, + "response": { + "$ref": "PretargetingConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/realtime-bidding" + ] + }, + "addTargetedApps": { + "description": "Adds targeted apps to the pretargeting configuration.", + "flatPath": "v1/bidders/{biddersId}/pretargetingConfigs/{pretargetingConfigsId}:addTargetedApps", + "httpMethod": "POST", + "id": "realtimebidding.bidders.pretargetingConfigs.addTargetedApps", + "parameterOrder": [ + "pretargetingConfig" + ], + "parameters": { + "pretargetingConfig": { + "description": "Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}", + "location": "path", + "pattern": "^bidders/[^/]+/pretargetingConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+pretargetingConfig}:addTargetedApps", + "request": { + "$ref": "AddTargetedAppsRequest" + }, + "response": { + "$ref": "PretargetingConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/realtime-bidding" + ] + }, + "addTargetedPublishers": { + "description": "Adds targeted publishers to the pretargeting config.", + "flatPath": "v1/bidders/{biddersId}/pretargetingConfigs/{pretargetingConfigsId}:addTargetedPublishers", + "httpMethod": "POST", + "id": "realtimebidding.bidders.pretargetingConfigs.addTargetedPublishers", + "parameterOrder": [ + "pretargetingConfig" + ], + "parameters": { + "pretargetingConfig": { + "description": "Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}", + "location": "path", + "pattern": "^bidders/[^/]+/pretargetingConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+pretargetingConfig}:addTargetedPublishers", + "request": { + "$ref": "AddTargetedPublishersRequest" + }, + "response": { + "$ref": "PretargetingConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/realtime-bidding" + ] + }, + "addTargetedSites": { + "description": "Adds targeted sites to the pretargeting configuration.", + "flatPath": "v1/bidders/{biddersId}/pretargetingConfigs/{pretargetingConfigsId}:addTargetedSites", + "httpMethod": "POST", + "id": "realtimebidding.bidders.pretargetingConfigs.addTargetedSites", + "parameterOrder": [ + "pretargetingConfig" + ], + "parameters": { + "pretargetingConfig": { + "description": "Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}", + "location": "path", + "pattern": "^bidders/[^/]+/pretargetingConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+pretargetingConfig}:addTargetedSites", + "request": { + "$ref": "AddTargetedSitesRequest" + }, + "response": { + "$ref": "PretargetingConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/realtime-bidding" + ] + }, + "create": { + "description": "Creates a pretargeting configuration. A pretargeting configuration's state (PretargetingConfig.state) is active upon creation, and it will start to affect traffic shortly after. A bidder may create a maximum of 10 pretargeting configurations. Attempts to exceed this maximum results in a 400 bad request error.", + "flatPath": "v1/bidders/{biddersId}/pretargetingConfigs", + "httpMethod": "POST", + "id": "realtimebidding.bidders.pretargetingConfigs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Name of the bidder to create the pretargeting configuration for. Format: bidders/{bidderAccountId}", + "location": "path", + "pattern": "^bidders/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/pretargetingConfigs", + "request": { + "$ref": "PretargetingConfig" + }, + "response": { + "$ref": "PretargetingConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/realtime-bidding" + ] + }, + "delete": { + "description": "Deletes a pretargeting configuration.", + "flatPath": "v1/bidders/{biddersId}/pretargetingConfigs/{pretargetingConfigsId}", + "httpMethod": "DELETE", + "id": "realtimebidding.bidders.pretargetingConfigs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the pretargeting configuration to delete. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}", + "location": "path", + "pattern": "^bidders/[^/]+/pretargetingConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/realtime-bidding" + ] + }, + "get": { + "description": "Gets a pretargeting configuration.", + "flatPath": "v1/bidders/{biddersId}/pretargetingConfigs/{pretargetingConfigsId}", + "httpMethod": "GET", + "id": "realtimebidding.bidders.pretargetingConfigs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the pretargeting configuration to get. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}", + "location": "path", + "pattern": "^bidders/[^/]+/pretargetingConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "PretargetingConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/realtime-bidding" + ] + }, + "list": { + "description": "Lists all pretargeting configurations for a single bidder.", + "flatPath": "v1/bidders/{biddersId}/pretargetingConfigs", + "httpMethod": "GET", + "id": "realtimebidding.bidders.pretargetingConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of pretargeting configurations to return. If unspecified, at most 10 pretargeting configurations will be returned. The maximum value is 100; values above 100 will be coerced to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A token identifying a page of results the server should return. This value is received from a previous `ListPretargetingConfigs` call in ListPretargetingConfigsResponse.nextPageToken.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Name of the bidder whose pretargeting configurations will be listed. Format: bidders/{bidderAccountId}", + "location": "path", + "pattern": "^bidders/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/pretargetingConfigs", + "response": { + "$ref": "ListPretargetingConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/realtime-bidding" + ] + }, + "patch": { + "description": "Updates a pretargeting configuration.", + "flatPath": "v1/bidders/{biddersId}/pretargetingConfigs/{pretargetingConfigsId}", + "httpMethod": "PATCH", + "id": "realtimebidding.bidders.pretargetingConfigs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. Name of the pretargeting configuration that must follow the pattern `bidders/{bidder_account_id}/pretargetingConfigs/{config_id}`", + "location": "path", + "pattern": "^bidders/[^/]+/pretargetingConfigs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Field mask to use for partial in-place updates.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "PretargetingConfig" + }, + "response": { + "$ref": "PretargetingConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/realtime-bidding" + ] + }, + "removeTargetedApps": { + "description": "Removes targeted apps from the pretargeting configuration.", + "flatPath": "v1/bidders/{biddersId}/pretargetingConfigs/{pretargetingConfigsId}:removeTargetedApps", + "httpMethod": "POST", + "id": "realtimebidding.bidders.pretargetingConfigs.removeTargetedApps", + "parameterOrder": [ + "pretargetingConfig" + ], + "parameters": { + "pretargetingConfig": { + "description": "Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}", + "location": "path", + "pattern": "^bidders/[^/]+/pretargetingConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+pretargetingConfig}:removeTargetedApps", + "request": { + "$ref": "RemoveTargetedAppsRequest" + }, + "response": { + "$ref": "PretargetingConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/realtime-bidding" + ] + }, + "removeTargetedPublishers": { + "description": "Removes targeted publishers from the pretargeting config.", + "flatPath": "v1/bidders/{biddersId}/pretargetingConfigs/{pretargetingConfigsId}:removeTargetedPublishers", + "httpMethod": "POST", + "id": "realtimebidding.bidders.pretargetingConfigs.removeTargetedPublishers", + "parameterOrder": [ + "pretargetingConfig" + ], + "parameters": { + "pretargetingConfig": { + "description": "Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}", + "location": "path", + "pattern": "^bidders/[^/]+/pretargetingConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+pretargetingConfig}:removeTargetedPublishers", + "request": { + "$ref": "RemoveTargetedPublishersRequest" + }, + "response": { + "$ref": "PretargetingConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/realtime-bidding" + ] + }, + "removeTargetedSites": { + "description": "Removes targeted sites from the pretargeting configuration.", + "flatPath": "v1/bidders/{biddersId}/pretargetingConfigs/{pretargetingConfigsId}:removeTargetedSites", + "httpMethod": "POST", + "id": "realtimebidding.bidders.pretargetingConfigs.removeTargetedSites", + "parameterOrder": [ + "pretargetingConfig" + ], + "parameters": { + "pretargetingConfig": { + "description": "Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}", + "location": "path", + "pattern": "^bidders/[^/]+/pretargetingConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+pretargetingConfig}:removeTargetedSites", + "request": { + "$ref": "RemoveTargetedSitesRequest" + }, + "response": { + "$ref": "PretargetingConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/realtime-bidding" + ] + }, + "suspend": { + "description": "Suspends a pretargeting configuration.", + "flatPath": "v1/bidders/{biddersId}/pretargetingConfigs/{pretargetingConfigsId}:suspend", + "httpMethod": "POST", + "id": "realtimebidding.bidders.pretargetingConfigs.suspend", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}", + "location": "path", + "pattern": "^bidders/[^/]+/pretargetingConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:suspend", + "request": { + "$ref": "SuspendPretargetingConfigRequest" + }, + "response": { + "$ref": "PretargetingConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/realtime-bidding" + ] + } + } } } }, @@ -593,9 +969,99 @@ } } }, - "revision": "20201013", + "revision": "20201109", "rootUrl": "https://realtimebidding.googleapis.com/", "schemas": { + "ActivatePretargetingConfigRequest": { + "description": "A request to activate a pretargeting configuration. Sets the configuration's state to ACTIVE.", + "id": "ActivatePretargetingConfigRequest", + "properties": {}, + "type": "object" + }, + "AddTargetedAppsRequest": { + "description": "A request to start targeting the provided app IDs in a specific pretargeting configuration. The pretargeting configuration itself specifies how these apps are targeted. in PretargetingConfig.appTargeting.mobileAppTargeting.", + "id": "AddTargetedAppsRequest", + "properties": { + "appIds": { + "description": "A list of app IDs to target in the pretargeting configuration. These values will be added to the list of targeted app IDs in PretargetingConfig.appTargeting.mobileAppTargeting.values.", + "items": { + "type": "string" + }, + "type": "array" + }, + "targetingMode": { + "description": "Required. The targeting mode that should be applied to the list of app IDs. If there are existing targeted app IDs, must be equal to the existing PretargetingConfig.appTargeting.mobileAppTargeting.targetingMode or a 400 bad request error will be returned.", + "enum": [ + "TARGETING_MODE_UNSPECIFIED", + "INCLUSIVE", + "EXCLUSIVE" + ], + "enumDescriptions": [ + "Placeholder for undefined targeting mode.", + "The inclusive list type. Inventory must match an item in this list to be targeted.", + "The exclusive list type. Inventory must not match any item in this list to be targeted." + ], + "type": "string" + } + }, + "type": "object" + }, + "AddTargetedPublishersRequest": { + "description": "A request to start targeting the provided publishers in a specific pretargeting configuration. The pretargeting configuration itself specifies how these publishers are targeted in PretargetingConfig.publisherTargeting.", + "id": "AddTargetedPublishersRequest", + "properties": { + "publisherIds": { + "description": "A list of publisher IDs to target in the pretargeting configuration. These values will be added to the list of targeted publisher IDs in PretargetingConfig.publisherTargeting.values. Publishers are identified by their publisher ID from ads.txt / app-ads.txt. See https://iabtechlab.com/ads-txt/ and https://iabtechlab.com/app-ads-txt/ for more details.", + "items": { + "type": "string" + }, + "type": "array" + }, + "targetingMode": { + "description": "Required. The targeting mode that should be applied to the list of publisher IDs. If are existing publisher IDs, must be equal to the existing PretargetingConfig.publisherTargeting.targetingMode or a 400 bad request error will be returned.", + "enum": [ + "TARGETING_MODE_UNSPECIFIED", + "INCLUSIVE", + "EXCLUSIVE" + ], + "enumDescriptions": [ + "Placeholder for undefined targeting mode.", + "The inclusive list type. Inventory must match an item in this list to be targeted.", + "The exclusive list type. Inventory must not match any item in this list to be targeted." + ], + "type": "string" + } + }, + "type": "object" + }, + "AddTargetedSitesRequest": { + "description": "A request to start targeting the provided sites in a specific pretargeting configuration. The pretargeting configuration itself specifies how these sites are targeted in PretargetingConfig.webTargeting.", + "id": "AddTargetedSitesRequest", + "properties": { + "sites": { + "description": "A list of site URLs to target in the pretargeting configuration. These values will be added to the list of targeted URLs in PretargetingConfig.webTargeting.values.", + "items": { + "type": "string" + }, + "type": "array" + }, + "targetingMode": { + "description": "Required. The targeting mode that should be applied to the list of site URLs. If there are existing targeted sites, must be equal to the existing PretargetingConfig.webTargeting.targetingMode or a 400 bad request error will be returned.", + "enum": [ + "TARGETING_MODE_UNSPECIFIED", + "INCLUSIVE", + "EXCLUSIVE" + ], + "enumDescriptions": [ + "Placeholder for undefined targeting mode.", + "The inclusive list type. Inventory must match an item in this list to be targeted.", + "The exclusive list type. Inventory must not match any item in this list to be targeted." + ], + "type": "string" + } + }, + "type": "object" + }, "AdvertiserAndBrand": { "description": "Detected advertiser and brand information.", "id": "AdvertiserAndBrand", @@ -621,6 +1087,21 @@ }, "type": "object" }, + "AppTargeting": { + "description": "A subset of app inventory to target. Bid requests that match criteria in at least one of the specified dimensions will be sent.", + "id": "AppTargeting", + "properties": { + "mobileAppCategoryTargeting": { + "$ref": "NumericTargetingDimension", + "description": "Lists of included and excluded mobile app categories as defined in https://developers.google.com/adwords/api/docs/appendix/mobileappcategories.csv." + }, + "mobileAppTargeting": { + "$ref": "StringTargetingDimension", + "description": "Targeted app IDs. App IDs can refer to those found in an app store or ones that are not published in an app store. A maximum of 30,000 app IDs can be targeted." + } + }, + "type": "object" + }, "CloseUserListRequest": { "description": "A request to close a specified user list.", "id": "CloseUserListRequest", @@ -855,6 +1336,23 @@ }, "type": "object" }, + "CreativeDimensions": { + "description": "The dimensions of a creative. This applies to only HTML and Native creatives.", + "id": "CreativeDimensions", + "properties": { + "height": { + "description": "The height of the creative in pixels.", + "format": "int64", + "type": "string" + }, + "width": { + "description": "The width of the creative in pixels.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "CreativeServingDecision": { "description": "Top level status and detected attributes of a creative.", "id": "CreativeServingDecision", @@ -1244,6 +1742,12 @@ }, "type": "object" }, + "Empty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "id": "Empty", + "properties": {}, + "type": "object" + }, "GetRemarketingTagResponse": { "description": "Response for a request to get remarketing tag.", "id": "GetRemarketingTagResponse", @@ -1348,6 +1852,24 @@ }, "type": "object" }, + "ListPretargetingConfigsResponse": { + "description": "A response containing pretargeting configurations.", + "id": "ListPretargetingConfigsResponse", + "properties": { + "nextPageToken": { + "description": "A token which can be passed to a subsequent call to the `ListPretargetingConfigs` method to retrieve the next page of results in ListPretargetingConfigsRequest.pageToken.", + "type": "string" + }, + "pretargetingConfigs": { + "description": "List of pretargeting configurations.", + "items": { + "$ref": "PretargetingConfig" + }, + "type": "array" + } + }, + "type": "object" + }, "ListUserListsResponse": { "description": "The list user list response.", "id": "ListUserListsResponse", @@ -1478,6 +2000,29 @@ }, "type": "object" }, + "NumericTargetingDimension": { + "description": "Generic targeting used for targeting dimensions that contain a list of included and excluded numeric IDs used in app, user list, geo, and vertical id targeting.", + "id": "NumericTargetingDimension", + "properties": { + "excludedIds": { + "description": "The IDs excluded in a configuration.", + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + }, + "includedIds": { + "description": "The IDs included in a configuration.", + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "OpenUserListRequest": { "description": "A request to open a specified user list.", "id": "OpenUserListRequest", @@ -1571,6 +2116,299 @@ }, "type": "object" }, + "PretargetingConfig": { + "description": "Pretargeting configuration: a set of targeting dimensions applied at the pretargeting stage of the RTB funnel. These control which inventory a bidder will receive bid requests for.", + "id": "PretargetingConfig", + "properties": { + "allowedUserTargetingModes": { + "description": "Targeting modes included by this configuration. A bid request must allow all the specified targeting modes. An unset value allows all bid requests to be sent, regardless of which targeting modes they allow.", + "items": { + "enum": [ + "USER_TARGETING_MODE_UNSPECIFIED", + "REMARKETING_ADS", + "INTEREST_BASED_TARGETING" + ], + "enumDescriptions": [ + "Placeholder for undefined user targeting mode.", + "Remarketing ads are allowed to serve.", + "Ads based on user interest category targeting are allowed to serve." + ], + "type": "string" + }, + "type": "array" + }, + "appTargeting": { + "$ref": "AppTargeting", + "description": "Targeting on a subset of app inventory. If APP is listed in targeted_environments, the specified targeting is applied. A maximum of 30,000 app IDs can be targeted. An unset value for targeting allows all app-based bid requests to be sent. Apps can either be targeting positively (bid requests will be sent only if the destination app is listed in the targeting dimension) or negatively (bid requests will be sent only if the destination app is not listed in the targeting dimension)." + }, + "billingId": { + "description": "Output only. The identifier that corresponds to this pretargeting configuration that helps buyers track and attribute their spend across their own arbitrary divisions. If a bid request matches more than one configuration, the buyer chooses which billing_id to attribute each of their bids.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "The diplay name associated with this configuration. This name must be unique among all the pretargeting configurations a bidder has.", + "type": "string" + }, + "excludedContentLabelIds": { + "description": "The sensitive content category label IDs excluded in this configuration. Bid requests for inventory with any of the specified content label IDs will not be sent. Refer to this file https://storage.googleapis.com/adx-rtb-dictionaries/content-labels.txt for category IDs.", + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + }, + "geoTargeting": { + "$ref": "NumericTargetingDimension", + "description": "The geos included or excluded in this configuration defined in https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv" + }, + "includedCreativeDimensions": { + "description": "Creative dimensions included by this configuration. Only bid requests eligible for at least one of the specified creative dimensions will be sent. An unset value allows all bid requests to be sent, regardless of creative dimension.", + "items": { + "$ref": "CreativeDimensions" + }, + "type": "array" + }, + "includedEnvironments": { + "description": "Environments that are being included. Bid requests will not be sent for a given environment if it is not included. Further restrictions can be applied to included environments to target only a subset of its inventory. An unset value includes all environments.", + "items": { + "enum": [ + "ENVIRONMENT_UNSPECIFIED", + "APP", + "WEB" + ], + "enumDescriptions": [ + "Placeholder for unspecified environment. This value should not be used.", + "App environment.", + "Web environment." + ], + "type": "string" + }, + "type": "array" + }, + "includedFormats": { + "description": "Creative formats included by this configuration. Only bid requests eligible for at least one of the specified creative formats will be sent. An unset value will allow all bid requests to be sent, regardless of format.", + "items": { + "enum": [ + "CREATIVE_FORMAT_UNSPECIFIED", + "HTML", + "VAST", + "NATIVE" + ], + "enumDescriptions": [ + "Placeholder for undefined creative format. This value should not be used.", + "HTML and AMPHTML creatives.", + "VAST video or audio creative.", + "Native creative, including standard and video native ads." + ], + "type": "string" + }, + "type": "array" + }, + "includedLanguages": { + "description": "The languages included in this configuration, represented by their language code. See https://developers.google.com/adwords/api/docs/appendix/languagecodes.", + "items": { + "type": "string" + }, + "type": "array" + }, + "includedMobileOperatingSystemIds": { + "description": "The mobile operating systems included in this configuration as defined in https://storage.googleapis.com/adx-rtb-dictionaries/mobile-os.csv", + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + }, + "includedPlatforms": { + "description": "The platforms included by this configration. Bid requests for devices with the specified platform types will be sent. An unset value allows all bid requests to be sent, regardless of platform.", + "items": { + "enum": [ + "PLATFORM_UNSPECIFIED", + "PERSONAL_COMPUTER", + "PHONE", + "TABLET", + "CONNECTED_TV" + ], + "enumDescriptions": [ + "Placeholder for an undefined platform. This value should not be used.", + "The personal computer platform.", + "The mobile platform.", + "The tablet platform.", + "The connected TV platform." + ], + "type": "string" + }, + "type": "array" + }, + "includedUserIdTypes": { + "description": "User identifier types included in this configuration. At least one of the user identifier types specified in this list must be available for the bid request to be sent.", + "items": { + "enum": [ + "USER_ID_TYPE_UNSPECIFIED", + "HOSTED_MATCH_DATA", + "GOOGLE_COOKIE", + "DEVICE_ID" + ], + "enumDescriptions": [ + "Placeholder for unspecified user identifier.", + "Hosted match data, referring to hosted_match_data in the bid request.", + "Google cookie, referring to google_user_id in the bid request.", + "Mobile device advertising ID." + ], + "type": "string" + }, + "type": "array" + }, + "interstitialTargeting": { + "description": "The interstitial targeting specified for this configuration. The unset value will allow bid requests to be sent regardless of whether they are for interstitials or not.", + "enum": [ + "INTERSTITIAL_TARGETING_UNSPECIFIED", + "ONLY_INTERSTITIAL_REQUESTS", + "ONLY_NON_INTERSTITIAL_REQUESTS" + ], + "enumDescriptions": [ + "Unspecified interstitial targeting. Represents an interstitial-agnostic selection.", + "Only bid requests for interstitial inventory should be sent.", + "Only bid requests for non-interstitial inventory should be sent." + ], + "type": "string" + }, + "invalidGeoIds": { + "description": "Output only. Existing included or excluded geos that are invalid. Previously targeted geos may become invalid due to privacy restrictions.", + "items": { + "format": "int64", + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "maximumQps": { + "description": "The maximum QPS threshold for this configuration. The bidder should receive no more than this number of bid requests matching this configuration per second across all their bidding endpoints among all trading locations. Further information available at https://developers.google.com/authorized-buyers/rtb/peer-guide", + "format": "int64", + "type": "string" + }, + "minimumViewabilityDecile": { + "description": "The targeted minimum viewability decile, ranging in values [0, 10]. A value of 5 means that the configuration will only match adslots for which we predict at least 50% viewability. Values \u003e 10 will be rounded down to 10. An unset value or a value of 0 indicates that bid requests will be sent regardless of viewability.", + "format": "int32", + "type": "integer" + }, + "name": { + "description": "Output only. Name of the pretargeting configuration that must follow the pattern `bidders/{bidder_account_id}/pretargetingConfigs/{config_id}`", + "readOnly": true, + "type": "string" + }, + "publisherTargeting": { + "$ref": "StringTargetingDimension", + "description": "Targeting on a subset of publisher inventory. Publishers can either be targeted positively (bid requests will be sent only if the publisher is listed in the targeting dimension) or negatively (bid requests will be sent only if the publisher is not listed in the targeting dimension). A maximum of 10,000 publisher IDs can be targeted. Publisher IDs are found in [ads.txt](https://iabtechlab.com/ads-txt/) / [app-ads.txt](https://iabtechlab.com/app-ads-txt/) and in bid requests in the `BidRequest.publisher_id` field on the [Google RTB protocol](https://developers.google.com/authorized-buyers/rtb/downloads/realtime-bidding-proto) or the `BidRequest.site.publisher.id` / `BidRequest.app.publisher.id` field on the [OpenRTB protocol](https://developers.google.com/authorized-buyers/rtb/downloads/openrtb-adx-proto)." + }, + "state": { + "description": "Output only. The state of this pretargeting configuration.", + "enum": [ + "STATE_UNSPECIFIED", + "ACTIVE", + "SUSPENDED" + ], + "enumDescriptions": [ + "Placeholder for undefined state.", + "This pretargeting configuration is actively being used to filter bid requests.", + "This pretargeting configuration is suspended and not used in serving." + ], + "readOnly": true, + "type": "string" + }, + "userListTargeting": { + "$ref": "NumericTargetingDimension", + "description": "The remarketing lists included or excluded in this configuration as defined in UserList." + }, + "verticalTargeting": { + "$ref": "NumericTargetingDimension", + "description": "The verticals included or excluded in this configuration as defined in https://developers.google.com/authorized-buyers/rtb/downloads/publisher-verticals" + }, + "webTargeting": { + "$ref": "StringTargetingDimension", + "description": "Targeting on a subset of site inventory. If WEB is listed in included_environments, the specified targeting is applied. A maximum of 50,000 site URLs can be targeted. An unset value for targeting allows all web-based bid requests to be sent. Sites can either be targeting positively (bid requests will be sent only if the destination site is listed in the targeting dimension) or negatively (bid requests will be sent only if the destination site is not listed in the pretargeting configuration)." + } + }, + "type": "object" + }, + "RemoveTargetedAppsRequest": { + "description": "A request to stop targeting the provided apps in a specific pretargeting configuration. The pretargeting configuration itself specifies how these apps are targeted. in PretargetingConfig.appTargeting.mobileAppTargeting.", + "id": "RemoveTargetedAppsRequest", + "properties": { + "appIds": { + "description": "A list of app IDs to stop targeting in the pretargeting configuration. These values will be removed from the list of targeted app IDs in PretargetingConfig.appTargeting.mobileAppTargeting.values.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "RemoveTargetedPublishersRequest": { + "description": "A request to stop targeting publishers in a specific configuration. The pretargeting configuration itself specifies how these publishers are targeted in PretargetingConfig.publisherTargeting.", + "id": "RemoveTargetedPublishersRequest", + "properties": { + "publisherIds": { + "description": "A list of publisher IDs to stop targeting in the pretargeting configuration. These values will be removed from the list of targeted publisher IDs in PretargetingConfig.publisherTargeting.values. Publishers are identified by their publisher ID from ads.txt / app-ads.txt. See https://iabtechlab.com/ads-txt/ and https://iabtechlab.com/app-ads-txt/ for more details.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "RemoveTargetedSitesRequest": { + "description": "A request to stop targeting sites in a specific pretargeting configuration. The pretargeting configuration itself specifies how these sites are targeted in PretargetingConfig.webTargeting.", + "id": "RemoveTargetedSitesRequest", + "properties": { + "sites": { + "description": "A list of site URLs to stop targeting in the pretargeting configuration. These values will be removed from the list of targeted URLs in PretargetingConfig.webTargeting.values.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "StringTargetingDimension": { + "description": "Generic targeting with string values used in app, website and publisher targeting.", + "id": "StringTargetingDimension", + "properties": { + "targetingMode": { + "description": "How the items in this list should be targeted.", + "enum": [ + "TARGETING_MODE_UNSPECIFIED", + "INCLUSIVE", + "EXCLUSIVE" + ], + "enumDescriptions": [ + "Placeholder for undefined targeting mode.", + "The inclusive list type. Inventory must match an item in this list to be targeted.", + "The exclusive list type. Inventory must not match any item in this list to be targeted." + ], + "type": "string" + }, + "values": { + "description": "The values specified.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "SuspendPretargetingConfigRequest": { + "description": "A request to suspend a pretargeting configuration. Sets the configuration's state to SUSPENDED.", + "id": "SuspendPretargetingConfigRequest", + "properties": {}, + "type": "object" + }, "UrlDownloadSize": { "description": "The URL-level breakdown for the download size.", "id": "UrlDownloadSize", diff --git a/realtimebidding/v1/realtimebidding-gen.go b/realtimebidding/v1/realtimebidding-gen.go index d509ddc5904..d4c5a3e9022 100644 --- a/realtimebidding/v1/realtimebidding-gen.go +++ b/realtimebidding/v1/realtimebidding-gen.go @@ -142,6 +142,7 @@ func (s *Service) userAgent() string { func NewBiddersService(s *Service) *BiddersService { rs := &BiddersService{s: s} rs.Creatives = NewBiddersCreativesService(s) + rs.PretargetingConfigs = NewBiddersPretargetingConfigsService(s) return rs } @@ -149,6 +150,8 @@ type BiddersService struct { s *Service Creatives *BiddersCreativesService + + PretargetingConfigs *BiddersPretargetingConfigsService } func NewBiddersCreativesService(s *Service) *BiddersCreativesService { @@ -160,6 +163,15 @@ type BiddersCreativesService struct { s *Service } +func NewBiddersPretargetingConfigsService(s *Service) *BiddersPretargetingConfigsService { + rs := &BiddersPretargetingConfigsService{s: s} + return rs +} + +type BiddersPretargetingConfigsService struct { + s *Service +} + func NewBuyersService(s *Service) *BuyersService { rs := &BuyersService{s: s} rs.Creatives = NewBuyersCreativesService(s) @@ -193,6 +205,157 @@ type BuyersUserListsService struct { s *Service } +// ActivatePretargetingConfigRequest: A request to activate a +// pretargeting configuration. Sets the configuration's state to ACTIVE. +type ActivatePretargetingConfigRequest struct { +} + +// AddTargetedAppsRequest: A request to start targeting the provided app +// IDs in a specific pretargeting configuration. The pretargeting +// configuration itself specifies how these apps are targeted. in +// PretargetingConfig.appTargeting.mobileAppTargeting. +type AddTargetedAppsRequest struct { + // AppIds: A list of app IDs to target in the pretargeting + // configuration. These values will be added to the list of targeted app + // IDs in PretargetingConfig.appTargeting.mobileAppTargeting.values. + AppIds []string `json:"appIds,omitempty"` + + // TargetingMode: Required. The targeting mode that should be applied to + // the list of app IDs. If there are existing targeted app IDs, must be + // equal to the existing + // PretargetingConfig.appTargeting.mobileAppTargeting.targetingMode or a + // 400 bad request error will be returned. + // + // Possible values: + // "TARGETING_MODE_UNSPECIFIED" - Placeholder for undefined targeting + // mode. + // "INCLUSIVE" - The inclusive list type. Inventory must match an item + // in this list to be targeted. + // "EXCLUSIVE" - The exclusive list type. Inventory must not match any + // item in this list to be targeted. + TargetingMode string `json:"targetingMode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AppIds") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AppIds") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AddTargetedAppsRequest) MarshalJSON() ([]byte, error) { + type NoMethod AddTargetedAppsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AddTargetedPublishersRequest: A request to start targeting the +// provided publishers in a specific pretargeting configuration. The +// pretargeting configuration itself specifies how these publishers are +// targeted in PretargetingConfig.publisherTargeting. +type AddTargetedPublishersRequest struct { + // PublisherIds: A list of publisher IDs to target in the pretargeting + // configuration. These values will be added to the list of targeted + // publisher IDs in PretargetingConfig.publisherTargeting.values. + // Publishers are identified by their publisher ID from ads.txt / + // app-ads.txt. See https://iabtechlab.com/ads-txt/ and + // https://iabtechlab.com/app-ads-txt/ for more details. + PublisherIds []string `json:"publisherIds,omitempty"` + + // TargetingMode: Required. The targeting mode that should be applied to + // the list of publisher IDs. If are existing publisher IDs, must be + // equal to the existing + // PretargetingConfig.publisherTargeting.targetingMode or a 400 bad + // request error will be returned. + // + // Possible values: + // "TARGETING_MODE_UNSPECIFIED" - Placeholder for undefined targeting + // mode. + // "INCLUSIVE" - The inclusive list type. Inventory must match an item + // in this list to be targeted. + // "EXCLUSIVE" - The exclusive list type. Inventory must not match any + // item in this list to be targeted. + TargetingMode string `json:"targetingMode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PublisherIds") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PublisherIds") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AddTargetedPublishersRequest) MarshalJSON() ([]byte, error) { + type NoMethod AddTargetedPublishersRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AddTargetedSitesRequest: A request to start targeting the provided +// sites in a specific pretargeting configuration. The pretargeting +// configuration itself specifies how these sites are targeted in +// PretargetingConfig.webTargeting. +type AddTargetedSitesRequest struct { + // Sites: A list of site URLs to target in the pretargeting + // configuration. These values will be added to the list of targeted + // URLs in PretargetingConfig.webTargeting.values. + Sites []string `json:"sites,omitempty"` + + // TargetingMode: Required. The targeting mode that should be applied to + // the list of site URLs. If there are existing targeted sites, must be + // equal to the existing PretargetingConfig.webTargeting.targetingMode + // or a 400 bad request error will be returned. + // + // Possible values: + // "TARGETING_MODE_UNSPECIFIED" - Placeholder for undefined targeting + // mode. + // "INCLUSIVE" - The inclusive list type. Inventory must match an item + // in this list to be targeted. + // "EXCLUSIVE" - The exclusive list type. Inventory must not match any + // item in this list to be targeted. + TargetingMode string `json:"targetingMode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Sites") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Sites") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AddTargetedSitesRequest) MarshalJSON() ([]byte, error) { + type NoMethod AddTargetedSitesRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AdvertiserAndBrand: Detected advertiser and brand information. type AdvertiserAndBrand struct { // AdvertiserId: See @@ -238,6 +401,45 @@ func (s *AdvertiserAndBrand) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AppTargeting: A subset of app inventory to target. Bid requests that +// match criteria in at least one of the specified dimensions will be +// sent. +type AppTargeting struct { + // MobileAppCategoryTargeting: Lists of included and excluded mobile app + // categories as defined in + // https://developers.google.com/adwords/api/docs/appendix/mobileappcategories.csv. + MobileAppCategoryTargeting *NumericTargetingDimension `json:"mobileAppCategoryTargeting,omitempty"` + + // MobileAppTargeting: Targeted app IDs. App IDs can refer to those + // found in an app store or ones that are not published in an app store. + // A maximum of 30,000 app IDs can be targeted. + MobileAppTargeting *StringTargetingDimension `json:"mobileAppTargeting,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "MobileAppCategoryTargeting") to unconditionally include in API + // requests. By default, fields with empty values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "MobileAppCategoryTargeting") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppTargeting) MarshalJSON() ([]byte, error) { + type NoMethod AppTargeting + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CloseUserListRequest: A request to close a specified user list. type CloseUserListRequest struct { } @@ -442,6 +644,38 @@ func (s *Creative) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CreativeDimensions: The dimensions of a creative. This applies to +// only HTML and Native creatives. +type CreativeDimensions struct { + // Height: The height of the creative in pixels. + Height int64 `json:"height,omitempty,string"` + + // Width: The width of the creative in pixels. + Width int64 `json:"width,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "Height") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Height") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CreativeDimensions) MarshalJSON() ([]byte, error) { + type NoMethod CreativeDimensions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CreativeServingDecision: Top level status and detected attributes of // a creative. type CreativeServingDecision struct { @@ -923,6 +1157,18 @@ func (s *DownloadSizeEvidence) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Empty: A generic empty message that you can re-use to avoid defining +// duplicated empty messages in your APIs. A typical example is to use +// it as the request or the response type of an API method. For +// instance: service Foo { rpc Bar(google.protobuf.Empty) returns +// (google.protobuf.Empty); } The JSON representation for `Empty` is +// empty JSON object `{}`. +type Empty struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + // GetRemarketingTagResponse: Response for a request to get remarketing // tag. type GetRemarketingTagResponse struct { @@ -1136,6 +1382,44 @@ func (s *ListCreativesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListPretargetingConfigsResponse: A response containing pretargeting +// configurations. +type ListPretargetingConfigsResponse struct { + // NextPageToken: A token which can be passed to a subsequent call to + // the `ListPretargetingConfigs` method to retrieve the next page of + // results in ListPretargetingConfigsRequest.pageToken. + NextPageToken string `json:"nextPageToken,omitempty"` + + // PretargetingConfigs: List of pretargeting configurations. + PretargetingConfigs []*PretargetingConfig `json:"pretargetingConfigs,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListPretargetingConfigsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListPretargetingConfigsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListUserListsResponse: The list user list response. type ListUserListsResponse struct { // NextPageToken: The continuation page token to send back to the server @@ -1311,6 +1595,39 @@ func (s *NativeContent) UnmarshalJSON(data []byte) error { return nil } +// NumericTargetingDimension: Generic targeting used for targeting +// dimensions that contain a list of included and excluded numeric IDs +// used in app, user list, geo, and vertical id targeting. +type NumericTargetingDimension struct { + // ExcludedIds: The IDs excluded in a configuration. + ExcludedIds googleapi.Int64s `json:"excludedIds,omitempty"` + + // IncludedIds: The IDs included in a configuration. + IncludedIds googleapi.Int64s `json:"includedIds,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExcludedIds") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExcludedIds") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *NumericTargetingDimension) MarshalJSON() ([]byte, error) { + type NoMethod NumericTargetingDimension + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // OpenUserListRequest: A request to open a specified user list. type OpenUserListRequest struct { } @@ -1452,16 +1769,252 @@ func (s *PolicyTopicEvidence) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// UrlDownloadSize: The URL-level breakdown for the download size. -type UrlDownloadSize struct { - // DownloadSizeKb: Download size of the URL in kilobytes. - DownloadSizeKb int64 `json:"downloadSizeKb,omitempty"` +// PretargetingConfig: Pretargeting configuration: a set of targeting +// dimensions applied at the pretargeting stage of the RTB funnel. These +// control which inventory a bidder will receive bid requests for. +type PretargetingConfig struct { + // AllowedUserTargetingModes: Targeting modes included by this + // configuration. A bid request must allow all the specified targeting + // modes. An unset value allows all bid requests to be sent, regardless + // of which targeting modes they allow. + // + // Possible values: + // "USER_TARGETING_MODE_UNSPECIFIED" - Placeholder for undefined user + // targeting mode. + // "REMARKETING_ADS" - Remarketing ads are allowed to serve. + // "INTEREST_BASED_TARGETING" - Ads based on user interest category + // targeting are allowed to serve. + AllowedUserTargetingModes []string `json:"allowedUserTargetingModes,omitempty"` + + // AppTargeting: Targeting on a subset of app inventory. If APP is + // listed in targeted_environments, the specified targeting is applied. + // A maximum of 30,000 app IDs can be targeted. An unset value for + // targeting allows all app-based bid requests to be sent. Apps can + // either be targeting positively (bid requests will be sent only if the + // destination app is listed in the targeting dimension) or negatively + // (bid requests will be sent only if the destination app is not listed + // in the targeting dimension). + AppTargeting *AppTargeting `json:"appTargeting,omitempty"` + + // BillingId: Output only. The identifier that corresponds to this + // pretargeting configuration that helps buyers track and attribute + // their spend across their own arbitrary divisions. If a bid request + // matches more than one configuration, the buyer chooses which + // billing_id to attribute each of their bids. + BillingId int64 `json:"billingId,omitempty,string"` + + // DisplayName: The diplay name associated with this configuration. This + // name must be unique among all the pretargeting configurations a + // bidder has. + DisplayName string `json:"displayName,omitempty"` - // NormalizedUrl: The normalized URL with query parameters and fragment - // removed. - NormalizedUrl string `json:"normalizedUrl,omitempty"` + // ExcludedContentLabelIds: The sensitive content category label IDs + // excluded in this configuration. Bid requests for inventory with any + // of the specified content label IDs will not be sent. Refer to this + // file + // https://storage.googleapis.com/adx-rtb-dictionaries/content-labels.txt for category + // IDs. + ExcludedContentLabelIds googleapi.Int64s `json:"excludedContentLabelIds,omitempty"` + + // GeoTargeting: The geos included or excluded in this configuration + // defined in + // https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv + GeoTargeting *NumericTargetingDimension `json:"geoTargeting,omitempty"` + + // IncludedCreativeDimensions: Creative dimensions included by this + // configuration. Only bid requests eligible for at least one of the + // specified creative dimensions will be sent. An unset value allows all + // bid requests to be sent, regardless of creative dimension. + IncludedCreativeDimensions []*CreativeDimensions `json:"includedCreativeDimensions,omitempty"` + + // IncludedEnvironments: Environments that are being included. Bid + // requests will not be sent for a given environment if it is not + // included. Further restrictions can be applied to included + // environments to target only a subset of its inventory. An unset value + // includes all environments. + // + // Possible values: + // "ENVIRONMENT_UNSPECIFIED" - Placeholder for unspecified + // environment. This value should not be used. + // "APP" - App environment. + // "WEB" - Web environment. + IncludedEnvironments []string `json:"includedEnvironments,omitempty"` + + // IncludedFormats: Creative formats included by this configuration. + // Only bid requests eligible for at least one of the specified creative + // formats will be sent. An unset value will allow all bid requests to + // be sent, regardless of format. + // + // Possible values: + // "CREATIVE_FORMAT_UNSPECIFIED" - Placeholder for undefined creative + // format. This value should not be used. + // "HTML" - HTML and AMPHTML creatives. + // "VAST" - VAST video or audio creative. + // "NATIVE" - Native creative, including standard and video native + // ads. + IncludedFormats []string `json:"includedFormats,omitempty"` + + // IncludedLanguages: The languages included in this configuration, + // represented by their language code. See + // https://developers.google.com/adwords/api/docs/appendix/languagecodes. + IncludedLanguages []string `json:"includedLanguages,omitempty"` + + // IncludedMobileOperatingSystemIds: The mobile operating systems + // included in this configuration as defined in + // https://storage.googleapis.com/adx-rtb-dictionaries/mobile-os.csv + IncludedMobileOperatingSystemIds googleapi.Int64s `json:"includedMobileOperatingSystemIds,omitempty"` + + // IncludedPlatforms: The platforms included by this configration. Bid + // requests for devices with the specified platform types will be sent. + // An unset value allows all bid requests to be sent, regardless of + // platform. + // + // Possible values: + // "PLATFORM_UNSPECIFIED" - Placeholder for an undefined platform. + // This value should not be used. + // "PERSONAL_COMPUTER" - The personal computer platform. + // "PHONE" - The mobile platform. + // "TABLET" - The tablet platform. + // "CONNECTED_TV" - The connected TV platform. + IncludedPlatforms []string `json:"includedPlatforms,omitempty"` + + // IncludedUserIdTypes: User identifier types included in this + // configuration. At least one of the user identifier types specified in + // this list must be available for the bid request to be sent. + // + // Possible values: + // "USER_ID_TYPE_UNSPECIFIED" - Placeholder for unspecified user + // identifier. + // "HOSTED_MATCH_DATA" - Hosted match data, referring to + // hosted_match_data in the bid request. + // "GOOGLE_COOKIE" - Google cookie, referring to google_user_id in the + // bid request. + // "DEVICE_ID" - Mobile device advertising ID. + IncludedUserIdTypes []string `json:"includedUserIdTypes,omitempty"` + + // InterstitialTargeting: The interstitial targeting specified for this + // configuration. The unset value will allow bid requests to be sent + // regardless of whether they are for interstitials or not. + // + // Possible values: + // "INTERSTITIAL_TARGETING_UNSPECIFIED" - Unspecified interstitial + // targeting. Represents an interstitial-agnostic selection. + // "ONLY_INTERSTITIAL_REQUESTS" - Only bid requests for interstitial + // inventory should be sent. + // "ONLY_NON_INTERSTITIAL_REQUESTS" - Only bid requests for + // non-interstitial inventory should be sent. + InterstitialTargeting string `json:"interstitialTargeting,omitempty"` + + // InvalidGeoIds: Output only. Existing included or excluded geos that + // are invalid. Previously targeted geos may become invalid due to + // privacy restrictions. + InvalidGeoIds googleapi.Int64s `json:"invalidGeoIds,omitempty"` + + // MaximumQps: The maximum QPS threshold for this configuration. The + // bidder should receive no more than this number of bid requests + // matching this configuration per second across all their bidding + // endpoints among all trading locations. Further information available + // at https://developers.google.com/authorized-buyers/rtb/peer-guide + MaximumQps int64 `json:"maximumQps,omitempty,string"` + + // MinimumViewabilityDecile: The targeted minimum viewability decile, + // ranging in values [0, 10]. A value of 5 means that the configuration + // will only match adslots for which we predict at least 50% + // viewability. Values > 10 will be rounded down to 10. An unset value + // or a value of 0 indicates that bid requests will be sent regardless + // of viewability. + MinimumViewabilityDecile int64 `json:"minimumViewabilityDecile,omitempty"` + + // Name: Output only. Name of the pretargeting configuration that must + // follow the pattern + // `bidders/{bidder_account_id}/pretargetingConfigs/{config_id}` + Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "DownloadSizeKb") to + // PublisherTargeting: Targeting on a subset of publisher inventory. + // Publishers can either be targeted positively (bid requests will be + // sent only if the publisher is listed in the targeting dimension) or + // negatively (bid requests will be sent only if the publisher is not + // listed in the targeting dimension). A maximum of 10,000 publisher IDs + // can be targeted. Publisher IDs are found in + // [ads.txt](https://iabtechlab.com/ads-txt/) / + // [app-ads.txt](https://iabtechlab.com/app-ads-txt/) and in bid + // requests in the `BidRequest.publisher_id` field on the [Google RTB + // protocol](https://developers.google.com/authorized-buyers/rtb/download + // s/realtime-bidding-proto) or the `BidRequest.site.publisher.id` / + // `BidRequest.app.publisher.id` field on the [OpenRTB + // protocol](https://developers.google.com/authorized-buyers/rtb/download + // s/openrtb-adx-proto). + PublisherTargeting *StringTargetingDimension `json:"publisherTargeting,omitempty"` + + // State: Output only. The state of this pretargeting configuration. + // + // Possible values: + // "STATE_UNSPECIFIED" - Placeholder for undefined state. + // "ACTIVE" - This pretargeting configuration is actively being used + // to filter bid requests. + // "SUSPENDED" - This pretargeting configuration is suspended and not + // used in serving. + State string `json:"state,omitempty"` + + // UserListTargeting: The remarketing lists included or excluded in this + // configuration as defined in UserList. + UserListTargeting *NumericTargetingDimension `json:"userListTargeting,omitempty"` + + // VerticalTargeting: The verticals included or excluded in this + // configuration as defined in + // https://developers.google.com/authorized-buyers/rtb/downloads/publisher-verticals + VerticalTargeting *NumericTargetingDimension `json:"verticalTargeting,omitempty"` + + // WebTargeting: Targeting on a subset of site inventory. If WEB is + // listed in included_environments, the specified targeting is applied. + // A maximum of 50,000 site URLs can be targeted. An unset value for + // targeting allows all web-based bid requests to be sent. Sites can + // either be targeting positively (bid requests will be sent only if the + // destination site is listed in the targeting dimension) or negatively + // (bid requests will be sent only if the destination site is not listed + // in the pretargeting configuration). + WebTargeting *StringTargetingDimension `json:"webTargeting,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "AllowedUserTargetingModes") to unconditionally include in API + // requests. By default, fields with empty values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "AllowedUserTargetingModes") to include in API requests with the JSON + // null value. By default, fields with empty values are omitted from API + // requests. However, any field with an empty value appearing in + // NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *PretargetingConfig) MarshalJSON() ([]byte, error) { + type NoMethod PretargetingConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RemoveTargetedAppsRequest: A request to stop targeting the provided +// apps in a specific pretargeting configuration. The pretargeting +// configuration itself specifies how these apps are targeted. in +// PretargetingConfig.appTargeting.mobileAppTargeting. +type RemoveTargetedAppsRequest struct { + // AppIds: A list of app IDs to stop targeting in the pretargeting + // configuration. These values will be removed from the list of targeted + // app IDs in PretargetingConfig.appTargeting.mobileAppTargeting.values. + AppIds []string `json:"appIds,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AppIds") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -1469,37 +2022,184 @@ type UrlDownloadSize struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DownloadSizeKb") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AppIds") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *UrlDownloadSize) MarshalJSON() ([]byte, error) { - type NoMethod UrlDownloadSize +func (s *RemoveTargetedAppsRequest) MarshalJSON() ([]byte, error) { + type NoMethod RemoveTargetedAppsRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// UrlRestriction: Represents the URL restriction (for the URL captured -// by the pixel callback) for a user list. -type UrlRestriction struct { - // EndDate: End date (if specified) of the URL restriction. End date - // should be later than the start date for the date range to be valid. - EndDate *Date `json:"endDate,omitempty"` +// RemoveTargetedPublishersRequest: A request to stop targeting +// publishers in a specific configuration. The pretargeting +// configuration itself specifies how these publishers are targeted in +// PretargetingConfig.publisherTargeting. +type RemoveTargetedPublishersRequest struct { + // PublisherIds: A list of publisher IDs to stop targeting in the + // pretargeting configuration. These values will be removed from the + // list of targeted publisher IDs in + // PretargetingConfig.publisherTargeting.values. Publishers are + // identified by their publisher ID from ads.txt / app-ads.txt. See + // https://iabtechlab.com/ads-txt/ and + // https://iabtechlab.com/app-ads-txt/ for more details. + PublisherIds []string `json:"publisherIds,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PublisherIds") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` - // RestrictionType: The restriction type for the specified URL. - // - // Possible values: - // "RESTRICTION_TYPE_UNSPECIFIED" - Default value that should never be - // used. - // "CONTAINS" - The tag URL (as recorded by the pixel callback) - // contains the specified URL. - // "EQUALS" - The tag URL (as recorded by the pixel callback) exactly + // NullFields is a list of field names (e.g. "PublisherIds") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RemoveTargetedPublishersRequest) MarshalJSON() ([]byte, error) { + type NoMethod RemoveTargetedPublishersRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RemoveTargetedSitesRequest: A request to stop targeting sites in a +// specific pretargeting configuration. The pretargeting configuration +// itself specifies how these sites are targeted in +// PretargetingConfig.webTargeting. +type RemoveTargetedSitesRequest struct { + // Sites: A list of site URLs to stop targeting in the pretargeting + // configuration. These values will be removed from the list of targeted + // URLs in PretargetingConfig.webTargeting.values. + Sites []string `json:"sites,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Sites") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Sites") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RemoveTargetedSitesRequest) MarshalJSON() ([]byte, error) { + type NoMethod RemoveTargetedSitesRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// StringTargetingDimension: Generic targeting with string values used +// in app, website and publisher targeting. +type StringTargetingDimension struct { + // TargetingMode: How the items in this list should be targeted. + // + // Possible values: + // "TARGETING_MODE_UNSPECIFIED" - Placeholder for undefined targeting + // mode. + // "INCLUSIVE" - The inclusive list type. Inventory must match an item + // in this list to be targeted. + // "EXCLUSIVE" - The exclusive list type. Inventory must not match any + // item in this list to be targeted. + TargetingMode string `json:"targetingMode,omitempty"` + + // Values: The values specified. + Values []string `json:"values,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TargetingMode") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TargetingMode") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *StringTargetingDimension) MarshalJSON() ([]byte, error) { + type NoMethod StringTargetingDimension + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SuspendPretargetingConfigRequest: A request to suspend a pretargeting +// configuration. Sets the configuration's state to SUSPENDED. +type SuspendPretargetingConfigRequest struct { +} + +// UrlDownloadSize: The URL-level breakdown for the download size. +type UrlDownloadSize struct { + // DownloadSizeKb: Download size of the URL in kilobytes. + DownloadSizeKb int64 `json:"downloadSizeKb,omitempty"` + + // NormalizedUrl: The normalized URL with query parameters and fragment + // removed. + NormalizedUrl string `json:"normalizedUrl,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DownloadSizeKb") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DownloadSizeKb") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *UrlDownloadSize) MarshalJSON() ([]byte, error) { + type NoMethod UrlDownloadSize + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// UrlRestriction: Represents the URL restriction (for the URL captured +// by the pixel callback) for a user list. +type UrlRestriction struct { + // EndDate: End date (if specified) of the URL restriction. End date + // should be later than the start date for the date range to be valid. + EndDate *Date `json:"endDate,omitempty"` + + // RestrictionType: The restriction type for the specified URL. + // + // Possible values: + // "RESTRICTION_TYPE_UNSPECIFIED" - Default value that should never be + // used. + // "CONTAINS" - The tag URL (as recorded by the pixel callback) + // contains the specified URL. + // "EQUALS" - The tag URL (as recorded by the pixel callback) exactly // matches the specified URL. // "STARTS_WITH" - The tag URL (as recorded by the pixel callback) // starts with the specified URL. @@ -1858,7 +2558,7 @@ func (c *BiddersCreativesListCall) Header() http.Header { func (c *BiddersCreativesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2051,7 +2751,7 @@ func (c *BiddersCreativesWatchCall) Header() http.Header { func (c *BiddersCreativesWatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2145,6 +2845,1897 @@ func (c *BiddersCreativesWatchCall) Do(opts ...googleapi.CallOption) (*WatchCrea } +// method id "realtimebidding.bidders.pretargetingConfigs.activate": + +type BiddersPretargetingConfigsActivateCall struct { + s *Service + name string + activatepretargetingconfigrequest *ActivatePretargetingConfigRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Activate: Activates a pretargeting configuration. +func (r *BiddersPretargetingConfigsService) Activate(name string, activatepretargetingconfigrequest *ActivatePretargetingConfigRequest) *BiddersPretargetingConfigsActivateCall { + c := &BiddersPretargetingConfigsActivateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.activatepretargetingconfigrequest = activatepretargetingconfigrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *BiddersPretargetingConfigsActivateCall) Fields(s ...googleapi.Field) *BiddersPretargetingConfigsActivateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *BiddersPretargetingConfigsActivateCall) Context(ctx context.Context) *BiddersPretargetingConfigsActivateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *BiddersPretargetingConfigsActivateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *BiddersPretargetingConfigsActivateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.activatepretargetingconfigrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:activate") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "realtimebidding.bidders.pretargetingConfigs.activate" call. +// Exactly one of *PretargetingConfig or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *PretargetingConfig.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *BiddersPretargetingConfigsActivateCall) Do(opts ...googleapi.CallOption) (*PretargetingConfig, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &PretargetingConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Activates a pretargeting configuration.", + // "flatPath": "v1/bidders/{biddersId}/pretargetingConfigs/{pretargetingConfigsId}:activate", + // "httpMethod": "POST", + // "id": "realtimebidding.bidders.pretargetingConfigs.activate", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}", + // "location": "path", + // "pattern": "^bidders/[^/]+/pretargetingConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:activate", + // "request": { + // "$ref": "ActivatePretargetingConfigRequest" + // }, + // "response": { + // "$ref": "PretargetingConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/realtime-bidding" + // ] + // } + +} + +// method id "realtimebidding.bidders.pretargetingConfigs.addTargetedApps": + +type BiddersPretargetingConfigsAddTargetedAppsCall struct { + s *Service + pretargetingConfig string + addtargetedappsrequest *AddTargetedAppsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// AddTargetedApps: Adds targeted apps to the pretargeting +// configuration. +func (r *BiddersPretargetingConfigsService) AddTargetedApps(pretargetingConfig string, addtargetedappsrequest *AddTargetedAppsRequest) *BiddersPretargetingConfigsAddTargetedAppsCall { + c := &BiddersPretargetingConfigsAddTargetedAppsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.pretargetingConfig = pretargetingConfig + c.addtargetedappsrequest = addtargetedappsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *BiddersPretargetingConfigsAddTargetedAppsCall) Fields(s ...googleapi.Field) *BiddersPretargetingConfigsAddTargetedAppsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *BiddersPretargetingConfigsAddTargetedAppsCall) Context(ctx context.Context) *BiddersPretargetingConfigsAddTargetedAppsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *BiddersPretargetingConfigsAddTargetedAppsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *BiddersPretargetingConfigsAddTargetedAppsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.addtargetedappsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+pretargetingConfig}:addTargetedApps") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "pretargetingConfig": c.pretargetingConfig, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "realtimebidding.bidders.pretargetingConfigs.addTargetedApps" call. +// Exactly one of *PretargetingConfig or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *PretargetingConfig.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *BiddersPretargetingConfigsAddTargetedAppsCall) Do(opts ...googleapi.CallOption) (*PretargetingConfig, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &PretargetingConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Adds targeted apps to the pretargeting configuration.", + // "flatPath": "v1/bidders/{biddersId}/pretargetingConfigs/{pretargetingConfigsId}:addTargetedApps", + // "httpMethod": "POST", + // "id": "realtimebidding.bidders.pretargetingConfigs.addTargetedApps", + // "parameterOrder": [ + // "pretargetingConfig" + // ], + // "parameters": { + // "pretargetingConfig": { + // "description": "Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}", + // "location": "path", + // "pattern": "^bidders/[^/]+/pretargetingConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+pretargetingConfig}:addTargetedApps", + // "request": { + // "$ref": "AddTargetedAppsRequest" + // }, + // "response": { + // "$ref": "PretargetingConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/realtime-bidding" + // ] + // } + +} + +// method id "realtimebidding.bidders.pretargetingConfigs.addTargetedPublishers": + +type BiddersPretargetingConfigsAddTargetedPublishersCall struct { + s *Service + pretargetingConfig string + addtargetedpublishersrequest *AddTargetedPublishersRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// AddTargetedPublishers: Adds targeted publishers to the pretargeting +// config. +func (r *BiddersPretargetingConfigsService) AddTargetedPublishers(pretargetingConfig string, addtargetedpublishersrequest *AddTargetedPublishersRequest) *BiddersPretargetingConfigsAddTargetedPublishersCall { + c := &BiddersPretargetingConfigsAddTargetedPublishersCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.pretargetingConfig = pretargetingConfig + c.addtargetedpublishersrequest = addtargetedpublishersrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *BiddersPretargetingConfigsAddTargetedPublishersCall) Fields(s ...googleapi.Field) *BiddersPretargetingConfigsAddTargetedPublishersCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *BiddersPretargetingConfigsAddTargetedPublishersCall) Context(ctx context.Context) *BiddersPretargetingConfigsAddTargetedPublishersCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *BiddersPretargetingConfigsAddTargetedPublishersCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *BiddersPretargetingConfigsAddTargetedPublishersCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.addtargetedpublishersrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+pretargetingConfig}:addTargetedPublishers") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "pretargetingConfig": c.pretargetingConfig, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "realtimebidding.bidders.pretargetingConfigs.addTargetedPublishers" call. +// Exactly one of *PretargetingConfig or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *PretargetingConfig.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *BiddersPretargetingConfigsAddTargetedPublishersCall) Do(opts ...googleapi.CallOption) (*PretargetingConfig, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &PretargetingConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Adds targeted publishers to the pretargeting config.", + // "flatPath": "v1/bidders/{biddersId}/pretargetingConfigs/{pretargetingConfigsId}:addTargetedPublishers", + // "httpMethod": "POST", + // "id": "realtimebidding.bidders.pretargetingConfigs.addTargetedPublishers", + // "parameterOrder": [ + // "pretargetingConfig" + // ], + // "parameters": { + // "pretargetingConfig": { + // "description": "Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}", + // "location": "path", + // "pattern": "^bidders/[^/]+/pretargetingConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+pretargetingConfig}:addTargetedPublishers", + // "request": { + // "$ref": "AddTargetedPublishersRequest" + // }, + // "response": { + // "$ref": "PretargetingConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/realtime-bidding" + // ] + // } + +} + +// method id "realtimebidding.bidders.pretargetingConfigs.addTargetedSites": + +type BiddersPretargetingConfigsAddTargetedSitesCall struct { + s *Service + pretargetingConfig string + addtargetedsitesrequest *AddTargetedSitesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// AddTargetedSites: Adds targeted sites to the pretargeting +// configuration. +func (r *BiddersPretargetingConfigsService) AddTargetedSites(pretargetingConfig string, addtargetedsitesrequest *AddTargetedSitesRequest) *BiddersPretargetingConfigsAddTargetedSitesCall { + c := &BiddersPretargetingConfigsAddTargetedSitesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.pretargetingConfig = pretargetingConfig + c.addtargetedsitesrequest = addtargetedsitesrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *BiddersPretargetingConfigsAddTargetedSitesCall) Fields(s ...googleapi.Field) *BiddersPretargetingConfigsAddTargetedSitesCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *BiddersPretargetingConfigsAddTargetedSitesCall) Context(ctx context.Context) *BiddersPretargetingConfigsAddTargetedSitesCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *BiddersPretargetingConfigsAddTargetedSitesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *BiddersPretargetingConfigsAddTargetedSitesCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.addtargetedsitesrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+pretargetingConfig}:addTargetedSites") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "pretargetingConfig": c.pretargetingConfig, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "realtimebidding.bidders.pretargetingConfigs.addTargetedSites" call. +// Exactly one of *PretargetingConfig or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *PretargetingConfig.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *BiddersPretargetingConfigsAddTargetedSitesCall) Do(opts ...googleapi.CallOption) (*PretargetingConfig, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &PretargetingConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Adds targeted sites to the pretargeting configuration.", + // "flatPath": "v1/bidders/{biddersId}/pretargetingConfigs/{pretargetingConfigsId}:addTargetedSites", + // "httpMethod": "POST", + // "id": "realtimebidding.bidders.pretargetingConfigs.addTargetedSites", + // "parameterOrder": [ + // "pretargetingConfig" + // ], + // "parameters": { + // "pretargetingConfig": { + // "description": "Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}", + // "location": "path", + // "pattern": "^bidders/[^/]+/pretargetingConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+pretargetingConfig}:addTargetedSites", + // "request": { + // "$ref": "AddTargetedSitesRequest" + // }, + // "response": { + // "$ref": "PretargetingConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/realtime-bidding" + // ] + // } + +} + +// method id "realtimebidding.bidders.pretargetingConfigs.create": + +type BiddersPretargetingConfigsCreateCall struct { + s *Service + parent string + pretargetingconfig *PretargetingConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a pretargeting configuration. A pretargeting +// configuration's state (PretargetingConfig.state) is active upon +// creation, and it will start to affect traffic shortly after. A bidder +// may create a maximum of 10 pretargeting configurations. Attempts to +// exceed this maximum results in a 400 bad request error. +func (r *BiddersPretargetingConfigsService) Create(parent string, pretargetingconfig *PretargetingConfig) *BiddersPretargetingConfigsCreateCall { + c := &BiddersPretargetingConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.pretargetingconfig = pretargetingconfig + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *BiddersPretargetingConfigsCreateCall) Fields(s ...googleapi.Field) *BiddersPretargetingConfigsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *BiddersPretargetingConfigsCreateCall) Context(ctx context.Context) *BiddersPretargetingConfigsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *BiddersPretargetingConfigsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *BiddersPretargetingConfigsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.pretargetingconfig) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/pretargetingConfigs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "realtimebidding.bidders.pretargetingConfigs.create" call. +// Exactly one of *PretargetingConfig or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *PretargetingConfig.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *BiddersPretargetingConfigsCreateCall) Do(opts ...googleapi.CallOption) (*PretargetingConfig, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &PretargetingConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a pretargeting configuration. A pretargeting configuration's state (PretargetingConfig.state) is active upon creation, and it will start to affect traffic shortly after. A bidder may create a maximum of 10 pretargeting configurations. Attempts to exceed this maximum results in a 400 bad request error.", + // "flatPath": "v1/bidders/{biddersId}/pretargetingConfigs", + // "httpMethod": "POST", + // "id": "realtimebidding.bidders.pretargetingConfigs.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Name of the bidder to create the pretargeting configuration for. Format: bidders/{bidderAccountId}", + // "location": "path", + // "pattern": "^bidders/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/pretargetingConfigs", + // "request": { + // "$ref": "PretargetingConfig" + // }, + // "response": { + // "$ref": "PretargetingConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/realtime-bidding" + // ] + // } + +} + +// method id "realtimebidding.bidders.pretargetingConfigs.delete": + +type BiddersPretargetingConfigsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a pretargeting configuration. +func (r *BiddersPretargetingConfigsService) Delete(name string) *BiddersPretargetingConfigsDeleteCall { + c := &BiddersPretargetingConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *BiddersPretargetingConfigsDeleteCall) Fields(s ...googleapi.Field) *BiddersPretargetingConfigsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *BiddersPretargetingConfigsDeleteCall) Context(ctx context.Context) *BiddersPretargetingConfigsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *BiddersPretargetingConfigsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *BiddersPretargetingConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "realtimebidding.bidders.pretargetingConfigs.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *BiddersPretargetingConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a pretargeting configuration.", + // "flatPath": "v1/bidders/{biddersId}/pretargetingConfigs/{pretargetingConfigsId}", + // "httpMethod": "DELETE", + // "id": "realtimebidding.bidders.pretargetingConfigs.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the pretargeting configuration to delete. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}", + // "location": "path", + // "pattern": "^bidders/[^/]+/pretargetingConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/realtime-bidding" + // ] + // } + +} + +// method id "realtimebidding.bidders.pretargetingConfigs.get": + +type BiddersPretargetingConfigsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a pretargeting configuration. +func (r *BiddersPretargetingConfigsService) Get(name string) *BiddersPretargetingConfigsGetCall { + c := &BiddersPretargetingConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *BiddersPretargetingConfigsGetCall) Fields(s ...googleapi.Field) *BiddersPretargetingConfigsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *BiddersPretargetingConfigsGetCall) IfNoneMatch(entityTag string) *BiddersPretargetingConfigsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *BiddersPretargetingConfigsGetCall) Context(ctx context.Context) *BiddersPretargetingConfigsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *BiddersPretargetingConfigsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *BiddersPretargetingConfigsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "realtimebidding.bidders.pretargetingConfigs.get" call. +// Exactly one of *PretargetingConfig or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *PretargetingConfig.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *BiddersPretargetingConfigsGetCall) Do(opts ...googleapi.CallOption) (*PretargetingConfig, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &PretargetingConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a pretargeting configuration.", + // "flatPath": "v1/bidders/{biddersId}/pretargetingConfigs/{pretargetingConfigsId}", + // "httpMethod": "GET", + // "id": "realtimebidding.bidders.pretargetingConfigs.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the pretargeting configuration to get. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}", + // "location": "path", + // "pattern": "^bidders/[^/]+/pretargetingConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "PretargetingConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/realtime-bidding" + // ] + // } + +} + +// method id "realtimebidding.bidders.pretargetingConfigs.list": + +type BiddersPretargetingConfigsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all pretargeting configurations for a single bidder. +func (r *BiddersPretargetingConfigsService) List(parent string) *BiddersPretargetingConfigsListCall { + c := &BiddersPretargetingConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of pretargeting configurations to return. If unspecified, at most 10 +// pretargeting configurations will be returned. The maximum value is +// 100; values above 100 will be coerced to 100. +func (c *BiddersPretargetingConfigsListCall) PageSize(pageSize int64) *BiddersPretargetingConfigsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token +// identifying a page of results the server should return. This value is +// received from a previous `ListPretargetingConfigs` call in +// ListPretargetingConfigsResponse.nextPageToken. +func (c *BiddersPretargetingConfigsListCall) PageToken(pageToken string) *BiddersPretargetingConfigsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *BiddersPretargetingConfigsListCall) Fields(s ...googleapi.Field) *BiddersPretargetingConfigsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *BiddersPretargetingConfigsListCall) IfNoneMatch(entityTag string) *BiddersPretargetingConfigsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *BiddersPretargetingConfigsListCall) Context(ctx context.Context) *BiddersPretargetingConfigsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *BiddersPretargetingConfigsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *BiddersPretargetingConfigsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/pretargetingConfigs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "realtimebidding.bidders.pretargetingConfigs.list" call. +// Exactly one of *ListPretargetingConfigsResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListPretargetingConfigsResponse.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *BiddersPretargetingConfigsListCall) Do(opts ...googleapi.CallOption) (*ListPretargetingConfigsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListPretargetingConfigsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists all pretargeting configurations for a single bidder.", + // "flatPath": "v1/bidders/{biddersId}/pretargetingConfigs", + // "httpMethod": "GET", + // "id": "realtimebidding.bidders.pretargetingConfigs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of pretargeting configurations to return. If unspecified, at most 10 pretargeting configurations will be returned. The maximum value is 100; values above 100 will be coerced to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A token identifying a page of results the server should return. This value is received from a previous `ListPretargetingConfigs` call in ListPretargetingConfigsResponse.nextPageToken.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Name of the bidder whose pretargeting configurations will be listed. Format: bidders/{bidderAccountId}", + // "location": "path", + // "pattern": "^bidders/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/pretargetingConfigs", + // "response": { + // "$ref": "ListPretargetingConfigsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/realtime-bidding" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *BiddersPretargetingConfigsListCall) Pages(ctx context.Context, f func(*ListPretargetingConfigsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "realtimebidding.bidders.pretargetingConfigs.patch": + +type BiddersPretargetingConfigsPatchCall struct { + s *Service + name string + pretargetingconfig *PretargetingConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a pretargeting configuration. +func (r *BiddersPretargetingConfigsService) Patch(name string, pretargetingconfig *PretargetingConfig) *BiddersPretargetingConfigsPatchCall { + c := &BiddersPretargetingConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.pretargetingconfig = pretargetingconfig + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask to +// use for partial in-place updates. +func (c *BiddersPretargetingConfigsPatchCall) UpdateMask(updateMask string) *BiddersPretargetingConfigsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *BiddersPretargetingConfigsPatchCall) Fields(s ...googleapi.Field) *BiddersPretargetingConfigsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *BiddersPretargetingConfigsPatchCall) Context(ctx context.Context) *BiddersPretargetingConfigsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *BiddersPretargetingConfigsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *BiddersPretargetingConfigsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.pretargetingconfig) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "realtimebidding.bidders.pretargetingConfigs.patch" call. +// Exactly one of *PretargetingConfig or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *PretargetingConfig.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *BiddersPretargetingConfigsPatchCall) Do(opts ...googleapi.CallOption) (*PretargetingConfig, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &PretargetingConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a pretargeting configuration.", + // "flatPath": "v1/bidders/{biddersId}/pretargetingConfigs/{pretargetingConfigsId}", + // "httpMethod": "PATCH", + // "id": "realtimebidding.bidders.pretargetingConfigs.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. Name of the pretargeting configuration that must follow the pattern `bidders/{bidder_account_id}/pretargetingConfigs/{config_id}`", + // "location": "path", + // "pattern": "^bidders/[^/]+/pretargetingConfigs/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Field mask to use for partial in-place updates.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "PretargetingConfig" + // }, + // "response": { + // "$ref": "PretargetingConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/realtime-bidding" + // ] + // } + +} + +// method id "realtimebidding.bidders.pretargetingConfigs.removeTargetedApps": + +type BiddersPretargetingConfigsRemoveTargetedAppsCall struct { + s *Service + pretargetingConfig string + removetargetedappsrequest *RemoveTargetedAppsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// RemoveTargetedApps: Removes targeted apps from the pretargeting +// configuration. +func (r *BiddersPretargetingConfigsService) RemoveTargetedApps(pretargetingConfig string, removetargetedappsrequest *RemoveTargetedAppsRequest) *BiddersPretargetingConfigsRemoveTargetedAppsCall { + c := &BiddersPretargetingConfigsRemoveTargetedAppsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.pretargetingConfig = pretargetingConfig + c.removetargetedappsrequest = removetargetedappsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *BiddersPretargetingConfigsRemoveTargetedAppsCall) Fields(s ...googleapi.Field) *BiddersPretargetingConfigsRemoveTargetedAppsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *BiddersPretargetingConfigsRemoveTargetedAppsCall) Context(ctx context.Context) *BiddersPretargetingConfigsRemoveTargetedAppsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *BiddersPretargetingConfigsRemoveTargetedAppsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *BiddersPretargetingConfigsRemoveTargetedAppsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.removetargetedappsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+pretargetingConfig}:removeTargetedApps") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "pretargetingConfig": c.pretargetingConfig, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "realtimebidding.bidders.pretargetingConfigs.removeTargetedApps" call. +// Exactly one of *PretargetingConfig or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *PretargetingConfig.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *BiddersPretargetingConfigsRemoveTargetedAppsCall) Do(opts ...googleapi.CallOption) (*PretargetingConfig, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &PretargetingConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Removes targeted apps from the pretargeting configuration.", + // "flatPath": "v1/bidders/{biddersId}/pretargetingConfigs/{pretargetingConfigsId}:removeTargetedApps", + // "httpMethod": "POST", + // "id": "realtimebidding.bidders.pretargetingConfigs.removeTargetedApps", + // "parameterOrder": [ + // "pretargetingConfig" + // ], + // "parameters": { + // "pretargetingConfig": { + // "description": "Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}", + // "location": "path", + // "pattern": "^bidders/[^/]+/pretargetingConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+pretargetingConfig}:removeTargetedApps", + // "request": { + // "$ref": "RemoveTargetedAppsRequest" + // }, + // "response": { + // "$ref": "PretargetingConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/realtime-bidding" + // ] + // } + +} + +// method id "realtimebidding.bidders.pretargetingConfigs.removeTargetedPublishers": + +type BiddersPretargetingConfigsRemoveTargetedPublishersCall struct { + s *Service + pretargetingConfig string + removetargetedpublishersrequest *RemoveTargetedPublishersRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// RemoveTargetedPublishers: Removes targeted publishers from the +// pretargeting config. +func (r *BiddersPretargetingConfigsService) RemoveTargetedPublishers(pretargetingConfig string, removetargetedpublishersrequest *RemoveTargetedPublishersRequest) *BiddersPretargetingConfigsRemoveTargetedPublishersCall { + c := &BiddersPretargetingConfigsRemoveTargetedPublishersCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.pretargetingConfig = pretargetingConfig + c.removetargetedpublishersrequest = removetargetedpublishersrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *BiddersPretargetingConfigsRemoveTargetedPublishersCall) Fields(s ...googleapi.Field) *BiddersPretargetingConfigsRemoveTargetedPublishersCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *BiddersPretargetingConfigsRemoveTargetedPublishersCall) Context(ctx context.Context) *BiddersPretargetingConfigsRemoveTargetedPublishersCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *BiddersPretargetingConfigsRemoveTargetedPublishersCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *BiddersPretargetingConfigsRemoveTargetedPublishersCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.removetargetedpublishersrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+pretargetingConfig}:removeTargetedPublishers") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "pretargetingConfig": c.pretargetingConfig, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "realtimebidding.bidders.pretargetingConfigs.removeTargetedPublishers" call. +// Exactly one of *PretargetingConfig or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *PretargetingConfig.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *BiddersPretargetingConfigsRemoveTargetedPublishersCall) Do(opts ...googleapi.CallOption) (*PretargetingConfig, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &PretargetingConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Removes targeted publishers from the pretargeting config.", + // "flatPath": "v1/bidders/{biddersId}/pretargetingConfigs/{pretargetingConfigsId}:removeTargetedPublishers", + // "httpMethod": "POST", + // "id": "realtimebidding.bidders.pretargetingConfigs.removeTargetedPublishers", + // "parameterOrder": [ + // "pretargetingConfig" + // ], + // "parameters": { + // "pretargetingConfig": { + // "description": "Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}", + // "location": "path", + // "pattern": "^bidders/[^/]+/pretargetingConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+pretargetingConfig}:removeTargetedPublishers", + // "request": { + // "$ref": "RemoveTargetedPublishersRequest" + // }, + // "response": { + // "$ref": "PretargetingConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/realtime-bidding" + // ] + // } + +} + +// method id "realtimebidding.bidders.pretargetingConfigs.removeTargetedSites": + +type BiddersPretargetingConfigsRemoveTargetedSitesCall struct { + s *Service + pretargetingConfig string + removetargetedsitesrequest *RemoveTargetedSitesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// RemoveTargetedSites: Removes targeted sites from the pretargeting +// configuration. +func (r *BiddersPretargetingConfigsService) RemoveTargetedSites(pretargetingConfig string, removetargetedsitesrequest *RemoveTargetedSitesRequest) *BiddersPretargetingConfigsRemoveTargetedSitesCall { + c := &BiddersPretargetingConfigsRemoveTargetedSitesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.pretargetingConfig = pretargetingConfig + c.removetargetedsitesrequest = removetargetedsitesrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *BiddersPretargetingConfigsRemoveTargetedSitesCall) Fields(s ...googleapi.Field) *BiddersPretargetingConfigsRemoveTargetedSitesCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *BiddersPretargetingConfigsRemoveTargetedSitesCall) Context(ctx context.Context) *BiddersPretargetingConfigsRemoveTargetedSitesCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *BiddersPretargetingConfigsRemoveTargetedSitesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *BiddersPretargetingConfigsRemoveTargetedSitesCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.removetargetedsitesrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+pretargetingConfig}:removeTargetedSites") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "pretargetingConfig": c.pretargetingConfig, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "realtimebidding.bidders.pretargetingConfigs.removeTargetedSites" call. +// Exactly one of *PretargetingConfig or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *PretargetingConfig.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *BiddersPretargetingConfigsRemoveTargetedSitesCall) Do(opts ...googleapi.CallOption) (*PretargetingConfig, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &PretargetingConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Removes targeted sites from the pretargeting configuration.", + // "flatPath": "v1/bidders/{biddersId}/pretargetingConfigs/{pretargetingConfigsId}:removeTargetedSites", + // "httpMethod": "POST", + // "id": "realtimebidding.bidders.pretargetingConfigs.removeTargetedSites", + // "parameterOrder": [ + // "pretargetingConfig" + // ], + // "parameters": { + // "pretargetingConfig": { + // "description": "Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}", + // "location": "path", + // "pattern": "^bidders/[^/]+/pretargetingConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+pretargetingConfig}:removeTargetedSites", + // "request": { + // "$ref": "RemoveTargetedSitesRequest" + // }, + // "response": { + // "$ref": "PretargetingConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/realtime-bidding" + // ] + // } + +} + +// method id "realtimebidding.bidders.pretargetingConfigs.suspend": + +type BiddersPretargetingConfigsSuspendCall struct { + s *Service + name string + suspendpretargetingconfigrequest *SuspendPretargetingConfigRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Suspend: Suspends a pretargeting configuration. +func (r *BiddersPretargetingConfigsService) Suspend(name string, suspendpretargetingconfigrequest *SuspendPretargetingConfigRequest) *BiddersPretargetingConfigsSuspendCall { + c := &BiddersPretargetingConfigsSuspendCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.suspendpretargetingconfigrequest = suspendpretargetingconfigrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *BiddersPretargetingConfigsSuspendCall) Fields(s ...googleapi.Field) *BiddersPretargetingConfigsSuspendCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *BiddersPretargetingConfigsSuspendCall) Context(ctx context.Context) *BiddersPretargetingConfigsSuspendCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *BiddersPretargetingConfigsSuspendCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *BiddersPretargetingConfigsSuspendCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.suspendpretargetingconfigrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:suspend") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "realtimebidding.bidders.pretargetingConfigs.suspend" call. +// Exactly one of *PretargetingConfig or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *PretargetingConfig.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *BiddersPretargetingConfigsSuspendCall) Do(opts ...googleapi.CallOption) (*PretargetingConfig, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &PretargetingConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Suspends a pretargeting configuration.", + // "flatPath": "v1/bidders/{biddersId}/pretargetingConfigs/{pretargetingConfigsId}:suspend", + // "httpMethod": "POST", + // "id": "realtimebidding.bidders.pretargetingConfigs.suspend", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}", + // "location": "path", + // "pattern": "^bidders/[^/]+/pretargetingConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:suspend", + // "request": { + // "$ref": "SuspendPretargetingConfigRequest" + // }, + // "response": { + // "$ref": "PretargetingConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/realtime-bidding" + // ] + // } + +} + // method id "realtimebidding.buyers.getRemarketingTag": type BuyersGetRemarketingTagCall struct { @@ -2203,7 +4794,7 @@ func (c *BuyersGetRemarketingTagCall) Header() http.Header { func (c *BuyersGetRemarketingTagCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2338,7 +4929,7 @@ func (c *BuyersCreativesCreateCall) Header() http.Header { func (c *BuyersCreativesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2505,7 +5096,7 @@ func (c *BuyersCreativesGetCall) Header() http.Header { func (c *BuyersCreativesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2711,7 +5302,7 @@ func (c *BuyersCreativesListCall) Header() http.Header { func (c *BuyersCreativesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2905,7 +5496,7 @@ func (c *BuyersCreativesPatchCall) Header() http.Header { func (c *BuyersCreativesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3052,7 +5643,7 @@ func (c *BuyersUserListsCloseCall) Header() http.Header { func (c *BuyersUserListsCloseCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3192,7 +5783,7 @@ func (c *BuyersUserListsCreateCall) Header() http.Header { func (c *BuyersUserListsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3341,7 +5932,7 @@ func (c *BuyersUserListsGetCall) Header() http.Header { func (c *BuyersUserListsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3488,7 +6079,7 @@ func (c *BuyersUserListsGetRemarketingTagCall) Header() http.Header { func (c *BuyersUserListsGetRemarketingTagCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3646,7 +6237,7 @@ func (c *BuyersUserListsListCall) Header() http.Header { func (c *BuyersUserListsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3814,7 +6405,7 @@ func (c *BuyersUserListsOpenCall) Header() http.Header { func (c *BuyersUserListsOpenCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3955,7 +6546,7 @@ func (c *BuyersUserListsUpdateCall) Header() http.Header { func (c *BuyersUserListsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/recommendationengine/v1beta1/recommendationengine-api.json b/recommendationengine/v1beta1/recommendationengine-api.json index 3a5fad0d28a..eec0979f1dd 100644 --- a/recommendationengine/v1beta1/recommendationengine-api.json +++ b/recommendationengine/v1beta1/recommendationengine-api.json @@ -842,7 +842,7 @@ } } }, - "revision": "20200810", + "revision": "20201027", "rootUrl": "https://recommendationengine.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -1814,6 +1814,12 @@ }, "type": "object" }, + "GoogleCloudRecommendationengineV1beta1RejoinUserEventsMetadata": { + "description": "Metadata for RejoinUserEvents method.", + "id": "GoogleCloudRecommendationengineV1beta1RejoinUserEventsMetadata", + "properties": {}, + "type": "object" + }, "GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest": { "description": "Request message for CatalogRejoin method.", "id": "GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest", @@ -1835,6 +1841,18 @@ }, "type": "object" }, + "GoogleCloudRecommendationengineV1beta1RejoinUserEventsResponse": { + "description": "Response message for RejoinUserEvents method.", + "id": "GoogleCloudRecommendationengineV1beta1RejoinUserEventsResponse", + "properties": { + "rejoinedUserEventsCount": { + "description": "Number of user events that were joined with latest catalog items.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRecommendationengineV1beta1UserEvent": { "description": "UserEvent captures all metadata information recommendation engine needs to know about how end users interact with customers' website.", "id": "GoogleCloudRecommendationengineV1beta1UserEvent", diff --git a/recommendationengine/v1beta1/recommendationengine-gen.go b/recommendationengine/v1beta1/recommendationengine-gen.go index f5bd942caa9..c2e278e93dd 100644 --- a/recommendationengine/v1beta1/recommendationengine-gen.go +++ b/recommendationengine/v1beta1/recommendationengine-gen.go @@ -2134,6 +2134,11 @@ func (s *GoogleCloudRecommendationengineV1beta1PurgeUserEventsResponse) MarshalJ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRecommendationengineV1beta1RejoinUserEventsMetadata: +// Metadata for RejoinUserEvents method. +type GoogleCloudRecommendationengineV1beta1RejoinUserEventsMetadata struct { +} + // GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest: // Request message for CatalogRejoin method. type GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest struct { @@ -2173,6 +2178,38 @@ func (s *GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest) MarshalJ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRecommendationengineV1beta1RejoinUserEventsResponse: +// Response message for RejoinUserEvents method. +type GoogleCloudRecommendationengineV1beta1RejoinUserEventsResponse struct { + // RejoinedUserEventsCount: Number of user events that were joined with + // latest catalog items. + RejoinedUserEventsCount int64 `json:"rejoinedUserEventsCount,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. + // "RejoinedUserEventsCount") to unconditionally include in API + // requests. By default, fields with empty values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "RejoinedUserEventsCount") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRecommendationengineV1beta1RejoinUserEventsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRecommendationengineV1beta1RejoinUserEventsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRecommendationengineV1beta1UserEvent: UserEvent captures // all metadata information recommendation engine needs to know about // how end users interact with customers' website. @@ -2608,7 +2645,7 @@ func (c *ProjectsLocationsCatalogsListCall) Header() http.Header { func (c *ProjectsLocationsCatalogsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2787,7 +2824,7 @@ func (c *ProjectsLocationsCatalogsPatchCall) Header() http.Header { func (c *ProjectsLocationsCatalogsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2935,7 +2972,7 @@ func (c *ProjectsLocationsCatalogsCatalogItemsCreateCall) Header() http.Header { func (c *ProjectsLocationsCatalogsCatalogItemsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3075,7 +3112,7 @@ func (c *ProjectsLocationsCatalogsCatalogItemsDeleteCall) Header() http.Header { func (c *ProjectsLocationsCatalogsCatalogItemsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3216,7 +3253,7 @@ func (c *ProjectsLocationsCatalogsCatalogItemsGetCall) Header() http.Header { func (c *ProjectsLocationsCatalogsCatalogItemsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3357,7 +3394,7 @@ func (c *ProjectsLocationsCatalogsCatalogItemsImportCall) Header() http.Header { func (c *ProjectsLocationsCatalogsCatalogItemsImportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3528,7 +3565,7 @@ func (c *ProjectsLocationsCatalogsCatalogItemsListCall) Header() http.Header { func (c *ProjectsLocationsCatalogsCatalogItemsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3712,7 +3749,7 @@ func (c *ProjectsLocationsCatalogsCatalogItemsPatchCall) Header() http.Header { func (c *ProjectsLocationsCatalogsCatalogItemsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3871,7 +3908,7 @@ func (c *ProjectsLocationsCatalogsEventStoresOperationsGetCall) Header() http.He func (c *ProjectsLocationsCatalogsEventStoresOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4045,7 +4082,7 @@ func (c *ProjectsLocationsCatalogsEventStoresOperationsListCall) Header() http.H func (c *ProjectsLocationsCatalogsEventStoresOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4221,7 +4258,7 @@ func (c *ProjectsLocationsCatalogsEventStoresPlacementsPredictCall) Header() htt func (c *ProjectsLocationsCatalogsEventStoresPlacementsPredictCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4384,7 +4421,7 @@ func (c *ProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrationsCreate func (c *ProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrationsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4525,7 +4562,7 @@ func (c *ProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrationsDelete func (c *ProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4681,7 +4718,7 @@ func (c *ProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrationsListCa func (c *ProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4888,7 +4925,7 @@ func (c *ProjectsLocationsCatalogsEventStoresUserEventsCollectCall) Header() htt func (c *ProjectsLocationsCatalogsEventStoresUserEventsCollectCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5044,7 +5081,7 @@ func (c *ProjectsLocationsCatalogsEventStoresUserEventsImportCall) Header() http func (c *ProjectsLocationsCatalogsEventStoresUserEventsImportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5241,7 +5278,7 @@ func (c *ProjectsLocationsCatalogsEventStoresUserEventsListCall) Header() http.H func (c *ProjectsLocationsCatalogsEventStoresUserEventsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5419,7 +5456,7 @@ func (c *ProjectsLocationsCatalogsEventStoresUserEventsPurgeCall) Header() http. func (c *ProjectsLocationsCatalogsEventStoresUserEventsPurgeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5566,7 +5603,7 @@ func (c *ProjectsLocationsCatalogsEventStoresUserEventsRejoinCall) Header() http func (c *ProjectsLocationsCatalogsEventStoresUserEventsRejoinCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5706,7 +5743,7 @@ func (c *ProjectsLocationsCatalogsEventStoresUserEventsWriteCall) Header() http. func (c *ProjectsLocationsCatalogsEventStoresUserEventsWriteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5859,7 +5896,7 @@ func (c *ProjectsLocationsCatalogsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsCatalogsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6033,7 +6070,7 @@ func (c *ProjectsLocationsCatalogsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsCatalogsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/recommender/v1/recommender-api.json b/recommender/v1/recommender-api.json index 4d7d1a39c25..29f8c79c734 100644 --- a/recommender/v1/recommender-api.json +++ b/recommender/v1/recommender-api.json @@ -374,7 +374,7 @@ } } }, - "revision": "20201016", + "revision": "20201113", "rootUrl": "https://recommender.googleapis.com/", "schemas": { "GoogleCloudRecommenderV1CostProjection": { @@ -664,7 +664,7 @@ "additionalProperties": { "type": "any" }, - "description": "Set of filters to apply if `path` refers to array elements or nested array elements in order to narrow down to a single unique element that is being tested/modified. This is intended to be an exact match per filter. To perform advanced matching, use path_value_matchers. * Example: { \"/versions/*/name\" : \"it-123\" \"/versions/*/targetSize/percent\": 20 } * Example: { \"/bindings/*/role\": \"roles/admin\" \"/bindings/*/condition\" : null } * Example: { \"/bindings/*/role\": \"roles/admin\" \"/bindings/*/members/*\" : [\"x@google.com\", \"y@google.com\"] } When both path_filters and path_value_matchers are set, an implicit AND must be performed.", + "description": "Set of filters to apply if `path` refers to array elements or nested array elements in order to narrow down to a single unique element that is being tested/modified. This is intended to be an exact match per filter. To perform advanced matching, use path_value_matchers. * Example: { \"/versions/*/name\" : \"it-123\" \"/versions/*/targetSize/percent\": 20 } * Example: { \"/bindings/*/role\": \"roles/owner\" \"/bindings/*/condition\" : null } * Example: { \"/bindings/*/role\": \"roles/owner\" \"/bindings/*/members/*\" : [\"x@example.com\", \"y@example.com\"] } When both path_filters and path_value_matchers are set, an implicit AND must be performed.", "type": "object" }, "pathValueMatchers": { diff --git a/recommender/v1/recommender-gen.go b/recommender/v1/recommender-gen.go index 903e0da3866..958eb765605 100644 --- a/recommender/v1/recommender-gen.go +++ b/recommender/v1/recommender-gen.go @@ -683,9 +683,9 @@ type GoogleCloudRecommenderV1Operation struct { // an exact match per filter. To perform advanced matching, use // path_value_matchers. * Example: { "/versions/*/name" : "it-123" // "/versions/*/targetSize/percent": 20 } * Example: { - // "/bindings/*/role": "roles/admin" "/bindings/*/condition" : null } * - // Example: { "/bindings/*/role": "roles/admin" "/bindings/*/members/*" - // : ["x@google.com", "y@google.com"] } When both path_filters and + // "/bindings/*/role": "roles/owner" "/bindings/*/condition" : null } * + // Example: { "/bindings/*/role": "roles/owner" "/bindings/*/members/*" + // : ["x@example.com", "y@example.com"] } When both path_filters and // path_value_matchers are set, an implicit AND must be performed. PathFilters googleapi.RawMessage `json:"pathFilters,omitempty"` @@ -1104,7 +1104,7 @@ func (c *ProjectsLocationsInsightTypesInsightsGetCall) Header() http.Header { func (c *ProjectsLocationsInsightTypesInsightsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1276,7 +1276,7 @@ func (c *ProjectsLocationsInsightTypesInsightsListCall) Header() http.Header { func (c *ProjectsLocationsInsightTypesInsightsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1455,7 +1455,7 @@ func (c *ProjectsLocationsInsightTypesInsightsMarkAcceptedCall) Header() http.He func (c *ProjectsLocationsInsightTypesInsightsMarkAcceptedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1605,7 +1605,7 @@ func (c *ProjectsLocationsRecommendersRecommendationsGetCall) Header() http.Head func (c *ProjectsLocationsRecommendersRecommendationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1779,7 +1779,7 @@ func (c *ProjectsLocationsRecommendersRecommendationsListCall) Header() http.Hea func (c *ProjectsLocationsRecommendersRecommendationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1960,7 +1960,7 @@ func (c *ProjectsLocationsRecommendersRecommendationsMarkClaimedCall) Header() h func (c *ProjectsLocationsRecommendersRecommendationsMarkClaimedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2108,7 +2108,7 @@ func (c *ProjectsLocationsRecommendersRecommendationsMarkFailedCall) Header() ht func (c *ProjectsLocationsRecommendersRecommendationsMarkFailedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2256,7 +2256,7 @@ func (c *ProjectsLocationsRecommendersRecommendationsMarkSucceededCall) Header() func (c *ProjectsLocationsRecommendersRecommendationsMarkSucceededCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/recommender/v1beta1/recommender-api.json b/recommender/v1beta1/recommender-api.json index f4de3733565..9c7b0e275a4 100644 --- a/recommender/v1beta1/recommender-api.json +++ b/recommender/v1beta1/recommender-api.json @@ -374,7 +374,7 @@ } } }, - "revision": "20201016", + "revision": "20201113", "rootUrl": "https://recommender.googleapis.com/", "schemas": { "GoogleCloudRecommenderV1beta1CostProjection": { @@ -664,7 +664,7 @@ "additionalProperties": { "type": "any" }, - "description": "Set of filters to apply if `path` refers to array elements or nested array elements in order to narrow down to a single unique element that is being tested/modified. This is intended to be an exact match per filter. To perform advanced matching, use path_value_matchers. * Example: { \"/versions/*/name\" : \"it-123\" \"/versions/*/targetSize/percent\": 20 } * Example: { \"/bindings/*/role\": \"roles/admin\" \"/bindings/*/condition\" : null } * Example: { \"/bindings/*/role\": \"roles/admin\" \"/bindings/*/members/*\" : [\"x@google.com\", \"y@google.com\"] } When both path_filters and path_value_matchers are set, an implicit AND must be performed.", + "description": "Set of filters to apply if `path` refers to array elements or nested array elements in order to narrow down to a single unique element that is being tested/modified. This is intended to be an exact match per filter. To perform advanced matching, use path_value_matchers. * Example: { \"/versions/*/name\" : \"it-123\" \"/versions/*/targetSize/percent\": 20 } * Example: { \"/bindings/*/role\": \"roles/owner\" \"/bindings/*/condition\" : null } * Example: { \"/bindings/*/role\": \"roles/owner\" \"/bindings/*/members/*\" : [\"x@example.com\", \"y@example.com\"] } When both path_filters and path_value_matchers are set, an implicit AND must be performed.", "type": "object" }, "pathValueMatchers": { diff --git a/recommender/v1beta1/recommender-gen.go b/recommender/v1beta1/recommender-gen.go index 72f0e174c60..e3dcf3e56fa 100644 --- a/recommender/v1beta1/recommender-gen.go +++ b/recommender/v1beta1/recommender-gen.go @@ -683,9 +683,9 @@ type GoogleCloudRecommenderV1beta1Operation struct { // an exact match per filter. To perform advanced matching, use // path_value_matchers. * Example: { "/versions/*/name" : "it-123" // "/versions/*/targetSize/percent": 20 } * Example: { - // "/bindings/*/role": "roles/admin" "/bindings/*/condition" : null } * - // Example: { "/bindings/*/role": "roles/admin" "/bindings/*/members/*" - // : ["x@google.com", "y@google.com"] } When both path_filters and + // "/bindings/*/role": "roles/owner" "/bindings/*/condition" : null } * + // Example: { "/bindings/*/role": "roles/owner" "/bindings/*/members/*" + // : ["x@example.com", "y@example.com"] } When both path_filters and // path_value_matchers are set, an implicit AND must be performed. PathFilters googleapi.RawMessage `json:"pathFilters,omitempty"` @@ -1104,7 +1104,7 @@ func (c *ProjectsLocationsInsightTypesInsightsGetCall) Header() http.Header { func (c *ProjectsLocationsInsightTypesInsightsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1277,7 +1277,7 @@ func (c *ProjectsLocationsInsightTypesInsightsListCall) Header() http.Header { func (c *ProjectsLocationsInsightTypesInsightsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1456,7 +1456,7 @@ func (c *ProjectsLocationsInsightTypesInsightsMarkAcceptedCall) Header() http.He func (c *ProjectsLocationsInsightTypesInsightsMarkAcceptedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1607,7 +1607,7 @@ func (c *ProjectsLocationsRecommendersRecommendationsGetCall) Header() http.Head func (c *ProjectsLocationsRecommendersRecommendationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1782,7 +1782,7 @@ func (c *ProjectsLocationsRecommendersRecommendationsListCall) Header() http.Hea func (c *ProjectsLocationsRecommendersRecommendationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1963,7 +1963,7 @@ func (c *ProjectsLocationsRecommendersRecommendationsMarkClaimedCall) Header() h func (c *ProjectsLocationsRecommendersRecommendationsMarkClaimedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2112,7 +2112,7 @@ func (c *ProjectsLocationsRecommendersRecommendationsMarkFailedCall) Header() ht func (c *ProjectsLocationsRecommendersRecommendationsMarkFailedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2261,7 +2261,7 @@ func (c *ProjectsLocationsRecommendersRecommendationsMarkSucceededCall) Header() func (c *ProjectsLocationsRecommendersRecommendationsMarkSucceededCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/redis/v1/redis-api.json b/redis/v1/redis-api.json index 9c89f190a14..bfe7c78898c 100644 --- a/redis/v1/redis-api.json +++ b/redis/v1/redis-api.json @@ -318,6 +318,31 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "getAuthString": { + "description": "Gets the AUTH string for a Redis instance. If AUTH is not enabled for the instance the response will be empty. This information is not included in the details returned to GetInstance.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/authString", + "httpMethod": "GET", + "id": "redis.projects.locations.instances.getAuthString", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}/authString", + "response": { + "$ref": "InstanceAuthString" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "import": { "description": "Import a Redis RDB snapshot file from Cloud Storage into a Redis instance. Redis may stop serving during this operation. Instance state will be IMPORTING for entire operation. When complete, the instance will contain only data from the imported file. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:import", @@ -571,7 +596,7 @@ } } }, - "revision": "20200928", + "revision": "20201110", "rootUrl": "https://redis.googleapis.com/", "schemas": { "Empty": { @@ -722,6 +747,10 @@ "description": "Optional. Only applicable to STANDARD_HA tier which protects the instance against zonal failures by provisioning it across two zones. If provided, it must be a different zone from the one provided in location_id.", "type": "string" }, + "authEnabled": { + "description": "Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to \"true\" AUTH is enabled on the instance. Default value is \"false\" meaning AUTH is disabled.", + "type": "boolean" + }, "authorizedNetwork": { "description": "Optional. The full name of the Google Compute Engine [network](https://cloud.google.com/vpc/docs/vpc) to which the instance is connected. If left unspecified, the `default` network will be used.", "type": "string" @@ -806,6 +835,14 @@ "description": "Optional. The CIDR range of internal addresses that are reserved for this instance. If not provided, the service will choose an unused /29 block, for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique and non-overlapping with existing subnets in an authorized network.", "type": "string" }, + "serverCaCerts": { + "description": "Output only. List of server CA certificates for the instance.", + "items": { + "$ref": "TlsCertificate" + }, + "readOnly": true, + "type": "array" + }, "state": { "description": "Output only. The current state of this instance.", "enum": [ @@ -851,6 +888,31 @@ "STANDARD_HA tier: highly available primary/replica instances" ], "type": "string" + }, + "transitEncryptionMode": { + "description": "Optional. The In-transit encryption mode of Redis instance. If not provided, in-transit encryption is disabled for instance.", + "enum": [ + "TRANSIT_ENCRYPTION_MODE_UNSPECIFIED", + "SERVER_AUTHENTICATION", + "DISABLED" + ], + "enumDescriptions": [ + "Not set.", + "In-transit encryption enabled with server authentication", + "In-transit encryption is disabled for instance." + ], + "type": "string" + } + }, + "type": "object" + }, + "InstanceAuthString": { + "description": "Instance AUTH string details.", + "id": "InstanceAuthString", + "properties": { + "authString": { + "description": "AUTH string set on the instance.", + "type": "string" } }, "type": "object" @@ -1023,6 +1085,37 @@ }, "type": "object" }, + "TlsCertificate": { + "description": "TlsCertificate Resource", + "id": "TlsCertificate", + "properties": { + "cert": { + "description": "PEM representation.", + "type": "string" + }, + "createTime": { + "description": "Output only. The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "expireTime": { + "description": "Output only. The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "serialNumber": { + "description": "Serial number, as extracted from the certificate.", + "type": "string" + }, + "sha1Fingerprint": { + "description": "Sha1 Fingerprint of the certificate.", + "type": "string" + } + }, + "type": "object" + }, "UpgradeInstanceRequest": { "description": "Request for UpgradeInstance.", "id": "UpgradeInstanceRequest", diff --git a/redis/v1/redis-gen.go b/redis/v1/redis-gen.go index 565cfcc85db..6dc06d248a6 100644 --- a/redis/v1/redis-gen.go +++ b/redis/v1/redis-gen.go @@ -473,6 +473,11 @@ type Instance struct { // one provided in location_id. AlternativeLocationId string `json:"alternativeLocationId,omitempty"` + // AuthEnabled: Optional. Indicates whether OSS Redis AUTH is enabled + // for the instance. If set to "true" AUTH is enabled on the instance. + // Default value is "false" meaning AUTH is disabled. + AuthEnabled bool `json:"authEnabled,omitempty"` + // AuthorizedNetwork: Optional. The full name of the Google Compute // Engine [network](https://cloud.google.com/vpc/docs/vpc) to which the // instance is connected. If left unspecified, the `default` network @@ -567,6 +572,10 @@ type Instance struct { // existing subnets in an authorized network. ReservedIpRange string `json:"reservedIpRange,omitempty"` + // ServerCaCerts: Output only. List of server CA certificates for the + // instance. + ServerCaCerts []*TlsCertificate `json:"serverCaCerts,omitempty"` + // State: Output only. The current state of this instance. // // Possible values: @@ -599,6 +608,17 @@ type Instance struct { // instances Tier string `json:"tier,omitempty"` + // TransitEncryptionMode: Optional. The In-transit encryption mode of + // Redis instance. If not provided, in-transit encryption is disabled + // for instance. + // + // Possible values: + // "TRANSIT_ENCRYPTION_MODE_UNSPECIFIED" - Not set. + // "SERVER_AUTHENTICATION" - In-transit encryption enabled with server + // authentication + // "DISABLED" - In-transit encryption is disabled for instance. + TransitEncryptionMode string `json:"transitEncryptionMode,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` @@ -628,6 +648,38 @@ func (s *Instance) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// InstanceAuthString: Instance AUTH string details. +type InstanceAuthString struct { + // AuthString: AUTH string set on the instance. + AuthString string `json:"authString,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AuthString") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AuthString") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *InstanceAuthString) MarshalJSON() ([]byte, error) { + type NoMethod InstanceAuthString + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListInstancesResponse: Response for ListInstances. type ListInstancesResponse struct { // Instances: A list of Redis instances in the project in the specified @@ -939,6 +991,50 @@ func (s *Status) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TlsCertificate: TlsCertificate Resource +type TlsCertificate struct { + // Cert: PEM representation. + Cert string `json:"cert,omitempty"` + + // CreateTime: Output only. The time when the certificate was created in + // [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example + // `2020-05-18T00:00:00.094Z`. + CreateTime string `json:"createTime,omitempty"` + + // ExpireTime: Output only. The time when the certificate expires in + // [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example + // `2020-05-18T00:00:00.094Z`. + ExpireTime string `json:"expireTime,omitempty"` + + // SerialNumber: Serial number, as extracted from the certificate. + SerialNumber string `json:"serialNumber,omitempty"` + + // Sha1Fingerprint: Sha1 Fingerprint of the certificate. + Sha1Fingerprint string `json:"sha1Fingerprint,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Cert") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Cert") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TlsCertificate) MarshalJSON() ([]byte, error) { + type NoMethod TlsCertificate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // UpgradeInstanceRequest: Request for UpgradeInstance. type UpgradeInstanceRequest struct { // RedisVersion: Required. Specifies the target version of Redis @@ -1023,7 +1119,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1189,7 +1285,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1380,7 +1476,7 @@ func (c *ProjectsLocationsInstancesCreateCall) Header() http.Header { func (c *ProjectsLocationsInstancesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1524,7 +1620,7 @@ func (c *ProjectsLocationsInstancesDeleteCall) Header() http.Header { func (c *ProjectsLocationsInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1659,7 +1755,7 @@ func (c *ProjectsLocationsInstancesExportCall) Header() http.Header { func (c *ProjectsLocationsInstancesExportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1801,7 +1897,7 @@ func (c *ProjectsLocationsInstancesFailoverCall) Header() http.Header { func (c *ProjectsLocationsInstancesFailoverCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1950,7 +2046,7 @@ func (c *ProjectsLocationsInstancesGetCall) Header() http.Header { func (c *ProjectsLocationsInstancesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2039,6 +2135,152 @@ func (c *ProjectsLocationsInstancesGetCall) Do(opts ...googleapi.CallOption) (*I } +// method id "redis.projects.locations.instances.getAuthString": + +type ProjectsLocationsInstancesGetAuthStringCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetAuthString: Gets the AUTH string for a Redis instance. If AUTH is +// not enabled for the instance the response will be empty. This +// information is not included in the details returned to GetInstance. +func (r *ProjectsLocationsInstancesService) GetAuthString(name string) *ProjectsLocationsInstancesGetAuthStringCall { + c := &ProjectsLocationsInstancesGetAuthStringCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsInstancesGetAuthStringCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesGetAuthStringCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsInstancesGetAuthStringCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesGetAuthStringCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsInstancesGetAuthStringCall) Context(ctx context.Context) *ProjectsLocationsInstancesGetAuthStringCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsInstancesGetAuthStringCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInstancesGetAuthStringCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/authString") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "redis.projects.locations.instances.getAuthString" call. +// Exactly one of *InstanceAuthString or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *InstanceAuthString.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsInstancesGetAuthStringCall) Do(opts ...googleapi.CallOption) (*InstanceAuthString, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &InstanceAuthString{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the AUTH string for a Redis instance. If AUTH is not enabled for the instance the response will be empty. This information is not included in the details returned to GetInstance.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/authString", + // "httpMethod": "GET", + // "id": "redis.projects.locations.instances.getAuthString", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}/authString", + // "response": { + // "$ref": "InstanceAuthString" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "redis.projects.locations.instances.import": type ProjectsLocationsInstancesImportCall struct { @@ -2090,7 +2332,7 @@ func (c *ProjectsLocationsInstancesImportCall) Header() http.Header { func (c *ProjectsLocationsInstancesImportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2263,7 +2505,7 @@ func (c *ProjectsLocationsInstancesListCall) Header() http.Header { func (c *ProjectsLocationsInstancesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2444,7 +2686,7 @@ func (c *ProjectsLocationsInstancesPatchCall) Header() http.Header { func (c *ProjectsLocationsInstancesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2591,7 +2833,7 @@ func (c *ProjectsLocationsInstancesUpgradeCall) Header() http.Header { func (c *ProjectsLocationsInstancesUpgradeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2738,7 +2980,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2871,7 +3113,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3014,7 +3256,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3188,7 +3430,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/redis/v1beta1/redis-api.json b/redis/v1beta1/redis-api.json index 66b083565c8..352878b5b4a 100644 --- a/redis/v1beta1/redis-api.json +++ b/redis/v1beta1/redis-api.json @@ -596,7 +596,7 @@ } } }, - "revision": "20200928", + "revision": "20201110", "rootUrl": "https://redis.googleapis.com/", "schemas": { "Empty": { @@ -835,6 +835,14 @@ "description": "Optional. The CIDR range of internal addresses that are reserved for this instance. If not provided, the service will choose an unused /29 block, for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique and non-overlapping with existing subnets in an authorized network.", "type": "string" }, + "serverCaCerts": { + "description": "Output only. List of server CA certificates for the instance.", + "items": { + "$ref": "TlsCertificate" + }, + "readOnly": true, + "type": "array" + }, "state": { "description": "Output only. The current state of this instance.", "enum": [ @@ -880,6 +888,20 @@ "STANDARD_HA tier: highly available primary/replica instances" ], "type": "string" + }, + "transitEncryptionMode": { + "description": "Optional. The In-transit encryption mode of Redis instance. If not provided, in-transit encryption is disabled for instance.", + "enum": [ + "TRANSIT_ENCRYPTION_MODE_UNSPECIFIED", + "SERVER_AUTHENTICATION", + "DISABLED" + ], + "enumDescriptions": [ + "Not set.", + "In-transit encryption enabled with server authentication", + "In-transit encryption is disabled for instance." + ], + "type": "string" } }, "type": "object" @@ -1063,6 +1085,37 @@ }, "type": "object" }, + "TlsCertificate": { + "description": "TlsCertificate Resource", + "id": "TlsCertificate", + "properties": { + "cert": { + "description": "PEM representation.", + "type": "string" + }, + "createTime": { + "description": "Output only. The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "expireTime": { + "description": "Output only. The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "serialNumber": { + "description": "Serial number, as extracted from the certificate.", + "type": "string" + }, + "sha1Fingerprint": { + "description": "Sha1 Fingerprint of the certificate.", + "type": "string" + } + }, + "type": "object" + }, "UpgradeInstanceRequest": { "description": "Request for UpgradeInstance.", "id": "UpgradeInstanceRequest", diff --git a/redis/v1beta1/redis-gen.go b/redis/v1beta1/redis-gen.go index 9e2ffa090f2..5b99e5cf61d 100644 --- a/redis/v1beta1/redis-gen.go +++ b/redis/v1beta1/redis-gen.go @@ -577,6 +577,10 @@ type Instance struct { // existing subnets in an authorized network. ReservedIpRange string `json:"reservedIpRange,omitempty"` + // ServerCaCerts: Output only. List of server CA certificates for the + // instance. + ServerCaCerts []*TlsCertificate `json:"serverCaCerts,omitempty"` + // State: Output only. The current state of this instance. // // Possible values: @@ -609,6 +613,17 @@ type Instance struct { // instances Tier string `json:"tier,omitempty"` + // TransitEncryptionMode: Optional. The In-transit encryption mode of + // Redis instance. If not provided, in-transit encryption is disabled + // for instance. + // + // Possible values: + // "TRANSIT_ENCRYPTION_MODE_UNSPECIFIED" - Not set. + // "SERVER_AUTHENTICATION" - In-transit encryption enabled with server + // authentication + // "DISABLED" - In-transit encryption is disabled for instance. + TransitEncryptionMode string `json:"transitEncryptionMode,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` @@ -981,6 +996,50 @@ func (s *Status) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TlsCertificate: TlsCertificate Resource +type TlsCertificate struct { + // Cert: PEM representation. + Cert string `json:"cert,omitempty"` + + // CreateTime: Output only. The time when the certificate was created in + // [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example + // `2020-05-18T00:00:00.094Z`. + CreateTime string `json:"createTime,omitempty"` + + // ExpireTime: Output only. The time when the certificate expires in + // [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example + // `2020-05-18T00:00:00.094Z`. + ExpireTime string `json:"expireTime,omitempty"` + + // SerialNumber: Serial number, as extracted from the certificate. + SerialNumber string `json:"serialNumber,omitempty"` + + // Sha1Fingerprint: Sha1 Fingerprint of the certificate. + Sha1Fingerprint string `json:"sha1Fingerprint,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Cert") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Cert") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TlsCertificate) MarshalJSON() ([]byte, error) { + type NoMethod TlsCertificate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // UpgradeInstanceRequest: Request for UpgradeInstance. type UpgradeInstanceRequest struct { // RedisVersion: Required. Specifies the target version of Redis @@ -1065,7 +1124,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1231,7 +1290,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1422,7 +1481,7 @@ func (c *ProjectsLocationsInstancesCreateCall) Header() http.Header { func (c *ProjectsLocationsInstancesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1566,7 +1625,7 @@ func (c *ProjectsLocationsInstancesDeleteCall) Header() http.Header { func (c *ProjectsLocationsInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1701,7 +1760,7 @@ func (c *ProjectsLocationsInstancesExportCall) Header() http.Header { func (c *ProjectsLocationsInstancesExportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1843,7 +1902,7 @@ func (c *ProjectsLocationsInstancesFailoverCall) Header() http.Header { func (c *ProjectsLocationsInstancesFailoverCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1992,7 +2051,7 @@ func (c *ProjectsLocationsInstancesGetCall) Header() http.Header { func (c *ProjectsLocationsInstancesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2138,7 +2197,7 @@ func (c *ProjectsLocationsInstancesGetAuthStringCall) Header() http.Header { func (c *ProjectsLocationsInstancesGetAuthStringCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2278,7 +2337,7 @@ func (c *ProjectsLocationsInstancesImportCall) Header() http.Header { func (c *ProjectsLocationsInstancesImportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2451,7 +2510,7 @@ func (c *ProjectsLocationsInstancesListCall) Header() http.Header { func (c *ProjectsLocationsInstancesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2632,7 +2691,7 @@ func (c *ProjectsLocationsInstancesPatchCall) Header() http.Header { func (c *ProjectsLocationsInstancesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2779,7 +2838,7 @@ func (c *ProjectsLocationsInstancesUpgradeCall) Header() http.Header { func (c *ProjectsLocationsInstancesUpgradeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2926,7 +2985,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3059,7 +3118,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3202,7 +3261,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3376,7 +3435,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/remotebuildexecution/v1/remotebuildexecution-gen.go b/remotebuildexecution/v1/remotebuildexecution-gen.go index 15addf1b460..4d43eb90764 100644 --- a/remotebuildexecution/v1/remotebuildexecution-gen.go +++ b/remotebuildexecution/v1/remotebuildexecution-gen.go @@ -3376,7 +3376,7 @@ func (c *MediaDownloadCall) Header() http.Header { func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3569,7 +3569,7 @@ func (c *MediaUploadCall) Header() http.Header { func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3758,7 +3758,7 @@ func (c *OperationsCancelCall) Header() http.Header { func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3899,7 +3899,7 @@ func (c *OperationsDeleteCall) Header() http.Header { func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4070,7 +4070,7 @@ func (c *OperationsListCall) Header() http.Header { func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4254,7 +4254,7 @@ func (c *ProjectsOperationsGetCall) Header() http.Header { func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/remotebuildexecution/v1alpha/remotebuildexecution-gen.go b/remotebuildexecution/v1alpha/remotebuildexecution-gen.go index 0ccf76c2ae2..47464b6b7b0 100644 --- a/remotebuildexecution/v1alpha/remotebuildexecution-gen.go +++ b/remotebuildexecution/v1alpha/remotebuildexecution-gen.go @@ -3299,7 +3299,7 @@ func (c *ProjectsInstancesCreateCall) Header() http.Header { func (c *ProjectsInstancesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3440,7 +3440,7 @@ func (c *ProjectsInstancesDeleteCall) Header() http.Header { func (c *ProjectsInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3581,7 +3581,7 @@ func (c *ProjectsInstancesGetCall) Header() http.Header { func (c *ProjectsInstancesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3728,7 +3728,7 @@ func (c *ProjectsInstancesListCall) Header() http.Header { func (c *ProjectsInstancesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3893,7 +3893,7 @@ func (c *ProjectsInstancesPatchCall) Header() http.Header { func (c *ProjectsInstancesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4053,7 +4053,7 @@ func (c *ProjectsInstancesWorkerpoolsCreateCall) Header() http.Header { func (c *ProjectsInstancesWorkerpoolsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4194,7 +4194,7 @@ func (c *ProjectsInstancesWorkerpoolsDeleteCall) Header() http.Header { func (c *ProjectsInstancesWorkerpoolsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4335,7 +4335,7 @@ func (c *ProjectsInstancesWorkerpoolsGetCall) Header() http.Header { func (c *ProjectsInstancesWorkerpoolsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4504,7 +4504,7 @@ func (c *ProjectsInstancesWorkerpoolsListCall) Header() http.Header { func (c *ProjectsInstancesWorkerpoolsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4651,7 +4651,7 @@ func (c *ProjectsInstancesWorkerpoolsPatchCall) Header() http.Header { func (c *ProjectsInstancesWorkerpoolsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4802,7 +4802,7 @@ func (c *ProjectsOperationsGetCall) Header() http.Header { func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/remotebuildexecution/v2/remotebuildexecution-gen.go b/remotebuildexecution/v2/remotebuildexecution-gen.go index 47ae94d86fa..b5f8d3030c5 100644 --- a/remotebuildexecution/v2/remotebuildexecution-gen.go +++ b/remotebuildexecution/v2/remotebuildexecution-gen.go @@ -4095,7 +4095,7 @@ func (c *ActionResultsGetCall) Header() http.Header { func (c *ActionResultsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4290,7 +4290,7 @@ func (c *ActionResultsUpdateCall) Header() http.Header { func (c *ActionResultsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4497,7 +4497,7 @@ func (c *ActionsExecuteCall) Header() http.Header { func (c *ActionsExecuteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4646,7 +4646,7 @@ func (c *BlobsBatchReadCall) Header() http.Header { func (c *BlobsBatchReadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4799,7 +4799,7 @@ func (c *BlobsBatchUpdateCall) Header() http.Header { func (c *BlobsBatchUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4945,7 +4945,7 @@ func (c *BlobsFindMissingCall) Header() http.Header { func (c *BlobsFindMissingCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5133,7 +5133,7 @@ func (c *BlobsGetTreeCall) Header() http.Header { func (c *BlobsGetTreeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5325,7 +5325,7 @@ func (c *OperationsWaitExecutionCall) Header() http.Header { func (c *OperationsWaitExecutionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5480,7 +5480,7 @@ func (c *V2GetCapabilitiesCall) Header() http.Header { func (c *V2GetCapabilitiesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/run/v1/run-api.json b/run/v1/run-api.json index 108bae9f8a9..d93edfd3f21 100644 --- a/run/v1/run-api.json +++ b/run/v1/run-api.json @@ -1676,7 +1676,7 @@ } } }, - "revision": "20201012", + "revision": "20201113", "rootUrl": "https://run.googleapis.com/", "schemas": { "Addressable": { @@ -2017,7 +2017,7 @@ "type": "object" }, "DomainMapping": { - "description": "Resource to hold the state and status of a user's domain mapping.", + "description": "Resource to hold the state and status of a user's domain mapping. NOTE: This resource is currently in Beta.", "id": "DomainMapping", "properties": { "apiVersion": { diff --git a/run/v1/run-gen.go b/run/v1/run-gen.go index cd56fd0355e..8612821778f 100644 --- a/run/v1/run-gen.go +++ b/run/v1/run-gen.go @@ -1017,7 +1017,7 @@ func (s *ContainerPort) MarshalJSON() ([]byte, error) { } // DomainMapping: Resource to hold the state and status of a user's -// domain mapping. +// domain mapping. NOTE: This resource is currently in Beta. type DomainMapping struct { // ApiVersion: The API version for this call such as // "domains.cloudrun.com/v1". @@ -3686,7 +3686,7 @@ func (c *NamespacesAuthorizeddomainsListCall) Header() http.Header { func (c *NamespacesAuthorizeddomainsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3862,7 +3862,7 @@ func (c *NamespacesConfigurationsGetCall) Header() http.Header { func (c *NamespacesConfigurationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4060,7 +4060,7 @@ func (c *NamespacesConfigurationsListCall) Header() http.Header { func (c *NamespacesConfigurationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4231,7 +4231,7 @@ func (c *NamespacesDomainmappingsCreateCall) Header() http.Header { func (c *NamespacesDomainmappingsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4393,7 +4393,7 @@ func (c *NamespacesDomainmappingsDeleteCall) Header() http.Header { func (c *NamespacesDomainmappingsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4549,7 +4549,7 @@ func (c *NamespacesDomainmappingsGetCall) Header() http.Header { func (c *NamespacesDomainmappingsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4747,7 +4747,7 @@ func (c *NamespacesDomainmappingsListCall) Header() http.Header { func (c *NamespacesDomainmappingsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4940,7 +4940,7 @@ func (c *NamespacesRevisionsDeleteCall) Header() http.Header { func (c *NamespacesRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5096,7 +5096,7 @@ func (c *NamespacesRevisionsGetCall) Header() http.Header { func (c *NamespacesRevisionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5294,7 +5294,7 @@ func (c *NamespacesRevisionsListCall) Header() http.Header { func (c *NamespacesRevisionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5474,7 +5474,7 @@ func (c *NamespacesRoutesGetCall) Header() http.Header { func (c *NamespacesRoutesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5672,7 +5672,7 @@ func (c *NamespacesRoutesListCall) Header() http.Header { func (c *NamespacesRoutesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5843,7 +5843,7 @@ func (c *NamespacesServicesCreateCall) Header() http.Header { func (c *NamespacesServicesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6007,7 +6007,7 @@ func (c *NamespacesServicesDeleteCall) Header() http.Header { func (c *NamespacesServicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6163,7 +6163,7 @@ func (c *NamespacesServicesGetCall) Header() http.Header { func (c *NamespacesServicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6361,7 +6361,7 @@ func (c *NamespacesServicesListCall) Header() http.Header { func (c *NamespacesServicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6536,7 +6536,7 @@ func (c *NamespacesServicesReplaceServiceCall) Header() http.Header { func (c *NamespacesServicesReplaceServiceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6699,7 +6699,7 @@ func (c *ProjectsAuthorizeddomainsListCall) Header() http.Header { func (c *ProjectsAuthorizeddomainsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6897,7 +6897,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7092,7 +7092,7 @@ func (c *ProjectsLocationsAuthorizeddomainsListCall) Header() http.Header { func (c *ProjectsLocationsAuthorizeddomainsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7268,7 +7268,7 @@ func (c *ProjectsLocationsConfigurationsGetCall) Header() http.Header { func (c *ProjectsLocationsConfigurationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7466,7 +7466,7 @@ func (c *ProjectsLocationsConfigurationsListCall) Header() http.Header { func (c *ProjectsLocationsConfigurationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7637,7 +7637,7 @@ func (c *ProjectsLocationsDomainmappingsCreateCall) Header() http.Header { func (c *ProjectsLocationsDomainmappingsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7799,7 +7799,7 @@ func (c *ProjectsLocationsDomainmappingsDeleteCall) Header() http.Header { func (c *ProjectsLocationsDomainmappingsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7955,7 +7955,7 @@ func (c *ProjectsLocationsDomainmappingsGetCall) Header() http.Header { func (c *ProjectsLocationsDomainmappingsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8153,7 +8153,7 @@ func (c *ProjectsLocationsDomainmappingsListCall) Header() http.Header { func (c *ProjectsLocationsDomainmappingsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8346,7 +8346,7 @@ func (c *ProjectsLocationsRevisionsDeleteCall) Header() http.Header { func (c *ProjectsLocationsRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8502,7 +8502,7 @@ func (c *ProjectsLocationsRevisionsGetCall) Header() http.Header { func (c *ProjectsLocationsRevisionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8700,7 +8700,7 @@ func (c *ProjectsLocationsRevisionsListCall) Header() http.Header { func (c *ProjectsLocationsRevisionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8880,7 +8880,7 @@ func (c *ProjectsLocationsRoutesGetCall) Header() http.Header { func (c *ProjectsLocationsRoutesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9078,7 +9078,7 @@ func (c *ProjectsLocationsRoutesListCall) Header() http.Header { func (c *ProjectsLocationsRoutesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9249,7 +9249,7 @@ func (c *ProjectsLocationsServicesCreateCall) Header() http.Header { func (c *ProjectsLocationsServicesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9413,7 +9413,7 @@ func (c *ProjectsLocationsServicesDeleteCall) Header() http.Header { func (c *ProjectsLocationsServicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9569,7 +9569,7 @@ func (c *ProjectsLocationsServicesGetCall) Header() http.Header { func (c *ProjectsLocationsServicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9730,7 +9730,7 @@ func (c *ProjectsLocationsServicesGetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsServicesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9934,7 +9934,7 @@ func (c *ProjectsLocationsServicesListCall) Header() http.Header { func (c *ProjectsLocationsServicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10109,7 +10109,7 @@ func (c *ProjectsLocationsServicesReplaceServiceCall) Header() http.Header { func (c *ProjectsLocationsServicesReplaceServiceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10250,7 +10250,7 @@ func (c *ProjectsLocationsServicesSetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsServicesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10392,7 +10392,7 @@ func (c *ProjectsLocationsServicesTestIamPermissionsCall) Header() http.Header { func (c *ProjectsLocationsServicesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/run/v1alpha1/run-api.json b/run/v1alpha1/run-api.json index 8abb9213993..1e83638b139 100644 --- a/run/v1alpha1/run-api.json +++ b/run/v1alpha1/run-api.json @@ -3358,7 +3358,7 @@ } } }, - "revision": "20200814", + "revision": "20201113", "rootUrl": "https://run.googleapis.com/", "schemas": { "Addressable": { @@ -4219,7 +4219,7 @@ "type": "object" }, "DomainMapping": { - "description": "Resource to hold the state and status of a user's domain mapping.", + "description": "Resource to hold the state and status of a user's domain mapping. NOTE: This resource is currently in Beta.", "id": "DomainMapping", "properties": { "apiVersion": { diff --git a/run/v1alpha1/run-gen.go b/run/v1alpha1/run-gen.go index 1aae8a88273..3581a91da8a 100644 --- a/run/v1alpha1/run-gen.go +++ b/run/v1alpha1/run-gen.go @@ -1962,7 +1962,7 @@ func (s *Destination) MarshalJSON() ([]byte, error) { } // DomainMapping: Resource to hold the state and status of a user's -// domain mapping. +// domain mapping. NOTE: This resource is currently in Beta. type DomainMapping struct { // ApiVersion: The API version for this call such as // "domains.cloudrun.com/v1alpha1". @@ -5543,7 +5543,7 @@ func (c *NamespacesAuthorizeddomainsListCall) Header() http.Header { func (c *NamespacesAuthorizeddomainsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5710,7 +5710,7 @@ func (c *NamespacesCloudauditlogssourcesCreateCall) Header() http.Header { func (c *NamespacesCloudauditlogssourcesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5872,7 +5872,7 @@ func (c *NamespacesCloudauditlogssourcesDeleteCall) Header() http.Header { func (c *NamespacesCloudauditlogssourcesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6028,7 +6028,7 @@ func (c *NamespacesCloudauditlogssourcesGetCall) Header() http.Header { func (c *NamespacesCloudauditlogssourcesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6226,7 +6226,7 @@ func (c *NamespacesCloudauditlogssourcesListCall) Header() http.Header { func (c *NamespacesCloudauditlogssourcesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6398,7 +6398,7 @@ func (c *NamespacesCloudpubsubsourcesCreateCall) Header() http.Header { func (c *NamespacesCloudpubsubsourcesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6560,7 +6560,7 @@ func (c *NamespacesCloudpubsubsourcesDeleteCall) Header() http.Header { func (c *NamespacesCloudpubsubsourcesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6716,7 +6716,7 @@ func (c *NamespacesCloudpubsubsourcesGetCall) Header() http.Header { func (c *NamespacesCloudpubsubsourcesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6914,7 +6914,7 @@ func (c *NamespacesCloudpubsubsourcesListCall) Header() http.Header { func (c *NamespacesCloudpubsubsourcesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7085,7 +7085,7 @@ func (c *NamespacesCloudschedulersourcesCreateCall) Header() http.Header { func (c *NamespacesCloudschedulersourcesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7247,7 +7247,7 @@ func (c *NamespacesCloudschedulersourcesDeleteCall) Header() http.Header { func (c *NamespacesCloudschedulersourcesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7403,7 +7403,7 @@ func (c *NamespacesCloudschedulersourcesGetCall) Header() http.Header { func (c *NamespacesCloudschedulersourcesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7601,7 +7601,7 @@ func (c *NamespacesCloudschedulersourcesListCall) Header() http.Header { func (c *NamespacesCloudschedulersourcesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7777,7 +7777,7 @@ func (c *NamespacesCloudschedulersourcesReplaceCloudSchedulerSourceCall) Header( func (c *NamespacesCloudschedulersourcesReplaceCloudSchedulerSourceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7917,7 +7917,7 @@ func (c *NamespacesCloudstoragesourcesCreateCall) Header() http.Header { func (c *NamespacesCloudstoragesourcesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8079,7 +8079,7 @@ func (c *NamespacesCloudstoragesourcesDeleteCall) Header() http.Header { func (c *NamespacesCloudstoragesourcesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8235,7 +8235,7 @@ func (c *NamespacesCloudstoragesourcesGetCall) Header() http.Header { func (c *NamespacesCloudstoragesourcesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8433,7 +8433,7 @@ func (c *NamespacesCloudstoragesourcesListCall) Header() http.Header { func (c *NamespacesCloudstoragesourcesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8608,7 +8608,7 @@ func (c *NamespacesCloudstoragesourcesReplaceCloudStorageSourceCall) Header() ht func (c *NamespacesCloudstoragesourcesReplaceCloudStorageSourceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8757,7 +8757,7 @@ func (c *NamespacesConfigurationsGetCall) Header() http.Header { func (c *NamespacesConfigurationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8955,7 +8955,7 @@ func (c *NamespacesConfigurationsListCall) Header() http.Header { func (c *NamespacesConfigurationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9126,7 +9126,7 @@ func (c *NamespacesDomainmappingsCreateCall) Header() http.Header { func (c *NamespacesDomainmappingsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9298,7 +9298,7 @@ func (c *NamespacesDomainmappingsDeleteCall) Header() http.Header { func (c *NamespacesDomainmappingsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9459,7 +9459,7 @@ func (c *NamespacesDomainmappingsGetCall) Header() http.Header { func (c *NamespacesDomainmappingsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9657,7 +9657,7 @@ func (c *NamespacesDomainmappingsListCall) Header() http.Header { func (c *NamespacesDomainmappingsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9860,7 +9860,7 @@ func (c *NamespacesRevisionsDeleteCall) Header() http.Header { func (c *NamespacesRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10021,7 +10021,7 @@ func (c *NamespacesRevisionsGetCall) Header() http.Header { func (c *NamespacesRevisionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10219,7 +10219,7 @@ func (c *NamespacesRevisionsListCall) Header() http.Header { func (c *NamespacesRevisionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10399,7 +10399,7 @@ func (c *NamespacesRoutesGetCall) Header() http.Header { func (c *NamespacesRoutesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10597,7 +10597,7 @@ func (c *NamespacesRoutesListCall) Header() http.Header { func (c *NamespacesRoutesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10768,7 +10768,7 @@ func (c *NamespacesServicesCreateCall) Header() http.Header { func (c *NamespacesServicesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10942,7 +10942,7 @@ func (c *NamespacesServicesDeleteCall) Header() http.Header { func (c *NamespacesServicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11103,7 +11103,7 @@ func (c *NamespacesServicesGetCall) Header() http.Header { func (c *NamespacesServicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11301,7 +11301,7 @@ func (c *NamespacesServicesListCall) Header() http.Header { func (c *NamespacesServicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11476,7 +11476,7 @@ func (c *NamespacesServicesReplaceServiceCall) Header() http.Header { func (c *NamespacesServicesReplaceServiceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11616,7 +11616,7 @@ func (c *NamespacesTriggersCreateCall) Header() http.Header { func (c *NamespacesTriggersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11778,7 +11778,7 @@ func (c *NamespacesTriggersDeleteCall) Header() http.Header { func (c *NamespacesTriggersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11934,7 +11934,7 @@ func (c *NamespacesTriggersGetCall) Header() http.Header { func (c *NamespacesTriggersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12132,7 +12132,7 @@ func (c *NamespacesTriggersListCall) Header() http.Header { func (c *NamespacesTriggersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12334,7 +12334,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12529,7 +12529,7 @@ func (c *ProjectsLocationsAuthorizeddomainsListCall) Header() http.Header { func (c *ProjectsLocationsAuthorizeddomainsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12696,7 +12696,7 @@ func (c *ProjectsLocationsCloudauditlogssourcesCreateCall) Header() http.Header func (c *ProjectsLocationsCloudauditlogssourcesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12858,7 +12858,7 @@ func (c *ProjectsLocationsCloudauditlogssourcesDeleteCall) Header() http.Header func (c *ProjectsLocationsCloudauditlogssourcesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13014,7 +13014,7 @@ func (c *ProjectsLocationsCloudauditlogssourcesGetCall) Header() http.Header { func (c *ProjectsLocationsCloudauditlogssourcesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13212,7 +13212,7 @@ func (c *ProjectsLocationsCloudauditlogssourcesListCall) Header() http.Header { func (c *ProjectsLocationsCloudauditlogssourcesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13384,7 +13384,7 @@ func (c *ProjectsLocationsCloudpubsubsourcesCreateCall) Header() http.Header { func (c *ProjectsLocationsCloudpubsubsourcesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13546,7 +13546,7 @@ func (c *ProjectsLocationsCloudpubsubsourcesDeleteCall) Header() http.Header { func (c *ProjectsLocationsCloudpubsubsourcesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13702,7 +13702,7 @@ func (c *ProjectsLocationsCloudpubsubsourcesGetCall) Header() http.Header { func (c *ProjectsLocationsCloudpubsubsourcesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13900,7 +13900,7 @@ func (c *ProjectsLocationsCloudpubsubsourcesListCall) Header() http.Header { func (c *ProjectsLocationsCloudpubsubsourcesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14071,7 +14071,7 @@ func (c *ProjectsLocationsCloudschedulersourcesCreateCall) Header() http.Header func (c *ProjectsLocationsCloudschedulersourcesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14233,7 +14233,7 @@ func (c *ProjectsLocationsCloudschedulersourcesDeleteCall) Header() http.Header func (c *ProjectsLocationsCloudschedulersourcesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14389,7 +14389,7 @@ func (c *ProjectsLocationsCloudschedulersourcesGetCall) Header() http.Header { func (c *ProjectsLocationsCloudschedulersourcesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14587,7 +14587,7 @@ func (c *ProjectsLocationsCloudschedulersourcesListCall) Header() http.Header { func (c *ProjectsLocationsCloudschedulersourcesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14763,7 +14763,7 @@ func (c *ProjectsLocationsCloudschedulersourcesReplaceCloudSchedulerSourceCall) func (c *ProjectsLocationsCloudschedulersourcesReplaceCloudSchedulerSourceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14903,7 +14903,7 @@ func (c *ProjectsLocationsCloudstoragesourcesCreateCall) Header() http.Header { func (c *ProjectsLocationsCloudstoragesourcesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15065,7 +15065,7 @@ func (c *ProjectsLocationsCloudstoragesourcesDeleteCall) Header() http.Header { func (c *ProjectsLocationsCloudstoragesourcesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15221,7 +15221,7 @@ func (c *ProjectsLocationsCloudstoragesourcesGetCall) Header() http.Header { func (c *ProjectsLocationsCloudstoragesourcesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15419,7 +15419,7 @@ func (c *ProjectsLocationsCloudstoragesourcesListCall) Header() http.Header { func (c *ProjectsLocationsCloudstoragesourcesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15594,7 +15594,7 @@ func (c *ProjectsLocationsCloudstoragesourcesReplaceCloudStorageSourceCall) Head func (c *ProjectsLocationsCloudstoragesourcesReplaceCloudStorageSourceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15743,7 +15743,7 @@ func (c *ProjectsLocationsConfigurationsGetCall) Header() http.Header { func (c *ProjectsLocationsConfigurationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15941,7 +15941,7 @@ func (c *ProjectsLocationsConfigurationsListCall) Header() http.Header { func (c *ProjectsLocationsConfigurationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16112,7 +16112,7 @@ func (c *ProjectsLocationsDomainmappingsCreateCall) Header() http.Header { func (c *ProjectsLocationsDomainmappingsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16284,7 +16284,7 @@ func (c *ProjectsLocationsDomainmappingsDeleteCall) Header() http.Header { func (c *ProjectsLocationsDomainmappingsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16445,7 +16445,7 @@ func (c *ProjectsLocationsDomainmappingsGetCall) Header() http.Header { func (c *ProjectsLocationsDomainmappingsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16643,7 +16643,7 @@ func (c *ProjectsLocationsDomainmappingsListCall) Header() http.Header { func (c *ProjectsLocationsDomainmappingsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16846,7 +16846,7 @@ func (c *ProjectsLocationsRevisionsDeleteCall) Header() http.Header { func (c *ProjectsLocationsRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17007,7 +17007,7 @@ func (c *ProjectsLocationsRevisionsGetCall) Header() http.Header { func (c *ProjectsLocationsRevisionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17205,7 +17205,7 @@ func (c *ProjectsLocationsRevisionsListCall) Header() http.Header { func (c *ProjectsLocationsRevisionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17385,7 +17385,7 @@ func (c *ProjectsLocationsRoutesGetCall) Header() http.Header { func (c *ProjectsLocationsRoutesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17583,7 +17583,7 @@ func (c *ProjectsLocationsRoutesListCall) Header() http.Header { func (c *ProjectsLocationsRoutesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17754,7 +17754,7 @@ func (c *ProjectsLocationsServicesCreateCall) Header() http.Header { func (c *ProjectsLocationsServicesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17928,7 +17928,7 @@ func (c *ProjectsLocationsServicesDeleteCall) Header() http.Header { func (c *ProjectsLocationsServicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18089,7 +18089,7 @@ func (c *ProjectsLocationsServicesGetCall) Header() http.Header { func (c *ProjectsLocationsServicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18250,7 +18250,7 @@ func (c *ProjectsLocationsServicesGetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsServicesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18454,7 +18454,7 @@ func (c *ProjectsLocationsServicesListCall) Header() http.Header { func (c *ProjectsLocationsServicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18629,7 +18629,7 @@ func (c *ProjectsLocationsServicesReplaceServiceCall) Header() http.Header { func (c *ProjectsLocationsServicesReplaceServiceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18770,7 +18770,7 @@ func (c *ProjectsLocationsServicesSetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsServicesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18912,7 +18912,7 @@ func (c *ProjectsLocationsServicesTestIamPermissionsCall) Header() http.Header { func (c *ProjectsLocationsServicesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19052,7 +19052,7 @@ func (c *ProjectsLocationsTriggersCreateCall) Header() http.Header { func (c *ProjectsLocationsTriggersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19214,7 +19214,7 @@ func (c *ProjectsLocationsTriggersDeleteCall) Header() http.Header { func (c *ProjectsLocationsTriggersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19370,7 +19370,7 @@ func (c *ProjectsLocationsTriggersGetCall) Header() http.Header { func (c *ProjectsLocationsTriggersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19568,7 +19568,7 @@ func (c *ProjectsLocationsTriggersListCall) Header() http.Header { func (c *ProjectsLocationsTriggersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/run/v1beta1/run-gen.go b/run/v1beta1/run-gen.go index 0b4c10e7f9d..1e13607a5a7 100644 --- a/run/v1beta1/run-gen.go +++ b/run/v1beta1/run-gen.go @@ -1279,7 +1279,7 @@ func (c *CustomresourcedefinitionsListCall) Header() http.Header { func (c *CustomresourcedefinitionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1452,7 +1452,7 @@ func (c *NamespacesCustomresourcedefinitionsGetCall) Header() http.Header { func (c *NamespacesCustomresourcedefinitionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1596,7 +1596,7 @@ func (c *ProjectsLocationsCustomresourcedefinitionsGetCall) Header() http.Header func (c *ProjectsLocationsCustomresourcedefinitionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1793,7 +1793,7 @@ func (c *ProjectsLocationsCustomresourcedefinitionsListCall) Header() http.Heade func (c *ProjectsLocationsCustomresourcedefinitionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/runtimeconfig/v1/runtimeconfig-gen.go b/runtimeconfig/v1/runtimeconfig-gen.go index 91ca7ce7550..8a521f17f71 100644 --- a/runtimeconfig/v1/runtimeconfig-gen.go +++ b/runtimeconfig/v1/runtimeconfig-gen.go @@ -363,7 +363,7 @@ func (c *OperationsCancelCall) Header() http.Header { func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -505,7 +505,7 @@ func (c *OperationsDeleteCall) Header() http.Header { func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -677,7 +677,7 @@ func (c *OperationsListCall) Header() http.Header { func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/runtimeconfig/v1beta1/runtimeconfig-api.json b/runtimeconfig/v1beta1/runtimeconfig-api.json index a0fc21f1b78..0c59cd0bf88 100644 --- a/runtimeconfig/v1beta1/runtimeconfig-api.json +++ b/runtimeconfig/v1beta1/runtimeconfig-api.json @@ -805,17 +805,13 @@ } } }, - "revision": "20200831", + "revision": "20201109", "rootUrl": "https://runtimeconfig.googleapis.com/", "schemas": { "Binding": { "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { - "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", - "type": "string" - }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." diff --git a/runtimeconfig/v1beta1/runtimeconfig-gen.go b/runtimeconfig/v1beta1/runtimeconfig-gen.go index f5149e4f4ec..76dd0ec4615 100644 --- a/runtimeconfig/v1beta1/runtimeconfig-gen.go +++ b/runtimeconfig/v1beta1/runtimeconfig-gen.go @@ -202,10 +202,6 @@ type ProjectsConfigsWaitersService struct { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. - BindingId string `json:"bindingId,omitempty"` - // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -255,7 +251,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "BindingId") to + // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -263,7 +259,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BindingId") to include in + // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -1146,7 +1142,7 @@ func (c *ProjectsConfigsCreateCall) Header() http.Header { func (c *ProjectsConfigsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1290,7 +1286,7 @@ func (c *ProjectsConfigsDeleteCall) Header() http.Header { func (c *ProjectsConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1432,7 +1428,7 @@ func (c *ProjectsConfigsGetCall) Header() http.Header { func (c *ProjectsConfigsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1594,7 +1590,7 @@ func (c *ProjectsConfigsGetIamPolicyCall) Header() http.Header { func (c *ProjectsConfigsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1761,7 +1757,7 @@ func (c *ProjectsConfigsListCall) Header() http.Header { func (c *ProjectsConfigsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1931,7 +1927,7 @@ func (c *ProjectsConfigsSetIamPolicyCall) Header() http.Header { func (c *ProjectsConfigsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2077,7 +2073,7 @@ func (c *ProjectsConfigsTestIamPermissionsCall) Header() http.Header { func (c *ProjectsConfigsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2219,7 +2215,7 @@ func (c *ProjectsConfigsUpdateCall) Header() http.Header { func (c *ProjectsConfigsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2371,7 +2367,7 @@ func (c *ProjectsConfigsOperationsGetCall) Header() http.Header { func (c *ProjectsConfigsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2512,7 +2508,7 @@ func (c *ProjectsConfigsOperationsTestIamPermissionsCall) Header() http.Header { func (c *ProjectsConfigsOperationsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2671,7 +2667,7 @@ func (c *ProjectsConfigsVariablesCreateCall) Header() http.Header { func (c *ProjectsConfigsVariablesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2826,7 +2822,7 @@ func (c *ProjectsConfigsVariablesDeleteCall) Header() http.Header { func (c *ProjectsConfigsVariablesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2973,7 +2969,7 @@ func (c *ProjectsConfigsVariablesGetCall) Header() http.Header { func (c *ProjectsConfigsVariablesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3155,7 +3151,7 @@ func (c *ProjectsConfigsVariablesListCall) Header() http.Header { func (c *ProjectsConfigsVariablesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3338,7 +3334,7 @@ func (c *ProjectsConfigsVariablesTestIamPermissionsCall) Header() http.Header { func (c *ProjectsConfigsVariablesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3479,7 +3475,7 @@ func (c *ProjectsConfigsVariablesUpdateCall) Header() http.Header { func (c *ProjectsConfigsVariablesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3630,7 +3626,7 @@ func (c *ProjectsConfigsVariablesWatchCall) Header() http.Header { func (c *ProjectsConfigsVariablesWatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3788,7 +3784,7 @@ func (c *ProjectsConfigsWaitersCreateCall) Header() http.Header { func (c *ProjectsConfigsWaitersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3932,7 +3928,7 @@ func (c *ProjectsConfigsWaitersDeleteCall) Header() http.Header { func (c *ProjectsConfigsWaitersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4074,7 +4070,7 @@ func (c *ProjectsConfigsWaitersGetCall) Header() http.Header { func (c *ProjectsConfigsWaitersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4235,7 +4231,7 @@ func (c *ProjectsConfigsWaitersListCall) Header() http.Header { func (c *ProjectsConfigsWaitersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4408,7 +4404,7 @@ func (c *ProjectsConfigsWaitersTestIamPermissionsCall) Header() http.Header { func (c *ProjectsConfigsWaitersTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/safebrowsing/v4/safebrowsing-gen.go b/safebrowsing/v4/safebrowsing-gen.go index 283903a342f..a3745ae53d3 100644 --- a/safebrowsing/v4/safebrowsing-gen.go +++ b/safebrowsing/v4/safebrowsing-gen.go @@ -1551,7 +1551,7 @@ func (c *EncodedFullHashesGetCall) Header() http.Header { func (c *EncodedFullHashesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201021") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1717,7 +1717,7 @@ func (c *EncodedUpdatesGetCall) Header() http.Header { func (c *EncodedUpdatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201021") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1857,7 +1857,7 @@ func (c *FullHashesFindCall) Header() http.Header { func (c *FullHashesFindCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201021") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1980,7 +1980,7 @@ func (c *ThreatHitsCreateCall) Header() http.Header { func (c *ThreatHitsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201021") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2103,7 +2103,7 @@ func (c *ThreatListUpdatesFetchCall) Header() http.Header { func (c *ThreatListUpdatesFetchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201021") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2234,7 +2234,7 @@ func (c *ThreatListsListCall) Header() http.Header { func (c *ThreatListsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201021") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2351,7 +2351,7 @@ func (c *ThreatMatchesFindCall) Header() http.Header { func (c *ThreatMatchesFindCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201021") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/sasportal/v1alpha1/sasportal-gen.go b/sasportal/v1alpha1/sasportal-gen.go index f9bc44f41ab..8bde9e6f6f3 100644 --- a/sasportal/v1alpha1/sasportal-gen.go +++ b/sasportal/v1alpha1/sasportal-gen.go @@ -1777,7 +1777,7 @@ func (c *CustomersGetCall) Header() http.Header { func (c *CustomersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1934,7 +1934,7 @@ func (c *CustomersListCall) Header() http.Header { func (c *CustomersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2096,7 +2096,7 @@ func (c *CustomersPatchCall) Header() http.Header { func (c *CustomersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2242,7 +2242,7 @@ func (c *CustomersDeploymentsMoveCall) Header() http.Header { func (c *CustomersDeploymentsMoveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2382,7 +2382,7 @@ func (c *CustomersDeploymentsDevicesCreateCall) Header() http.Header { func (c *CustomersDeploymentsDevicesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2522,7 +2522,7 @@ func (c *CustomersDeploymentsDevicesCreateSignedCall) Header() http.Header { func (c *CustomersDeploymentsDevicesCreateSignedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2696,7 +2696,7 @@ func (c *CustomersDeploymentsDevicesListCall) Header() http.Header { func (c *CustomersDeploymentsDevicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2869,7 +2869,7 @@ func (c *CustomersDevicesBulkCall) Header() http.Header { func (c *CustomersDevicesBulkCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3010,7 +3010,7 @@ func (c *CustomersDevicesCreateCall) Header() http.Header { func (c *CustomersDevicesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3150,7 +3150,7 @@ func (c *CustomersDevicesCreateSignedCall) Header() http.Header { func (c *CustomersDevicesCreateSignedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3288,7 +3288,7 @@ func (c *CustomersDevicesDeleteCall) Header() http.Header { func (c *CustomersDevicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3429,7 +3429,7 @@ func (c *CustomersDevicesGetCall) Header() http.Header { func (c *CustomersDevicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3598,7 +3598,7 @@ func (c *CustomersDevicesListCall) Header() http.Header { func (c *CustomersDevicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3770,7 +3770,7 @@ func (c *CustomersDevicesMoveCall) Header() http.Header { func (c *CustomersDevicesMoveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3917,7 +3917,7 @@ func (c *CustomersDevicesPatchCall) Header() http.Header { func (c *CustomersDevicesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4063,7 +4063,7 @@ func (c *CustomersDevicesSignDeviceCall) Header() http.Header { func (c *CustomersDevicesSignDeviceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4203,7 +4203,7 @@ func (c *CustomersDevicesUpdateSignedCall) Header() http.Header { func (c *CustomersDevicesUpdateSignedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4343,7 +4343,7 @@ func (c *CustomersNodesCreateCall) Header() http.Header { func (c *CustomersNodesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4481,7 +4481,7 @@ func (c *CustomersNodesDeleteCall) Header() http.Header { func (c *CustomersNodesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4622,7 +4622,7 @@ func (c *CustomersNodesGetCall) Header() http.Header { func (c *CustomersNodesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4781,7 +4781,7 @@ func (c *CustomersNodesListCall) Header() http.Header { func (c *CustomersNodesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4948,7 +4948,7 @@ func (c *CustomersNodesMoveCall) Header() http.Header { func (c *CustomersNodesMoveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5095,7 +5095,7 @@ func (c *CustomersNodesPatchCall) Header() http.Header { func (c *CustomersNodesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5241,7 +5241,7 @@ func (c *CustomersNodesDevicesCreateCall) Header() http.Header { func (c *CustomersNodesDevicesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5381,7 +5381,7 @@ func (c *CustomersNodesDevicesCreateSignedCall) Header() http.Header { func (c *CustomersNodesDevicesCreateSignedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5555,7 +5555,7 @@ func (c *CustomersNodesDevicesListCall) Header() http.Header { func (c *CustomersNodesDevicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5727,7 +5727,7 @@ func (c *CustomersNodesNodesCreateCall) Header() http.Header { func (c *CustomersNodesNodesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5891,7 +5891,7 @@ func (c *CustomersNodesNodesListCall) Header() http.Header { func (c *CustomersNodesNodesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6056,7 +6056,7 @@ func (c *DeploymentsDevicesDeleteCall) Header() http.Header { func (c *DeploymentsDevicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6197,7 +6197,7 @@ func (c *DeploymentsDevicesGetCall) Header() http.Header { func (c *DeploymentsDevicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6332,7 +6332,7 @@ func (c *DeploymentsDevicesMoveCall) Header() http.Header { func (c *DeploymentsDevicesMoveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6479,7 +6479,7 @@ func (c *DeploymentsDevicesPatchCall) Header() http.Header { func (c *DeploymentsDevicesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6625,7 +6625,7 @@ func (c *DeploymentsDevicesSignDeviceCall) Header() http.Header { func (c *DeploymentsDevicesSignDeviceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6765,7 +6765,7 @@ func (c *DeploymentsDevicesUpdateSignedCall) Header() http.Header { func (c *DeploymentsDevicesUpdateSignedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6904,7 +6904,7 @@ func (c *InstallerGenerateSecretCall) Header() http.Header { func (c *InstallerGenerateSecretCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7030,7 +7030,7 @@ func (c *InstallerValidateCall) Header() http.Header { func (c *InstallerValidateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7167,7 +7167,7 @@ func (c *NodesGetCall) Header() http.Header { func (c *NodesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7302,7 +7302,7 @@ func (c *NodesDeploymentsMoveCall) Header() http.Header { func (c *NodesDeploymentsMoveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7442,7 +7442,7 @@ func (c *NodesDeploymentsDevicesCreateCall) Header() http.Header { func (c *NodesDeploymentsDevicesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7582,7 +7582,7 @@ func (c *NodesDeploymentsDevicesCreateSignedCall) Header() http.Header { func (c *NodesDeploymentsDevicesCreateSignedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7756,7 +7756,7 @@ func (c *NodesDeploymentsDevicesListCall) Header() http.Header { func (c *NodesDeploymentsDevicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7929,7 +7929,7 @@ func (c *NodesDevicesBulkCall) Header() http.Header { func (c *NodesDevicesBulkCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8070,7 +8070,7 @@ func (c *NodesDevicesCreateCall) Header() http.Header { func (c *NodesDevicesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8210,7 +8210,7 @@ func (c *NodesDevicesCreateSignedCall) Header() http.Header { func (c *NodesDevicesCreateSignedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8348,7 +8348,7 @@ func (c *NodesDevicesDeleteCall) Header() http.Header { func (c *NodesDevicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8489,7 +8489,7 @@ func (c *NodesDevicesGetCall) Header() http.Header { func (c *NodesDevicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8658,7 +8658,7 @@ func (c *NodesDevicesListCall) Header() http.Header { func (c *NodesDevicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8830,7 +8830,7 @@ func (c *NodesDevicesMoveCall) Header() http.Header { func (c *NodesDevicesMoveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8977,7 +8977,7 @@ func (c *NodesDevicesPatchCall) Header() http.Header { func (c *NodesDevicesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9123,7 +9123,7 @@ func (c *NodesDevicesSignDeviceCall) Header() http.Header { func (c *NodesDevicesSignDeviceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9263,7 +9263,7 @@ func (c *NodesDevicesUpdateSignedCall) Header() http.Header { func (c *NodesDevicesUpdateSignedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9403,7 +9403,7 @@ func (c *NodesNodesCreateCall) Header() http.Header { func (c *NodesNodesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9541,7 +9541,7 @@ func (c *NodesNodesDeleteCall) Header() http.Header { func (c *NodesNodesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9682,7 +9682,7 @@ func (c *NodesNodesGetCall) Header() http.Header { func (c *NodesNodesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9841,7 +9841,7 @@ func (c *NodesNodesListCall) Header() http.Header { func (c *NodesNodesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10008,7 +10008,7 @@ func (c *NodesNodesMoveCall) Header() http.Header { func (c *NodesNodesMoveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10155,7 +10155,7 @@ func (c *NodesNodesPatchCall) Header() http.Header { func (c *NodesNodesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10302,7 +10302,7 @@ func (c *NodesNodesDevicesBulkCall) Header() http.Header { func (c *NodesNodesDevicesBulkCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10443,7 +10443,7 @@ func (c *NodesNodesDevicesCreateCall) Header() http.Header { func (c *NodesNodesDevicesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10583,7 +10583,7 @@ func (c *NodesNodesDevicesCreateSignedCall) Header() http.Header { func (c *NodesNodesDevicesCreateSignedCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10757,7 +10757,7 @@ func (c *NodesNodesDevicesListCall) Header() http.Header { func (c *NodesNodesDevicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10929,7 +10929,7 @@ func (c *NodesNodesNodesCreateCall) Header() http.Header { func (c *NodesNodesNodesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11093,7 +11093,7 @@ func (c *NodesNodesNodesListCall) Header() http.Header { func (c *NodesNodesNodesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11259,7 +11259,7 @@ func (c *PoliciesGetCall) Header() http.Header { func (c *PoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11385,7 +11385,7 @@ func (c *PoliciesSetCall) Header() http.Header { func (c *PoliciesSetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11511,7 +11511,7 @@ func (c *PoliciesTestCall) Header() http.Header { func (c *PoliciesTestCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/script/v1/script-gen.go b/script/v1/script-gen.go index 67b816d1ffb..0f339712d68 100644 --- a/script/v1/script-gen.go +++ b/script/v1/script-gen.go @@ -1906,7 +1906,7 @@ func (c *ProcessesListCall) Header() http.Header { func (c *ProcessesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2293,7 +2293,7 @@ func (c *ProcessesListScriptProcessesCall) Header() http.Header { func (c *ProcessesListScriptProcessesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2552,7 +2552,7 @@ func (c *ProjectsCreateCall) Header() http.Header { func (c *ProjectsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2688,7 +2688,7 @@ func (c *ProjectsGetCall) Header() http.Header { func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2841,7 +2841,7 @@ func (c *ProjectsGetContentCall) Header() http.Header { func (c *ProjectsGetContentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3013,7 +3013,7 @@ func (c *ProjectsGetMetricsCall) Header() http.Header { func (c *ProjectsGetMetricsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3171,7 +3171,7 @@ func (c *ProjectsUpdateContentCall) Header() http.Header { func (c *ProjectsUpdateContentCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3310,7 +3310,7 @@ func (c *ProjectsDeploymentsCreateCall) Header() http.Header { func (c *ProjectsDeploymentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3449,7 +3449,7 @@ func (c *ProjectsDeploymentsDeleteCall) Header() http.Header { func (c *ProjectsDeploymentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3599,7 +3599,7 @@ func (c *ProjectsDeploymentsGetCall) Header() http.Header { func (c *ProjectsDeploymentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3766,7 +3766,7 @@ func (c *ProjectsDeploymentsListCall) Header() http.Header { func (c *ProjectsDeploymentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3935,7 +3935,7 @@ func (c *ProjectsDeploymentsUpdateCall) Header() http.Header { func (c *ProjectsDeploymentsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4083,7 +4083,7 @@ func (c *ProjectsVersionsCreateCall) Header() http.Header { func (c *ProjectsVersionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4233,7 +4233,7 @@ func (c *ProjectsVersionsGetCall) Header() http.Header { func (c *ProjectsVersionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4401,7 +4401,7 @@ func (c *ProjectsVersionsListCall) Header() http.Header { func (c *ProjectsVersionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4580,7 +4580,7 @@ func (c *ScriptsRunCall) Header() http.Header { func (c *ScriptsRunCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/searchconsole/v1/searchconsole-gen.go b/searchconsole/v1/searchconsole-gen.go index c39dc491973..f768a454150 100644 --- a/searchconsole/v1/searchconsole-gen.go +++ b/searchconsole/v1/searchconsole-gen.go @@ -1037,7 +1037,7 @@ func (c *SearchanalyticsQueryCall) Header() http.Header { func (c *SearchanalyticsQueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1177,7 +1177,7 @@ func (c *SitemapsDeleteCall) Header() http.Header { func (c *SitemapsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1299,7 +1299,7 @@ func (c *SitemapsGetCall) Header() http.Header { func (c *SitemapsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1461,7 +1461,7 @@ func (c *SitemapsListCall) Header() http.Header { func (c *SitemapsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1601,7 +1601,7 @@ func (c *SitemapsSubmitCall) Header() http.Header { func (c *SitemapsSubmitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1710,7 +1710,7 @@ func (c *SitesAddCall) Header() http.Header { func (c *SitesAddCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1812,7 +1812,7 @@ func (c *SitesDeleteCall) Header() http.Header { func (c *SitesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1924,7 +1924,7 @@ func (c *SitesGetCall) Header() http.Header { func (c *SitesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2066,7 +2066,7 @@ func (c *SitesListCall) Header() http.Header { func (c *SitesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2187,7 +2187,7 @@ func (c *UrlTestingToolsMobileFriendlyTestRunCall) Header() http.Header { func (c *UrlTestingToolsMobileFriendlyTestRunCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/secretmanager/v1/secretmanager-api.json b/secretmanager/v1/secretmanager-api.json index ff8d98e12e2..e06537c1f8c 100644 --- a/secretmanager/v1/secretmanager-api.json +++ b/secretmanager/v1/secretmanager-api.json @@ -628,7 +628,7 @@ } } }, - "revision": "20200911", + "revision": "20201106", "rootUrl": "https://secretmanager.googleapis.com/", "schemas": { "AccessSecretVersionResponse": { @@ -732,10 +732,6 @@ "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { - "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", - "type": "string" - }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." diff --git a/secretmanager/v1/secretmanager-gen.go b/secretmanager/v1/secretmanager-gen.go index a53b0d9b4a9..55f72a0811f 100644 --- a/secretmanager/v1/secretmanager-gen.go +++ b/secretmanager/v1/secretmanager-gen.go @@ -415,10 +415,6 @@ func (s *AutomaticStatus) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. - BindingId string `json:"bindingId,omitempty"` - // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -468,7 +464,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "BindingId") to + // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -476,7 +472,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BindingId") to include in + // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -1425,7 +1421,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1591,7 +1587,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1764,7 +1760,7 @@ func (c *ProjectsSecretsAddVersionCall) Header() http.Header { func (c *ProjectsSecretsAddVersionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1914,7 +1910,7 @@ func (c *ProjectsSecretsCreateCall) Header() http.Header { func (c *ProjectsSecretsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2057,7 +2053,7 @@ func (c *ProjectsSecretsDeleteCall) Header() http.Header { func (c *ProjectsSecretsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2198,7 +2194,7 @@ func (c *ProjectsSecretsGetCall) Header() http.Header { func (c *ProjectsSecretsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2358,7 +2354,7 @@ func (c *ProjectsSecretsGetIamPolicyCall) Header() http.Header { func (c *ProjectsSecretsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2524,7 +2520,7 @@ func (c *ProjectsSecretsListCall) Header() http.Header { func (c *ProjectsSecretsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2698,7 +2694,7 @@ func (c *ProjectsSecretsPatchCall) Header() http.Header { func (c *ProjectsSecretsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2846,7 +2842,7 @@ func (c *ProjectsSecretsSetIamPolicyCall) Header() http.Header { func (c *ProjectsSecretsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2991,7 +2987,7 @@ func (c *ProjectsSecretsTestIamPermissionsCall) Header() http.Header { func (c *ProjectsSecretsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3142,7 +3138,7 @@ func (c *ProjectsSecretsVersionsAccessCall) Header() http.Header { func (c *ProjectsSecretsVersionsAccessCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3278,7 +3274,7 @@ func (c *ProjectsSecretsVersionsDestroyCall) Header() http.Header { func (c *ProjectsSecretsVersionsDestroyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3419,7 +3415,7 @@ func (c *ProjectsSecretsVersionsDisableCall) Header() http.Header { func (c *ProjectsSecretsVersionsDisableCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3560,7 +3556,7 @@ func (c *ProjectsSecretsVersionsEnableCall) Header() http.Header { func (c *ProjectsSecretsVersionsEnableCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3711,7 +3707,7 @@ func (c *ProjectsSecretsVersionsGetCall) Header() http.Header { func (c *ProjectsSecretsVersionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3871,7 +3867,7 @@ func (c *ProjectsSecretsVersionsListCall) Header() http.Header { func (c *ProjectsSecretsVersionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/secretmanager/v1beta1/secretmanager-api.json b/secretmanager/v1beta1/secretmanager-api.json index b3d6a82bfc5..b17cc45bf79 100644 --- a/secretmanager/v1beta1/secretmanager-api.json +++ b/secretmanager/v1beta1/secretmanager-api.json @@ -628,7 +628,7 @@ } } }, - "revision": "20200903", + "revision": "20201106", "rootUrl": "https://secretmanager.googleapis.com/", "schemas": { "AccessSecretVersionResponse": { @@ -715,10 +715,6 @@ "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { - "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", - "type": "string" - }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." diff --git a/secretmanager/v1beta1/secretmanager-gen.go b/secretmanager/v1beta1/secretmanager-gen.go index 1efd13e0178..180a47b2209 100644 --- a/secretmanager/v1beta1/secretmanager-gen.go +++ b/secretmanager/v1beta1/secretmanager-gen.go @@ -350,10 +350,6 @@ type Automatic struct { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. - BindingId string `json:"bindingId,omitempty"` - // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -403,7 +399,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "BindingId") to + // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -411,7 +407,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BindingId") to include in + // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -1177,7 +1173,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1343,7 +1339,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1516,7 +1512,7 @@ func (c *ProjectsSecretsAddVersionCall) Header() http.Header { func (c *ProjectsSecretsAddVersionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1666,7 +1662,7 @@ func (c *ProjectsSecretsCreateCall) Header() http.Header { func (c *ProjectsSecretsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1809,7 +1805,7 @@ func (c *ProjectsSecretsDeleteCall) Header() http.Header { func (c *ProjectsSecretsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1950,7 +1946,7 @@ func (c *ProjectsSecretsGetCall) Header() http.Header { func (c *ProjectsSecretsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2110,7 +2106,7 @@ func (c *ProjectsSecretsGetIamPolicyCall) Header() http.Header { func (c *ProjectsSecretsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2276,7 +2272,7 @@ func (c *ProjectsSecretsListCall) Header() http.Header { func (c *ProjectsSecretsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2450,7 +2446,7 @@ func (c *ProjectsSecretsPatchCall) Header() http.Header { func (c *ProjectsSecretsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2598,7 +2594,7 @@ func (c *ProjectsSecretsSetIamPolicyCall) Header() http.Header { func (c *ProjectsSecretsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2743,7 +2739,7 @@ func (c *ProjectsSecretsTestIamPermissionsCall) Header() http.Header { func (c *ProjectsSecretsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2894,7 +2890,7 @@ func (c *ProjectsSecretsVersionsAccessCall) Header() http.Header { func (c *ProjectsSecretsVersionsAccessCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3030,7 +3026,7 @@ func (c *ProjectsSecretsVersionsDestroyCall) Header() http.Header { func (c *ProjectsSecretsVersionsDestroyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3171,7 +3167,7 @@ func (c *ProjectsSecretsVersionsDisableCall) Header() http.Header { func (c *ProjectsSecretsVersionsDisableCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3312,7 +3308,7 @@ func (c *ProjectsSecretsVersionsEnableCall) Header() http.Header { func (c *ProjectsSecretsVersionsEnableCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3463,7 +3459,7 @@ func (c *ProjectsSecretsVersionsGetCall) Header() http.Header { func (c *ProjectsSecretsVersionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3623,7 +3619,7 @@ func (c *ProjectsSecretsVersionsListCall) Header() http.Header { func (c *ProjectsSecretsVersionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/securitycenter/v1/securitycenter-api.json b/securitycenter/v1/securitycenter-api.json index b45498c0cb4..7b2ebf207d5 100644 --- a/securitycenter/v1/securitycenter-api.json +++ b/securitycenter/v1/securitycenter-api.json @@ -105,84 +105,23 @@ }, "protocol": "rest", "resources": { - "organizations": { - "methods": { - "getOrganizationSettings": { - "description": "Gets the settings for an organization.", - "flatPath": "v1/organizations/{organizationsId}/organizationSettings", - "httpMethod": "GET", - "id": "securitycenter.organizations.getOrganizationSettings", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. Name of the organization to get organization settings for. Its format is \"organizations/[organization_id]/organizationSettings\".", - "location": "path", - "pattern": "^organizations/[^/]+/organizationSettings$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "OrganizationSettings" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "updateOrganizationSettings": { - "description": "Updates an organization's settings.", - "flatPath": "v1/organizations/{organizationsId}/organizationSettings", - "httpMethod": "PATCH", - "id": "securitycenter.organizations.updateOrganizationSettings", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The relative resource name of the settings. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/organizationSettings\".", - "location": "path", - "pattern": "^organizations/[^/]+/organizationSettings$", - "required": true, - "type": "string" - }, - "updateMask": { - "description": "The FieldMask to use when updating the settings resource. If empty all mutable fields will be updated.", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}", - "request": { - "$ref": "OrganizationSettings" - }, - "response": { - "$ref": "OrganizationSettings" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - }, + "folders": { "resources": { "assets": { "methods": { "group": { "description": "Filters an organization's assets and groups them by their specified properties.", - "flatPath": "v1/organizations/{organizationsId}/assets:group", + "flatPath": "v1/folders/{foldersId}/assets:group", "httpMethod": "POST", - "id": "securitycenter.organizations.assets.group", + "id": "securitycenter.folders.assets.group", "parameterOrder": [ "parent" ], "parameters": { "parent": { - "description": "Required. Name of the organization to groupBy. Its format is \"organizations/[organization_id]\".", + "description": "Required. Name of the organization to groupBy. Its format is \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", "location": "path", - "pattern": "^organizations/[^/]+$", + "pattern": "^folders/[^/]+$", "required": true, "type": "string" } @@ -200,9 +139,9 @@ }, "list": { "description": "Lists an organization's assets.", - "flatPath": "v1/organizations/{organizationsId}/assets", + "flatPath": "v1/folders/{foldersId}/assets", "httpMethod": "GET", - "id": "securitycenter.organizations.assets.list", + "id": "securitycenter.folders.assets.list", "parameterOrder": [ "parent" ], @@ -241,9 +180,9 @@ "type": "string" }, "parent": { - "description": "Required. Name of the organization assets should belong to. Its format is \"organizations/[organization_id]\".", + "description": "Required. Name of the organization assets should belong to. Its format is \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", "location": "path", - "pattern": "^organizations/[^/]+$", + "pattern": "^folders/[^/]+$", "required": true, "type": "string" }, @@ -262,39 +201,11 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "runDiscovery": { - "description": "Runs asset discovery. The discovery is tracked with a long-running operation. This API can only be called with limited frequency for an organization. If it is called too frequently the caller will receive a TOO_MANY_REQUESTS error.", - "flatPath": "v1/organizations/{organizationsId}/assets:runDiscovery", - "httpMethod": "POST", - "id": "securitycenter.organizations.assets.runDiscovery", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. Name of the organization to run asset discovery for. Its format is \"organizations/[organization_id]\".", - "location": "path", - "pattern": "^organizations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/assets:runDiscovery", - "request": { - "$ref": "RunAssetDiscoveryRequest" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "updateSecurityMarks": { "description": "Updates security marks.", - "flatPath": "v1/organizations/{organizationsId}/assets/{assetsId}/securityMarks", + "flatPath": "v1/folders/{foldersId}/assets/{assetsId}/securityMarks", "httpMethod": "PATCH", - "id": "securitycenter.organizations.assets.updateSecurityMarks", + "id": "securitycenter.folders.assets.updateSecurityMarks", "parameterOrder": [ "name" ], @@ -302,7 +213,7 @@ "name": { "description": "The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: \"organizations/{organization_id}/assets/{asset_id}/securityMarks\" \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks\".", "location": "path", - "pattern": "^organizations/[^/]+/assets/[^/]+/securityMarks$", + "pattern": "^folders/[^/]+/assets/[^/]+/securityMarks$", "required": true, "type": "string" }, @@ -332,96 +243,13 @@ } } }, - "notificationConfigs": { + "sources": { "methods": { - "create": { - "description": "Creates a notification config.", - "flatPath": "v1/organizations/{organizationsId}/notificationConfigs", - "httpMethod": "POST", - "id": "securitycenter.organizations.notificationConfigs.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "configId": { - "description": "Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters, and contains alphanumeric characters, underscores or hyphens only.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. Resource name of the new notification config's parent. Its format is \"organizations/[organization_id]\".", - "location": "path", - "pattern": "^organizations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/notificationConfigs", - "request": { - "$ref": "NotificationConfig" - }, - "response": { - "$ref": "NotificationConfig" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes a notification config.", - "flatPath": "v1/organizations/{organizationsId}/notificationConfigs/{notificationConfigsId}", - "httpMethod": "DELETE", - "id": "securitycenter.organizations.notificationConfigs.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. Name of the notification config to delete. Its format is \"organizations/[organization_id]/notificationConfigs/[config_id]\".", - "location": "path", - "pattern": "^organizations/[^/]+/notificationConfigs/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "Empty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets a notification config.", - "flatPath": "v1/organizations/{organizationsId}/notificationConfigs/{notificationConfigsId}", - "httpMethod": "GET", - "id": "securitycenter.organizations.notificationConfigs.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. Name of the notification config to get. Its format is \"organizations/[organization_id]/notificationConfigs/[config_id]\".", - "location": "path", - "pattern": "^organizations/[^/]+/notificationConfigs/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "NotificationConfig" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "list": { - "description": "Lists notification configs.", - "flatPath": "v1/organizations/{organizationsId}/notificationConfigs", + "description": "Lists all sources belonging to an organization.", + "flatPath": "v1/folders/{foldersId}/sources", "httpMethod": "GET", - "id": "securitycenter.organizations.notificationConfigs.list", + "id": "securitycenter.folders.sources.list", "parameterOrder": [ "parent" ], @@ -433,86 +261,638 @@ "type": "integer" }, "pageToken": { - "description": "The value returned by the last `ListNotificationConfigsResponse`; indicates that this is a continuation of a prior `ListNotificationConfigs` call, and that the system should return the next page of data.", + "description": "The value returned by the last `ListSourcesResponse`; indicates that this is a continuation of a prior `ListSources` call, and that the system should return the next page of data.", "location": "query", "type": "string" }, "parent": { - "description": "Required. Name of the organization to list notification configs. Its format is \"organizations/[organization_id]\".", - "location": "path", - "pattern": "^organizations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/notificationConfigs", - "response": { - "$ref": "ListNotificationConfigsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "patch": { - "description": " Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter", - "flatPath": "v1/organizations/{organizationsId}/notificationConfigs/{notificationConfigsId}", - "httpMethod": "PATCH", - "id": "securitycenter.organizations.notificationConfigs.patch", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The relative resource name of this notification config. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/notificationConfigs/notify_public_bucket\".", + "description": "Required. Resource name of the parent of sources to list. Its format should be \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", "location": "path", - "pattern": "^organizations/[^/]+/notificationConfigs/[^/]+$", + "pattern": "^folders/[^/]+$", "required": true, "type": "string" - }, - "updateMask": { - "description": "The FieldMask to use when updating the notification config. If empty all mutable fields will be updated.", - "format": "google-fieldmask", - "location": "query", - "type": "string" } }, - "path": "v1/{+name}", - "request": { - "$ref": "NotificationConfig" - }, + "path": "v1/{+parent}/sources", "response": { - "$ref": "NotificationConfig" + "$ref": "ListSourcesResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] } - } - }, - "operations": { - "methods": { - "cancel": { - "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - "flatPath": "v1/organizations/{organizationsId}/operations/{operationsId}:cancel", - "httpMethod": "POST", - "id": "securitycenter.organizations.operations.cancel", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be cancelled.", - "location": "path", - "pattern": "^organizations/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}:cancel", - "response": { - "$ref": "Empty" - }, - "scopes": [ + }, + "resources": { + "findings": { + "methods": { + "group": { + "description": "Filters an organization or source's findings and groups them by their specified properties. To group across all sources provide a `-` as the source id. Example: /v1/organizations/{organization_id}/sources/-/findings, /v1/folders/{folder_id}/sources/-/findings, /v1/projects/{project_id}/sources/-/findings", + "flatPath": "v1/folders/{foldersId}/sources/{sourcesId}/findings:group", + "httpMethod": "POST", + "id": "securitycenter.folders.sources.findings.group", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Name of the source to groupBy. Its format is \"organizations/[organization_id]/sources/[source_id]\", folders/[folder_id]/sources/[source_id], or projects/[project_id]/sources/[source_id]. To groupBy across all sources provide a source_id of `-`. For example: organizations/{organization_id}/sources/-, folders/{folder_id}/sources/-, or projects/{project_id}/sources/-", + "location": "path", + "pattern": "^folders/[^/]+/sources/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/findings:group", + "request": { + "$ref": "GroupFindingsRequest" + }, + "response": { + "$ref": "GroupFindingsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists an organization or source's findings. To list across all sources provide a `-` as the source id. Example: /v1/organizations/{organization_id}/sources/-/findings", + "flatPath": "v1/folders/{foldersId}/sources/{sourcesId}/findings", + "httpMethod": "GET", + "id": "securitycenter.folders.sources.findings.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "compareDuration": { + "description": "When compare_duration is set, the ListFindingsResult's \"state_change\" attribute is updated to indicate whether the finding had its state changed, the finding's state remained unchanged, or if the finding was added in any state during the compare_duration period of time that precedes the read_time. This is the time between (read_time - compare_duration) and read_time. The state_change value is derived based on the presence and state of the finding at the two points in time. Intermediate state changes between the two times don't affect the result. For example, the results aren't affected if the finding is made inactive and then active again. Possible \"state_change\" values when compare_duration is specified: * \"CHANGED\": indicates that the finding was present and matched the given filter at the start of compare_duration, but changed its state at read_time. * \"UNCHANGED\": indicates that the finding was present and matched the given filter at the start of compare_duration and did not change state at read_time. * \"ADDED\": indicates that the finding did not match the given filter or was not present at the start of compare_duration, but was present at read_time. * \"REMOVED\": indicates that the finding was present and matched the filter at the start of compare_duration, but did not match the filter at read_time. If compare_duration is not specified, then the only possible state_change is \"UNUSED\", which will be the state_change set for all findings present at read_time.", + "format": "google-duration", + "location": "query", + "type": "string" + }, + "fieldMask": { + "description": "A field mask to specify the Finding fields to be listed in the response. An empty field mask will list all fields.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + }, + "filter": { + "description": "Expression that defines the filter to apply across findings. The expression is a list of one or more restrictions combined via logical operators `AND` and `OR`. Parentheses are supported, and `OR` has higher precedence than `AND`. Restrictions have the form ` ` and may have a `-` character in front of them to indicate negation. Examples include: * name * source_properties.a_property * security_marks.marks.marka The supported operators are: * `=` for all value types. * `\u003e`, `\u003c`, `\u003e=`, `\u003c=` for integer values. * `:`, meaning substring matching, for strings. The supported value types are: * string literals in quotes. * integer literals without quotes. * boolean literals `true` and `false` without quotes. The following field and operator combinations are supported: name: `=` parent: `=`, `:` resource_name: `=`, `:` state: `=`, `:` category: `=`, `:` external_uri: `=`, `:` event_time: `=`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` Usage: This should be milliseconds since epoch or an RFC3339 string. Examples: `event_time = \"2019-06-10T16:07:18-07:00\"` `event_time = 1560208038000` security_marks.marks: `=`, `:` source_properties: `=`, `:`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` For example, `source_properties.size = 100` is a valid filter string. Use a partial match on the empty string to filter based on a property existing: `source_properties.my_property : \"\"` Use a negated partial match on the empty string to filter based on a property not existing: `-source_properties.my_property : \"\"`", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Expression that defines what fields and order to use for sorting. The string value should follow SQL syntax: comma separated list of fields. For example: \"name,resource_properties.a_property\". The default sorting order is ascending. To specify descending order for a field, a suffix \" desc\" should be appended to the field name. For example: \"name desc,source_properties.a_property\". Redundant space characters in the syntax are insignificant. \"name desc,source_properties.a_property\" and \" name desc , source_properties.a_property \" are equivalent. The following fields are supported: name parent state category resource_name event_time source_properties security_marks.marks", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The value returned by the last `ListFindingsResponse`; indicates that this is a continuation of a prior `ListFindings` call, and that the system should return the next page of data.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Name of the source the findings belong to. Its format is \"organizations/[organization_id]/sources/[source_id], folders/[folder_id]/sources/[source_id], or projects/[project_id]/sources/[source_id]\". To list across all sources provide a source_id of `-`. For example: organizations/{organization_id}/sources/-, folders/{folder_id}/sources/- or projects/{projects_id}/sources/-", + "location": "path", + "pattern": "^folders/[^/]+/sources/[^/]+$", + "required": true, + "type": "string" + }, + "readTime": { + "description": "Time used as a reference point when filtering findings. The filter is limited to findings existing at the supplied time and their values are those at that specific time. Absence of this field will default to the API's version of NOW.", + "format": "google-datetime", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/findings", + "response": { + "$ref": "ListFindingsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Creates or updates a finding. The corresponding source must exist for a finding creation to succeed.", + "flatPath": "v1/folders/{foldersId}/sources/{sourcesId}/findings/{findingsId}", + "httpMethod": "PATCH", + "id": "securitycenter.folders.sources.findings.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The relative resource name of this finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}\"", + "location": "path", + "pattern": "^folders/[^/]+/sources/[^/]+/findings/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The FieldMask to use when updating the finding resource. This field should not be specified when creating a finding. When updating a finding, an empty mask is treated as updating all mutable fields and replacing source_properties. Individual source_properties can be added/updated by using \"source_properties.\" in the field mask.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "Finding" + }, + "response": { + "$ref": "Finding" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setState": { + "description": "Updates the state of a finding.", + "flatPath": "v1/folders/{foldersId}/sources/{sourcesId}/findings/{findingsId}:setState", + "httpMethod": "POST", + "id": "securitycenter.folders.sources.findings.setState", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The relative resource name of the finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/sources/{source_id}/finding/{finding_id}\".", + "location": "path", + "pattern": "^folders/[^/]+/sources/[^/]+/findings/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:setState", + "request": { + "$ref": "SetFindingStateRequest" + }, + "response": { + "$ref": "Finding" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "updateSecurityMarks": { + "description": "Updates security marks.", + "flatPath": "v1/folders/{foldersId}/sources/{sourcesId}/findings/{findingsId}/securityMarks", + "httpMethod": "PATCH", + "id": "securitycenter.folders.sources.findings.updateSecurityMarks", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: \"organizations/{organization_id}/assets/{asset_id}/securityMarks\" \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks\".", + "location": "path", + "pattern": "^folders/[^/]+/sources/[^/]+/findings/[^/]+/securityMarks$", + "required": true, + "type": "string" + }, + "startTime": { + "description": "The time at which the updated SecurityMarks take effect. If not set uses current server time. Updates will be applied to the SecurityMarks that are active immediately preceding this time.", + "format": "google-datetime", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "The FieldMask to use when updating the security marks resource. The field mask must not contain duplicate fields. If empty or set to \"marks\", all marks will be replaced. Individual marks can be updated using \"marks.\".", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "SecurityMarks" + }, + "response": { + "$ref": "SecurityMarks" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + }, + "organizations": { + "methods": { + "getOrganizationSettings": { + "description": "Gets the settings for an organization.", + "flatPath": "v1/organizations/{organizationsId}/organizationSettings", + "httpMethod": "GET", + "id": "securitycenter.organizations.getOrganizationSettings", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the organization to get organization settings for. Its format is \"organizations/[organization_id]/organizationSettings\".", + "location": "path", + "pattern": "^organizations/[^/]+/organizationSettings$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "OrganizationSettings" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "updateOrganizationSettings": { + "description": "Updates an organization's settings.", + "flatPath": "v1/organizations/{organizationsId}/organizationSettings", + "httpMethod": "PATCH", + "id": "securitycenter.organizations.updateOrganizationSettings", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The relative resource name of the settings. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/organizationSettings\".", + "location": "path", + "pattern": "^organizations/[^/]+/organizationSettings$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The FieldMask to use when updating the settings resource. If empty all mutable fields will be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "OrganizationSettings" + }, + "response": { + "$ref": "OrganizationSettings" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "assets": { + "methods": { + "group": { + "description": "Filters an organization's assets and groups them by their specified properties.", + "flatPath": "v1/organizations/{organizationsId}/assets:group", + "httpMethod": "POST", + "id": "securitycenter.organizations.assets.group", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Name of the organization to groupBy. Its format is \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", + "location": "path", + "pattern": "^organizations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/assets:group", + "request": { + "$ref": "GroupAssetsRequest" + }, + "response": { + "$ref": "GroupAssetsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists an organization's assets.", + "flatPath": "v1/organizations/{organizationsId}/assets", + "httpMethod": "GET", + "id": "securitycenter.organizations.assets.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "compareDuration": { + "description": "When compare_duration is set, the ListAssetsResult's \"state_change\" attribute is updated to indicate whether the asset was added, removed, or remained present during the compare_duration period of time that precedes the read_time. This is the time between (read_time - compare_duration) and read_time. The state_change value is derived based on the presence of the asset at the two points in time. Intermediate state changes between the two times don't affect the result. For example, the results aren't affected if the asset is removed and re-created again. Possible \"state_change\" values when compare_duration is specified: * \"ADDED\": indicates that the asset was not present at the start of compare_duration, but present at read_time. * \"REMOVED\": indicates that the asset was present at the start of compare_duration, but not present at read_time. * \"ACTIVE\": indicates that the asset was present at both the start and the end of the time period defined by compare_duration and read_time. If compare_duration is not specified, then the only possible state_change is \"UNUSED\", which will be the state_change set for all assets present at read_time.", + "format": "google-duration", + "location": "query", + "type": "string" + }, + "fieldMask": { + "description": "A field mask to specify the ListAssetsResult fields to be listed in the response. An empty field mask will list all fields.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + }, + "filter": { + "description": "Expression that defines the filter to apply across assets. The expression is a list of zero or more restrictions combined via logical operators `AND` and `OR`. Parentheses are supported, and `OR` has higher precedence than `AND`. Restrictions have the form ` ` and may have a `-` character in front of them to indicate negation. The fields map to those defined in the Asset resource. Examples include: * name * security_center_properties.resource_name * resource_properties.a_property * security_marks.marks.marka The supported operators are: * `=` for all value types. * `\u003e`, `\u003c`, `\u003e=`, `\u003c=` for integer values. * `:`, meaning substring matching, for strings. The supported value types are: * string literals in quotes. * integer literals without quotes. * boolean literals `true` and `false` without quotes. The following are the allowed field and operator combinations: * name: `=` * update_time: `=`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` Usage: This should be milliseconds since epoch or an RFC3339 string. Examples: `update_time = \"2019-06-10T16:07:18-07:00\"` `update_time = 1560208038000` * create_time: `=`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` Usage: This should be milliseconds since epoch or an RFC3339 string. Examples: `create_time = \"2019-06-10T16:07:18-07:00\"` `create_time = 1560208038000` * iam_policy.policy_blob: `=`, `:` * resource_properties: `=`, `:`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` * security_marks.marks: `=`, `:` * security_center_properties.resource_name: `=`, `:` * security_center_properties.resource_display_name: `=`, `:` * security_center_properties.resource_type: `=`, `:` * security_center_properties.resource_parent: `=`, `:` * security_center_properties.resource_parent_display_name: `=`, `:` * security_center_properties.resource_project: `=`, `:` * security_center_properties.resource_project_display_name: `=`, `:` * security_center_properties.resource_owners: `=`, `:` For example, `resource_properties.size = 100` is a valid filter string. Use a partial match on the empty string to filter based on a property existing: `resource_properties.my_property : \"\"` Use a negated partial match on the empty string to filter based on a property not existing: `-resource_properties.my_property : \"\"`", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Expression that defines what fields and order to use for sorting. The string value should follow SQL syntax: comma separated list of fields. For example: \"name,resource_properties.a_property\". The default sorting order is ascending. To specify descending order for a field, a suffix \" desc\" should be appended to the field name. For example: \"name desc,resource_properties.a_property\". Redundant space characters in the syntax are insignificant. \"name desc,resource_properties.a_property\" and \" name desc , resource_properties.a_property \" are equivalent. The following fields are supported: name update_time resource_properties security_marks.marks security_center_properties.resource_name security_center_properties.resource_display_name security_center_properties.resource_parent security_center_properties.resource_parent_display_name security_center_properties.resource_project security_center_properties.resource_project_display_name security_center_properties.resource_type", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The value returned by the last `ListAssetsResponse`; indicates that this is a continuation of a prior `ListAssets` call, and that the system should return the next page of data.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Name of the organization assets should belong to. Its format is \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", + "location": "path", + "pattern": "^organizations/[^/]+$", + "required": true, + "type": "string" + }, + "readTime": { + "description": "Time used as a reference point when filtering assets. The filter is limited to assets existing at the supplied time and their values are those at that specific time. Absence of this field will default to the API's version of NOW.", + "format": "google-datetime", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/assets", + "response": { + "$ref": "ListAssetsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "runDiscovery": { + "description": "Runs asset discovery. The discovery is tracked with a long-running operation. This API can only be called with limited frequency for an organization. If it is called too frequently the caller will receive a TOO_MANY_REQUESTS error.", + "flatPath": "v1/organizations/{organizationsId}/assets:runDiscovery", + "httpMethod": "POST", + "id": "securitycenter.organizations.assets.runDiscovery", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Name of the organization to run asset discovery for. Its format is \"organizations/[organization_id]\".", + "location": "path", + "pattern": "^organizations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/assets:runDiscovery", + "request": { + "$ref": "RunAssetDiscoveryRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "updateSecurityMarks": { + "description": "Updates security marks.", + "flatPath": "v1/organizations/{organizationsId}/assets/{assetsId}/securityMarks", + "httpMethod": "PATCH", + "id": "securitycenter.organizations.assets.updateSecurityMarks", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: \"organizations/{organization_id}/assets/{asset_id}/securityMarks\" \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks\".", + "location": "path", + "pattern": "^organizations/[^/]+/assets/[^/]+/securityMarks$", + "required": true, + "type": "string" + }, + "startTime": { + "description": "The time at which the updated SecurityMarks take effect. If not set uses current server time. Updates will be applied to the SecurityMarks that are active immediately preceding this time.", + "format": "google-datetime", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "The FieldMask to use when updating the security marks resource. The field mask must not contain duplicate fields. If empty or set to \"marks\", all marks will be replaced. Individual marks can be updated using \"marks.\".", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "SecurityMarks" + }, + "response": { + "$ref": "SecurityMarks" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "notificationConfigs": { + "methods": { + "create": { + "description": "Creates a notification config.", + "flatPath": "v1/organizations/{organizationsId}/notificationConfigs", + "httpMethod": "POST", + "id": "securitycenter.organizations.notificationConfigs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "configId": { + "description": "Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters, and contains alphanumeric characters, underscores or hyphens only.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Resource name of the new notification config's parent. Its format is \"organizations/[organization_id]\".", + "location": "path", + "pattern": "^organizations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/notificationConfigs", + "request": { + "$ref": "NotificationConfig" + }, + "response": { + "$ref": "NotificationConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a notification config.", + "flatPath": "v1/organizations/{organizationsId}/notificationConfigs/{notificationConfigsId}", + "httpMethod": "DELETE", + "id": "securitycenter.organizations.notificationConfigs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the notification config to delete. Its format is \"organizations/[organization_id]/notificationConfigs/[config_id]\".", + "location": "path", + "pattern": "^organizations/[^/]+/notificationConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a notification config.", + "flatPath": "v1/organizations/{organizationsId}/notificationConfigs/{notificationConfigsId}", + "httpMethod": "GET", + "id": "securitycenter.organizations.notificationConfigs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the notification config to get. Its format is \"organizations/[organization_id]/notificationConfigs/[config_id]\".", + "location": "path", + "pattern": "^organizations/[^/]+/notificationConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "NotificationConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists notification configs.", + "flatPath": "v1/organizations/{organizationsId}/notificationConfigs", + "httpMethod": "GET", + "id": "securitycenter.organizations.notificationConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The value returned by the last `ListNotificationConfigsResponse`; indicates that this is a continuation of a prior `ListNotificationConfigs` call, and that the system should return the next page of data.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Name of the organization to list notification configs. Its format is \"organizations/[organization_id]\".", + "location": "path", + "pattern": "^organizations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/notificationConfigs", + "response": { + "$ref": "ListNotificationConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": " Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter", + "flatPath": "v1/organizations/{organizationsId}/notificationConfigs/{notificationConfigsId}", + "httpMethod": "PATCH", + "id": "securitycenter.organizations.notificationConfigs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The relative resource name of this notification config. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/notificationConfigs/notify_public_bucket\".", + "location": "path", + "pattern": "^organizations/[^/]+/notificationConfigs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The FieldMask to use when updating the notification config. If empty all mutable fields will be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "NotificationConfig" + }, + "response": { + "$ref": "NotificationConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "flatPath": "v1/organizations/{organizationsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "securitycenter.organizations.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^organizations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "response": { + "$ref": "Empty" + }, + "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, @@ -623,84 +1003,501 @@ "parent": { "description": "Required. Resource name of the new source's parent. Its format should be \"organizations/[organization_id]\".", "location": "path", - "pattern": "^organizations/[^/]+$", + "pattern": "^organizations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/sources", + "request": { + "$ref": "Source" + }, + "response": { + "$ref": "Source" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a source.", + "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}", + "httpMethod": "GET", + "id": "securitycenter.organizations.sources.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Relative resource name of the source. Its format is \"organizations/[organization_id]/source/[source_id]\".", + "location": "path", + "pattern": "^organizations/[^/]+/sources/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Source" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getIamPolicy": { + "description": "Gets the access control policy on the specified Source.", + "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}:getIamPolicy", + "httpMethod": "POST", + "id": "securitycenter.organizations.sources.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^organizations/[^/]+/sources/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:getIamPolicy", + "request": { + "$ref": "GetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all sources belonging to an organization.", + "flatPath": "v1/organizations/{organizationsId}/sources", + "httpMethod": "GET", + "id": "securitycenter.organizations.sources.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The value returned by the last `ListSourcesResponse`; indicates that this is a continuation of a prior `ListSources` call, and that the system should return the next page of data.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Resource name of the parent of sources to list. Its format should be \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", + "location": "path", + "pattern": "^organizations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/sources", + "response": { + "$ref": "ListSourcesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a source.", + "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}", + "httpMethod": "PATCH", + "id": "securitycenter.organizations.sources.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The relative resource name of this source. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/sources/{source_id}\"", + "location": "path", + "pattern": "^organizations/[^/]+/sources/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The FieldMask to use when updating the source resource. If empty all mutable fields will be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "Source" + }, + "response": { + "$ref": "Source" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified Source.", + "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}:setIamPolicy", + "httpMethod": "POST", + "id": "securitycenter.organizations.sources.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + "location": "path", + "pattern": "^organizations/[^/]+/sources/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/sources", + "path": "v1/{+resource}:setIamPolicy", "request": { - "$ref": "Source" + "$ref": "SetIamPolicyRequest" }, "response": { - "$ref": "Source" + "$ref": "Policy" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "get": { - "description": "Gets a source.", - "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}", - "httpMethod": "GET", - "id": "securitycenter.organizations.sources.get", + "testIamPermissions": { + "description": "Returns the permissions that a caller has on the specified source.", + "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}:testIamPermissions", + "httpMethod": "POST", + "id": "securitycenter.organizations.sources.testIamPermissions", "parameterOrder": [ - "name" + "resource" ], "parameters": { - "name": { - "description": "Required. Relative resource name of the source. Its format is \"organizations/[organization_id]/source/[source_id]\".", + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", "location": "path", "pattern": "^organizations/[^/]+/sources/[^/]+$", "required": true, "type": "string" } - }, - "path": "v1/{+name}", - "response": { - "$ref": "Source" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "getIamPolicy": { - "description": "Gets the access control policy on the specified Source.", - "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}:getIamPolicy", + }, + "path": "v1/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "findings": { + "methods": { + "create": { + "description": "Creates a finding. The corresponding source must exist for finding creation to succeed.", + "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}/findings", + "httpMethod": "POST", + "id": "securitycenter.organizations.sources.findings.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "findingId": { + "description": "Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Resource name of the new finding's parent. Its format should be \"organizations/[organization_id]/sources/[source_id]\".", + "location": "path", + "pattern": "^organizations/[^/]+/sources/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/findings", + "request": { + "$ref": "Finding" + }, + "response": { + "$ref": "Finding" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "group": { + "description": "Filters an organization or source's findings and groups them by their specified properties. To group across all sources provide a `-` as the source id. Example: /v1/organizations/{organization_id}/sources/-/findings, /v1/folders/{folder_id}/sources/-/findings, /v1/projects/{project_id}/sources/-/findings", + "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}/findings:group", + "httpMethod": "POST", + "id": "securitycenter.organizations.sources.findings.group", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Name of the source to groupBy. Its format is \"organizations/[organization_id]/sources/[source_id]\", folders/[folder_id]/sources/[source_id], or projects/[project_id]/sources/[source_id]. To groupBy across all sources provide a source_id of `-`. For example: organizations/{organization_id}/sources/-, folders/{folder_id}/sources/-, or projects/{project_id}/sources/-", + "location": "path", + "pattern": "^organizations/[^/]+/sources/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/findings:group", + "request": { + "$ref": "GroupFindingsRequest" + }, + "response": { + "$ref": "GroupFindingsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists an organization or source's findings. To list across all sources provide a `-` as the source id. Example: /v1/organizations/{organization_id}/sources/-/findings", + "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}/findings", + "httpMethod": "GET", + "id": "securitycenter.organizations.sources.findings.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "compareDuration": { + "description": "When compare_duration is set, the ListFindingsResult's \"state_change\" attribute is updated to indicate whether the finding had its state changed, the finding's state remained unchanged, or if the finding was added in any state during the compare_duration period of time that precedes the read_time. This is the time between (read_time - compare_duration) and read_time. The state_change value is derived based on the presence and state of the finding at the two points in time. Intermediate state changes between the two times don't affect the result. For example, the results aren't affected if the finding is made inactive and then active again. Possible \"state_change\" values when compare_duration is specified: * \"CHANGED\": indicates that the finding was present and matched the given filter at the start of compare_duration, but changed its state at read_time. * \"UNCHANGED\": indicates that the finding was present and matched the given filter at the start of compare_duration and did not change state at read_time. * \"ADDED\": indicates that the finding did not match the given filter or was not present at the start of compare_duration, but was present at read_time. * \"REMOVED\": indicates that the finding was present and matched the filter at the start of compare_duration, but did not match the filter at read_time. If compare_duration is not specified, then the only possible state_change is \"UNUSED\", which will be the state_change set for all findings present at read_time.", + "format": "google-duration", + "location": "query", + "type": "string" + }, + "fieldMask": { + "description": "A field mask to specify the Finding fields to be listed in the response. An empty field mask will list all fields.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + }, + "filter": { + "description": "Expression that defines the filter to apply across findings. The expression is a list of one or more restrictions combined via logical operators `AND` and `OR`. Parentheses are supported, and `OR` has higher precedence than `AND`. Restrictions have the form ` ` and may have a `-` character in front of them to indicate negation. Examples include: * name * source_properties.a_property * security_marks.marks.marka The supported operators are: * `=` for all value types. * `\u003e`, `\u003c`, `\u003e=`, `\u003c=` for integer values. * `:`, meaning substring matching, for strings. The supported value types are: * string literals in quotes. * integer literals without quotes. * boolean literals `true` and `false` without quotes. The following field and operator combinations are supported: name: `=` parent: `=`, `:` resource_name: `=`, `:` state: `=`, `:` category: `=`, `:` external_uri: `=`, `:` event_time: `=`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` Usage: This should be milliseconds since epoch or an RFC3339 string. Examples: `event_time = \"2019-06-10T16:07:18-07:00\"` `event_time = 1560208038000` security_marks.marks: `=`, `:` source_properties: `=`, `:`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` For example, `source_properties.size = 100` is a valid filter string. Use a partial match on the empty string to filter based on a property existing: `source_properties.my_property : \"\"` Use a negated partial match on the empty string to filter based on a property not existing: `-source_properties.my_property : \"\"`", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Expression that defines what fields and order to use for sorting. The string value should follow SQL syntax: comma separated list of fields. For example: \"name,resource_properties.a_property\". The default sorting order is ascending. To specify descending order for a field, a suffix \" desc\" should be appended to the field name. For example: \"name desc,source_properties.a_property\". Redundant space characters in the syntax are insignificant. \"name desc,source_properties.a_property\" and \" name desc , source_properties.a_property \" are equivalent. The following fields are supported: name parent state category resource_name event_time source_properties security_marks.marks", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The value returned by the last `ListFindingsResponse`; indicates that this is a continuation of a prior `ListFindings` call, and that the system should return the next page of data.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Name of the source the findings belong to. Its format is \"organizations/[organization_id]/sources/[source_id], folders/[folder_id]/sources/[source_id], or projects/[project_id]/sources/[source_id]\". To list across all sources provide a source_id of `-`. For example: organizations/{organization_id}/sources/-, folders/{folder_id}/sources/- or projects/{projects_id}/sources/-", + "location": "path", + "pattern": "^organizations/[^/]+/sources/[^/]+$", + "required": true, + "type": "string" + }, + "readTime": { + "description": "Time used as a reference point when filtering findings. The filter is limited to findings existing at the supplied time and their values are those at that specific time. Absence of this field will default to the API's version of NOW.", + "format": "google-datetime", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/findings", + "response": { + "$ref": "ListFindingsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Creates or updates a finding. The corresponding source must exist for a finding creation to succeed.", + "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}/findings/{findingsId}", + "httpMethod": "PATCH", + "id": "securitycenter.organizations.sources.findings.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The relative resource name of this finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}\"", + "location": "path", + "pattern": "^organizations/[^/]+/sources/[^/]+/findings/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The FieldMask to use when updating the finding resource. This field should not be specified when creating a finding. When updating a finding, an empty mask is treated as updating all mutable fields and replacing source_properties. Individual source_properties can be added/updated by using \"source_properties.\" in the field mask.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "Finding" + }, + "response": { + "$ref": "Finding" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setState": { + "description": "Updates the state of a finding.", + "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}/findings/{findingsId}:setState", + "httpMethod": "POST", + "id": "securitycenter.organizations.sources.findings.setState", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The relative resource name of the finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/sources/{source_id}/finding/{finding_id}\".", + "location": "path", + "pattern": "^organizations/[^/]+/sources/[^/]+/findings/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:setState", + "request": { + "$ref": "SetFindingStateRequest" + }, + "response": { + "$ref": "Finding" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "updateSecurityMarks": { + "description": "Updates security marks.", + "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}/findings/{findingsId}/securityMarks", + "httpMethod": "PATCH", + "id": "securitycenter.organizations.sources.findings.updateSecurityMarks", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: \"organizations/{organization_id}/assets/{asset_id}/securityMarks\" \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks\".", + "location": "path", + "pattern": "^organizations/[^/]+/sources/[^/]+/findings/[^/]+/securityMarks$", + "required": true, + "type": "string" + }, + "startTime": { + "description": "The time at which the updated SecurityMarks take effect. If not set uses current server time. Updates will be applied to the SecurityMarks that are active immediately preceding this time.", + "format": "google-datetime", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "The FieldMask to use when updating the security marks resource. The field mask must not contain duplicate fields. If empty or set to \"marks\", all marks will be replaced. Individual marks can be updated using \"marks.\".", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "SecurityMarks" + }, + "response": { + "$ref": "SecurityMarks" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + }, + "projects": { + "resources": { + "assets": { + "methods": { + "group": { + "description": "Filters an organization's assets and groups them by their specified properties.", + "flatPath": "v1/projects/{projectsId}/assets:group", "httpMethod": "POST", - "id": "securitycenter.organizations.sources.getIamPolicy", + "id": "securitycenter.projects.assets.group", "parameterOrder": [ - "resource" + "parent" ], "parameters": { - "resource": { - "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + "parent": { + "description": "Required. Name of the organization to groupBy. Its format is \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", "location": "path", - "pattern": "^organizations/[^/]+/sources/[^/]+$", + "pattern": "^projects/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+resource}:getIamPolicy", + "path": "v1/{+parent}/assets:group", "request": { - "$ref": "GetIamPolicyRequest" + "$ref": "GroupAssetsRequest" }, "response": { - "$ref": "Policy" + "$ref": "GroupAssetsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "list": { - "description": "Lists all sources belonging to an organization.", - "flatPath": "v1/organizations/{organizationsId}/sources", + "description": "Lists an organization's assets.", + "flatPath": "v1/projects/{projectsId}/assets", "httpMethod": "GET", - "id": "securitycenter.organizations.sources.list", + "id": "securitycenter.projects.assets.list", "parameterOrder": [ "parent" ], "parameters": { + "compareDuration": { + "description": "When compare_duration is set, the ListAssetsResult's \"state_change\" attribute is updated to indicate whether the asset was added, removed, or remained present during the compare_duration period of time that precedes the read_time. This is the time between (read_time - compare_duration) and read_time. The state_change value is derived based on the presence of the asset at the two points in time. Intermediate state changes between the two times don't affect the result. For example, the results aren't affected if the asset is removed and re-created again. Possible \"state_change\" values when compare_duration is specified: * \"ADDED\": indicates that the asset was not present at the start of compare_duration, but present at read_time. * \"REMOVED\": indicates that the asset was present at the start of compare_duration, but not present at read_time. * \"ACTIVE\": indicates that the asset was present at both the start and the end of the time period defined by compare_duration and read_time. If compare_duration is not specified, then the only possible state_change is \"UNUSED\", which will be the state_change set for all assets present at read_time.", + "format": "google-duration", + "location": "query", + "type": "string" + }, + "fieldMask": { + "description": "A field mask to specify the ListAssetsResult fields to be listed in the response. An empty field mask will list all fields.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + }, + "filter": { + "description": "Expression that defines the filter to apply across assets. The expression is a list of zero or more restrictions combined via logical operators `AND` and `OR`. Parentheses are supported, and `OR` has higher precedence than `AND`. Restrictions have the form ` ` and may have a `-` character in front of them to indicate negation. The fields map to those defined in the Asset resource. Examples include: * name * security_center_properties.resource_name * resource_properties.a_property * security_marks.marks.marka The supported operators are: * `=` for all value types. * `\u003e`, `\u003c`, `\u003e=`, `\u003c=` for integer values. * `:`, meaning substring matching, for strings. The supported value types are: * string literals in quotes. * integer literals without quotes. * boolean literals `true` and `false` without quotes. The following are the allowed field and operator combinations: * name: `=` * update_time: `=`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` Usage: This should be milliseconds since epoch or an RFC3339 string. Examples: `update_time = \"2019-06-10T16:07:18-07:00\"` `update_time = 1560208038000` * create_time: `=`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` Usage: This should be milliseconds since epoch or an RFC3339 string. Examples: `create_time = \"2019-06-10T16:07:18-07:00\"` `create_time = 1560208038000` * iam_policy.policy_blob: `=`, `:` * resource_properties: `=`, `:`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` * security_marks.marks: `=`, `:` * security_center_properties.resource_name: `=`, `:` * security_center_properties.resource_display_name: `=`, `:` * security_center_properties.resource_type: `=`, `:` * security_center_properties.resource_parent: `=`, `:` * security_center_properties.resource_parent_display_name: `=`, `:` * security_center_properties.resource_project: `=`, `:` * security_center_properties.resource_project_display_name: `=`, `:` * security_center_properties.resource_owners: `=`, `:` For example, `resource_properties.size = 100` is a valid filter string. Use a partial match on the empty string to filter based on a property existing: `resource_properties.my_property : \"\"` Use a negated partial match on the empty string to filter based on a property not existing: `-resource_properties.my_property : \"\"`", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Expression that defines what fields and order to use for sorting. The string value should follow SQL syntax: comma separated list of fields. For example: \"name,resource_properties.a_property\". The default sorting order is ascending. To specify descending order for a field, a suffix \" desc\" should be appended to the field name. For example: \"name desc,resource_properties.a_property\". Redundant space characters in the syntax are insignificant. \"name desc,resource_properties.a_property\" and \" name desc , resource_properties.a_property \" are equivalent. The following fields are supported: name update_time resource_properties security_marks.marks security_center_properties.resource_name security_center_properties.resource_display_name security_center_properties.resource_parent security_center_properties.resource_parent_display_name security_center_properties.resource_project security_center_properties.resource_project_display_name security_center_properties.resource_type", + "location": "query", + "type": "string" + }, "pageSize": { "description": "The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.", "format": "int32", @@ -708,44 +1505,56 @@ "type": "integer" }, "pageToken": { - "description": "The value returned by the last `ListSourcesResponse`; indicates that this is a continuation of a prior `ListSources` call, and that the system should return the next page of data.", + "description": "The value returned by the last `ListAssetsResponse`; indicates that this is a continuation of a prior `ListAssets` call, and that the system should return the next page of data.", "location": "query", "type": "string" }, "parent": { - "description": "Required. Resource name of the parent of sources to list. Its format should be \"organizations/[organization_id]\".", + "description": "Required. Name of the organization assets should belong to. Its format is \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", "location": "path", - "pattern": "^organizations/[^/]+$", + "pattern": "^projects/[^/]+$", "required": true, "type": "string" + }, + "readTime": { + "description": "Time used as a reference point when filtering assets. The filter is limited to assets existing at the supplied time and their values are those at that specific time. Absence of this field will default to the API's version of NOW.", + "format": "google-datetime", + "location": "query", + "type": "string" } }, - "path": "v1/{+parent}/sources", + "path": "v1/{+parent}/assets", "response": { - "$ref": "ListSourcesResponse" + "$ref": "ListAssetsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "patch": { - "description": "Updates a source.", - "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}", + "updateSecurityMarks": { + "description": "Updates security marks.", + "flatPath": "v1/projects/{projectsId}/assets/{assetsId}/securityMarks", "httpMethod": "PATCH", - "id": "securitycenter.organizations.sources.patch", + "id": "securitycenter.projects.assets.updateSecurityMarks", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "The relative resource name of this source. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/sources/{source_id}\"", + "description": "The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: \"organizations/{organization_id}/assets/{asset_id}/securityMarks\" \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks\".", "location": "path", - "pattern": "^organizations/[^/]+/sources/[^/]+$", + "pattern": "^projects/[^/]+/assets/[^/]+/securityMarks$", "required": true, "type": "string" }, + "startTime": { + "description": "The time at which the updated SecurityMarks take effect. If not set uses current server time. Updates will be applied to the SecurityMarks that are active immediately preceding this time.", + "format": "google-datetime", + "location": "query", + "type": "string" + }, "updateMask": { - "description": "The FieldMask to use when updating the source resource. If empty all mutable fields will be updated.", + "description": "The FieldMask to use when updating the security marks resource. The field mask must not contain duplicate fields. If empty or set to \"marks\", all marks will be replaced. Individual marks can be updated using \"marks.\".", "format": "google-fieldmask", "location": "query", "type": "string" @@ -753,66 +1562,50 @@ }, "path": "v1/{+name}", "request": { - "$ref": "Source" + "$ref": "SecurityMarks" }, "response": { - "$ref": "Source" + "$ref": "SecurityMarks" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - }, - "setIamPolicy": { - "description": "Sets the access control policy on the specified Source.", - "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}:setIamPolicy", - "httpMethod": "POST", - "id": "securitycenter.organizations.sources.setIamPolicy", + } + } + }, + "sources": { + "methods": { + "list": { + "description": "Lists all sources belonging to an organization.", + "flatPath": "v1/projects/{projectsId}/sources", + "httpMethod": "GET", + "id": "securitycenter.projects.sources.list", "parameterOrder": [ - "resource" + "parent" ], "parameters": { - "resource": { - "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", - "location": "path", - "pattern": "^organizations/[^/]+/sources/[^/]+$", - "required": true, + "pageSize": { + "description": "The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The value returned by the last `ListSourcesResponse`; indicates that this is a continuation of a prior `ListSources` call, and that the system should return the next page of data.", + "location": "query", "type": "string" - } - }, - "path": "v1/{+resource}:setIamPolicy", - "request": { - "$ref": "SetIamPolicyRequest" - }, - "response": { - "$ref": "Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "testIamPermissions": { - "description": "Returns the permissions that a caller has on the specified source.", - "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}:testIamPermissions", - "httpMethod": "POST", - "id": "securitycenter.organizations.sources.testIamPermissions", - "parameterOrder": [ - "resource" - ], - "parameters": { - "resource": { - "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + }, + "parent": { + "description": "Required. Resource name of the parent of sources to list. Its format should be \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", "location": "path", - "pattern": "^organizations/[^/]+/sources/[^/]+$", + "pattern": "^projects/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+resource}:testIamPermissions", - "request": { - "$ref": "TestIamPermissionsRequest" - }, + "path": "v1/{+parent}/sources", "response": { - "$ref": "TestIamPermissionsResponse" + "$ref": "ListSourcesResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -822,52 +1615,19 @@ "resources": { "findings": { "methods": { - "create": { - "description": "Creates a finding. The corresponding source must exist for finding creation to succeed.", - "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}/findings", - "httpMethod": "POST", - "id": "securitycenter.organizations.sources.findings.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "findingId": { - "description": "Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. Resource name of the new finding's parent. Its format should be \"organizations/[organization_id]/sources/[source_id]\".", - "location": "path", - "pattern": "^organizations/[^/]+/sources/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/findings", - "request": { - "$ref": "Finding" - }, - "response": { - "$ref": "Finding" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "group": { - "description": "Filters an organization or source's findings and groups them by their specified properties. To group across all sources provide a `-` as the source id. Example: /v1/organizations/{organization_id}/sources/-/findings", - "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}/findings:group", + "description": "Filters an organization or source's findings and groups them by their specified properties. To group across all sources provide a `-` as the source id. Example: /v1/organizations/{organization_id}/sources/-/findings, /v1/folders/{folder_id}/sources/-/findings, /v1/projects/{project_id}/sources/-/findings", + "flatPath": "v1/projects/{projectsId}/sources/{sourcesId}/findings:group", "httpMethod": "POST", - "id": "securitycenter.organizations.sources.findings.group", + "id": "securitycenter.projects.sources.findings.group", "parameterOrder": [ "parent" ], "parameters": { "parent": { - "description": "Required. Name of the source to groupBy. Its format is \"organizations/[organization_id]/sources/[source_id]\". To groupBy across all sources provide a source_id of `-`. For example: organizations/{organization_id}/sources/-", + "description": "Required. Name of the source to groupBy. Its format is \"organizations/[organization_id]/sources/[source_id]\", folders/[folder_id]/sources/[source_id], or projects/[project_id]/sources/[source_id]. To groupBy across all sources provide a source_id of `-`. For example: organizations/{organization_id}/sources/-, folders/{folder_id}/sources/-, or projects/{project_id}/sources/-", "location": "path", - "pattern": "^organizations/[^/]+/sources/[^/]+$", + "pattern": "^projects/[^/]+/sources/[^/]+$", "required": true, "type": "string" } @@ -885,9 +1645,9 @@ }, "list": { "description": "Lists an organization or source's findings. To list across all sources provide a `-` as the source id. Example: /v1/organizations/{organization_id}/sources/-/findings", - "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}/findings", + "flatPath": "v1/projects/{projectsId}/sources/{sourcesId}/findings", "httpMethod": "GET", - "id": "securitycenter.organizations.sources.findings.list", + "id": "securitycenter.projects.sources.findings.list", "parameterOrder": [ "parent" ], @@ -926,9 +1686,9 @@ "type": "string" }, "parent": { - "description": "Required. Name of the source the findings belong to. Its format is \"organizations/[organization_id]/sources/[source_id]\". To list across all sources provide a source_id of `-`. For example: organizations/{organization_id}/sources/-", + "description": "Required. Name of the source the findings belong to. Its format is \"organizations/[organization_id]/sources/[source_id], folders/[folder_id]/sources/[source_id], or projects/[project_id]/sources/[source_id]\". To list across all sources provide a source_id of `-`. For example: organizations/{organization_id}/sources/-, folders/{folder_id}/sources/- or projects/{projects_id}/sources/-", "location": "path", - "pattern": "^organizations/[^/]+/sources/[^/]+$", + "pattern": "^projects/[^/]+/sources/[^/]+$", "required": true, "type": "string" }, @@ -949,9 +1709,9 @@ }, "patch": { "description": "Creates or updates a finding. The corresponding source must exist for a finding creation to succeed.", - "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}/findings/{findingsId}", + "flatPath": "v1/projects/{projectsId}/sources/{sourcesId}/findings/{findingsId}", "httpMethod": "PATCH", - "id": "securitycenter.organizations.sources.findings.patch", + "id": "securitycenter.projects.sources.findings.patch", "parameterOrder": [ "name" ], @@ -959,7 +1719,7 @@ "name": { "description": "The relative resource name of this finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}\"", "location": "path", - "pattern": "^organizations/[^/]+/sources/[^/]+/findings/[^/]+$", + "pattern": "^projects/[^/]+/sources/[^/]+/findings/[^/]+$", "required": true, "type": "string" }, @@ -983,9 +1743,9 @@ }, "setState": { "description": "Updates the state of a finding.", - "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}/findings/{findingsId}:setState", + "flatPath": "v1/projects/{projectsId}/sources/{sourcesId}/findings/{findingsId}:setState", "httpMethod": "POST", - "id": "securitycenter.organizations.sources.findings.setState", + "id": "securitycenter.projects.sources.findings.setState", "parameterOrder": [ "name" ], @@ -993,7 +1753,7 @@ "name": { "description": "Required. The relative resource name of the finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/sources/{source_id}/finding/{finding_id}\".", "location": "path", - "pattern": "^organizations/[^/]+/sources/[^/]+/findings/[^/]+$", + "pattern": "^projects/[^/]+/sources/[^/]+/findings/[^/]+$", "required": true, "type": "string" } @@ -1011,9 +1771,9 @@ }, "updateSecurityMarks": { "description": "Updates security marks.", - "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}/findings/{findingsId}/securityMarks", + "flatPath": "v1/projects/{projectsId}/sources/{sourcesId}/findings/{findingsId}/securityMarks", "httpMethod": "PATCH", - "id": "securitycenter.organizations.sources.findings.updateSecurityMarks", + "id": "securitycenter.projects.sources.findings.updateSecurityMarks", "parameterOrder": [ "name" ], @@ -1021,7 +1781,7 @@ "name": { "description": "The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: \"organizations/{organization_id}/assets/{asset_id}/securityMarks\" \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks\".", "location": "path", - "pattern": "^organizations/[^/]+/sources/[^/]+/findings/[^/]+/securityMarks$", + "pattern": "^projects/[^/]+/sources/[^/]+/findings/[^/]+/securityMarks$", "required": true, "type": "string" }, @@ -1056,7 +1816,7 @@ } } }, - "revision": "20200918", + "revision": "20201112", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Asset": { @@ -1103,6 +1863,13 @@ "description": "The configuration used for Asset Discovery runs.", "id": "AssetDiscoveryConfig", "properties": { + "folderIds": { + "description": "The folder ids to use for filtering asset discovery. It consists of only digits, e.g., 756619654966.", + "items": { + "type": "string" + }, + "type": "array" + }, "inclusionMode": { "description": "The mode to use for filtering asset discovery.", "enum": [ @@ -1289,6 +2056,21 @@ }, "type": "object" }, + "Folder": { + "description": "Message that contains the resource name and display name of a folder resource.", + "id": "Folder", + "properties": { + "resourceFolder": { + "description": "Full resource name of this folder. See: https://cloud.google.com/apis/design/resource_names#full_resource_name", + "type": "string" + }, + "resourceFolderDisplayName": { + "description": "The user defined display name for this folder.", + "type": "string" + } + }, + "type": "object" + }, "GetIamPolicyRequest": { "description": "Request message for `GetIamPolicy` method.", "id": "GetIamPolicyRequest", @@ -1335,6 +2117,14 @@ "description": "Information related to the Google Cloud resource.", "id": "GoogleCloudSecuritycenterV1Resource", "properties": { + "folders": { + "description": "Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.", + "items": { + "$ref": "Folder" + }, + "readOnly": true, + "type": "array" + }, "name": { "description": "The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name", "type": "string" @@ -1495,6 +2285,21 @@ }, "type": "object" }, + "GoogleCloudSecuritycenterV1p1beta1Folder": { + "description": "Message that contains the resource name and display name of a folder resource.", + "id": "GoogleCloudSecuritycenterV1p1beta1Folder", + "properties": { + "resourceFolder": { + "description": "Full resource name of this folder. See: https://cloud.google.com/apis/design/resource_names#full_resource_name", + "type": "string" + }, + "resourceFolderDisplayName": { + "description": "The user defined display name for this folder.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudSecuritycenterV1p1beta1NotificationMessage": { "description": "Security Command Center's Notification", "id": "GoogleCloudSecuritycenterV1p1beta1NotificationMessage", @@ -1518,6 +2323,14 @@ "description": "Information related to the Google Cloud resource.", "id": "GoogleCloudSecuritycenterV1p1beta1Resource", "properties": { + "folders": { + "description": "Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.", + "items": { + "$ref": "GoogleCloudSecuritycenterV1p1beta1Folder" + }, + "readOnly": true, + "type": "array" + }, "name": { "description": "The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name", "type": "string" @@ -2029,6 +2842,13 @@ "description": "Information related to the Google Cloud resource that is associated with this finding. LINT.IfChange", "id": "Resource", "properties": { + "folders": { + "description": "Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.", + "items": { + "$ref": "Folder" + }, + "type": "array" + }, "name": { "description": "The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name", "type": "string" @@ -2062,6 +2882,13 @@ "description": "Security Command Center managed properties. These properties are managed by Security Command Center and cannot be modified by the user.", "id": "SecurityCenterProperties", "properties": { + "folders": { + "description": "Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.", + "items": { + "$ref": "Folder" + }, + "type": "array" + }, "resourceDisplayName": { "description": "The user defined display name for this resource.", "type": "string" diff --git a/securitycenter/v1/securitycenter-gen.go b/securitycenter/v1/securitycenter-gen.go index 90e937f3126..cdc5c07079c 100644 --- a/securitycenter/v1/securitycenter-gen.go +++ b/securitycenter/v1/securitycenter-gen.go @@ -116,7 +116,9 @@ func New(client *http.Client) (*Service, error) { return nil, errors.New("client is nil") } s := &Service{client: client, BasePath: basePath} + s.Folders = NewFoldersService(s) s.Organizations = NewOrganizationsService(s) + s.Projects = NewProjectsService(s) return s, nil } @@ -125,7 +127,11 @@ type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment + Folders *FoldersService + Organizations *OrganizationsService + + Projects *ProjectsService } func (s *Service) userAgent() string { @@ -135,6 +141,51 @@ func (s *Service) userAgent() string { return googleapi.UserAgent + " " + s.UserAgent } +func NewFoldersService(s *Service) *FoldersService { + rs := &FoldersService{s: s} + rs.Assets = NewFoldersAssetsService(s) + rs.Sources = NewFoldersSourcesService(s) + return rs +} + +type FoldersService struct { + s *Service + + Assets *FoldersAssetsService + + Sources *FoldersSourcesService +} + +func NewFoldersAssetsService(s *Service) *FoldersAssetsService { + rs := &FoldersAssetsService{s: s} + return rs +} + +type FoldersAssetsService struct { + s *Service +} + +func NewFoldersSourcesService(s *Service) *FoldersSourcesService { + rs := &FoldersSourcesService{s: s} + rs.Findings = NewFoldersSourcesFindingsService(s) + return rs +} + +type FoldersSourcesService struct { + s *Service + + Findings *FoldersSourcesFindingsService +} + +func NewFoldersSourcesFindingsService(s *Service) *FoldersSourcesFindingsService { + rs := &FoldersSourcesFindingsService{s: s} + return rs +} + +type FoldersSourcesFindingsService struct { + s *Service +} + func NewOrganizationsService(s *Service) *OrganizationsService { rs := &OrganizationsService{s: s} rs.Assets = NewOrganizationsAssetsService(s) @@ -204,6 +255,51 @@ type OrganizationsSourcesFindingsService struct { s *Service } +func NewProjectsService(s *Service) *ProjectsService { + rs := &ProjectsService{s: s} + rs.Assets = NewProjectsAssetsService(s) + rs.Sources = NewProjectsSourcesService(s) + return rs +} + +type ProjectsService struct { + s *Service + + Assets *ProjectsAssetsService + + Sources *ProjectsSourcesService +} + +func NewProjectsAssetsService(s *Service) *ProjectsAssetsService { + rs := &ProjectsAssetsService{s: s} + return rs +} + +type ProjectsAssetsService struct { + s *Service +} + +func NewProjectsSourcesService(s *Service) *ProjectsSourcesService { + rs := &ProjectsSourcesService{s: s} + rs.Findings = NewProjectsSourcesFindingsService(s) + return rs +} + +type ProjectsSourcesService struct { + s *Service + + Findings *ProjectsSourcesFindingsService +} + +func NewProjectsSourcesFindingsService(s *Service) *ProjectsSourcesFindingsService { + rs := &ProjectsSourcesFindingsService{s: s} + return rs +} + +type ProjectsSourcesFindingsService struct { + s *Service +} + // Asset: Security Command Center representation of a Google Cloud // resource. The Asset is a Security Command Center resource that // captures information about a single Google Cloud resource. All @@ -270,6 +366,10 @@ func (s *Asset) MarshalJSON() ([]byte, error) { // AssetDiscoveryConfig: The configuration used for Asset Discovery // runs. type AssetDiscoveryConfig struct { + // FolderIds: The folder ids to use for filtering asset discovery. It + // consists of only digits, e.g., 756619654966. + FolderIds []string `json:"folderIds,omitempty"` + // InclusionMode: The mode to use for filtering asset discovery. // // Possible values: @@ -285,7 +385,7 @@ type AssetDiscoveryConfig struct { // ProjectIds: The project ids to use for filtering asset discovery. ProjectIds []string `json:"projectIds,omitempty"` - // ForceSendFields is a list of field names (e.g. "InclusionMode") to + // ForceSendFields is a list of field names (e.g. "FolderIds") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -293,10 +393,10 @@ type AssetDiscoveryConfig struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "InclusionMode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "FolderIds") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` @@ -648,6 +748,41 @@ func (s *Finding) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Folder: Message that contains the resource name and display name of a +// folder resource. +type Folder struct { + // ResourceFolder: Full resource name of this folder. See: + // https://cloud.google.com/apis/design/resource_names#full_resource_name + ResourceFolder string `json:"resourceFolder,omitempty"` + + // ResourceFolderDisplayName: The user defined display name for this + // folder. + ResourceFolderDisplayName string `json:"resourceFolderDisplayName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ResourceFolder") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ResourceFolder") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *Folder) MarshalJSON() ([]byte, error) { + type NoMethod Folder + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GetIamPolicyRequest: Request message for `GetIamPolicy` method. type GetIamPolicyRequest struct { // Options: OPTIONAL: A `GetPolicyOptions` object for specifying options @@ -755,6 +890,11 @@ func (s *GoogleCloudSecuritycenterV1NotificationMessage) MarshalJSON() ([]byte, // GoogleCloudSecuritycenterV1Resource: Information related to the // Google Cloud resource. type GoogleCloudSecuritycenterV1Resource struct { + // Folders: Output only. Contains a Folder message for each folder in + // the assets ancestry. The first folder is the deepest nested folder, + // and the last folder is the folder directly under the Organization. + Folders []*Folder `json:"folders,omitempty"` + // Name: The full resource name of the resource. See: // https://cloud.google.com/apis/design/resource_names#full_resource_name Name string `json:"name,omitempty"` @@ -773,7 +913,7 @@ type GoogleCloudSecuritycenterV1Resource struct { // resource belongs to. ProjectDisplayName string `json:"projectDisplayName,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to + // ForceSendFields is a list of field names (e.g. "Folders") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -781,8 +921,8 @@ type GoogleCloudSecuritycenterV1Resource struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Folders") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -980,6 +1120,41 @@ func (s *GoogleCloudSecuritycenterV1p1beta1Finding) MarshalJSON() ([]byte, error return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudSecuritycenterV1p1beta1Folder: Message that contains the +// resource name and display name of a folder resource. +type GoogleCloudSecuritycenterV1p1beta1Folder struct { + // ResourceFolder: Full resource name of this folder. See: + // https://cloud.google.com/apis/design/resource_names#full_resource_name + ResourceFolder string `json:"resourceFolder,omitempty"` + + // ResourceFolderDisplayName: The user defined display name for this + // folder. + ResourceFolderDisplayName string `json:"resourceFolderDisplayName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ResourceFolder") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ResourceFolder") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudSecuritycenterV1p1beta1Folder) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudSecuritycenterV1p1beta1Folder + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudSecuritycenterV1p1beta1NotificationMessage: Security // Command Center's Notification type GoogleCloudSecuritycenterV1p1beta1NotificationMessage struct { @@ -1020,6 +1195,11 @@ func (s *GoogleCloudSecuritycenterV1p1beta1NotificationMessage) MarshalJSON() ([ // GoogleCloudSecuritycenterV1p1beta1Resource: Information related to // the Google Cloud resource. type GoogleCloudSecuritycenterV1p1beta1Resource struct { + // Folders: Output only. Contains a Folder message for each folder in + // the assets ancestry. The first folder is the deepest nested folder, + // and the last folder is the folder directly under the Organization. + Folders []*GoogleCloudSecuritycenterV1p1beta1Folder `json:"folders,omitempty"` + // Name: The full resource name of the resource. See: // https://cloud.google.com/apis/design/resource_names#full_resource_name Name string `json:"name,omitempty"` @@ -1038,7 +1218,7 @@ type GoogleCloudSecuritycenterV1p1beta1Resource struct { // resource belongs to. ProjectDisplayName string `json:"projectDisplayName,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to + // ForceSendFields is a list of field names (e.g. "Folders") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -1046,8 +1226,8 @@ type GoogleCloudSecuritycenterV1p1beta1Resource struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Folders") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -2066,6 +2246,11 @@ func (s *Policy) MarshalJSON() ([]byte, error) { // Resource: Information related to the Google Cloud resource that is // associated with this finding. LINT.IfChange type Resource struct { + // Folders: Contains a Folder message for each folder in the assets + // ancestry. The first folder is the deepest nested folder, and the last + // folder is the folder directly under the Organization. + Folders []*Folder `json:"folders,omitempty"` + // Name: The full resource name of the resource. See: // https://cloud.google.com/apis/design/resource_names#full_resource_name Name string `json:"name,omitempty"` @@ -2084,7 +2269,7 @@ type Resource struct { // belongs to. ProjectName string `json:"projectName,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to + // ForceSendFields is a list of field names (e.g. "Folders") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -2092,8 +2277,8 @@ type Resource struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Folders") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -2116,6 +2301,11 @@ type RunAssetDiscoveryRequest struct { // These properties are managed by Security Command Center and cannot be // modified by the user. type SecurityCenterProperties struct { + // Folders: Contains a Folder message for each folder in the assets + // ancestry. The first folder is the deepest nested folder, and the last + // folder is the folder directly under the Organization. + Folders []*Folder `json:"folders,omitempty"` + // ResourceDisplayName: The user defined display name for this resource. ResourceDisplayName string `json:"resourceDisplayName,omitempty"` @@ -2152,21 +2342,20 @@ type SecurityCenterProperties struct { // producer of the resource and is immutable after create time. ResourceType string `json:"resourceType,omitempty"` - // ForceSendFields is a list of field names (e.g. "ResourceDisplayName") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "Folders") to + // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ResourceDisplayName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "Folders") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } @@ -2501,93 +2690,87 @@ func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// method id "securitycenter.organizations.getOrganizationSettings": +// method id "securitycenter.folders.assets.group": -type OrganizationsGetOrganizationSettingsCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type FoldersAssetsGroupCall struct { + s *Service + parent string + groupassetsrequest *GroupAssetsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetOrganizationSettings: Gets the settings for an organization. -func (r *OrganizationsService) GetOrganizationSettings(name string) *OrganizationsGetOrganizationSettingsCall { - c := &OrganizationsGetOrganizationSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// Group: Filters an organization's assets and groups them by their +// specified properties. +func (r *FoldersAssetsService) Group(parent string, groupassetsrequest *GroupAssetsRequest) *FoldersAssetsGroupCall { + c := &FoldersAssetsGroupCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.groupassetsrequest = groupassetsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsGetOrganizationSettingsCall) Fields(s ...googleapi.Field) *OrganizationsGetOrganizationSettingsCall { +func (c *FoldersAssetsGroupCall) Fields(s ...googleapi.Field) *FoldersAssetsGroupCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsGetOrganizationSettingsCall) IfNoneMatch(entityTag string) *OrganizationsGetOrganizationSettingsCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsGetOrganizationSettingsCall) Context(ctx context.Context) *OrganizationsGetOrganizationSettingsCall { +func (c *FoldersAssetsGroupCall) Context(ctx context.Context) *FoldersAssetsGroupCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsGetOrganizationSettingsCall) Header() http.Header { +func (c *FoldersAssetsGroupCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsGetOrganizationSettingsCall) doRequest(alt string) (*http.Response, error) { +func (c *FoldersAssetsGroupCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.groupassetsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/assets:group") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "securitycenter.organizations.getOrganizationSettings" call. -// Exactly one of *OrganizationSettings or error will be non-nil. Any +// Do executes the "securitycenter.folders.assets.group" call. +// Exactly one of *GroupAssetsResponse or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either -// *OrganizationSettings.ServerResponse.Header or (if a response was +// *GroupAssetsResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsGetOrganizationSettingsCall) Do(opts ...googleapi.CallOption) (*OrganizationSettings, error) { +func (c *FoldersAssetsGroupCall) Do(opts ...googleapi.CallOption) (*GroupAssetsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2606,7 +2789,7 @@ func (c *OrganizationsGetOrganizationSettingsCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &OrganizationSettings{ + ret := &GroupAssetsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2618,25 +2801,28 @@ func (c *OrganizationsGetOrganizationSettingsCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Gets the settings for an organization.", - // "flatPath": "v1/organizations/{organizationsId}/organizationSettings", - // "httpMethod": "GET", - // "id": "securitycenter.organizations.getOrganizationSettings", + // "description": "Filters an organization's assets and groups them by their specified properties.", + // "flatPath": "v1/folders/{foldersId}/assets:group", + // "httpMethod": "POST", + // "id": "securitycenter.folders.assets.group", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. Name of the organization to get organization settings for. Its format is \"organizations/[organization_id]/organizationSettings\".", + // "parent": { + // "description": "Required. Name of the organization to groupBy. Its format is \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", // "location": "path", - // "pattern": "^organizations/[^/]+/organizationSettings$", + // "pattern": "^folders/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/assets:group", + // "request": { + // "$ref": "GroupAssetsRequest" + // }, // "response": { - // "$ref": "OrganizationSettings" + // "$ref": "GroupAssetsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -2645,94 +2831,237 @@ func (c *OrganizationsGetOrganizationSettingsCall) Do(opts ...googleapi.CallOpti } -// method id "securitycenter.organizations.updateOrganizationSettings": - -type OrganizationsUpdateOrganizationSettingsCall struct { - s *Service - name string - organizationsettings *OrganizationSettings - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *FoldersAssetsGroupCall) Pages(ctx context.Context, f func(*GroupAssetsResponse) error) error { + c.ctx_ = ctx + defer func(pt string) { c.groupassetsrequest.PageToken = pt }(c.groupassetsrequest.PageToken) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.groupassetsrequest.PageToken = x.NextPageToken + } } -// UpdateOrganizationSettings: Updates an organization's settings. -func (r *OrganizationsService) UpdateOrganizationSettings(name string, organizationsettings *OrganizationSettings) *OrganizationsUpdateOrganizationSettingsCall { - c := &OrganizationsUpdateOrganizationSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.organizationsettings = organizationsettings - return c +// method id "securitycenter.folders.assets.list": + +type FoldersAssetsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// UpdateMask sets the optional parameter "updateMask": The FieldMask to -// use when updating the settings resource. If empty all mutable fields -// will be updated. -func (c *OrganizationsUpdateOrganizationSettingsCall) UpdateMask(updateMask string) *OrganizationsUpdateOrganizationSettingsCall { - c.urlParams_.Set("updateMask", updateMask) +// List: Lists an organization's assets. +func (r *FoldersAssetsService) List(parent string) *FoldersAssetsListCall { + c := &FoldersAssetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// CompareDuration sets the optional parameter "compareDuration": When +// compare_duration is set, the ListAssetsResult's "state_change" +// attribute is updated to indicate whether the asset was added, +// removed, or remained present during the compare_duration period of +// time that precedes the read_time. This is the time between (read_time +// - compare_duration) and read_time. The state_change value is derived +// based on the presence of the asset at the two points in time. +// Intermediate state changes between the two times don't affect the +// result. For example, the results aren't affected if the asset is +// removed and re-created again. Possible "state_change" values when +// compare_duration is specified: * "ADDED": indicates that the asset +// was not present at the start of compare_duration, but present at +// read_time. * "REMOVED": indicates that the asset was present at the +// start of compare_duration, but not present at read_time. * "ACTIVE": +// indicates that the asset was present at both the start and the end of +// the time period defined by compare_duration and read_time. If +// compare_duration is not specified, then the only possible +// state_change is "UNUSED", which will be the state_change set for all +// assets present at read_time. +func (c *FoldersAssetsListCall) CompareDuration(compareDuration string) *FoldersAssetsListCall { + c.urlParams_.Set("compareDuration", compareDuration) + return c +} + +// FieldMask sets the optional parameter "fieldMask": A field mask to +// specify the ListAssetsResult fields to be listed in the response. An +// empty field mask will list all fields. +func (c *FoldersAssetsListCall) FieldMask(fieldMask string) *FoldersAssetsListCall { + c.urlParams_.Set("fieldMask", fieldMask) + return c +} + +// Filter sets the optional parameter "filter": Expression that defines +// the filter to apply across assets. The expression is a list of zero +// or more restrictions combined via logical operators `AND` and `OR`. +// Parentheses are supported, and `OR` has higher precedence than `AND`. +// Restrictions have the form ` ` and may have a `-` character in front +// of them to indicate negation. The fields map to those defined in the +// Asset resource. Examples include: * name * +// security_center_properties.resource_name * +// resource_properties.a_property * security_marks.marks.marka The +// supported operators are: * `=` for all value types. * `>`, `<`, `>=`, +// `<=` for integer values. * `:`, meaning substring matching, for +// strings. The supported value types are: * string literals in quotes. +// * integer literals without quotes. * boolean literals `true` and +// `false` without quotes. The following are the allowed field and +// operator combinations: * name: `=` * update_time: `=`, `>`, `<`, +// `>=`, `<=` Usage: This should be milliseconds since epoch or an +// RFC3339 string. Examples: `update_time = "2019-06-10T16:07:18-07:00" +// `update_time = 1560208038000` * create_time: `=`, `>`, `<`, `>=`, +// `<=` Usage: This should be milliseconds since epoch or an RFC3339 +// string. Examples: `create_time = "2019-06-10T16:07:18-07:00" +// `create_time = 1560208038000` * iam_policy.policy_blob: `=`, `:` * +// resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * +// security_marks.marks: `=`, `:` * +// security_center_properties.resource_name: `=`, `:` * +// security_center_properties.resource_display_name: `=`, `:` * +// security_center_properties.resource_type: `=`, `:` * +// security_center_properties.resource_parent: `=`, `:` * +// security_center_properties.resource_parent_display_name: `=`, `:` * +// security_center_properties.resource_project: `=`, `:` * +// security_center_properties.resource_project_display_name: `=`, `:` * +// security_center_properties.resource_owners: `=`, `:` For example, +// `resource_properties.size = 100` is a valid filter string. Use a +// partial match on the empty string to filter based on a property +// existing: `resource_properties.my_property : "" Use a negated +// partial match on the empty string to filter based on a property not +// existing: `-resource_properties.my_property : "" +func (c *FoldersAssetsListCall) Filter(filter string) *FoldersAssetsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Expression that +// defines what fields and order to use for sorting. The string value +// should follow SQL syntax: comma separated list of fields. For +// example: "name,resource_properties.a_property". The default sorting +// order is ascending. To specify descending order for a field, a suffix +// " desc" should be appended to the field name. For example: "name +// desc,resource_properties.a_property". Redundant space characters in +// the syntax are insignificant. "name +// desc,resource_properties.a_property" and " name desc , +// resource_properties.a_property " are equivalent. The following fields +// are supported: name update_time resource_properties +// security_marks.marks security_center_properties.resource_name +// security_center_properties.resource_display_name +// security_center_properties.resource_parent +// security_center_properties.resource_parent_display_name +// security_center_properties.resource_project +// security_center_properties.resource_project_display_name +// security_center_properties.resource_type +func (c *FoldersAssetsListCall) OrderBy(orderBy string) *FoldersAssetsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return in a single response. Default is 10, minimum is +// 1, maximum is 1000. +func (c *FoldersAssetsListCall) PageSize(pageSize int64) *FoldersAssetsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value returned +// by the last `ListAssetsResponse`; indicates that this is a +// continuation of a prior `ListAssets` call, and that the system should +// return the next page of data. +func (c *FoldersAssetsListCall) PageToken(pageToken string) *FoldersAssetsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadTime sets the optional parameter "readTime": Time used as a +// reference point when filtering assets. The filter is limited to +// assets existing at the supplied time and their values are those at +// that specific time. Absence of this field will default to the API's +// version of NOW. +func (c *FoldersAssetsListCall) ReadTime(readTime string) *FoldersAssetsListCall { + c.urlParams_.Set("readTime", readTime) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsUpdateOrganizationSettingsCall) Fields(s ...googleapi.Field) *OrganizationsUpdateOrganizationSettingsCall { +func (c *FoldersAssetsListCall) Fields(s ...googleapi.Field) *FoldersAssetsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *FoldersAssetsListCall) IfNoneMatch(entityTag string) *FoldersAssetsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsUpdateOrganizationSettingsCall) Context(ctx context.Context) *OrganizationsUpdateOrganizationSettingsCall { +func (c *FoldersAssetsListCall) Context(ctx context.Context) *FoldersAssetsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsUpdateOrganizationSettingsCall) Header() http.Header { +func (c *FoldersAssetsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsUpdateOrganizationSettingsCall) doRequest(alt string) (*http.Response, error) { +func (c *FoldersAssetsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.organizationsettings) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/assets") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "securitycenter.organizations.updateOrganizationSettings" call. -// Exactly one of *OrganizationSettings or error will be non-nil. Any +// Do executes the "securitycenter.folders.assets.list" call. +// Exactly one of *ListAssetsResponse or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either -// *OrganizationSettings.ServerResponse.Header or (if a response was +// *ListAssetsResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsUpdateOrganizationSettingsCall) Do(opts ...googleapi.CallOption) (*OrganizationSettings, error) { +func (c *FoldersAssetsListCall) Do(opts ...googleapi.CallOption) (*ListAssetsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2751,7 +3080,7 @@ func (c *OrganizationsUpdateOrganizationSettingsCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &OrganizationSettings{ + ret := &ListAssetsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2763,34 +3092,64 @@ func (c *OrganizationsUpdateOrganizationSettingsCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Updates an organization's settings.", - // "flatPath": "v1/organizations/{organizationsId}/organizationSettings", - // "httpMethod": "PATCH", - // "id": "securitycenter.organizations.updateOrganizationSettings", + // "description": "Lists an organization's assets.", + // "flatPath": "v1/folders/{foldersId}/assets", + // "httpMethod": "GET", + // "id": "securitycenter.folders.assets.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The relative resource name of the settings. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/organizationSettings\".", + // "compareDuration": { + // "description": "When compare_duration is set, the ListAssetsResult's \"state_change\" attribute is updated to indicate whether the asset was added, removed, or remained present during the compare_duration period of time that precedes the read_time. This is the time between (read_time - compare_duration) and read_time. The state_change value is derived based on the presence of the asset at the two points in time. Intermediate state changes between the two times don't affect the result. For example, the results aren't affected if the asset is removed and re-created again. Possible \"state_change\" values when compare_duration is specified: * \"ADDED\": indicates that the asset was not present at the start of compare_duration, but present at read_time. * \"REMOVED\": indicates that the asset was present at the start of compare_duration, but not present at read_time. * \"ACTIVE\": indicates that the asset was present at both the start and the end of the time period defined by compare_duration and read_time. If compare_duration is not specified, then the only possible state_change is \"UNUSED\", which will be the state_change set for all assets present at read_time.", + // "format": "google-duration", + // "location": "query", + // "type": "string" + // }, + // "fieldMask": { + // "description": "A field mask to specify the ListAssetsResult fields to be listed in the response. An empty field mask will list all fields.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // }, + // "filter": { + // "description": "Expression that defines the filter to apply across assets. The expression is a list of zero or more restrictions combined via logical operators `AND` and `OR`. Parentheses are supported, and `OR` has higher precedence than `AND`. Restrictions have the form ` ` and may have a `-` character in front of them to indicate negation. The fields map to those defined in the Asset resource. Examples include: * name * security_center_properties.resource_name * resource_properties.a_property * security_marks.marks.marka The supported operators are: * `=` for all value types. * `\u003e`, `\u003c`, `\u003e=`, `\u003c=` for integer values. * `:`, meaning substring matching, for strings. The supported value types are: * string literals in quotes. * integer literals without quotes. * boolean literals `true` and `false` without quotes. The following are the allowed field and operator combinations: * name: `=` * update_time: `=`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` Usage: This should be milliseconds since epoch or an RFC3339 string. Examples: `update_time = \"2019-06-10T16:07:18-07:00\"` `update_time = 1560208038000` * create_time: `=`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` Usage: This should be milliseconds since epoch or an RFC3339 string. Examples: `create_time = \"2019-06-10T16:07:18-07:00\"` `create_time = 1560208038000` * iam_policy.policy_blob: `=`, `:` * resource_properties: `=`, `:`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` * security_marks.marks: `=`, `:` * security_center_properties.resource_name: `=`, `:` * security_center_properties.resource_display_name: `=`, `:` * security_center_properties.resource_type: `=`, `:` * security_center_properties.resource_parent: `=`, `:` * security_center_properties.resource_parent_display_name: `=`, `:` * security_center_properties.resource_project: `=`, `:` * security_center_properties.resource_project_display_name: `=`, `:` * security_center_properties.resource_owners: `=`, `:` For example, `resource_properties.size = 100` is a valid filter string. Use a partial match on the empty string to filter based on a property existing: `resource_properties.my_property : \"\"` Use a negated partial match on the empty string to filter based on a property not existing: `-resource_properties.my_property : \"\"`", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Expression that defines what fields and order to use for sorting. The string value should follow SQL syntax: comma separated list of fields. For example: \"name,resource_properties.a_property\". The default sorting order is ascending. To specify descending order for a field, a suffix \" desc\" should be appended to the field name. For example: \"name desc,resource_properties.a_property\". Redundant space characters in the syntax are insignificant. \"name desc,resource_properties.a_property\" and \" name desc , resource_properties.a_property \" are equivalent. The following fields are supported: name update_time resource_properties security_marks.marks security_center_properties.resource_name security_center_properties.resource_display_name security_center_properties.resource_parent security_center_properties.resource_parent_display_name security_center_properties.resource_project security_center_properties.resource_project_display_name security_center_properties.resource_type", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The value returned by the last `ListAssetsResponse`; indicates that this is a continuation of a prior `ListAssets` call, and that the system should return the next page of data.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Name of the organization assets should belong to. Its format is \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", // "location": "path", - // "pattern": "^organizations/[^/]+/organizationSettings$", + // "pattern": "^folders/[^/]+$", // "required": true, // "type": "string" // }, - // "updateMask": { - // "description": "The FieldMask to use when updating the settings resource. If empty all mutable fields will be updated.", - // "format": "google-fieldmask", + // "readTime": { + // "description": "Time used as a reference point when filtering assets. The filter is limited to assets existing at the supplied time and their values are those at that specific time. Absence of this field will default to the API's version of NOW.", + // "format": "google-datetime", // "location": "query", // "type": "string" // } // }, - // "path": "v1/{+name}", - // "request": { - // "$ref": "OrganizationSettings" - // }, + // "path": "v1/{+parent}/assets", // "response": { - // "$ref": "OrganizationSettings" + // "$ref": "ListAssetsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -2799,30 +3158,68 @@ func (c *OrganizationsUpdateOrganizationSettingsCall) Do(opts ...googleapi.CallO } -// method id "securitycenter.organizations.assets.group": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *FoldersAssetsListCall) Pages(ctx context.Context, f func(*ListAssetsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type OrganizationsAssetsGroupCall struct { - s *Service - parent string - groupassetsrequest *GroupAssetsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "securitycenter.folders.assets.updateSecurityMarks": + +type FoldersAssetsUpdateSecurityMarksCall struct { + s *Service + name string + securitymarks *SecurityMarks + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Group: Filters an organization's assets and groups them by their -// specified properties. -func (r *OrganizationsAssetsService) Group(parent string, groupassetsrequest *GroupAssetsRequest) *OrganizationsAssetsGroupCall { - c := &OrganizationsAssetsGroupCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.groupassetsrequest = groupassetsrequest +// UpdateSecurityMarks: Updates security marks. +func (r *FoldersAssetsService) UpdateSecurityMarks(name string, securitymarks *SecurityMarks) *FoldersAssetsUpdateSecurityMarksCall { + c := &FoldersAssetsUpdateSecurityMarksCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.securitymarks = securitymarks return c } -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *OrganizationsAssetsGroupCall) Fields(s ...googleapi.Field) *OrganizationsAssetsGroupCall { +// StartTime sets the optional parameter "startTime": The time at which +// the updated SecurityMarks take effect. If not set uses current server +// time. Updates will be applied to the SecurityMarks that are active +// immediately preceding this time. +func (c *FoldersAssetsUpdateSecurityMarksCall) StartTime(startTime string) *FoldersAssetsUpdateSecurityMarksCall { + c.urlParams_.Set("startTime", startTime) + return c +} + +// UpdateMask sets the optional parameter "updateMask": The FieldMask to +// use when updating the security marks resource. The field mask must +// not contain duplicate fields. If empty or set to "marks", all marks +// will be replaced. Individual marks can be updated using "marks.". +func (c *FoldersAssetsUpdateSecurityMarksCall) UpdateMask(updateMask string) *FoldersAssetsUpdateSecurityMarksCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *FoldersAssetsUpdateSecurityMarksCall) Fields(s ...googleapi.Field) *FoldersAssetsUpdateSecurityMarksCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -2830,56 +3227,56 @@ func (c *OrganizationsAssetsGroupCall) Fields(s ...googleapi.Field) *Organizatio // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsAssetsGroupCall) Context(ctx context.Context) *OrganizationsAssetsGroupCall { +func (c *FoldersAssetsUpdateSecurityMarksCall) Context(ctx context.Context) *FoldersAssetsUpdateSecurityMarksCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsAssetsGroupCall) Header() http.Header { +func (c *FoldersAssetsUpdateSecurityMarksCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsAssetsGroupCall) doRequest(alt string) (*http.Response, error) { +func (c *FoldersAssetsUpdateSecurityMarksCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.groupassetsrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.securitymarks) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/assets:group") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "securitycenter.organizations.assets.group" call. -// Exactly one of *GroupAssetsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GroupAssetsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "securitycenter.folders.assets.updateSecurityMarks" call. +// Exactly one of *SecurityMarks or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *SecurityMarks.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsAssetsGroupCall) Do(opts ...googleapi.CallOption) (*GroupAssetsResponse, error) { +func (c *FoldersAssetsUpdateSecurityMarksCall) Do(opts ...googleapi.CallOption) (*SecurityMarks, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2898,7 +3295,7 @@ func (c *OrganizationsAssetsGroupCall) Do(opts ...googleapi.CallOption) (*GroupA if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GroupAssetsResponse{ + ret := &SecurityMarks{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2910,28 +3307,40 @@ func (c *OrganizationsAssetsGroupCall) Do(opts ...googleapi.CallOption) (*GroupA } return ret, nil // { - // "description": "Filters an organization's assets and groups them by their specified properties.", - // "flatPath": "v1/organizations/{organizationsId}/assets:group", - // "httpMethod": "POST", - // "id": "securitycenter.organizations.assets.group", + // "description": "Updates security marks.", + // "flatPath": "v1/folders/{foldersId}/assets/{assetsId}/securityMarks", + // "httpMethod": "PATCH", + // "id": "securitycenter.folders.assets.updateSecurityMarks", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. Name of the organization to groupBy. Its format is \"organizations/[organization_id]\".", + // "name": { + // "description": "The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: \"organizations/{organization_id}/assets/{asset_id}/securityMarks\" \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks\".", // "location": "path", - // "pattern": "^organizations/[^/]+$", + // "pattern": "^folders/[^/]+/assets/[^/]+/securityMarks$", // "required": true, // "type": "string" + // }, + // "startTime": { + // "description": "The time at which the updated SecurityMarks take effect. If not set uses current server time. Updates will be applied to the SecurityMarks that are active immediately preceding this time.", + // "format": "google-datetime", + // "location": "query", + // "type": "string" + // }, + // "updateMask": { + // "description": "The FieldMask to use when updating the security marks resource. The field mask must not contain duplicate fields. If empty or set to \"marks\", all marks will be replaced. Individual marks can be updated using \"marks.\".", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+parent}/assets:group", + // "path": "v1/{+name}", // "request": { - // "$ref": "GroupAssetsRequest" + // "$ref": "SecurityMarks" // }, // "response": { - // "$ref": "GroupAssetsResponse" + // "$ref": "SecurityMarks" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -2940,30 +3349,9 @@ func (c *OrganizationsAssetsGroupCall) Do(opts ...googleapi.CallOption) (*GroupA } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *OrganizationsAssetsGroupCall) Pages(ctx context.Context, f func(*GroupAssetsResponse) error) error { - c.ctx_ = ctx - defer func(pt string) { c.groupassetsrequest.PageToken = pt }(c.groupassetsrequest.PageToken) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.groupassetsrequest.PageToken = x.NextPageToken - } -} - -// method id "securitycenter.organizations.assets.list": +// method id "securitycenter.folders.sources.list": -type OrganizationsAssetsListCall struct { +type FoldersSourcesListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -2972,140 +3360,34 @@ type OrganizationsAssetsListCall struct { header_ http.Header } -// List: Lists an organization's assets. -func (r *OrganizationsAssetsService) List(parent string) *OrganizationsAssetsListCall { - c := &OrganizationsAssetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// List: Lists all sources belonging to an organization. +func (r *FoldersSourcesService) List(parent string) *FoldersSourcesListCall { + c := &FoldersSourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// CompareDuration sets the optional parameter "compareDuration": When -// compare_duration is set, the ListAssetsResult's "state_change" -// attribute is updated to indicate whether the asset was added, -// removed, or remained present during the compare_duration period of -// time that precedes the read_time. This is the time between (read_time -// - compare_duration) and read_time. The state_change value is derived -// based on the presence of the asset at the two points in time. -// Intermediate state changes between the two times don't affect the -// result. For example, the results aren't affected if the asset is -// removed and re-created again. Possible "state_change" values when -// compare_duration is specified: * "ADDED": indicates that the asset -// was not present at the start of compare_duration, but present at -// read_time. * "REMOVED": indicates that the asset was present at the -// start of compare_duration, but not present at read_time. * "ACTIVE": -// indicates that the asset was present at both the start and the end of -// the time period defined by compare_duration and read_time. If -// compare_duration is not specified, then the only possible -// state_change is "UNUSED", which will be the state_change set for all -// assets present at read_time. -func (c *OrganizationsAssetsListCall) CompareDuration(compareDuration string) *OrganizationsAssetsListCall { - c.urlParams_.Set("compareDuration", compareDuration) - return c -} - -// FieldMask sets the optional parameter "fieldMask": A field mask to -// specify the ListAssetsResult fields to be listed in the response. An -// empty field mask will list all fields. -func (c *OrganizationsAssetsListCall) FieldMask(fieldMask string) *OrganizationsAssetsListCall { - c.urlParams_.Set("fieldMask", fieldMask) - return c -} - -// Filter sets the optional parameter "filter": Expression that defines -// the filter to apply across assets. The expression is a list of zero -// or more restrictions combined via logical operators `AND` and `OR`. -// Parentheses are supported, and `OR` has higher precedence than `AND`. -// Restrictions have the form ` ` and may have a `-` character in front -// of them to indicate negation. The fields map to those defined in the -// Asset resource. Examples include: * name * -// security_center_properties.resource_name * -// resource_properties.a_property * security_marks.marks.marka The -// supported operators are: * `=` for all value types. * `>`, `<`, `>=`, -// `<=` for integer values. * `:`, meaning substring matching, for -// strings. The supported value types are: * string literals in quotes. -// * integer literals without quotes. * boolean literals `true` and -// `false` without quotes. The following are the allowed field and -// operator combinations: * name: `=` * update_time: `=`, `>`, `<`, -// `>=`, `<=` Usage: This should be milliseconds since epoch or an -// RFC3339 string. Examples: `update_time = "2019-06-10T16:07:18-07:00" -// `update_time = 1560208038000` * create_time: `=`, `>`, `<`, `>=`, -// `<=` Usage: This should be milliseconds since epoch or an RFC3339 -// string. Examples: `create_time = "2019-06-10T16:07:18-07:00" -// `create_time = 1560208038000` * iam_policy.policy_blob: `=`, `:` * -// resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * -// security_marks.marks: `=`, `:` * -// security_center_properties.resource_name: `=`, `:` * -// security_center_properties.resource_display_name: `=`, `:` * -// security_center_properties.resource_type: `=`, `:` * -// security_center_properties.resource_parent: `=`, `:` * -// security_center_properties.resource_parent_display_name: `=`, `:` * -// security_center_properties.resource_project: `=`, `:` * -// security_center_properties.resource_project_display_name: `=`, `:` * -// security_center_properties.resource_owners: `=`, `:` For example, -// `resource_properties.size = 100` is a valid filter string. Use a -// partial match on the empty string to filter based on a property -// existing: `resource_properties.my_property : "" Use a negated -// partial match on the empty string to filter based on a property not -// existing: `-resource_properties.my_property : "" -func (c *OrganizationsAssetsListCall) Filter(filter string) *OrganizationsAssetsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// OrderBy sets the optional parameter "orderBy": Expression that -// defines what fields and order to use for sorting. The string value -// should follow SQL syntax: comma separated list of fields. For -// example: "name,resource_properties.a_property". The default sorting -// order is ascending. To specify descending order for a field, a suffix -// " desc" should be appended to the field name. For example: "name -// desc,resource_properties.a_property". Redundant space characters in -// the syntax are insignificant. "name -// desc,resource_properties.a_property" and " name desc , -// resource_properties.a_property " are equivalent. The following fields -// are supported: name update_time resource_properties -// security_marks.marks security_center_properties.resource_name -// security_center_properties.resource_display_name -// security_center_properties.resource_parent -// security_center_properties.resource_parent_display_name -// security_center_properties.resource_project -// security_center_properties.resource_project_display_name -// security_center_properties.resource_type -func (c *OrganizationsAssetsListCall) OrderBy(orderBy string) *OrganizationsAssetsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - // PageSize sets the optional parameter "pageSize": The maximum number // of results to return in a single response. Default is 10, minimum is // 1, maximum is 1000. -func (c *OrganizationsAssetsListCall) PageSize(pageSize int64) *OrganizationsAssetsListCall { +func (c *FoldersSourcesListCall) PageSize(pageSize int64) *FoldersSourcesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The value returned -// by the last `ListAssetsResponse`; indicates that this is a -// continuation of a prior `ListAssets` call, and that the system should -// return the next page of data. -func (c *OrganizationsAssetsListCall) PageToken(pageToken string) *OrganizationsAssetsListCall { +// by the last `ListSourcesResponse`; indicates that this is a +// continuation of a prior `ListSources` call, and that the system +// should return the next page of data. +func (c *FoldersSourcesListCall) PageToken(pageToken string) *FoldersSourcesListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadTime sets the optional parameter "readTime": Time used as a -// reference point when filtering assets. The filter is limited to -// assets existing at the supplied time and their values are those at -// that specific time. Absence of this field will default to the API's -// version of NOW. -func (c *OrganizationsAssetsListCall) ReadTime(readTime string) *OrganizationsAssetsListCall { - c.urlParams_.Set("readTime", readTime) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsAssetsListCall) Fields(s ...googleapi.Field) *OrganizationsAssetsListCall { +func (c *FoldersSourcesListCall) Fields(s ...googleapi.Field) *FoldersSourcesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -3115,7 +3397,7 @@ func (c *OrganizationsAssetsListCall) Fields(s ...googleapi.Field) *Organization // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OrganizationsAssetsListCall) IfNoneMatch(entityTag string) *OrganizationsAssetsListCall { +func (c *FoldersSourcesListCall) IfNoneMatch(entityTag string) *FoldersSourcesListCall { c.ifNoneMatch_ = entityTag return c } @@ -3123,23 +3405,23 @@ func (c *OrganizationsAssetsListCall) IfNoneMatch(entityTag string) *Organizatio // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsAssetsListCall) Context(ctx context.Context) *OrganizationsAssetsListCall { +func (c *FoldersSourcesListCall) Context(ctx context.Context) *FoldersSourcesListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsAssetsListCall) Header() http.Header { +func (c *FoldersSourcesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsAssetsListCall) doRequest(alt string) (*http.Response, error) { +func (c *FoldersSourcesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3150,7 +3432,7 @@ func (c *OrganizationsAssetsListCall) doRequest(alt string) (*http.Response, err var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/assets") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sources") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -3163,14 +3445,14 @@ func (c *OrganizationsAssetsListCall) doRequest(alt string) (*http.Response, err return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "securitycenter.organizations.assets.list" call. -// Exactly one of *ListAssetsResponse or error will be non-nil. Any +// Do executes the "securitycenter.folders.sources.list" call. +// Exactly one of *ListSourcesResponse or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either -// *ListAssetsResponse.ServerResponse.Header or (if a response was +// *ListSourcesResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsAssetsListCall) Do(opts ...googleapi.CallOption) (*ListAssetsResponse, error) { +func (c *FoldersSourcesListCall) Do(opts ...googleapi.CallOption) (*ListSourcesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3189,7 +3471,7 @@ func (c *OrganizationsAssetsListCall) Do(opts ...googleapi.CallOption) (*ListAss if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListAssetsResponse{ + ret := &ListSourcesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -3201,36 +3483,14 @@ func (c *OrganizationsAssetsListCall) Do(opts ...googleapi.CallOption) (*ListAss } return ret, nil // { - // "description": "Lists an organization's assets.", - // "flatPath": "v1/organizations/{organizationsId}/assets", + // "description": "Lists all sources belonging to an organization.", + // "flatPath": "v1/folders/{foldersId}/sources", // "httpMethod": "GET", - // "id": "securitycenter.organizations.assets.list", + // "id": "securitycenter.folders.sources.list", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "compareDuration": { - // "description": "When compare_duration is set, the ListAssetsResult's \"state_change\" attribute is updated to indicate whether the asset was added, removed, or remained present during the compare_duration period of time that precedes the read_time. This is the time between (read_time - compare_duration) and read_time. The state_change value is derived based on the presence of the asset at the two points in time. Intermediate state changes between the two times don't affect the result. For example, the results aren't affected if the asset is removed and re-created again. Possible \"state_change\" values when compare_duration is specified: * \"ADDED\": indicates that the asset was not present at the start of compare_duration, but present at read_time. * \"REMOVED\": indicates that the asset was present at the start of compare_duration, but not present at read_time. * \"ACTIVE\": indicates that the asset was present at both the start and the end of the time period defined by compare_duration and read_time. If compare_duration is not specified, then the only possible state_change is \"UNUSED\", which will be the state_change set for all assets present at read_time.", - // "format": "google-duration", - // "location": "query", - // "type": "string" - // }, - // "fieldMask": { - // "description": "A field mask to specify the ListAssetsResult fields to be listed in the response. An empty field mask will list all fields.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // }, - // "filter": { - // "description": "Expression that defines the filter to apply across assets. The expression is a list of zero or more restrictions combined via logical operators `AND` and `OR`. Parentheses are supported, and `OR` has higher precedence than `AND`. Restrictions have the form ` ` and may have a `-` character in front of them to indicate negation. The fields map to those defined in the Asset resource. Examples include: * name * security_center_properties.resource_name * resource_properties.a_property * security_marks.marks.marka The supported operators are: * `=` for all value types. * `\u003e`, `\u003c`, `\u003e=`, `\u003c=` for integer values. * `:`, meaning substring matching, for strings. The supported value types are: * string literals in quotes. * integer literals without quotes. * boolean literals `true` and `false` without quotes. The following are the allowed field and operator combinations: * name: `=` * update_time: `=`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` Usage: This should be milliseconds since epoch or an RFC3339 string. Examples: `update_time = \"2019-06-10T16:07:18-07:00\"` `update_time = 1560208038000` * create_time: `=`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` Usage: This should be milliseconds since epoch or an RFC3339 string. Examples: `create_time = \"2019-06-10T16:07:18-07:00\"` `create_time = 1560208038000` * iam_policy.policy_blob: `=`, `:` * resource_properties: `=`, `:`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` * security_marks.marks: `=`, `:` * security_center_properties.resource_name: `=`, `:` * security_center_properties.resource_display_name: `=`, `:` * security_center_properties.resource_type: `=`, `:` * security_center_properties.resource_parent: `=`, `:` * security_center_properties.resource_parent_display_name: `=`, `:` * security_center_properties.resource_project: `=`, `:` * security_center_properties.resource_project_display_name: `=`, `:` * security_center_properties.resource_owners: `=`, `:` For example, `resource_properties.size = 100` is a valid filter string. Use a partial match on the empty string to filter based on a property existing: `resource_properties.my_property : \"\"` Use a negated partial match on the empty string to filter based on a property not existing: `-resource_properties.my_property : \"\"`", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Expression that defines what fields and order to use for sorting. The string value should follow SQL syntax: comma separated list of fields. For example: \"name,resource_properties.a_property\". The default sorting order is ascending. To specify descending order for a field, a suffix \" desc\" should be appended to the field name. For example: \"name desc,resource_properties.a_property\". Redundant space characters in the syntax are insignificant. \"name desc,resource_properties.a_property\" and \" name desc , resource_properties.a_property \" are equivalent. The following fields are supported: name update_time resource_properties security_marks.marks security_center_properties.resource_name security_center_properties.resource_display_name security_center_properties.resource_parent security_center_properties.resource_parent_display_name security_center_properties.resource_project security_center_properties.resource_project_display_name security_center_properties.resource_type", - // "location": "query", - // "type": "string" - // }, // "pageSize": { // "description": "The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.", // "format": "int32", @@ -3238,27 +3498,21 @@ func (c *OrganizationsAssetsListCall) Do(opts ...googleapi.CallOption) (*ListAss // "type": "integer" // }, // "pageToken": { - // "description": "The value returned by the last `ListAssetsResponse`; indicates that this is a continuation of a prior `ListAssets` call, and that the system should return the next page of data.", + // "description": "The value returned by the last `ListSourcesResponse`; indicates that this is a continuation of a prior `ListSources` call, and that the system should return the next page of data.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. Name of the organization assets should belong to. Its format is \"organizations/[organization_id]\".", + // "description": "Required. Resource name of the parent of sources to list. Its format should be \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", // "location": "path", - // "pattern": "^organizations/[^/]+$", + // "pattern": "^folders/[^/]+$", // "required": true, // "type": "string" - // }, - // "readTime": { - // "description": "Time used as a reference point when filtering assets. The filter is limited to assets existing at the supplied time and their values are those at that specific time. Absence of this field will default to the API's version of NOW.", - // "format": "google-datetime", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+parent}/assets", + // "path": "v1/{+parent}/sources", // "response": { - // "$ref": "ListAssetsResponse" + // "$ref": "ListSourcesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -3270,7 +3524,7 @@ func (c *OrganizationsAssetsListCall) Do(opts ...googleapi.CallOption) (*ListAss // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *OrganizationsAssetsListCall) Pages(ctx context.Context, f func(*ListAssetsResponse) error) error { +func (c *FoldersSourcesListCall) Pages(ctx context.Context, f func(*ListSourcesResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -3288,89 +3542,3191 @@ func (c *OrganizationsAssetsListCall) Pages(ctx context.Context, f func(*ListAss } } -// method id "securitycenter.organizations.assets.runDiscovery": +// method id "securitycenter.folders.sources.findings.group": + +type FoldersSourcesFindingsGroupCall struct { + s *Service + parent string + groupfindingsrequest *GroupFindingsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Group: Filters an organization or source's findings and groups them +// by their specified properties. To group across all sources provide a +// `-` as the source id. Example: +// /v1/organizations/{organization_id}/sources/-/findings, +// /v1/folders/{folder_id}/sources/-/findings, +// /v1/projects/{project_id}/sources/-/findings +func (r *FoldersSourcesFindingsService) Group(parent string, groupfindingsrequest *GroupFindingsRequest) *FoldersSourcesFindingsGroupCall { + c := &FoldersSourcesFindingsGroupCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.groupfindingsrequest = groupfindingsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *FoldersSourcesFindingsGroupCall) Fields(s ...googleapi.Field) *FoldersSourcesFindingsGroupCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *FoldersSourcesFindingsGroupCall) Context(ctx context.Context) *FoldersSourcesFindingsGroupCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *FoldersSourcesFindingsGroupCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersSourcesFindingsGroupCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.groupfindingsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/findings:group") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "securitycenter.folders.sources.findings.group" call. +// Exactly one of *GroupFindingsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GroupFindingsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *FoldersSourcesFindingsGroupCall) Do(opts ...googleapi.CallOption) (*GroupFindingsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GroupFindingsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Filters an organization or source's findings and groups them by their specified properties. To group across all sources provide a `-` as the source id. Example: /v1/organizations/{organization_id}/sources/-/findings, /v1/folders/{folder_id}/sources/-/findings, /v1/projects/{project_id}/sources/-/findings", + // "flatPath": "v1/folders/{foldersId}/sources/{sourcesId}/findings:group", + // "httpMethod": "POST", + // "id": "securitycenter.folders.sources.findings.group", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Name of the source to groupBy. Its format is \"organizations/[organization_id]/sources/[source_id]\", folders/[folder_id]/sources/[source_id], or projects/[project_id]/sources/[source_id]. To groupBy across all sources provide a source_id of `-`. For example: organizations/{organization_id}/sources/-, folders/{folder_id}/sources/-, or projects/{project_id}/sources/-", + // "location": "path", + // "pattern": "^folders/[^/]+/sources/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/findings:group", + // "request": { + // "$ref": "GroupFindingsRequest" + // }, + // "response": { + // "$ref": "GroupFindingsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *FoldersSourcesFindingsGroupCall) Pages(ctx context.Context, f func(*GroupFindingsResponse) error) error { + c.ctx_ = ctx + defer func(pt string) { c.groupfindingsrequest.PageToken = pt }(c.groupfindingsrequest.PageToken) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.groupfindingsrequest.PageToken = x.NextPageToken + } +} + +// method id "securitycenter.folders.sources.findings.list": + +type FoldersSourcesFindingsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists an organization or source's findings. To list across all +// sources provide a `-` as the source id. Example: +// /v1/organizations/{organization_id}/sources/-/findings +func (r *FoldersSourcesFindingsService) List(parent string) *FoldersSourcesFindingsListCall { + c := &FoldersSourcesFindingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// CompareDuration sets the optional parameter "compareDuration": When +// compare_duration is set, the ListFindingsResult's "state_change" +// attribute is updated to indicate whether the finding had its state +// changed, the finding's state remained unchanged, or if the finding +// was added in any state during the compare_duration period of time +// that precedes the read_time. This is the time between (read_time - +// compare_duration) and read_time. The state_change value is derived +// based on the presence and state of the finding at the two points in +// time. Intermediate state changes between the two times don't affect +// the result. For example, the results aren't affected if the finding +// is made inactive and then active again. Possible "state_change" +// values when compare_duration is specified: * "CHANGED": indicates +// that the finding was present and matched the given filter at the +// start of compare_duration, but changed its state at read_time. * +// "UNCHANGED": indicates that the finding was present and matched the +// given filter at the start of compare_duration and did not change +// state at read_time. * "ADDED": indicates that the finding did not +// match the given filter or was not present at the start of +// compare_duration, but was present at read_time. * "REMOVED": +// indicates that the finding was present and matched the filter at the +// start of compare_duration, but did not match the filter at read_time. +// If compare_duration is not specified, then the only possible +// state_change is "UNUSED", which will be the state_change set for all +// findings present at read_time. +func (c *FoldersSourcesFindingsListCall) CompareDuration(compareDuration string) *FoldersSourcesFindingsListCall { + c.urlParams_.Set("compareDuration", compareDuration) + return c +} + +// FieldMask sets the optional parameter "fieldMask": A field mask to +// specify the Finding fields to be listed in the response. An empty +// field mask will list all fields. +func (c *FoldersSourcesFindingsListCall) FieldMask(fieldMask string) *FoldersSourcesFindingsListCall { + c.urlParams_.Set("fieldMask", fieldMask) + return c +} + +// Filter sets the optional parameter "filter": Expression that defines +// the filter to apply across findings. The expression is a list of one +// or more restrictions combined via logical operators `AND` and `OR`. +// Parentheses are supported, and `OR` has higher precedence than `AND`. +// Restrictions have the form ` ` and may have a `-` character in front +// of them to indicate negation. Examples include: * name * +// source_properties.a_property * security_marks.marks.marka The +// supported operators are: * `=` for all value types. * `>`, `<`, `>=`, +// `<=` for integer values. * `:`, meaning substring matching, for +// strings. The supported value types are: * string literals in quotes. +// * integer literals without quotes. * boolean literals `true` and +// `false` without quotes. The following field and operator combinations +// are supported: name: `=` parent: `=`, `:` resource_name: `=`, `:` +// state: `=`, `:` category: `=`, `:` external_uri: `=`, `:` event_time: +// `=`, `>`, `<`, `>=`, `<=` Usage: This should be milliseconds since +// epoch or an RFC3339 string. Examples: `event_time = +// "2019-06-10T16:07:18-07:00" `event_time = 1560208038000` +// security_marks.marks: `=`, `:` source_properties: `=`, `:`, `>`, `<`, +// `>=`, `<=` For example, `source_properties.size = 100` is a valid +// filter string. Use a partial match on the empty string to filter +// based on a property existing: `source_properties.my_property : "" +// Use a negated partial match on the empty string to filter based on a +// property not existing: `-source_properties.my_property : "" +func (c *FoldersSourcesFindingsListCall) Filter(filter string) *FoldersSourcesFindingsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Expression that +// defines what fields and order to use for sorting. The string value +// should follow SQL syntax: comma separated list of fields. For +// example: "name,resource_properties.a_property". The default sorting +// order is ascending. To specify descending order for a field, a suffix +// " desc" should be appended to the field name. For example: "name +// desc,source_properties.a_property". Redundant space characters in the +// syntax are insignificant. "name desc,source_properties.a_property" +// and " name desc , source_properties.a_property " are equivalent. The +// following fields are supported: name parent state category +// resource_name event_time source_properties security_marks.marks +func (c *FoldersSourcesFindingsListCall) OrderBy(orderBy string) *FoldersSourcesFindingsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return in a single response. Default is 10, minimum is +// 1, maximum is 1000. +func (c *FoldersSourcesFindingsListCall) PageSize(pageSize int64) *FoldersSourcesFindingsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value returned +// by the last `ListFindingsResponse`; indicates that this is a +// continuation of a prior `ListFindings` call, and that the system +// should return the next page of data. +func (c *FoldersSourcesFindingsListCall) PageToken(pageToken string) *FoldersSourcesFindingsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadTime sets the optional parameter "readTime": Time used as a +// reference point when filtering findings. The filter is limited to +// findings existing at the supplied time and their values are those at +// that specific time. Absence of this field will default to the API's +// version of NOW. +func (c *FoldersSourcesFindingsListCall) ReadTime(readTime string) *FoldersSourcesFindingsListCall { + c.urlParams_.Set("readTime", readTime) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *FoldersSourcesFindingsListCall) Fields(s ...googleapi.Field) *FoldersSourcesFindingsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *FoldersSourcesFindingsListCall) IfNoneMatch(entityTag string) *FoldersSourcesFindingsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *FoldersSourcesFindingsListCall) Context(ctx context.Context) *FoldersSourcesFindingsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *FoldersSourcesFindingsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersSourcesFindingsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/findings") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "securitycenter.folders.sources.findings.list" call. +// Exactly one of *ListFindingsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListFindingsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *FoldersSourcesFindingsListCall) Do(opts ...googleapi.CallOption) (*ListFindingsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListFindingsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists an organization or source's findings. To list across all sources provide a `-` as the source id. Example: /v1/organizations/{organization_id}/sources/-/findings", + // "flatPath": "v1/folders/{foldersId}/sources/{sourcesId}/findings", + // "httpMethod": "GET", + // "id": "securitycenter.folders.sources.findings.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "compareDuration": { + // "description": "When compare_duration is set, the ListFindingsResult's \"state_change\" attribute is updated to indicate whether the finding had its state changed, the finding's state remained unchanged, or if the finding was added in any state during the compare_duration period of time that precedes the read_time. This is the time between (read_time - compare_duration) and read_time. The state_change value is derived based on the presence and state of the finding at the two points in time. Intermediate state changes between the two times don't affect the result. For example, the results aren't affected if the finding is made inactive and then active again. Possible \"state_change\" values when compare_duration is specified: * \"CHANGED\": indicates that the finding was present and matched the given filter at the start of compare_duration, but changed its state at read_time. * \"UNCHANGED\": indicates that the finding was present and matched the given filter at the start of compare_duration and did not change state at read_time. * \"ADDED\": indicates that the finding did not match the given filter or was not present at the start of compare_duration, but was present at read_time. * \"REMOVED\": indicates that the finding was present and matched the filter at the start of compare_duration, but did not match the filter at read_time. If compare_duration is not specified, then the only possible state_change is \"UNUSED\", which will be the state_change set for all findings present at read_time.", + // "format": "google-duration", + // "location": "query", + // "type": "string" + // }, + // "fieldMask": { + // "description": "A field mask to specify the Finding fields to be listed in the response. An empty field mask will list all fields.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // }, + // "filter": { + // "description": "Expression that defines the filter to apply across findings. The expression is a list of one or more restrictions combined via logical operators `AND` and `OR`. Parentheses are supported, and `OR` has higher precedence than `AND`. Restrictions have the form ` ` and may have a `-` character in front of them to indicate negation. Examples include: * name * source_properties.a_property * security_marks.marks.marka The supported operators are: * `=` for all value types. * `\u003e`, `\u003c`, `\u003e=`, `\u003c=` for integer values. * `:`, meaning substring matching, for strings. The supported value types are: * string literals in quotes. * integer literals without quotes. * boolean literals `true` and `false` without quotes. The following field and operator combinations are supported: name: `=` parent: `=`, `:` resource_name: `=`, `:` state: `=`, `:` category: `=`, `:` external_uri: `=`, `:` event_time: `=`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` Usage: This should be milliseconds since epoch or an RFC3339 string. Examples: `event_time = \"2019-06-10T16:07:18-07:00\"` `event_time = 1560208038000` security_marks.marks: `=`, `:` source_properties: `=`, `:`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` For example, `source_properties.size = 100` is a valid filter string. Use a partial match on the empty string to filter based on a property existing: `source_properties.my_property : \"\"` Use a negated partial match on the empty string to filter based on a property not existing: `-source_properties.my_property : \"\"`", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Expression that defines what fields and order to use for sorting. The string value should follow SQL syntax: comma separated list of fields. For example: \"name,resource_properties.a_property\". The default sorting order is ascending. To specify descending order for a field, a suffix \" desc\" should be appended to the field name. For example: \"name desc,source_properties.a_property\". Redundant space characters in the syntax are insignificant. \"name desc,source_properties.a_property\" and \" name desc , source_properties.a_property \" are equivalent. The following fields are supported: name parent state category resource_name event_time source_properties security_marks.marks", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The value returned by the last `ListFindingsResponse`; indicates that this is a continuation of a prior `ListFindings` call, and that the system should return the next page of data.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Name of the source the findings belong to. Its format is \"organizations/[organization_id]/sources/[source_id], folders/[folder_id]/sources/[source_id], or projects/[project_id]/sources/[source_id]\". To list across all sources provide a source_id of `-`. For example: organizations/{organization_id}/sources/-, folders/{folder_id}/sources/- or projects/{projects_id}/sources/-", + // "location": "path", + // "pattern": "^folders/[^/]+/sources/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "readTime": { + // "description": "Time used as a reference point when filtering findings. The filter is limited to findings existing at the supplied time and their values are those at that specific time. Absence of this field will default to the API's version of NOW.", + // "format": "google-datetime", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/findings", + // "response": { + // "$ref": "ListFindingsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *FoldersSourcesFindingsListCall) Pages(ctx context.Context, f func(*ListFindingsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "securitycenter.folders.sources.findings.patch": + +type FoldersSourcesFindingsPatchCall struct { + s *Service + name string + finding *Finding + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Creates or updates a finding. The corresponding source must +// exist for a finding creation to succeed. +func (r *FoldersSourcesFindingsService) Patch(name string, finding *Finding) *FoldersSourcesFindingsPatchCall { + c := &FoldersSourcesFindingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.finding = finding + return c +} + +// UpdateMask sets the optional parameter "updateMask": The FieldMask to +// use when updating the finding resource. This field should not be +// specified when creating a finding. When updating a finding, an empty +// mask is treated as updating all mutable fields and replacing +// source_properties. Individual source_properties can be added/updated +// by using "source_properties." in the field mask. +func (c *FoldersSourcesFindingsPatchCall) UpdateMask(updateMask string) *FoldersSourcesFindingsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *FoldersSourcesFindingsPatchCall) Fields(s ...googleapi.Field) *FoldersSourcesFindingsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *FoldersSourcesFindingsPatchCall) Context(ctx context.Context) *FoldersSourcesFindingsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *FoldersSourcesFindingsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersSourcesFindingsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.finding) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "securitycenter.folders.sources.findings.patch" call. +// Exactly one of *Finding or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Finding.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *FoldersSourcesFindingsPatchCall) Do(opts ...googleapi.CallOption) (*Finding, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Finding{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates or updates a finding. The corresponding source must exist for a finding creation to succeed.", + // "flatPath": "v1/folders/{foldersId}/sources/{sourcesId}/findings/{findingsId}", + // "httpMethod": "PATCH", + // "id": "securitycenter.folders.sources.findings.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The relative resource name of this finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}\"", + // "location": "path", + // "pattern": "^folders/[^/]+/sources/[^/]+/findings/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "The FieldMask to use when updating the finding resource. This field should not be specified when creating a finding. When updating a finding, an empty mask is treated as updating all mutable fields and replacing source_properties. Individual source_properties can be added/updated by using \"source_properties.\" in the field mask.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "Finding" + // }, + // "response": { + // "$ref": "Finding" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "securitycenter.folders.sources.findings.setState": + +type FoldersSourcesFindingsSetStateCall struct { + s *Service + name string + setfindingstaterequest *SetFindingStateRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetState: Updates the state of a finding. +func (r *FoldersSourcesFindingsService) SetState(name string, setfindingstaterequest *SetFindingStateRequest) *FoldersSourcesFindingsSetStateCall { + c := &FoldersSourcesFindingsSetStateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.setfindingstaterequest = setfindingstaterequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *FoldersSourcesFindingsSetStateCall) Fields(s ...googleapi.Field) *FoldersSourcesFindingsSetStateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *FoldersSourcesFindingsSetStateCall) Context(ctx context.Context) *FoldersSourcesFindingsSetStateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *FoldersSourcesFindingsSetStateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersSourcesFindingsSetStateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.setfindingstaterequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:setState") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "securitycenter.folders.sources.findings.setState" call. +// Exactly one of *Finding or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Finding.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *FoldersSourcesFindingsSetStateCall) Do(opts ...googleapi.CallOption) (*Finding, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Finding{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates the state of a finding.", + // "flatPath": "v1/folders/{foldersId}/sources/{sourcesId}/findings/{findingsId}:setState", + // "httpMethod": "POST", + // "id": "securitycenter.folders.sources.findings.setState", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The relative resource name of the finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/sources/{source_id}/finding/{finding_id}\".", + // "location": "path", + // "pattern": "^folders/[^/]+/sources/[^/]+/findings/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:setState", + // "request": { + // "$ref": "SetFindingStateRequest" + // }, + // "response": { + // "$ref": "Finding" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "securitycenter.folders.sources.findings.updateSecurityMarks": + +type FoldersSourcesFindingsUpdateSecurityMarksCall struct { + s *Service + name string + securitymarks *SecurityMarks + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpdateSecurityMarks: Updates security marks. +func (r *FoldersSourcesFindingsService) UpdateSecurityMarks(name string, securitymarks *SecurityMarks) *FoldersSourcesFindingsUpdateSecurityMarksCall { + c := &FoldersSourcesFindingsUpdateSecurityMarksCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.securitymarks = securitymarks + return c +} + +// StartTime sets the optional parameter "startTime": The time at which +// the updated SecurityMarks take effect. If not set uses current server +// time. Updates will be applied to the SecurityMarks that are active +// immediately preceding this time. +func (c *FoldersSourcesFindingsUpdateSecurityMarksCall) StartTime(startTime string) *FoldersSourcesFindingsUpdateSecurityMarksCall { + c.urlParams_.Set("startTime", startTime) + return c +} + +// UpdateMask sets the optional parameter "updateMask": The FieldMask to +// use when updating the security marks resource. The field mask must +// not contain duplicate fields. If empty or set to "marks", all marks +// will be replaced. Individual marks can be updated using "marks.". +func (c *FoldersSourcesFindingsUpdateSecurityMarksCall) UpdateMask(updateMask string) *FoldersSourcesFindingsUpdateSecurityMarksCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *FoldersSourcesFindingsUpdateSecurityMarksCall) Fields(s ...googleapi.Field) *FoldersSourcesFindingsUpdateSecurityMarksCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *FoldersSourcesFindingsUpdateSecurityMarksCall) Context(ctx context.Context) *FoldersSourcesFindingsUpdateSecurityMarksCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *FoldersSourcesFindingsUpdateSecurityMarksCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersSourcesFindingsUpdateSecurityMarksCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.securitymarks) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "securitycenter.folders.sources.findings.updateSecurityMarks" call. +// Exactly one of *SecurityMarks or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *SecurityMarks.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *FoldersSourcesFindingsUpdateSecurityMarksCall) Do(opts ...googleapi.CallOption) (*SecurityMarks, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &SecurityMarks{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates security marks.", + // "flatPath": "v1/folders/{foldersId}/sources/{sourcesId}/findings/{findingsId}/securityMarks", + // "httpMethod": "PATCH", + // "id": "securitycenter.folders.sources.findings.updateSecurityMarks", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: \"organizations/{organization_id}/assets/{asset_id}/securityMarks\" \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks\".", + // "location": "path", + // "pattern": "^folders/[^/]+/sources/[^/]+/findings/[^/]+/securityMarks$", + // "required": true, + // "type": "string" + // }, + // "startTime": { + // "description": "The time at which the updated SecurityMarks take effect. If not set uses current server time. Updates will be applied to the SecurityMarks that are active immediately preceding this time.", + // "format": "google-datetime", + // "location": "query", + // "type": "string" + // }, + // "updateMask": { + // "description": "The FieldMask to use when updating the security marks resource. The field mask must not contain duplicate fields. If empty or set to \"marks\", all marks will be replaced. Individual marks can be updated using \"marks.\".", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "SecurityMarks" + // }, + // "response": { + // "$ref": "SecurityMarks" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "securitycenter.organizations.getOrganizationSettings": + +type OrganizationsGetOrganizationSettingsCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetOrganizationSettings: Gets the settings for an organization. +func (r *OrganizationsService) GetOrganizationSettings(name string) *OrganizationsGetOrganizationSettingsCall { + c := &OrganizationsGetOrganizationSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsGetOrganizationSettingsCall) Fields(s ...googleapi.Field) *OrganizationsGetOrganizationSettingsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsGetOrganizationSettingsCall) IfNoneMatch(entityTag string) *OrganizationsGetOrganizationSettingsCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsGetOrganizationSettingsCall) Context(ctx context.Context) *OrganizationsGetOrganizationSettingsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsGetOrganizationSettingsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsGetOrganizationSettingsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "securitycenter.organizations.getOrganizationSettings" call. +// Exactly one of *OrganizationSettings or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *OrganizationSettings.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsGetOrganizationSettingsCall) Do(opts ...googleapi.CallOption) (*OrganizationSettings, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &OrganizationSettings{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the settings for an organization.", + // "flatPath": "v1/organizations/{organizationsId}/organizationSettings", + // "httpMethod": "GET", + // "id": "securitycenter.organizations.getOrganizationSettings", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the organization to get organization settings for. Its format is \"organizations/[organization_id]/organizationSettings\".", + // "location": "path", + // "pattern": "^organizations/[^/]+/organizationSettings$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "OrganizationSettings" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "securitycenter.organizations.updateOrganizationSettings": + +type OrganizationsUpdateOrganizationSettingsCall struct { + s *Service + name string + organizationsettings *OrganizationSettings + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpdateOrganizationSettings: Updates an organization's settings. +func (r *OrganizationsService) UpdateOrganizationSettings(name string, organizationsettings *OrganizationSettings) *OrganizationsUpdateOrganizationSettingsCall { + c := &OrganizationsUpdateOrganizationSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.organizationsettings = organizationsettings + return c +} + +// UpdateMask sets the optional parameter "updateMask": The FieldMask to +// use when updating the settings resource. If empty all mutable fields +// will be updated. +func (c *OrganizationsUpdateOrganizationSettingsCall) UpdateMask(updateMask string) *OrganizationsUpdateOrganizationSettingsCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsUpdateOrganizationSettingsCall) Fields(s ...googleapi.Field) *OrganizationsUpdateOrganizationSettingsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsUpdateOrganizationSettingsCall) Context(ctx context.Context) *OrganizationsUpdateOrganizationSettingsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsUpdateOrganizationSettingsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsUpdateOrganizationSettingsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.organizationsettings) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "securitycenter.organizations.updateOrganizationSettings" call. +// Exactly one of *OrganizationSettings or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *OrganizationSettings.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsUpdateOrganizationSettingsCall) Do(opts ...googleapi.CallOption) (*OrganizationSettings, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &OrganizationSettings{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates an organization's settings.", + // "flatPath": "v1/organizations/{organizationsId}/organizationSettings", + // "httpMethod": "PATCH", + // "id": "securitycenter.organizations.updateOrganizationSettings", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The relative resource name of the settings. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/organizationSettings\".", + // "location": "path", + // "pattern": "^organizations/[^/]+/organizationSettings$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "The FieldMask to use when updating the settings resource. If empty all mutable fields will be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "OrganizationSettings" + // }, + // "response": { + // "$ref": "OrganizationSettings" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "securitycenter.organizations.assets.group": + +type OrganizationsAssetsGroupCall struct { + s *Service + parent string + groupassetsrequest *GroupAssetsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Group: Filters an organization's assets and groups them by their +// specified properties. +func (r *OrganizationsAssetsService) Group(parent string, groupassetsrequest *GroupAssetsRequest) *OrganizationsAssetsGroupCall { + c := &OrganizationsAssetsGroupCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.groupassetsrequest = groupassetsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsAssetsGroupCall) Fields(s ...googleapi.Field) *OrganizationsAssetsGroupCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsAssetsGroupCall) Context(ctx context.Context) *OrganizationsAssetsGroupCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsAssetsGroupCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsAssetsGroupCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.groupassetsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/assets:group") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "securitycenter.organizations.assets.group" call. +// Exactly one of *GroupAssetsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GroupAssetsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsAssetsGroupCall) Do(opts ...googleapi.CallOption) (*GroupAssetsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GroupAssetsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Filters an organization's assets and groups them by their specified properties.", + // "flatPath": "v1/organizations/{organizationsId}/assets:group", + // "httpMethod": "POST", + // "id": "securitycenter.organizations.assets.group", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Name of the organization to groupBy. Its format is \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", + // "location": "path", + // "pattern": "^organizations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/assets:group", + // "request": { + // "$ref": "GroupAssetsRequest" + // }, + // "response": { + // "$ref": "GroupAssetsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *OrganizationsAssetsGroupCall) Pages(ctx context.Context, f func(*GroupAssetsResponse) error) error { + c.ctx_ = ctx + defer func(pt string) { c.groupassetsrequest.PageToken = pt }(c.groupassetsrequest.PageToken) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.groupassetsrequest.PageToken = x.NextPageToken + } +} + +// method id "securitycenter.organizations.assets.list": + +type OrganizationsAssetsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists an organization's assets. +func (r *OrganizationsAssetsService) List(parent string) *OrganizationsAssetsListCall { + c := &OrganizationsAssetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// CompareDuration sets the optional parameter "compareDuration": When +// compare_duration is set, the ListAssetsResult's "state_change" +// attribute is updated to indicate whether the asset was added, +// removed, or remained present during the compare_duration period of +// time that precedes the read_time. This is the time between (read_time +// - compare_duration) and read_time. The state_change value is derived +// based on the presence of the asset at the two points in time. +// Intermediate state changes between the two times don't affect the +// result. For example, the results aren't affected if the asset is +// removed and re-created again. Possible "state_change" values when +// compare_duration is specified: * "ADDED": indicates that the asset +// was not present at the start of compare_duration, but present at +// read_time. * "REMOVED": indicates that the asset was present at the +// start of compare_duration, but not present at read_time. * "ACTIVE": +// indicates that the asset was present at both the start and the end of +// the time period defined by compare_duration and read_time. If +// compare_duration is not specified, then the only possible +// state_change is "UNUSED", which will be the state_change set for all +// assets present at read_time. +func (c *OrganizationsAssetsListCall) CompareDuration(compareDuration string) *OrganizationsAssetsListCall { + c.urlParams_.Set("compareDuration", compareDuration) + return c +} + +// FieldMask sets the optional parameter "fieldMask": A field mask to +// specify the ListAssetsResult fields to be listed in the response. An +// empty field mask will list all fields. +func (c *OrganizationsAssetsListCall) FieldMask(fieldMask string) *OrganizationsAssetsListCall { + c.urlParams_.Set("fieldMask", fieldMask) + return c +} + +// Filter sets the optional parameter "filter": Expression that defines +// the filter to apply across assets. The expression is a list of zero +// or more restrictions combined via logical operators `AND` and `OR`. +// Parentheses are supported, and `OR` has higher precedence than `AND`. +// Restrictions have the form ` ` and may have a `-` character in front +// of them to indicate negation. The fields map to those defined in the +// Asset resource. Examples include: * name * +// security_center_properties.resource_name * +// resource_properties.a_property * security_marks.marks.marka The +// supported operators are: * `=` for all value types. * `>`, `<`, `>=`, +// `<=` for integer values. * `:`, meaning substring matching, for +// strings. The supported value types are: * string literals in quotes. +// * integer literals without quotes. * boolean literals `true` and +// `false` without quotes. The following are the allowed field and +// operator combinations: * name: `=` * update_time: `=`, `>`, `<`, +// `>=`, `<=` Usage: This should be milliseconds since epoch or an +// RFC3339 string. Examples: `update_time = "2019-06-10T16:07:18-07:00" +// `update_time = 1560208038000` * create_time: `=`, `>`, `<`, `>=`, +// `<=` Usage: This should be milliseconds since epoch or an RFC3339 +// string. Examples: `create_time = "2019-06-10T16:07:18-07:00" +// `create_time = 1560208038000` * iam_policy.policy_blob: `=`, `:` * +// resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * +// security_marks.marks: `=`, `:` * +// security_center_properties.resource_name: `=`, `:` * +// security_center_properties.resource_display_name: `=`, `:` * +// security_center_properties.resource_type: `=`, `:` * +// security_center_properties.resource_parent: `=`, `:` * +// security_center_properties.resource_parent_display_name: `=`, `:` * +// security_center_properties.resource_project: `=`, `:` * +// security_center_properties.resource_project_display_name: `=`, `:` * +// security_center_properties.resource_owners: `=`, `:` For example, +// `resource_properties.size = 100` is a valid filter string. Use a +// partial match on the empty string to filter based on a property +// existing: `resource_properties.my_property : "" Use a negated +// partial match on the empty string to filter based on a property not +// existing: `-resource_properties.my_property : "" +func (c *OrganizationsAssetsListCall) Filter(filter string) *OrganizationsAssetsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Expression that +// defines what fields and order to use for sorting. The string value +// should follow SQL syntax: comma separated list of fields. For +// example: "name,resource_properties.a_property". The default sorting +// order is ascending. To specify descending order for a field, a suffix +// " desc" should be appended to the field name. For example: "name +// desc,resource_properties.a_property". Redundant space characters in +// the syntax are insignificant. "name +// desc,resource_properties.a_property" and " name desc , +// resource_properties.a_property " are equivalent. The following fields +// are supported: name update_time resource_properties +// security_marks.marks security_center_properties.resource_name +// security_center_properties.resource_display_name +// security_center_properties.resource_parent +// security_center_properties.resource_parent_display_name +// security_center_properties.resource_project +// security_center_properties.resource_project_display_name +// security_center_properties.resource_type +func (c *OrganizationsAssetsListCall) OrderBy(orderBy string) *OrganizationsAssetsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return in a single response. Default is 10, minimum is +// 1, maximum is 1000. +func (c *OrganizationsAssetsListCall) PageSize(pageSize int64) *OrganizationsAssetsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value returned +// by the last `ListAssetsResponse`; indicates that this is a +// continuation of a prior `ListAssets` call, and that the system should +// return the next page of data. +func (c *OrganizationsAssetsListCall) PageToken(pageToken string) *OrganizationsAssetsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadTime sets the optional parameter "readTime": Time used as a +// reference point when filtering assets. The filter is limited to +// assets existing at the supplied time and their values are those at +// that specific time. Absence of this field will default to the API's +// version of NOW. +func (c *OrganizationsAssetsListCall) ReadTime(readTime string) *OrganizationsAssetsListCall { + c.urlParams_.Set("readTime", readTime) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsAssetsListCall) Fields(s ...googleapi.Field) *OrganizationsAssetsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsAssetsListCall) IfNoneMatch(entityTag string) *OrganizationsAssetsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsAssetsListCall) Context(ctx context.Context) *OrganizationsAssetsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsAssetsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsAssetsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/assets") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "securitycenter.organizations.assets.list" call. +// Exactly one of *ListAssetsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListAssetsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsAssetsListCall) Do(opts ...googleapi.CallOption) (*ListAssetsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListAssetsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists an organization's assets.", + // "flatPath": "v1/organizations/{organizationsId}/assets", + // "httpMethod": "GET", + // "id": "securitycenter.organizations.assets.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "compareDuration": { + // "description": "When compare_duration is set, the ListAssetsResult's \"state_change\" attribute is updated to indicate whether the asset was added, removed, or remained present during the compare_duration period of time that precedes the read_time. This is the time between (read_time - compare_duration) and read_time. The state_change value is derived based on the presence of the asset at the two points in time. Intermediate state changes between the two times don't affect the result. For example, the results aren't affected if the asset is removed and re-created again. Possible \"state_change\" values when compare_duration is specified: * \"ADDED\": indicates that the asset was not present at the start of compare_duration, but present at read_time. * \"REMOVED\": indicates that the asset was present at the start of compare_duration, but not present at read_time. * \"ACTIVE\": indicates that the asset was present at both the start and the end of the time period defined by compare_duration and read_time. If compare_duration is not specified, then the only possible state_change is \"UNUSED\", which will be the state_change set for all assets present at read_time.", + // "format": "google-duration", + // "location": "query", + // "type": "string" + // }, + // "fieldMask": { + // "description": "A field mask to specify the ListAssetsResult fields to be listed in the response. An empty field mask will list all fields.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // }, + // "filter": { + // "description": "Expression that defines the filter to apply across assets. The expression is a list of zero or more restrictions combined via logical operators `AND` and `OR`. Parentheses are supported, and `OR` has higher precedence than `AND`. Restrictions have the form ` ` and may have a `-` character in front of them to indicate negation. The fields map to those defined in the Asset resource. Examples include: * name * security_center_properties.resource_name * resource_properties.a_property * security_marks.marks.marka The supported operators are: * `=` for all value types. * `\u003e`, `\u003c`, `\u003e=`, `\u003c=` for integer values. * `:`, meaning substring matching, for strings. The supported value types are: * string literals in quotes. * integer literals without quotes. * boolean literals `true` and `false` without quotes. The following are the allowed field and operator combinations: * name: `=` * update_time: `=`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` Usage: This should be milliseconds since epoch or an RFC3339 string. Examples: `update_time = \"2019-06-10T16:07:18-07:00\"` `update_time = 1560208038000` * create_time: `=`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` Usage: This should be milliseconds since epoch or an RFC3339 string. Examples: `create_time = \"2019-06-10T16:07:18-07:00\"` `create_time = 1560208038000` * iam_policy.policy_blob: `=`, `:` * resource_properties: `=`, `:`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` * security_marks.marks: `=`, `:` * security_center_properties.resource_name: `=`, `:` * security_center_properties.resource_display_name: `=`, `:` * security_center_properties.resource_type: `=`, `:` * security_center_properties.resource_parent: `=`, `:` * security_center_properties.resource_parent_display_name: `=`, `:` * security_center_properties.resource_project: `=`, `:` * security_center_properties.resource_project_display_name: `=`, `:` * security_center_properties.resource_owners: `=`, `:` For example, `resource_properties.size = 100` is a valid filter string. Use a partial match on the empty string to filter based on a property existing: `resource_properties.my_property : \"\"` Use a negated partial match on the empty string to filter based on a property not existing: `-resource_properties.my_property : \"\"`", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Expression that defines what fields and order to use for sorting. The string value should follow SQL syntax: comma separated list of fields. For example: \"name,resource_properties.a_property\". The default sorting order is ascending. To specify descending order for a field, a suffix \" desc\" should be appended to the field name. For example: \"name desc,resource_properties.a_property\". Redundant space characters in the syntax are insignificant. \"name desc,resource_properties.a_property\" and \" name desc , resource_properties.a_property \" are equivalent. The following fields are supported: name update_time resource_properties security_marks.marks security_center_properties.resource_name security_center_properties.resource_display_name security_center_properties.resource_parent security_center_properties.resource_parent_display_name security_center_properties.resource_project security_center_properties.resource_project_display_name security_center_properties.resource_type", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The value returned by the last `ListAssetsResponse`; indicates that this is a continuation of a prior `ListAssets` call, and that the system should return the next page of data.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Name of the organization assets should belong to. Its format is \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", + // "location": "path", + // "pattern": "^organizations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "readTime": { + // "description": "Time used as a reference point when filtering assets. The filter is limited to assets existing at the supplied time and their values are those at that specific time. Absence of this field will default to the API's version of NOW.", + // "format": "google-datetime", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/assets", + // "response": { + // "$ref": "ListAssetsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *OrganizationsAssetsListCall) Pages(ctx context.Context, f func(*ListAssetsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "securitycenter.organizations.assets.runDiscovery": + +type OrganizationsAssetsRunDiscoveryCall struct { + s *Service + parent string + runassetdiscoveryrequest *RunAssetDiscoveryRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// RunDiscovery: Runs asset discovery. The discovery is tracked with a +// long-running operation. This API can only be called with limited +// frequency for an organization. If it is called too frequently the +// caller will receive a TOO_MANY_REQUESTS error. +func (r *OrganizationsAssetsService) RunDiscovery(parent string, runassetdiscoveryrequest *RunAssetDiscoveryRequest) *OrganizationsAssetsRunDiscoveryCall { + c := &OrganizationsAssetsRunDiscoveryCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.runassetdiscoveryrequest = runassetdiscoveryrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsAssetsRunDiscoveryCall) Fields(s ...googleapi.Field) *OrganizationsAssetsRunDiscoveryCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsAssetsRunDiscoveryCall) Context(ctx context.Context) *OrganizationsAssetsRunDiscoveryCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsAssetsRunDiscoveryCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsAssetsRunDiscoveryCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.runassetdiscoveryrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/assets:runDiscovery") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "securitycenter.organizations.assets.runDiscovery" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *OrganizationsAssetsRunDiscoveryCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Runs asset discovery. The discovery is tracked with a long-running operation. This API can only be called with limited frequency for an organization. If it is called too frequently the caller will receive a TOO_MANY_REQUESTS error.", + // "flatPath": "v1/organizations/{organizationsId}/assets:runDiscovery", + // "httpMethod": "POST", + // "id": "securitycenter.organizations.assets.runDiscovery", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Name of the organization to run asset discovery for. Its format is \"organizations/[organization_id]\".", + // "location": "path", + // "pattern": "^organizations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/assets:runDiscovery", + // "request": { + // "$ref": "RunAssetDiscoveryRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "securitycenter.organizations.assets.updateSecurityMarks": + +type OrganizationsAssetsUpdateSecurityMarksCall struct { + s *Service + name string + securitymarks *SecurityMarks + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpdateSecurityMarks: Updates security marks. +func (r *OrganizationsAssetsService) UpdateSecurityMarks(name string, securitymarks *SecurityMarks) *OrganizationsAssetsUpdateSecurityMarksCall { + c := &OrganizationsAssetsUpdateSecurityMarksCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.securitymarks = securitymarks + return c +} + +// StartTime sets the optional parameter "startTime": The time at which +// the updated SecurityMarks take effect. If not set uses current server +// time. Updates will be applied to the SecurityMarks that are active +// immediately preceding this time. +func (c *OrganizationsAssetsUpdateSecurityMarksCall) StartTime(startTime string) *OrganizationsAssetsUpdateSecurityMarksCall { + c.urlParams_.Set("startTime", startTime) + return c +} + +// UpdateMask sets the optional parameter "updateMask": The FieldMask to +// use when updating the security marks resource. The field mask must +// not contain duplicate fields. If empty or set to "marks", all marks +// will be replaced. Individual marks can be updated using "marks.". +func (c *OrganizationsAssetsUpdateSecurityMarksCall) UpdateMask(updateMask string) *OrganizationsAssetsUpdateSecurityMarksCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsAssetsUpdateSecurityMarksCall) Fields(s ...googleapi.Field) *OrganizationsAssetsUpdateSecurityMarksCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsAssetsUpdateSecurityMarksCall) Context(ctx context.Context) *OrganizationsAssetsUpdateSecurityMarksCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsAssetsUpdateSecurityMarksCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsAssetsUpdateSecurityMarksCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.securitymarks) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "securitycenter.organizations.assets.updateSecurityMarks" call. +// Exactly one of *SecurityMarks or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *SecurityMarks.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsAssetsUpdateSecurityMarksCall) Do(opts ...googleapi.CallOption) (*SecurityMarks, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &SecurityMarks{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates security marks.", + // "flatPath": "v1/organizations/{organizationsId}/assets/{assetsId}/securityMarks", + // "httpMethod": "PATCH", + // "id": "securitycenter.organizations.assets.updateSecurityMarks", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: \"organizations/{organization_id}/assets/{asset_id}/securityMarks\" \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks\".", + // "location": "path", + // "pattern": "^organizations/[^/]+/assets/[^/]+/securityMarks$", + // "required": true, + // "type": "string" + // }, + // "startTime": { + // "description": "The time at which the updated SecurityMarks take effect. If not set uses current server time. Updates will be applied to the SecurityMarks that are active immediately preceding this time.", + // "format": "google-datetime", + // "location": "query", + // "type": "string" + // }, + // "updateMask": { + // "description": "The FieldMask to use when updating the security marks resource. The field mask must not contain duplicate fields. If empty or set to \"marks\", all marks will be replaced. Individual marks can be updated using \"marks.\".", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "SecurityMarks" + // }, + // "response": { + // "$ref": "SecurityMarks" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "securitycenter.organizations.notificationConfigs.create": + +type OrganizationsNotificationConfigsCreateCall struct { + s *Service + parent string + notificationconfig *NotificationConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a notification config. +func (r *OrganizationsNotificationConfigsService) Create(parent string, notificationconfig *NotificationConfig) *OrganizationsNotificationConfigsCreateCall { + c := &OrganizationsNotificationConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.notificationconfig = notificationconfig + return c +} + +// ConfigId sets the optional parameter "configId": Required. Unique +// identifier provided by the client within the parent scope. It must be +// between 1 and 128 characters, and contains alphanumeric characters, +// underscores or hyphens only. +func (c *OrganizationsNotificationConfigsCreateCall) ConfigId(configId string) *OrganizationsNotificationConfigsCreateCall { + c.urlParams_.Set("configId", configId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsNotificationConfigsCreateCall) Fields(s ...googleapi.Field) *OrganizationsNotificationConfigsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsNotificationConfigsCreateCall) Context(ctx context.Context) *OrganizationsNotificationConfigsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsNotificationConfigsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsNotificationConfigsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.notificationconfig) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/notificationConfigs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "securitycenter.organizations.notificationConfigs.create" call. +// Exactly one of *NotificationConfig or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *NotificationConfig.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsNotificationConfigsCreateCall) Do(opts ...googleapi.CallOption) (*NotificationConfig, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &NotificationConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a notification config.", + // "flatPath": "v1/organizations/{organizationsId}/notificationConfigs", + // "httpMethod": "POST", + // "id": "securitycenter.organizations.notificationConfigs.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "configId": { + // "description": "Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters, and contains alphanumeric characters, underscores or hyphens only.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Resource name of the new notification config's parent. Its format is \"organizations/[organization_id]\".", + // "location": "path", + // "pattern": "^organizations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/notificationConfigs", + // "request": { + // "$ref": "NotificationConfig" + // }, + // "response": { + // "$ref": "NotificationConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "securitycenter.organizations.notificationConfigs.delete": + +type OrganizationsNotificationConfigsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a notification config. +func (r *OrganizationsNotificationConfigsService) Delete(name string) *OrganizationsNotificationConfigsDeleteCall { + c := &OrganizationsNotificationConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsNotificationConfigsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsNotificationConfigsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsNotificationConfigsDeleteCall) Context(ctx context.Context) *OrganizationsNotificationConfigsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsNotificationConfigsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsNotificationConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "securitycenter.organizations.notificationConfigs.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *OrganizationsNotificationConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a notification config.", + // "flatPath": "v1/organizations/{organizationsId}/notificationConfigs/{notificationConfigsId}", + // "httpMethod": "DELETE", + // "id": "securitycenter.organizations.notificationConfigs.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the notification config to delete. Its format is \"organizations/[organization_id]/notificationConfigs/[config_id]\".", + // "location": "path", + // "pattern": "^organizations/[^/]+/notificationConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "securitycenter.organizations.notificationConfigs.get": + +type OrganizationsNotificationConfigsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a notification config. +func (r *OrganizationsNotificationConfigsService) Get(name string) *OrganizationsNotificationConfigsGetCall { + c := &OrganizationsNotificationConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsNotificationConfigsGetCall) Fields(s ...googleapi.Field) *OrganizationsNotificationConfigsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsNotificationConfigsGetCall) IfNoneMatch(entityTag string) *OrganizationsNotificationConfigsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsNotificationConfigsGetCall) Context(ctx context.Context) *OrganizationsNotificationConfigsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsNotificationConfigsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsNotificationConfigsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "securitycenter.organizations.notificationConfigs.get" call. +// Exactly one of *NotificationConfig or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *NotificationConfig.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsNotificationConfigsGetCall) Do(opts ...googleapi.CallOption) (*NotificationConfig, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &NotificationConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a notification config.", + // "flatPath": "v1/organizations/{organizationsId}/notificationConfigs/{notificationConfigsId}", + // "httpMethod": "GET", + // "id": "securitycenter.organizations.notificationConfigs.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the notification config to get. Its format is \"organizations/[organization_id]/notificationConfigs/[config_id]\".", + // "location": "path", + // "pattern": "^organizations/[^/]+/notificationConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "NotificationConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "securitycenter.organizations.notificationConfigs.list": + +type OrganizationsNotificationConfigsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists notification configs. +func (r *OrganizationsNotificationConfigsService) List(parent string) *OrganizationsNotificationConfigsListCall { + c := &OrganizationsNotificationConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return in a single response. Default is 10, minimum is +// 1, maximum is 1000. +func (c *OrganizationsNotificationConfigsListCall) PageSize(pageSize int64) *OrganizationsNotificationConfigsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value returned +// by the last `ListNotificationConfigsResponse`; indicates that this is +// a continuation of a prior `ListNotificationConfigs` call, and that +// the system should return the next page of data. +func (c *OrganizationsNotificationConfigsListCall) PageToken(pageToken string) *OrganizationsNotificationConfigsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsNotificationConfigsListCall) Fields(s ...googleapi.Field) *OrganizationsNotificationConfigsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsNotificationConfigsListCall) IfNoneMatch(entityTag string) *OrganizationsNotificationConfigsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsNotificationConfigsListCall) Context(ctx context.Context) *OrganizationsNotificationConfigsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsNotificationConfigsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsNotificationConfigsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/notificationConfigs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "securitycenter.organizations.notificationConfigs.list" call. +// Exactly one of *ListNotificationConfigsResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListNotificationConfigsResponse.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsNotificationConfigsListCall) Do(opts ...googleapi.CallOption) (*ListNotificationConfigsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListNotificationConfigsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists notification configs.", + // "flatPath": "v1/organizations/{organizationsId}/notificationConfigs", + // "httpMethod": "GET", + // "id": "securitycenter.organizations.notificationConfigs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The value returned by the last `ListNotificationConfigsResponse`; indicates that this is a continuation of a prior `ListNotificationConfigs` call, and that the system should return the next page of data.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Name of the organization to list notification configs. Its format is \"organizations/[organization_id]\".", + // "location": "path", + // "pattern": "^organizations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/notificationConfigs", + // "response": { + // "$ref": "ListNotificationConfigsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *OrganizationsNotificationConfigsListCall) Pages(ctx context.Context, f func(*ListNotificationConfigsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "securitycenter.organizations.notificationConfigs.patch": + +type OrganizationsNotificationConfigsPatchCall struct { + s *Service + name string + notificationconfig *NotificationConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a notification config. The following update fields +// are allowed: description, pubsub_topic, streaming_config.filter +func (r *OrganizationsNotificationConfigsService) Patch(name string, notificationconfig *NotificationConfig) *OrganizationsNotificationConfigsPatchCall { + c := &OrganizationsNotificationConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.notificationconfig = notificationconfig + return c +} + +// UpdateMask sets the optional parameter "updateMask": The FieldMask to +// use when updating the notification config. If empty all mutable +// fields will be updated. +func (c *OrganizationsNotificationConfigsPatchCall) UpdateMask(updateMask string) *OrganizationsNotificationConfigsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsNotificationConfigsPatchCall) Fields(s ...googleapi.Field) *OrganizationsNotificationConfigsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsNotificationConfigsPatchCall) Context(ctx context.Context) *OrganizationsNotificationConfigsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsNotificationConfigsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsNotificationConfigsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.notificationconfig) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "securitycenter.organizations.notificationConfigs.patch" call. +// Exactly one of *NotificationConfig or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *NotificationConfig.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsNotificationConfigsPatchCall) Do(opts ...googleapi.CallOption) (*NotificationConfig, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &NotificationConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": " Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter", + // "flatPath": "v1/organizations/{organizationsId}/notificationConfigs/{notificationConfigsId}", + // "httpMethod": "PATCH", + // "id": "securitycenter.organizations.notificationConfigs.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The relative resource name of this notification config. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/notificationConfigs/notify_public_bucket\".", + // "location": "path", + // "pattern": "^organizations/[^/]+/notificationConfigs/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "The FieldMask to use when updating the notification config. If empty all mutable fields will be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "NotificationConfig" + // }, + // "response": { + // "$ref": "NotificationConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "securitycenter.organizations.operations.cancel": + +type OrganizationsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. +func (r *OrganizationsOperationsService) Cancel(name string) *OrganizationsOperationsCancelCall { + c := &OrganizationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsOperationsCancelCall) Fields(s ...googleapi.Field) *OrganizationsOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsOperationsCancelCall) Context(ctx context.Context) *OrganizationsOperationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "securitycenter.organizations.operations.cancel" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *OrganizationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + // "flatPath": "v1/organizations/{organizationsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "securitycenter.organizations.operations.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be cancelled.", + // "location": "path", + // "pattern": "^organizations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:cancel", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "securitycenter.organizations.operations.delete": + +type OrganizationsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a long-running operation. This method indicates that +// the client is no longer interested in the operation result. It does +// not cancel the operation. If the server doesn't support this method, +// it returns `google.rpc.Code.UNIMPLEMENTED`. +func (r *OrganizationsOperationsService) Delete(name string) *OrganizationsOperationsDeleteCall { + c := &OrganizationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsOperationsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsOperationsDeleteCall) Context(ctx context.Context) *OrganizationsOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "securitycenter.organizations.operations.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *OrganizationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + // "flatPath": "v1/organizations/{organizationsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "securitycenter.organizations.operations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be deleted.", + // "location": "path", + // "pattern": "^organizations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "securitycenter.organizations.operations.get": -type OrganizationsAssetsRunDiscoveryCall struct { - s *Service - parent string - runassetdiscoveryrequest *RunAssetDiscoveryRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// RunDiscovery: Runs asset discovery. The discovery is tracked with a -// long-running operation. This API can only be called with limited -// frequency for an organization. If it is called too frequently the -// caller will receive a TOO_MANY_REQUESTS error. -func (r *OrganizationsAssetsService) RunDiscovery(parent string, runassetdiscoveryrequest *RunAssetDiscoveryRequest) *OrganizationsAssetsRunDiscoveryCall { - c := &OrganizationsAssetsRunDiscoveryCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.runassetdiscoveryrequest = runassetdiscoveryrequest +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +func (r *OrganizationsOperationsService) Get(name string) *OrganizationsOperationsGetCall { + c := &OrganizationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsAssetsRunDiscoveryCall) Fields(s ...googleapi.Field) *OrganizationsAssetsRunDiscoveryCall { +func (c *OrganizationsOperationsGetCall) Fields(s ...googleapi.Field) *OrganizationsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsOperationsGetCall) IfNoneMatch(entityTag string) *OrganizationsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsAssetsRunDiscoveryCall) Context(ctx context.Context) *OrganizationsAssetsRunDiscoveryCall { +func (c *OrganizationsOperationsGetCall) Context(ctx context.Context) *OrganizationsOperationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsAssetsRunDiscoveryCall) Header() http.Header { +func (c *OrganizationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsAssetsRunDiscoveryCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.runassetdiscoveryrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/assets:runDiscovery") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "securitycenter.organizations.assets.runDiscovery" call. +// Do executes the "securitycenter.organizations.operations.get" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *OrganizationsAssetsRunDiscoveryCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *OrganizationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3401,26 +6757,23 @@ func (c *OrganizationsAssetsRunDiscoveryCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Runs asset discovery. The discovery is tracked with a long-running operation. This API can only be called with limited frequency for an organization. If it is called too frequently the caller will receive a TOO_MANY_REQUESTS error.", - // "flatPath": "v1/organizations/{organizationsId}/assets:runDiscovery", - // "httpMethod": "POST", - // "id": "securitycenter.organizations.assets.runDiscovery", + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1/organizations/{organizationsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "securitycenter.organizations.operations.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. Name of the organization to run asset discovery for. Its format is \"organizations/[organization_id]\".", + // "name": { + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^organizations/[^/]+$", + // "pattern": "^organizations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/assets:runDiscovery", - // "request": { - // "$ref": "RunAssetDiscoveryRequest" - // }, + // "path": "v1/{+name}", // "response": { // "$ref": "Operation" // }, @@ -3431,86 +6784,105 @@ func (c *OrganizationsAssetsRunDiscoveryCall) Do(opts ...googleapi.CallOption) ( } -// method id "securitycenter.organizations.assets.updateSecurityMarks": +// method id "securitycenter.organizations.operations.list": -type OrganizationsAssetsUpdateSecurityMarksCall struct { - s *Service - name string - securitymarks *SecurityMarks - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// UpdateSecurityMarks: Updates security marks. -func (r *OrganizationsAssetsService) UpdateSecurityMarks(name string, securitymarks *SecurityMarks) *OrganizationsAssetsUpdateSecurityMarksCall { - c := &OrganizationsAssetsUpdateSecurityMarksCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to +// override the binding to use different resource name schemes, such as +// `users/*/operations`. To override the binding, API services can add a +// binding such as "/v1/{name=users/*}/operations" to their service +// configuration. For backwards compatibility, the default name includes +// the operations collection id, however overriding users must ensure +// the name binding is the parent resource, without the operations +// collection id. +func (r *OrganizationsOperationsService) List(name string) *OrganizationsOperationsListCall { + c := &OrganizationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.securitymarks = securitymarks return c } -// StartTime sets the optional parameter "startTime": The time at which -// the updated SecurityMarks take effect. If not set uses current server -// time. Updates will be applied to the SecurityMarks that are active -// immediately preceding this time. -func (c *OrganizationsAssetsUpdateSecurityMarksCall) StartTime(startTime string) *OrganizationsAssetsUpdateSecurityMarksCall { - c.urlParams_.Set("startTime", startTime) +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *OrganizationsOperationsListCall) Filter(filter string) *OrganizationsOperationsListCall { + c.urlParams_.Set("filter", filter) return c } -// UpdateMask sets the optional parameter "updateMask": The FieldMask to -// use when updating the security marks resource. The field mask must -// not contain duplicate fields. If empty or set to "marks", all marks -// will be replaced. Individual marks can be updated using "marks.". -func (c *OrganizationsAssetsUpdateSecurityMarksCall) UpdateMask(updateMask string) *OrganizationsAssetsUpdateSecurityMarksCall { - c.urlParams_.Set("updateMask", updateMask) +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *OrganizationsOperationsListCall) PageSize(pageSize int64) *OrganizationsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *OrganizationsOperationsListCall) PageToken(pageToken string) *OrganizationsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsAssetsUpdateSecurityMarksCall) Fields(s ...googleapi.Field) *OrganizationsAssetsUpdateSecurityMarksCall { +func (c *OrganizationsOperationsListCall) Fields(s ...googleapi.Field) *OrganizationsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsOperationsListCall) IfNoneMatch(entityTag string) *OrganizationsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsAssetsUpdateSecurityMarksCall) Context(ctx context.Context) *OrganizationsAssetsUpdateSecurityMarksCall { +func (c *OrganizationsOperationsListCall) Context(ctx context.Context) *OrganizationsOperationsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsAssetsUpdateSecurityMarksCall) Header() http.Header { +func (c *OrganizationsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsAssetsUpdateSecurityMarksCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.securitymarks) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -3521,14 +6893,14 @@ func (c *OrganizationsAssetsUpdateSecurityMarksCall) doRequest(alt string) (*htt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "securitycenter.organizations.assets.updateSecurityMarks" call. -// Exactly one of *SecurityMarks or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *SecurityMarks.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use +// Do executes the "securitycenter.organizations.operations.list" call. +// Exactly one of *ListOperationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsAssetsUpdateSecurityMarksCall) Do(opts ...googleapi.CallOption) (*SecurityMarks, error) { +func (c *OrganizationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3547,7 +6919,7 @@ func (c *OrganizationsAssetsUpdateSecurityMarksCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &SecurityMarks{ + ret := &ListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -3559,40 +6931,41 @@ func (c *OrganizationsAssetsUpdateSecurityMarksCall) Do(opts ...googleapi.CallOp } return ret, nil // { - // "description": "Updates security marks.", - // "flatPath": "v1/organizations/{organizationsId}/assets/{assetsId}/securityMarks", - // "httpMethod": "PATCH", - // "id": "securitycenter.organizations.assets.updateSecurityMarks", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "flatPath": "v1/organizations/{organizationsId}/operations", + // "httpMethod": "GET", + // "id": "securitycenter.organizations.operations.list", // "parameterOrder": [ // "name" // ], // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, // "name": { - // "description": "The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: \"organizations/{organization_id}/assets/{asset_id}/securityMarks\" \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks\".", + // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^organizations/[^/]+/assets/[^/]+/securityMarks$", + // "pattern": "^organizations/[^/]+/operations$", // "required": true, // "type": "string" // }, - // "startTime": { - // "description": "The time at which the updated SecurityMarks take effect. If not set uses current server time. Updates will be applied to the SecurityMarks that are active immediately preceding this time.", - // "format": "google-datetime", + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", // "location": "query", - // "type": "string" + // "type": "integer" // }, - // "updateMask": { - // "description": "The FieldMask to use when updating the security marks resource. The field mask must not contain duplicate fields. If empty or set to \"marks\", all marks will be replaced. Individual marks can be updated using \"marks.\".", - // "format": "google-fieldmask", + // "pageToken": { + // "description": "The standard list page token.", // "location": "query", // "type": "string" // } // }, // "path": "v1/{+name}", - // "request": { - // "$ref": "SecurityMarks" - // }, // "response": { - // "$ref": "SecurityMarks" + // "$ref": "ListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -3601,38 +6974,50 @@ func (c *OrganizationsAssetsUpdateSecurityMarksCall) Do(opts ...googleapi.CallOp } -// method id "securitycenter.organizations.notificationConfigs.create": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *OrganizationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type OrganizationsNotificationConfigsCreateCall struct { - s *Service - parent string - notificationconfig *NotificationConfig - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "securitycenter.organizations.sources.create": + +type OrganizationsSourcesCreateCall struct { + s *Service + parent string + source *Source + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a notification config. -func (r *OrganizationsNotificationConfigsService) Create(parent string, notificationconfig *NotificationConfig) *OrganizationsNotificationConfigsCreateCall { - c := &OrganizationsNotificationConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Create: Creates a source. +func (r *OrganizationsSourcesService) Create(parent string, source *Source) *OrganizationsSourcesCreateCall { + c := &OrganizationsSourcesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.notificationconfig = notificationconfig - return c -} - -// ConfigId sets the optional parameter "configId": Required. Unique -// identifier provided by the client within the parent scope. It must be -// between 1 and 128 characters, and contains alphanumeric characters, -// underscores or hyphens only. -func (c *OrganizationsNotificationConfigsCreateCall) ConfigId(configId string) *OrganizationsNotificationConfigsCreateCall { - c.urlParams_.Set("configId", configId) + c.source = source return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsNotificationConfigsCreateCall) Fields(s ...googleapi.Field) *OrganizationsNotificationConfigsCreateCall { +func (c *OrganizationsSourcesCreateCall) Fields(s ...googleapi.Field) *OrganizationsSourcesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -3640,36 +7025,36 @@ func (c *OrganizationsNotificationConfigsCreateCall) Fields(s ...googleapi.Field // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsNotificationConfigsCreateCall) Context(ctx context.Context) *OrganizationsNotificationConfigsCreateCall { +func (c *OrganizationsSourcesCreateCall) Context(ctx context.Context) *OrganizationsSourcesCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsNotificationConfigsCreateCall) Header() http.Header { +func (c *OrganizationsSourcesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsNotificationConfigsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsSourcesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.notificationconfig) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.source) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/notificationConfigs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sources") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -3682,14 +7067,14 @@ func (c *OrganizationsNotificationConfigsCreateCall) doRequest(alt string) (*htt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "securitycenter.organizations.notificationConfigs.create" call. -// Exactly one of *NotificationConfig or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *NotificationConfig.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *OrganizationsNotificationConfigsCreateCall) Do(opts ...googleapi.CallOption) (*NotificationConfig, error) { +// Do executes the "securitycenter.organizations.sources.create" call. +// Exactly one of *Source or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Source.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *OrganizationsSourcesCreateCall) Do(opts ...googleapi.CallOption) (*Source, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3708,7 +7093,7 @@ func (c *OrganizationsNotificationConfigsCreateCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &NotificationConfig{ + ret := &Source{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -3720,33 +7105,28 @@ func (c *OrganizationsNotificationConfigsCreateCall) Do(opts ...googleapi.CallOp } return ret, nil // { - // "description": "Creates a notification config.", - // "flatPath": "v1/organizations/{organizationsId}/notificationConfigs", + // "description": "Creates a source.", + // "flatPath": "v1/organizations/{organizationsId}/sources", // "httpMethod": "POST", - // "id": "securitycenter.organizations.notificationConfigs.create", + // "id": "securitycenter.organizations.sources.create", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "configId": { - // "description": "Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters, and contains alphanumeric characters, underscores or hyphens only.", - // "location": "query", - // "type": "string" - // }, // "parent": { - // "description": "Required. Resource name of the new notification config's parent. Its format is \"organizations/[organization_id]\".", + // "description": "Required. Resource name of the new source's parent. Its format should be \"organizations/[organization_id]\".", // "location": "path", // "pattern": "^organizations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/notificationConfigs", + // "path": "v1/{+parent}/sources", // "request": { - // "$ref": "NotificationConfig" + // "$ref": "Source" // }, // "response": { - // "$ref": "NotificationConfig" + // "$ref": "Source" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -3755,19 +7135,20 @@ func (c *OrganizationsNotificationConfigsCreateCall) Do(opts ...googleapi.CallOp } -// method id "securitycenter.organizations.notificationConfigs.delete": +// method id "securitycenter.organizations.sources.get": -type OrganizationsNotificationConfigsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsSourcesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a notification config. -func (r *OrganizationsNotificationConfigsService) Delete(name string) *OrganizationsNotificationConfigsDeleteCall { - c := &OrganizationsNotificationConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Get: Gets a source. +func (r *OrganizationsSourcesService) Get(name string) *OrganizationsSourcesGetCall { + c := &OrganizationsSourcesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -3775,41 +7156,54 @@ func (r *OrganizationsNotificationConfigsService) Delete(name string) *Organizat // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsNotificationConfigsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsNotificationConfigsDeleteCall { +func (c *OrganizationsSourcesGetCall) Fields(s ...googleapi.Field) *OrganizationsSourcesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsSourcesGetCall) IfNoneMatch(entityTag string) *OrganizationsSourcesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsNotificationConfigsDeleteCall) Context(ctx context.Context) *OrganizationsNotificationConfigsDeleteCall { +func (c *OrganizationsSourcesGetCall) Context(ctx context.Context) *OrganizationsSourcesGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsNotificationConfigsDeleteCall) Header() http.Header { +func (c *OrganizationsSourcesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsNotificationConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsSourcesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -3820,14 +7214,14 @@ func (c *OrganizationsNotificationConfigsDeleteCall) doRequest(alt string) (*htt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "securitycenter.organizations.notificationConfigs.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// Do executes the "securitycenter.organizations.sources.get" call. +// Exactly one of *Source or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) +// *Source.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *OrganizationsNotificationConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +func (c *OrganizationsSourcesGetCall) Do(opts ...googleapi.CallOption) (*Source, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3846,7 +7240,7 @@ func (c *OrganizationsNotificationConfigsDeleteCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Empty{ + ret := &Source{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -3858,25 +7252,25 @@ func (c *OrganizationsNotificationConfigsDeleteCall) Do(opts ...googleapi.CallOp } return ret, nil // { - // "description": "Deletes a notification config.", - // "flatPath": "v1/organizations/{organizationsId}/notificationConfigs/{notificationConfigsId}", - // "httpMethod": "DELETE", - // "id": "securitycenter.organizations.notificationConfigs.delete", + // "description": "Gets a source.", + // "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}", + // "httpMethod": "GET", + // "id": "securitycenter.organizations.sources.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Name of the notification config to delete. Its format is \"organizations/[organization_id]/notificationConfigs/[config_id]\".", + // "description": "Required. Relative resource name of the source. Its format is \"organizations/[organization_id]/source/[source_id]\".", // "location": "path", - // "pattern": "^organizations/[^/]+/notificationConfigs/[^/]+$", + // "pattern": "^organizations/[^/]+/sources/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "Empty" + // "$ref": "Source" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -3885,93 +7279,86 @@ func (c *OrganizationsNotificationConfigsDeleteCall) Do(opts ...googleapi.CallOp } -// method id "securitycenter.organizations.notificationConfigs.get": +// method id "securitycenter.organizations.sources.getIamPolicy": -type OrganizationsNotificationConfigsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsSourcesGetIamPolicyCall struct { + s *Service + resource string + getiampolicyrequest *GetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets a notification config. -func (r *OrganizationsNotificationConfigsService) Get(name string) *OrganizationsNotificationConfigsGetCall { - c := &OrganizationsNotificationConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// GetIamPolicy: Gets the access control policy on the specified Source. +func (r *OrganizationsSourcesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *OrganizationsSourcesGetIamPolicyCall { + c := &OrganizationsSourcesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.getiampolicyrequest = getiampolicyrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsNotificationConfigsGetCall) Fields(s ...googleapi.Field) *OrganizationsNotificationConfigsGetCall { +func (c *OrganizationsSourcesGetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsSourcesGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsNotificationConfigsGetCall) IfNoneMatch(entityTag string) *OrganizationsNotificationConfigsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsNotificationConfigsGetCall) Context(ctx context.Context) *OrganizationsNotificationConfigsGetCall { +func (c *OrganizationsSourcesGetIamPolicyCall) Context(ctx context.Context) *OrganizationsSourcesGetIamPolicyCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsNotificationConfigsGetCall) Header() http.Header { +func (c *OrganizationsSourcesGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsNotificationConfigsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsSourcesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.getiampolicyrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "securitycenter.organizations.notificationConfigs.get" call. -// Exactly one of *NotificationConfig or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *NotificationConfig.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *OrganizationsNotificationConfigsGetCall) Do(opts ...googleapi.CallOption) (*NotificationConfig, error) { +// Do executes the "securitycenter.organizations.sources.getIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *OrganizationsSourcesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3990,7 +7377,7 @@ func (c *OrganizationsNotificationConfigsGetCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &NotificationConfig{ + ret := &Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4002,25 +7389,28 @@ func (c *OrganizationsNotificationConfigsGetCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Gets a notification config.", - // "flatPath": "v1/organizations/{organizationsId}/notificationConfigs/{notificationConfigsId}", - // "httpMethod": "GET", - // "id": "securitycenter.organizations.notificationConfigs.get", + // "description": "Gets the access control policy on the specified Source.", + // "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}:getIamPolicy", + // "httpMethod": "POST", + // "id": "securitycenter.organizations.sources.getIamPolicy", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "name": { - // "description": "Required. Name of the notification config to get. Its format is \"organizations/[organization_id]/notificationConfigs/[config_id]\".", + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", // "location": "path", - // "pattern": "^organizations/[^/]+/notificationConfigs/[^/]+$", + // "pattern": "^organizations/[^/]+/sources/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+resource}:getIamPolicy", + // "request": { + // "$ref": "GetIamPolicyRequest" + // }, // "response": { - // "$ref": "NotificationConfig" + // "$ref": "Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -4029,9 +7419,9 @@ func (c *OrganizationsNotificationConfigsGetCall) Do(opts ...googleapi.CallOptio } -// method id "securitycenter.organizations.notificationConfigs.list": +// method id "securitycenter.organizations.sources.list": -type OrganizationsNotificationConfigsListCall struct { +type OrganizationsSourcesListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -4040,9 +7430,9 @@ type OrganizationsNotificationConfigsListCall struct { header_ http.Header } -// List: Lists notification configs. -func (r *OrganizationsNotificationConfigsService) List(parent string) *OrganizationsNotificationConfigsListCall { - c := &OrganizationsNotificationConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// List: Lists all sources belonging to an organization. +func (r *OrganizationsSourcesService) List(parent string) *OrganizationsSourcesListCall { + c := &OrganizationsSourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } @@ -4050,16 +7440,16 @@ func (r *OrganizationsNotificationConfigsService) List(parent string) *Organizat // PageSize sets the optional parameter "pageSize": The maximum number // of results to return in a single response. Default is 10, minimum is // 1, maximum is 1000. -func (c *OrganizationsNotificationConfigsListCall) PageSize(pageSize int64) *OrganizationsNotificationConfigsListCall { +func (c *OrganizationsSourcesListCall) PageSize(pageSize int64) *OrganizationsSourcesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The value returned -// by the last `ListNotificationConfigsResponse`; indicates that this is -// a continuation of a prior `ListNotificationConfigs` call, and that -// the system should return the next page of data. -func (c *OrganizationsNotificationConfigsListCall) PageToken(pageToken string) *OrganizationsNotificationConfigsListCall { +// by the last `ListSourcesResponse`; indicates that this is a +// continuation of a prior `ListSources` call, and that the system +// should return the next page of data. +func (c *OrganizationsSourcesListCall) PageToken(pageToken string) *OrganizationsSourcesListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -4067,7 +7457,7 @@ func (c *OrganizationsNotificationConfigsListCall) PageToken(pageToken string) * // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsNotificationConfigsListCall) Fields(s ...googleapi.Field) *OrganizationsNotificationConfigsListCall { +func (c *OrganizationsSourcesListCall) Fields(s ...googleapi.Field) *OrganizationsSourcesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4077,7 +7467,7 @@ func (c *OrganizationsNotificationConfigsListCall) Fields(s ...googleapi.Field) // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OrganizationsNotificationConfigsListCall) IfNoneMatch(entityTag string) *OrganizationsNotificationConfigsListCall { +func (c *OrganizationsSourcesListCall) IfNoneMatch(entityTag string) *OrganizationsSourcesListCall { c.ifNoneMatch_ = entityTag return c } @@ -4085,23 +7475,23 @@ func (c *OrganizationsNotificationConfigsListCall) IfNoneMatch(entityTag string) // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsNotificationConfigsListCall) Context(ctx context.Context) *OrganizationsNotificationConfigsListCall { +func (c *OrganizationsSourcesListCall) Context(ctx context.Context) *OrganizationsSourcesListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsNotificationConfigsListCall) Header() http.Header { +func (c *OrganizationsSourcesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsNotificationConfigsListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsSourcesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4112,7 +7502,7 @@ func (c *OrganizationsNotificationConfigsListCall) doRequest(alt string) (*http. var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/notificationConfigs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sources") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -4125,14 +7515,14 @@ func (c *OrganizationsNotificationConfigsListCall) doRequest(alt string) (*http. return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "securitycenter.organizations.notificationConfigs.list" call. -// Exactly one of *ListNotificationConfigsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListNotificationConfigsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was +// Do executes the "securitycenter.organizations.sources.list" call. +// Exactly one of *ListSourcesResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListSourcesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsNotificationConfigsListCall) Do(opts ...googleapi.CallOption) (*ListNotificationConfigsResponse, error) { +func (c *OrganizationsSourcesListCall) Do(opts ...googleapi.CallOption) (*ListSourcesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4151,7 +7541,7 @@ func (c *OrganizationsNotificationConfigsListCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListNotificationConfigsResponse{ + ret := &ListSourcesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4163,10 +7553,10 @@ func (c *OrganizationsNotificationConfigsListCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Lists notification configs.", - // "flatPath": "v1/organizations/{organizationsId}/notificationConfigs", + // "description": "Lists all sources belonging to an organization.", + // "flatPath": "v1/organizations/{organizationsId}/sources", // "httpMethod": "GET", - // "id": "securitycenter.organizations.notificationConfigs.list", + // "id": "securitycenter.organizations.sources.list", // "parameterOrder": [ // "parent" // ], @@ -4178,21 +7568,21 @@ func (c *OrganizationsNotificationConfigsListCall) Do(opts ...googleapi.CallOpti // "type": "integer" // }, // "pageToken": { - // "description": "The value returned by the last `ListNotificationConfigsResponse`; indicates that this is a continuation of a prior `ListNotificationConfigs` call, and that the system should return the next page of data.", + // "description": "The value returned by the last `ListSourcesResponse`; indicates that this is a continuation of a prior `ListSources` call, and that the system should return the next page of data.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. Name of the organization to list notification configs. Its format is \"organizations/[organization_id]\".", + // "description": "Required. Resource name of the parent of sources to list. Its format should be \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", // "location": "path", // "pattern": "^organizations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/notificationConfigs", + // "path": "v1/{+parent}/sources", // "response": { - // "$ref": "ListNotificationConfigsResponse" + // "$ref": "ListSourcesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -4204,7 +7594,7 @@ func (c *OrganizationsNotificationConfigsListCall) Do(opts ...googleapi.CallOpti // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *OrganizationsNotificationConfigsListCall) Pages(ctx context.Context, f func(*ListNotificationConfigsResponse) error) error { +func (c *OrganizationsSourcesListCall) Pages(ctx context.Context, f func(*ListSourcesResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -4222,30 +7612,29 @@ func (c *OrganizationsNotificationConfigsListCall) Pages(ctx context.Context, f } } -// method id "securitycenter.organizations.notificationConfigs.patch": +// method id "securitycenter.organizations.sources.patch": -type OrganizationsNotificationConfigsPatchCall struct { - s *Service - name string - notificationconfig *NotificationConfig - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsSourcesPatchCall struct { + s *Service + name string + source *Source + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates a notification config. The following update fields -// are allowed: description, pubsub_topic, streaming_config.filter -func (r *OrganizationsNotificationConfigsService) Patch(name string, notificationconfig *NotificationConfig) *OrganizationsNotificationConfigsPatchCall { - c := &OrganizationsNotificationConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Patch: Updates a source. +func (r *OrganizationsSourcesService) Patch(name string, source *Source) *OrganizationsSourcesPatchCall { + c := &OrganizationsSourcesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.notificationconfig = notificationconfig + c.source = source return c } // UpdateMask sets the optional parameter "updateMask": The FieldMask to -// use when updating the notification config. If empty all mutable -// fields will be updated. -func (c *OrganizationsNotificationConfigsPatchCall) UpdateMask(updateMask string) *OrganizationsNotificationConfigsPatchCall { +// use when updating the source resource. If empty all mutable fields +// will be updated. +func (c *OrganizationsSourcesPatchCall) UpdateMask(updateMask string) *OrganizationsSourcesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } @@ -4253,7 +7642,7 @@ func (c *OrganizationsNotificationConfigsPatchCall) UpdateMask(updateMask string // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsNotificationConfigsPatchCall) Fields(s ...googleapi.Field) *OrganizationsNotificationConfigsPatchCall { +func (c *OrganizationsSourcesPatchCall) Fields(s ...googleapi.Field) *OrganizationsSourcesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4261,29 +7650,29 @@ func (c *OrganizationsNotificationConfigsPatchCall) Fields(s ...googleapi.Field) // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsNotificationConfigsPatchCall) Context(ctx context.Context) *OrganizationsNotificationConfigsPatchCall { +func (c *OrganizationsSourcesPatchCall) Context(ctx context.Context) *OrganizationsSourcesPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsNotificationConfigsPatchCall) Header() http.Header { +func (c *OrganizationsSourcesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsNotificationConfigsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsSourcesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.notificationconfig) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.source) if err != nil { return nil, err } @@ -4303,14 +7692,14 @@ func (c *OrganizationsNotificationConfigsPatchCall) doRequest(alt string) (*http return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "securitycenter.organizations.notificationConfigs.patch" call. -// Exactly one of *NotificationConfig or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *NotificationConfig.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *OrganizationsNotificationConfigsPatchCall) Do(opts ...googleapi.CallOption) (*NotificationConfig, error) { +// Do executes the "securitycenter.organizations.sources.patch" call. +// Exactly one of *Source or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Source.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *OrganizationsSourcesPatchCall) Do(opts ...googleapi.CallOption) (*Source, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4329,7 +7718,7 @@ func (c *OrganizationsNotificationConfigsPatchCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &NotificationConfig{ + ret := &Source{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4341,23 +7730,23 @@ func (c *OrganizationsNotificationConfigsPatchCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": " Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter", - // "flatPath": "v1/organizations/{organizationsId}/notificationConfigs/{notificationConfigsId}", + // "description": "Updates a source.", + // "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}", // "httpMethod": "PATCH", - // "id": "securitycenter.organizations.notificationConfigs.patch", + // "id": "securitycenter.organizations.sources.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The relative resource name of this notification config. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/notificationConfigs/notify_public_bucket\".", + // "description": "The relative resource name of this source. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/sources/{source_id}\"", // "location": "path", - // "pattern": "^organizations/[^/]+/notificationConfigs/[^/]+$", + // "pattern": "^organizations/[^/]+/sources/[^/]+$", // "required": true, // "type": "string" // }, // "updateMask": { - // "description": "The FieldMask to use when updating the notification config. If empty all mutable fields will be updated.", + // "description": "The FieldMask to use when updating the source resource. If empty all mutable fields will be updated.", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -4365,10 +7754,10 @@ func (c *OrganizationsNotificationConfigsPatchCall) Do(opts ...googleapi.CallOpt // }, // "path": "v1/{+name}", // "request": { - // "$ref": "NotificationConfig" + // "$ref": "Source" // }, // "response": { - // "$ref": "NotificationConfig" + // "$ref": "Source" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -4377,36 +7766,29 @@ func (c *OrganizationsNotificationConfigsPatchCall) Do(opts ...googleapi.CallOpt } -// method id "securitycenter.organizations.operations.cancel": +// method id "securitycenter.organizations.sources.setIamPolicy": -type OrganizationsOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsSourcesSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. -// The server makes a best effort to cancel the operation, but success -// is not guaranteed. If the server doesn't support this method, it -// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use -// Operations.GetOperation or other methods to check whether the -// cancellation succeeded or whether the operation completed despite -// cancellation. On successful cancellation, the operation is not -// deleted; instead, it becomes an operation with an Operation.error -// value with a google.rpc.Status.code of 1, corresponding to -// `Code.CANCELLED`. -func (r *OrganizationsOperationsService) Cancel(name string) *OrganizationsOperationsCancelCall { - c := &OrganizationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// SetIamPolicy: Sets the access control policy on the specified Source. +func (r *OrganizationsSourcesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *OrganizationsSourcesSetIamPolicyCall { + c := &OrganizationsSourcesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsOperationsCancelCall) Fields(s ...googleapi.Field) *OrganizationsOperationsCancelCall { +func (c *OrganizationsSourcesSetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsSourcesSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4414,31 +7796,36 @@ func (c *OrganizationsOperationsCancelCall) Fields(s ...googleapi.Field) *Organi // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsOperationsCancelCall) Context(ctx context.Context) *OrganizationsOperationsCancelCall { +func (c *OrganizationsSourcesSetIamPolicyCall) Context(ctx context.Context) *OrganizationsSourcesSetIamPolicyCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsOperationsCancelCall) Header() http.Header { +func (c *OrganizationsSourcesSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsSourcesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -4446,19 +7833,19 @@ func (c *OrganizationsOperationsCancelCall) doRequest(alt string) (*http.Respons } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "securitycenter.organizations.operations.cancel" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// Do executes the "securitycenter.organizations.sources.setIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) +// *Policy.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *OrganizationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +func (c *OrganizationsSourcesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4477,7 +7864,7 @@ func (c *OrganizationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*E if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Empty{ + ret := &Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4489,25 +7876,28 @@ func (c *OrganizationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*E } return ret, nil // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - // "flatPath": "v1/organizations/{organizationsId}/operations/{operationsId}:cancel", + // "description": "Sets the access control policy on the specified Source.", + // "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}:setIamPolicy", // "httpMethod": "POST", - // "id": "securitycenter.organizations.operations.cancel", + // "id": "securitycenter.organizations.sources.setIamPolicy", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", // "location": "path", - // "pattern": "^organizations/[^/]+/operations/[^/]+$", + // "pattern": "^organizations/[^/]+/sources/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}:cancel", + // "path": "v1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "SetIamPolicyRequest" + // }, // "response": { - // "$ref": "Empty" + // "$ref": "Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -4516,30 +7906,30 @@ func (c *OrganizationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*E } -// method id "securitycenter.organizations.operations.delete": +// method id "securitycenter.organizations.sources.testIamPermissions": -type OrganizationsOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsSourcesTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a long-running operation. This method indicates that -// the client is no longer interested in the operation result. It does -// not cancel the operation. If the server doesn't support this method, -// it returns `google.rpc.Code.UNIMPLEMENTED`. -func (r *OrganizationsOperationsService) Delete(name string) *OrganizationsOperationsDeleteCall { - c := &OrganizationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// TestIamPermissions: Returns the permissions that a caller has on the +// specified source. +func (r *OrganizationsSourcesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *OrganizationsSourcesTestIamPermissionsCall { + c := &OrganizationsSourcesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsOperationsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsOperationsDeleteCall { +func (c *OrganizationsSourcesTestIamPermissionsCall) Fields(s ...googleapi.Field) *OrganizationsSourcesTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4547,51 +7937,56 @@ func (c *OrganizationsOperationsDeleteCall) Fields(s ...googleapi.Field) *Organi // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsOperationsDeleteCall) Context(ctx context.Context) *OrganizationsOperationsDeleteCall { +func (c *OrganizationsSourcesTestIamPermissionsCall) Context(ctx context.Context) *OrganizationsSourcesTestIamPermissionsCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsOperationsDeleteCall) Header() http.Header { +func (c *OrganizationsSourcesTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsSourcesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "securitycenter.organizations.operations.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *OrganizationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "securitycenter.organizations.sources.testIamPermissions" call. +// Exactly one of *TestIamPermissionsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsSourcesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4610,7 +8005,7 @@ func (c *OrganizationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*E if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Empty{ + ret := &TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4622,25 +8017,28 @@ func (c *OrganizationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*E } return ret, nil // { - // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1/organizations/{organizationsId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "securitycenter.organizations.operations.delete", + // "description": "Returns the permissions that a caller has on the specified source.", + // "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "securitycenter.organizations.sources.testIamPermissions", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", // "location": "path", - // "pattern": "^organizations/[^/]+/operations/[^/]+$", + // "pattern": "^organizations/[^/]+/sources/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+resource}:testIamPermissions", + // "request": { + // "$ref": "TestIamPermissionsRequest" + // }, // "response": { - // "$ref": "Empty" + // "$ref": "TestIamPermissionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -4649,95 +8047,96 @@ func (c *OrganizationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*E } -// method id "securitycenter.organizations.operations.get": +// method id "securitycenter.organizations.sources.findings.create": -type OrganizationsOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsSourcesFindingsCreateCall struct { + s *Service + parent string + finding *Finding + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. -func (r *OrganizationsOperationsService) Get(name string) *OrganizationsOperationsGetCall { - c := &OrganizationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// Create: Creates a finding. The corresponding source must exist for +// finding creation to succeed. +func (r *OrganizationsSourcesFindingsService) Create(parent string, finding *Finding) *OrganizationsSourcesFindingsCreateCall { + c := &OrganizationsSourcesFindingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.finding = finding + return c +} + +// FindingId sets the optional parameter "findingId": Required. Unique +// identifier provided by the client within the parent scope. It must be +// alphanumeric and less than or equal to 32 characters and greater than +// 0 characters in length. +func (c *OrganizationsSourcesFindingsCreateCall) FindingId(findingId string) *OrganizationsSourcesFindingsCreateCall { + c.urlParams_.Set("findingId", findingId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsOperationsGetCall) Fields(s ...googleapi.Field) *OrganizationsOperationsGetCall { +func (c *OrganizationsSourcesFindingsCreateCall) Fields(s ...googleapi.Field) *OrganizationsSourcesFindingsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsOperationsGetCall) IfNoneMatch(entityTag string) *OrganizationsOperationsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsOperationsGetCall) Context(ctx context.Context) *OrganizationsOperationsGetCall { +func (c *OrganizationsSourcesFindingsCreateCall) Context(ctx context.Context) *OrganizationsSourcesFindingsCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsOperationsGetCall) Header() http.Header { +func (c *OrganizationsSourcesFindingsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsSourcesFindingsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.finding) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/findings") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "securitycenter.organizations.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *OrganizationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// Do executes the "securitycenter.organizations.sources.findings.create" call. +// Exactly one of *Finding or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Finding.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *OrganizationsSourcesFindingsCreateCall) Do(opts ...googleapi.CallOption) (*Finding, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4756,7 +8155,7 @@ func (c *OrganizationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Oper if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Operation{ + ret := &Finding{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4768,25 +8167,33 @@ func (c *OrganizationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Oper } return ret, nil // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1/organizations/{organizationsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "securitycenter.organizations.operations.get", + // "description": "Creates a finding. The corresponding source must exist for finding creation to succeed.", + // "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}/findings", + // "httpMethod": "POST", + // "id": "securitycenter.organizations.sources.findings.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource.", + // "findingId": { + // "description": "Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Resource name of the new finding's parent. Its format should be \"organizations/[organization_id]/sources/[source_id]\".", // "location": "path", - // "pattern": "^organizations/[^/]+/operations/[^/]+$", + // "pattern": "^organizations/[^/]+/sources/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/findings", + // "request": { + // "$ref": "Finding" + // }, // "response": { - // "$ref": "Operation" + // "$ref": "Finding" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -4795,123 +8202,91 @@ func (c *OrganizationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Oper } -// method id "securitycenter.organizations.operations.list": - -type OrganizationsOperationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. -func (r *OrganizationsOperationsService) List(name string) *OrganizationsOperationsListCall { - c := &OrganizationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *OrganizationsOperationsListCall) Filter(filter string) *OrganizationsOperationsListCall { - c.urlParams_.Set("filter", filter) - return c -} +// method id "securitycenter.organizations.sources.findings.group": -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *OrganizationsOperationsListCall) PageSize(pageSize int64) *OrganizationsOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c +type OrganizationsSourcesFindingsGroupCall struct { + s *Service + parent string + groupfindingsrequest *GroupFindingsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *OrganizationsOperationsListCall) PageToken(pageToken string) *OrganizationsOperationsListCall { - c.urlParams_.Set("pageToken", pageToken) +// Group: Filters an organization or source's findings and groups them +// by their specified properties. To group across all sources provide a +// `-` as the source id. Example: +// /v1/organizations/{organization_id}/sources/-/findings, +// /v1/folders/{folder_id}/sources/-/findings, +// /v1/projects/{project_id}/sources/-/findings +func (r *OrganizationsSourcesFindingsService) Group(parent string, groupfindingsrequest *GroupFindingsRequest) *OrganizationsSourcesFindingsGroupCall { + c := &OrganizationsSourcesFindingsGroupCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.groupfindingsrequest = groupfindingsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsOperationsListCall) Fields(s ...googleapi.Field) *OrganizationsOperationsListCall { +func (c *OrganizationsSourcesFindingsGroupCall) Fields(s ...googleapi.Field) *OrganizationsSourcesFindingsGroupCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsOperationsListCall) IfNoneMatch(entityTag string) *OrganizationsOperationsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsOperationsListCall) Context(ctx context.Context) *OrganizationsOperationsListCall { +func (c *OrganizationsSourcesFindingsGroupCall) Context(ctx context.Context) *OrganizationsSourcesFindingsGroupCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsOperationsListCall) Header() http.Header { +func (c *OrganizationsSourcesFindingsGroupCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsSourcesFindingsGroupCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.groupfindingsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/findings:group") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "securitycenter.organizations.operations.list" call. -// Exactly one of *ListOperationsResponse or error will be non-nil. Any +// Do executes the "securitycenter.organizations.sources.findings.group" call. +// Exactly one of *GroupFindingsResponse or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either -// *ListOperationsResponse.ServerResponse.Header or (if a response was +// *GroupFindingsResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { +func (c *OrganizationsSourcesFindingsGroupCall) Do(opts ...googleapi.CallOption) (*GroupFindingsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4930,7 +8305,7 @@ func (c *OrganizationsOperationsListCall) Do(opts ...googleapi.CallOption) (*Lis if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListOperationsResponse{ + ret := &GroupFindingsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4940,43 +8315,30 @@ func (c *OrganizationsOperationsListCall) Do(opts ...googleapi.CallOption) (*Lis if err := gensupport.DecodeResponse(target, res); err != nil { return nil, err } - return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", - // "flatPath": "v1/organizations/{organizationsId}/operations", - // "httpMethod": "GET", - // "id": "securitycenter.organizations.operations.list", + return ret, nil + // { + // "description": "Filters an organization or source's findings and groups them by their specified properties. To group across all sources provide a `-` as the source id. Example: /v1/organizations/{organization_id}/sources/-/findings, /v1/folders/{folder_id}/sources/-/findings, /v1/projects/{project_id}/sources/-/findings", + // "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}/findings:group", + // "httpMethod": "POST", + // "id": "securitycenter.organizations.sources.findings.group", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", + // "parent": { + // "description": "Required. Name of the source to groupBy. Its format is \"organizations/[organization_id]/sources/[source_id]\", folders/[folder_id]/sources/[source_id], or projects/[project_id]/sources/[source_id]. To groupBy across all sources provide a source_id of `-`. For example: organizations/{organization_id}/sources/-, folders/{folder_id}/sources/-, or projects/{project_id}/sources/-", // "location": "path", - // "pattern": "^organizations/[^/]+/operations$", + // "pattern": "^organizations/[^/]+/sources/[^/]+$", // "required": true, // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/findings:group", + // "request": { + // "$ref": "GroupFindingsRequest" + // }, // "response": { - // "$ref": "ListOperationsResponse" + // "$ref": "GroupFindingsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -4988,9 +8350,9 @@ func (c *OrganizationsOperationsListCall) Do(opts ...googleapi.CallOption) (*Lis // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *OrganizationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { +func (c *OrganizationsSourcesFindingsGroupCall) Pages(ctx context.Context, f func(*GroupFindingsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer func(pt string) { c.groupfindingsrequest.PageToken = pt }(c.groupfindingsrequest.PageToken) // reset paging to original point for { x, err := c.Do() if err != nil { @@ -5002,72 +8364,189 @@ func (c *OrganizationsOperationsListCall) Pages(ctx context.Context, f func(*Lis if x.NextPageToken == "" { return nil } - c.PageToken(x.NextPageToken) + c.groupfindingsrequest.PageToken = x.NextPageToken } } -// method id "securitycenter.organizations.sources.create": +// method id "securitycenter.organizations.sources.findings.list": -type OrganizationsSourcesCreateCall struct { - s *Service - parent string - source *Source - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsSourcesFindingsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a source. -func (r *OrganizationsSourcesService) Create(parent string, source *Source) *OrganizationsSourcesCreateCall { - c := &OrganizationsSourcesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// List: Lists an organization or source's findings. To list across all +// sources provide a `-` as the source id. Example: +// /v1/organizations/{organization_id}/sources/-/findings +func (r *OrganizationsSourcesFindingsService) List(parent string) *OrganizationsSourcesFindingsListCall { + c := &OrganizationsSourcesFindingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.source = source + return c +} + +// CompareDuration sets the optional parameter "compareDuration": When +// compare_duration is set, the ListFindingsResult's "state_change" +// attribute is updated to indicate whether the finding had its state +// changed, the finding's state remained unchanged, or if the finding +// was added in any state during the compare_duration period of time +// that precedes the read_time. This is the time between (read_time - +// compare_duration) and read_time. The state_change value is derived +// based on the presence and state of the finding at the two points in +// time. Intermediate state changes between the two times don't affect +// the result. For example, the results aren't affected if the finding +// is made inactive and then active again. Possible "state_change" +// values when compare_duration is specified: * "CHANGED": indicates +// that the finding was present and matched the given filter at the +// start of compare_duration, but changed its state at read_time. * +// "UNCHANGED": indicates that the finding was present and matched the +// given filter at the start of compare_duration and did not change +// state at read_time. * "ADDED": indicates that the finding did not +// match the given filter or was not present at the start of +// compare_duration, but was present at read_time. * "REMOVED": +// indicates that the finding was present and matched the filter at the +// start of compare_duration, but did not match the filter at read_time. +// If compare_duration is not specified, then the only possible +// state_change is "UNUSED", which will be the state_change set for all +// findings present at read_time. +func (c *OrganizationsSourcesFindingsListCall) CompareDuration(compareDuration string) *OrganizationsSourcesFindingsListCall { + c.urlParams_.Set("compareDuration", compareDuration) + return c +} + +// FieldMask sets the optional parameter "fieldMask": A field mask to +// specify the Finding fields to be listed in the response. An empty +// field mask will list all fields. +func (c *OrganizationsSourcesFindingsListCall) FieldMask(fieldMask string) *OrganizationsSourcesFindingsListCall { + c.urlParams_.Set("fieldMask", fieldMask) + return c +} + +// Filter sets the optional parameter "filter": Expression that defines +// the filter to apply across findings. The expression is a list of one +// or more restrictions combined via logical operators `AND` and `OR`. +// Parentheses are supported, and `OR` has higher precedence than `AND`. +// Restrictions have the form ` ` and may have a `-` character in front +// of them to indicate negation. Examples include: * name * +// source_properties.a_property * security_marks.marks.marka The +// supported operators are: * `=` for all value types. * `>`, `<`, `>=`, +// `<=` for integer values. * `:`, meaning substring matching, for +// strings. The supported value types are: * string literals in quotes. +// * integer literals without quotes. * boolean literals `true` and +// `false` without quotes. The following field and operator combinations +// are supported: name: `=` parent: `=`, `:` resource_name: `=`, `:` +// state: `=`, `:` category: `=`, `:` external_uri: `=`, `:` event_time: +// `=`, `>`, `<`, `>=`, `<=` Usage: This should be milliseconds since +// epoch or an RFC3339 string. Examples: `event_time = +// "2019-06-10T16:07:18-07:00" `event_time = 1560208038000` +// security_marks.marks: `=`, `:` source_properties: `=`, `:`, `>`, `<`, +// `>=`, `<=` For example, `source_properties.size = 100` is a valid +// filter string. Use a partial match on the empty string to filter +// based on a property existing: `source_properties.my_property : "" +// Use a negated partial match on the empty string to filter based on a +// property not existing: `-source_properties.my_property : "" +func (c *OrganizationsSourcesFindingsListCall) Filter(filter string) *OrganizationsSourcesFindingsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Expression that +// defines what fields and order to use for sorting. The string value +// should follow SQL syntax: comma separated list of fields. For +// example: "name,resource_properties.a_property". The default sorting +// order is ascending. To specify descending order for a field, a suffix +// " desc" should be appended to the field name. For example: "name +// desc,source_properties.a_property". Redundant space characters in the +// syntax are insignificant. "name desc,source_properties.a_property" +// and " name desc , source_properties.a_property " are equivalent. The +// following fields are supported: name parent state category +// resource_name event_time source_properties security_marks.marks +func (c *OrganizationsSourcesFindingsListCall) OrderBy(orderBy string) *OrganizationsSourcesFindingsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return in a single response. Default is 10, minimum is +// 1, maximum is 1000. +func (c *OrganizationsSourcesFindingsListCall) PageSize(pageSize int64) *OrganizationsSourcesFindingsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value returned +// by the last `ListFindingsResponse`; indicates that this is a +// continuation of a prior `ListFindings` call, and that the system +// should return the next page of data. +func (c *OrganizationsSourcesFindingsListCall) PageToken(pageToken string) *OrganizationsSourcesFindingsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadTime sets the optional parameter "readTime": Time used as a +// reference point when filtering findings. The filter is limited to +// findings existing at the supplied time and their values are those at +// that specific time. Absence of this field will default to the API's +// version of NOW. +func (c *OrganizationsSourcesFindingsListCall) ReadTime(readTime string) *OrganizationsSourcesFindingsListCall { + c.urlParams_.Set("readTime", readTime) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsSourcesCreateCall) Fields(s ...googleapi.Field) *OrganizationsSourcesCreateCall { +func (c *OrganizationsSourcesFindingsListCall) Fields(s ...googleapi.Field) *OrganizationsSourcesFindingsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsSourcesFindingsListCall) IfNoneMatch(entityTag string) *OrganizationsSourcesFindingsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsSourcesCreateCall) Context(ctx context.Context) *OrganizationsSourcesCreateCall { +func (c *OrganizationsSourcesFindingsListCall) Context(ctx context.Context) *OrganizationsSourcesFindingsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsSourcesCreateCall) Header() http.Header { +func (c *OrganizationsSourcesFindingsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsSourcesCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsSourcesFindingsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.source) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sources") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/findings") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -5078,14 +8557,14 @@ func (c *OrganizationsSourcesCreateCall) doRequest(alt string) (*http.Response, return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "securitycenter.organizations.sources.create" call. -// Exactly one of *Source or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Source.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *OrganizationsSourcesCreateCall) Do(opts ...googleapi.CallOption) (*Source, error) { +// Do executes the "securitycenter.organizations.sources.findings.list" call. +// Exactly one of *ListFindingsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListFindingsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsSourcesFindingsListCall) Do(opts ...googleapi.CallOption) (*ListFindingsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5104,7 +8583,7 @@ func (c *OrganizationsSourcesCreateCall) Do(opts ...googleapi.CallOption) (*Sour if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Source{ + ret := &ListFindingsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5116,28 +8595,64 @@ func (c *OrganizationsSourcesCreateCall) Do(opts ...googleapi.CallOption) (*Sour } return ret, nil // { - // "description": "Creates a source.", - // "flatPath": "v1/organizations/{organizationsId}/sources", - // "httpMethod": "POST", - // "id": "securitycenter.organizations.sources.create", + // "description": "Lists an organization or source's findings. To list across all sources provide a `-` as the source id. Example: /v1/organizations/{organization_id}/sources/-/findings", + // "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}/findings", + // "httpMethod": "GET", + // "id": "securitycenter.organizations.sources.findings.list", // "parameterOrder": [ // "parent" // ], // "parameters": { + // "compareDuration": { + // "description": "When compare_duration is set, the ListFindingsResult's \"state_change\" attribute is updated to indicate whether the finding had its state changed, the finding's state remained unchanged, or if the finding was added in any state during the compare_duration period of time that precedes the read_time. This is the time between (read_time - compare_duration) and read_time. The state_change value is derived based on the presence and state of the finding at the two points in time. Intermediate state changes between the two times don't affect the result. For example, the results aren't affected if the finding is made inactive and then active again. Possible \"state_change\" values when compare_duration is specified: * \"CHANGED\": indicates that the finding was present and matched the given filter at the start of compare_duration, but changed its state at read_time. * \"UNCHANGED\": indicates that the finding was present and matched the given filter at the start of compare_duration and did not change state at read_time. * \"ADDED\": indicates that the finding did not match the given filter or was not present at the start of compare_duration, but was present at read_time. * \"REMOVED\": indicates that the finding was present and matched the filter at the start of compare_duration, but did not match the filter at read_time. If compare_duration is not specified, then the only possible state_change is \"UNUSED\", which will be the state_change set for all findings present at read_time.", + // "format": "google-duration", + // "location": "query", + // "type": "string" + // }, + // "fieldMask": { + // "description": "A field mask to specify the Finding fields to be listed in the response. An empty field mask will list all fields.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // }, + // "filter": { + // "description": "Expression that defines the filter to apply across findings. The expression is a list of one or more restrictions combined via logical operators `AND` and `OR`. Parentheses are supported, and `OR` has higher precedence than `AND`. Restrictions have the form ` ` and may have a `-` character in front of them to indicate negation. Examples include: * name * source_properties.a_property * security_marks.marks.marka The supported operators are: * `=` for all value types. * `\u003e`, `\u003c`, `\u003e=`, `\u003c=` for integer values. * `:`, meaning substring matching, for strings. The supported value types are: * string literals in quotes. * integer literals without quotes. * boolean literals `true` and `false` without quotes. The following field and operator combinations are supported: name: `=` parent: `=`, `:` resource_name: `=`, `:` state: `=`, `:` category: `=`, `:` external_uri: `=`, `:` event_time: `=`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` Usage: This should be milliseconds since epoch or an RFC3339 string. Examples: `event_time = \"2019-06-10T16:07:18-07:00\"` `event_time = 1560208038000` security_marks.marks: `=`, `:` source_properties: `=`, `:`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` For example, `source_properties.size = 100` is a valid filter string. Use a partial match on the empty string to filter based on a property existing: `source_properties.my_property : \"\"` Use a negated partial match on the empty string to filter based on a property not existing: `-source_properties.my_property : \"\"`", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Expression that defines what fields and order to use for sorting. The string value should follow SQL syntax: comma separated list of fields. For example: \"name,resource_properties.a_property\". The default sorting order is ascending. To specify descending order for a field, a suffix \" desc\" should be appended to the field name. For example: \"name desc,source_properties.a_property\". Redundant space characters in the syntax are insignificant. \"name desc,source_properties.a_property\" and \" name desc , source_properties.a_property \" are equivalent. The following fields are supported: name parent state category resource_name event_time source_properties security_marks.marks", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The value returned by the last `ListFindingsResponse`; indicates that this is a continuation of a prior `ListFindings` call, and that the system should return the next page of data.", + // "location": "query", + // "type": "string" + // }, // "parent": { - // "description": "Required. Resource name of the new source's parent. Its format should be \"organizations/[organization_id]\".", + // "description": "Required. Name of the source the findings belong to. Its format is \"organizations/[organization_id]/sources/[source_id], folders/[folder_id]/sources/[source_id], or projects/[project_id]/sources/[source_id]\". To list across all sources provide a source_id of `-`. For example: organizations/{organization_id}/sources/-, folders/{folder_id}/sources/- or projects/{projects_id}/sources/-", // "location": "path", - // "pattern": "^organizations/[^/]+$", + // "pattern": "^organizations/[^/]+/sources/[^/]+$", // "required": true, // "type": "string" + // }, + // "readTime": { + // "description": "Time used as a reference point when filtering findings. The filter is limited to findings existing at the supplied time and their values are those at that specific time. Absence of this field will default to the API's version of NOW.", + // "format": "google-datetime", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+parent}/sources", - // "request": { - // "$ref": "Source" - // }, + // "path": "v1/{+parent}/findings", // "response": { - // "$ref": "Source" + // "$ref": "ListFindingsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -5146,75 +8661,101 @@ func (c *OrganizationsSourcesCreateCall) Do(opts ...googleapi.CallOption) (*Sour } -// method id "securitycenter.organizations.sources.get": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *OrganizationsSourcesFindingsListCall) Pages(ctx context.Context, f func(*ListFindingsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type OrganizationsSourcesGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// method id "securitycenter.organizations.sources.findings.patch": + +type OrganizationsSourcesFindingsPatchCall struct { + s *Service + name string + finding *Finding + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets a source. -func (r *OrganizationsSourcesService) Get(name string) *OrganizationsSourcesGetCall { - c := &OrganizationsSourcesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Patch: Creates or updates a finding. The corresponding source must +// exist for a finding creation to succeed. +func (r *OrganizationsSourcesFindingsService) Patch(name string, finding *Finding) *OrganizationsSourcesFindingsPatchCall { + c := &OrganizationsSourcesFindingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.finding = finding + return c +} + +// UpdateMask sets the optional parameter "updateMask": The FieldMask to +// use when updating the finding resource. This field should not be +// specified when creating a finding. When updating a finding, an empty +// mask is treated as updating all mutable fields and replacing +// source_properties. Individual source_properties can be added/updated +// by using "source_properties." in the field mask. +func (c *OrganizationsSourcesFindingsPatchCall) UpdateMask(updateMask string) *OrganizationsSourcesFindingsPatchCall { + c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsSourcesGetCall) Fields(s ...googleapi.Field) *OrganizationsSourcesGetCall { +func (c *OrganizationsSourcesFindingsPatchCall) Fields(s ...googleapi.Field) *OrganizationsSourcesFindingsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsSourcesGetCall) IfNoneMatch(entityTag string) *OrganizationsSourcesGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsSourcesGetCall) Context(ctx context.Context) *OrganizationsSourcesGetCall { +func (c *OrganizationsSourcesFindingsPatchCall) Context(ctx context.Context) *OrganizationsSourcesFindingsPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsSourcesGetCall) Header() http.Header { +func (c *OrganizationsSourcesFindingsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsSourcesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsSourcesFindingsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.finding) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -5225,14 +8766,14 @@ func (c *OrganizationsSourcesGetCall) doRequest(alt string) (*http.Response, err return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "securitycenter.organizations.sources.get" call. -// Exactly one of *Source or error will be non-nil. Any non-2xx status +// Do executes the "securitycenter.organizations.sources.findings.patch" call. +// Exactly one of *Finding or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either -// *Source.ServerResponse.Header or (if a response was returned at all) +// *Finding.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *OrganizationsSourcesGetCall) Do(opts ...googleapi.CallOption) (*Source, error) { +func (c *OrganizationsSourcesFindingsPatchCall) Do(opts ...googleapi.CallOption) (*Finding, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5251,7 +8792,7 @@ func (c *OrganizationsSourcesGetCall) Do(opts ...googleapi.CallOption) (*Source, if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Source{ + ret := &Finding{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5263,25 +8804,34 @@ func (c *OrganizationsSourcesGetCall) Do(opts ...googleapi.CallOption) (*Source, } return ret, nil // { - // "description": "Gets a source.", - // "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}", - // "httpMethod": "GET", - // "id": "securitycenter.organizations.sources.get", + // "description": "Creates or updates a finding. The corresponding source must exist for a finding creation to succeed.", + // "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}/findings/{findingsId}", + // "httpMethod": "PATCH", + // "id": "securitycenter.organizations.sources.findings.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Relative resource name of the source. Its format is \"organizations/[organization_id]/source/[source_id]\".", + // "description": "The relative resource name of this finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}\"", // "location": "path", - // "pattern": "^organizations/[^/]+/sources/[^/]+$", + // "pattern": "^organizations/[^/]+/sources/[^/]+/findings/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "The FieldMask to use when updating the finding resource. This field should not be specified when creating a finding. When updating a finding, an empty mask is treated as updating all mutable fields and replacing source_properties. Individual source_properties can be added/updated by using \"source_properties.\" in the field mask.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, // "path": "v1/{+name}", + // "request": { + // "$ref": "Finding" + // }, // "response": { - // "$ref": "Source" + // "$ref": "Finding" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -5290,29 +8840,29 @@ func (c *OrganizationsSourcesGetCall) Do(opts ...googleapi.CallOption) (*Source, } -// method id "securitycenter.organizations.sources.getIamPolicy": +// method id "securitycenter.organizations.sources.findings.setState": -type OrganizationsSourcesGetIamPolicyCall struct { - s *Service - resource string - getiampolicyrequest *GetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsSourcesFindingsSetStateCall struct { + s *Service + name string + setfindingstaterequest *SetFindingStateRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetIamPolicy: Gets the access control policy on the specified Source. -func (r *OrganizationsSourcesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *OrganizationsSourcesGetIamPolicyCall { - c := &OrganizationsSourcesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.getiampolicyrequest = getiampolicyrequest +// SetState: Updates the state of a finding. +func (r *OrganizationsSourcesFindingsService) SetState(name string, setfindingstaterequest *SetFindingStateRequest) *OrganizationsSourcesFindingsSetStateCall { + c := &OrganizationsSourcesFindingsSetStateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.setfindingstaterequest = setfindingstaterequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsSourcesGetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsSourcesGetIamPolicyCall { +func (c *OrganizationsSourcesFindingsSetStateCall) Fields(s ...googleapi.Field) *OrganizationsSourcesFindingsSetStateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5320,36 +8870,36 @@ func (c *OrganizationsSourcesGetIamPolicyCall) Fields(s ...googleapi.Field) *Org // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsSourcesGetIamPolicyCall) Context(ctx context.Context) *OrganizationsSourcesGetIamPolicyCall { +func (c *OrganizationsSourcesFindingsSetStateCall) Context(ctx context.Context) *OrganizationsSourcesFindingsSetStateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsSourcesGetIamPolicyCall) Header() http.Header { +func (c *OrganizationsSourcesFindingsSetStateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsSourcesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsSourcesFindingsSetStateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.getiampolicyrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.setfindingstaterequest) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:setState") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -5357,19 +8907,19 @@ func (c *OrganizationsSourcesGetIamPolicyCall) doRequest(alt string) (*http.Resp } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "securitycenter.organizations.sources.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// Do executes the "securitycenter.organizations.sources.findings.setState" call. +// Exactly one of *Finding or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) +// *Finding.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *OrganizationsSourcesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { +func (c *OrganizationsSourcesFindingsSetStateCall) Do(opts ...googleapi.CallOption) (*Finding, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5388,7 +8938,7 @@ func (c *OrganizationsSourcesGetIamPolicyCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Policy{ + ret := &Finding{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5400,28 +8950,28 @@ func (c *OrganizationsSourcesGetIamPolicyCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Gets the access control policy on the specified Source.", - // "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}:getIamPolicy", + // "description": "Updates the state of a finding.", + // "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}/findings/{findingsId}:setState", // "httpMethod": "POST", - // "id": "securitycenter.organizations.sources.getIamPolicy", + // "id": "securitycenter.organizations.sources.findings.setState", // "parameterOrder": [ - // "resource" + // "name" // ], // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + // "name": { + // "description": "Required. The relative resource name of the finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/sources/{source_id}/finding/{finding_id}\".", // "location": "path", - // "pattern": "^organizations/[^/]+/sources/[^/]+$", + // "pattern": "^organizations/[^/]+/sources/[^/]+/findings/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+resource}:getIamPolicy", + // "path": "v1/{+name}:setState", // "request": { - // "$ref": "GetIamPolicyRequest" + // "$ref": "SetFindingStateRequest" // }, // "response": { - // "$ref": "Policy" + // "$ref": "Finding" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -5430,110 +8980,104 @@ func (c *OrganizationsSourcesGetIamPolicyCall) Do(opts ...googleapi.CallOption) } -// method id "securitycenter.organizations.sources.list": +// method id "securitycenter.organizations.sources.findings.updateSecurityMarks": -type OrganizationsSourcesListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsSourcesFindingsUpdateSecurityMarksCall struct { + s *Service + name string + securitymarks *SecurityMarks + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists all sources belonging to an organization. -func (r *OrganizationsSourcesService) List(parent string) *OrganizationsSourcesListCall { - c := &OrganizationsSourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// UpdateSecurityMarks: Updates security marks. +func (r *OrganizationsSourcesFindingsService) UpdateSecurityMarks(name string, securitymarks *SecurityMarks) *OrganizationsSourcesFindingsUpdateSecurityMarksCall { + c := &OrganizationsSourcesFindingsUpdateSecurityMarksCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.securitymarks = securitymarks return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return in a single response. Default is 10, minimum is -// 1, maximum is 1000. -func (c *OrganizationsSourcesListCall) PageSize(pageSize int64) *OrganizationsSourcesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// StartTime sets the optional parameter "startTime": The time at which +// the updated SecurityMarks take effect. If not set uses current server +// time. Updates will be applied to the SecurityMarks that are active +// immediately preceding this time. +func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) StartTime(startTime string) *OrganizationsSourcesFindingsUpdateSecurityMarksCall { + c.urlParams_.Set("startTime", startTime) return c } -// PageToken sets the optional parameter "pageToken": The value returned -// by the last `ListSourcesResponse`; indicates that this is a -// continuation of a prior `ListSources` call, and that the system -// should return the next page of data. -func (c *OrganizationsSourcesListCall) PageToken(pageToken string) *OrganizationsSourcesListCall { - c.urlParams_.Set("pageToken", pageToken) +// UpdateMask sets the optional parameter "updateMask": The FieldMask to +// use when updating the security marks resource. The field mask must +// not contain duplicate fields. If empty or set to "marks", all marks +// will be replaced. Individual marks can be updated using "marks.". +func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) UpdateMask(updateMask string) *OrganizationsSourcesFindingsUpdateSecurityMarksCall { + c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsSourcesListCall) Fields(s ...googleapi.Field) *OrganizationsSourcesListCall { +func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) Fields(s ...googleapi.Field) *OrganizationsSourcesFindingsUpdateSecurityMarksCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsSourcesListCall) IfNoneMatch(entityTag string) *OrganizationsSourcesListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsSourcesListCall) Context(ctx context.Context) *OrganizationsSourcesListCall { +func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) Context(ctx context.Context) *OrganizationsSourcesFindingsUpdateSecurityMarksCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsSourcesListCall) Header() http.Header { +func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsSourcesListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.securitymarks) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sources") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "securitycenter.organizations.sources.list" call. -// Exactly one of *ListSourcesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListSourcesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "securitycenter.organizations.sources.findings.updateSecurityMarks" call. +// Exactly one of *SecurityMarks or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *SecurityMarks.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsSourcesListCall) Do(opts ...googleapi.CallOption) (*ListSourcesResponse, error) { +func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) Do(opts ...googleapi.CallOption) (*SecurityMarks, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5552,7 +9096,7 @@ func (c *OrganizationsSourcesListCall) Do(opts ...googleapi.CallOption) (*ListSo if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListSourcesResponse{ + ret := &SecurityMarks{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5564,36 +9108,40 @@ func (c *OrganizationsSourcesListCall) Do(opts ...googleapi.CallOption) (*ListSo } return ret, nil // { - // "description": "Lists all sources belonging to an organization.", - // "flatPath": "v1/organizations/{organizationsId}/sources", - // "httpMethod": "GET", - // "id": "securitycenter.organizations.sources.list", + // "description": "Updates security marks.", + // "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}/findings/{findingsId}/securityMarks", + // "httpMethod": "PATCH", + // "id": "securitycenter.organizations.sources.findings.updateSecurityMarks", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "pageSize": { - // "description": "The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.", - // "format": "int32", - // "location": "query", - // "type": "integer" + // "name": { + // "description": "The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: \"organizations/{organization_id}/assets/{asset_id}/securityMarks\" \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks\".", + // "location": "path", + // "pattern": "^organizations/[^/]+/sources/[^/]+/findings/[^/]+/securityMarks$", + // "required": true, + // "type": "string" // }, - // "pageToken": { - // "description": "The value returned by the last `ListSourcesResponse`; indicates that this is a continuation of a prior `ListSources` call, and that the system should return the next page of data.", + // "startTime": { + // "description": "The time at which the updated SecurityMarks take effect. If not set uses current server time. Updates will be applied to the SecurityMarks that are active immediately preceding this time.", + // "format": "google-datetime", // "location": "query", // "type": "string" // }, - // "parent": { - // "description": "Required. Resource name of the parent of sources to list. Its format should be \"organizations/[organization_id]\".", - // "location": "path", - // "pattern": "^organizations/[^/]+$", - // "required": true, + // "updateMask": { + // "description": "The FieldMask to use when updating the security marks resource. The field mask must not contain duplicate fields. If empty or set to \"marks\", all marks will be replaced. Individual marks can be updated using \"marks.\".", + // "format": "google-fieldmask", + // "location": "query", // "type": "string" // } // }, - // "path": "v1/{+parent}/sources", + // "path": "v1/{+name}", + // "request": { + // "$ref": "SecurityMarks" + // }, // "response": { - // "$ref": "ListSourcesResponse" + // "$ref": "SecurityMarks" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -5602,58 +9150,30 @@ func (c *OrganizationsSourcesListCall) Do(opts ...googleapi.CallOption) (*ListSo } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *OrganizationsSourcesListCall) Pages(ctx context.Context, f func(*ListSourcesResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -// method id "securitycenter.organizations.sources.patch": - -type OrganizationsSourcesPatchCall struct { - s *Service - name string - source *Source - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} +// method id "securitycenter.projects.assets.group": -// Patch: Updates a source. -func (r *OrganizationsSourcesService) Patch(name string, source *Source) *OrganizationsSourcesPatchCall { - c := &OrganizationsSourcesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.source = source - return c +type ProjectsAssetsGroupCall struct { + s *Service + parent string + groupassetsrequest *GroupAssetsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// UpdateMask sets the optional parameter "updateMask": The FieldMask to -// use when updating the source resource. If empty all mutable fields -// will be updated. -func (c *OrganizationsSourcesPatchCall) UpdateMask(updateMask string) *OrganizationsSourcesPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// Group: Filters an organization's assets and groups them by their +// specified properties. +func (r *ProjectsAssetsService) Group(parent string, groupassetsrequest *GroupAssetsRequest) *ProjectsAssetsGroupCall { + c := &ProjectsAssetsGroupCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.groupassetsrequest = groupassetsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsSourcesPatchCall) Fields(s ...googleapi.Field) *OrganizationsSourcesPatchCall { +func (c *ProjectsAssetsGroupCall) Fields(s ...googleapi.Field) *ProjectsAssetsGroupCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5661,56 +9181,56 @@ func (c *OrganizationsSourcesPatchCall) Fields(s ...googleapi.Field) *Organizati // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsSourcesPatchCall) Context(ctx context.Context) *OrganizationsSourcesPatchCall { +func (c *ProjectsAssetsGroupCall) Context(ctx context.Context) *ProjectsAssetsGroupCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsSourcesPatchCall) Header() http.Header { +func (c *ProjectsAssetsGroupCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsSourcesPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsAssetsGroupCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.source) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.groupassetsrequest) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/assets:group") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "securitycenter.organizations.sources.patch" call. -// Exactly one of *Source or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Source.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *OrganizationsSourcesPatchCall) Do(opts ...googleapi.CallOption) (*Source, error) { +// Do executes the "securitycenter.projects.assets.group" call. +// Exactly one of *GroupAssetsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GroupAssetsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsAssetsGroupCall) Do(opts ...googleapi.CallOption) (*GroupAssetsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5729,7 +9249,7 @@ func (c *OrganizationsSourcesPatchCall) Do(opts ...googleapi.CallOption) (*Sourc if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Source{ + ret := &GroupAssetsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5741,34 +9261,28 @@ func (c *OrganizationsSourcesPatchCall) Do(opts ...googleapi.CallOption) (*Sourc } return ret, nil // { - // "description": "Updates a source.", - // "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}", - // "httpMethod": "PATCH", - // "id": "securitycenter.organizations.sources.patch", + // "description": "Filters an organization's assets and groups them by their specified properties.", + // "flatPath": "v1/projects/{projectsId}/assets:group", + // "httpMethod": "POST", + // "id": "securitycenter.projects.assets.group", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The relative resource name of this source. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/sources/{source_id}\"", + // "parent": { + // "description": "Required. Name of the organization to groupBy. Its format is \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", // "location": "path", - // "pattern": "^organizations/[^/]+/sources/[^/]+$", + // "pattern": "^projects/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "The FieldMask to use when updating the source resource. If empty all mutable fields will be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/assets:group", // "request": { - // "$ref": "Source" + // "$ref": "GroupAssetsRequest" // }, // "response": { - // "$ref": "Source" + // "$ref": "GroupAssetsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -5777,86 +9291,237 @@ func (c *OrganizationsSourcesPatchCall) Do(opts ...googleapi.CallOption) (*Sourc } -// method id "securitycenter.organizations.sources.setIamPolicy": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsAssetsGroupCall) Pages(ctx context.Context, f func(*GroupAssetsResponse) error) error { + c.ctx_ = ctx + defer func(pt string) { c.groupassetsrequest.PageToken = pt }(c.groupassetsrequest.PageToken) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.groupassetsrequest.PageToken = x.NextPageToken + } +} + +// method id "securitycenter.projects.assets.list": + +type ProjectsAssetsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists an organization's assets. +func (r *ProjectsAssetsService) List(parent string) *ProjectsAssetsListCall { + c := &ProjectsAssetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// CompareDuration sets the optional parameter "compareDuration": When +// compare_duration is set, the ListAssetsResult's "state_change" +// attribute is updated to indicate whether the asset was added, +// removed, or remained present during the compare_duration period of +// time that precedes the read_time. This is the time between (read_time +// - compare_duration) and read_time. The state_change value is derived +// based on the presence of the asset at the two points in time. +// Intermediate state changes between the two times don't affect the +// result. For example, the results aren't affected if the asset is +// removed and re-created again. Possible "state_change" values when +// compare_duration is specified: * "ADDED": indicates that the asset +// was not present at the start of compare_duration, but present at +// read_time. * "REMOVED": indicates that the asset was present at the +// start of compare_duration, but not present at read_time. * "ACTIVE": +// indicates that the asset was present at both the start and the end of +// the time period defined by compare_duration and read_time. If +// compare_duration is not specified, then the only possible +// state_change is "UNUSED", which will be the state_change set for all +// assets present at read_time. +func (c *ProjectsAssetsListCall) CompareDuration(compareDuration string) *ProjectsAssetsListCall { + c.urlParams_.Set("compareDuration", compareDuration) + return c +} + +// FieldMask sets the optional parameter "fieldMask": A field mask to +// specify the ListAssetsResult fields to be listed in the response. An +// empty field mask will list all fields. +func (c *ProjectsAssetsListCall) FieldMask(fieldMask string) *ProjectsAssetsListCall { + c.urlParams_.Set("fieldMask", fieldMask) + return c +} + +// Filter sets the optional parameter "filter": Expression that defines +// the filter to apply across assets. The expression is a list of zero +// or more restrictions combined via logical operators `AND` and `OR`. +// Parentheses are supported, and `OR` has higher precedence than `AND`. +// Restrictions have the form ` ` and may have a `-` character in front +// of them to indicate negation. The fields map to those defined in the +// Asset resource. Examples include: * name * +// security_center_properties.resource_name * +// resource_properties.a_property * security_marks.marks.marka The +// supported operators are: * `=` for all value types. * `>`, `<`, `>=`, +// `<=` for integer values. * `:`, meaning substring matching, for +// strings. The supported value types are: * string literals in quotes. +// * integer literals without quotes. * boolean literals `true` and +// `false` without quotes. The following are the allowed field and +// operator combinations: * name: `=` * update_time: `=`, `>`, `<`, +// `>=`, `<=` Usage: This should be milliseconds since epoch or an +// RFC3339 string. Examples: `update_time = "2019-06-10T16:07:18-07:00" +// `update_time = 1560208038000` * create_time: `=`, `>`, `<`, `>=`, +// `<=` Usage: This should be milliseconds since epoch or an RFC3339 +// string. Examples: `create_time = "2019-06-10T16:07:18-07:00" +// `create_time = 1560208038000` * iam_policy.policy_blob: `=`, `:` * +// resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * +// security_marks.marks: `=`, `:` * +// security_center_properties.resource_name: `=`, `:` * +// security_center_properties.resource_display_name: `=`, `:` * +// security_center_properties.resource_type: `=`, `:` * +// security_center_properties.resource_parent: `=`, `:` * +// security_center_properties.resource_parent_display_name: `=`, `:` * +// security_center_properties.resource_project: `=`, `:` * +// security_center_properties.resource_project_display_name: `=`, `:` * +// security_center_properties.resource_owners: `=`, `:` For example, +// `resource_properties.size = 100` is a valid filter string. Use a +// partial match on the empty string to filter based on a property +// existing: `resource_properties.my_property : "" Use a negated +// partial match on the empty string to filter based on a property not +// existing: `-resource_properties.my_property : "" +func (c *ProjectsAssetsListCall) Filter(filter string) *ProjectsAssetsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Expression that +// defines what fields and order to use for sorting. The string value +// should follow SQL syntax: comma separated list of fields. For +// example: "name,resource_properties.a_property". The default sorting +// order is ascending. To specify descending order for a field, a suffix +// " desc" should be appended to the field name. For example: "name +// desc,resource_properties.a_property". Redundant space characters in +// the syntax are insignificant. "name +// desc,resource_properties.a_property" and " name desc , +// resource_properties.a_property " are equivalent. The following fields +// are supported: name update_time resource_properties +// security_marks.marks security_center_properties.resource_name +// security_center_properties.resource_display_name +// security_center_properties.resource_parent +// security_center_properties.resource_parent_display_name +// security_center_properties.resource_project +// security_center_properties.resource_project_display_name +// security_center_properties.resource_type +func (c *ProjectsAssetsListCall) OrderBy(orderBy string) *ProjectsAssetsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} -type OrganizationsSourcesSetIamPolicyCall struct { - s *Service - resource string - setiampolicyrequest *SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return in a single response. Default is 10, minimum is +// 1, maximum is 1000. +func (c *ProjectsAssetsListCall) PageSize(pageSize int64) *ProjectsAssetsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c } -// SetIamPolicy: Sets the access control policy on the specified Source. -func (r *OrganizationsSourcesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *OrganizationsSourcesSetIamPolicyCall { - c := &OrganizationsSourcesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.setiampolicyrequest = setiampolicyrequest +// PageToken sets the optional parameter "pageToken": The value returned +// by the last `ListAssetsResponse`; indicates that this is a +// continuation of a prior `ListAssets` call, and that the system should +// return the next page of data. +func (c *ProjectsAssetsListCall) PageToken(pageToken string) *ProjectsAssetsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadTime sets the optional parameter "readTime": Time used as a +// reference point when filtering assets. The filter is limited to +// assets existing at the supplied time and their values are those at +// that specific time. Absence of this field will default to the API's +// version of NOW. +func (c *ProjectsAssetsListCall) ReadTime(readTime string) *ProjectsAssetsListCall { + c.urlParams_.Set("readTime", readTime) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsSourcesSetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsSourcesSetIamPolicyCall { +func (c *ProjectsAssetsListCall) Fields(s ...googleapi.Field) *ProjectsAssetsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsAssetsListCall) IfNoneMatch(entityTag string) *ProjectsAssetsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsSourcesSetIamPolicyCall) Context(ctx context.Context) *OrganizationsSourcesSetIamPolicyCall { +func (c *ProjectsAssetsListCall) Context(ctx context.Context) *ProjectsAssetsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsSourcesSetIamPolicyCall) Header() http.Header { +func (c *ProjectsAssetsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsSourcesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsAssetsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/assets") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "securitycenter.organizations.sources.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *OrganizationsSourcesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { +// Do executes the "securitycenter.projects.assets.list" call. +// Exactly one of *ListAssetsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListAssetsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsAssetsListCall) Do(opts ...googleapi.CallOption) (*ListAssetsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5875,7 +9540,7 @@ func (c *OrganizationsSourcesSetIamPolicyCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Policy{ + ret := &ListAssetsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5887,28 +9552,64 @@ func (c *OrganizationsSourcesSetIamPolicyCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Sets the access control policy on the specified Source.", - // "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "securitycenter.organizations.sources.setIamPolicy", + // "description": "Lists an organization's assets.", + // "flatPath": "v1/projects/{projectsId}/assets", + // "httpMethod": "GET", + // "id": "securitycenter.projects.assets.list", // "parameterOrder": [ - // "resource" + // "parent" // ], // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + // "compareDuration": { + // "description": "When compare_duration is set, the ListAssetsResult's \"state_change\" attribute is updated to indicate whether the asset was added, removed, or remained present during the compare_duration period of time that precedes the read_time. This is the time between (read_time - compare_duration) and read_time. The state_change value is derived based on the presence of the asset at the two points in time. Intermediate state changes between the two times don't affect the result. For example, the results aren't affected if the asset is removed and re-created again. Possible \"state_change\" values when compare_duration is specified: * \"ADDED\": indicates that the asset was not present at the start of compare_duration, but present at read_time. * \"REMOVED\": indicates that the asset was present at the start of compare_duration, but not present at read_time. * \"ACTIVE\": indicates that the asset was present at both the start and the end of the time period defined by compare_duration and read_time. If compare_duration is not specified, then the only possible state_change is \"UNUSED\", which will be the state_change set for all assets present at read_time.", + // "format": "google-duration", + // "location": "query", + // "type": "string" + // }, + // "fieldMask": { + // "description": "A field mask to specify the ListAssetsResult fields to be listed in the response. An empty field mask will list all fields.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // }, + // "filter": { + // "description": "Expression that defines the filter to apply across assets. The expression is a list of zero or more restrictions combined via logical operators `AND` and `OR`. Parentheses are supported, and `OR` has higher precedence than `AND`. Restrictions have the form ` ` and may have a `-` character in front of them to indicate negation. The fields map to those defined in the Asset resource. Examples include: * name * security_center_properties.resource_name * resource_properties.a_property * security_marks.marks.marka The supported operators are: * `=` for all value types. * `\u003e`, `\u003c`, `\u003e=`, `\u003c=` for integer values. * `:`, meaning substring matching, for strings. The supported value types are: * string literals in quotes. * integer literals without quotes. * boolean literals `true` and `false` without quotes. The following are the allowed field and operator combinations: * name: `=` * update_time: `=`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` Usage: This should be milliseconds since epoch or an RFC3339 string. Examples: `update_time = \"2019-06-10T16:07:18-07:00\"` `update_time = 1560208038000` * create_time: `=`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` Usage: This should be milliseconds since epoch or an RFC3339 string. Examples: `create_time = \"2019-06-10T16:07:18-07:00\"` `create_time = 1560208038000` * iam_policy.policy_blob: `=`, `:` * resource_properties: `=`, `:`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` * security_marks.marks: `=`, `:` * security_center_properties.resource_name: `=`, `:` * security_center_properties.resource_display_name: `=`, `:` * security_center_properties.resource_type: `=`, `:` * security_center_properties.resource_parent: `=`, `:` * security_center_properties.resource_parent_display_name: `=`, `:` * security_center_properties.resource_project: `=`, `:` * security_center_properties.resource_project_display_name: `=`, `:` * security_center_properties.resource_owners: `=`, `:` For example, `resource_properties.size = 100` is a valid filter string. Use a partial match on the empty string to filter based on a property existing: `resource_properties.my_property : \"\"` Use a negated partial match on the empty string to filter based on a property not existing: `-resource_properties.my_property : \"\"`", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Expression that defines what fields and order to use for sorting. The string value should follow SQL syntax: comma separated list of fields. For example: \"name,resource_properties.a_property\". The default sorting order is ascending. To specify descending order for a field, a suffix \" desc\" should be appended to the field name. For example: \"name desc,resource_properties.a_property\". Redundant space characters in the syntax are insignificant. \"name desc,resource_properties.a_property\" and \" name desc , resource_properties.a_property \" are equivalent. The following fields are supported: name update_time resource_properties security_marks.marks security_center_properties.resource_name security_center_properties.resource_display_name security_center_properties.resource_parent security_center_properties.resource_parent_display_name security_center_properties.resource_project security_center_properties.resource_project_display_name security_center_properties.resource_type", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The value returned by the last `ListAssetsResponse`; indicates that this is a continuation of a prior `ListAssets` call, and that the system should return the next page of data.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Name of the organization assets should belong to. Its format is \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", // "location": "path", - // "pattern": "^organizations/[^/]+/sources/[^/]+$", + // "pattern": "^projects/[^/]+$", // "required": true, // "type": "string" + // }, + // "readTime": { + // "description": "Time used as a reference point when filtering assets. The filter is limited to assets existing at the supplied time and their values are those at that specific time. Absence of this field will default to the API's version of NOW.", + // "format": "google-datetime", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, + // "path": "v1/{+parent}/assets", // "response": { - // "$ref": "Policy" + // "$ref": "ListAssetsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -5917,30 +9618,68 @@ func (c *OrganizationsSourcesSetIamPolicyCall) Do(opts ...googleapi.CallOption) } -// method id "securitycenter.organizations.sources.testIamPermissions": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsAssetsListCall) Pages(ctx context.Context, f func(*ListAssetsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type OrganizationsSourcesTestIamPermissionsCall struct { - s *Service - resource string - testiampermissionsrequest *TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "securitycenter.projects.assets.updateSecurityMarks": + +type ProjectsAssetsUpdateSecurityMarksCall struct { + s *Service + name string + securitymarks *SecurityMarks + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// TestIamPermissions: Returns the permissions that a caller has on the -// specified source. -func (r *OrganizationsSourcesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *OrganizationsSourcesTestIamPermissionsCall { - c := &OrganizationsSourcesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.testiampermissionsrequest = testiampermissionsrequest +// UpdateSecurityMarks: Updates security marks. +func (r *ProjectsAssetsService) UpdateSecurityMarks(name string, securitymarks *SecurityMarks) *ProjectsAssetsUpdateSecurityMarksCall { + c := &ProjectsAssetsUpdateSecurityMarksCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.securitymarks = securitymarks + return c +} + +// StartTime sets the optional parameter "startTime": The time at which +// the updated SecurityMarks take effect. If not set uses current server +// time. Updates will be applied to the SecurityMarks that are active +// immediately preceding this time. +func (c *ProjectsAssetsUpdateSecurityMarksCall) StartTime(startTime string) *ProjectsAssetsUpdateSecurityMarksCall { + c.urlParams_.Set("startTime", startTime) + return c +} + +// UpdateMask sets the optional parameter "updateMask": The FieldMask to +// use when updating the security marks resource. The field mask must +// not contain duplicate fields. If empty or set to "marks", all marks +// will be replaced. Individual marks can be updated using "marks.". +func (c *ProjectsAssetsUpdateSecurityMarksCall) UpdateMask(updateMask string) *ProjectsAssetsUpdateSecurityMarksCall { + c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsSourcesTestIamPermissionsCall) Fields(s ...googleapi.Field) *OrganizationsSourcesTestIamPermissionsCall { +func (c *ProjectsAssetsUpdateSecurityMarksCall) Fields(s ...googleapi.Field) *ProjectsAssetsUpdateSecurityMarksCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5948,56 +9687,56 @@ func (c *OrganizationsSourcesTestIamPermissionsCall) Fields(s ...googleapi.Field // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsSourcesTestIamPermissionsCall) Context(ctx context.Context) *OrganizationsSourcesTestIamPermissionsCall { +func (c *ProjectsAssetsUpdateSecurityMarksCall) Context(ctx context.Context) *ProjectsAssetsUpdateSecurityMarksCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsSourcesTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsAssetsUpdateSecurityMarksCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsSourcesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsAssetsUpdateSecurityMarksCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.securitymarks) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "securitycenter.organizations.sources.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "securitycenter.projects.assets.updateSecurityMarks" call. +// Exactly one of *SecurityMarks or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *SecurityMarks.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsSourcesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { +func (c *ProjectsAssetsUpdateSecurityMarksCall) Do(opts ...googleapi.CallOption) (*SecurityMarks, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6016,7 +9755,7 @@ func (c *OrganizationsSourcesTestIamPermissionsCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &TestIamPermissionsResponse{ + ret := &SecurityMarks{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6028,28 +9767,40 @@ func (c *OrganizationsSourcesTestIamPermissionsCall) Do(opts ...googleapi.CallOp } return ret, nil // { - // "description": "Returns the permissions that a caller has on the specified source.", - // "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "securitycenter.organizations.sources.testIamPermissions", + // "description": "Updates security marks.", + // "flatPath": "v1/projects/{projectsId}/assets/{assetsId}/securityMarks", + // "httpMethod": "PATCH", + // "id": "securitycenter.projects.assets.updateSecurityMarks", // "parameterOrder": [ - // "resource" + // "name" // ], // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + // "name": { + // "description": "The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: \"organizations/{organization_id}/assets/{asset_id}/securityMarks\" \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks\".", // "location": "path", - // "pattern": "^organizations/[^/]+/sources/[^/]+$", + // "pattern": "^projects/[^/]+/assets/[^/]+/securityMarks$", // "required": true, // "type": "string" + // }, + // "startTime": { + // "description": "The time at which the updated SecurityMarks take effect. If not set uses current server time. Updates will be applied to the SecurityMarks that are active immediately preceding this time.", + // "format": "google-datetime", + // "location": "query", + // "type": "string" + // }, + // "updateMask": { + // "description": "The FieldMask to use when updating the security marks resource. The field mask must not contain duplicate fields. If empty or set to \"marks\", all marks will be replaced. Individual marks can be updated using \"marks.\".", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+resource}:testIamPermissions", + // "path": "v1/{+name}", // "request": { - // "$ref": "TestIamPermissionsRequest" + // "$ref": "SecurityMarks" // }, // "response": { - // "$ref": "TestIamPermissionsResponse" + // "$ref": "SecurityMarks" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -6058,78 +9809,92 @@ func (c *OrganizationsSourcesTestIamPermissionsCall) Do(opts ...googleapi.CallOp } -// method id "securitycenter.organizations.sources.findings.create": +// method id "securitycenter.projects.sources.list": -type OrganizationsSourcesFindingsCreateCall struct { - s *Service - parent string - finding *Finding - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsSourcesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a finding. The corresponding source must exist for -// finding creation to succeed. -func (r *OrganizationsSourcesFindingsService) Create(parent string, finding *Finding) *OrganizationsSourcesFindingsCreateCall { - c := &OrganizationsSourcesFindingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// List: Lists all sources belonging to an organization. +func (r *ProjectsSourcesService) List(parent string) *ProjectsSourcesListCall { + c := &ProjectsSourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.finding = finding return c } -// FindingId sets the optional parameter "findingId": Required. Unique -// identifier provided by the client within the parent scope. It must be -// alphanumeric and less than or equal to 32 characters and greater than -// 0 characters in length. -func (c *OrganizationsSourcesFindingsCreateCall) FindingId(findingId string) *OrganizationsSourcesFindingsCreateCall { - c.urlParams_.Set("findingId", findingId) +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return in a single response. Default is 10, minimum is +// 1, maximum is 1000. +func (c *ProjectsSourcesListCall) PageSize(pageSize int64) *ProjectsSourcesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value returned +// by the last `ListSourcesResponse`; indicates that this is a +// continuation of a prior `ListSources` call, and that the system +// should return the next page of data. +func (c *ProjectsSourcesListCall) PageToken(pageToken string) *ProjectsSourcesListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsSourcesFindingsCreateCall) Fields(s ...googleapi.Field) *OrganizationsSourcesFindingsCreateCall { +func (c *ProjectsSourcesListCall) Fields(s ...googleapi.Field) *ProjectsSourcesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsSourcesListCall) IfNoneMatch(entityTag string) *ProjectsSourcesListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsSourcesFindingsCreateCall) Context(ctx context.Context) *OrganizationsSourcesFindingsCreateCall { +func (c *ProjectsSourcesListCall) Context(ctx context.Context) *ProjectsSourcesListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsSourcesFindingsCreateCall) Header() http.Header { +func (c *ProjectsSourcesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsSourcesFindingsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsSourcesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.finding) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/findings") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sources") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -6140,14 +9905,14 @@ func (c *OrganizationsSourcesFindingsCreateCall) doRequest(alt string) (*http.Re return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "securitycenter.organizations.sources.findings.create" call. -// Exactly one of *Finding or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Finding.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *OrganizationsSourcesFindingsCreateCall) Do(opts ...googleapi.CallOption) (*Finding, error) { +// Do executes the "securitycenter.projects.sources.list" call. +// Exactly one of *ListSourcesResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListSourcesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsSourcesListCall) Do(opts ...googleapi.CallOption) (*ListSourcesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6166,7 +9931,7 @@ func (c *OrganizationsSourcesFindingsCreateCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &Finding{ + ret := &ListSourcesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6178,33 +9943,36 @@ func (c *OrganizationsSourcesFindingsCreateCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "Creates a finding. The corresponding source must exist for finding creation to succeed.", - // "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}/findings", - // "httpMethod": "POST", - // "id": "securitycenter.organizations.sources.findings.create", + // "description": "Lists all sources belonging to an organization.", + // "flatPath": "v1/projects/{projectsId}/sources", + // "httpMethod": "GET", + // "id": "securitycenter.projects.sources.list", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "findingId": { - // "description": "Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length.", + // "pageSize": { + // "description": "The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The value returned by the last `ListSourcesResponse`; indicates that this is a continuation of a prior `ListSources` call, and that the system should return the next page of data.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. Resource name of the new finding's parent. Its format should be \"organizations/[organization_id]/sources/[source_id]\".", + // "description": "Required. Resource name of the parent of sources to list. Its format should be \"organizations/[organization_id], folders/[folder_id], or projects/[project_id]\".", // "location": "path", - // "pattern": "^organizations/[^/]+/sources/[^/]+$", + // "pattern": "^projects/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/findings", - // "request": { - // "$ref": "Finding" - // }, + // "path": "v1/{+parent}/sources", // "response": { - // "$ref": "Finding" + // "$ref": "ListSourcesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -6213,9 +9981,30 @@ func (c *OrganizationsSourcesFindingsCreateCall) Do(opts ...googleapi.CallOption } -// method id "securitycenter.organizations.sources.findings.group": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsSourcesListCall) Pages(ctx context.Context, f func(*ListSourcesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type OrganizationsSourcesFindingsGroupCall struct { +// method id "securitycenter.projects.sources.findings.group": + +type ProjectsSourcesFindingsGroupCall struct { s *Service parent string groupfindingsrequest *GroupFindingsRequest @@ -6227,9 +10016,11 @@ type OrganizationsSourcesFindingsGroupCall struct { // Group: Filters an organization or source's findings and groups them // by their specified properties. To group across all sources provide a // `-` as the source id. Example: -// /v1/organizations/{organization_id}/sources/-/findings -func (r *OrganizationsSourcesFindingsService) Group(parent string, groupfindingsrequest *GroupFindingsRequest) *OrganizationsSourcesFindingsGroupCall { - c := &OrganizationsSourcesFindingsGroupCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// /v1/organizations/{organization_id}/sources/-/findings, +// /v1/folders/{folder_id}/sources/-/findings, +// /v1/projects/{project_id}/sources/-/findings +func (r *ProjectsSourcesFindingsService) Group(parent string, groupfindingsrequest *GroupFindingsRequest) *ProjectsSourcesFindingsGroupCall { + c := &ProjectsSourcesFindingsGroupCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent c.groupfindingsrequest = groupfindingsrequest return c @@ -6238,7 +10029,7 @@ func (r *OrganizationsSourcesFindingsService) Group(parent string, groupfindings // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsSourcesFindingsGroupCall) Fields(s ...googleapi.Field) *OrganizationsSourcesFindingsGroupCall { +func (c *ProjectsSourcesFindingsGroupCall) Fields(s ...googleapi.Field) *ProjectsSourcesFindingsGroupCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6246,23 +10037,23 @@ func (c *OrganizationsSourcesFindingsGroupCall) Fields(s ...googleapi.Field) *Or // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsSourcesFindingsGroupCall) Context(ctx context.Context) *OrganizationsSourcesFindingsGroupCall { +func (c *ProjectsSourcesFindingsGroupCall) Context(ctx context.Context) *ProjectsSourcesFindingsGroupCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsSourcesFindingsGroupCall) Header() http.Header { +func (c *ProjectsSourcesFindingsGroupCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsSourcesFindingsGroupCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsSourcesFindingsGroupCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6288,14 +10079,14 @@ func (c *OrganizationsSourcesFindingsGroupCall) doRequest(alt string) (*http.Res return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "securitycenter.organizations.sources.findings.group" call. +// Do executes the "securitycenter.projects.sources.findings.group" call. // Exactly one of *GroupFindingsResponse or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either // *GroupFindingsResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsSourcesFindingsGroupCall) Do(opts ...googleapi.CallOption) (*GroupFindingsResponse, error) { +func (c *ProjectsSourcesFindingsGroupCall) Do(opts ...googleapi.CallOption) (*GroupFindingsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6326,18 +10117,18 @@ func (c *OrganizationsSourcesFindingsGroupCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Filters an organization or source's findings and groups them by their specified properties. To group across all sources provide a `-` as the source id. Example: /v1/organizations/{organization_id}/sources/-/findings", - // "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}/findings:group", + // "description": "Filters an organization or source's findings and groups them by their specified properties. To group across all sources provide a `-` as the source id. Example: /v1/organizations/{organization_id}/sources/-/findings, /v1/folders/{folder_id}/sources/-/findings, /v1/projects/{project_id}/sources/-/findings", + // "flatPath": "v1/projects/{projectsId}/sources/{sourcesId}/findings:group", // "httpMethod": "POST", - // "id": "securitycenter.organizations.sources.findings.group", + // "id": "securitycenter.projects.sources.findings.group", // "parameterOrder": [ // "parent" // ], // "parameters": { // "parent": { - // "description": "Required. Name of the source to groupBy. Its format is \"organizations/[organization_id]/sources/[source_id]\". To groupBy across all sources provide a source_id of `-`. For example: organizations/{organization_id}/sources/-", + // "description": "Required. Name of the source to groupBy. Its format is \"organizations/[organization_id]/sources/[source_id]\", folders/[folder_id]/sources/[source_id], or projects/[project_id]/sources/[source_id]. To groupBy across all sources provide a source_id of `-`. For example: organizations/{organization_id}/sources/-, folders/{folder_id}/sources/-, or projects/{project_id}/sources/-", // "location": "path", - // "pattern": "^organizations/[^/]+/sources/[^/]+$", + // "pattern": "^projects/[^/]+/sources/[^/]+$", // "required": true, // "type": "string" // } @@ -6359,7 +10150,7 @@ func (c *OrganizationsSourcesFindingsGroupCall) Do(opts ...googleapi.CallOption) // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *OrganizationsSourcesFindingsGroupCall) Pages(ctx context.Context, f func(*GroupFindingsResponse) error) error { +func (c *ProjectsSourcesFindingsGroupCall) Pages(ctx context.Context, f func(*GroupFindingsResponse) error) error { c.ctx_ = ctx defer func(pt string) { c.groupfindingsrequest.PageToken = pt }(c.groupfindingsrequest.PageToken) // reset paging to original point for { @@ -6377,9 +10168,9 @@ func (c *OrganizationsSourcesFindingsGroupCall) Pages(ctx context.Context, f fun } } -// method id "securitycenter.organizations.sources.findings.list": +// method id "securitycenter.projects.sources.findings.list": -type OrganizationsSourcesFindingsListCall struct { +type ProjectsSourcesFindingsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -6391,8 +10182,8 @@ type OrganizationsSourcesFindingsListCall struct { // List: Lists an organization or source's findings. To list across all // sources provide a `-` as the source id. Example: // /v1/organizations/{organization_id}/sources/-/findings -func (r *OrganizationsSourcesFindingsService) List(parent string) *OrganizationsSourcesFindingsListCall { - c := &OrganizationsSourcesFindingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsSourcesFindingsService) List(parent string) *ProjectsSourcesFindingsListCall { + c := &ProjectsSourcesFindingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } @@ -6421,7 +10212,7 @@ func (r *OrganizationsSourcesFindingsService) List(parent string) *Organizations // If compare_duration is not specified, then the only possible // state_change is "UNUSED", which will be the state_change set for all // findings present at read_time. -func (c *OrganizationsSourcesFindingsListCall) CompareDuration(compareDuration string) *OrganizationsSourcesFindingsListCall { +func (c *ProjectsSourcesFindingsListCall) CompareDuration(compareDuration string) *ProjectsSourcesFindingsListCall { c.urlParams_.Set("compareDuration", compareDuration) return c } @@ -6429,7 +10220,7 @@ func (c *OrganizationsSourcesFindingsListCall) CompareDuration(compareDuration s // FieldMask sets the optional parameter "fieldMask": A field mask to // specify the Finding fields to be listed in the response. An empty // field mask will list all fields. -func (c *OrganizationsSourcesFindingsListCall) FieldMask(fieldMask string) *OrganizationsSourcesFindingsListCall { +func (c *ProjectsSourcesFindingsListCall) FieldMask(fieldMask string) *ProjectsSourcesFindingsListCall { c.urlParams_.Set("fieldMask", fieldMask) return c } @@ -6457,7 +10248,7 @@ func (c *OrganizationsSourcesFindingsListCall) FieldMask(fieldMask string) *Orga // based on a property existing: `source_properties.my_property : "" // Use a negated partial match on the empty string to filter based on a // property not existing: `-source_properties.my_property : "" -func (c *OrganizationsSourcesFindingsListCall) Filter(filter string) *OrganizationsSourcesFindingsListCall { +func (c *ProjectsSourcesFindingsListCall) Filter(filter string) *ProjectsSourcesFindingsListCall { c.urlParams_.Set("filter", filter) return c } @@ -6473,7 +10264,7 @@ func (c *OrganizationsSourcesFindingsListCall) Filter(filter string) *Organizati // and " name desc , source_properties.a_property " are equivalent. The // following fields are supported: name parent state category // resource_name event_time source_properties security_marks.marks -func (c *OrganizationsSourcesFindingsListCall) OrderBy(orderBy string) *OrganizationsSourcesFindingsListCall { +func (c *ProjectsSourcesFindingsListCall) OrderBy(orderBy string) *ProjectsSourcesFindingsListCall { c.urlParams_.Set("orderBy", orderBy) return c } @@ -6481,7 +10272,7 @@ func (c *OrganizationsSourcesFindingsListCall) OrderBy(orderBy string) *Organiza // PageSize sets the optional parameter "pageSize": The maximum number // of results to return in a single response. Default is 10, minimum is // 1, maximum is 1000. -func (c *OrganizationsSourcesFindingsListCall) PageSize(pageSize int64) *OrganizationsSourcesFindingsListCall { +func (c *ProjectsSourcesFindingsListCall) PageSize(pageSize int64) *ProjectsSourcesFindingsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } @@ -6490,7 +10281,7 @@ func (c *OrganizationsSourcesFindingsListCall) PageSize(pageSize int64) *Organiz // by the last `ListFindingsResponse`; indicates that this is a // continuation of a prior `ListFindings` call, and that the system // should return the next page of data. -func (c *OrganizationsSourcesFindingsListCall) PageToken(pageToken string) *OrganizationsSourcesFindingsListCall { +func (c *ProjectsSourcesFindingsListCall) PageToken(pageToken string) *ProjectsSourcesFindingsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -6500,7 +10291,7 @@ func (c *OrganizationsSourcesFindingsListCall) PageToken(pageToken string) *Orga // findings existing at the supplied time and their values are those at // that specific time. Absence of this field will default to the API's // version of NOW. -func (c *OrganizationsSourcesFindingsListCall) ReadTime(readTime string) *OrganizationsSourcesFindingsListCall { +func (c *ProjectsSourcesFindingsListCall) ReadTime(readTime string) *ProjectsSourcesFindingsListCall { c.urlParams_.Set("readTime", readTime) return c } @@ -6508,7 +10299,7 @@ func (c *OrganizationsSourcesFindingsListCall) ReadTime(readTime string) *Organi // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsSourcesFindingsListCall) Fields(s ...googleapi.Field) *OrganizationsSourcesFindingsListCall { +func (c *ProjectsSourcesFindingsListCall) Fields(s ...googleapi.Field) *ProjectsSourcesFindingsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6518,7 +10309,7 @@ func (c *OrganizationsSourcesFindingsListCall) Fields(s ...googleapi.Field) *Org // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OrganizationsSourcesFindingsListCall) IfNoneMatch(entityTag string) *OrganizationsSourcesFindingsListCall { +func (c *ProjectsSourcesFindingsListCall) IfNoneMatch(entityTag string) *ProjectsSourcesFindingsListCall { c.ifNoneMatch_ = entityTag return c } @@ -6526,23 +10317,23 @@ func (c *OrganizationsSourcesFindingsListCall) IfNoneMatch(entityTag string) *Or // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsSourcesFindingsListCall) Context(ctx context.Context) *OrganizationsSourcesFindingsListCall { +func (c *ProjectsSourcesFindingsListCall) Context(ctx context.Context) *ProjectsSourcesFindingsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsSourcesFindingsListCall) Header() http.Header { +func (c *ProjectsSourcesFindingsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsSourcesFindingsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsSourcesFindingsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6566,14 +10357,14 @@ func (c *OrganizationsSourcesFindingsListCall) doRequest(alt string) (*http.Resp return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "securitycenter.organizations.sources.findings.list" call. +// Do executes the "securitycenter.projects.sources.findings.list" call. // Exactly one of *ListFindingsResponse or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either // *ListFindingsResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsSourcesFindingsListCall) Do(opts ...googleapi.CallOption) (*ListFindingsResponse, error) { +func (c *ProjectsSourcesFindingsListCall) Do(opts ...googleapi.CallOption) (*ListFindingsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6605,9 +10396,9 @@ func (c *OrganizationsSourcesFindingsListCall) Do(opts ...googleapi.CallOption) return ret, nil // { // "description": "Lists an organization or source's findings. To list across all sources provide a `-` as the source id. Example: /v1/organizations/{organization_id}/sources/-/findings", - // "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}/findings", + // "flatPath": "v1/projects/{projectsId}/sources/{sourcesId}/findings", // "httpMethod": "GET", - // "id": "securitycenter.organizations.sources.findings.list", + // "id": "securitycenter.projects.sources.findings.list", // "parameterOrder": [ // "parent" // ], @@ -6646,9 +10437,9 @@ func (c *OrganizationsSourcesFindingsListCall) Do(opts ...googleapi.CallOption) // "type": "string" // }, // "parent": { - // "description": "Required. Name of the source the findings belong to. Its format is \"organizations/[organization_id]/sources/[source_id]\". To list across all sources provide a source_id of `-`. For example: organizations/{organization_id}/sources/-", + // "description": "Required. Name of the source the findings belong to. Its format is \"organizations/[organization_id]/sources/[source_id], folders/[folder_id]/sources/[source_id], or projects/[project_id]/sources/[source_id]\". To list across all sources provide a source_id of `-`. For example: organizations/{organization_id}/sources/-, folders/{folder_id}/sources/- or projects/{projects_id}/sources/-", // "location": "path", - // "pattern": "^organizations/[^/]+/sources/[^/]+$", + // "pattern": "^projects/[^/]+/sources/[^/]+$", // "required": true, // "type": "string" // }, @@ -6673,7 +10464,7 @@ func (c *OrganizationsSourcesFindingsListCall) Do(opts ...googleapi.CallOption) // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *OrganizationsSourcesFindingsListCall) Pages(ctx context.Context, f func(*ListFindingsResponse) error) error { +func (c *ProjectsSourcesFindingsListCall) Pages(ctx context.Context, f func(*ListFindingsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -6691,9 +10482,9 @@ func (c *OrganizationsSourcesFindingsListCall) Pages(ctx context.Context, f func } } -// method id "securitycenter.organizations.sources.findings.patch": +// method id "securitycenter.projects.sources.findings.patch": -type OrganizationsSourcesFindingsPatchCall struct { +type ProjectsSourcesFindingsPatchCall struct { s *Service name string finding *Finding @@ -6704,8 +10495,8 @@ type OrganizationsSourcesFindingsPatchCall struct { // Patch: Creates or updates a finding. The corresponding source must // exist for a finding creation to succeed. -func (r *OrganizationsSourcesFindingsService) Patch(name string, finding *Finding) *OrganizationsSourcesFindingsPatchCall { - c := &OrganizationsSourcesFindingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsSourcesFindingsService) Patch(name string, finding *Finding) *ProjectsSourcesFindingsPatchCall { + c := &ProjectsSourcesFindingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name c.finding = finding return c @@ -6717,7 +10508,7 @@ func (r *OrganizationsSourcesFindingsService) Patch(name string, finding *Findin // mask is treated as updating all mutable fields and replacing // source_properties. Individual source_properties can be added/updated // by using "source_properties." in the field mask. -func (c *OrganizationsSourcesFindingsPatchCall) UpdateMask(updateMask string) *OrganizationsSourcesFindingsPatchCall { +func (c *ProjectsSourcesFindingsPatchCall) UpdateMask(updateMask string) *ProjectsSourcesFindingsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } @@ -6725,7 +10516,7 @@ func (c *OrganizationsSourcesFindingsPatchCall) UpdateMask(updateMask string) *O // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsSourcesFindingsPatchCall) Fields(s ...googleapi.Field) *OrganizationsSourcesFindingsPatchCall { +func (c *ProjectsSourcesFindingsPatchCall) Fields(s ...googleapi.Field) *ProjectsSourcesFindingsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6733,23 +10524,23 @@ func (c *OrganizationsSourcesFindingsPatchCall) Fields(s ...googleapi.Field) *Or // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsSourcesFindingsPatchCall) Context(ctx context.Context) *OrganizationsSourcesFindingsPatchCall { +func (c *ProjectsSourcesFindingsPatchCall) Context(ctx context.Context) *ProjectsSourcesFindingsPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsSourcesFindingsPatchCall) Header() http.Header { +func (c *ProjectsSourcesFindingsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsSourcesFindingsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsSourcesFindingsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6775,14 +10566,14 @@ func (c *OrganizationsSourcesFindingsPatchCall) doRequest(alt string) (*http.Res return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "securitycenter.organizations.sources.findings.patch" call. +// Do executes the "securitycenter.projects.sources.findings.patch" call. // Exactly one of *Finding or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either // *Finding.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *OrganizationsSourcesFindingsPatchCall) Do(opts ...googleapi.CallOption) (*Finding, error) { +func (c *ProjectsSourcesFindingsPatchCall) Do(opts ...googleapi.CallOption) (*Finding, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6814,9 +10605,9 @@ func (c *OrganizationsSourcesFindingsPatchCall) Do(opts ...googleapi.CallOption) return ret, nil // { // "description": "Creates or updates a finding. The corresponding source must exist for a finding creation to succeed.", - // "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}/findings/{findingsId}", + // "flatPath": "v1/projects/{projectsId}/sources/{sourcesId}/findings/{findingsId}", // "httpMethod": "PATCH", - // "id": "securitycenter.organizations.sources.findings.patch", + // "id": "securitycenter.projects.sources.findings.patch", // "parameterOrder": [ // "name" // ], @@ -6824,7 +10615,7 @@ func (c *OrganizationsSourcesFindingsPatchCall) Do(opts ...googleapi.CallOption) // "name": { // "description": "The relative resource name of this finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}\"", // "location": "path", - // "pattern": "^organizations/[^/]+/sources/[^/]+/findings/[^/]+$", + // "pattern": "^projects/[^/]+/sources/[^/]+/findings/[^/]+$", // "required": true, // "type": "string" // }, @@ -6849,9 +10640,9 @@ func (c *OrganizationsSourcesFindingsPatchCall) Do(opts ...googleapi.CallOption) } -// method id "securitycenter.organizations.sources.findings.setState": +// method id "securitycenter.projects.sources.findings.setState": -type OrganizationsSourcesFindingsSetStateCall struct { +type ProjectsSourcesFindingsSetStateCall struct { s *Service name string setfindingstaterequest *SetFindingStateRequest @@ -6861,8 +10652,8 @@ type OrganizationsSourcesFindingsSetStateCall struct { } // SetState: Updates the state of a finding. -func (r *OrganizationsSourcesFindingsService) SetState(name string, setfindingstaterequest *SetFindingStateRequest) *OrganizationsSourcesFindingsSetStateCall { - c := &OrganizationsSourcesFindingsSetStateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsSourcesFindingsService) SetState(name string, setfindingstaterequest *SetFindingStateRequest) *ProjectsSourcesFindingsSetStateCall { + c := &ProjectsSourcesFindingsSetStateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name c.setfindingstaterequest = setfindingstaterequest return c @@ -6871,7 +10662,7 @@ func (r *OrganizationsSourcesFindingsService) SetState(name string, setfindingst // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsSourcesFindingsSetStateCall) Fields(s ...googleapi.Field) *OrganizationsSourcesFindingsSetStateCall { +func (c *ProjectsSourcesFindingsSetStateCall) Fields(s ...googleapi.Field) *ProjectsSourcesFindingsSetStateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6879,23 +10670,23 @@ func (c *OrganizationsSourcesFindingsSetStateCall) Fields(s ...googleapi.Field) // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsSourcesFindingsSetStateCall) Context(ctx context.Context) *OrganizationsSourcesFindingsSetStateCall { +func (c *ProjectsSourcesFindingsSetStateCall) Context(ctx context.Context) *ProjectsSourcesFindingsSetStateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsSourcesFindingsSetStateCall) Header() http.Header { +func (c *ProjectsSourcesFindingsSetStateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsSourcesFindingsSetStateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsSourcesFindingsSetStateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6921,14 +10712,14 @@ func (c *OrganizationsSourcesFindingsSetStateCall) doRequest(alt string) (*http. return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "securitycenter.organizations.sources.findings.setState" call. +// Do executes the "securitycenter.projects.sources.findings.setState" call. // Exactly one of *Finding or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either // *Finding.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *OrganizationsSourcesFindingsSetStateCall) Do(opts ...googleapi.CallOption) (*Finding, error) { +func (c *ProjectsSourcesFindingsSetStateCall) Do(opts ...googleapi.CallOption) (*Finding, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6960,9 +10751,9 @@ func (c *OrganizationsSourcesFindingsSetStateCall) Do(opts ...googleapi.CallOpti return ret, nil // { // "description": "Updates the state of a finding.", - // "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}/findings/{findingsId}:setState", + // "flatPath": "v1/projects/{projectsId}/sources/{sourcesId}/findings/{findingsId}:setState", // "httpMethod": "POST", - // "id": "securitycenter.organizations.sources.findings.setState", + // "id": "securitycenter.projects.sources.findings.setState", // "parameterOrder": [ // "name" // ], @@ -6970,7 +10761,7 @@ func (c *OrganizationsSourcesFindingsSetStateCall) Do(opts ...googleapi.CallOpti // "name": { // "description": "Required. The relative resource name of the finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/sources/{source_id}/finding/{finding_id}\".", // "location": "path", - // "pattern": "^organizations/[^/]+/sources/[^/]+/findings/[^/]+$", + // "pattern": "^projects/[^/]+/sources/[^/]+/findings/[^/]+$", // "required": true, // "type": "string" // } @@ -6989,9 +10780,9 @@ func (c *OrganizationsSourcesFindingsSetStateCall) Do(opts ...googleapi.CallOpti } -// method id "securitycenter.organizations.sources.findings.updateSecurityMarks": +// method id "securitycenter.projects.sources.findings.updateSecurityMarks": -type OrganizationsSourcesFindingsUpdateSecurityMarksCall struct { +type ProjectsSourcesFindingsUpdateSecurityMarksCall struct { s *Service name string securitymarks *SecurityMarks @@ -7001,8 +10792,8 @@ type OrganizationsSourcesFindingsUpdateSecurityMarksCall struct { } // UpdateSecurityMarks: Updates security marks. -func (r *OrganizationsSourcesFindingsService) UpdateSecurityMarks(name string, securitymarks *SecurityMarks) *OrganizationsSourcesFindingsUpdateSecurityMarksCall { - c := &OrganizationsSourcesFindingsUpdateSecurityMarksCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsSourcesFindingsService) UpdateSecurityMarks(name string, securitymarks *SecurityMarks) *ProjectsSourcesFindingsUpdateSecurityMarksCall { + c := &ProjectsSourcesFindingsUpdateSecurityMarksCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name c.securitymarks = securitymarks return c @@ -7012,7 +10803,7 @@ func (r *OrganizationsSourcesFindingsService) UpdateSecurityMarks(name string, s // the updated SecurityMarks take effect. If not set uses current server // time. Updates will be applied to the SecurityMarks that are active // immediately preceding this time. -func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) StartTime(startTime string) *OrganizationsSourcesFindingsUpdateSecurityMarksCall { +func (c *ProjectsSourcesFindingsUpdateSecurityMarksCall) StartTime(startTime string) *ProjectsSourcesFindingsUpdateSecurityMarksCall { c.urlParams_.Set("startTime", startTime) return c } @@ -7021,7 +10812,7 @@ func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) StartTime(startTim // use when updating the security marks resource. The field mask must // not contain duplicate fields. If empty or set to "marks", all marks // will be replaced. Individual marks can be updated using "marks.". -func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) UpdateMask(updateMask string) *OrganizationsSourcesFindingsUpdateSecurityMarksCall { +func (c *ProjectsSourcesFindingsUpdateSecurityMarksCall) UpdateMask(updateMask string) *ProjectsSourcesFindingsUpdateSecurityMarksCall { c.urlParams_.Set("updateMask", updateMask) return c } @@ -7029,7 +10820,7 @@ func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) UpdateMask(updateM // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) Fields(s ...googleapi.Field) *OrganizationsSourcesFindingsUpdateSecurityMarksCall { +func (c *ProjectsSourcesFindingsUpdateSecurityMarksCall) Fields(s ...googleapi.Field) *ProjectsSourcesFindingsUpdateSecurityMarksCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7037,23 +10828,23 @@ func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) Fields(s ...google // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) Context(ctx context.Context) *OrganizationsSourcesFindingsUpdateSecurityMarksCall { +func (c *ProjectsSourcesFindingsUpdateSecurityMarksCall) Context(ctx context.Context) *ProjectsSourcesFindingsUpdateSecurityMarksCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) Header() http.Header { +func (c *ProjectsSourcesFindingsUpdateSecurityMarksCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsSourcesFindingsUpdateSecurityMarksCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7079,14 +10870,14 @@ func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) doRequest(alt stri return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "securitycenter.organizations.sources.findings.updateSecurityMarks" call. +// Do executes the "securitycenter.projects.sources.findings.updateSecurityMarks" call. // Exactly one of *SecurityMarks or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *SecurityMarks.ServerResponse.Header or (if a response was returned // at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) Do(opts ...googleapi.CallOption) (*SecurityMarks, error) { +func (c *ProjectsSourcesFindingsUpdateSecurityMarksCall) Do(opts ...googleapi.CallOption) (*SecurityMarks, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7118,9 +10909,9 @@ func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) Do(opts ...googlea return ret, nil // { // "description": "Updates security marks.", - // "flatPath": "v1/organizations/{organizationsId}/sources/{sourcesId}/findings/{findingsId}/securityMarks", + // "flatPath": "v1/projects/{projectsId}/sources/{sourcesId}/findings/{findingsId}/securityMarks", // "httpMethod": "PATCH", - // "id": "securitycenter.organizations.sources.findings.updateSecurityMarks", + // "id": "securitycenter.projects.sources.findings.updateSecurityMarks", // "parameterOrder": [ // "name" // ], @@ -7128,7 +10919,7 @@ func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) Do(opts ...googlea // "name": { // "description": "The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: \"organizations/{organization_id}/assets/{asset_id}/securityMarks\" \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks\".", // "location": "path", - // "pattern": "^organizations/[^/]+/sources/[^/]+/findings/[^/]+/securityMarks$", + // "pattern": "^projects/[^/]+/sources/[^/]+/findings/[^/]+/securityMarks$", // "required": true, // "type": "string" // }, diff --git a/securitycenter/v1beta1/securitycenter-api.json b/securitycenter/v1beta1/securitycenter-api.json index 26c827b4dd0..a380622caba 100644 --- a/securitycenter/v1beta1/securitycenter-api.json +++ b/securitycenter/v1beta1/securitycenter-api.json @@ -896,7 +896,7 @@ } } }, - "revision": "20200918", + "revision": "20201112", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Asset": { @@ -1131,6 +1131,21 @@ }, "type": "object" }, + "Folder": { + "description": "Message that contains the resource name and display name of a folder resource.", + "id": "Folder", + "properties": { + "resourceFolder": { + "description": "Full resource name of this folder. See: https://cloud.google.com/apis/design/resource_names#full_resource_name", + "type": "string" + }, + "resourceFolderDisplayName": { + "description": "The user defined display name for this folder.", + "type": "string" + } + }, + "type": "object" + }, "GetIamPolicyRequest": { "description": "Request message for `GetIamPolicy` method.", "id": "GetIamPolicyRequest", @@ -1177,6 +1192,14 @@ "description": "Information related to the Google Cloud resource.", "id": "GoogleCloudSecuritycenterV1Resource", "properties": { + "folders": { + "description": "Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.", + "items": { + "$ref": "Folder" + }, + "readOnly": true, + "type": "array" + }, "name": { "description": "The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name", "type": "string" @@ -1418,6 +1441,21 @@ }, "type": "object" }, + "GoogleCloudSecuritycenterV1p1beta1Folder": { + "description": "Message that contains the resource name and display name of a folder resource.", + "id": "GoogleCloudSecuritycenterV1p1beta1Folder", + "properties": { + "resourceFolder": { + "description": "Full resource name of this folder. See: https://cloud.google.com/apis/design/resource_names#full_resource_name", + "type": "string" + }, + "resourceFolderDisplayName": { + "description": "The user defined display name for this folder.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudSecuritycenterV1p1beta1NotificationMessage": { "description": "Security Command Center's Notification", "id": "GoogleCloudSecuritycenterV1p1beta1NotificationMessage", @@ -1441,6 +1479,14 @@ "description": "Information related to the Google Cloud resource.", "id": "GoogleCloudSecuritycenterV1p1beta1Resource", "properties": { + "folders": { + "description": "Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.", + "items": { + "$ref": "GoogleCloudSecuritycenterV1p1beta1Folder" + }, + "readOnly": true, + "type": "array" + }, "name": { "description": "The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name", "type": "string" diff --git a/securitycenter/v1beta1/securitycenter-gen.go b/securitycenter/v1beta1/securitycenter-gen.go index 8009afb7223..1efbeabc1c1 100644 --- a/securitycenter/v1beta1/securitycenter-gen.go +++ b/securitycenter/v1beta1/securitycenter-gen.go @@ -631,6 +631,41 @@ func (s *Finding) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Folder: Message that contains the resource name and display name of a +// folder resource. +type Folder struct { + // ResourceFolder: Full resource name of this folder. See: + // https://cloud.google.com/apis/design/resource_names#full_resource_name + ResourceFolder string `json:"resourceFolder,omitempty"` + + // ResourceFolderDisplayName: The user defined display name for this + // folder. + ResourceFolderDisplayName string `json:"resourceFolderDisplayName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ResourceFolder") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ResourceFolder") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *Folder) MarshalJSON() ([]byte, error) { + type NoMethod Folder + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GetIamPolicyRequest: Request message for `GetIamPolicy` method. type GetIamPolicyRequest struct { // Options: OPTIONAL: A `GetPolicyOptions` object for specifying options @@ -738,6 +773,11 @@ func (s *GoogleCloudSecuritycenterV1NotificationMessage) MarshalJSON() ([]byte, // GoogleCloudSecuritycenterV1Resource: Information related to the // Google Cloud resource. type GoogleCloudSecuritycenterV1Resource struct { + // Folders: Output only. Contains a Folder message for each folder in + // the assets ancestry. The first folder is the deepest nested folder, + // and the last folder is the folder directly under the Organization. + Folders []*Folder `json:"folders,omitempty"` + // Name: The full resource name of the resource. See: // https://cloud.google.com/apis/design/resource_names#full_resource_name Name string `json:"name,omitempty"` @@ -756,7 +796,7 @@ type GoogleCloudSecuritycenterV1Resource struct { // resource belongs to. ProjectDisplayName string `json:"projectDisplayName,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to + // ForceSendFields is a list of field names (e.g. "Folders") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -764,8 +804,8 @@ type GoogleCloudSecuritycenterV1Resource struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Folders") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -1107,6 +1147,41 @@ func (s *GoogleCloudSecuritycenterV1p1beta1Finding) MarshalJSON() ([]byte, error return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudSecuritycenterV1p1beta1Folder: Message that contains the +// resource name and display name of a folder resource. +type GoogleCloudSecuritycenterV1p1beta1Folder struct { + // ResourceFolder: Full resource name of this folder. See: + // https://cloud.google.com/apis/design/resource_names#full_resource_name + ResourceFolder string `json:"resourceFolder,omitempty"` + + // ResourceFolderDisplayName: The user defined display name for this + // folder. + ResourceFolderDisplayName string `json:"resourceFolderDisplayName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ResourceFolder") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ResourceFolder") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudSecuritycenterV1p1beta1Folder) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudSecuritycenterV1p1beta1Folder + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudSecuritycenterV1p1beta1NotificationMessage: Security // Command Center's Notification type GoogleCloudSecuritycenterV1p1beta1NotificationMessage struct { @@ -1147,6 +1222,11 @@ func (s *GoogleCloudSecuritycenterV1p1beta1NotificationMessage) MarshalJSON() ([ // GoogleCloudSecuritycenterV1p1beta1Resource: Information related to // the Google Cloud resource. type GoogleCloudSecuritycenterV1p1beta1Resource struct { + // Folders: Output only. Contains a Folder message for each folder in + // the assets ancestry. The first folder is the deepest nested folder, + // and the last folder is the folder directly under the Organization. + Folders []*GoogleCloudSecuritycenterV1p1beta1Folder `json:"folders,omitempty"` + // Name: The full resource name of the resource. See: // https://cloud.google.com/apis/design/resource_names#full_resource_name Name string `json:"name,omitempty"` @@ -1165,7 +1245,7 @@ type GoogleCloudSecuritycenterV1p1beta1Resource struct { // resource belongs to. ProjectDisplayName string `json:"projectDisplayName,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to + // ForceSendFields is a list of field names (e.g. "Folders") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -1173,8 +1253,8 @@ type GoogleCloudSecuritycenterV1p1beta1Resource struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Folders") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -2338,7 +2418,7 @@ func (c *OrganizationsGetOrganizationSettingsCall) Header() http.Header { func (c *OrganizationsGetOrganizationSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2480,7 +2560,7 @@ func (c *OrganizationsUpdateOrganizationSettingsCall) Header() http.Header { func (c *OrganizationsUpdateOrganizationSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2627,7 +2707,7 @@ func (c *OrganizationsAssetsGroupCall) Header() http.Header { func (c *OrganizationsAssetsGroupCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2890,7 +2970,7 @@ func (c *OrganizationsAssetsListCall) Header() http.Header { func (c *OrganizationsAssetsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3088,7 +3168,7 @@ func (c *OrganizationsAssetsRunDiscoveryCall) Header() http.Header { func (c *OrganizationsAssetsRunDiscoveryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3242,7 +3322,7 @@ func (c *OrganizationsAssetsUpdateSecurityMarksCall) Header() http.Header { func (c *OrganizationsAssetsUpdateSecurityMarksCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3405,7 +3485,7 @@ func (c *OrganizationsOperationsCancelCall) Header() http.Header { func (c *OrganizationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3546,7 +3626,7 @@ func (c *OrganizationsOperationsDeleteCall) Header() http.Header { func (c *OrganizationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3689,7 +3769,7 @@ func (c *OrganizationsOperationsGetCall) Header() http.Header { func (c *OrganizationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3863,7 +3943,7 @@ func (c *OrganizationsOperationsListCall) Header() http.Header { func (c *OrganizationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4035,7 +4115,7 @@ func (c *OrganizationsSourcesCreateCall) Header() http.Header { func (c *OrganizationsSourcesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4184,7 +4264,7 @@ func (c *OrganizationsSourcesGetCall) Header() http.Header { func (c *OrganizationsSourcesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4319,7 +4399,7 @@ func (c *OrganizationsSourcesGetIamPolicyCall) Header() http.Header { func (c *OrganizationsSourcesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4485,7 +4565,7 @@ func (c *OrganizationsSourcesListCall) Header() http.Header { func (c *OrganizationsSourcesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4659,7 +4739,7 @@ func (c *OrganizationsSourcesPatchCall) Header() http.Header { func (c *OrganizationsSourcesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4805,7 +4885,7 @@ func (c *OrganizationsSourcesSetIamPolicyCall) Header() http.Header { func (c *OrganizationsSourcesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4946,7 +5026,7 @@ func (c *OrganizationsSourcesTestIamPermissionsCall) Header() http.Header { func (c *OrganizationsSourcesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5096,7 +5176,7 @@ func (c *OrganizationsSourcesFindingsCreateCall) Header() http.Header { func (c *OrganizationsSourcesFindingsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5245,7 +5325,7 @@ func (c *OrganizationsSourcesFindingsGroupCall) Header() http.Header { func (c *OrganizationsSourcesFindingsGroupCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5484,7 +5564,7 @@ func (c *OrganizationsSourcesFindingsListCall) Header() http.Header { func (c *OrganizationsSourcesFindingsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5682,7 +5762,7 @@ func (c *OrganizationsSourcesFindingsPatchCall) Header() http.Header { func (c *OrganizationsSourcesFindingsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5829,7 +5909,7 @@ func (c *OrganizationsSourcesFindingsSetStateCall) Header() http.Header { func (c *OrganizationsSourcesFindingsSetStateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5984,7 +6064,7 @@ func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) Header() http.Head func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/securitycenter/v1beta2/securitycenter-api.json b/securitycenter/v1beta2/securitycenter-api.json index 15bc1f245b5..4f34c268487 100644 --- a/securitycenter/v1beta2/securitycenter-api.json +++ b/securitycenter/v1beta2/securitycenter-api.json @@ -1328,7 +1328,7 @@ } } }, - "revision": "20200918", + "revision": "20201112", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Config": { @@ -1543,6 +1543,21 @@ }, "type": "object" }, + "Folder": { + "description": "Message that contains the resource name and display name of a folder resource.", + "id": "Folder", + "properties": { + "resourceFolder": { + "description": "Full resource name of this folder. See: https://cloud.google.com/apis/design/resource_names#full_resource_name", + "type": "string" + }, + "resourceFolderDisplayName": { + "description": "The user defined display name for this folder.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudSecuritycenterV1NotificationMessage": { "description": "Cloud SCC's Notification", "id": "GoogleCloudSecuritycenterV1NotificationMessage", @@ -1566,6 +1581,14 @@ "description": "Information related to the Google Cloud resource.", "id": "GoogleCloudSecuritycenterV1Resource", "properties": { + "folders": { + "description": "Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.", + "items": { + "$ref": "Folder" + }, + "readOnly": true, + "type": "array" + }, "name": { "description": "The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name", "type": "string" @@ -1726,6 +1749,21 @@ }, "type": "object" }, + "GoogleCloudSecuritycenterV1p1beta1Folder": { + "description": "Message that contains the resource name and display name of a folder resource.", + "id": "GoogleCloudSecuritycenterV1p1beta1Folder", + "properties": { + "resourceFolder": { + "description": "Full resource name of this folder. See: https://cloud.google.com/apis/design/resource_names#full_resource_name", + "type": "string" + }, + "resourceFolderDisplayName": { + "description": "The user defined display name for this folder.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudSecuritycenterV1p1beta1NotificationMessage": { "description": "Security Command Center's Notification", "id": "GoogleCloudSecuritycenterV1p1beta1NotificationMessage", @@ -1749,6 +1787,14 @@ "description": "Information related to the Google Cloud resource.", "id": "GoogleCloudSecuritycenterV1p1beta1Resource", "properties": { + "folders": { + "description": "Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.", + "items": { + "$ref": "GoogleCloudSecuritycenterV1p1beta1Folder" + }, + "readOnly": true, + "type": "array" + }, "name": { "description": "The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name", "type": "string" diff --git a/securitycenter/v1beta2/securitycenter-gen.go b/securitycenter/v1beta2/securitycenter-gen.go index 8b075894dde..cc88a0d98df 100644 --- a/securitycenter/v1beta2/securitycenter-gen.go +++ b/securitycenter/v1beta2/securitycenter-gen.go @@ -644,6 +644,41 @@ func (s *Finding) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Folder: Message that contains the resource name and display name of a +// folder resource. +type Folder struct { + // ResourceFolder: Full resource name of this folder. See: + // https://cloud.google.com/apis/design/resource_names#full_resource_name + ResourceFolder string `json:"resourceFolder,omitempty"` + + // ResourceFolderDisplayName: The user defined display name for this + // folder. + ResourceFolderDisplayName string `json:"resourceFolderDisplayName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ResourceFolder") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ResourceFolder") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *Folder) MarshalJSON() ([]byte, error) { + type NoMethod Folder + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudSecuritycenterV1NotificationMessage: Cloud SCC's // Notification type GoogleCloudSecuritycenterV1NotificationMessage struct { @@ -684,6 +719,11 @@ func (s *GoogleCloudSecuritycenterV1NotificationMessage) MarshalJSON() ([]byte, // GoogleCloudSecuritycenterV1Resource: Information related to the // Google Cloud resource. type GoogleCloudSecuritycenterV1Resource struct { + // Folders: Output only. Contains a Folder message for each folder in + // the assets ancestry. The first folder is the deepest nested folder, + // and the last folder is the folder directly under the Organization. + Folders []*Folder `json:"folders,omitempty"` + // Name: The full resource name of the resource. See: // https://cloud.google.com/apis/design/resource_names#full_resource_name Name string `json:"name,omitempty"` @@ -702,7 +742,7 @@ type GoogleCloudSecuritycenterV1Resource struct { // resource belongs to. ProjectDisplayName string `json:"projectDisplayName,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to + // ForceSendFields is a list of field names (e.g. "Folders") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -710,8 +750,8 @@ type GoogleCloudSecuritycenterV1Resource struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Folders") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -909,6 +949,41 @@ func (s *GoogleCloudSecuritycenterV1p1beta1Finding) MarshalJSON() ([]byte, error return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudSecuritycenterV1p1beta1Folder: Message that contains the +// resource name and display name of a folder resource. +type GoogleCloudSecuritycenterV1p1beta1Folder struct { + // ResourceFolder: Full resource name of this folder. See: + // https://cloud.google.com/apis/design/resource_names#full_resource_name + ResourceFolder string `json:"resourceFolder,omitempty"` + + // ResourceFolderDisplayName: The user defined display name for this + // folder. + ResourceFolderDisplayName string `json:"resourceFolderDisplayName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ResourceFolder") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ResourceFolder") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudSecuritycenterV1p1beta1Folder) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudSecuritycenterV1p1beta1Folder + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudSecuritycenterV1p1beta1NotificationMessage: Security // Command Center's Notification type GoogleCloudSecuritycenterV1p1beta1NotificationMessage struct { @@ -949,6 +1024,11 @@ func (s *GoogleCloudSecuritycenterV1p1beta1NotificationMessage) MarshalJSON() ([ // GoogleCloudSecuritycenterV1p1beta1Resource: Information related to // the Google Cloud resource. type GoogleCloudSecuritycenterV1p1beta1Resource struct { + // Folders: Output only. Contains a Folder message for each folder in + // the assets ancestry. The first folder is the deepest nested folder, + // and the last folder is the folder directly under the Organization. + Folders []*GoogleCloudSecuritycenterV1p1beta1Folder `json:"folders,omitempty"` + // Name: The full resource name of the resource. See: // https://cloud.google.com/apis/design/resource_names#full_resource_name Name string `json:"name,omitempty"` @@ -967,7 +1047,7 @@ type GoogleCloudSecuritycenterV1p1beta1Resource struct { // resource belongs to. ProjectDisplayName string `json:"projectDisplayName,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to + // ForceSendFields is a list of field names (e.g. "Folders") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -975,8 +1055,8 @@ type GoogleCloudSecuritycenterV1p1beta1Resource struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Folders") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -1383,7 +1463,7 @@ func (c *FoldersGetContainerThreatDetectionSettingsCall) Header() http.Header { func (c *FoldersGetContainerThreatDetectionSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1528,7 +1608,7 @@ func (c *FoldersGetEventThreatDetectionSettingsCall) Header() http.Header { func (c *FoldersGetEventThreatDetectionSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1673,7 +1753,7 @@ func (c *FoldersGetSecurityHealthAnalyticsSettingsCall) Header() http.Header { func (c *FoldersGetSecurityHealthAnalyticsSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1818,7 +1898,7 @@ func (c *FoldersGetWebSecurityScannerSettingsCall) Header() http.Header { func (c *FoldersGetWebSecurityScannerSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1961,7 +2041,7 @@ func (c *FoldersUpdateContainerThreatDetectionSettingsCall) Header() http.Header func (c *FoldersUpdateContainerThreatDetectionSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2115,7 +2195,7 @@ func (c *FoldersUpdateEventThreatDetectionSettingsCall) Header() http.Header { func (c *FoldersUpdateEventThreatDetectionSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2269,7 +2349,7 @@ func (c *FoldersUpdateSecurityHealthAnalyticsSettingsCall) Header() http.Header func (c *FoldersUpdateSecurityHealthAnalyticsSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2423,7 +2503,7 @@ func (c *FoldersUpdateWebSecurityScannerSettingsCall) Header() http.Header { func (c *FoldersUpdateWebSecurityScannerSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2579,7 +2659,7 @@ func (c *FoldersContainerThreatDetectionSettingsCalculateCall) Header() http.Hea func (c *FoldersContainerThreatDetectionSettingsCalculateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2724,7 +2804,7 @@ func (c *FoldersEventThreatDetectionSettingsCalculateCall) Header() http.Header func (c *FoldersEventThreatDetectionSettingsCalculateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2869,7 +2949,7 @@ func (c *FoldersSecurityHealthAnalyticsSettingsCalculateCall) Header() http.Head func (c *FoldersSecurityHealthAnalyticsSettingsCalculateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3014,7 +3094,7 @@ func (c *FoldersWebSecurityScannerSettingsCalculateCall) Header() http.Header { func (c *FoldersWebSecurityScannerSettingsCalculateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3159,7 +3239,7 @@ func (c *OrganizationsGetContainerThreatDetectionSettingsCall) Header() http.Hea func (c *OrganizationsGetContainerThreatDetectionSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3304,7 +3384,7 @@ func (c *OrganizationsGetEventThreatDetectionSettingsCall) Header() http.Header func (c *OrganizationsGetEventThreatDetectionSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3448,7 +3528,7 @@ func (c *OrganizationsGetSecurityCenterSettingsCall) Header() http.Header { func (c *OrganizationsGetSecurityCenterSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3593,7 +3673,7 @@ func (c *OrganizationsGetSecurityHealthAnalyticsSettingsCall) Header() http.Head func (c *OrganizationsGetSecurityHealthAnalyticsSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3737,7 +3817,7 @@ func (c *OrganizationsGetSubscriptionCall) Header() http.Header { func (c *OrganizationsGetSubscriptionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3882,7 +3962,7 @@ func (c *OrganizationsGetWebSecurityScannerSettingsCall) Header() http.Header { func (c *OrganizationsGetWebSecurityScannerSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4025,7 +4105,7 @@ func (c *OrganizationsUpdateContainerThreatDetectionSettingsCall) Header() http. func (c *OrganizationsUpdateContainerThreatDetectionSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4179,7 +4259,7 @@ func (c *OrganizationsUpdateEventThreatDetectionSettingsCall) Header() http.Head func (c *OrganizationsUpdateEventThreatDetectionSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4333,7 +4413,7 @@ func (c *OrganizationsUpdateSecurityHealthAnalyticsSettingsCall) Header() http.H func (c *OrganizationsUpdateSecurityHealthAnalyticsSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4487,7 +4567,7 @@ func (c *OrganizationsUpdateWebSecurityScannerSettingsCall) Header() http.Header func (c *OrganizationsUpdateWebSecurityScannerSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4643,7 +4723,7 @@ func (c *OrganizationsContainerThreatDetectionSettingsCalculateCall) Header() ht func (c *OrganizationsContainerThreatDetectionSettingsCalculateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4788,7 +4868,7 @@ func (c *OrganizationsEventThreatDetectionSettingsCalculateCall) Header() http.H func (c *OrganizationsEventThreatDetectionSettingsCalculateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4933,7 +5013,7 @@ func (c *OrganizationsSecurityHealthAnalyticsSettingsCalculateCall) Header() htt func (c *OrganizationsSecurityHealthAnalyticsSettingsCalculateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5078,7 +5158,7 @@ func (c *OrganizationsWebSecurityScannerSettingsCalculateCall) Header() http.Hea func (c *OrganizationsWebSecurityScannerSettingsCalculateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5223,7 +5303,7 @@ func (c *ProjectsGetContainerThreatDetectionSettingsCall) Header() http.Header { func (c *ProjectsGetContainerThreatDetectionSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5368,7 +5448,7 @@ func (c *ProjectsGetEventThreatDetectionSettingsCall) Header() http.Header { func (c *ProjectsGetEventThreatDetectionSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5513,7 +5593,7 @@ func (c *ProjectsGetSecurityHealthAnalyticsSettingsCall) Header() http.Header { func (c *ProjectsGetSecurityHealthAnalyticsSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5658,7 +5738,7 @@ func (c *ProjectsGetWebSecurityScannerSettingsCall) Header() http.Header { func (c *ProjectsGetWebSecurityScannerSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5801,7 +5881,7 @@ func (c *ProjectsUpdateContainerThreatDetectionSettingsCall) Header() http.Heade func (c *ProjectsUpdateContainerThreatDetectionSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5955,7 +6035,7 @@ func (c *ProjectsUpdateEventThreatDetectionSettingsCall) Header() http.Header { func (c *ProjectsUpdateEventThreatDetectionSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6109,7 +6189,7 @@ func (c *ProjectsUpdateSecurityHealthAnalyticsSettingsCall) Header() http.Header func (c *ProjectsUpdateSecurityHealthAnalyticsSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6263,7 +6343,7 @@ func (c *ProjectsUpdateWebSecurityScannerSettingsCall) Header() http.Header { func (c *ProjectsUpdateWebSecurityScannerSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6419,7 +6499,7 @@ func (c *ProjectsContainerThreatDetectionSettingsCalculateCall) Header() http.He func (c *ProjectsContainerThreatDetectionSettingsCalculateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6564,7 +6644,7 @@ func (c *ProjectsEventThreatDetectionSettingsCalculateCall) Header() http.Header func (c *ProjectsEventThreatDetectionSettingsCalculateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6709,7 +6789,7 @@ func (c *ProjectsLocationsClustersGetContainerThreatDetectionSettingsCall) Heade func (c *ProjectsLocationsClustersGetContainerThreatDetectionSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6852,7 +6932,7 @@ func (c *ProjectsLocationsClustersUpdateContainerThreatDetectionSettingsCall) He func (c *ProjectsLocationsClustersUpdateContainerThreatDetectionSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7008,7 +7088,7 @@ func (c *ProjectsLocationsClustersContainerThreatDetectionSettingsCalculateCall) func (c *ProjectsLocationsClustersContainerThreatDetectionSettingsCalculateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7153,7 +7233,7 @@ func (c *ProjectsSecurityHealthAnalyticsSettingsCalculateCall) Header() http.Hea func (c *ProjectsSecurityHealthAnalyticsSettingsCalculateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7298,7 +7378,7 @@ func (c *ProjectsWebSecurityScannerSettingsCalculateCall) Header() http.Header { func (c *ProjectsWebSecurityScannerSettingsCalculateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/serviceconsumermanagement/v1/serviceconsumermanagement-api.json b/serviceconsumermanagement/v1/serviceconsumermanagement-api.json index 9c66d808611..38015161ca3 100644 --- a/serviceconsumermanagement/v1/serviceconsumermanagement-api.json +++ b/serviceconsumermanagement/v1/serviceconsumermanagement-api.json @@ -542,7 +542,7 @@ } } }, - "revision": "20201021", + "revision": "20201104", "rootUrl": "https://serviceconsumermanagement.googleapis.com/", "schemas": { "AddTenantProjectRequest": { @@ -667,7 +667,7 @@ "type": "string" }, "jwksUri": { - "description": "URL of the provider's public key set to validate signature of the JWT. See [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). Optional if the key set document: - can be retrieved from [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html of the issuer. - can be inferred from the email domain of the issuer (e.g. a Google service account). Example: https://www.googleapis.com/oauth2/v1/certs", + "description": "URL of the provider's public key set to validate signature of the JWT. See [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). Optional if the key set document: - can be retrieved from [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) of the issuer. - can be inferred from the email domain of the issuer (e.g. a Google service account). Example: https://www.googleapis.com/oauth2/v1/certs", "type": "string" }, "jwtLocations": { diff --git a/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go b/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go index 90642e64c73..e927ddd67f5 100644 --- a/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go +++ b/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go @@ -388,8 +388,8 @@ type AuthProvider struct { // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html# // ProviderMetadata). Optional if the key set document: - can be // retrieved from [OpenID - // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html - // of the issuer. - can be inferred from the email domain of the issuer + // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) + // of the issuer. - can be inferred from the email domain of the issuer // (e.g. a Google service account). Example: // https://www.googleapis.com/oauth2/v1/certs JwksUri string `json:"jwksUri,omitempty"` @@ -4499,7 +4499,7 @@ func (c *OperationsCancelCall) Header() http.Header { func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4640,7 +4640,7 @@ func (c *OperationsDeleteCall) Header() http.Header { func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4783,7 +4783,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4957,7 +4957,7 @@ func (c *OperationsListCall) Header() http.Header { func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5174,7 +5174,7 @@ func (c *ServicesSearchCall) Header() http.Header { func (c *ServicesSearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5350,7 +5350,7 @@ func (c *ServicesTenancyUnitsAddProjectCall) Header() http.Header { func (c *ServicesTenancyUnitsAddProjectCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5505,7 +5505,7 @@ func (c *ServicesTenancyUnitsApplyProjectConfigCall) Header() http.Header { func (c *ServicesTenancyUnitsApplyProjectConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5654,7 +5654,7 @@ func (c *ServicesTenancyUnitsAttachProjectCall) Header() http.Header { func (c *ServicesTenancyUnitsAttachProjectCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5798,7 +5798,7 @@ func (c *ServicesTenancyUnitsCreateCall) Header() http.Header { func (c *ServicesTenancyUnitsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5938,7 +5938,7 @@ func (c *ServicesTenancyUnitsDeleteCall) Header() http.Header { func (c *ServicesTenancyUnitsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6078,7 +6078,7 @@ func (c *ServicesTenancyUnitsDeleteProjectCall) Header() http.Header { func (c *ServicesTenancyUnitsDeleteProjectCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6254,7 +6254,7 @@ func (c *ServicesTenancyUnitsListCall) Header() http.Header { func (c *ServicesTenancyUnitsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6433,7 +6433,7 @@ func (c *ServicesTenancyUnitsRemoveProjectCall) Header() http.Header { func (c *ServicesTenancyUnitsRemoveProjectCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6578,7 +6578,7 @@ func (c *ServicesTenancyUnitsUndeleteProjectCall) Header() http.Header { func (c *ServicesTenancyUnitsUndeleteProjectCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json index bbfa9d72bca..8c12604177c 100644 --- a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json +++ b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json @@ -452,7 +452,7 @@ } } }, - "revision": "20201021", + "revision": "20201104", "rootUrl": "https://serviceconsumermanagement.googleapis.com/", "schemas": { "Api": { @@ -528,7 +528,7 @@ "type": "string" }, "jwksUri": { - "description": "URL of the provider's public key set to validate signature of the JWT. See [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). Optional if the key set document: - can be retrieved from [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html of the issuer. - can be inferred from the email domain of the issuer (e.g. a Google service account). Example: https://www.googleapis.com/oauth2/v1/certs", + "description": "URL of the provider's public key set to validate signature of the JWT. See [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). Optional if the key set document: - can be retrieved from [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) of the issuer. - can be inferred from the email domain of the issuer (e.g. a Google service account). Example: https://www.googleapis.com/oauth2/v1/certs", "type": "string" }, "jwtLocations": { diff --git a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go index a82a9efa421..1d90448f7ea 100644 --- a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go +++ b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go @@ -303,8 +303,8 @@ type AuthProvider struct { // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html# // ProviderMetadata). Optional if the key set document: - can be // retrieved from [OpenID - // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html - // of the issuer. - can be inferred from the email domain of the issuer + // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) + // of the issuer. - can be inferred from the email domain of the issuer // (e.g. a Google service account). Example: // https://www.googleapis.com/oauth2/v1/certs JwksUri string `json:"jwksUri,omitempty"` @@ -4195,7 +4195,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4358,7 +4358,7 @@ func (c *ServicesConsumerQuotaMetricsGetCall) Header() http.Header { func (c *ServicesConsumerQuotaMetricsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4511,7 +4511,7 @@ func (c *ServicesConsumerQuotaMetricsImportProducerOverridesCall) Header() http. func (c *ServicesConsumerQuotaMetricsImportProducerOverridesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4697,7 +4697,7 @@ func (c *ServicesConsumerQuotaMetricsListCall) Header() http.Header { func (c *ServicesConsumerQuotaMetricsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4908,7 +4908,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsGetCall) Header() http.Header { func (c *ServicesConsumerQuotaMetricsLimitsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5076,7 +5076,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsProducerOverridesCreateCall) Header() func (c *ServicesConsumerQuotaMetricsLimitsProducerOverridesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5230,7 +5230,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsProducerOverridesDeleteCall) Header() func (c *ServicesConsumerQuotaMetricsLimitsProducerOverridesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5390,7 +5390,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsProducerOverridesListCall) Header() h func (c *ServicesConsumerQuotaMetricsLimitsProducerOverridesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5576,7 +5576,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsProducerOverridesPatchCall) Header() func (c *ServicesConsumerQuotaMetricsLimitsProducerOverridesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/servicecontrol/v1/servicecontrol-api.json b/servicecontrol/v1/servicecontrol-api.json index 402aaeca1ec..c7bfdca8368 100644 --- a/servicecontrol/v1/servicecontrol-api.json +++ b/servicecontrol/v1/servicecontrol-api.json @@ -197,7 +197,7 @@ } } }, - "revision": "20200917", + "revision": "20201025", "rootUrl": "https://servicecontrol.googleapis.com/", "schemas": { "AllocateInfo": { @@ -1081,7 +1081,7 @@ "type": "number" }, "endTime": { - "description": "The end of the time period over which this metric value's measurement applies.", + "description": "The end of the time period over which this metric value's measurement applies. If not specified, google.api.servicecontrol.v1.Operation.end_time will be used.", "format": "google-datetime", "type": "string" }, @@ -1102,7 +1102,7 @@ "description": "A money value." }, "startTime": { - "description": "The start of the time period over which this metric value's measurement applies. The time period has different semantics for different metric types (cumulative, delta, and gauge). See the metric definition documentation in the service configuration for details.", + "description": "The start of the time period over which this metric value's measurement applies. The time period has different semantics for different metric types (cumulative, delta, and gauge). See the metric definition documentation in the service configuration for details. If not specified, google.api.servicecontrol.v1.Operation.start_time will be used.", "format": "google-datetime", "type": "string" }, @@ -1136,7 +1136,7 @@ "id": "Money", "properties": { "currencyCode": { - "description": "The 3-letter currency code defined in ISO 4217.", + "description": "The three-letter currency code defined in ISO 4217.", "type": "string" }, "nanos": { @@ -1186,7 +1186,7 @@ "enumDescriptions": [ "The API implementation may cache and aggregate the data. The data may be lost when rare and unexpected system failures occur.", "The API implementation doesn't cache and aggregate the data. If the method returns successfully, it's guaranteed that the data has been persisted in durable storage.", - "In addition to the behavior described in HIGH, DEBUG enables additional validation logic that is only useful during the onboarding process. This is only available to Google internal services and the service must be whitelisted by chemist-dev@google.com in order to use this level." + "In addition to the behavior described in HIGH, DEBUG enables additional validation logic that is only useful during the onboarding process. This is only available to Google internal services and the service must be allowlisted by chemist-dev@google.com in order to use this level." ], "type": "string" }, @@ -1327,6 +1327,10 @@ "description": "Free-form text that provides details on the cause of the error.", "type": "string" }, + "status": { + "$ref": "Status", + "description": "Contains additional information about the quota error. If available, `status.code` will be non zero." + }, "subject": { "description": "Subject to whom this error applies. See the specific enum for more details on this field. For example, \"clientip:\" or \"project:\".", "type": "string" @@ -1408,7 +1412,7 @@ "For AllocateQuota request, allocates quota for the amount specified in the service configuration or specified using the quota metrics. If the amount is higher than the available quota, allocation error will be returned and no quota will be allocated. If multiple quotas are part of the request, and one fails, none of the quotas are allocated or released.", "The operation allocates quota for the amount specified in the service configuration or specified using the quota metrics. If the amount is higher than the available quota, request does not fail but all available quota will be allocated. For rate quota, BEST_EFFORT will continue to deduct from other groups even if one does not have enough quota. For allocation, it will find the minimum available amount across all groups and deduct that amount from all the affected groups.", "For AllocateQuota request, only checks if there is enough quota available and does not change the available quota. No lock is placed on the available quota either.", - "Unimplemented. When used in AllocateQuotaRequest, this returns the effective quota limit(s) in the response, and no quota check will be performed. Not supported for other requests, and even for AllocateQuotaRequest, this is currently supported only for whitelisted services.", + "Unimplemented. When used in AllocateQuotaRequest, this returns the effective quota limit(s) in the response, and no quota check will be performed. Not supported for other requests, and even for AllocateQuotaRequest, this is currently supported only for allowlisted services.", "The operation allocates quota for the amount specified in the service configuration or specified using the quota metrics. If the requested amount is higher than the available quota, request does not fail and remaining quota would become negative (going over the limit). Not supported for Rate Quota." ], "type": "string" @@ -1607,6 +1611,31 @@ "description": "This message defines core attributes for a resource. A resource is an addressable (named) entity provided by the destination service. For example, a file stored on a network storage service.", "id": "Resource", "properties": { + "annotations": { + "additionalProperties": { + "type": "string" + }, + "description": "Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations", + "type": "object" + }, + "createTime": { + "description": "Output only. The timestamp when the resource was created. This may be either the time creation was initiated or when it was completed.", + "format": "google-datetime", + "type": "string" + }, + "deleteTime": { + "description": "Output only. The timestamp when the resource was deleted. If the resource is not deleted, this must be empty.", + "format": "google-datetime", + "type": "string" + }, + "displayName": { + "description": "Mutable. The display name set by clients. Must be \u003c= 63 characters.", + "type": "string" + }, + "etag": { + "description": "Output only. An opaque value that uniquely identifies a version or generation of a resource. It can be used to confirm that the client and server agree on the ordering of a resource being written.", + "type": "string" + }, "labels": { "additionalProperties": { "type": "string" @@ -1625,6 +1654,15 @@ "type": { "description": "The type of the resource. The syntax is platform-specific because different platforms define their resources differently. For Google APIs, the type format must be \"{service}/{kind}\".", "type": "string" + }, + "uid": { + "description": "The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.", + "type": "string" + }, + "updateTime": { + "description": "Output only. The timestamp when the resource was last updated. Any change to the resource made by users must refresh this value. Changes to a resource made by the service should refresh this value.", + "format": "google-datetime", + "type": "string" } }, "type": "object" @@ -1677,6 +1715,10 @@ "$ref": "FirstPartyPrincipal", "description": "First party (Google) identity as the real authority." }, + "principalSubject": { + "description": "A string representing the principal_subject associated with the identity. See go/3pical for more info on how principal_subject is formatted.", + "type": "string" + }, "thirdPartyPrincipal": { "$ref": "ThirdPartyPrincipal", "description": "Third party identity as the real authority." diff --git a/servicecontrol/v1/servicecontrol-gen.go b/servicecontrol/v1/servicecontrol-gen.go index 8b99eff4ac6..29a9b345d04 100644 --- a/servicecontrol/v1/servicecontrol-gen.go +++ b/servicecontrol/v1/servicecontrol-gen.go @@ -1548,7 +1548,8 @@ type MetricValue struct { DoubleValue *float64 `json:"doubleValue,omitempty"` // EndTime: The end of the time period over which this metric value's - // measurement applies. + // measurement applies. If not specified, + // google.api.servicecontrol.v1.Operation.end_time will be used. EndTime string `json:"endTime,omitempty"` // Int64Value: A signed 64-bit integer value. @@ -1567,7 +1568,8 @@ type MetricValue struct { // value's measurement applies. The time period has different semantics // for different metric types (cumulative, delta, and gauge). See the // metric definition documentation in the service configuration for - // details. + // details. If not specified, + // google.api.servicecontrol.v1.Operation.start_time will be used. StartTime string `json:"startTime,omitempty"` // StringValue: A text string value. @@ -1647,7 +1649,7 @@ func (s *MetricValueSet) MarshalJSON() ([]byte, error) { // Money: Represents an amount of money with its currency type. type Money struct { - // CurrencyCode: The 3-letter currency code defined in ISO 4217. + // CurrencyCode: The three-letter currency code defined in ISO 4217. CurrencyCode string `json:"currencyCode,omitempty"` // Nanos: Number of nano (10^-9) units of the amount. The value must be @@ -1715,7 +1717,7 @@ type Operation struct { // "DEBUG" - In addition to the behavior described in HIGH, DEBUG // enables additional validation logic that is only useful during the // onboarding process. This is only available to Google internal - // services and the service must be whitelisted by + // services and the service must be allowlisted by // chemist-dev@google.com in order to use this level. Importance string `json:"importance,omitempty"` @@ -1892,6 +1894,10 @@ type QuotaError struct { // error. Description string `json:"description,omitempty"` + // Status: Contains additional information about the quota error. If + // available, `status.code` will be non zero. + Status *Status `json:"status,omitempty"` + // Subject: Subject to whom this error applies. See the specific enum // for more details on this field. For example, "clientip:" or // "project:". @@ -2039,7 +2045,7 @@ type QuotaOperation struct { // this returns the effective quota limit(s) in the response, and no // quota check will be performed. Not supported for other requests, and // even for AllocateQuotaRequest, this is currently supported only for - // whitelisted services. + // allowlisted services. // "ADJUST_ONLY" - The operation allocates quota for the amount // specified in the service configuration or specified using the quota // metrics. If the requested amount is higher than the available quota, @@ -2424,6 +2430,31 @@ func (s *RequestMetadata) MarshalJSON() ([]byte, error) { // resource is an addressable (named) entity provided by the destination // service. For example, a file stored on a network storage service. type Resource struct { + // Annotations: Annotations is an unstructured key-value map stored with + // a resource that may be set by external tools to store and retrieve + // arbitrary metadata. They are not queryable and should be preserved + // when modifying objects. More info: + // http://kubernetes.io/docs/user-guide/annotations + Annotations map[string]string `json:"annotations,omitempty"` + + // CreateTime: Output only. The timestamp when the resource was created. + // This may be either the time creation was initiated or when it was + // completed. + CreateTime string `json:"createTime,omitempty"` + + // DeleteTime: Output only. The timestamp when the resource was deleted. + // If the resource is not deleted, this must be empty. + DeleteTime string `json:"deleteTime,omitempty"` + + // DisplayName: Mutable. The display name set by clients. Must be <= 63 + // characters. + DisplayName string `json:"displayName,omitempty"` + + // Etag: Output only. An opaque value that uniquely identifies a version + // or generation of a resource. It can be used to confirm that the + // client and server agree on the ordering of a resource being written. + Etag string `json:"etag,omitempty"` + // Labels: The labels or tags on the resource, such as AWS resource tags // and Kubernetes resource labels. Labels map[string]string `json:"labels,omitempty"` @@ -2450,7 +2481,20 @@ type Resource struct { // Google APIs, the type format must be "{service}/{kind}". Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Labels") to + // Uid: The unique identifier of the resource. UID is unique in the time + // and space for this resource within the scope of the service. It is + // typically generated by the server on successful creation of a + // resource and must not be changed. UID is used to uniquely identify + // resources with resource name reuses. This should be a UUID4. + Uid string `json:"uid,omitempty"` + + // UpdateTime: Output only. The timestamp when the resource was last + // updated. Any change to the resource made by users must refresh this + // value. Changes to a resource made by the service should refresh this + // value. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Annotations") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -2458,10 +2502,10 @@ type Resource struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Labels") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Annotations") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` @@ -2561,6 +2605,11 @@ type ServiceAccountDelegationInfo struct { // authority. FirstPartyPrincipal *FirstPartyPrincipal `json:"firstPartyPrincipal,omitempty"` + // PrincipalSubject: A string representing the principal_subject + // associated with the identity. See go/3pical for more info on how + // principal_subject is formatted. + PrincipalSubject string `json:"principalSubject,omitempty"` + // ThirdPartyPrincipal: Third party identity as the real authority. ThirdPartyPrincipal *ThirdPartyPrincipal `json:"thirdPartyPrincipal,omitempty"` @@ -2898,7 +2947,7 @@ func (c *ServicesAllocateQuotaCall) Header() http.Header { func (c *ServicesAllocateQuotaCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3050,7 +3099,7 @@ func (c *ServicesCheckCall) Header() http.Header { func (c *ServicesCheckCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3200,7 +3249,7 @@ func (c *ServicesReportCall) Header() http.Header { func (c *ServicesReportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/servicecontrol/v2/servicecontrol-api.json b/servicecontrol/v2/servicecontrol-api.json index 2c9cfc6ad9e..72fd3bb57c5 100644 --- a/servicecontrol/v2/servicecontrol-api.json +++ b/servicecontrol/v2/servicecontrol-api.json @@ -169,7 +169,7 @@ } } }, - "revision": "20200917", + "revision": "20201025", "rootUrl": "https://servicecontrol.googleapis.com/", "schemas": { "Api": { @@ -631,6 +631,31 @@ "description": "This message defines core attributes for a resource. A resource is an addressable (named) entity provided by the destination service. For example, a file stored on a network storage service.", "id": "Resource", "properties": { + "annotations": { + "additionalProperties": { + "type": "string" + }, + "description": "Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations", + "type": "object" + }, + "createTime": { + "description": "Output only. The timestamp when the resource was created. This may be either the time creation was initiated or when it was completed.", + "format": "google-datetime", + "type": "string" + }, + "deleteTime": { + "description": "Output only. The timestamp when the resource was deleted. If the resource is not deleted, this must be empty.", + "format": "google-datetime", + "type": "string" + }, + "displayName": { + "description": "Mutable. The display name set by clients. Must be \u003c= 63 characters.", + "type": "string" + }, + "etag": { + "description": "Output only. An opaque value that uniquely identifies a version or generation of a resource. It can be used to confirm that the client and server agree on the ordering of a resource being written.", + "type": "string" + }, "labels": { "additionalProperties": { "type": "string" @@ -649,6 +674,15 @@ "type": { "description": "The type of the resource. The syntax is platform-specific because different platforms define their resources differently. For Google APIs, the type format must be \"{service}/{kind}\".", "type": "string" + }, + "uid": { + "description": "The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.", + "type": "string" + }, + "updateTime": { + "description": "Output only. The timestamp when the resource was last updated. Any change to the resource made by users must refresh this value. Changes to a resource made by the service should refresh this value.", + "format": "google-datetime", + "type": "string" } }, "type": "object" @@ -730,6 +764,10 @@ "$ref": "FirstPartyPrincipal", "description": "First party (Google) identity as the real authority." }, + "principalSubject": { + "description": "A string representing the principal_subject associated with the identity. See go/3pical for more info on how principal_subject is formatted.", + "type": "string" + }, "thirdPartyPrincipal": { "$ref": "ThirdPartyPrincipal", "description": "Third party identity as the real authority." diff --git a/servicecontrol/v2/servicecontrol-gen.go b/servicecontrol/v2/servicecontrol-gen.go index fcc124815e3..a91a5ea8946 100644 --- a/servicecontrol/v2/servicecontrol-gen.go +++ b/servicecontrol/v2/servicecontrol-gen.go @@ -905,6 +905,31 @@ func (s *RequestMetadata) MarshalJSON() ([]byte, error) { // resource is an addressable (named) entity provided by the destination // service. For example, a file stored on a network storage service. type Resource struct { + // Annotations: Annotations is an unstructured key-value map stored with + // a resource that may be set by external tools to store and retrieve + // arbitrary metadata. They are not queryable and should be preserved + // when modifying objects. More info: + // http://kubernetes.io/docs/user-guide/annotations + Annotations map[string]string `json:"annotations,omitempty"` + + // CreateTime: Output only. The timestamp when the resource was created. + // This may be either the time creation was initiated or when it was + // completed. + CreateTime string `json:"createTime,omitempty"` + + // DeleteTime: Output only. The timestamp when the resource was deleted. + // If the resource is not deleted, this must be empty. + DeleteTime string `json:"deleteTime,omitempty"` + + // DisplayName: Mutable. The display name set by clients. Must be <= 63 + // characters. + DisplayName string `json:"displayName,omitempty"` + + // Etag: Output only. An opaque value that uniquely identifies a version + // or generation of a resource. It can be used to confirm that the + // client and server agree on the ordering of a resource being written. + Etag string `json:"etag,omitempty"` + // Labels: The labels or tags on the resource, such as AWS resource tags // and Kubernetes resource labels. Labels map[string]string `json:"labels,omitempty"` @@ -931,7 +956,20 @@ type Resource struct { // Google APIs, the type format must be "{service}/{kind}". Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Labels") to + // Uid: The unique identifier of the resource. UID is unique in the time + // and space for this resource within the scope of the service. It is + // typically generated by the server on successful creation of a + // resource and must not be changed. UID is used to uniquely identify + // resources with resource name reuses. This should be a UUID4. + Uid string `json:"uid,omitempty"` + + // UpdateTime: Output only. The timestamp when the resource was last + // updated. Any change to the resource made by users must refresh this + // value. Changes to a resource made by the service should refresh this + // value. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Annotations") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -939,10 +977,10 @@ type Resource struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Labels") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Annotations") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` @@ -1077,6 +1115,11 @@ type ServiceAccountDelegationInfo struct { // authority. FirstPartyPrincipal *FirstPartyPrincipal `json:"firstPartyPrincipal,omitempty"` + // PrincipalSubject: A string representing the principal_subject + // associated with the identity. See go/3pical for more info on how + // principal_subject is formatted. + PrincipalSubject string `json:"principalSubject,omitempty"` + // ThirdPartyPrincipal: Third party identity as the real authority. ThirdPartyPrincipal *ThirdPartyPrincipal `json:"thirdPartyPrincipal,omitempty"` @@ -1276,7 +1319,7 @@ func (c *ServicesCheckCall) Header() http.Header { func (c *ServicesCheckCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1430,7 +1473,7 @@ func (c *ServicesReportCall) Header() http.Header { func (c *ServicesReportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/servicedirectory/v1beta1/servicedirectory-api.json b/servicedirectory/v1beta1/servicedirectory-api.json index 035a4921f25..3d3d4c030a3 100644 --- a/servicedirectory/v1beta1/servicedirectory-api.json +++ b/servicedirectory/v1beta1/servicedirectory-api.json @@ -883,17 +883,13 @@ } } }, - "revision": "20200903", + "revision": "20201112", "rootUrl": "https://servicedirectory.googleapis.com/", "schemas": { "Binding": { "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { - "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", - "type": "string" - }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." @@ -930,7 +926,7 @@ "additionalProperties": { "type": "string" }, - "description": "Optional. Metadata for the endpoint. This data can be consumed by service clients. The entire metadata dictionary may contain up to 512 characters, spread accoss all key-value pairs. Metadata that goes beyond any these limits will be rejected.", + "description": "Optional. Metadata for the endpoint. This data can be consumed by service clients. Restrictions: - The entire metadata dictionary may contain up to 512 characters, spread accoss all key-value pairs. Metadata that goes beyond any these limits will be rejected. - Valid metadata keys have two segments: an optional prefix and name, separated by a slash (/). The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between. The prefix is optional. If specified, the prefix must be a DNS subdomain: a series of DNS labels separated by dots (.), not longer than 253 characters in total, followed by a slash (/). Metadata that fails to meet these requirements will be rejected. - The '(*.)google.com/' and '(*.)googleapis.com/' prefixes are reserved for system metadata managed by Service Directory. If the user tries to write to these keyspaces, those entries will be silently ignored by the system.", "type": "object" }, "name": { @@ -1181,7 +1177,7 @@ "additionalProperties": { "type": "string" }, - "description": "Optional. Metadata for the service. This data can be consumed by service clients. The entire metadata dictionary may contain up to 2000 characters, spread across all key-value pairs. Metadata that goes beyond any these limits will be rejected.", + "description": "Optional. Metadata for the service. This data can be consumed by service clients. Restrictions: - The entire metadata dictionary may contain up to 2000 characters, spread accoss all key-value pairs. Metadata that goes beyond any these limits will be rejected. - Valid metadata keys have two segments: an optional prefix and name, separated by a slash (/). The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between. The prefix is optional. If specified, the prefix must be a DNS subdomain: a series of DNS labels separated by dots (.), not longer than 253 characters in total, followed by a slash (/). Metadata that fails to meet these requirements will be rejected. - The '(*.)google.com/' and '(*.)googleapis.com/' prefixes are reserved for system metadata managed by Service Directory. If the user tries to write to these keyspaces, those entries will be silently ignored by the system.", "type": "object" }, "name": { diff --git a/servicedirectory/v1beta1/servicedirectory-gen.go b/servicedirectory/v1beta1/servicedirectory-gen.go index 8d55e69aabe..eff24dc2f82 100644 --- a/servicedirectory/v1beta1/servicedirectory-gen.go +++ b/servicedirectory/v1beta1/servicedirectory-gen.go @@ -194,10 +194,6 @@ type ProjectsLocationsNamespacesServicesEndpointsService struct { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. - BindingId string `json:"bindingId,omitempty"` - // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -247,7 +243,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "BindingId") to + // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -255,7 +251,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BindingId") to include in + // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -291,9 +287,21 @@ type Endpoint struct { Address string `json:"address,omitempty"` // Metadata: Optional. Metadata for the endpoint. This data can be - // consumed by service clients. The entire metadata dictionary may - // contain up to 512 characters, spread accoss all key-value pairs. - // Metadata that goes beyond any these limits will be rejected. + // consumed by service clients. Restrictions: - The entire metadata + // dictionary may contain up to 512 characters, spread accoss all + // key-value pairs. Metadata that goes beyond any these limits will be + // rejected. - Valid metadata keys have two segments: an optional prefix + // and name, separated by a slash (/). The name segment is required and + // must be 63 characters or less, beginning and ending with an + // alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores + // (_), dots (.), and alphanumerics between. The prefix is optional. If + // specified, the prefix must be a DNS subdomain: a series of DNS labels + // separated by dots (.), not longer than 253 characters in total, + // followed by a slash (/). Metadata that fails to meet these + // requirements will be rejected. - The '(*.)google.com/' and + // '(*.)googleapis.com/' prefixes are reserved for system metadata + // managed by Service Directory. If the user tries to write to these + // keyspaces, those entries will be silently ignored by the system. Metadata map[string]string `json:"metadata,omitempty"` // Name: Immutable. The resource name for the endpoint in the format @@ -884,9 +892,21 @@ type Service struct { Endpoints []*Endpoint `json:"endpoints,omitempty"` // Metadata: Optional. Metadata for the service. This data can be - // consumed by service clients. The entire metadata dictionary may - // contain up to 2000 characters, spread across all key-value pairs. - // Metadata that goes beyond any these limits will be rejected. + // consumed by service clients. Restrictions: - The entire metadata + // dictionary may contain up to 2000 characters, spread accoss all + // key-value pairs. Metadata that goes beyond any these limits will be + // rejected. - Valid metadata keys have two segments: an optional prefix + // and name, separated by a slash (/). The name segment is required and + // must be 63 characters or less, beginning and ending with an + // alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores + // (_), dots (.), and alphanumerics between. The prefix is optional. If + // specified, the prefix must be a DNS subdomain: a series of DNS labels + // separated by dots (.), not longer than 253 characters in total, + // followed by a slash (/). Metadata that fails to meet these + // requirements will be rejected. - The '(*.)google.com/' and + // '(*.)googleapis.com/' prefixes are reserved for system metadata + // managed by Service Directory. If the user tries to write to these + // keyspaces, those entries will be silently ignored by the system. Metadata map[string]string `json:"metadata,omitempty"` // Name: Immutable. The resource name for the service in the format @@ -1072,7 +1092,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1238,7 +1258,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1422,7 +1442,7 @@ func (c *ProjectsLocationsNamespacesCreateCall) Header() http.Header { func (c *ProjectsLocationsNamespacesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1566,7 +1586,7 @@ func (c *ProjectsLocationsNamespacesDeleteCall) Header() http.Header { func (c *ProjectsLocationsNamespacesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1707,7 +1727,7 @@ func (c *ProjectsLocationsNamespacesGetCall) Header() http.Header { func (c *ProjectsLocationsNamespacesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1843,7 +1863,7 @@ func (c *ProjectsLocationsNamespacesGetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsNamespacesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2037,7 +2057,7 @@ func (c *ProjectsLocationsNamespacesListCall) Header() http.Header { func (c *ProjectsLocationsNamespacesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2221,7 +2241,7 @@ func (c *ProjectsLocationsNamespacesPatchCall) Header() http.Header { func (c *ProjectsLocationsNamespacesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2368,7 +2388,7 @@ func (c *ProjectsLocationsNamespacesSetIamPolicyCall) Header() http.Header { func (c *ProjectsLocationsNamespacesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2509,7 +2529,7 @@ func (c *ProjectsLocationsNamespacesTestIamPermissionsCall) Header() http.Header func (c *ProjectsLocationsNamespacesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2661,7 +2681,7 @@ func (c *ProjectsLocationsNamespacesServicesCreateCall) Header() http.Header { func (c *ProjectsLocationsNamespacesServicesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2805,7 +2825,7 @@ func (c *ProjectsLocationsNamespacesServicesDeleteCall) Header() http.Header { func (c *ProjectsLocationsNamespacesServicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2946,7 +2966,7 @@ func (c *ProjectsLocationsNamespacesServicesGetCall) Header() http.Header { func (c *ProjectsLocationsNamespacesServicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3082,7 +3102,7 @@ func (c *ProjectsLocationsNamespacesServicesGetIamPolicyCall) Header() http.Head func (c *ProjectsLocationsNamespacesServicesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3275,7 +3295,7 @@ func (c *ProjectsLocationsNamespacesServicesListCall) Header() http.Header { func (c *ProjectsLocationsNamespacesServicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3459,7 +3479,7 @@ func (c *ProjectsLocationsNamespacesServicesPatchCall) Header() http.Header { func (c *ProjectsLocationsNamespacesServicesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3606,7 +3626,7 @@ func (c *ProjectsLocationsNamespacesServicesResolveCall) Header() http.Header { func (c *ProjectsLocationsNamespacesServicesResolveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3747,7 +3767,7 @@ func (c *ProjectsLocationsNamespacesServicesSetIamPolicyCall) Header() http.Head func (c *ProjectsLocationsNamespacesServicesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3888,7 +3908,7 @@ func (c *ProjectsLocationsNamespacesServicesTestIamPermissionsCall) Header() htt func (c *ProjectsLocationsNamespacesServicesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4040,7 +4060,7 @@ func (c *ProjectsLocationsNamespacesServicesEndpointsCreateCall) Header() http.H func (c *ProjectsLocationsNamespacesServicesEndpointsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4183,7 +4203,7 @@ func (c *ProjectsLocationsNamespacesServicesEndpointsDeleteCall) Header() http.H func (c *ProjectsLocationsNamespacesServicesEndpointsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4324,7 +4344,7 @@ func (c *ProjectsLocationsNamespacesServicesEndpointsGetCall) Header() http.Head func (c *ProjectsLocationsNamespacesServicesEndpointsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4514,7 +4534,7 @@ func (c *ProjectsLocationsNamespacesServicesEndpointsListCall) Header() http.Hea func (c *ProjectsLocationsNamespacesServicesEndpointsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4698,7 +4718,7 @@ func (c *ProjectsLocationsNamespacesServicesEndpointsPatchCall) Header() http.He func (c *ProjectsLocationsNamespacesServicesEndpointsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/servicemanagement/v1/servicemanagement-api.json b/servicemanagement/v1/servicemanagement-api.json index 1ed892b7888..a9d1cd7c12e 100644 --- a/servicemanagement/v1/servicemanagement-api.json +++ b/servicemanagement/v1/servicemanagement-api.json @@ -857,7 +857,7 @@ } } }, - "revision": "20201017", + "revision": "20201106", "rootUrl": "https://servicemanagement.googleapis.com/", "schemas": { "Advice": { @@ -992,7 +992,7 @@ "type": "string" }, "jwksUri": { - "description": "URL of the provider's public key set to validate signature of the JWT. See [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). Optional if the key set document: - can be retrieved from [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html of the issuer. - can be inferred from the email domain of the issuer (e.g. a Google service account). Example: https://www.googleapis.com/oauth2/v1/certs", + "description": "URL of the provider's public key set to validate signature of the JWT. See [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). Optional if the key set document: - can be retrieved from [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) of the issuer. - can be inferred from the email domain of the issuer (e.g. a Google service account). Example: https://www.googleapis.com/oauth2/v1/certs", "type": "string" }, "jwtLocations": { @@ -1876,10 +1876,6 @@ }, "type": "array" }, - "allowHalfDuplex": { - "description": "When this flag is set to true, HTTP requests will be allowed to invoke a half-duplex streaming method.", - "type": "boolean" - }, "body": { "description": "The name of the request field whose value is mapped to the HTTP request body, or `*` for mapping all request fields not captured by the path pattern to the HTTP body, or omitted for not having any HTTP request body. NOTE: the referred field must be present at the top-level of the request message type.", "type": "string" @@ -2757,7 +2753,7 @@ "description": "Billing configuration." }, "configVersion": { - "description": "The semantic version of the service configuration. The config version affects the interpretation of the service configuration. For example, certain features are enabled by default for certain config versions. The latest config version is `3`.", + "description": "This field is obsolete. Its value must be set to `3`.", "format": "uint32", "type": "integer" }, @@ -2873,25 +2869,6 @@ }, "type": "object" }, - "ServiceIdentity": { - "description": "The per-product per-project service identity for a service. Use this field to configure per-product per-project service identity. Example of a service identity configuration. usage: service_identity: - service_account_parent: \"projects/123456789\" display_name: \"Cloud XXX Service Agent\" description: \"Used as the identity of Cloud XXX to access resources\"", - "id": "ServiceIdentity", - "properties": { - "description": { - "description": "Optional. A user-specified opaque description of the service account. Must be less than or equal to 256 UTF-8 bytes.", - "type": "string" - }, - "displayName": { - "description": "Optional. A user-specified name for the service account. Must be less than or equal to 100 UTF-8 bytes.", - "type": "string" - }, - "serviceAccountParent": { - "description": "A service account project that hosts the service accounts. An example name would be: `projects/123456789`", - "type": "string" - } - }, - "type": "object" - }, "SetIamPolicyRequest": { "description": "Request message for `SetIamPolicy` method.", "id": "SetIamPolicyRequest", @@ -3195,10 +3172,6 @@ "$ref": "UsageRule" }, "type": "array" - }, - "serviceIdentity": { - "$ref": "ServiceIdentity", - "description": "The configuration of a per-product per-project service identity." } }, "type": "object" diff --git a/servicemanagement/v1/servicemanagement-gen.go b/servicemanagement/v1/servicemanagement-gen.go index 46d47f8c92e..d45ba8d6499 100644 --- a/servicemanagement/v1/servicemanagement-gen.go +++ b/servicemanagement/v1/servicemanagement-gen.go @@ -446,8 +446,8 @@ type AuthProvider struct { // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html# // ProviderMetadata). Optional if the key set document: - can be // retrieved from [OpenID - // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html - // of the issuer. - can be inferred from the email domain of the issuer + // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) + // of the issuer. - can be inferred from the email domain of the issuer // (e.g. a Google service account). Example: // https://www.googleapis.com/oauth2/v1/certs JwksUri string `json:"jwksUri,omitempty"` @@ -2251,10 +2251,6 @@ type HttpRule struct { // (that is, the nesting may only be one level deep). AdditionalBindings []*HttpRule `json:"additionalBindings,omitempty"` - // AllowHalfDuplex: When this flag is set to true, HTTP requests will be - // allowed to invoke a half-duplex streaming method. - AllowHalfDuplex bool `json:"allowHalfDuplex,omitempty"` - // Body: The name of the request field whose value is mapped to the HTTP // request body, or `*` for mapping all request fields not captured by // the path pattern to the HTTP body, or omitted for not having any HTTP @@ -3978,10 +3974,7 @@ type Service struct { // Billing: Billing configuration. Billing *Billing `json:"billing,omitempty"` - // ConfigVersion: The semantic version of the service configuration. The - // config version affects the interpretation of the service - // configuration. For example, certain features are enabled by default - // for certain config versions. The latest config version is `3`. + // ConfigVersion: This field is obsolete. Its value must be set to `3`. ConfigVersion int64 `json:"configVersion,omitempty"` // Context: Context configuration. @@ -4101,48 +4094,6 @@ func (s *Service) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ServiceIdentity: The per-product per-project service identity for a -// service. Use this field to configure per-product per-project service -// identity. Example of a service identity configuration. usage: -// service_identity: - service_account_parent: "projects/123456789" -// display_name: "Cloud XXX Service Agent" description: "Used as the -// identity of Cloud XXX to access resources" -type ServiceIdentity struct { - // Description: Optional. A user-specified opaque description of the - // service account. Must be less than or equal to 256 UTF-8 bytes. - Description string `json:"description,omitempty"` - - // DisplayName: Optional. A user-specified name for the service account. - // Must be less than or equal to 100 UTF-8 bytes. - DisplayName string `json:"displayName,omitempty"` - - // ServiceAccountParent: A service account project that hosts the - // service accounts. An example name would be: `projects/123456789` - ServiceAccountParent string `json:"serviceAccountParent,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *ServiceIdentity) MarshalJSON() ([]byte, error) { - type NoMethod ServiceIdentity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // SetIamPolicyRequest: Request message for `SetIamPolicy` method. type SetIamPolicyRequest struct { // Policy: REQUIRED: The complete policy to be applied to the @@ -4712,10 +4663,6 @@ type Usage struct { // order. Rules []*UsageRule `json:"rules,omitempty"` - // ServiceIdentity: The configuration of a per-product per-project - // service identity. - ServiceIdentity *ServiceIdentity `json:"serviceIdentity,omitempty"` - // ForceSendFields is a list of field names (e.g. // "ProducerNotificationChannel") to unconditionally include in API // requests. By default, fields with empty values are omitted from API @@ -4853,7 +4800,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5037,7 +4984,7 @@ func (c *OperationsListCall) Header() http.Header { func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5206,7 +5153,7 @@ func (c *ServicesCreateCall) Header() http.Header { func (c *ServicesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5335,7 +5282,7 @@ func (c *ServicesDeleteCall) Header() http.Header { func (c *ServicesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5470,7 +5417,7 @@ func (c *ServicesEnableCall) Header() http.Header { func (c *ServicesEnableCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5617,7 +5564,7 @@ func (c *ServicesGenerateConfigReportCall) Header() http.Header { func (c *ServicesGenerateConfigReportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5755,7 +5702,7 @@ func (c *ServicesGetCall) Header() http.Header { func (c *ServicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5924,7 +5871,7 @@ func (c *ServicesGetConfigCall) Header() http.Header { func (c *ServicesGetConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6081,7 +6028,7 @@ func (c *ServicesGetIamPolicyCall) Header() http.Header { func (c *ServicesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6266,7 +6213,7 @@ func (c *ServicesListCall) Header() http.Header { func (c *ServicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6436,7 +6383,7 @@ func (c *ServicesSetIamPolicyCall) Header() http.Header { func (c *ServicesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6582,7 +6529,7 @@ func (c *ServicesTestIamPermissionsCall) Header() http.Header { func (c *ServicesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6726,7 +6673,7 @@ func (c *ServicesUndeleteCall) Header() http.Header { func (c *ServicesUndeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6863,7 +6810,7 @@ func (c *ServicesConfigsCreateCall) Header() http.Header { func (c *ServicesConfigsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7028,7 +6975,7 @@ func (c *ServicesConfigsGetCall) Header() http.Header { func (c *ServicesConfigsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7211,7 +7158,7 @@ func (c *ServicesConfigsListCall) Header() http.Header { func (c *ServicesConfigsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7387,7 +7334,7 @@ func (c *ServicesConfigsSubmitCall) Header() http.Header { func (c *ServicesConfigsSubmitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7529,7 +7476,7 @@ func (c *ServicesConsumersGetIamPolicyCall) Header() http.Header { func (c *ServicesConsumersGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7674,7 +7621,7 @@ func (c *ServicesConsumersSetIamPolicyCall) Header() http.Header { func (c *ServicesConsumersSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7820,7 +7767,7 @@ func (c *ServicesConsumersTestIamPermissionsCall) Header() http.Header { func (c *ServicesConsumersTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7972,7 +7919,7 @@ func (c *ServicesRolloutsCreateCall) Header() http.Header { func (c *ServicesRolloutsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8123,7 +8070,7 @@ func (c *ServicesRolloutsGetCall) Header() http.Header { func (c *ServicesRolloutsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8305,7 +8252,7 @@ func (c *ServicesRolloutsListCall) Header() http.Header { func (c *ServicesRolloutsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/servicenetworking/v1/servicenetworking-api.json b/servicenetworking/v1/servicenetworking-api.json index 57c0412b793..48d9886db27 100644 --- a/servicenetworking/v1/servicenetworking-api.json +++ b/servicenetworking/v1/servicenetworking-api.json @@ -646,6 +646,63 @@ "global": { "resources": { "networks": { + "methods": { + "get": { + "description": "Service producers use this method to get the configuration of their connection including the import/export of custom routes and subnetwork routes with public IP.", + "flatPath": "v1/services/{servicesId}/projects/{projectsId}/global/networks/{networksId}", + "httpMethod": "GET", + "id": "servicenetworking.services.projects.global.networks.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the consumer config to retrieve in the format: `services/{service}/projects/{project}/global/networks/{network}`. {service} is the peering service that is managing connectivity for the service producer's organization. For Google services that support this functionality, this value is `servicenetworking.googleapis.com`. {project} is a project number e.g. `12345` that contains the service consumer's VPC network. {network} is the name of the service consumer's VPC network.", + "location": "path", + "pattern": "^services/[^/]+/projects/[^/]+/global/networks/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "ConsumerConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/service.management" + ] + }, + "updateConsumerConfig": { + "description": "Service producers use this method to update the configuration of their connection including the import/export of custom routes and subnetwork routes with public IP.", + "flatPath": "v1/services/{servicesId}/projects/{projectsId}/global/networks/{networksId}:updateConsumerConfig", + "httpMethod": "PATCH", + "id": "servicenetworking.services.projects.global.networks.updateConsumerConfig", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Parent resource identifying the connection for which the consumer config is being updated in the format: `services/{service}/projects/{project}/global/networks/{network}` {service} is the peering service that is managing connectivity for the service producer's organization. For Google services that support this functionality, this value is `servicenetworking.googleapis.com`. {project} is the number of the project that contains the service consumer's VPC network e.g. `12345`. {network} is the name of the service consumer's VPC network.", + "location": "path", + "pattern": "^services/[^/]+/projects/[^/]+/global/networks/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}:updateConsumerConfig", + "request": { + "$ref": "UpdateConsumerConfigRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/service.management" + ] + } + }, "resources": { "peeredDnsDomains": { "methods": { @@ -774,7 +831,7 @@ } } }, - "revision": "20201021", + "revision": "20201117", "rootUrl": "https://servicenetworking.googleapis.com/", "schemas": { "AddDnsRecordSetMetadata": { @@ -1003,7 +1060,7 @@ "type": "string" }, "jwksUri": { - "description": "URL of the provider's public key set to validate signature of the JWT. See [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). Optional if the key set document: - can be retrieved from [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html of the issuer. - can be inferred from the email domain of the issuer (e.g. a Google service account). Example: https://www.googleapis.com/oauth2/v1/certs", + "description": "URL of the provider's public key set to validate signature of the JWT. See [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). Optional if the key set document: - can be retrieved from [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) of the issuer. - can be inferred from the email domain of the issuer (e.g. a Google service account). Example: https://www.googleapis.com/oauth2/v1/certs", "type": "string" }, "jwtLocations": { @@ -1255,9 +1312,9 @@ "type": "string" }, "reservedRanges": { - "description": "Output only. The name of the allocated IP address ranges for this private service access connection.", + "description": "Output only. The reserved ranges associated with this private service access connection.", "items": { - "type": "string" + "$ref": "GoogleCloudServicenetworkingV1ConsumerConfigReservedRange" }, "readOnly": true, "type": "array" @@ -1726,6 +1783,26 @@ }, "type": "object" }, + "GoogleCloudServicenetworkingV1ConsumerConfigReservedRange": { + "description": "Allocated IP address ranges for this private service access connection.", + "id": "GoogleCloudServicenetworkingV1ConsumerConfigReservedRange", + "properties": { + "address": { + "description": "The starting address of the reserved range. The address must be a valid IPv4 address in the x.x.x.x format. This value combined with the IP prefix length is the CIDR range for the reserved range.", + "type": "string" + }, + "ipPrefixLength": { + "description": "The prefix length of the reserved range.", + "format": "int32", + "type": "integer" + }, + "name": { + "description": "The name of the reserved range.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudServicenetworkingV1betaSubnetwork": { "description": "Represents a subnet that was created or discovered by a private access management service.", "id": "GoogleCloudServicenetworkingV1betaSubnetwork", @@ -2985,6 +3062,17 @@ }, "type": "object" }, + "UpdateConsumerConfigRequest": { + "description": "Request to update the configuration of a service networking connection including the import/export of custom routes and subnetwork routes with public IP.", + "id": "UpdateConsumerConfigRequest", + "properties": { + "consumerConfig": { + "$ref": "ConsumerConfig", + "description": "Required. The updated peering config." + } + }, + "type": "object" + }, "UpdateDnsRecordSetMetadata": { "description": "Metadata provided through GetOperation request for the LRO generated by UpdateDnsRecordSet API", "id": "UpdateDnsRecordSetMetadata", diff --git a/servicenetworking/v1/servicenetworking-gen.go b/servicenetworking/v1/servicenetworking-gen.go index d38ed25b355..10e642407f0 100644 --- a/servicenetworking/v1/servicenetworking-gen.go +++ b/servicenetworking/v1/servicenetworking-gen.go @@ -651,8 +651,8 @@ type AuthProvider struct { // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html# // ProviderMetadata). Optional if the key set document: - can be // retrieved from [OpenID - // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html - // of the issuer. - can be inferred from the email domain of the issuer + // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) + // of the issuer. - can be inferred from the email domain of the issuer // (e.g. a Google service account). Example: // https://www.googleapis.com/oauth2/v1/certs JwksUri string `json:"jwksUri,omitempty"` @@ -1160,9 +1160,13 @@ type ConsumerConfig struct { // project number e.g. '12345' and {network} is the network name. ProducerNetwork string `json:"producerNetwork,omitempty"` - // ReservedRanges: Output only. The name of the allocated IP address - // ranges for this private service access connection. - ReservedRanges []string `json:"reservedRanges,omitempty"` + // ReservedRanges: Output only. The reserved ranges associated with this + // private service access connection. + ReservedRanges []*GoogleCloudServicenetworkingV1ConsumerConfigReservedRange `json:"reservedRanges,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. // "ConsumerExportCustomRoutes") to unconditionally include in API @@ -1963,6 +1967,43 @@ func (s *Field) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudServicenetworkingV1ConsumerConfigReservedRange: Allocated +// IP address ranges for this private service access connection. +type GoogleCloudServicenetworkingV1ConsumerConfigReservedRange struct { + // Address: The starting address of the reserved range. The address must + // be a valid IPv4 address in the x.x.x.x format. This value combined + // with the IP prefix length is the CIDR range for the reserved range. + Address string `json:"address,omitempty"` + + // IpPrefixLength: The prefix length of the reserved range. + IpPrefixLength int64 `json:"ipPrefixLength,omitempty"` + + // Name: The name of the reserved range. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Address") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Address") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudServicenetworkingV1ConsumerConfigReservedRange) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudServicenetworkingV1ConsumerConfigReservedRange + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudServicenetworkingV1betaSubnetwork: Represents a subnet // that was created or discovered by a private access management // service. @@ -4422,6 +4463,37 @@ func (s *Type) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// UpdateConsumerConfigRequest: Request to update the configuration of a +// service networking connection including the import/export of custom +// routes and subnetwork routes with public IP. +type UpdateConsumerConfigRequest struct { + // ConsumerConfig: Required. The updated peering config. + ConsumerConfig *ConsumerConfig `json:"consumerConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConsumerConfig") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ConsumerConfig") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *UpdateConsumerConfigRequest) MarshalJSON() ([]byte, error) { + type NoMethod UpdateConsumerConfigRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // UpdateDnsRecordSetMetadata: Metadata provided through GetOperation // request for the LRO generated by UpdateDnsRecordSet API type UpdateDnsRecordSetMetadata struct { @@ -4738,7 +4810,7 @@ func (c *OperationsCancelCall) Header() http.Header { func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4880,7 +4952,7 @@ func (c *OperationsDeleteCall) Header() http.Header { func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5024,7 +5096,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5199,7 +5271,7 @@ func (c *OperationsListCall) Header() http.Header { func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5380,7 +5452,7 @@ func (c *ServicesAddSubnetworkCall) Header() http.Header { func (c *ServicesAddSubnetworkCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5522,7 +5594,7 @@ func (c *ServicesDisableVpcServiceControlsCall) Header() http.Header { func (c *ServicesDisableVpcServiceControlsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5664,7 +5736,7 @@ func (c *ServicesEnableVpcServiceControlsCall) Header() http.Header { func (c *ServicesEnableVpcServiceControlsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5810,7 +5882,7 @@ func (c *ServicesSearchRangeCall) Header() http.Header { func (c *ServicesSearchRangeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5955,7 +6027,7 @@ func (c *ServicesValidateCall) Header() http.Header { func (c *ServicesValidateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6103,7 +6175,7 @@ func (c *ServicesConnectionsCreateCall) Header() http.Header { func (c *ServicesConnectionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6266,7 +6338,7 @@ func (c *ServicesConnectionsListCall) Header() http.Header { func (c *ServicesConnectionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6423,7 +6495,7 @@ func (c *ServicesConnectionsPatchCall) Header() http.Header { func (c *ServicesConnectionsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6576,7 +6648,7 @@ func (c *ServicesDnsRecordSetsAddCall) Header() http.Header { func (c *ServicesDnsRecordSetsAddCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6718,7 +6790,7 @@ func (c *ServicesDnsRecordSetsRemoveCall) Header() http.Header { func (c *ServicesDnsRecordSetsRemoveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6860,7 +6932,7 @@ func (c *ServicesDnsRecordSetsUpdateCall) Header() http.Header { func (c *ServicesDnsRecordSetsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7003,7 +7075,7 @@ func (c *ServicesDnsZonesAddCall) Header() http.Header { func (c *ServicesDnsZonesAddCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7146,7 +7218,7 @@ func (c *ServicesDnsZonesRemoveCall) Header() http.Header { func (c *ServicesDnsZonesRemoveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7241,6 +7313,296 @@ func (c *ServicesDnsZonesRemoveCall) Do(opts ...googleapi.CallOption) (*Operatio } +// method id "servicenetworking.services.projects.global.networks.get": + +type ServicesProjectsGlobalNetworksGetCall struct { + s *APIService + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Service producers use this method to get the configuration of +// their connection including the import/export of custom routes and +// subnetwork routes with public IP. +func (r *ServicesProjectsGlobalNetworksService) Get(name string) *ServicesProjectsGlobalNetworksGetCall { + c := &ServicesProjectsGlobalNetworksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ServicesProjectsGlobalNetworksGetCall) Fields(s ...googleapi.Field) *ServicesProjectsGlobalNetworksGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ServicesProjectsGlobalNetworksGetCall) IfNoneMatch(entityTag string) *ServicesProjectsGlobalNetworksGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ServicesProjectsGlobalNetworksGetCall) Context(ctx context.Context) *ServicesProjectsGlobalNetworksGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ServicesProjectsGlobalNetworksGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ServicesProjectsGlobalNetworksGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "servicenetworking.services.projects.global.networks.get" call. +// Exactly one of *ConsumerConfig or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *ConsumerConfig.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ServicesProjectsGlobalNetworksGetCall) Do(opts ...googleapi.CallOption) (*ConsumerConfig, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ConsumerConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Service producers use this method to get the configuration of their connection including the import/export of custom routes and subnetwork routes with public IP.", + // "flatPath": "v1/services/{servicesId}/projects/{projectsId}/global/networks/{networksId}", + // "httpMethod": "GET", + // "id": "servicenetworking.services.projects.global.networks.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the consumer config to retrieve in the format: `services/{service}/projects/{project}/global/networks/{network}`. {service} is the peering service that is managing connectivity for the service producer's organization. For Google services that support this functionality, this value is `servicenetworking.googleapis.com`. {project} is a project number e.g. `12345` that contains the service consumer's VPC network. {network} is the name of the service consumer's VPC network.", + // "location": "path", + // "pattern": "^services/[^/]+/projects/[^/]+/global/networks/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "ConsumerConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/service.management" + // ] + // } + +} + +// method id "servicenetworking.services.projects.global.networks.updateConsumerConfig": + +type ServicesProjectsGlobalNetworksUpdateConsumerConfigCall struct { + s *APIService + parent string + updateconsumerconfigrequest *UpdateConsumerConfigRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpdateConsumerConfig: Service producers use this method to update the +// configuration of their connection including the import/export of +// custom routes and subnetwork routes with public IP. +func (r *ServicesProjectsGlobalNetworksService) UpdateConsumerConfig(parent string, updateconsumerconfigrequest *UpdateConsumerConfigRequest) *ServicesProjectsGlobalNetworksUpdateConsumerConfigCall { + c := &ServicesProjectsGlobalNetworksUpdateConsumerConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.updateconsumerconfigrequest = updateconsumerconfigrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ServicesProjectsGlobalNetworksUpdateConsumerConfigCall) Fields(s ...googleapi.Field) *ServicesProjectsGlobalNetworksUpdateConsumerConfigCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ServicesProjectsGlobalNetworksUpdateConsumerConfigCall) Context(ctx context.Context) *ServicesProjectsGlobalNetworksUpdateConsumerConfigCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ServicesProjectsGlobalNetworksUpdateConsumerConfigCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ServicesProjectsGlobalNetworksUpdateConsumerConfigCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.updateconsumerconfigrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:updateConsumerConfig") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "servicenetworking.services.projects.global.networks.updateConsumerConfig" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ServicesProjectsGlobalNetworksUpdateConsumerConfigCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Service producers use this method to update the configuration of their connection including the import/export of custom routes and subnetwork routes with public IP.", + // "flatPath": "v1/services/{servicesId}/projects/{projectsId}/global/networks/{networksId}:updateConsumerConfig", + // "httpMethod": "PATCH", + // "id": "servicenetworking.services.projects.global.networks.updateConsumerConfig", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Parent resource identifying the connection for which the consumer config is being updated in the format: `services/{service}/projects/{project}/global/networks/{network}` {service} is the peering service that is managing connectivity for the service producer's organization. For Google services that support this functionality, this value is `servicenetworking.googleapis.com`. {project} is the number of the project that contains the service consumer's VPC network e.g. `12345`. {network} is the name of the service consumer's VPC network.", + // "location": "path", + // "pattern": "^services/[^/]+/projects/[^/]+/global/networks/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}:updateConsumerConfig", + // "request": { + // "$ref": "UpdateConsumerConfigRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/service.management" + // ] + // } + +} + // method id "servicenetworking.services.projects.global.networks.peeredDnsDomains.create": type ServicesProjectsGlobalNetworksPeeredDnsDomainsCreateCall struct { @@ -7289,7 +7651,7 @@ func (c *ServicesProjectsGlobalNetworksPeeredDnsDomainsCreateCall) Header() http func (c *ServicesProjectsGlobalNetworksPeeredDnsDomainsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7428,7 +7790,7 @@ func (c *ServicesProjectsGlobalNetworksPeeredDnsDomainsDeleteCall) Header() http func (c *ServicesProjectsGlobalNetworksPeeredDnsDomainsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7570,7 +7932,7 @@ func (c *ServicesProjectsGlobalNetworksPeeredDnsDomainsListCall) Header() http.H func (c *ServicesProjectsGlobalNetworksPeeredDnsDomainsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7709,7 +8071,7 @@ func (c *ServicesRolesAddCall) Header() http.Header { func (c *ServicesRolesAddCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/servicenetworking/v1beta/servicenetworking-api.json b/servicenetworking/v1beta/servicenetworking-api.json index 512160a18ef..cfc1617b3b2 100644 --- a/servicenetworking/v1beta/servicenetworking-api.json +++ b/servicenetworking/v1beta/servicenetworking-api.json @@ -307,7 +307,7 @@ } } }, - "revision": "20201021", + "revision": "20201117", "rootUrl": "https://servicenetworking.googleapis.com/", "schemas": { "AddDnsRecordSetMetadata": { @@ -473,7 +473,7 @@ "type": "string" }, "jwksUri": { - "description": "URL of the provider's public key set to validate signature of the JWT. See [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). Optional if the key set document: - can be retrieved from [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html of the issuer. - can be inferred from the email domain of the issuer (e.g. a Google service account). Example: https://www.googleapis.com/oauth2/v1/certs", + "description": "URL of the provider's public key set to validate signature of the JWT. See [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). Optional if the key set document: - can be retrieved from [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) of the issuer. - can be inferred from the email domain of the issuer (e.g. a Google service account). Example: https://www.googleapis.com/oauth2/v1/certs", "type": "string" }, "jwtLocations": { @@ -717,9 +717,9 @@ "type": "string" }, "reservedRanges": { - "description": "Output only. The name of the allocated IP address ranges for this private service access connection.", + "description": "Output only. The reserved ranges associated with this private service access connection.", "items": { - "type": "string" + "$ref": "GoogleCloudServicenetworkingV1ConsumerConfigReservedRange" }, "readOnly": true, "type": "array" @@ -1148,6 +1148,26 @@ }, "type": "object" }, + "GoogleCloudServicenetworkingV1ConsumerConfigReservedRange": { + "description": "Allocated IP address ranges for this private service access connection.", + "id": "GoogleCloudServicenetworkingV1ConsumerConfigReservedRange", + "properties": { + "address": { + "description": "The starting address of the reserved range. The address must be a valid IPv4 address in the x.x.x.x format. This value combined with the IP prefix length is the CIDR range for the reserved range.", + "type": "string" + }, + "ipPrefixLength": { + "description": "The prefix length of the reserved range.", + "format": "int32", + "type": "integer" + }, + "name": { + "description": "The name of the reserved range.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudServicenetworkingV1betaSubnetwork": { "description": "Represents a subnet that was created or discovered by a private access management service.", "id": "GoogleCloudServicenetworkingV1betaSubnetwork", diff --git a/servicenetworking/v1beta/servicenetworking-gen.go b/servicenetworking/v1beta/servicenetworking-gen.go index bdde9c132fe..d4c109cc987 100644 --- a/servicenetworking/v1beta/servicenetworking-gen.go +++ b/servicenetworking/v1beta/servicenetworking-gen.go @@ -441,8 +441,8 @@ type AuthProvider struct { // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html# // ProviderMetadata). Optional if the key set document: - can be // retrieved from [OpenID - // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html - // of the issuer. - can be inferred from the email domain of the issuer + // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) + // of the issuer. - can be inferred from the email domain of the issuer // (e.g. a Google service account). Example: // https://www.googleapis.com/oauth2/v1/certs JwksUri string `json:"jwksUri,omitempty"` @@ -942,9 +942,9 @@ type ConsumerConfig struct { // project number e.g. '12345' and {network} is the network name. ProducerNetwork string `json:"producerNetwork,omitempty"` - // ReservedRanges: Output only. The name of the allocated IP address - // ranges for this private service access connection. - ReservedRanges []string `json:"reservedRanges,omitempty"` + // ReservedRanges: Output only. The reserved ranges associated with this + // private service access connection. + ReservedRanges []*GoogleCloudServicenetworkingV1ConsumerConfigReservedRange `json:"reservedRanges,omitempty"` // ForceSendFields is a list of field names (e.g. // "ConsumerExportCustomRoutes") to unconditionally include in API @@ -1636,6 +1636,43 @@ func (s *Field) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudServicenetworkingV1ConsumerConfigReservedRange: Allocated +// IP address ranges for this private service access connection. +type GoogleCloudServicenetworkingV1ConsumerConfigReservedRange struct { + // Address: The starting address of the reserved range. The address must + // be a valid IPv4 address in the x.x.x.x format. This value combined + // with the IP prefix length is the CIDR range for the reserved range. + Address string `json:"address,omitempty"` + + // IpPrefixLength: The prefix length of the reserved range. + IpPrefixLength int64 `json:"ipPrefixLength,omitempty"` + + // Name: The name of the reserved range. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Address") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Address") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudServicenetworkingV1ConsumerConfigReservedRange) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudServicenetworkingV1ConsumerConfigReservedRange + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudServicenetworkingV1betaSubnetwork: Represents a subnet // that was created or discovered by a private access management // service. @@ -4023,7 +4060,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4168,7 +4205,7 @@ func (c *ServicesAddSubnetworkCall) Header() http.Header { func (c *ServicesAddSubnetworkCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4315,7 +4352,7 @@ func (c *ServicesSearchRangeCall) Header() http.Header { func (c *ServicesSearchRangeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4473,7 +4510,7 @@ func (c *ServicesUpdateConnectionsCall) Header() http.Header { func (c *ServicesUpdateConnectionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4633,7 +4670,7 @@ func (c *ServicesConnectionsCreateCall) Header() http.Header { func (c *ServicesConnectionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4796,7 +4833,7 @@ func (c *ServicesConnectionsListCall) Header() http.Header { func (c *ServicesConnectionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/serviceusage/v1/serviceusage-api.json b/serviceusage/v1/serviceusage-api.json index 72b999780ef..07f29659453 100644 --- a/serviceusage/v1/serviceusage-api.json +++ b/serviceusage/v1/serviceusage-api.json @@ -426,7 +426,7 @@ } } }, - "revision": "20201021", + "revision": "20201104", "rootUrl": "https://serviceusage.googleapis.com/", "schemas": { "AdminQuotaPolicy": { @@ -537,7 +537,7 @@ "type": "string" }, "jwksUri": { - "description": "URL of the provider's public key set to validate signature of the JWT. See [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). Optional if the key set document: - can be retrieved from [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html of the issuer. - can be inferred from the email domain of the issuer (e.g. a Google service account). Example: https://www.googleapis.com/oauth2/v1/certs", + "description": "URL of the provider's public key set to validate signature of the JWT. See [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). Optional if the key set document: - can be retrieved from [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) of the issuer. - can be inferred from the email domain of the issuer (e.g. a Google service account). Example: https://www.googleapis.com/oauth2/v1/certs", "type": "string" }, "jwtLocations": { diff --git a/serviceusage/v1/serviceusage-gen.go b/serviceusage/v1/serviceusage-gen.go index 94b4f300918..5b3ac595f27 100644 --- a/serviceusage/v1/serviceusage-gen.go +++ b/serviceusage/v1/serviceusage-gen.go @@ -340,8 +340,8 @@ type AuthProvider struct { // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html# // ProviderMetadata). Optional if the key set document: - can be // retrieved from [OpenID - // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html - // of the issuer. - can be inferred from the email domain of the issuer + // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) + // of the issuer. - can be inferred from the email domain of the issuer // (e.g. a Google service account). Example: // https://www.googleapis.com/oauth2/v1/certs JwksUri string `json:"jwksUri,omitempty"` @@ -4231,7 +4231,7 @@ func (c *OperationsCancelCall) Header() http.Header { func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4373,7 +4373,7 @@ func (c *OperationsDeleteCall) Header() http.Header { func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4517,7 +4517,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4697,7 +4697,7 @@ func (c *OperationsListCall) Header() http.Header { func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4866,7 +4866,7 @@ func (c *ServicesBatchEnableCall) Header() http.Header { func (c *ServicesBatchEnableCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5027,7 +5027,7 @@ func (c *ServicesBatchGetCall) Header() http.Header { func (c *ServicesBatchGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5174,7 +5174,7 @@ func (c *ServicesDisableCall) Header() http.Header { func (c *ServicesDisableCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5315,7 +5315,7 @@ func (c *ServicesEnableCall) Header() http.Header { func (c *ServicesEnableCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5466,7 +5466,7 @@ func (c *ServicesGetCall) Header() http.Header { func (c *ServicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5645,7 +5645,7 @@ func (c *ServicesListCall) Header() http.Header { func (c *ServicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/serviceusage/v1beta1/serviceusage-api.json b/serviceusage/v1beta1/serviceusage-api.json index abcef401646..5e467a8c27f 100644 --- a/serviceusage/v1beta1/serviceusage-api.json +++ b/serviceusage/v1beta1/serviceusage-api.json @@ -407,6 +407,35 @@ "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, + "importAdminOverrides": { + "description": "Create or update multiple admin overrides atomically, all on the same consumer, but on many different metrics or limits. The name field in the quota override message should not be set.", + "flatPath": "v1beta1/{v1beta1Id}/{v1beta1Id1}/services/{servicesId}/consumerQuotaMetrics:importAdminOverrides", + "httpMethod": "POST", + "id": "serviceusage.services.consumerQuotaMetrics.importAdminOverrides", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "The resource name of the consumer. An example name would be: `projects/123/services/compute.googleapis.com`", + "location": "path", + "pattern": "^[^/]+/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/consumerQuotaMetrics:importAdminOverrides", + "request": { + "$ref": "ImportAdminOverridesRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/service.management" + ] + }, "importConsumerOverrides": { "description": "Create or update multiple consumer overrides atomically, all on the same consumer, but on many different metrics or limits. The name field in the quota override message should not be set.", "flatPath": "v1beta1/{v1beta1Id}/{v1beta1Id1}/services/{servicesId}/consumerQuotaMetrics:importConsumerOverrides", @@ -834,7 +863,7 @@ } } }, - "revision": "20201021", + "revision": "20201104", "rootUrl": "https://serviceusage.googleapis.com/", "schemas": { "AdminQuotaPolicy": { @@ -945,7 +974,7 @@ "type": "string" }, "jwksUri": { - "description": "URL of the provider's public key set to validate signature of the JWT. See [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). Optional if the key set document: - can be retrieved from [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html of the issuer. - can be inferred from the email domain of the issuer (e.g. a Google service account). Example: https://www.googleapis.com/oauth2/v1/certs", + "description": "URL of the provider's public key set to validate signature of the JWT. See [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). Optional if the key set document: - can be retrieved from [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) of the issuer. - can be inferred from the email domain of the issuer (e.g. a Google service account). Example: https://www.googleapis.com/oauth2/v1/certs", "type": "string" }, "jwtLocations": { @@ -2042,6 +2071,21 @@ }, "type": "object" }, + "ImportAdminOverridesRequest": { + "description": "Request message for ImportAdminOverrides", + "id": "ImportAdminOverridesRequest", + "properties": { + "force": { + "description": "Whether to force the creation of the quota overrides. If creating an override would cause the effective quota for the consumer to decrease by more than 10 percent, the call is rejected, as a safety measure to avoid accidentally decreasing quota too quickly. Setting the force parameter to true ignores this restriction.", + "type": "boolean" + }, + "inlineSource": { + "$ref": "OverrideInlineSource", + "description": "The import data is specified in the request message itself" + } + }, + "type": "object" + }, "ImportAdminOverridesResponse": { "description": "Response message for ImportAdminOverrides", "id": "ImportAdminOverridesResponse", diff --git a/serviceusage/v1beta1/serviceusage-gen.go b/serviceusage/v1beta1/serviceusage-gen.go index f9ae8f77ee7..3b3ff465d65 100644 --- a/serviceusage/v1beta1/serviceusage-gen.go +++ b/serviceusage/v1beta1/serviceusage-gen.go @@ -388,8 +388,8 @@ type AuthProvider struct { // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html# // ProviderMetadata). Optional if the key set document: - can be // retrieved from [OpenID - // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html - // of the issuer. - can be inferred from the email domain of the issuer + // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) + // of the issuer. - can be inferred from the email domain of the issuer // (e.g. a Google service account). Example: // https://www.googleapis.com/oauth2/v1/certs JwksUri string `json:"jwksUri,omitempty"` @@ -2403,6 +2403,42 @@ func (s *HttpRule) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ImportAdminOverridesRequest: Request message for ImportAdminOverrides +type ImportAdminOverridesRequest struct { + // Force: Whether to force the creation of the quota overrides. If + // creating an override would cause the effective quota for the consumer + // to decrease by more than 10 percent, the call is rejected, as a + // safety measure to avoid accidentally decreasing quota too quickly. + // Setting the force parameter to true ignores this restriction. + Force bool `json:"force,omitempty"` + + // InlineSource: The import data is specified in the request message + // itself + InlineSource *OverrideInlineSource `json:"inlineSource,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Force") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Force") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ImportAdminOverridesRequest) MarshalJSON() ([]byte, error) { + type NoMethod ImportAdminOverridesRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ImportAdminOverridesResponse: Response message for // ImportAdminOverrides type ImportAdminOverridesResponse struct { @@ -4659,7 +4695,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4839,7 +4875,7 @@ func (c *OperationsListCall) Header() http.Header { func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5007,7 +5043,7 @@ func (c *ServicesBatchEnableCall) Header() http.Header { func (c *ServicesBatchEnableCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5153,7 +5189,7 @@ func (c *ServicesDisableCall) Header() http.Header { func (c *ServicesDisableCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5295,7 +5331,7 @@ func (c *ServicesEnableCall) Header() http.Header { func (c *ServicesEnableCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5434,7 +5470,7 @@ func (c *ServicesGenerateServiceIdentityCall) Header() http.Header { func (c *ServicesGenerateServiceIdentityCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5577,7 +5613,7 @@ func (c *ServicesGetCall) Header() http.Header { func (c *ServicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5752,7 +5788,7 @@ func (c *ServicesListCall) Header() http.Header { func (c *ServicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5953,7 +5989,7 @@ func (c *ServicesConsumerQuotaMetricsGetCall) Header() http.Header { func (c *ServicesConsumerQuotaMetricsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6058,6 +6094,150 @@ func (c *ServicesConsumerQuotaMetricsGetCall) Do(opts ...googleapi.CallOption) ( } +// method id "serviceusage.services.consumerQuotaMetrics.importAdminOverrides": + +type ServicesConsumerQuotaMetricsImportAdminOverridesCall struct { + s *APIService + parent string + importadminoverridesrequest *ImportAdminOverridesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// ImportAdminOverrides: Create or update multiple admin overrides +// atomically, all on the same consumer, but on many different metrics +// or limits. The name field in the quota override message should not be +// set. +func (r *ServicesConsumerQuotaMetricsService) ImportAdminOverrides(parent string, importadminoverridesrequest *ImportAdminOverridesRequest) *ServicesConsumerQuotaMetricsImportAdminOverridesCall { + c := &ServicesConsumerQuotaMetricsImportAdminOverridesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.importadminoverridesrequest = importadminoverridesrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ServicesConsumerQuotaMetricsImportAdminOverridesCall) Fields(s ...googleapi.Field) *ServicesConsumerQuotaMetricsImportAdminOverridesCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ServicesConsumerQuotaMetricsImportAdminOverridesCall) Context(ctx context.Context) *ServicesConsumerQuotaMetricsImportAdminOverridesCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ServicesConsumerQuotaMetricsImportAdminOverridesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ServicesConsumerQuotaMetricsImportAdminOverridesCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.importadminoverridesrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/consumerQuotaMetrics:importAdminOverrides") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "serviceusage.services.consumerQuotaMetrics.importAdminOverrides" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ServicesConsumerQuotaMetricsImportAdminOverridesCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Create or update multiple admin overrides atomically, all on the same consumer, but on many different metrics or limits. The name field in the quota override message should not be set.", + // "flatPath": "v1beta1/{v1beta1Id}/{v1beta1Id1}/services/{servicesId}/consumerQuotaMetrics:importAdminOverrides", + // "httpMethod": "POST", + // "id": "serviceusage.services.consumerQuotaMetrics.importAdminOverrides", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "The resource name of the consumer. An example name would be: `projects/123/services/compute.googleapis.com`", + // "location": "path", + // "pattern": "^[^/]+/[^/]+/services/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/consumerQuotaMetrics:importAdminOverrides", + // "request": { + // "$ref": "ImportAdminOverridesRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/service.management" + // ] + // } + +} + // method id "serviceusage.services.consumerQuotaMetrics.importConsumerOverrides": type ServicesConsumerQuotaMetricsImportConsumerOverridesCall struct { @@ -6107,7 +6287,7 @@ func (c *ServicesConsumerQuotaMetricsImportConsumerOverridesCall) Header() http. func (c *ServicesConsumerQuotaMetricsImportConsumerOverridesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6294,7 +6474,7 @@ func (c *ServicesConsumerQuotaMetricsListCall) Header() http.Header { func (c *ServicesConsumerQuotaMetricsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6505,7 +6685,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsGetCall) Header() http.Header { func (c *ServicesConsumerQuotaMetricsLimitsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6671,7 +6851,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsAdminOverridesCreateCall) Header() ht func (c *ServicesConsumerQuotaMetricsLimitsAdminOverridesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6826,7 +7006,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsAdminOverridesDeleteCall) Header() ht func (c *ServicesConsumerQuotaMetricsLimitsAdminOverridesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6987,7 +7167,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsAdminOverridesListCall) Header() http func (c *ServicesConsumerQuotaMetricsLimitsAdminOverridesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7174,7 +7354,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsAdminOverridesPatchCall) Header() htt func (c *ServicesConsumerQuotaMetricsLimitsAdminOverridesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7341,7 +7521,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsConsumerOverridesCreateCall) Header() func (c *ServicesConsumerQuotaMetricsLimitsConsumerOverridesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7496,7 +7676,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsConsumerOverridesDeleteCall) Header() func (c *ServicesConsumerQuotaMetricsLimitsConsumerOverridesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7657,7 +7837,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsConsumerOverridesListCall) Header() h func (c *ServicesConsumerQuotaMetricsLimitsConsumerOverridesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7844,7 +8024,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsConsumerOverridesPatchCall) Header() func (c *ServicesConsumerQuotaMetricsLimitsConsumerOverridesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/sheets/v4/sheets-api.json b/sheets/v4/sheets-api.json index 87093c04ca8..68522701992 100644 --- a/sheets/v4/sheets-api.json +++ b/sheets/v4/sheets-api.json @@ -870,7 +870,7 @@ } } }, - "revision": "20200922", + "revision": "20201102", "rootUrl": "https://sheets.googleapis.com/", "schemas": { "AddBandingRequest": { @@ -2233,7 +2233,7 @@ }, "bubbleTextStyle": { "$ref": "TextFormat", - "description": "The format of the text inside the bubbles. Underline and Strikethrough are not supported." + "description": "The format of the text inside the bubbles. Strikethrough and underline are not supported." }, "domain": { "$ref": "ChartData", @@ -2369,7 +2369,7 @@ "type": "string" }, "hyperlink": { - "description": "A hyperlink this cell points to, if any. This field is read-only. (To set it, use a `=HYPERLINK` formula in the userEnteredValue.formulaValue field.)", + "description": "A hyperlink this cell points to, if any. If the cell contains multiple hyperlinks, this field will be empty. This field is read-only. To set it, use a `=HYPERLINK` formula in the userEnteredValue.formulaValue field.", "type": "string" }, "note": { @@ -2381,7 +2381,7 @@ "description": "A pivot table anchored at this cell. The size of pivot table itself is computed dynamically based on its data, grouping, filters, values, etc. Only the top-left cell of the pivot table contains the pivot table definition. The other cells will contain the calculated values of the results of the pivot in their effective_value fields." }, "textFormatRuns": { - "description": "Runs of rich text applied to subsections of the cell. Runs are only valid on user entered strings, not formulas, bools, or numbers. Runs start at specific indexes in the text and continue until the next run. Properties of a run will continue unless explicitly changed in a subsequent run (and properties of the first run will continue the properties of the cell unless explicitly changed). When writing, the new runs will overwrite any prior runs. When writing a new user_entered_value, previous runs are erased.", + "description": "Runs of rich text applied to subsections of the cell. Runs are only valid on user entered strings, not formulas, bools, or numbers. Properties of a run start at a specific index in the text and continue until the next run. Runs will inherit the properties of the cell unless explicitly changed. When writing, the new runs will overwrite any prior runs. When writing a new user_entered_value, previous runs are erased.", "items": { "$ref": "TextFormatRun" }, @@ -5286,6 +5286,14 @@ "description": "Criteria for showing/hiding rows in a pivot table.", "id": "PivotFilterCriteria", "properties": { + "condition": { + "$ref": "BooleanCondition", + "description": "A condition that must be true for values to be shown. (`visibleValues` does not override this -- even if a value is listed there, it is still hidden if it does not meet the condition.) Condition values that refer to ranges in A1-notation are evaluated relative to the pivot table sheet. References are treated absolutely, so are not filled down the pivot table. For example, a condition value of `=A1` on \"Pivot Table 1\" is treated as `'Pivot Table 1'!$A$1`. The source data of the pivot table can be referenced by column header name. For example, if the source data has columns named \"Revenue\" and \"Cost\" and a condition is applied to the \"Revenue\" column with type `NUMBER_GREATER` and value `=Cost`, then only columns where \"Revenue\" \u003e \"Cost\" are included." + }, + "visibleByDefault": { + "description": "Whether values are visible by default. If true, the visible_values are ignored, all values that meet condition (if specified) are shown. If false, values that are both in visible_values and meet condition are shown.", + "type": "boolean" + }, "visibleValues": { "description": "Values that should be included. Values not listed here are excluded.", "items": { diff --git a/sheets/v4/sheets-gen.go b/sheets/v4/sheets-gen.go index 0af0fc32257..d98a8b4a3c7 100644 --- a/sheets/v4/sheets-gen.go +++ b/sheets/v4/sheets-gen.go @@ -2556,8 +2556,8 @@ type BubbleChartSpec struct { // optional. BubbleSizes *ChartData `json:"bubbleSizes,omitempty"` - // BubbleTextStyle: The format of the text inside the bubbles. Underline - // and Strikethrough are not supported. + // BubbleTextStyle: The format of the text inside the bubbles. + // Strikethrough and underline are not supported. BubbleTextStyle *TextFormat `json:"bubbleTextStyle,omitempty"` // Domain: The data containing the bubble x-values. These values locate @@ -2802,9 +2802,10 @@ type CellData struct { // it's shown to the user. This field is read-only. FormattedValue string `json:"formattedValue,omitempty"` - // Hyperlink: A hyperlink this cell points to, if any. This field is - // read-only. (To set it, use a `=HYPERLINK` formula in the - // userEnteredValue.formulaValue field.) + // Hyperlink: A hyperlink this cell points to, if any. If the cell + // contains multiple hyperlinks, this field will be empty. This field is + // read-only. To set it, use a `=HYPERLINK` formula in the + // userEnteredValue.formulaValue field. Hyperlink string `json:"hyperlink,omitempty"` // Note: Any note on the cell. @@ -2820,12 +2821,11 @@ type CellData struct { // TextFormatRuns: Runs of rich text applied to subsections of the cell. // Runs are only valid on user entered strings, not formulas, bools, or - // numbers. Runs start at specific indexes in the text and continue - // until the next run. Properties of a run will continue unless - // explicitly changed in a subsequent run (and properties of the first - // run will continue the properties of the cell unless explicitly - // changed). When writing, the new runs will overwrite any prior runs. - // When writing a new user_entered_value, previous runs are erased. + // numbers. Properties of a run start at a specific index in the text + // and continue until the next run. Runs will inherit the properties of + // the cell unless explicitly changed. When writing, the new runs will + // overwrite any prior runs. When writing a new user_entered_value, + // previous runs are erased. TextFormatRuns []*TextFormatRun `json:"textFormatRuns,omitempty"` // UserEnteredFormat: The format the user entered for the cell. When @@ -7684,11 +7684,31 @@ func (s *PieChartSpec) UnmarshalJSON(data []byte) error { // PivotFilterCriteria: Criteria for showing/hiding rows in a pivot // table. type PivotFilterCriteria struct { + // Condition: A condition that must be true for values to be shown. + // (`visibleValues` does not override this -- even if a value is listed + // there, it is still hidden if it does not meet the condition.) + // Condition values that refer to ranges in A1-notation are evaluated + // relative to the pivot table sheet. References are treated absolutely, + // so are not filled down the pivot table. For example, a condition + // value of `=A1` on "Pivot Table 1" is treated as `'Pivot Table + // 1'!$A$1`. The source data of the pivot table can be referenced by + // column header name. For example, if the source data has columns named + // "Revenue" and "Cost" and a condition is applied to the "Revenue" + // column with type `NUMBER_GREATER` and value `=Cost`, then only + // columns where "Revenue" > "Cost" are included. + Condition *BooleanCondition `json:"condition,omitempty"` + + // VisibleByDefault: Whether values are visible by default. If true, the + // visible_values are ignored, all values that meet condition (if + // specified) are shown. If false, values that are both in + // visible_values and meet condition are shown. + VisibleByDefault bool `json:"visibleByDefault,omitempty"` + // VisibleValues: Values that should be included. Values not listed here // are excluded. VisibleValues []string `json:"visibleValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "VisibleValues") to + // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -7696,10 +7716,10 @@ type PivotFilterCriteria struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "VisibleValues") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Condition") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` @@ -11281,7 +11301,7 @@ func (c *SpreadsheetsBatchUpdateCall) Header() http.Header { func (c *SpreadsheetsBatchUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11421,7 +11441,7 @@ func (c *SpreadsheetsCreateCall) Header() http.Header { func (c *SpreadsheetsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11585,7 +11605,7 @@ func (c *SpreadsheetsGetCall) Header() http.Header { func (c *SpreadsheetsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11746,7 +11766,7 @@ func (c *SpreadsheetsGetByDataFilterCall) Header() http.Header { func (c *SpreadsheetsGetByDataFilterCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11900,7 +11920,7 @@ func (c *SpreadsheetsDeveloperMetadataGetCall) Header() http.Header { func (c *SpreadsheetsDeveloperMetadataGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12051,7 +12071,7 @@ func (c *SpreadsheetsDeveloperMetadataSearchCall) Header() http.Header { func (c *SpreadsheetsDeveloperMetadataSearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12195,7 +12215,7 @@ func (c *SpreadsheetsSheetsCopyToCall) Header() http.Header { func (c *SpreadsheetsSheetsCopyToCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12442,7 +12462,7 @@ func (c *SpreadsheetsValuesAppendCall) Header() http.Header { func (c *SpreadsheetsValuesAppendCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12655,7 +12675,7 @@ func (c *SpreadsheetsValuesBatchClearCall) Header() http.Header { func (c *SpreadsheetsValuesBatchClearCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12800,7 +12820,7 @@ func (c *SpreadsheetsValuesBatchClearByDataFilterCall) Header() http.Header { func (c *SpreadsheetsValuesBatchClearByDataFilterCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13020,7 +13040,7 @@ func (c *SpreadsheetsValuesBatchGetCall) Header() http.Header { func (c *SpreadsheetsValuesBatchGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13210,7 +13230,7 @@ func (c *SpreadsheetsValuesBatchGetByDataFilterCall) Header() http.Header { func (c *SpreadsheetsValuesBatchGetByDataFilterCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13354,7 +13374,7 @@ func (c *SpreadsheetsValuesBatchUpdateCall) Header() http.Header { func (c *SpreadsheetsValuesBatchUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13497,7 +13517,7 @@ func (c *SpreadsheetsValuesBatchUpdateByDataFilterCall) Header() http.Header { func (c *SpreadsheetsValuesBatchUpdateByDataFilterCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13644,7 +13664,7 @@ func (c *SpreadsheetsValuesClearCall) Header() http.Header { func (c *SpreadsheetsValuesClearCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13866,7 +13886,7 @@ func (c *SpreadsheetsValuesGetCall) Header() http.Header { func (c *SpreadsheetsValuesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14133,7 +14153,7 @@ func (c *SpreadsheetsValuesUpdateCall) Header() http.Header { func (c *SpreadsheetsValuesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/siteverification/v1/siteverification-gen.go b/siteverification/v1/siteverification-gen.go index 240c3503c43..cbcf4e96621 100644 --- a/siteverification/v1/siteverification-gen.go +++ b/siteverification/v1/siteverification-gen.go @@ -406,7 +406,7 @@ func (c *WebResourceDeleteCall) Header() http.Header { func (c *WebResourceDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -517,7 +517,7 @@ func (c *WebResourceGetCall) Header() http.Header { func (c *WebResourceGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -650,7 +650,7 @@ func (c *WebResourceGetTokenCall) Header() http.Header { func (c *WebResourceGetTokenCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -776,7 +776,7 @@ func (c *WebResourceInsertCall) Header() http.Header { func (c *WebResourceInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -920,7 +920,7 @@ func (c *WebResourceListCall) Header() http.Header { func (c *WebResourceListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1041,7 +1041,7 @@ func (c *WebResourcePatchCall) Header() http.Header { func (c *WebResourcePatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1180,7 +1180,7 @@ func (c *WebResourceUpdateCall) Header() http.Header { func (c *WebResourceUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/slides/v1/slides-gen.go b/slides/v1/slides-gen.go index e8685a103fc..a801d1494bd 100644 --- a/slides/v1/slides-gen.go +++ b/slides/v1/slides-gen.go @@ -7088,7 +7088,7 @@ func (c *PresentationsBatchUpdateCall) Header() http.Header { func (c *PresentationsBatchUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7234,7 +7234,7 @@ func (c *PresentationsCreateCall) Header() http.Header { func (c *PresentationsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7372,7 +7372,7 @@ func (c *PresentationsGetCall) Header() http.Header { func (c *PresentationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7523,7 +7523,7 @@ func (c *PresentationsPagesGetCall) Header() http.Header { func (c *PresentationsPagesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7712,7 +7712,7 @@ func (c *PresentationsPagesGetThumbnailCall) Header() http.Header { func (c *PresentationsPagesGetThumbnailCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/smartdevicemanagement/v1/smartdevicemanagement-api.json b/smartdevicemanagement/v1/smartdevicemanagement-api.json index 2d644a75ecf..c95ad7105bf 100644 --- a/smartdevicemanagement/v1/smartdevicemanagement-api.json +++ b/smartdevicemanagement/v1/smartdevicemanagement-api.json @@ -172,7 +172,7 @@ ], "parameters": { "filter": { - "description": "Optional filter to list devices. Filters can match the exact assignee (could be a structure or a room). E.g. 'assignee=enterprises/XYZ/structures/abc' Also could filter by parent (group): 'parent=enterprises/XYZ/groups/jkl' or filter by device custom name (substring match): 'customName=wing'", + "description": "Optional filter to list devices. Filters can be done on: Device custom name (substring match): 'customName=wing'", "location": "query", "type": "string" }, @@ -242,7 +242,7 @@ ], "parameters": { "filter": { - "description": "Optional filter to list structures. Filters can match the exact album assigned to the structure. E.g. 'album=enterprises/XYZ/albums/abc' It also support filtering by parent (only groups for now): E.g. 'parent=enterprises/XYZ/groups/124'", + "description": "Optional filter to list structures.", "location": "query", "type": "string" }, @@ -345,7 +345,7 @@ } } }, - "revision": "20201003", + "revision": "20201022", "rootUrl": "https://smartdevicemanagement.googleapis.com/", "schemas": { "GoogleHomeEnterpriseSdmV1Device": { @@ -514,13 +514,6 @@ "readOnly": true, "type": "string" }, - "parentRelations": { - "description": "Assignee details of the structure.", - "items": { - "$ref": "GoogleHomeEnterpriseSdmV1StructureParentRelation" - }, - "type": "array" - }, "traits": { "additionalProperties": { "description": "Properties of the object.", @@ -531,23 +524,6 @@ } }, "type": "object" - }, - "GoogleHomeEnterpriseSdmV1StructureParentRelation": { - "description": "Represents structure assignee relationships, for instance, group to which the structure is assigned to.", - "id": "GoogleHomeEnterpriseSdmV1StructureParentRelation", - "properties": { - "displayName": { - "description": "Output only. The custom name of the relation -- e.g., group, to which the structure is assigned to.", - "readOnly": true, - "type": "string" - }, - "parent": { - "description": "Output only. The name of the relation -- e.g., group to which the structure is assigned to. For example: \"enterprises/XYZ/groups/ABC\"", - "readOnly": true, - "type": "string" - } - }, - "type": "object" } }, "servicePath": "", diff --git a/smartdevicemanagement/v1/smartdevicemanagement-gen.go b/smartdevicemanagement/v1/smartdevicemanagement-gen.go index 3071de1ddb7..1394ade046b 100644 --- a/smartdevicemanagement/v1/smartdevicemanagement-gen.go +++ b/smartdevicemanagement/v1/smartdevicemanagement-gen.go @@ -485,9 +485,6 @@ type GoogleHomeEnterpriseSdmV1Structure struct { // "enterprises/XYZ/structures/ABC". Name string `json:"name,omitempty"` - // ParentRelations: Assignee details of the structure. - ParentRelations []*GoogleHomeEnterpriseSdmV1StructureParentRelation `json:"parentRelations,omitempty"` - // Traits: Structure traits. Traits googleapi.RawMessage `json:"traits,omitempty"` @@ -518,42 +515,6 @@ func (s *GoogleHomeEnterpriseSdmV1Structure) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleHomeEnterpriseSdmV1StructureParentRelation: Represents -// structure assignee relationships, for instance, group to which the -// structure is assigned to. -type GoogleHomeEnterpriseSdmV1StructureParentRelation struct { - // DisplayName: Output only. The custom name of the relation -- e.g., - // group, to which the structure is assigned to. - DisplayName string `json:"displayName,omitempty"` - - // Parent: Output only. The name of the relation -- e.g., group to which - // the structure is assigned to. For example: - // "enterprises/XYZ/groups/ABC" - Parent string `json:"parent,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleHomeEnterpriseSdmV1StructureParentRelation) MarshalJSON() ([]byte, error) { - type NoMethod GoogleHomeEnterpriseSdmV1StructureParentRelation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // method id "smartdevicemanagement.enterprises.devices.executeCommand": type EnterprisesDevicesExecuteCommandCall struct { @@ -601,7 +562,7 @@ func (c *EnterprisesDevicesExecuteCommandCall) Header() http.Header { func (c *EnterprisesDevicesExecuteCommandCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -752,7 +713,7 @@ func (c *EnterprisesDevicesGetCall) Header() http.Header { func (c *EnterprisesDevicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -860,10 +821,8 @@ func (r *EnterprisesDevicesService) List(parent string) *EnterprisesDevicesListC } // Filter sets the optional parameter "filter": Optional filter to list -// devices. Filters can match the exact assignee (could be a structure -// or a room). E.g. 'assignee=enterprises/XYZ/structures/abc' Also could -// filter by parent (group): 'parent=enterprises/XYZ/groups/jkl' or -// filter by device custom name (substring match): 'customName=wing' +// devices. Filters can be done on: Device custom name (substring +// match): 'customName=wing' func (c *EnterprisesDevicesListCall) Filter(filter string) *EnterprisesDevicesListCall { c.urlParams_.Set("filter", filter) return c @@ -921,7 +880,7 @@ func (c *EnterprisesDevicesListCall) Header() http.Header { func (c *EnterprisesDevicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -994,7 +953,7 @@ func (c *EnterprisesDevicesListCall) Do(opts ...googleapi.CallOption) (*GoogleHo // ], // "parameters": { // "filter": { - // "description": "Optional filter to list devices. Filters can match the exact assignee (could be a structure or a room). E.g. 'assignee=enterprises/XYZ/structures/abc' Also could filter by parent (group): 'parent=enterprises/XYZ/groups/jkl' or filter by device custom name (substring match): 'customName=wing'", + // "description": "Optional filter to list devices. Filters can be done on: Device custom name (substring match): 'customName=wing'", // "location": "query", // "type": "string" // }, @@ -1104,7 +1063,7 @@ func (c *EnterprisesStructuresGetCall) Header() http.Header { func (c *EnterprisesStructuresGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1213,10 +1172,7 @@ func (r *EnterprisesStructuresService) List(parent string) *EnterprisesStructure } // Filter sets the optional parameter "filter": Optional filter to list -// structures. Filters can match the exact album assigned to the -// structure. E.g. 'album=enterprises/XYZ/albums/abc' It also support -// filtering by parent (only groups for now): E.g. -// 'parent=enterprises/XYZ/groups/124' +// structures. func (c *EnterprisesStructuresListCall) Filter(filter string) *EnterprisesStructuresListCall { c.urlParams_.Set("filter", filter) return c @@ -1274,7 +1230,7 @@ func (c *EnterprisesStructuresListCall) Header() http.Header { func (c *EnterprisesStructuresListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1347,7 +1303,7 @@ func (c *EnterprisesStructuresListCall) Do(opts ...googleapi.CallOption) (*Googl // ], // "parameters": { // "filter": { - // "description": "Optional filter to list structures. Filters can match the exact album assigned to the structure. E.g. 'album=enterprises/XYZ/albums/abc' It also support filtering by parent (only groups for now): E.g. 'parent=enterprises/XYZ/groups/124'", + // "description": "Optional filter to list structures.", // "location": "query", // "type": "string" // }, @@ -1457,7 +1413,7 @@ func (c *EnterprisesStructuresRoomsGetCall) Header() http.Header { func (c *EnterprisesStructuresRoomsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1616,7 +1572,7 @@ func (c *EnterprisesStructuresRoomsListCall) Header() http.Header { func (c *EnterprisesStructuresRoomsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/sourcerepo/v1/sourcerepo-gen.go b/sourcerepo/v1/sourcerepo-gen.go index 385c074d775..56a913d0d66 100644 --- a/sourcerepo/v1/sourcerepo-gen.go +++ b/sourcerepo/v1/sourcerepo-gen.go @@ -1109,7 +1109,7 @@ func (c *ProjectsGetConfigCall) Header() http.Header { func (c *ProjectsGetConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1245,7 +1245,7 @@ func (c *ProjectsUpdateConfigCall) Header() http.Header { func (c *ProjectsUpdateConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1387,7 +1387,7 @@ func (c *ProjectsReposCreateCall) Header() http.Header { func (c *ProjectsReposCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1526,7 +1526,7 @@ func (c *ProjectsReposDeleteCall) Header() http.Header { func (c *ProjectsReposDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1668,7 +1668,7 @@ func (c *ProjectsReposGetCall) Header() http.Header { func (c *ProjectsReposGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1832,7 +1832,7 @@ func (c *ProjectsReposGetIamPolicyCall) Header() http.Header { func (c *ProjectsReposGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2004,7 +2004,7 @@ func (c *ProjectsReposListCall) Header() http.Header { func (c *ProjectsReposListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2174,7 +2174,7 @@ func (c *ProjectsReposPatchCall) Header() http.Header { func (c *ProjectsReposPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2315,7 +2315,7 @@ func (c *ProjectsReposSetIamPolicyCall) Header() http.Header { func (c *ProjectsReposSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2457,7 +2457,7 @@ func (c *ProjectsReposSyncCall) Header() http.Header { func (c *ProjectsReposSyncCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2599,7 +2599,7 @@ func (c *ProjectsReposTestIamPermissionsCall) Header() http.Header { func (c *ProjectsReposTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/spanner/v1/spanner-api.json b/spanner/v1/spanner-api.json index 2767b9227cb..693dc8b8b78 100644 --- a/spanner/v1/spanner-api.json +++ b/spanner/v1/spanner-api.json @@ -1895,7 +1895,7 @@ } } }, - "revision": "20200905", + "revision": "20201107", "rootUrl": "https://spanner.googleapis.com/", "schemas": { "Backup": { @@ -2018,10 +2018,6 @@ "description": "Associates `members` with a `role`.", "id": "Binding", "properties": { - "bindingId": { - "description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.", - "type": "string" - }, "condition": { "$ref": "Expr", "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." @@ -2392,7 +2388,7 @@ "id": "Field", "properties": { "name": { - "description": "The name of the field. For reads, this is the column name. For SQL queries, it is the column alias (e.g., `\"Word\"` in the query `\"SELECT 'hello' AS Word\"`), or the column name (e.g., `\"ColName\"` in the query `\"SELECT ColName FROM Table\"`). Some columns might have an empty name (e.g., !\"SELECT UPPER(ColName)\"`). Note that a query result can contain multiple fields with the same name.", + "description": "The name of the field. For reads, this is the column name. For SQL queries, it is the column alias (e.g., `\"Word\"` in the query `\"SELECT 'hello' AS Word\"`), or the column name (e.g., `\"ColName\"` in the query `\"SELECT ColName FROM Table\"`). Some columns might have an empty name (e.g., `\"SELECT UPPER(ColName)\"`). Note that a query result can contain multiple fields with the same name.", "type": "string" }, "type": { diff --git a/spanner/v1/spanner-gen.go b/spanner/v1/spanner-gen.go index 3e3408b58c1..1a87919033c 100644 --- a/spanner/v1/spanner-gen.go +++ b/spanner/v1/spanner-gen.go @@ -490,10 +490,6 @@ func (s *BeginTransactionRequest) MarshalJSON() ([]byte, error) { // Binding: Associates `members` with a `role`. type Binding struct { - // BindingId: A client-specified ID for this binding. Expected to be - // globally unique to support the internal bindings-by-ID API. - BindingId string `json:"bindingId,omitempty"` - // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this @@ -543,7 +539,7 @@ type Binding struct { // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "BindingId") to + // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -551,7 +547,7 @@ type Binding struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BindingId") to include in + // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -1284,7 +1280,7 @@ type Field struct { // SQL queries, it is the column alias (e.g., "Word" in the query // "SELECT 'hello' AS Word"), or the column name (e.g., "ColName" in // the query "SELECT ColName FROM Table"). Some columns might have an - // empty name (e.g., !"SELECT UPPER(ColName)"). Note that a query + // empty name (e.g., "SELECT UPPER(ColName)"). Note that a query // result can contain multiple fields with the same name. Name string `json:"name,omitempty"` @@ -4177,7 +4173,7 @@ func (c *ProjectsInstanceConfigsGetCall) Header() http.Header { func (c *ProjectsInstanceConfigsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4339,7 +4335,7 @@ func (c *ProjectsInstanceConfigsListCall) Header() http.Header { func (c *ProjectsInstanceConfigsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4525,7 +4521,7 @@ func (c *ProjectsInstancesCreateCall) Header() http.Header { func (c *ProjectsInstancesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4668,7 +4664,7 @@ func (c *ProjectsInstancesDeleteCall) Header() http.Header { func (c *ProjectsInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4818,7 +4814,7 @@ func (c *ProjectsInstancesGetCall) Header() http.Header { func (c *ProjectsInstancesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4963,7 +4959,7 @@ func (c *ProjectsInstancesGetIamPolicyCall) Header() http.Header { func (c *ProjectsInstancesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5146,7 +5142,7 @@ func (c *ProjectsInstancesListCall) Header() http.Header { func (c *ProjectsInstancesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5341,7 +5337,7 @@ func (c *ProjectsInstancesPatchCall) Header() http.Header { func (c *ProjectsInstancesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5484,7 +5480,7 @@ func (c *ProjectsInstancesSetIamPolicyCall) Header() http.Header { func (c *ProjectsInstancesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5629,7 +5625,7 @@ func (c *ProjectsInstancesTestIamPermissionsCall) Header() http.Header { func (c *ProjectsInstancesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5837,7 +5833,7 @@ func (c *ProjectsInstancesBackupOperationsListCall) Header() http.Header { func (c *ProjectsInstancesBackupOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6026,7 +6022,7 @@ func (c *ProjectsInstancesBackupsCreateCall) Header() http.Header { func (c *ProjectsInstancesBackupsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6170,7 +6166,7 @@ func (c *ProjectsInstancesBackupsDeleteCall) Header() http.Header { func (c *ProjectsInstancesBackupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6312,7 +6308,7 @@ func (c *ProjectsInstancesBackupsGetCall) Header() http.Header { func (c *ProjectsInstancesBackupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6453,7 +6449,7 @@ func (c *ProjectsInstancesBackupsGetIamPolicyCall) Header() http.Header { func (c *ProjectsInstancesBackupsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6649,7 +6645,7 @@ func (c *ProjectsInstancesBackupsListCall) Header() http.Header { func (c *ProjectsInstancesBackupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6833,7 +6829,7 @@ func (c *ProjectsInstancesBackupsPatchCall) Header() http.Header { func (c *ProjectsInstancesBackupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6984,7 +6980,7 @@ func (c *ProjectsInstancesBackupsSetIamPolicyCall) Header() http.Header { func (c *ProjectsInstancesBackupsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7132,7 +7128,7 @@ func (c *ProjectsInstancesBackupsTestIamPermissionsCall) Header() http.Header { func (c *ProjectsInstancesBackupsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7280,7 +7276,7 @@ func (c *ProjectsInstancesBackupsOperationsCancelCall) Header() http.Header { func (c *ProjectsInstancesBackupsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7414,7 +7410,7 @@ func (c *ProjectsInstancesBackupsOperationsDeleteCall) Header() http.Header { func (c *ProjectsInstancesBackupsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7558,7 +7554,7 @@ func (c *ProjectsInstancesBackupsOperationsGetCall) Header() http.Header { func (c *ProjectsInstancesBackupsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7733,7 +7729,7 @@ func (c *ProjectsInstancesBackupsOperationsListCall) Header() http.Header { func (c *ProjectsInstancesBackupsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7971,7 +7967,7 @@ func (c *ProjectsInstancesDatabaseOperationsListCall) Header() http.Header { func (c *ProjectsInstancesDatabaseOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8148,7 +8144,7 @@ func (c *ProjectsInstancesDatabasesCreateCall) Header() http.Header { func (c *ProjectsInstancesDatabasesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8289,7 +8285,7 @@ func (c *ProjectsInstancesDatabasesDropDatabaseCall) Header() http.Header { func (c *ProjectsInstancesDatabasesDropDatabaseCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8431,7 +8427,7 @@ func (c *ProjectsInstancesDatabasesGetCall) Header() http.Header { func (c *ProjectsInstancesDatabasesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8578,7 +8574,7 @@ func (c *ProjectsInstancesDatabasesGetDdlCall) Header() http.Header { func (c *ProjectsInstancesDatabasesGetDdlCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8719,7 +8715,7 @@ func (c *ProjectsInstancesDatabasesGetIamPolicyCall) Header() http.Header { func (c *ProjectsInstancesDatabasesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8885,7 +8881,7 @@ func (c *ProjectsInstancesDatabasesListCall) Header() http.Header { func (c *ProjectsInstancesDatabasesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9065,7 +9061,7 @@ func (c *ProjectsInstancesDatabasesRestoreCall) Header() http.Header { func (c *ProjectsInstancesDatabasesRestoreCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9210,7 +9206,7 @@ func (c *ProjectsInstancesDatabasesSetIamPolicyCall) Header() http.Header { func (c *ProjectsInstancesDatabasesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9358,7 +9354,7 @@ func (c *ProjectsInstancesDatabasesTestIamPermissionsCall) Header() http.Header func (c *ProjectsInstancesDatabasesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9504,7 +9500,7 @@ func (c *ProjectsInstancesDatabasesUpdateDdlCall) Header() http.Header { func (c *ProjectsInstancesDatabasesUpdateDdlCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9652,7 +9648,7 @@ func (c *ProjectsInstancesDatabasesOperationsCancelCall) Header() http.Header { func (c *ProjectsInstancesDatabasesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9786,7 +9782,7 @@ func (c *ProjectsInstancesDatabasesOperationsDeleteCall) Header() http.Header { func (c *ProjectsInstancesDatabasesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9930,7 +9926,7 @@ func (c *ProjectsInstancesDatabasesOperationsGetCall) Header() http.Header { func (c *ProjectsInstancesDatabasesOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10105,7 +10101,7 @@ func (c *ProjectsInstancesDatabasesOperationsListCall) Header() http.Header { func (c *ProjectsInstancesDatabasesOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10280,7 +10276,7 @@ func (c *ProjectsInstancesDatabasesSessionsBatchCreateCall) Header() http.Header func (c *ProjectsInstancesDatabasesSessionsBatchCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10423,7 +10419,7 @@ func (c *ProjectsInstancesDatabasesSessionsBeginTransactionCall) Header() http.H func (c *ProjectsInstancesDatabasesSessionsBeginTransactionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10575,7 +10571,7 @@ func (c *ProjectsInstancesDatabasesSessionsCommitCall) Header() http.Header { func (c *ProjectsInstancesDatabasesSessionsCommitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10728,7 +10724,7 @@ func (c *ProjectsInstancesDatabasesSessionsCreateCall) Header() http.Header { func (c *ProjectsInstancesDatabasesSessionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10869,7 +10865,7 @@ func (c *ProjectsInstancesDatabasesSessionsDeleteCall) Header() http.Header { func (c *ProjectsInstancesDatabasesSessionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11010,7 +11006,7 @@ func (c *ProjectsInstancesDatabasesSessionsExecuteBatchDmlCall) Header() http.He func (c *ProjectsInstancesDatabasesSessionsExecuteBatchDmlCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11158,7 +11154,7 @@ func (c *ProjectsInstancesDatabasesSessionsExecuteSqlCall) Header() http.Header func (c *ProjectsInstancesDatabasesSessionsExecuteSqlCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11302,7 +11298,7 @@ func (c *ProjectsInstancesDatabasesSessionsExecuteStreamingSqlCall) Header() htt func (c *ProjectsInstancesDatabasesSessionsExecuteStreamingSqlCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11454,7 +11450,7 @@ func (c *ProjectsInstancesDatabasesSessionsGetCall) Header() http.Header { func (c *ProjectsInstancesDatabasesSessionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11627,7 +11623,7 @@ func (c *ProjectsInstancesDatabasesSessionsListCall) Header() http.Header { func (c *ProjectsInstancesDatabasesSessionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11810,7 +11806,7 @@ func (c *ProjectsInstancesDatabasesSessionsPartitionQueryCall) Header() http.Hea func (c *ProjectsInstancesDatabasesSessionsPartitionQueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11963,7 +11959,7 @@ func (c *ProjectsInstancesDatabasesSessionsPartitionReadCall) Header() http.Head func (c *ProjectsInstancesDatabasesSessionsPartitionReadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12112,7 +12108,7 @@ func (c *ProjectsInstancesDatabasesSessionsReadCall) Header() http.Header { func (c *ProjectsInstancesDatabasesSessionsReadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12258,7 +12254,7 @@ func (c *ProjectsInstancesDatabasesSessionsRollbackCall) Header() http.Header { func (c *ProjectsInstancesDatabasesSessionsRollbackCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12402,7 +12398,7 @@ func (c *ProjectsInstancesDatabasesSessionsStreamingReadCall) Header() http.Head func (c *ProjectsInstancesDatabasesSessionsStreamingReadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12550,7 +12546,7 @@ func (c *ProjectsInstancesOperationsCancelCall) Header() http.Header { func (c *ProjectsInstancesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12684,7 +12680,7 @@ func (c *ProjectsInstancesOperationsDeleteCall) Header() http.Header { func (c *ProjectsInstancesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12828,7 +12824,7 @@ func (c *ProjectsInstancesOperationsGetCall) Header() http.Header { func (c *ProjectsInstancesOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13003,7 +12999,7 @@ func (c *ProjectsInstancesOperationsListCall) Header() http.Header { func (c *ProjectsInstancesOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/speech/v1/speech-gen.go b/speech/v1/speech-gen.go index 944b1eec06b..d667b278f23 100644 --- a/speech/v1/speech-gen.go +++ b/speech/v1/speech-gen.go @@ -1126,7 +1126,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1305,7 +1305,7 @@ func (c *OperationsListCall) Header() http.Header { func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1481,7 +1481,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1655,7 +1655,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1831,7 +1831,7 @@ func (c *SpeechLongrunningrecognizeCall) Header() http.Header { func (c *SpeechLongrunningrecognizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1957,7 +1957,7 @@ func (c *SpeechRecognizeCall) Header() http.Header { func (c *SpeechRecognizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/speech/v1p1beta1/speech-api.json b/speech/v1p1beta1/speech-api.json index b2db75cf1fe..280fa316e7d 100644 --- a/speech/v1p1beta1/speech-api.json +++ b/speech/v1p1beta1/speech-api.json @@ -290,7 +290,7 @@ } } }, - "revision": "20200902", + "revision": "20201113", "rootUrl": "https://speech.googleapis.com/", "schemas": { "ClassItem": { @@ -531,6 +531,14 @@ "description": "If 'true', enables speaker detection for each recognized word in the top alternative of the recognition result using a speaker_tag provided in the WordInfo. Note: Use diarization_config instead.", "type": "boolean" }, + "enableSpokenEmojis": { + "description": "The spoken emoji behavior for the call If not set, uses default behavior based on model of choice If 'true', adds spoken emoji formatting for the request. This will replace spoken emojis with the corresponding Unicode symbols in the final transcript. If 'false', spoken emojis are not replaced.", + "type": "boolean" + }, + "enableSpokenPunctuation": { + "description": "The spoken punctuation behavior for the call If not set, uses default behavior based on model of choice e.g. command_and_search will enable spoken punctuation by default If 'true', replaces spoken punctuation with the corresponding symbols in the request. For example, \"how are you question mark\" becomes \"how are you?\". See https://cloud.google.com/speech-to-text/docs/spoken-punctuation for support. If 'false', spoken punctuation is not replaced.", + "type": "boolean" + }, "enableWordConfidence": { "description": "If `true`, the top result includes a list of words and the confidence for those words. If `false`, no word-level confidence information is returned. The default is `false`.", "type": "boolean" diff --git a/speech/v1p1beta1/speech-gen.go b/speech/v1p1beta1/speech-gen.go index 31adb42e49b..727b45aeae8 100644 --- a/speech/v1p1beta1/speech-gen.go +++ b/speech/v1p1beta1/speech-gen.go @@ -719,6 +719,23 @@ type RecognitionConfig struct { // diarization_config instead. EnableSpeakerDiarization bool `json:"enableSpeakerDiarization,omitempty"` + // EnableSpokenEmojis: The spoken emoji behavior for the call If not + // set, uses default behavior based on model of choice If 'true', adds + // spoken emoji formatting for the request. This will replace spoken + // emojis with the corresponding Unicode symbols in the final + // transcript. If 'false', spoken emojis are not replaced. + EnableSpokenEmojis bool `json:"enableSpokenEmojis,omitempty"` + + // EnableSpokenPunctuation: The spoken punctuation behavior for the call + // If not set, uses default behavior based on model of choice e.g. + // command_and_search will enable spoken punctuation by default If + // 'true', replaces spoken punctuation with the corresponding symbols in + // the request. For example, "how are you question mark" becomes "how + // are you?". See + // https://cloud.google.com/speech-to-text/docs/spoken-punctuation for + // support. If 'false', spoken punctuation is not replaced. + EnableSpokenPunctuation bool `json:"enableSpokenPunctuation,omitempty"` + // EnableWordConfidence: If `true`, the top result includes a list of // words and the confidence for those words. If `false`, no word-level // confidence information is returned. The default is `false`. @@ -1465,7 +1482,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1644,7 +1661,7 @@ func (c *OperationsListCall) Header() http.Header { func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1820,7 +1837,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1994,7 +2011,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2170,7 +2187,7 @@ func (c *SpeechLongrunningrecognizeCall) Header() http.Header { func (c *SpeechLongrunningrecognizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2296,7 +2313,7 @@ func (c *SpeechRecognizeCall) Header() http.Header { func (c *SpeechRecognizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/speech/v2beta1/speech-gen.go b/speech/v2beta1/speech-gen.go index 635b37733b3..6d55fdf25b8 100644 --- a/speech/v2beta1/speech-gen.go +++ b/speech/v2beta1/speech-gen.go @@ -623,7 +623,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -797,7 +797,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/sqladmin/v1beta4/sqladmin-api.json b/sqladmin/v1beta4/sqladmin-api.json index e0576b037aa..9c05fa2af72 100644 --- a/sqladmin/v1beta4/sqladmin-api.json +++ b/sqladmin/v1beta4/sqladmin-api.json @@ -18,6 +18,7 @@ "description": "API for Cloud SQL database instance management", "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/cloud-sql/", + "fullyEncodeReservedExpansion": true, "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", "x32": "http://www.google.com/images/icons/product/search-32.gif" @@ -1376,7 +1377,7 @@ "type": "string" }, "syncMode": { - "description": "External sync mode", + "description": "External sync mode.", "enum": [ "EXTERNAL_SYNC_MODE_UNSPECIFIED", "ONLINE", @@ -1828,7 +1829,7 @@ } } }, - "revision": "20200930", + "revision": "20201112", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -1922,6 +1923,22 @@ }, "type": "object" }, + "BackupContext": { + "description": "Backup context.", + "id": "BackupContext", + "properties": { + "backupId": { + "description": "The identifier of the backup.", + "format": "int64", + "type": "string" + }, + "kind": { + "description": "This is always *sql#backupContext*.", + "type": "string" + } + }, + "type": "object" + }, "BackupRetentionSettings": { "description": "We currently only support backup retention by specifying the number of backups we will retain.", "id": "BackupRetentionSettings", @@ -2362,10 +2379,18 @@ "description": "Initial root password. Use only on creation.", "type": "string" }, + "satisfiesPzs": { + "description": "The status indicating if instance satisfies physical zone separation. Reserved for future use.", + "type": "boolean" + }, "scheduledMaintenance": { "$ref": "SqlScheduledMaintenance", "description": "The start time of any upcoming scheduled maintenance for this instance." }, + "secondaryGceZone": { + "description": "The Compute Engine zone that the failover instance is currently serving from for a regional instance. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary/failover zone. Reserved for future use.", + "type": "string" + }, "selfLink": { "description": "The URI of this resource.", "type": "string" @@ -2569,7 +2594,7 @@ "id": "ExportContext", "properties": { "csvExportOptions": { - "description": "Options for exporting data as CSV.", + "description": "Options for exporting data as CSV. *MySQL* and *PostgreSQL* instances only.", "properties": { "selectQuery": { "description": "The select query used to extract the data.", @@ -2586,7 +2611,7 @@ "type": "array" }, "fileType": { - "description": "The file type for the specified uri. *SQL*: The file contains SQL statements. *CSV*: The file contains CSV data.", + "description": "The file type for the specified uri. *SQL*: The file contains SQL statements. *CSV*: The file contains CSV data. *BAK*: The file contains backup data for a SQL Server instance.", "enum": [ "SQL_FILE_TYPE_UNSPECIFIED", "SQL", @@ -2616,7 +2641,7 @@ "description": "Options for exporting from MySQL.", "properties": { "masterData": { - "description": "Option to include SQL statement required to set up replication. If set to *1*, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates. If set to *2*, the CHANGE MASTER TO statement is written as a SQL comment, and has no effect. All other values are ignored.", + "description": "Option to include SQL statement required to set up replication. If set to *1*, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to *2*, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than *1*, --set-gtid-purged is set to OFF.", "format": "int32", "type": "integer" } @@ -2870,6 +2895,30 @@ }, "type": "object" }, + "InsightsConfig": { + "description": "Insights configuration. This specifies when Cloud SQL Insights feature is enabled and optional configuration.", + "id": "InsightsConfig", + "properties": { + "queryInsightsEnabled": { + "description": "Whether Query Insights feature is enabled.", + "type": "boolean" + }, + "queryStringLength": { + "description": "Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query length more than this field value will be truncated to this value. When unset, query length will be the default value.", + "format": "int32", + "type": "integer" + }, + "recordApplicationTags": { + "description": "Whether Query Insights will record application tags from query when enabled.", + "type": "boolean" + }, + "recordClientAddress": { + "description": "Whether Query Insights will record client address when enabled.", + "type": "boolean" + } + }, + "type": "object" + }, "InstancesCloneRequest": { "description": "Database instance clone request.", "id": "InstancesCloneRequest", @@ -3080,6 +3129,10 @@ "description": "This is always *sql#locationPreference*.", "type": "string" }, + "secondaryZone": { + "description": "The preferred Compute Engine zone for the secondary/failover (for example: us-central1-a, us-central1-b, etc.). Reserved for future use.", + "type": "string" + }, "zone": { "description": "The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.).", "type": "string" @@ -3215,9 +3268,13 @@ "type": "object" }, "Operation": { - "description": "An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.", + "description": "An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource. Next field: 18", "id": "Operation", "properties": { + "backupContext": { + "$ref": "BackupContext", + "description": "The context for backup operation, if applicable." + }, "endTime": { "description": "The time this operation finished in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*.", "format": "google-datetime", @@ -3535,7 +3592,7 @@ }, "activeDirectoryConfig": { "$ref": "SqlActiveDirectoryConfig", - "description": "Active Directory configuration, for now relevant only for SQL Server" + "description": "Active Directory configuration, relevant only for Cloud SQL for SQL Server." }, "authorizedGaeApplications": { "description": "The App Engine app IDs that can access this instance. (Deprecated) Applied to First Generation instances only.", @@ -3609,6 +3666,10 @@ }, "type": "array" }, + "insightsConfig": { + "$ref": "InsightsConfig", + "description": "Insights configuration, for now relevant only for Postgres." + }, "ipConfiguration": { "$ref": "IpConfiguration", "description": "The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled for Second Generation instances." @@ -3682,15 +3743,15 @@ "type": "object" }, "SqlActiveDirectoryConfig": { - "description": "Active Directory configuration, for now relevant only for SQL Server", + "description": "Active Directory configuration, relevant only for Cloud SQL for SQL Server.", "id": "SqlActiveDirectoryConfig", "properties": { "domain": { - "description": "Domain name", + "description": "The name of the domain (e.g., mydomain.com).", "type": "string" }, "kind": { - "description": "This will be always sql#activeDirectoryConfig.", + "description": "This is always sql#activeDirectoryConfig.", "type": "string" } }, @@ -3730,7 +3791,9 @@ "INVALID_LOGGING_SETUP", "INVALID_DB_PARAM", "UNSUPPORTED_GTID_MODE", - "SQLSERVER_AGENT_NOT_RUNNING" + "SQLSERVER_AGENT_NOT_RUNNING", + "UNSUPPORTED_TABLE_DEFINITION", + "UNSUPPORTED_DEFINER" ], "enumDescriptions": [ "", @@ -3752,7 +3815,9 @@ "The primary instance logging setup doesn't allow EM sync.", "The primary instance database parameter setup doesn't allow EM sync.", "The gtid_mode is not supported, applicable for MySQL.", - "SQL Server Agent is not running." + "SQL Server Agent is not running.", + "The table definition is not support due to missing primary key or replica identity, applicable for postgres.", + "The customer has a definer that will break EM setup." ], "type": "string" } diff --git a/sqladmin/v1beta4/sqladmin-gen.go b/sqladmin/v1beta4/sqladmin-gen.go index f32cfb934ef..d5f1fff2b61 100644 --- a/sqladmin/v1beta4/sqladmin-gen.go +++ b/sqladmin/v1beta4/sqladmin-gen.go @@ -393,6 +393,37 @@ func (s *BackupConfiguration) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// BackupContext: Backup context. +type BackupContext struct { + // BackupId: The identifier of the backup. + BackupId int64 `json:"backupId,omitempty,string"` + + // Kind: This is always *sql#backupContext*. + Kind string `json:"kind,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BackupId") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BackupId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *BackupContext) MarshalJSON() ([]byte, error) { + type NoMethod BackupContext + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // BackupRetentionSettings: We currently only support backup retention // by specifying the number of backups we will retain. type BackupRetentionSettings struct { @@ -905,10 +936,21 @@ type DatabaseInstance struct { // RootPassword: Initial root password. Use only on creation. RootPassword string `json:"rootPassword,omitempty"` + // SatisfiesPzs: The status indicating if instance satisfies physical + // zone separation. Reserved for future use. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` + // ScheduledMaintenance: The start time of any upcoming scheduled // maintenance for this instance. ScheduledMaintenance *SqlScheduledMaintenance `json:"scheduledMaintenance,omitempty"` + // SecondaryGceZone: The Compute Engine zone that the failover instance + // is currently serving from for a regional instance. This value could + // be different from the zone that was specified when the instance was + // created if the instance has failed over to its secondary/failover + // zone. Reserved for future use. + SecondaryGceZone string `json:"secondaryGceZone,omitempty"` + // SelfLink: The URI of this resource. SelfLink string `json:"selfLink,omitempty"` @@ -1308,7 +1350,8 @@ func (s *DiskEncryptionStatus) MarshalJSON() ([]byte, error) { // ExportContext: Database instance export context. type ExportContext struct { - // CsvExportOptions: Options for exporting data as CSV. + // CsvExportOptions: Options for exporting data as CSV. *MySQL* and + // *PostgreSQL* instances only. CsvExportOptions *ExportContextCsvExportOptions `json:"csvExportOptions,omitempty"` // Databases: Databases to be exported. *MySQL instances:* If *fileType* @@ -1323,7 +1366,8 @@ type ExportContext struct { Databases []string `json:"databases,omitempty"` // FileType: The file type for the specified uri. *SQL*: The file - // contains SQL statements. *CSV*: The file contains CSV data. + // contains SQL statements. *CSV*: The file contains CSV data. *BAK*: + // The file contains backup data for a SQL Server instance. // // Possible values: // "SQL_FILE_TYPE_UNSPECIFIED" - Unknown file type. @@ -1373,6 +1417,7 @@ func (s *ExportContext) MarshalJSON() ([]byte, error) { } // ExportContextCsvExportOptions: Options for exporting data as CSV. +// *MySQL* and *PostgreSQL* instances only. type ExportContextCsvExportOptions struct { // SelectQuery: The select query used to extract the data. SelectQuery string `json:"selectQuery,omitempty"` @@ -1443,9 +1488,10 @@ func (s *ExportContextSqlExportOptions) MarshalJSON() ([]byte, error) { type ExportContextSqlExportOptionsMysqlExportOptions struct { // MasterData: Option to include SQL statement required to set up // replication. If set to *1*, the dump file includes a CHANGE MASTER TO - // statement with the binary log coordinates. If set to *2*, the CHANGE - // MASTER TO statement is written as a SQL comment, and has no effect. - // All other values are ignored. + // statement with the binary log coordinates, and --set-gtid-purged is + // set to ON. If set to *2*, the CHANGE MASTER TO statement is written + // as a SQL comment and has no effect. If set to any value other than + // *1*, --set-gtid-purged is set to OFF. MasterData int64 `json:"masterData,omitempty"` // ForceSendFields is a list of field names (e.g. "MasterData") to @@ -1796,6 +1842,51 @@ func (s *ImportContextCsvImportOptions) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// InsightsConfig: Insights configuration. This specifies when Cloud SQL +// Insights feature is enabled and optional configuration. +type InsightsConfig struct { + // QueryInsightsEnabled: Whether Query Insights feature is enabled. + QueryInsightsEnabled bool `json:"queryInsightsEnabled,omitempty"` + + // QueryStringLength: Maximum query length stored in bytes. Default + // value: 1024 bytes. Range: 256-4500 bytes. Query length more than this + // field value will be truncated to this value. When unset, query length + // will be the default value. + QueryStringLength int64 `json:"queryStringLength,omitempty"` + + // RecordApplicationTags: Whether Query Insights will record application + // tags from query when enabled. + RecordApplicationTags bool `json:"recordApplicationTags,omitempty"` + + // RecordClientAddress: Whether Query Insights will record client + // address when enabled. + RecordClientAddress bool `json:"recordClientAddress,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "QueryInsightsEnabled") to unconditionally include in API requests. + // By default, fields with empty values are omitted from API requests. + // However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "QueryInsightsEnabled") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *InsightsConfig) MarshalJSON() ([]byte, error) { + type NoMethod InsightsConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // InstancesCloneRequest: Database instance clone request. type InstancesCloneRequest struct { // CloneContext: Contains details about the clone operation. @@ -2225,6 +2316,11 @@ type LocationPreference struct { // Kind: This is always *sql#locationPreference*. Kind string `json:"kind,omitempty"` + // SecondaryZone: The preferred Compute Engine zone for the + // secondary/failover (for example: us-central1-a, us-central1-b, etc.). + // Reserved for future use. + SecondaryZone string `json:"secondaryZone,omitempty"` + // Zone: The preferred Compute Engine zone (for example: us-central1-a, // us-central1-b, etc.). Zone string `json:"zone,omitempty"` @@ -2429,8 +2525,11 @@ func (s *OnPremisesConfiguration) MarshalJSON() ([]byte, error) { // Operation: An Operation resource. For successful operations that // return an Operation resource, only the fields relevant to the -// operation are populated in the resource. +// operation are populated in the resource. Next field: 18 type Operation struct { + // BackupContext: The context for backup operation, if applicable. + BackupContext *BackupContext `json:"backupContext,omitempty"` + // EndTime: The time this operation finished in UTC timezone in RFC 3339 // format, for example *2012-11-15T16:19:00.094Z*. EndTime string `json:"endTime,omitempty"` @@ -2544,7 +2643,7 @@ type Operation struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "EndTime") to + // ForceSendFields is a list of field names (e.g. "BackupContext") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -2552,10 +2651,10 @@ type Operation struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EndTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "BackupContext") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` @@ -2848,8 +2947,8 @@ type Settings struct { // "ON_DEMAND" - The instance starts upon receiving requests. ActivationPolicy string `json:"activationPolicy,omitempty"` - // ActiveDirectoryConfig: Active Directory configuration, for now - // relevant only for SQL Server + // ActiveDirectoryConfig: Active Directory configuration, relevant only + // for Cloud SQL for SQL Server. ActiveDirectoryConfig *SqlActiveDirectoryConfig `json:"activeDirectoryConfig,omitempty"` // AuthorizedGaeApplications: The App Engine app IDs that can access @@ -2908,6 +3007,10 @@ type Settings struct { // DenyMaintenancePeriods: Deny maintenance periods DenyMaintenancePeriods []*DenyMaintenancePeriod `json:"denyMaintenancePeriods,omitempty"` + // InsightsConfig: Insights configuration, for now relevant only for + // Postgres. + InsightsConfig *InsightsConfig `json:"insightsConfig,omitempty"` + // IpConfiguration: The settings for IP Management. This allows to // enable or disable the instance IP and manage which external networks // can connect to the instance. The IPv4 address cannot be disabled for @@ -3002,13 +3105,13 @@ func (s *Settings) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SqlActiveDirectoryConfig: Active Directory configuration, for now -// relevant only for SQL Server +// SqlActiveDirectoryConfig: Active Directory configuration, relevant +// only for Cloud SQL for SQL Server. type SqlActiveDirectoryConfig struct { - // Domain: Domain name + // Domain: The name of the domain (e.g., mydomain.com). Domain string `json:"domain,omitempty"` - // Kind: This will be always sql#activeDirectoryConfig. + // Kind: This is always sql#activeDirectoryConfig. Kind string `json:"kind,omitempty"` // ForceSendFields is a list of field names (e.g. "Domain") to @@ -3078,6 +3181,11 @@ type SqlExternalSyncSettingError struct { // "UNSUPPORTED_GTID_MODE" - The gtid_mode is not supported, // applicable for MySQL. // "SQLSERVER_AGENT_NOT_RUNNING" - SQL Server Agent is not running. + // "UNSUPPORTED_TABLE_DEFINITION" - The table definition is not + // support due to missing primary key or replica identity, applicable + // for postgres. + // "UNSUPPORTED_DEFINER" - The customer has a definer that will break + // EM setup. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Detail") to @@ -3758,7 +3866,7 @@ func (c *BackupRunsDeleteCall) Header() http.Header { func (c *BackupRunsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3920,7 +4028,7 @@ func (c *BackupRunsGetCall) Header() http.Header { func (c *BackupRunsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4075,7 +4183,7 @@ func (c *BackupRunsInsertCall) Header() http.Header { func (c *BackupRunsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4251,7 +4359,7 @@ func (c *BackupRunsListCall) Header() http.Header { func (c *BackupRunsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4428,7 +4536,7 @@ func (c *DatabasesDeleteCall) Header() http.Header { func (c *DatabasesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4590,7 +4698,7 @@ func (c *DatabasesGetCall) Header() http.Header { func (c *DatabasesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4744,7 +4852,7 @@ func (c *DatabasesInsertCall) Header() http.Header { func (c *DatabasesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4903,7 +5011,7 @@ func (c *DatabasesListCall) Header() http.Header { func (c *DatabasesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5052,7 +5160,7 @@ func (c *DatabasesPatchCall) Header() http.Header { func (c *DatabasesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5213,7 +5321,7 @@ func (c *DatabasesUpdateCall) Header() http.Header { func (c *DatabasesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5384,7 +5492,7 @@ func (c *FlagsListCall) Header() http.Header { func (c *FlagsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5517,7 +5625,7 @@ func (c *InstancesAddServerCaCall) Header() http.Header { func (c *InstancesAddServerCaCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5660,7 +5768,7 @@ func (c *InstancesCloneCall) Header() http.Header { func (c *InstancesCloneCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5808,7 +5916,7 @@ func (c *InstancesDeleteCall) Header() http.Header { func (c *InstancesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5951,7 +6059,7 @@ func (c *InstancesDemoteMasterCall) Header() http.Header { func (c *InstancesDemoteMasterCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6102,7 +6210,7 @@ func (c *InstancesExportCall) Header() http.Header { func (c *InstancesExportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6252,7 +6360,7 @@ func (c *InstancesFailoverCall) Header() http.Header { func (c *InstancesFailoverCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6412,7 +6520,7 @@ func (c *InstancesGetCall) Header() http.Header { func (c *InstancesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6558,7 +6666,7 @@ func (c *InstancesImportCall) Header() http.Header { func (c *InstancesImportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6705,7 +6813,7 @@ func (c *InstancesInsertCall) Header() http.Header { func (c *InstancesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6883,7 +6991,7 @@ func (c *InstancesListCall) Header() http.Header { func (c *InstancesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7070,7 +7178,7 @@ func (c *InstancesListServerCasCall) Header() http.Header { func (c *InstancesListServerCasCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7216,7 +7324,7 @@ func (c *InstancesPatchCall) Header() http.Header { func (c *InstancesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7366,7 +7474,7 @@ func (c *InstancesPromoteReplicaCall) Header() http.Header { func (c *InstancesPromoteReplicaCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7507,7 +7615,7 @@ func (c *InstancesResetSslConfigCall) Header() http.Header { func (c *InstancesResetSslConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7647,7 +7755,7 @@ func (c *InstancesRestartCall) Header() http.Header { func (c *InstancesRestartCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7790,7 +7898,7 @@ func (c *InstancesRestoreBackupCall) Header() http.Header { func (c *InstancesRestoreBackupCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7942,7 +8050,7 @@ func (c *InstancesRotateServerCaCall) Header() http.Header { func (c *InstancesRotateServerCaCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8090,7 +8198,7 @@ func (c *InstancesStartReplicaCall) Header() http.Header { func (c *InstancesStartReplicaCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8230,7 +8338,7 @@ func (c *InstancesStopReplicaCall) Header() http.Header { func (c *InstancesStopReplicaCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8372,7 +8480,7 @@ func (c *InstancesTruncateLogCall) Header() http.Header { func (c *InstancesTruncateLogCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8523,7 +8631,7 @@ func (c *InstancesUpdateCall) Header() http.Header { func (c *InstancesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8683,7 +8791,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8859,7 +8967,7 @@ func (c *OperationsListCall) Header() http.Header { func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9034,7 +9142,7 @@ func (c *ProjectsInstancesRescheduleMaintenanceCall) Header() http.Header { func (c *ProjectsInstancesRescheduleMaintenanceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9155,7 +9263,7 @@ func (r *ProjectsInstancesService) StartExternalSync(project string, instance st return c } -// SyncMode sets the optional parameter "syncMode": External sync mode +// SyncMode sets the optional parameter "syncMode": External sync mode. // // Possible values: // "EXTERNAL_SYNC_MODE_UNSPECIFIED" - Unknown external sync mode, will @@ -9196,7 +9304,7 @@ func (c *ProjectsInstancesStartExternalSyncCall) Header() http.Header { func (c *ProjectsInstancesStartExternalSyncCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9278,7 +9386,7 @@ func (c *ProjectsInstancesStartExternalSyncCall) Do(opts ...googleapi.CallOption // "type": "string" // }, // "syncMode": { - // "description": "External sync mode", + // "description": "External sync mode.", // "enum": [ // "EXTERNAL_SYNC_MODE_UNSPECIFIED", // "ONLINE", @@ -9373,7 +9481,7 @@ func (c *ProjectsInstancesVerifyExternalSyncSettingsCall) Header() http.Header { func (c *ProjectsInstancesVerifyExternalSyncSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9540,7 +9648,7 @@ func (c *SslCertsCreateEphemeralCall) Header() http.Header { func (c *SslCertsCreateEphemeralCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9691,7 +9799,7 @@ func (c *SslCertsDeleteCall) Header() http.Header { func (c *SslCertsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9854,7 +9962,7 @@ func (c *SslCertsGetCall) Header() http.Header { func (c *SslCertsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10009,7 +10117,7 @@ func (c *SslCertsInsertCall) Header() http.Header { func (c *SslCertsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10168,7 +10276,7 @@ func (c *SslCertsListCall) Header() http.Header { func (c *SslCertsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10321,7 +10429,7 @@ func (c *TiersListCall) Header() http.Header { func (c *TiersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10470,7 +10578,7 @@ func (c *UsersDeleteCall) Header() http.Header { func (c *UsersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10622,7 +10730,7 @@ func (c *UsersInsertCall) Header() http.Header { func (c *UsersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10781,7 +10889,7 @@ func (c *UsersListCall) Header() http.Header { func (c *UsersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10940,7 +11048,7 @@ func (c *UsersUpdateCall) Header() http.Header { func (c *UsersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/storage/v1/storage-api.json b/storage/v1/storage-api.json index 1e076ab66d4..dd283a07281 100644 --- a/storage/v1/storage-api.json +++ b/storage/v1/storage-api.json @@ -26,7 +26,7 @@ "description": "Stores and retrieves potentially large, immutable data objects.", "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/storage/docs/json_api/", - "etag": "\"3133373531323239383338313531333236393038\"", + "etag": "\"32313837343738383335383432353737343034\"", "icons": { "x16": "https://www.google.com/images/icons/product/cloud_storage-16.png", "x32": "https://www.google.com/images/icons/product/cloud_storage-32.png" @@ -36,6 +36,7 @@ "labels": [ "labs" ], + "mtlsRootUrl": "https://storage.mtls.googleapis.com/", "name": "storage", "ownerDomain": "google.com", "ownerName": "Google", @@ -3229,7 +3230,7 @@ } } }, - "revision": "20200927", + "revision": "20201112", "rootUrl": "https://storage.googleapis.com/", "schemas": { "Bucket": { @@ -3336,6 +3337,10 @@ }, "type": "object" }, + "publicAccessPrevention": { + "description": "The bucket's Public Access Prevention configuration. Currently, 'unspecified' and 'enforced' are supported.", + "type": "string" + }, "uniformBucketLevelAccess": { "description": "The bucket's uniform bucket-level access configuration.", "properties": { diff --git a/storage/v1/storage-gen.go b/storage/v1/storage-gen.go index 6e2282751d1..99e9ac52287 100644 --- a/storage/v1/storage-gen.go +++ b/storage/v1/storage-gen.go @@ -81,6 +81,7 @@ const apiId = "storage:v1" const apiName = "storage" const apiVersion = "v1" const basePath = "https://storage.googleapis.com/storage/v1/" +const mtlsBasePath = "https://storage.mtls.googleapis.com/storage/v1/" // OAuth2 scopes used by this API. const ( @@ -112,6 +113,7 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -540,6 +542,10 @@ type BucketIamConfiguration struct { // disable the feature. BucketPolicyOnly *BucketIamConfigurationBucketPolicyOnly `json:"bucketPolicyOnly,omitempty"` + // PublicAccessPrevention: The bucket's Public Access Prevention + // configuration. Currently, 'unspecified' and 'enforced' are supported. + PublicAccessPrevention string `json:"publicAccessPrevention,omitempty"` + // UniformBucketLevelAccess: The bucket's uniform bucket-level access // configuration. UniformBucketLevelAccess *BucketIamConfigurationUniformBucketLevelAccess `json:"uniformBucketLevelAccess,omitempty"` @@ -2440,7 +2446,7 @@ func (c *BucketAccessControlsDeleteCall) Header() http.Header { func (c *BucketAccessControlsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2588,7 +2594,7 @@ func (c *BucketAccessControlsGetCall) Header() http.Header { func (c *BucketAccessControlsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2755,7 +2761,7 @@ func (c *BucketAccessControlsInsertCall) Header() http.Header { func (c *BucketAccessControlsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2928,7 +2934,7 @@ func (c *BucketAccessControlsListCall) Header() http.Header { func (c *BucketAccessControlsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3089,7 +3095,7 @@ func (c *BucketAccessControlsPatchCall) Header() http.Header { func (c *BucketAccessControlsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3263,7 +3269,7 @@ func (c *BucketAccessControlsUpdateCall) Header() http.Header { func (c *BucketAccessControlsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3449,7 +3455,7 @@ func (c *BucketsDeleteCall) Header() http.Header { func (c *BucketsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3628,7 +3634,7 @@ func (c *BucketsGetCall) Header() http.Header { func (c *BucketsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3834,7 +3840,7 @@ func (c *BucketsGetIamPolicyCall) Header() http.Header { func (c *BucketsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4051,7 +4057,7 @@ func (c *BucketsInsertCall) Header() http.Header { func (c *BucketsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4308,7 +4314,7 @@ func (c *BucketsListCall) Header() http.Header { func (c *BucketsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4518,7 +4524,7 @@ func (c *BucketsLockRetentionPolicyCall) Header() http.Header { func (c *BucketsLockRetentionPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4753,7 +4759,7 @@ func (c *BucketsPatchCall) Header() http.Header { func (c *BucketsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4982,7 +4988,7 @@ func (c *BucketsSetIamPolicyCall) Header() http.Header { func (c *BucketsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5157,7 +5163,7 @@ func (c *BucketsTestIamPermissionsCall) Header() http.Header { func (c *BucketsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5397,7 +5403,7 @@ func (c *BucketsUpdateCall) Header() http.Header { func (c *BucketsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5609,7 +5615,7 @@ func (c *ChannelsStopCall) Header() http.Header { func (c *ChannelsStopCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5726,7 +5732,7 @@ func (c *DefaultObjectAccessControlsDeleteCall) Header() http.Header { func (c *DefaultObjectAccessControlsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5874,7 +5880,7 @@ func (c *DefaultObjectAccessControlsGetCall) Header() http.Header { func (c *DefaultObjectAccessControlsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6042,7 +6048,7 @@ func (c *DefaultObjectAccessControlsInsertCall) Header() http.Header { func (c *DefaultObjectAccessControlsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6232,7 +6238,7 @@ func (c *DefaultObjectAccessControlsListCall) Header() http.Header { func (c *DefaultObjectAccessControlsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6405,7 +6411,7 @@ func (c *DefaultObjectAccessControlsPatchCall) Header() http.Header { func (c *DefaultObjectAccessControlsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6579,7 +6585,7 @@ func (c *DefaultObjectAccessControlsUpdateCall) Header() http.Header { func (c *DefaultObjectAccessControlsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6751,7 +6757,7 @@ func (c *NotificationsDeleteCall) Header() http.Header { func (c *NotificationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6899,7 +6905,7 @@ func (c *NotificationsGetCall) Header() http.Header { func (c *NotificationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7069,7 +7075,7 @@ func (c *NotificationsInsertCall) Header() http.Header { func (c *NotificationsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7244,7 +7250,7 @@ func (c *NotificationsListCall) Header() http.Header { func (c *NotificationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7417,7 +7423,7 @@ func (c *ObjectAccessControlsDeleteCall) Header() http.Header { func (c *ObjectAccessControlsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7589,7 +7595,7 @@ func (c *ObjectAccessControlsGetCall) Header() http.Header { func (c *ObjectAccessControlsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7780,7 +7786,7 @@ func (c *ObjectAccessControlsInsertCall) Header() http.Header { func (c *ObjectAccessControlsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7977,7 +7983,7 @@ func (c *ObjectAccessControlsListCall) Header() http.Header { func (c *ObjectAccessControlsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8162,7 +8168,7 @@ func (c *ObjectAccessControlsPatchCall) Header() http.Header { func (c *ObjectAccessControlsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8360,7 +8366,7 @@ func (c *ObjectAccessControlsUpdateCall) Header() http.Header { func (c *ObjectAccessControlsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8597,7 +8603,7 @@ func (c *ObjectsComposeCall) Header() http.Header { func (c *ObjectsComposeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8940,7 +8946,7 @@ func (c *ObjectsCopyCall) Header() http.Header { func (c *ObjectsCopyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9268,7 +9274,7 @@ func (c *ObjectsDeleteCall) Header() http.Header { func (c *ObjectsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9501,7 +9507,7 @@ func (c *ObjectsGetCall) Header() http.Header { func (c *ObjectsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9751,7 +9757,7 @@ func (c *ObjectsGetIamPolicyCall) Header() http.Header { func (c *ObjectsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10068,7 +10074,7 @@ func (c *ObjectsInsertCall) Header() http.Header { func (c *ObjectsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10441,7 +10447,7 @@ func (c *ObjectsListCall) Header() http.Header { func (c *ObjectsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10758,7 +10764,7 @@ func (c *ObjectsPatchCall) Header() http.Header { func (c *ObjectsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11150,7 +11156,7 @@ func (c *ObjectsRewriteCall) Header() http.Header { func (c *ObjectsRewriteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11453,7 +11459,7 @@ func (c *ObjectsSetIamPolicyCall) Header() http.Header { func (c *ObjectsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11653,7 +11659,7 @@ func (c *ObjectsTestIamPermissionsCall) Header() http.Header { func (c *ObjectsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11914,7 +11920,7 @@ func (c *ObjectsUpdateCall) Header() http.Header { func (c *ObjectsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12232,7 +12238,7 @@ func (c *ObjectsWatchAllCall) Header() http.Header { func (c *ObjectsWatchAllCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12448,7 +12454,7 @@ func (c *ProjectsHmacKeysCreateCall) Header() http.Header { func (c *ProjectsHmacKeysCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12598,7 +12604,7 @@ func (c *ProjectsHmacKeysDeleteCall) Header() http.Header { func (c *ProjectsHmacKeysDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12733,7 +12739,7 @@ func (c *ProjectsHmacKeysGetCall) Header() http.Header { func (c *ProjectsHmacKeysGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12933,7 +12939,7 @@ func (c *ProjectsHmacKeysListCall) Header() http.Header { func (c *ProjectsHmacKeysListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13128,7 +13134,7 @@ func (c *ProjectsHmacKeysUpdateCall) Header() http.Header { func (c *ProjectsHmacKeysUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13305,7 +13311,7 @@ func (c *ProjectsServiceAccountGetCall) Header() http.Header { func (c *ProjectsServiceAccountGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/storagetransfer/v1/storagetransfer-api.json b/storagetransfer/v1/storagetransfer-api.json index 92ccdbea8ad..161c6c60938 100644 --- a/storagetransfer/v1/storagetransfer-api.json +++ b/storagetransfer/v1/storagetransfer-api.json @@ -220,7 +220,7 @@ ] }, "patch": { - "description": "Updates a transfer job. Updating a job's transfer spec does not affect transfer operations that are running already. Updating a job's schedule is not allowed. **Note:** The job's status field can be modified using this RPC (for example, to set a job's status to DELETED, DISABLED, or ENABLED).", + "description": "Updates a transfer job. Updating a job's transfer spec does not affect transfer operations that are running already. **Note:** The job's status field can be modified using this RPC (for example, to set a job's status to DELETED, DISABLED, or ENABLED).", "flatPath": "v1/transferJobs/{transferJobsId}", "httpMethod": "PATCH", "id": "storagetransfer.transferJobs.patch", @@ -406,11 +406,11 @@ } } }, - "revision": "20201016", + "revision": "20201105", "rootUrl": "https://storagetransfer.googleapis.com/", "schemas": { "AwsAccessKey": { - "description": "AWS access key (see [AWS Security Credentials](https://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html)).", + "description": "AWS access key (see [AWS Security Credentials](https://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html)). For information on our data retention policy for user credentials, see [User credentials](data-retention#user-credentials).", "id": "AwsAccessKey", "properties": { "accessKeyId": { @@ -430,7 +430,7 @@ "properties": { "awsAccessKey": { "$ref": "AwsAccessKey", - "description": "Required. 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." + "description": "Required. 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](data-retention#user-credentials)." }, "bucketName": { "description": "Required. S3 Bucket name (see [Creating a bucket](https://docs.aws.amazon.com/AmazonS3/latest/dev/create-bucket-get-location-example.html)).", @@ -445,7 +445,7 @@ "properties": { "azureCredentials": { "$ref": "AzureCredentials", - "description": "Required. Input only. Credentials used to authenticate API requests to Azure." + "description": "Required. Input only. Credentials used to authenticate API requests to Azure. For information on our data retention policy for user credentials, see [User credentials](data-retention#user-credentials)." }, "container": { "description": "Required. The container to transfer from the Azure Storage account.", @@ -459,7 +459,7 @@ "type": "object" }, "AzureCredentials": { - "description": "Azure credentials", + "description": "Azure credentials For information on our data retention policy for user credentials, see [User credentials](data-retention#user-credentials).", "id": "AzureCredentials", "properties": { "sasToken": { @@ -605,7 +605,7 @@ "type": "object" }, "HttpData": { - "description": "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 `/`. * If the specified size of an object does not match the actual size of the object fetched, the object will not be transferred. * If the specified MD5 does not match the MD5 computed from the transferred bytes, the object transfer will fail. For more information, see [Generating MD5 hashes](https://cloud.google.com/storage-transfer/docs/create-url-list#md5) * Ensure that each URL you specify is publicly accessible. For example, in Cloud Storage you can [share an object publicly] (https://cloud.google.com/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 have no effect when filtering objects to transfer.", + "description": "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 `/`. * If the specified size of an object does not match the actual size of the object fetched, the object will not be transferred. * If the specified MD5 does not match the MD5 computed from the transferred bytes, the object transfer will fail. For more information, see [Generating MD5 hashes] (https://cloud.google.com/storage-transfer/docs/create-url-list#md5-checksum) * Ensure that each URL you specify is publicly accessible. For example, in Cloud Storage you can [share an object publicly] (https://cloud.google.com/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 have no effect when filtering objects to transfer.", "id": "HttpData", "properties": { "listUrl": { @@ -787,6 +787,15 @@ "description": "Transfers can be scheduled to recur or to run just once.", "id": "Schedule", "properties": { + "endTimeOfDay": { + "$ref": "TimeOfDay", + "description": "The time in UTC that no further transfer operations are scheduled. Combined with 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 and 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 is returned." + }, + "repeatInterval": { + "description": "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.", + "format": "google-duration", + "type": "string" + }, "scheduleEndDate": { "$ref": "Date", "description": "The last day a transfer runs. Date boundaries are determined relative to UTC time. A job will run once per 24 hours within the following guidelines: * If `schedule_end_date` and 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 will run each day at start_time_of_day through `schedule_end_date`." @@ -1095,7 +1104,7 @@ "type": "boolean" }, "overwriteObjectsAlreadyExistingInSink": { - "description": "Whether overwriting objects that already exist in the sink is allowed.", + "description": "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 will be overwritten with the source object.", "type": "boolean" } }, diff --git a/storagetransfer/v1/storagetransfer-gen.go b/storagetransfer/v1/storagetransfer-gen.go index 9506984ec8f..299e4f17033 100644 --- a/storagetransfer/v1/storagetransfer-gen.go +++ b/storagetransfer/v1/storagetransfer-gen.go @@ -170,7 +170,9 @@ type TransferOperationsService struct { // AwsAccessKey: AWS access key (see [AWS Security // Credentials](https://docs.aws.amazon.com/general/latest/gr/aws-securit -// y-credentials.html)). +// y-credentials.html)). For information on our data retention policy +// for user credentials, see [User +// credentials](data-retention#user-credentials). type AwsAccessKey struct { // AccessKeyId: Required. AWS access key ID. AccessKeyId string `json:"accessKeyId,omitempty"` @@ -208,7 +210,9 @@ func (s *AwsAccessKey) MarshalJSON() ([]byte, error) { type AwsS3Data struct { // AwsAccessKey: Required. 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. + // granted to the access ID of the AWS access key. For information on + // our data retention policy for user credentials, see [User + // credentials](data-retention#user-credentials). AwsAccessKey *AwsAccessKey `json:"awsAccessKey,omitempty"` // BucketName: Required. S3 Bucket name (see [Creating a @@ -251,7 +255,9 @@ func (s *AwsS3Data) MarshalJSON() ([]byte, error) { // -and-referencing-containers--blobs--and-metadata#blob-names). type AzureBlobStorageData struct { // AzureCredentials: Required. Input only. Credentials used to - // authenticate API requests to Azure. + // authenticate API requests to Azure. For information on our data + // retention policy for user credentials, see [User + // credentials](data-retention#user-credentials). AzureCredentials *AzureCredentials `json:"azureCredentials,omitempty"` // Container: Required. The container to transfer from the Azure Storage @@ -285,7 +291,9 @@ func (s *AzureBlobStorageData) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AzureCredentials: Azure credentials +// AzureCredentials: Azure credentials For information on our data +// retention policy for user credentials, see [User +// credentials](data-retention#user-credentials). type AzureCredentials struct { // SasToken: Required. Azure shared access signature. (see [Grant // limited access to Azure Storage resources using shared access @@ -620,10 +628,10 @@ func (s *GoogleServiceAccount) MarshalJSON() ([]byte, error) { // actual size of the object fetched, the object will not be // transferred. * If the specified MD5 does not match the MD5 computed // from the transferred bytes, the object transfer will fail. For more -// information, see [Generating MD5 -// hashes](https://cloud.google.com/storage-transfer/docs/create-url-list -// #md5) * Ensure that each URL you specify is publicly accessible. For -// example, in Cloud Storage you can [share an object publicly] +// information, see [Generating MD5 hashes] +// (https://cloud.google.com/storage-transfer/docs/create-url-list#md5-ch +// ecksum) * Ensure that each URL you specify is publicly accessible. +// For example, in Cloud Storage you can [share an object publicly] // (https://cloud.google.com/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 @@ -960,6 +968,23 @@ type ResumeTransferOperationRequest struct { // Schedule: Transfers can be scheduled to recur or to run just once. type Schedule struct { + // EndTimeOfDay: The time in UTC that no further transfer operations are + // scheduled. Combined with 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 and + // 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 is returned. + EndTimeOfDay *TimeOfDay `json:"endTimeOfDay,omitempty"` + + // RepeatInterval: 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. + RepeatInterval string `json:"repeatInterval,omitempty"` + // ScheduleEndDate: The last day a transfer runs. Date boundaries are // determined relative to UTC time. A job will run once per 24 hours // within the following guidelines: * If `schedule_end_date` and @@ -993,7 +1018,7 @@ type Schedule struct { // specified time each day, through `schedule_end_date`. StartTimeOfDay *TimeOfDay `json:"startTimeOfDay,omitempty"` - // ForceSendFields is a list of field names (e.g. "ScheduleEndDate") to + // ForceSendFields is a list of field names (e.g. "EndTimeOfDay") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the @@ -1001,13 +1026,12 @@ type Schedule struct { // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ScheduleEndDate") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EndTimeOfDay") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } @@ -1368,8 +1392,11 @@ type TransferOptions struct { // delete_objects_from_source_after_transfer are mutually exclusive. DeleteObjectsUniqueInSink bool `json:"deleteObjectsUniqueInSink,omitempty"` - // OverwriteObjectsAlreadyExistingInSink: Whether overwriting objects - // that already exist in the sink is allowed. + // OverwriteObjectsAlreadyExistingInSink: 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 will be overwritten + // with the source object. OverwriteObjectsAlreadyExistingInSink bool `json:"overwriteObjectsAlreadyExistingInSink,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -1558,7 +1585,7 @@ func (c *GoogleServiceAccountsGetCall) Header() http.Header { func (c *GoogleServiceAccountsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1690,7 +1717,7 @@ func (c *TransferJobsCreateCall) Header() http.Header { func (c *TransferJobsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1827,7 +1854,7 @@ func (c *TransferJobsGetCall) Header() http.Header { func (c *TransferJobsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1991,7 +2018,7 @@ func (c *TransferJobsListCall) Header() http.Header { func (c *TransferJobsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2120,10 +2147,9 @@ type TransferJobsPatchCall struct { } // Patch: Updates a transfer job. Updating a job's transfer spec does -// not affect transfer operations that are running already. Updating a -// job's schedule is not allowed. **Note:** The job's status field can -// be modified using this RPC (for example, to set a job's status to -// DELETED, DISABLED, or ENABLED). +// not affect transfer operations that are running already. **Note:** +// The job's status field can be modified using this RPC (for example, +// to set a job's status to DELETED, DISABLED, or ENABLED). func (r *TransferJobsService) Patch(jobName string, updatetransferjobrequest *UpdateTransferJobRequest) *TransferJobsPatchCall { c := &TransferJobsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.jobName = jobName @@ -2158,7 +2184,7 @@ func (c *TransferJobsPatchCall) Header() http.Header { func (c *TransferJobsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2222,7 +2248,7 @@ func (c *TransferJobsPatchCall) Do(opts ...googleapi.CallOption) (*TransferJob, } return ret, nil // { - // "description": "Updates a transfer job. Updating a job's transfer spec does not affect transfer operations that are running already. Updating a job's schedule is not allowed. **Note:** The job's status field can be modified using this RPC (for example, to set a job's status to DELETED, DISABLED, or ENABLED).", + // "description": "Updates a transfer job. Updating a job's transfer spec does not affect transfer operations that are running already. **Note:** The job's status field can be modified using this RPC (for example, to set a job's status to DELETED, DISABLED, or ENABLED).", // "flatPath": "v1/transferJobs/{transferJobsId}", // "httpMethod": "PATCH", // "id": "storagetransfer.transferJobs.patch", @@ -2316,7 +2342,7 @@ func (c *TransferOperationsCancelCall) Header() http.Header { func (c *TransferOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2467,7 +2493,7 @@ func (c *TransferOperationsGetCall) Header() http.Header { func (c *TransferOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2626,7 +2652,7 @@ func (c *TransferOperationsListCall) Header() http.Header { func (c *TransferOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2800,7 +2826,7 @@ func (c *TransferOperationsPauseCall) Header() http.Header { func (c *TransferOperationsPauseCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2940,7 +2966,7 @@ func (c *TransferOperationsResumeCall) Header() http.Header { func (c *TransferOperationsResumeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/streetviewpublish/v1/streetviewpublish-gen.go b/streetviewpublish/v1/streetviewpublish-gen.go index 28f37806ad3..8982f01418a 100644 --- a/streetviewpublish/v1/streetviewpublish-gen.go +++ b/streetviewpublish/v1/streetviewpublish-gen.go @@ -1016,7 +1016,7 @@ func (c *PhotoCreateCall) Header() http.Header { func (c *PhotoCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1144,7 +1144,7 @@ func (c *PhotoDeleteCall) Header() http.Header { func (c *PhotoDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1313,7 +1313,7 @@ func (c *PhotoGetCall) Header() http.Header { func (c *PhotoGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1468,7 +1468,7 @@ func (c *PhotoStartUploadCall) Header() http.Header { func (c *PhotoStartUploadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1621,7 +1621,7 @@ func (c *PhotoUpdateCall) Header() http.Header { func (c *PhotoUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1770,7 +1770,7 @@ func (c *PhotosBatchDeleteCall) Header() http.Header { func (c *PhotosBatchDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1942,7 +1942,7 @@ func (c *PhotosBatchGetCall) Header() http.Header { func (c *PhotosBatchGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2099,7 +2099,7 @@ func (c *PhotosBatchUpdateCall) Header() http.Header { func (c *PhotosBatchUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2285,7 +2285,7 @@ func (c *PhotosListCall) Header() http.Header { func (c *PhotosListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/sts/v1/sts-gen.go b/sts/v1/sts-gen.go index f0075ec58e3..335519ebd19 100644 --- a/sts/v1/sts-gen.go +++ b/sts/v1/sts-gen.go @@ -278,7 +278,7 @@ func (c *V1TokenCall) Header() http.Header { func (c *V1TokenCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/sts/v1beta/sts-gen.go b/sts/v1beta/sts-gen.go index 703880605ff..ef58489bb3a 100644 --- a/sts/v1beta/sts-gen.go +++ b/sts/v1beta/sts-gen.go @@ -346,7 +346,7 @@ func (c *V1betaTokenCall) Header() http.Header { func (c *V1betaTokenCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/synth.metadata b/synth.metadata index d337e6441be..85455a8c28b 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-go-client.git", - "sha": "49d4d7541b5c2ff2348e8f4208f899af1f4be612" + "sha": "15b32e54a49cb46a504eb726224f4f8de8ddc81b" } } ] diff --git a/tagmanager/v1/tagmanager-gen.go b/tagmanager/v1/tagmanager-gen.go index b0556391949..adebeae73c4 100644 --- a/tagmanager/v1/tagmanager-gen.go +++ b/tagmanager/v1/tagmanager-gen.go @@ -2249,7 +2249,7 @@ func (c *AccountsGetCall) Header() http.Header { func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2392,7 +2392,7 @@ func (c *AccountsListCall) Header() http.Header { func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2524,7 +2524,7 @@ func (c *AccountsUpdateCall) Header() http.Header { func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2668,7 +2668,7 @@ func (c *AccountsContainersCreateCall) Header() http.Header { func (c *AccountsContainersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2807,7 +2807,7 @@ func (c *AccountsContainersDeleteCall) Header() http.Header { func (c *AccountsContainersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2929,7 +2929,7 @@ func (c *AccountsContainersGetCall) Header() http.Header { func (c *AccountsContainersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3081,7 +3081,7 @@ func (c *AccountsContainersListCall) Header() http.Header { func (c *AccountsContainersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3226,7 +3226,7 @@ func (c *AccountsContainersUpdateCall) Header() http.Header { func (c *AccountsContainersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3380,7 +3380,7 @@ func (c *AccountsContainersEnvironmentsCreateCall) Header() http.Header { func (c *AccountsContainersEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3529,7 +3529,7 @@ func (c *AccountsContainersEnvironmentsDeleteCall) Header() http.Header { func (c *AccountsContainersEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3661,7 +3661,7 @@ func (c *AccountsContainersEnvironmentsGetCall) Header() http.Header { func (c *AccountsContainersEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3823,7 +3823,7 @@ func (c *AccountsContainersEnvironmentsListCall) Header() http.Header { func (c *AccountsContainersEnvironmentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3978,7 +3978,7 @@ func (c *AccountsContainersEnvironmentsUpdateCall) Header() http.Header { func (c *AccountsContainersEnvironmentsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4140,7 +4140,7 @@ func (c *AccountsContainersFoldersCreateCall) Header() http.Header { func (c *AccountsContainersFoldersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4289,7 +4289,7 @@ func (c *AccountsContainersFoldersDeleteCall) Header() http.Header { func (c *AccountsContainersFoldersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4421,7 +4421,7 @@ func (c *AccountsContainersFoldersGetCall) Header() http.Header { func (c *AccountsContainersFoldersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4583,7 +4583,7 @@ func (c *AccountsContainersFoldersListCall) Header() http.Header { func (c *AccountsContainersFoldersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4737,7 +4737,7 @@ func (c *AccountsContainersFoldersUpdateCall) Header() http.Header { func (c *AccountsContainersFoldersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4910,7 +4910,7 @@ func (c *AccountsContainersFoldersEntitiesListCall) Header() http.Header { func (c *AccountsContainersFoldersEntitiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5086,7 +5086,7 @@ func (c *AccountsContainersMoveFoldersUpdateCall) Header() http.Header { func (c *AccountsContainersMoveFoldersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5235,7 +5235,7 @@ func (c *AccountsContainersReauthorizeEnvironmentsUpdateCall) Header() http.Head func (c *AccountsContainersReauthorizeEnvironmentsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5392,7 +5392,7 @@ func (c *AccountsContainersTagsCreateCall) Header() http.Header { func (c *AccountsContainersTagsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5541,7 +5541,7 @@ func (c *AccountsContainersTagsDeleteCall) Header() http.Header { func (c *AccountsContainersTagsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5673,7 +5673,7 @@ func (c *AccountsContainersTagsGetCall) Header() http.Header { func (c *AccountsContainersTagsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5835,7 +5835,7 @@ func (c *AccountsContainersTagsListCall) Header() http.Header { func (c *AccountsContainersTagsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5989,7 +5989,7 @@ func (c *AccountsContainersTagsUpdateCall) Header() http.Header { func (c *AccountsContainersTagsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6151,7 +6151,7 @@ func (c *AccountsContainersTriggersCreateCall) Header() http.Header { func (c *AccountsContainersTriggersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6300,7 +6300,7 @@ func (c *AccountsContainersTriggersDeleteCall) Header() http.Header { func (c *AccountsContainersTriggersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6432,7 +6432,7 @@ func (c *AccountsContainersTriggersGetCall) Header() http.Header { func (c *AccountsContainersTriggersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6594,7 +6594,7 @@ func (c *AccountsContainersTriggersListCall) Header() http.Header { func (c *AccountsContainersTriggersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6749,7 +6749,7 @@ func (c *AccountsContainersTriggersUpdateCall) Header() http.Header { func (c *AccountsContainersTriggersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6911,7 +6911,7 @@ func (c *AccountsContainersVariablesCreateCall) Header() http.Header { func (c *AccountsContainersVariablesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7060,7 +7060,7 @@ func (c *AccountsContainersVariablesDeleteCall) Header() http.Header { func (c *AccountsContainersVariablesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7192,7 +7192,7 @@ func (c *AccountsContainersVariablesGetCall) Header() http.Header { func (c *AccountsContainersVariablesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7354,7 +7354,7 @@ func (c *AccountsContainersVariablesListCall) Header() http.Header { func (c *AccountsContainersVariablesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7509,7 +7509,7 @@ func (c *AccountsContainersVariablesUpdateCall) Header() http.Header { func (c *AccountsContainersVariablesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7671,7 +7671,7 @@ func (c *AccountsContainersVersionsCreateCall) Header() http.Header { func (c *AccountsContainersVersionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7820,7 +7820,7 @@ func (c *AccountsContainersVersionsDeleteCall) Header() http.Header { func (c *AccountsContainersVersionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7952,7 +7952,7 @@ func (c *AccountsContainersVersionsGetCall) Header() http.Header { func (c *AccountsContainersVersionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8129,7 +8129,7 @@ func (c *AccountsContainersVersionsListCall) Header() http.Header { func (c *AccountsContainersVersionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8295,7 +8295,7 @@ func (c *AccountsContainersVersionsPublishCall) Header() http.Header { func (c *AccountsContainersVersionsPublishCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8452,7 +8452,7 @@ func (c *AccountsContainersVersionsRestoreCall) Header() http.Header { func (c *AccountsContainersVersionsRestoreCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8601,7 +8601,7 @@ func (c *AccountsContainersVersionsUndeleteCall) Header() http.Header { func (c *AccountsContainersVersionsUndeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8760,7 +8760,7 @@ func (c *AccountsContainersVersionsUpdateCall) Header() http.Header { func (c *AccountsContainersVersionsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8920,7 +8920,7 @@ func (c *AccountsPermissionsCreateCall) Header() http.Header { func (c *AccountsPermissionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9060,7 +9060,7 @@ func (c *AccountsPermissionsDeleteCall) Header() http.Header { func (c *AccountsPermissionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9182,7 +9182,7 @@ func (c *AccountsPermissionsGetCall) Header() http.Header { func (c *AccountsPermissionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9334,7 +9334,7 @@ func (c *AccountsPermissionsListCall) Header() http.Header { func (c *AccountsPermissionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9470,7 +9470,7 @@ func (c *AccountsPermissionsUpdateCall) Header() http.Header { func (c *AccountsPermissionsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/tagmanager/v2/tagmanager-gen.go b/tagmanager/v2/tagmanager-gen.go index b9cbc059f2e..beb79c4d424 100644 --- a/tagmanager/v2/tagmanager-gen.go +++ b/tagmanager/v2/tagmanager-gen.go @@ -3461,7 +3461,7 @@ func (c *AccountsGetCall) Header() http.Header { func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3612,7 +3612,7 @@ func (c *AccountsListCall) Header() http.Header { func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3771,7 +3771,7 @@ func (c *AccountsUpdateCall) Header() http.Header { func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3916,7 +3916,7 @@ func (c *AccountsContainersCreateCall) Header() http.Header { func (c *AccountsContainersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4054,7 +4054,7 @@ func (c *AccountsContainersDeleteCall) Header() http.Header { func (c *AccountsContainersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4167,7 +4167,7 @@ func (c *AccountsContainersGetCall) Header() http.Header { func (c *AccountsContainersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4319,7 +4319,7 @@ func (c *AccountsContainersListCall) Header() http.Header { func (c *AccountsContainersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4489,7 +4489,7 @@ func (c *AccountsContainersUpdateCall) Header() http.Header { func (c *AccountsContainersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4634,7 +4634,7 @@ func (c *AccountsContainersEnvironmentsCreateCall) Header() http.Header { func (c *AccountsContainersEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4772,7 +4772,7 @@ func (c *AccountsContainersEnvironmentsDeleteCall) Header() http.Header { func (c *AccountsContainersEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4885,7 +4885,7 @@ func (c *AccountsContainersEnvironmentsGetCall) Header() http.Header { func (c *AccountsContainersEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5037,7 +5037,7 @@ func (c *AccountsContainersEnvironmentsListCall) Header() http.Header { func (c *AccountsContainersEnvironmentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5200,7 +5200,7 @@ func (c *AccountsContainersEnvironmentsReauthorizeCall) Header() http.Header { func (c *AccountsContainersEnvironmentsReauthorizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5348,7 +5348,7 @@ func (c *AccountsContainersEnvironmentsUpdateCall) Header() http.Header { func (c *AccountsContainersEnvironmentsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5502,7 +5502,7 @@ func (c *AccountsContainersVersionHeadersLatestCall) Header() http.Header { func (c *AccountsContainersVersionHeadersLatestCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5661,7 +5661,7 @@ func (c *AccountsContainersVersionHeadersListCall) Header() http.Header { func (c *AccountsContainersVersionHeadersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5827,7 +5827,7 @@ func (c *AccountsContainersVersionsDeleteCall) Header() http.Header { func (c *AccountsContainersVersionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5948,7 +5948,7 @@ func (c *AccountsContainersVersionsGetCall) Header() http.Header { func (c *AccountsContainersVersionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6099,7 +6099,7 @@ func (c *AccountsContainersVersionsLiveCall) Header() http.Header { func (c *AccountsContainersVersionsLiveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6241,7 +6241,7 @@ func (c *AccountsContainersVersionsPublishCall) Header() http.Header { func (c *AccountsContainersVersionsPublishCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6377,7 +6377,7 @@ func (c *AccountsContainersVersionsSetLatestCall) Header() http.Header { func (c *AccountsContainersVersionsSetLatestCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6507,7 +6507,7 @@ func (c *AccountsContainersVersionsUndeleteCall) Header() http.Header { func (c *AccountsContainersVersionsUndeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6647,7 +6647,7 @@ func (c *AccountsContainersVersionsUpdateCall) Header() http.Header { func (c *AccountsContainersVersionsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6792,7 +6792,7 @@ func (c *AccountsContainersWorkspacesCreateCall) Header() http.Header { func (c *AccountsContainersWorkspacesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6934,7 +6934,7 @@ func (c *AccountsContainersWorkspacesCreateVersionCall) Header() http.Header { func (c *AccountsContainersWorkspacesCreateVersionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7072,7 +7072,7 @@ func (c *AccountsContainersWorkspacesDeleteCall) Header() http.Header { func (c *AccountsContainersWorkspacesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7185,7 +7185,7 @@ func (c *AccountsContainersWorkspacesGetCall) Header() http.Header { func (c *AccountsContainersWorkspacesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7330,7 +7330,7 @@ func (c *AccountsContainersWorkspacesGetStatusCall) Header() http.Header { func (c *AccountsContainersWorkspacesGetStatusCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7482,7 +7482,7 @@ func (c *AccountsContainersWorkspacesListCall) Header() http.Header { func (c *AccountsContainersWorkspacesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7643,7 +7643,7 @@ func (c *AccountsContainersWorkspacesQuickPreviewCall) Header() http.Header { func (c *AccountsContainersWorkspacesQuickPreviewCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7784,7 +7784,7 @@ func (c *AccountsContainersWorkspacesResolveConflictCall) Header() http.Header { func (c *AccountsContainersWorkspacesResolveConflictCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7901,7 +7901,7 @@ func (c *AccountsContainersWorkspacesSyncCall) Header() http.Header { func (c *AccountsContainersWorkspacesSyncCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8041,7 +8041,7 @@ func (c *AccountsContainersWorkspacesUpdateCall) Header() http.Header { func (c *AccountsContainersWorkspacesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8303,7 +8303,7 @@ func (c *AccountsContainersWorkspacesBuiltInVariablesCreateCall) Header() http.H func (c *AccountsContainersWorkspacesBuiltInVariablesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8782,7 +8782,7 @@ func (c *AccountsContainersWorkspacesBuiltInVariablesDeleteCall) Header() http.H func (c *AccountsContainersWorkspacesBuiltInVariablesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9132,7 +9132,7 @@ func (c *AccountsContainersWorkspacesBuiltInVariablesListCall) Header() http.Hea func (c *AccountsContainersWorkspacesBuiltInVariablesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9413,7 +9413,7 @@ func (c *AccountsContainersWorkspacesBuiltInVariablesRevertCall) Header() http.H func (c *AccountsContainersWorkspacesBuiltInVariablesRevertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9774,7 +9774,7 @@ func (c *AccountsContainersWorkspacesFoldersCreateCall) Header() http.Header { func (c *AccountsContainersWorkspacesFoldersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9912,7 +9912,7 @@ func (c *AccountsContainersWorkspacesFoldersDeleteCall) Header() http.Header { func (c *AccountsContainersWorkspacesFoldersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10021,7 +10021,7 @@ func (c *AccountsContainersWorkspacesFoldersEntitiesCall) Header() http.Header { func (c *AccountsContainersWorkspacesFoldersEntitiesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10189,7 +10189,7 @@ func (c *AccountsContainersWorkspacesFoldersGetCall) Header() http.Header { func (c *AccountsContainersWorkspacesFoldersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10341,7 +10341,7 @@ func (c *AccountsContainersWorkspacesFoldersListCall) Header() http.Header { func (c *AccountsContainersWorkspacesFoldersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10524,7 +10524,7 @@ func (c *AccountsContainersWorkspacesFoldersMoveEntitiesToFolderCall) Header() h func (c *AccountsContainersWorkspacesFoldersMoveEntitiesToFolderCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10659,7 +10659,7 @@ func (c *AccountsContainersWorkspacesFoldersRevertCall) Header() http.Header { func (c *AccountsContainersWorkspacesFoldersRevertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10803,7 +10803,7 @@ func (c *AccountsContainersWorkspacesFoldersUpdateCall) Header() http.Header { func (c *AccountsContainersWorkspacesFoldersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10948,7 +10948,7 @@ func (c *AccountsContainersWorkspacesTagsCreateCall) Header() http.Header { func (c *AccountsContainersWorkspacesTagsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11086,7 +11086,7 @@ func (c *AccountsContainersWorkspacesTagsDeleteCall) Header() http.Header { func (c *AccountsContainersWorkspacesTagsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11199,7 +11199,7 @@ func (c *AccountsContainersWorkspacesTagsGetCall) Header() http.Header { func (c *AccountsContainersWorkspacesTagsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11351,7 +11351,7 @@ func (c *AccountsContainersWorkspacesTagsListCall) Header() http.Header { func (c *AccountsContainersWorkspacesTagsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11518,7 +11518,7 @@ func (c *AccountsContainersWorkspacesTagsRevertCall) Header() http.Header { func (c *AccountsContainersWorkspacesTagsRevertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11662,7 +11662,7 @@ func (c *AccountsContainersWorkspacesTagsUpdateCall) Header() http.Header { func (c *AccountsContainersWorkspacesTagsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11807,7 +11807,7 @@ func (c *AccountsContainersWorkspacesTemplatesCreateCall) Header() http.Header { func (c *AccountsContainersWorkspacesTemplatesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11945,7 +11945,7 @@ func (c *AccountsContainersWorkspacesTemplatesDeleteCall) Header() http.Header { func (c *AccountsContainersWorkspacesTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12058,7 +12058,7 @@ func (c *AccountsContainersWorkspacesTemplatesGetCall) Header() http.Header { func (c *AccountsContainersWorkspacesTemplatesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12210,7 +12210,7 @@ func (c *AccountsContainersWorkspacesTemplatesListCall) Header() http.Header { func (c *AccountsContainersWorkspacesTemplatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12378,7 +12378,7 @@ func (c *AccountsContainersWorkspacesTemplatesRevertCall) Header() http.Header { func (c *AccountsContainersWorkspacesTemplatesRevertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12523,7 +12523,7 @@ func (c *AccountsContainersWorkspacesTemplatesUpdateCall) Header() http.Header { func (c *AccountsContainersWorkspacesTemplatesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12668,7 +12668,7 @@ func (c *AccountsContainersWorkspacesTriggersCreateCall) Header() http.Header { func (c *AccountsContainersWorkspacesTriggersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12806,7 +12806,7 @@ func (c *AccountsContainersWorkspacesTriggersDeleteCall) Header() http.Header { func (c *AccountsContainersWorkspacesTriggersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12919,7 +12919,7 @@ func (c *AccountsContainersWorkspacesTriggersGetCall) Header() http.Header { func (c *AccountsContainersWorkspacesTriggersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13071,7 +13071,7 @@ func (c *AccountsContainersWorkspacesTriggersListCall) Header() http.Header { func (c *AccountsContainersWorkspacesTriggersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13239,7 +13239,7 @@ func (c *AccountsContainersWorkspacesTriggersRevertCall) Header() http.Header { func (c *AccountsContainersWorkspacesTriggersRevertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13384,7 +13384,7 @@ func (c *AccountsContainersWorkspacesTriggersUpdateCall) Header() http.Header { func (c *AccountsContainersWorkspacesTriggersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13529,7 +13529,7 @@ func (c *AccountsContainersWorkspacesVariablesCreateCall) Header() http.Header { func (c *AccountsContainersWorkspacesVariablesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13667,7 +13667,7 @@ func (c *AccountsContainersWorkspacesVariablesDeleteCall) Header() http.Header { func (c *AccountsContainersWorkspacesVariablesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13780,7 +13780,7 @@ func (c *AccountsContainersWorkspacesVariablesGetCall) Header() http.Header { func (c *AccountsContainersWorkspacesVariablesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13932,7 +13932,7 @@ func (c *AccountsContainersWorkspacesVariablesListCall) Header() http.Header { func (c *AccountsContainersWorkspacesVariablesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14100,7 +14100,7 @@ func (c *AccountsContainersWorkspacesVariablesRevertCall) Header() http.Header { func (c *AccountsContainersWorkspacesVariablesRevertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14245,7 +14245,7 @@ func (c *AccountsContainersWorkspacesVariablesUpdateCall) Header() http.Header { func (c *AccountsContainersWorkspacesVariablesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14390,7 +14390,7 @@ func (c *AccountsContainersWorkspacesZonesCreateCall) Header() http.Header { func (c *AccountsContainersWorkspacesZonesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14528,7 +14528,7 @@ func (c *AccountsContainersWorkspacesZonesDeleteCall) Header() http.Header { func (c *AccountsContainersWorkspacesZonesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14641,7 +14641,7 @@ func (c *AccountsContainersWorkspacesZonesGetCall) Header() http.Header { func (c *AccountsContainersWorkspacesZonesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14793,7 +14793,7 @@ func (c *AccountsContainersWorkspacesZonesListCall) Header() http.Header { func (c *AccountsContainersWorkspacesZonesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14960,7 +14960,7 @@ func (c *AccountsContainersWorkspacesZonesRevertCall) Header() http.Header { func (c *AccountsContainersWorkspacesZonesRevertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15104,7 +15104,7 @@ func (c *AccountsContainersWorkspacesZonesUpdateCall) Header() http.Header { func (c *AccountsContainersWorkspacesZonesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15249,7 +15249,7 @@ func (c *AccountsUserPermissionsCreateCall) Header() http.Header { func (c *AccountsUserPermissionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15388,7 +15388,7 @@ func (c *AccountsUserPermissionsDeleteCall) Header() http.Header { func (c *AccountsUserPermissionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15501,7 +15501,7 @@ func (c *AccountsUserPermissionsGetCall) Header() http.Header { func (c *AccountsUserPermissionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15653,7 +15653,7 @@ func (c *AccountsUserPermissionsListCall) Header() http.Header { func (c *AccountsUserPermissionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15814,7 +15814,7 @@ func (c *AccountsUserPermissionsUpdateCall) Header() http.Header { func (c *AccountsUserPermissionsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/tasks/v1/tasks-gen.go b/tasks/v1/tasks-gen.go index ef5690f9f8d..5f346fa82b4 100644 --- a/tasks/v1/tasks-gen.go +++ b/tasks/v1/tasks-gen.go @@ -461,7 +461,7 @@ func (c *TasklistsDeleteCall) Header() http.Header { func (c *TasklistsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -573,7 +573,7 @@ func (c *TasklistsGetCall) Header() http.Header { func (c *TasklistsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -707,7 +707,7 @@ func (c *TasklistsInsertCall) Header() http.Header { func (c *TasklistsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -856,7 +856,7 @@ func (c *TasklistsListCall) Header() http.Header { func (c *TasklistsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1013,7 +1013,7 @@ func (c *TasklistsPatchCall) Header() http.Header { func (c *TasklistsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1152,7 +1152,7 @@ func (c *TasklistsUpdateCall) Header() http.Header { func (c *TasklistsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1291,7 +1291,7 @@ func (c *TasksClearCall) Header() http.Header { func (c *TasksClearCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1394,7 +1394,7 @@ func (c *TasksDeleteCall) Header() http.Header { func (c *TasksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1516,7 +1516,7 @@ func (c *TasksGetCall) Header() http.Header { func (c *TasksGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1674,7 +1674,7 @@ func (c *TasksInsertCall) Header() http.Header { func (c *TasksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1913,7 +1913,7 @@ func (c *TasksListCall) Header() http.Header { func (c *TasksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2138,7 +2138,7 @@ func (c *TasksMoveCall) Header() http.Header { func (c *TasksMoveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2290,7 +2290,7 @@ func (c *TasksPatchCall) Header() http.Header { func (c *TasksPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2439,7 +2439,7 @@ func (c *TasksUpdateCall) Header() http.Header { func (c *TasksUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/testing/v1/testing-gen.go b/testing/v1/testing-gen.go index 0c98ba12707..853e58810ce 100644 --- a/testing/v1/testing-gen.go +++ b/testing/v1/testing-gen.go @@ -3266,7 +3266,7 @@ func (c *ApplicationDetailServiceGetApkDetailsCall) Header() http.Header { func (c *ApplicationDetailServiceGetApkDetailsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3399,7 +3399,7 @@ func (c *ProjectsTestMatricesCancelCall) Header() http.Header { func (c *ProjectsTestMatricesCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3553,7 +3553,7 @@ func (c *ProjectsTestMatricesCreateCall) Header() http.Header { func (c *ProjectsTestMatricesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3711,7 +3711,7 @@ func (c *ProjectsTestMatricesGetCall) Header() http.Header { func (c *ProjectsTestMatricesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3873,7 +3873,7 @@ func (c *TestEnvironmentCatalogGetCall) Header() http.Header { func (c *TestEnvironmentCatalogGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/texttospeech/v1/texttospeech-gen.go b/texttospeech/v1/texttospeech-gen.go index 85ad3d6672e..6307b901b35 100644 --- a/texttospeech/v1/texttospeech-gen.go +++ b/texttospeech/v1/texttospeech-gen.go @@ -562,7 +562,7 @@ func (c *TextSynthesizeCall) Header() http.Header { func (c *TextSynthesizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -709,7 +709,7 @@ func (c *VoicesListCall) Header() http.Header { func (c *VoicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/texttospeech/v1beta1/texttospeech-gen.go b/texttospeech/v1beta1/texttospeech-gen.go index 8111d73a0e0..094bb69401a 100644 --- a/texttospeech/v1beta1/texttospeech-gen.go +++ b/texttospeech/v1beta1/texttospeech-gen.go @@ -631,7 +631,7 @@ func (c *TextSynthesizeCall) Header() http.Header { func (c *TextSynthesizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -778,7 +778,7 @@ func (c *VoicesListCall) Header() http.Header { func (c *VoicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/toolresults/v1beta3/toolresults-api.json b/toolresults/v1beta3/toolresults-api.json index 1285cad344f..5a54affb676 100644 --- a/toolresults/v1beta3/toolresults-api.json +++ b/toolresults/v1beta3/toolresults-api.json @@ -1463,7 +1463,7 @@ } } }, - "revision": "20200928", + "revision": "20201029", "rootUrl": "https://toolresults.googleapis.com/", "schemas": { "ANR": { @@ -1768,6 +1768,12 @@ }, "type": "object" }, + "DeviceOutOfMemory": { + "description": "A warning that device ran out of memory", + "id": "DeviceOutOfMemory", + "properties": {}, + "type": "object" + }, "Duration": { "description": " A Duration represents a signed, fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like \"day\" or \"month\". It is related to Timestamp in that the difference between two Timestamp values is a Duration and it can be added or subtracted from a Timestamp. Range is approximately +-10,000 years.", "id": "Duration", @@ -3602,7 +3608,8 @@ "uiElementsTooDeep", "blankScreen", "overlappingUiElements", - "unityException" + "unityException", + "deviceOutOfMemory" ], "enumDescriptions": [ "Default unspecified type. Do not use. For versioning only.", @@ -3633,7 +3640,8 @@ "UI element depth is greater than the threshold", "Blank screen is found in the Robo crawl", "Overlapping UI elements are found in the Robo crawl", - "An uncaught Unity exception was detected (these don't crash apps)." + "An uncaught Unity exception was detected (these don't crash apps).", + "Device running out of memory was detected" ], "type": "string" }, diff --git a/toolresults/v1beta3/toolresults-gen.go b/toolresults/v1beta3/toolresults-gen.go index 8f814af2e76..5d4419ab953 100644 --- a/toolresults/v1beta3/toolresults-gen.go +++ b/toolresults/v1beta3/toolresults-gen.go @@ -812,6 +812,10 @@ func (s *CrashDialogError) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DeviceOutOfMemory: A warning that device ran out of memory +type DeviceOutOfMemory struct { +} + // Duration: A Duration represents a signed, fixed-length span of time // represented as a count of seconds and fractions of seconds at // nanosecond resolution. It is independent of any calendar and concepts @@ -3993,6 +3997,7 @@ type TestIssue struct { // Robo crawl // "unityException" - An uncaught Unity exception was detected (these // don't crash apps). + // "deviceOutOfMemory" - Device running out of memory was detected Type string `json:"type,omitempty"` // Warning: Warning message with additional details of the issue. Should @@ -4579,7 +4584,7 @@ func (c *ProjectsGetSettingsCall) Header() http.Header { func (c *ProjectsGetSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4731,7 +4736,7 @@ func (c *ProjectsInitializeSettingsCall) Header() http.Header { func (c *ProjectsInitializeSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4874,7 +4879,7 @@ func (c *ProjectsHistoriesCreateCall) Header() http.Header { func (c *ProjectsHistoriesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5032,7 +5037,7 @@ func (c *ProjectsHistoriesGetCall) Header() http.Header { func (c *ProjectsHistoriesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5211,7 +5216,7 @@ func (c *ProjectsHistoriesListCall) Header() http.Header { func (c *ProjectsHistoriesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5396,7 +5401,7 @@ func (c *ProjectsHistoriesExecutionsCreateCall) Header() http.Header { func (c *ProjectsHistoriesExecutionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5564,7 +5569,7 @@ func (c *ProjectsHistoriesExecutionsGetCall) Header() http.Header { func (c *ProjectsHistoriesExecutionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5746,7 +5751,7 @@ func (c *ProjectsHistoriesExecutionsListCall) Header() http.Header { func (c *ProjectsHistoriesExecutionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5937,7 +5942,7 @@ func (c *ProjectsHistoriesExecutionsPatchCall) Header() http.Header { func (c *ProjectsHistoriesExecutionsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6112,7 +6117,7 @@ func (c *ProjectsHistoriesExecutionsClustersGetCall) Header() http.Header { func (c *ProjectsHistoriesExecutionsClustersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6289,7 +6294,7 @@ func (c *ProjectsHistoriesExecutionsClustersListCall) Header() http.Header { func (c *ProjectsHistoriesExecutionsClustersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6457,7 +6462,7 @@ func (c *ProjectsHistoriesExecutionsEnvironmentsGetCall) Header() http.Header { func (c *ProjectsHistoriesExecutionsEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6647,7 +6652,7 @@ func (c *ProjectsHistoriesExecutionsEnvironmentsListCall) Header() http.Header { func (c *ProjectsHistoriesExecutionsEnvironmentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6854,7 +6859,7 @@ func (c *ProjectsHistoriesExecutionsStepsAccessibilityClustersCall) Header() htt func (c *ProjectsHistoriesExecutionsStepsAccessibilityClustersCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7012,7 +7017,7 @@ func (c *ProjectsHistoriesExecutionsStepsCreateCall) Header() http.Header { func (c *ProjectsHistoriesExecutionsStepsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7190,7 +7195,7 @@ func (c *ProjectsHistoriesExecutionsStepsGetCall) Header() http.Header { func (c *ProjectsHistoriesExecutionsStepsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7365,7 +7370,7 @@ func (c *ProjectsHistoriesExecutionsStepsGetPerfMetricsSummaryCall) Header() htt func (c *ProjectsHistoriesExecutionsStepsGetPerfMetricsSummaryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7559,7 +7564,7 @@ func (c *ProjectsHistoriesExecutionsStepsListCall) Header() http.Header { func (c *ProjectsHistoriesExecutionsStepsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7761,7 +7766,7 @@ func (c *ProjectsHistoriesExecutionsStepsPatchCall) Header() http.Header { func (c *ProjectsHistoriesExecutionsStepsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7941,7 +7946,7 @@ func (c *ProjectsHistoriesExecutionsStepsPublishXunitXmlFilesCall) Header() http func (c *ProjectsHistoriesExecutionsStepsPublishXunitXmlFilesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8112,7 +8117,7 @@ func (c *ProjectsHistoriesExecutionsStepsPerfMetricsSummaryCreateCall) Header() func (c *ProjectsHistoriesExecutionsStepsPerfMetricsSummaryCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8283,7 +8288,7 @@ func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesCreateCall) Header() ht func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8464,7 +8469,7 @@ func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesGetCall) Header() http. func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8664,7 +8669,7 @@ func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesListCall) Header() http func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8857,7 +8862,7 @@ func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesBatchCreateCall) func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesBatchCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9068,7 +9073,7 @@ func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesListCall) Header func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9287,7 +9292,7 @@ func (c *ProjectsHistoriesExecutionsStepsTestCasesGetCall) Header() http.Header func (c *ProjectsHistoriesExecutionsStepsTestCasesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9487,7 +9492,7 @@ func (c *ProjectsHistoriesExecutionsStepsTestCasesListCall) Header() http.Header func (c *ProjectsHistoriesExecutionsStepsTestCasesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9711,7 +9716,7 @@ func (c *ProjectsHistoriesExecutionsStepsThumbnailsListCall) Header() http.Heade func (c *ProjectsHistoriesExecutionsStepsThumbnailsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/tpu/v1/tpu-gen.go b/tpu/v1/tpu-gen.go index 332f64f8819..d9b6e58fac2 100644 --- a/tpu/v1/tpu-gen.go +++ b/tpu/v1/tpu-gen.go @@ -1030,7 +1030,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1196,7 +1196,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1377,7 +1377,7 @@ func (c *ProjectsLocationsAcceleratorTypesGetCall) Header() http.Header { func (c *ProjectsLocationsAcceleratorTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1547,7 +1547,7 @@ func (c *ProjectsLocationsAcceleratorTypesListCall) Header() http.Header { func (c *ProjectsLocationsAcceleratorTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1731,7 +1731,7 @@ func (c *ProjectsLocationsNodesCreateCall) Header() http.Header { func (c *ProjectsLocationsNodesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1874,7 +1874,7 @@ func (c *ProjectsLocationsNodesDeleteCall) Header() http.Header { func (c *ProjectsLocationsNodesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2015,7 +2015,7 @@ func (c *ProjectsLocationsNodesGetCall) Header() http.Header { func (c *ProjectsLocationsNodesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2173,7 +2173,7 @@ func (c *ProjectsLocationsNodesListCall) Header() http.Header { func (c *ProjectsLocationsNodesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2340,7 +2340,7 @@ func (c *ProjectsLocationsNodesReimageCall) Header() http.Header { func (c *ProjectsLocationsNodesReimageCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2480,7 +2480,7 @@ func (c *ProjectsLocationsNodesStartCall) Header() http.Header { func (c *ProjectsLocationsNodesStartCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2620,7 +2620,7 @@ func (c *ProjectsLocationsNodesStopCall) Header() http.Header { func (c *ProjectsLocationsNodesStopCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2767,7 +2767,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2900,7 +2900,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3043,7 +3043,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3217,7 +3217,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3398,7 +3398,7 @@ func (c *ProjectsLocationsTensorflowVersionsGetCall) Header() http.Header { func (c *ProjectsLocationsTensorflowVersionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3568,7 +3568,7 @@ func (c *ProjectsLocationsTensorflowVersionsListCall) Header() http.Header { func (c *ProjectsLocationsTensorflowVersionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/tpu/v1alpha1/tpu-gen.go b/tpu/v1alpha1/tpu-gen.go index 7ed08d31e8c..f1735670534 100644 --- a/tpu/v1alpha1/tpu-gen.go +++ b/tpu/v1alpha1/tpu-gen.go @@ -1030,7 +1030,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1196,7 +1196,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1377,7 +1377,7 @@ func (c *ProjectsLocationsAcceleratorTypesGetCall) Header() http.Header { func (c *ProjectsLocationsAcceleratorTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1547,7 +1547,7 @@ func (c *ProjectsLocationsAcceleratorTypesListCall) Header() http.Header { func (c *ProjectsLocationsAcceleratorTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1731,7 +1731,7 @@ func (c *ProjectsLocationsNodesCreateCall) Header() http.Header { func (c *ProjectsLocationsNodesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1874,7 +1874,7 @@ func (c *ProjectsLocationsNodesDeleteCall) Header() http.Header { func (c *ProjectsLocationsNodesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2015,7 +2015,7 @@ func (c *ProjectsLocationsNodesGetCall) Header() http.Header { func (c *ProjectsLocationsNodesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2173,7 +2173,7 @@ func (c *ProjectsLocationsNodesListCall) Header() http.Header { func (c *ProjectsLocationsNodesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2340,7 +2340,7 @@ func (c *ProjectsLocationsNodesReimageCall) Header() http.Header { func (c *ProjectsLocationsNodesReimageCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2480,7 +2480,7 @@ func (c *ProjectsLocationsNodesStartCall) Header() http.Header { func (c *ProjectsLocationsNodesStartCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2620,7 +2620,7 @@ func (c *ProjectsLocationsNodesStopCall) Header() http.Header { func (c *ProjectsLocationsNodesStopCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2767,7 +2767,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2900,7 +2900,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3043,7 +3043,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3217,7 +3217,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3398,7 +3398,7 @@ func (c *ProjectsLocationsTensorflowVersionsGetCall) Header() http.Header { func (c *ProjectsLocationsTensorflowVersionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3568,7 +3568,7 @@ func (c *ProjectsLocationsTensorflowVersionsListCall) Header() http.Header { func (c *ProjectsLocationsTensorflowVersionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/trafficdirector/v2/trafficdirector-gen.go b/trafficdirector/v2/trafficdirector-gen.go index 5daf9a235f1..3101c0feb33 100644 --- a/trafficdirector/v2/trafficdirector-gen.go +++ b/trafficdirector/v2/trafficdirector-gen.go @@ -1659,7 +1659,7 @@ func (c *DiscoveryClientStatusCall) Header() http.Header { func (c *DiscoveryClientStatusCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/transcoder/v1beta1/transcoder-api.json b/transcoder/v1beta1/transcoder-api.json new file mode 100644 index 00000000000..b00070d4545 --- /dev/null +++ b/transcoder/v1beta1/transcoder-api.json @@ -0,0 +1,1465 @@ +{ + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/cloud-platform": { + "description": "View and manage your data across Google Cloud Platform services" + } + } + } + }, + "basePath": "", + "baseUrl": "https://transcoder.googleapis.com/", + "batchPath": "batch", + "canonicalName": "Transcoder", + "description": "This API converts video files into formats suitable for consumer distribution. ", + "discoveryVersion": "v1", + "documentationLink": "https://cloud.google.com/transcoder/docs/", + "fullyEncodeReservedExpansion": true, + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "id": "transcoder:v1beta1", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://transcoder.mtls.googleapis.com/", + "name": "transcoder", + "ownerDomain": "google.com", + "ownerName": "Google", + "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, + "alt": { + "default": "json", + "description": "Data format for response.", + "enum": [ + "json", + "media", + "proto" + ], + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query", + "type": "string" + }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, + "fields": { + "description": "Selector specifying which fields to include in a partial response.", + "location": "query", + "type": "string" + }, + "key": { + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "location": "query", + "type": "string" + }, + "oauth_token": { + "description": "OAuth 2.0 token for the current user.", + "location": "query", + "type": "string" + }, + "prettyPrint": { + "default": "true", + "description": "Returns response with indentations and line breaks.", + "location": "query", + "type": "boolean" + }, + "quotaUser": { + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query", + "type": "string" + }, + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query", + "type": "string" + } + }, + "protocol": "rest", + "resources": { + "projects": { + "resources": { + "locations": { + "resources": { + "jobTemplates": { + "methods": { + "create": { + "description": "Creates a job template in the specified region.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/jobTemplates", + "httpMethod": "POST", + "id": "transcoder.projects.locations.jobTemplates.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "jobTemplateId": { + "description": "Required. The ID to use for the job template, which will become the final component of the job template's resource name. This value should be 4-63 characters, and valid characters must match the regular expression `a-zA-Z*`.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent location to create this job template. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/jobTemplates", + "request": { + "$ref": "JobTemplate" + }, + "response": { + "$ref": "JobTemplate" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a job template.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/jobTemplates/{jobTemplatesId}", + "httpMethod": "DELETE", + "id": "transcoder.projects.locations.jobTemplates.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the job template to delete. `projects/{project}/locations/{location}/jobTemplates/{job_template}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/jobTemplates/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Returns the job template data.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/jobTemplates/{jobTemplatesId}", + "httpMethod": "GET", + "id": "transcoder.projects.locations.jobTemplates.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the job template to retrieve. Format: `projects/{project}/locations/{location}/jobTemplates/{job_template}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/jobTemplates/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "JobTemplate" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists job templates in the specified region.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/jobTemplates", + "httpMethod": "GET", + "id": "transcoder.projects.locations.jobTemplates.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of items to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The `next_page_token` value returned from a previous List request, if any.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent location from which to retrieve the collection of job templates. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/jobTemplates", + "response": { + "$ref": "ListJobTemplatesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "jobs": { + "methods": { + "create": { + "description": "Creates a job in the specified region.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/jobs", + "httpMethod": "POST", + "id": "transcoder.projects.locations.jobs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent location to create and process this job. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/jobs", + "request": { + "$ref": "Job" + }, + "response": { + "$ref": "Job" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a job.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/jobs/{jobsId}", + "httpMethod": "DELETE", + "id": "transcoder.projects.locations.jobs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the job to delete. Format: `projects/{project}/locations/{location}/jobs/{job}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/jobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Returns the job data.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/jobs/{jobsId}", + "httpMethod": "GET", + "id": "transcoder.projects.locations.jobs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the job to retrieve. Format: `projects/{project}/locations/{location}/jobs/{job}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/jobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Job" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists jobs in the specified region.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/jobs", + "httpMethod": "GET", + "id": "transcoder.projects.locations.jobs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of items to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The `next_page_token` value returned from a previous List request, if any.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/jobs", + "response": { + "$ref": "ListJobsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + } + }, + "revision": "20201111", + "rootUrl": "https://transcoder.googleapis.com/", + "schemas": { + "AdBreak": { + "description": "Ad break.", + "id": "AdBreak", + "properties": { + "startTimeOffset": { + "description": "Start time in seconds for the ad break, relative to the output file timeline. The default is `0s`.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, + "Aes128Encryption": { + "description": "Configuration for AES-128 encryption.", + "id": "Aes128Encryption", + "properties": { + "keyUri": { + "description": "Required. URI of the key delivery service. This URI is inserted into the M3U8 header.", + "type": "string" + } + }, + "type": "object" + }, + "Animation": { + "description": "Animation types.", + "id": "Animation", + "properties": { + "animationEnd": { + "$ref": "AnimationEnd", + "description": "End previous animation." + }, + "animationFade": { + "$ref": "AnimationFade", + "description": "Display overlay object with fade animation." + }, + "animationStatic": { + "$ref": "AnimationStatic", + "description": "Display static overlay object." + } + }, + "type": "object" + }, + "AnimationEnd": { + "description": "End previous overlay animation from the video. Without AnimationEnd, the overlay object will keep the state of previous animation until the end of the video.", + "id": "AnimationEnd", + "properties": { + "startTimeOffset": { + "description": "The time to end overlay object, in seconds. Default: 0", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, + "AnimationFade": { + "description": "Display overlay object with fade animation.", + "id": "AnimationFade", + "properties": { + "endTimeOffset": { + "description": "The time to end the fade animation, in seconds. Default: `start_time_offset` + 1s", + "format": "google-duration", + "type": "string" + }, + "fadeType": { + "description": "Required. Type of fade animation: `FADE_IN` or `FADE_OUT`.", + "enum": [ + "FADE_TYPE_UNSPECIFIED", + "FADE_IN", + "FADE_OUT" + ], + "enumDescriptions": [ + "The fade type is not specified.", + "Fade the overlay object into view.", + "Fade the overlay object out of view." + ], + "type": "string" + }, + "startTimeOffset": { + "description": "The time to start the fade animation, in seconds. Default: 0", + "format": "google-duration", + "type": "string" + }, + "xy": { + "$ref": "NormalizedCoordinate", + "description": "Normalized coordinates based on output video resolution. Valid values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay object." + } + }, + "type": "object" + }, + "AnimationStatic": { + "description": "Display static overlay object.", + "id": "AnimationStatic", + "properties": { + "startTimeOffset": { + "description": "The time to start displaying the overlay object, in seconds. Default: 0", + "format": "google-duration", + "type": "string" + }, + "xy": { + "$ref": "NormalizedCoordinate", + "description": "Normalized coordinates based on output video resolution. Valid values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay object." + } + }, + "type": "object" + }, + "Audio": { + "description": "Audio preprocessing configuration.", + "id": "Audio", + "properties": { + "highBoost": { + "description": "Enable boosting high frequency components. The default is `false`.", + "type": "boolean" + }, + "lowBoost": { + "description": "Enable boosting low frequency components. The default is `false`.", + "type": "boolean" + }, + "lufs": { + "description": "Specify audio loudness normalization in loudness units relative to full scale (LUFS). Enter a value between -24 and 0, where -24 is the Advanced Television Systems Committee (ATSC A/85), -23 is the EU R128 broadcast standard, -19 is the prior standard for online mono audio, -18 is the ReplayGain standard, -16 is the prior standard for stereo audio, -14 is the new online audio standard recommended by Spotify, as well as Amazon Echo, and 0 disables normalization. The default is 0.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "AudioAtom": { + "description": "The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.", + "id": "AudioAtom", + "properties": { + "channels": { + "description": "List of `Channel`s for this audio stream. for in-depth explanation.", + "items": { + "$ref": "AudioChannel" + }, + "type": "array" + }, + "key": { + "description": "Required. The `EditAtom.key` that references the atom with audio inputs in the `Job.edit_list`.", + "type": "string" + } + }, + "type": "object" + }, + "AudioChannel": { + "description": "The audio channel.", + "id": "AudioChannel", + "properties": { + "inputs": { + "description": "List of `Job.inputs` for this audio channel.", + "items": { + "$ref": "AudioChannelInput" + }, + "type": "array" + } + }, + "type": "object" + }, + "AudioChannelInput": { + "description": "Identifies which input file, track, and channel should be used.", + "id": "AudioChannelInput", + "properties": { + "channel": { + "description": "Required. The zero-based index of the channel in the input file.", + "format": "int32", + "type": "integer" + }, + "gainDb": { + "description": "Audio volume control in dB. Negative values decrease volume, positive values increase. The default is 0.", + "format": "double", + "type": "number" + }, + "key": { + "description": "Required. The `Input.key` that identifies the input file.", + "type": "string" + }, + "track": { + "description": "Required. The zero-based index of the track in the input file.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "AudioStream": { + "description": "Audio stream resource.", + "id": "AudioStream", + "properties": { + "bitrateBps": { + "description": "Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000.", + "format": "int32", + "type": "integer" + }, + "channelCount": { + "description": "Number of audio channels. Must be between 1 and 6. The default is 2.", + "format": "int32", + "type": "integer" + }, + "channelLayout": { + "description": "A list of channel names specifying layout of the audio channels. This only affects the metadata embedded in the container headers, if supported by the specified format. The default is `[\"fl\", \"fr\"]`. Supported channel names: - 'fl' - Front left channel - 'fr' - Front right channel - 'sl' - Side left channel - 'sr' - Side right channel - 'fc' - Front center channel - 'lfe' - Low frequency", + "items": { + "type": "string" + }, + "type": "array" + }, + "codec": { + "description": "The codec for this audio stream. The default is `\"aac\"`. Supported audio codecs: - 'aac' - 'aac-he' - 'aac-he-v2' - 'mp3' - 'ac3' - 'eac3'", + "type": "string" + }, + "mapping": { + "description": "The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.", + "items": { + "$ref": "AudioAtom" + }, + "type": "array" + }, + "sampleRateHertz": { + "description": "The audio sample rate in Hertz. The default is 48000 Hertz.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "Color": { + "description": "Color preprocessing configuration.", + "id": "Color", + "properties": { + "brightness": { + "description": "Control brightness of the video. Enter a value between -1 and 1, where -1 is minimum brightness and 1 is maximum brightness. 0 is no change. The default is 0.", + "format": "double", + "type": "number" + }, + "contrast": { + "description": "Control black and white contrast of the video. Enter a value between -1 and 1, where -1 is minimum contrast and 1 is maximum contrast. 0 is no change. The default is 0.", + "format": "double", + "type": "number" + }, + "saturation": { + "description": "Control color saturation of the video. Enter a value between -1 and 1, where -1 is fully desaturated and 1 is maximum saturation. 0 is no change. The default is 0.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "Crop": { + "description": "Video cropping configuration.", + "id": "Crop", + "properties": { + "bottomPixels": { + "description": "The number of pixels to crop from the bottom. The default is 0.", + "format": "int32", + "type": "integer" + }, + "leftPixels": { + "description": "The number of pixels to crop from the left. The default is 0.", + "format": "int32", + "type": "integer" + }, + "rightPixels": { + "description": "The number of pixels to crop from the right. The default is 0.", + "format": "int32", + "type": "integer" + }, + "topPixels": { + "description": "The number of pixels to crop from the top. The default is 0.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "Deblock": { + "description": "Deblock preprocessing configuration.", + "id": "Deblock", + "properties": { + "enabled": { + "description": "Enable deblocker. The default is `false`.", + "type": "boolean" + }, + "strength": { + "description": "Set strength of the deblocker. Enter a value between 0 and 1. The higher the value, the stronger the block removal. 0 is no deblocking. The default is 0.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "Denoise": { + "description": "Denoise preprocessing configuration.", + "id": "Denoise", + "properties": { + "strength": { + "description": "Set strength of the denoise. Enter a value between 0 and 1. The higher the value, the smoother the image. 0 is no denoising. The default is 0.", + "format": "double", + "type": "number" + }, + "tune": { + "description": "Set the denoiser mode. The default is `\"standard\"`. Supported denoiser modes: - 'standard' - 'grain'", + "type": "string" + } + }, + "type": "object" + }, + "EditAtom": { + "description": "Edit atom.", + "id": "EditAtom", + "properties": { + "endTimeOffset": { + "description": "End time in seconds for the atom, relative to the input file timeline. When `end_time_offset` is not specified, the `inputs` are used until the end of the atom.", + "format": "google-duration", + "type": "string" + }, + "inputs": { + "description": "List of `Input.key`s identifying files that should be used in this atom. The listed `inputs` must have the same timeline.", + "items": { + "type": "string" + }, + "type": "array" + }, + "key": { + "description": "A unique key for this atom. Must be specified when using advanced mapping.", + "type": "string" + }, + "startTimeOffset": { + "description": "Start time in seconds for the atom, relative to the input file timeline. The default is `0s`.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, + "ElementaryStream": { + "description": "Encoding of an input file such as an audio, video, or text track. Elementary streams must be packaged before mapping and sharing between different output formats.", + "id": "ElementaryStream", + "properties": { + "audioStream": { + "$ref": "AudioStream", + "description": "Encoding of an audio stream." + }, + "key": { + "description": "A unique key for this elementary stream.", + "type": "string" + }, + "textStream": { + "$ref": "TextStream", + "description": "Encoding of a text stream. For example, closed captions or subtitles." + }, + "videoStream": { + "$ref": "VideoStream", + "description": "Encoding of a video stream." + } + }, + "type": "object" + }, + "Empty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "id": "Empty", + "properties": {}, + "type": "object" + }, + "Encryption": { + "description": "Encryption settings.", + "id": "Encryption", + "properties": { + "aes128": { + "$ref": "Aes128Encryption", + "description": "Configuration for AES-128 encryption." + }, + "iv": { + "description": "Required. 128 bit Initialization Vector (IV) represented as lowercase hexadecimal digits.", + "type": "string" + }, + "key": { + "description": "Required. 128 bit encryption key represented as lowercase hexadecimal digits.", + "type": "string" + }, + "mpegCenc": { + "$ref": "MpegCommonEncryption", + "description": "Configuration for MPEG Common Encryption (MPEG-CENC)." + }, + "sampleAes": { + "$ref": "SampleAesEncryption", + "description": "Configuration for SAMPLE-AES encryption." + } + }, + "type": "object" + }, + "FailureDetail": { + "description": "Additional information about the reasons for the failure.", + "id": "FailureDetail", + "properties": { + "description": { + "description": "A description of the failure.", + "type": "string" + } + }, + "type": "object" + }, + "Image": { + "description": "Overlaid jpeg image.", + "id": "Image", + "properties": { + "alpha": { + "description": "Target image opacity. Valid values: `1` (solid, default), `0` (transparent).", + "format": "double", + "type": "number" + }, + "resolution": { + "$ref": "NormalizedCoordinate", + "description": "Normalized image resolution, based on output video resolution. Valid values: `0.0`–`1.0`. To respect the original image aspect ratio, set either `x` or `y` to `0.0`. To use the original image resolution, set both `x` and `y` to `0.0`." + }, + "uri": { + "description": "Required. URI of the image in Cloud Storage. For example, `gs://bucket/inputs/image.jpeg`.", + "type": "string" + } + }, + "type": "object" + }, + "Input": { + "description": "Input asset.", + "id": "Input", + "properties": { + "key": { + "description": "A unique key for this input. Must be specified when using advanced mapping and edit lists.", + "type": "string" + }, + "preprocessingConfig": { + "$ref": "PreprocessingConfig", + "description": "Preprocessing configurations." + }, + "uri": { + "description": "URI of the media. It must be stored in Cloud Storage. Example `gs://bucket/inputs/file.mp4`. If empty the value will be populated from `Job.input_uri`.", + "type": "string" + } + }, + "type": "object" + }, + "Job": { + "description": "Transcoding job resource.", + "id": "Job", + "properties": { + "config": { + "$ref": "JobConfig", + "description": "The configuration for this job." + }, + "createTime": { + "description": "Output only. The time the job was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "endTime": { + "description": "Output only. The time the transcoding finished.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "failureDetails": { + "description": "Output only. List of failure details. This property may contain additional information about the failure when `failure_reason` is present. *Note*: This feature is not yet available.", + "items": { + "$ref": "FailureDetail" + }, + "readOnly": true, + "type": "array" + }, + "failureReason": { + "description": "Output only. A description of the reason for the failure. This property is always present when `state` is `FAILED`.", + "readOnly": true, + "type": "string" + }, + "inputUri": { + "description": "Input only. Specify the `input_uri` to populate empty `uri` fields in each element of `Job.config.inputs` or `JobTemplate.config.inputs` when using template. URI of the media. It must be stored in Cloud Storage. For example, `gs://bucket/inputs/file.mp4`.", + "type": "string" + }, + "name": { + "description": "The resource name of the job. Format: `projects/{project}/locations/{location}/jobs/{job}`", + "type": "string" + }, + "originUri": { + "$ref": "OriginUri", + "description": "Output only. The origin URI. *Note*: This feature is not yet available.", + "readOnly": true + }, + "outputUri": { + "description": "Input only. Specify the `output_uri` to populate an empty `Job.config.output.uri` or `JobTemplate.config.output.uri` when using template. URI for the output file(s). For example, `gs://my-bucket/outputs/`.", + "type": "string" + }, + "priority": { + "description": "Specify the priority of the job. Enter a value between 0 and 100, where 0 is the lowest priority and 100 is the highest priority. The default is 0.", + "format": "int32", + "type": "integer" + }, + "progress": { + "$ref": "Progress", + "description": "Output only. Estimated fractional progress, from `0` to `1` for each step. *Note*: This feature is not yet available.", + "readOnly": true + }, + "startTime": { + "description": "Output only. The time the transcoding started.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. The current state of the job.", + "enum": [ + "PROCESSING_STATE_UNSPECIFIED", + "PENDING", + "RUNNING", + "SUCCEEDED", + "FAILED" + ], + "enumDescriptions": [ + "The processing state is not specified.", + "The job is enqueued and will be picked up for processing soon.", + "The job is being processed.", + "The job has been completed successfully.", + "The job has failed. For additional information, see `failure_reason` and `failure_details`" + ], + "readOnly": true, + "type": "string" + }, + "templateId": { + "description": "Input only. Specify the `template_id` to use for populating `Job.config`. The default is `preset/web-hd`. Preset Transcoder templates: - `preset/{preset_id}` - User defined JobTemplate: `{job_template_id}`", + "type": "string" + } + }, + "type": "object" + }, + "JobConfig": { + "description": "Job configuration", + "id": "JobConfig", + "properties": { + "adBreaks": { + "description": "List of ad breaks. Specifies where to insert ad break tags in the output manifests.", + "items": { + "$ref": "AdBreak" + }, + "type": "array" + }, + "editList": { + "description": "List of `Edit atom`s. Defines the ultimate timeline of the resulting file or manifest.", + "items": { + "$ref": "EditAtom" + }, + "type": "array" + }, + "elementaryStreams": { + "description": "List of elementary streams.", + "items": { + "$ref": "ElementaryStream" + }, + "type": "array" + }, + "inputs": { + "description": "List of input assets stored in Cloud Storage.", + "items": { + "$ref": "Input" + }, + "type": "array" + }, + "manifests": { + "description": "List of output manifests.", + "items": { + "$ref": "Manifest" + }, + "type": "array" + }, + "muxStreams": { + "description": "List of multiplexing settings for output streams.", + "items": { + "$ref": "MuxStream" + }, + "type": "array" + }, + "output": { + "$ref": "Output", + "description": "Output configuration." + }, + "overlays": { + "description": "List of overlays on the output video, in descending Z-order.", + "items": { + "$ref": "Overlay" + }, + "type": "array" + }, + "pubsubDestination": { + "$ref": "PubsubDestination", + "description": "Destination on Pub/Sub." + }, + "spriteSheets": { + "description": "List of output sprite sheets.", + "items": { + "$ref": "SpriteSheet" + }, + "type": "array" + } + }, + "type": "object" + }, + "JobTemplate": { + "description": "Transcoding job template resource.", + "id": "JobTemplate", + "properties": { + "config": { + "$ref": "JobConfig", + "description": "The configuration for this template." + }, + "name": { + "description": "The resource name of the job template. Format: `projects/{project}/locations/{location}/jobTemplates/{job_template}`", + "type": "string" + } + }, + "type": "object" + }, + "ListJobTemplatesResponse": { + "description": "Response message for `TranscoderService.ListJobTemplates`.", + "id": "ListJobTemplatesResponse", + "properties": { + "jobTemplates": { + "description": "List of job templates in the specified region.", + "items": { + "$ref": "JobTemplate" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The pagination token.", + "type": "string" + } + }, + "type": "object" + }, + "ListJobsResponse": { + "description": "Response message for `TranscoderService.ListJobs`.", + "id": "ListJobsResponse", + "properties": { + "jobs": { + "description": "List of jobs in the specified region.", + "items": { + "$ref": "Job" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The pagination token.", + "type": "string" + } + }, + "type": "object" + }, + "Manifest": { + "description": "Manifest configuration.", + "id": "Manifest", + "properties": { + "fileName": { + "description": "The name of the generated file. The default is `\"manifest\"` with the extension suffix corresponding to the `Manifest.type`.", + "type": "string" + }, + "muxStreams": { + "description": "Required. List of user given `MuxStream.key`s that should appear in this manifest. When `Manifest.type` is `HLS`, a media manifest with name `MuxStream.key` and `.m3u8` extension is generated for each element of the `Manifest.mux_streams`.", + "items": { + "type": "string" + }, + "type": "array" + }, + "type": { + "description": "Required. Type of the manifest, can be \"HLS\" or \"DASH\".", + "enum": [ + "MANIFEST_TYPE_UNSPECIFIED", + "HLS", + "DASH" + ], + "enumDescriptions": [ + "The manifest type is not specified.", + "Create `\"HLS\"` manifest. The corresponding file extension is `\".m3u8\"`.", + "Create `\"DASH\"` manifest. The corresponding file extension is `\".mpd\"`." + ], + "type": "string" + } + }, + "type": "object" + }, + "MpegCommonEncryption": { + "description": "Configuration for MPEG Common Encryption (MPEG-CENC).", + "id": "MpegCommonEncryption", + "properties": { + "keyId": { + "description": "Required. 128 bit Key ID represented as lowercase hexadecimal digits for use with common encryption.", + "type": "string" + }, + "scheme": { + "description": "Required. Specify the encryption scheme. Supported encryption schemes: - 'cenc' - 'cbcs'", + "type": "string" + } + }, + "type": "object" + }, + "MuxStream": { + "description": "Multiplexing settings for output stream.", + "id": "MuxStream", + "properties": { + "container": { + "description": "The container format. The default is `\"mp4\"` Supported container formats: - 'ts' - 'fmp4'- the corresponding file extension is `\".m4s\"` - 'mp4' - 'vtt'", + "type": "string" + }, + "elementaryStreams": { + "description": "List of `ElementaryStream.key`s multiplexed in this stream.", + "items": { + "type": "string" + }, + "type": "array" + }, + "encryption": { + "$ref": "Encryption", + "description": "Encryption settings." + }, + "fileName": { + "description": "The name of the generated file. The default is `MuxStream.key` with the extension suffix corresponding to the `MuxStream.container`. Individual segments also have an incremental 10-digit zero-padded suffix starting from 0 before the extension, such as `\"mux_stream0000000123.ts\"`.", + "type": "string" + }, + "key": { + "description": "A unique key for this multiplexed stream. HLS media manifests will be named `MuxStream.key` with the `\".m3u8\"` extension suffix.", + "type": "string" + }, + "segmentSettings": { + "$ref": "SegmentSettings", + "description": "Segment settings for `\"ts\"`, `\"fmp4\"` and `\"vtt\"`." + } + }, + "type": "object" + }, + "NormalizedCoordinate": { + "description": "2D normalized coordinates. Default: `{0.0, 0.0}`", + "id": "NormalizedCoordinate", + "properties": { + "x": { + "description": "Normalized x coordinate.", + "format": "double", + "type": "number" + }, + "y": { + "description": "Normalized y coordinate.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "OriginUri": { + "description": "The origin URI.", + "id": "OriginUri", + "properties": { + "dash": { + "description": "Dash manifest URI. If multiple Dash manifests are created, only the first one is listed.", + "type": "string" + }, + "hls": { + "description": "HLS manifest URI per https://tools.ietf.org/html/rfc8216#section-4.3.4. If multiple HLS manifests are created, only the first one is listed.", + "type": "string" + } + }, + "type": "object" + }, + "Output": { + "description": "Location of output file(s) in a Cloud Storage bucket.", + "id": "Output", + "properties": { + "uri": { + "description": "URI for the output file(s). For example, `gs://my-bucket/outputs/`. If empty the value is populated from `Job.output_uri`.", + "type": "string" + } + }, + "type": "object" + }, + "Overlay": { + "description": "Overlay configuration.", + "id": "Overlay", + "properties": { + "animations": { + "description": "List of Animations. The list should be chronological, without any time overlap.", + "items": { + "$ref": "Animation" + }, + "type": "array" + }, + "image": { + "$ref": "Image", + "description": "Image overlay." + } + }, + "type": "object" + }, + "PreprocessingConfig": { + "description": "Preprocessing configurations.", + "id": "PreprocessingConfig", + "properties": { + "audio": { + "$ref": "Audio", + "description": "Audio preprocessing configuration." + }, + "color": { + "$ref": "Color", + "description": "Color preprocessing configuration." + }, + "crop": { + "$ref": "Crop", + "description": "Specify the video cropping configuration." + }, + "deblock": { + "$ref": "Deblock", + "description": "Deblock preprocessing configuration." + }, + "denoise": { + "$ref": "Denoise", + "description": "Denoise preprocessing configuration." + } + }, + "type": "object" + }, + "Progress": { + "description": "Estimated fractional progress for each step, from `0` to `1`.", + "id": "Progress", + "properties": { + "analyzed": { + "description": "Estimated fractional progress for `analyzing` step.", + "format": "double", + "type": "number" + }, + "encoded": { + "description": "Estimated fractional progress for `encoding` step.", + "format": "double", + "type": "number" + }, + "notified": { + "description": "Estimated fractional progress for `notifying` step.", + "format": "double", + "type": "number" + }, + "uploaded": { + "description": "Estimated fractional progress for `uploading` step.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "PubsubDestination": { + "description": "A Pub/Sub destination.", + "id": "PubsubDestination", + "properties": { + "topic": { + "description": "The name of the Pub/Sub topic to publish job completion notification to. For example: `projects/{project}/topics/{topic}`.", + "type": "string" + } + }, + "type": "object" + }, + "SampleAesEncryption": { + "description": "Configuration for SAMPLE-AES encryption.", + "id": "SampleAesEncryption", + "properties": { + "keyUri": { + "description": "Required. URI of the key delivery service. This URI is inserted into the M3U8 header.", + "type": "string" + } + }, + "type": "object" + }, + "SegmentSettings": { + "description": "Segment settings for `\"ts\"`, `\"fmp4\"` and `\"vtt\"`.", + "id": "SegmentSettings", + "properties": { + "individualSegments": { + "description": "Required. Create an individual segment file. The default is `false`.", + "type": "boolean" + }, + "segmentDuration": { + "description": "Duration of the segments in seconds. The default is `\"6.0s\"`.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, + "SpriteSheet": { + "description": "Sprite sheet configuration.", + "id": "SpriteSheet", + "properties": { + "columnCount": { + "description": "The maximum number of sprites per row in a sprite sheet. The default is 0, which indicates no maximum limit.", + "format": "int32", + "type": "integer" + }, + "endTimeOffset": { + "description": "End time in seconds, relative to the output file timeline. When `end_time_offset` is not specified, the sprites are generated until the end of the output file.", + "format": "google-duration", + "type": "string" + }, + "filePrefix": { + "description": "Required. File name prefix for the generated sprite sheets. Each sprite sheet has an incremental 10-digit zero-padded suffix starting from 0 before the extension, such as `\"sprite_sheet0000000123.jpeg\"`.", + "type": "string" + }, + "format": { + "description": "Format type. The default is `\"jpeg\"`. Supported formats: - 'jpeg'", + "type": "string" + }, + "interval": { + "description": "Starting from `0s`, create sprites at regular intervals. Specify the interval value in seconds.", + "format": "google-duration", + "type": "string" + }, + "rowCount": { + "description": "The maximum number of rows per sprite sheet. When the sprite sheet is full, a new sprite sheet is created. The default is 0, which indicates no maximum limit.", + "format": "int32", + "type": "integer" + }, + "spriteHeightPixels": { + "description": "Required. The height of sprite in pixels. Must be an even integer.", + "format": "int32", + "type": "integer" + }, + "spriteWidthPixels": { + "description": "Required. The width of sprite in pixels. Must be an even integer.", + "format": "int32", + "type": "integer" + }, + "startTimeOffset": { + "description": "Start time in seconds, relative to the output file timeline. Determines the first sprite to pick. The default is `0s`.", + "format": "google-duration", + "type": "string" + }, + "totalCount": { + "description": "Total number of sprites. Create the specified number of sprites distributed evenly across the timeline of the output media. The default is 100.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "TextAtom": { + "description": "The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.", + "id": "TextAtom", + "properties": { + "inputs": { + "description": "List of `Job.inputs` that should be embedded in this atom. Only one input is supported.", + "items": { + "$ref": "TextInput" + }, + "type": "array" + }, + "key": { + "description": "Required. The `EditAtom.key` that references atom with text inputs in the `Job.edit_list`.", + "type": "string" + } + }, + "type": "object" + }, + "TextInput": { + "description": "Identifies which input file and track should be used.", + "id": "TextInput", + "properties": { + "key": { + "description": "Required. The `Input.key` that identifies the input file.", + "type": "string" + }, + "track": { + "description": "Required. The zero-based index of the track in the input file.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "TextStream": { + "description": "Encoding of a text stream. For example, closed captions or subtitles.", + "id": "TextStream", + "properties": { + "codec": { + "description": "The codec for this text stream. The default is `\"webvtt\"`. Supported text codecs: - 'srt' - 'ttml' - 'cea608' - 'cea708' - 'webvtt'", + "type": "string" + }, + "languageCode": { + "description": "Required. The BCP-47 language code, such as `\"en-US\"` or `\"sr-Latn\"`. For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.", + "type": "string" + }, + "mapping": { + "description": "The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.", + "items": { + "$ref": "TextAtom" + }, + "type": "array" + } + }, + "type": "object" + }, + "VideoStream": { + "description": "Video stream resource.", + "id": "VideoStream", + "properties": { + "allowOpenGop": { + "description": "Specifies whether an open Group of Pictures (GOP) structure should be allowed or not. The default is `false`.", + "type": "boolean" + }, + "aqStrength": { + "description": "Specify the intensity of the adaptive quantizer (AQ). Must be between 0 and 1, where 0 disables the quantizer and 1 maximizes the quantizer. A higher value equals a lower bitrate but smoother image. The default is 0.", + "format": "double", + "type": "number" + }, + "bFrameCount": { + "description": "The number of consecutive B-frames. Must be greater than or equal to zero. Must be less than `VideoStream.gop_frame_count` if set. The default is 0.", + "format": "int32", + "type": "integer" + }, + "bPyramid": { + "description": "Allow B-pyramid for reference frame selection. This may not be supported on all decoders. The default is `false`.", + "type": "boolean" + }, + "bitrateBps": { + "description": "Required. The video bitrate in bits per second. Must be between 1 and 1,000,000,000.", + "format": "int32", + "type": "integer" + }, + "codec": { + "description": "Codec type. The following codecs are supported: * `h264` (default) * `h265` * `vp9`", + "type": "string" + }, + "crfLevel": { + "description": "Target CRF level. Must be between 10 and 36, where 10 is the highest quality and 36 is the most efficient compression. The default is 21.", + "format": "int32", + "type": "integer" + }, + "enableTwoPass": { + "description": "Use two-pass encoding strategy to achieve better video quality. `VideoStream.rate_control_mode` must be `\"vbr\"`. The default is `false`.", + "type": "boolean" + }, + "entropyCoder": { + "description": "The entropy coder to use. The default is `\"cabac\"`. Supported entropy coders: - 'cavlc' - 'cabac'", + "type": "string" + }, + "frameRate": { + "description": "Required. The target video frame rate in frames per second (FPS). Must be less than or equal to 120. Will default to the input frame rate if larger than the input frame rate. The API will generate an output FPS that is divisible by the input FPS, and smaller or equal to the target FPS. The following table shows the computed video FPS given the target FPS (in parenthesis) and input FPS (in the first column): | | (30) | (60) | (25) | (50) | |--------|--------|--------|------|------| | 240 | Fail | Fail | Fail | Fail | | 120 | 30 | 60 | 20 | 30 | | 100 | 25 | 50 | 20 | 30 | | 50 | 25 | 50 | 20 | 30 | | 60 | 30 | 60 | 20 | 30 | | 59.94 | 29.97 | 59.94 | 20 | 30 | | 48 | 24 | 48 | 20 | 30 | | 30 | 30 | 30 | 20 | 30 | | 25 | 25 | 25 | 20 | 30 | | 24 | 24 | 24 | 20 | 30 | | 23.976 | 23.976 | 23.976 | 20 | 30 | | 15 | 15 | 15 | 20 | 30 | | 12 | 12 | 12 | 20 | 30 | | 10 | 10 | 10 | 20 | 30 |", + "format": "double", + "type": "number" + }, + "gopDuration": { + "description": "Select the GOP size based on the specified duration. The default is `\"3s\"`.", + "format": "google-duration", + "type": "string" + }, + "gopFrameCount": { + "description": "Select the GOP size based on the specified frame count. Must be greater than zero.", + "format": "int32", + "type": "integer" + }, + "heightPixels": { + "description": "The height of the video in pixels. Must be an even integer. When not specified, the height is adjusted to match the specified width and input aspect ratio. If both are omitted, the input height is used.", + "format": "int32", + "type": "integer" + }, + "pixelFormat": { + "description": "Pixel format to use. The default is `\"yuv420p\"`. Supported pixel formats: - 'yuv420p' pixel format. - 'yuv422p' pixel format. - 'yuv444p' pixel format. - 'yuv420p10' 10-bit HDR pixel format. - 'yuv422p10' 10-bit HDR pixel format. - 'yuv444p10' 10-bit HDR pixel format. - 'yuv420p12' 12-bit HDR pixel format. - 'yuv422p12' 12-bit HDR pixel format. - 'yuv444p12' 12-bit HDR pixel format.", + "type": "string" + }, + "preset": { + "description": "Enforces the specified codec preset. The default is `veryfast`. The available options are FFmpeg-compatible. Note that certain values for this field may cause the transcoder to override other fields you set in the `VideoStream` message.", + "type": "string" + }, + "profile": { + "description": "Enforces the specified codec profile. The following profiles are supported: * `baseline` * `main` * `high` (default) The available options are FFmpeg-compatible. Note that certain values for this field may cause the transcoder to override other fields you set in the `VideoStream` message.", + "type": "string" + }, + "rateControlMode": { + "description": "Specify the `rate_control_mode`. The default is `\"vbr\"`. Supported rate control modes: - 'vbr' - variable bitrate - 'crf' - constant rate factor", + "type": "string" + }, + "tune": { + "description": "Enforces the specified codec tune. The available options are FFmpeg-compatible. Note that certain values for this field may cause the transcoder to override other fields you set in the `VideoStream` message.", + "type": "string" + }, + "vbvFullnessBits": { + "description": "Initial fullness of the Video Buffering Verifier (VBV) buffer in bits. Must be greater than zero. The default is equal to 90% of `VideoStream.vbv_size_bits`.", + "format": "int32", + "type": "integer" + }, + "vbvSizeBits": { + "description": "Size of the Video Buffering Verifier (VBV) buffer in bits. Must be greater than zero. The default is equal to `VideoStream.bitrate_bps`.", + "format": "int32", + "type": "integer" + }, + "widthPixels": { + "description": "The width of the video in pixels. Must be an even integer. When not specified, the width is adjusted to match the specified height and input aspect ratio. If both are omitted, the input width is used.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + } + }, + "servicePath": "", + "title": "Transcoder API", + "version": "v1beta1", + "version_module": true +} \ No newline at end of file diff --git a/transcoder/v1beta1/transcoder-gen.go b/transcoder/v1beta1/transcoder-gen.go new file mode 100644 index 00000000000..2d2c34041c4 --- /dev/null +++ b/transcoder/v1beta1/transcoder-gen.go @@ -0,0 +1,3353 @@ +// Copyright 2020 Google LLC. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated file. DO NOT EDIT. + +// Package transcoder provides access to the Transcoder API. +// +// For product documentation, see: https://cloud.google.com/transcoder/docs/ +// +// Creating a client +// +// Usage example: +// +// import "google.golang.org/api/transcoder/v1beta1" +// ... +// ctx := context.Background() +// transcoderService, err := transcoder.NewService(ctx) +// +// In this example, Google Application Default Credentials are used for authentication. +// +// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// +// Other authentication options +// +// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// +// transcoderService, err := transcoder.NewService(ctx, option.WithAPIKey("AIza...")) +// +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// +// config := &oauth2.Config{...} +// // ... +// token, err := config.Exchange(ctx, ...) +// transcoderService, err := transcoder.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) +// +// See https://godoc.org/google.golang.org/api/option/ for details on options. +package transcoder // import "google.golang.org/api/transcoder/v1beta1" + +import ( + "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + googleapi "google.golang.org/api/googleapi" + gensupport "google.golang.org/api/internal/gensupport" + option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" + htransport "google.golang.org/api/transport/http" +) + +// Always reference these packages, just in case the auto-generated code +// below doesn't. +var _ = bytes.NewBuffer +var _ = strconv.Itoa +var _ = fmt.Sprintf +var _ = json.NewDecoder +var _ = io.Copy +var _ = url.Parse +var _ = gensupport.MarshalJSON +var _ = googleapi.Version +var _ = errors.New +var _ = strings.Replace +var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint + +const apiId = "transcoder:v1beta1" +const apiName = "transcoder" +const apiVersion = "v1beta1" +const basePath = "https://transcoder.googleapis.com/" +const mtlsBasePath = "https://transcoder.mtls.googleapis.com/" + +// OAuth2 scopes used by this API. +const ( + // View and manage your data across Google Cloud Platform services + CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" +) + +// NewService creates a new Service. +func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + scopesOption := option.WithScopes( + "https://www.googleapis.com/auth/cloud-platform", + ) + // NOTE: prepend, so we don't override user-specified scopes. + opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + client, endpoint, err := htransport.NewClient(ctx, opts...) + if err != nil { + return nil, err + } + s, err := New(client) + if err != nil { + return nil, err + } + if endpoint != "" { + s.BasePath = endpoint + } + return s, nil +} + +// New creates a new Service. It uses the provided http.Client for requests. +// +// Deprecated: please use NewService instead. +// To provide a custom HTTP client, use option.WithHTTPClient. +// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. +func New(client *http.Client) (*Service, error) { + if client == nil { + return nil, errors.New("client is nil") + } + s := &Service{client: client, BasePath: basePath} + s.Projects = NewProjectsService(s) + return s, nil +} + +type Service struct { + client *http.Client + BasePath string // API endpoint base URL + UserAgent string // optional additional User-Agent fragment + + Projects *ProjectsService +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewProjectsService(s *Service) *ProjectsService { + rs := &ProjectsService{s: s} + rs.Locations = NewProjectsLocationsService(s) + return rs +} + +type ProjectsService struct { + s *Service + + Locations *ProjectsLocationsService +} + +func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { + rs := &ProjectsLocationsService{s: s} + rs.JobTemplates = NewProjectsLocationsJobTemplatesService(s) + rs.Jobs = NewProjectsLocationsJobsService(s) + return rs +} + +type ProjectsLocationsService struct { + s *Service + + JobTemplates *ProjectsLocationsJobTemplatesService + + Jobs *ProjectsLocationsJobsService +} + +func NewProjectsLocationsJobTemplatesService(s *Service) *ProjectsLocationsJobTemplatesService { + rs := &ProjectsLocationsJobTemplatesService{s: s} + return rs +} + +type ProjectsLocationsJobTemplatesService struct { + s *Service +} + +func NewProjectsLocationsJobsService(s *Service) *ProjectsLocationsJobsService { + rs := &ProjectsLocationsJobsService{s: s} + return rs +} + +type ProjectsLocationsJobsService struct { + s *Service +} + +// AdBreak: Ad break. +type AdBreak struct { + // StartTimeOffset: Start time in seconds for the ad break, relative to + // the output file timeline. The default is `0s`. + StartTimeOffset string `json:"startTimeOffset,omitempty"` + + // ForceSendFields is a list of field names (e.g. "StartTimeOffset") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "StartTimeOffset") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AdBreak) MarshalJSON() ([]byte, error) { + type NoMethod AdBreak + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Aes128Encryption: Configuration for AES-128 encryption. +type Aes128Encryption struct { + // KeyUri: Required. URI of the key delivery service. This URI is + // inserted into the M3U8 header. + KeyUri string `json:"keyUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "KeyUri") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "KeyUri") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Aes128Encryption) MarshalJSON() ([]byte, error) { + type NoMethod Aes128Encryption + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Animation: Animation types. +type Animation struct { + // AnimationEnd: End previous animation. + AnimationEnd *AnimationEnd `json:"animationEnd,omitempty"` + + // AnimationFade: Display overlay object with fade animation. + AnimationFade *AnimationFade `json:"animationFade,omitempty"` + + // AnimationStatic: Display static overlay object. + AnimationStatic *AnimationStatic `json:"animationStatic,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnimationEnd") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnimationEnd") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Animation) MarshalJSON() ([]byte, error) { + type NoMethod Animation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AnimationEnd: End previous overlay animation from the video. Without +// AnimationEnd, the overlay object will keep the state of previous +// animation until the end of the video. +type AnimationEnd struct { + // StartTimeOffset: The time to end overlay object, in seconds. Default: + // 0 + StartTimeOffset string `json:"startTimeOffset,omitempty"` + + // ForceSendFields is a list of field names (e.g. "StartTimeOffset") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "StartTimeOffset") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AnimationEnd) MarshalJSON() ([]byte, error) { + type NoMethod AnimationEnd + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AnimationFade: Display overlay object with fade animation. +type AnimationFade struct { + // EndTimeOffset: The time to end the fade animation, in seconds. + // Default: `start_time_offset` + 1s + EndTimeOffset string `json:"endTimeOffset,omitempty"` + + // FadeType: Required. Type of fade animation: `FADE_IN` or `FADE_OUT`. + // + // Possible values: + // "FADE_TYPE_UNSPECIFIED" - The fade type is not specified. + // "FADE_IN" - Fade the overlay object into view. + // "FADE_OUT" - Fade the overlay object out of view. + FadeType string `json:"fadeType,omitempty"` + + // StartTimeOffset: The time to start the fade animation, in seconds. + // Default: 0 + StartTimeOffset string `json:"startTimeOffset,omitempty"` + + // Xy: Normalized coordinates based on output video resolution. Valid + // values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the + // overlay object. + Xy *NormalizedCoordinate `json:"xy,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndTimeOffset") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EndTimeOffset") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AnimationFade) MarshalJSON() ([]byte, error) { + type NoMethod AnimationFade + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AnimationStatic: Display static overlay object. +type AnimationStatic struct { + // StartTimeOffset: The time to start displaying the overlay object, in + // seconds. Default: 0 + StartTimeOffset string `json:"startTimeOffset,omitempty"` + + // Xy: Normalized coordinates based on output video resolution. Valid + // values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the + // overlay object. + Xy *NormalizedCoordinate `json:"xy,omitempty"` + + // ForceSendFields is a list of field names (e.g. "StartTimeOffset") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "StartTimeOffset") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AnimationStatic) MarshalJSON() ([]byte, error) { + type NoMethod AnimationStatic + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Audio: Audio preprocessing configuration. +type Audio struct { + // HighBoost: Enable boosting high frequency components. The default is + // `false`. + HighBoost bool `json:"highBoost,omitempty"` + + // LowBoost: Enable boosting low frequency components. The default is + // `false`. + LowBoost bool `json:"lowBoost,omitempty"` + + // Lufs: Specify audio loudness normalization in loudness units relative + // to full scale (LUFS). Enter a value between -24 and 0, where -24 is + // the Advanced Television Systems Committee (ATSC A/85), -23 is the EU + // R128 broadcast standard, -19 is the prior standard for online mono + // audio, -18 is the ReplayGain standard, -16 is the prior standard for + // stereo audio, -14 is the new online audio standard recommended by + // Spotify, as well as Amazon Echo, and 0 disables normalization. The + // default is 0. + Lufs float64 `json:"lufs,omitempty"` + + // ForceSendFields is a list of field names (e.g. "HighBoost") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "HighBoost") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Audio) MarshalJSON() ([]byte, error) { + type NoMethod Audio + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *Audio) UnmarshalJSON(data []byte) error { + type NoMethod Audio + var s1 struct { + Lufs gensupport.JSONFloat64 `json:"lufs"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Lufs = float64(s1.Lufs) + return nil +} + +// AudioAtom: The mapping for the `Job.edit_list` atoms with audio +// `EditAtom.inputs`. +type AudioAtom struct { + // Channels: List of `Channel`s for this audio stream. for in-depth + // explanation. + Channels []*AudioChannel `json:"channels,omitempty"` + + // Key: Required. The `EditAtom.key` that references the atom with audio + // inputs in the `Job.edit_list`. + Key string `json:"key,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Channels") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Channels") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AudioAtom) MarshalJSON() ([]byte, error) { + type NoMethod AudioAtom + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AudioChannel: The audio channel. +type AudioChannel struct { + // Inputs: List of `Job.inputs` for this audio channel. + Inputs []*AudioChannelInput `json:"inputs,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Inputs") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Inputs") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AudioChannel) MarshalJSON() ([]byte, error) { + type NoMethod AudioChannel + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AudioChannelInput: Identifies which input file, track, and channel +// should be used. +type AudioChannelInput struct { + // Channel: Required. The zero-based index of the channel in the input + // file. + Channel int64 `json:"channel,omitempty"` + + // GainDb: Audio volume control in dB. Negative values decrease volume, + // positive values increase. The default is 0. + GainDb float64 `json:"gainDb,omitempty"` + + // Key: Required. The `Input.key` that identifies the input file. + Key string `json:"key,omitempty"` + + // Track: Required. The zero-based index of the track in the input file. + Track int64 `json:"track,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Channel") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Channel") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AudioChannelInput) MarshalJSON() ([]byte, error) { + type NoMethod AudioChannelInput + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *AudioChannelInput) UnmarshalJSON(data []byte) error { + type NoMethod AudioChannelInput + var s1 struct { + GainDb gensupport.JSONFloat64 `json:"gainDb"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.GainDb = float64(s1.GainDb) + return nil +} + +// AudioStream: Audio stream resource. +type AudioStream struct { + // BitrateBps: Required. Audio bitrate in bits per second. Must be + // between 1 and 10,000,000. + BitrateBps int64 `json:"bitrateBps,omitempty"` + + // ChannelCount: Number of audio channels. Must be between 1 and 6. The + // default is 2. + ChannelCount int64 `json:"channelCount,omitempty"` + + // ChannelLayout: A list of channel names specifying layout of the audio + // channels. This only affects the metadata embedded in the container + // headers, if supported by the specified format. The default is `["fl", + // "fr"]`. Supported channel names: - 'fl' - Front left channel - 'fr' - + // Front right channel - 'sl' - Side left channel - 'sr' - Side right + // channel - 'fc' - Front center channel - 'lfe' - Low frequency + ChannelLayout []string `json:"channelLayout,omitempty"` + + // Codec: The codec for this audio stream. The default is "aac". + // Supported audio codecs: - 'aac' - 'aac-he' - 'aac-he-v2' - 'mp3' - + // 'ac3' - 'eac3' + Codec string `json:"codec,omitempty"` + + // Mapping: The mapping for the `Job.edit_list` atoms with audio + // `EditAtom.inputs`. + Mapping []*AudioAtom `json:"mapping,omitempty"` + + // SampleRateHertz: The audio sample rate in Hertz. The default is 48000 + // Hertz. + SampleRateHertz int64 `json:"sampleRateHertz,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BitrateBps") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BitrateBps") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AudioStream) MarshalJSON() ([]byte, error) { + type NoMethod AudioStream + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Color: Color preprocessing configuration. +type Color struct { + // Brightness: Control brightness of the video. Enter a value between -1 + // and 1, where -1 is minimum brightness and 1 is maximum brightness. 0 + // is no change. The default is 0. + Brightness float64 `json:"brightness,omitempty"` + + // Contrast: Control black and white contrast of the video. Enter a + // value between -1 and 1, where -1 is minimum contrast and 1 is maximum + // contrast. 0 is no change. The default is 0. + Contrast float64 `json:"contrast,omitempty"` + + // Saturation: Control color saturation of the video. Enter a value + // between -1 and 1, where -1 is fully desaturated and 1 is maximum + // saturation. 0 is no change. The default is 0. + Saturation float64 `json:"saturation,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Brightness") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Brightness") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Color) MarshalJSON() ([]byte, error) { + type NoMethod Color + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *Color) UnmarshalJSON(data []byte) error { + type NoMethod Color + var s1 struct { + Brightness gensupport.JSONFloat64 `json:"brightness"` + Contrast gensupport.JSONFloat64 `json:"contrast"` + Saturation gensupport.JSONFloat64 `json:"saturation"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Brightness = float64(s1.Brightness) + s.Contrast = float64(s1.Contrast) + s.Saturation = float64(s1.Saturation) + return nil +} + +// Crop: Video cropping configuration. +type Crop struct { + // BottomPixels: The number of pixels to crop from the bottom. The + // default is 0. + BottomPixels int64 `json:"bottomPixels,omitempty"` + + // LeftPixels: The number of pixels to crop from the left. The default + // is 0. + LeftPixels int64 `json:"leftPixels,omitempty"` + + // RightPixels: The number of pixels to crop from the right. The default + // is 0. + RightPixels int64 `json:"rightPixels,omitempty"` + + // TopPixels: The number of pixels to crop from the top. The default is + // 0. + TopPixels int64 `json:"topPixels,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BottomPixels") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BottomPixels") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Crop) MarshalJSON() ([]byte, error) { + type NoMethod Crop + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Deblock: Deblock preprocessing configuration. +type Deblock struct { + // Enabled: Enable deblocker. The default is `false`. + Enabled bool `json:"enabled,omitempty"` + + // Strength: Set strength of the deblocker. Enter a value between 0 and + // 1. The higher the value, the stronger the block removal. 0 is no + // deblocking. The default is 0. + Strength float64 `json:"strength,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Enabled") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Enabled") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Deblock) MarshalJSON() ([]byte, error) { + type NoMethod Deblock + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *Deblock) UnmarshalJSON(data []byte) error { + type NoMethod Deblock + var s1 struct { + Strength gensupport.JSONFloat64 `json:"strength"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Strength = float64(s1.Strength) + return nil +} + +// Denoise: Denoise preprocessing configuration. +type Denoise struct { + // Strength: Set strength of the denoise. Enter a value between 0 and 1. + // The higher the value, the smoother the image. 0 is no denoising. The + // default is 0. + Strength float64 `json:"strength,omitempty"` + + // Tune: Set the denoiser mode. The default is "standard". Supported + // denoiser modes: - 'standard' - 'grain' + Tune string `json:"tune,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Strength") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Strength") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Denoise) MarshalJSON() ([]byte, error) { + type NoMethod Denoise + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *Denoise) UnmarshalJSON(data []byte) error { + type NoMethod Denoise + var s1 struct { + Strength gensupport.JSONFloat64 `json:"strength"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Strength = float64(s1.Strength) + return nil +} + +// EditAtom: Edit atom. +type EditAtom struct { + // EndTimeOffset: End time in seconds for the atom, relative to the + // input file timeline. When `end_time_offset` is not specified, the + // `inputs` are used until the end of the atom. + EndTimeOffset string `json:"endTimeOffset,omitempty"` + + // Inputs: List of `Input.key`s identifying files that should be used in + // this atom. The listed `inputs` must have the same timeline. + Inputs []string `json:"inputs,omitempty"` + + // Key: A unique key for this atom. Must be specified when using + // advanced mapping. + Key string `json:"key,omitempty"` + + // StartTimeOffset: Start time in seconds for the atom, relative to the + // input file timeline. The default is `0s`. + StartTimeOffset string `json:"startTimeOffset,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndTimeOffset") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EndTimeOffset") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EditAtom) MarshalJSON() ([]byte, error) { + type NoMethod EditAtom + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ElementaryStream: Encoding of an input file such as an audio, video, +// or text track. Elementary streams must be packaged before mapping and +// sharing between different output formats. +type ElementaryStream struct { + // AudioStream: Encoding of an audio stream. + AudioStream *AudioStream `json:"audioStream,omitempty"` + + // Key: A unique key for this elementary stream. + Key string `json:"key,omitempty"` + + // TextStream: Encoding of a text stream. For example, closed captions + // or subtitles. + TextStream *TextStream `json:"textStream,omitempty"` + + // VideoStream: Encoding of a video stream. + VideoStream *VideoStream `json:"videoStream,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AudioStream") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AudioStream") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ElementaryStream) MarshalJSON() ([]byte, error) { + type NoMethod ElementaryStream + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Empty: A generic empty message that you can re-use to avoid defining +// duplicated empty messages in your APIs. A typical example is to use +// it as the request or the response type of an API method. For +// instance: service Foo { rpc Bar(google.protobuf.Empty) returns +// (google.protobuf.Empty); } The JSON representation for `Empty` is +// empty JSON object `{}`. +type Empty struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// Encryption: Encryption settings. +type Encryption struct { + // Aes128: Configuration for AES-128 encryption. + Aes128 *Aes128Encryption `json:"aes128,omitempty"` + + // Iv: Required. 128 bit Initialization Vector (IV) represented as + // lowercase hexadecimal digits. + Iv string `json:"iv,omitempty"` + + // Key: Required. 128 bit encryption key represented as lowercase + // hexadecimal digits. + Key string `json:"key,omitempty"` + + // MpegCenc: Configuration for MPEG Common Encryption (MPEG-CENC). + MpegCenc *MpegCommonEncryption `json:"mpegCenc,omitempty"` + + // SampleAes: Configuration for SAMPLE-AES encryption. + SampleAes *SampleAesEncryption `json:"sampleAes,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Aes128") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Aes128") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Encryption) MarshalJSON() ([]byte, error) { + type NoMethod Encryption + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// FailureDetail: Additional information about the reasons for the +// failure. +type FailureDetail struct { + // Description: A description of the failure. + Description string `json:"description,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Description") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *FailureDetail) MarshalJSON() ([]byte, error) { + type NoMethod FailureDetail + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Image: Overlaid jpeg image. +type Image struct { + // Alpha: Target image opacity. Valid values: `1` (solid, default), `0` + // (transparent). + Alpha float64 `json:"alpha,omitempty"` + + // Resolution: Normalized image resolution, based on output video + // resolution. Valid values: `0.0`–`1.0`. To respect the original + // image aspect ratio, set either `x` or `y` to `0.0`. To use the + // original image resolution, set both `x` and `y` to `0.0`. + Resolution *NormalizedCoordinate `json:"resolution,omitempty"` + + // Uri: Required. URI of the image in Cloud Storage. For example, + // `gs://bucket/inputs/image.jpeg`. + Uri string `json:"uri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Alpha") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Alpha") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Image) MarshalJSON() ([]byte, error) { + type NoMethod Image + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *Image) UnmarshalJSON(data []byte) error { + type NoMethod Image + var s1 struct { + Alpha gensupport.JSONFloat64 `json:"alpha"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Alpha = float64(s1.Alpha) + return nil +} + +// Input: Input asset. +type Input struct { + // Key: A unique key for this input. Must be specified when using + // advanced mapping and edit lists. + Key string `json:"key,omitempty"` + + // PreprocessingConfig: Preprocessing configurations. + PreprocessingConfig *PreprocessingConfig `json:"preprocessingConfig,omitempty"` + + // Uri: URI of the media. It must be stored in Cloud Storage. Example + // `gs://bucket/inputs/file.mp4`. If empty the value will be populated + // from `Job.input_uri`. + Uri string `json:"uri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Key") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Key") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Input) MarshalJSON() ([]byte, error) { + type NoMethod Input + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Job: Transcoding job resource. +type Job struct { + // Config: The configuration for this job. + Config *JobConfig `json:"config,omitempty"` + + // CreateTime: Output only. The time the job was created. + CreateTime string `json:"createTime,omitempty"` + + // EndTime: Output only. The time the transcoding finished. + EndTime string `json:"endTime,omitempty"` + + // FailureDetails: Output only. List of failure details. This property + // may contain additional information about the failure when + // `failure_reason` is present. *Note*: This feature is not yet + // available. + FailureDetails []*FailureDetail `json:"failureDetails,omitempty"` + + // FailureReason: Output only. A description of the reason for the + // failure. This property is always present when `state` is `FAILED`. + FailureReason string `json:"failureReason,omitempty"` + + // InputUri: Input only. Specify the `input_uri` to populate empty `uri` + // fields in each element of `Job.config.inputs` or + // `JobTemplate.config.inputs` when using template. URI of the media. It + // must be stored in Cloud Storage. For example, + // `gs://bucket/inputs/file.mp4`. + InputUri string `json:"inputUri,omitempty"` + + // Name: The resource name of the job. Format: + // `projects/{project}/locations/{location}/jobs/{job}` + Name string `json:"name,omitempty"` + + // OriginUri: Output only. The origin URI. *Note*: This feature is not + // yet available. + OriginUri *OriginUri `json:"originUri,omitempty"` + + // OutputUri: Input only. Specify the `output_uri` to populate an empty + // `Job.config.output.uri` or `JobTemplate.config.output.uri` when using + // template. URI for the output file(s). For example, + // `gs://my-bucket/outputs/`. + OutputUri string `json:"outputUri,omitempty"` + + // Priority: Specify the priority of the job. Enter a value between 0 + // and 100, where 0 is the lowest priority and 100 is the highest + // priority. The default is 0. + Priority int64 `json:"priority,omitempty"` + + // Progress: Output only. Estimated fractional progress, from `0` to `1` + // for each step. *Note*: This feature is not yet available. + Progress *Progress `json:"progress,omitempty"` + + // StartTime: Output only. The time the transcoding started. + StartTime string `json:"startTime,omitempty"` + + // State: Output only. The current state of the job. + // + // Possible values: + // "PROCESSING_STATE_UNSPECIFIED" - The processing state is not + // specified. + // "PENDING" - The job is enqueued and will be picked up for + // processing soon. + // "RUNNING" - The job is being processed. + // "SUCCEEDED" - The job has been completed successfully. + // "FAILED" - The job has failed. For additional information, see + // `failure_reason` and `failure_details` + State string `json:"state,omitempty"` + + // TemplateId: Input only. Specify the `template_id` to use for + // populating `Job.config`. The default is `preset/web-hd`. Preset + // Transcoder templates: - `preset/{preset_id}` - User defined + // JobTemplate: `{job_template_id}` + TemplateId string `json:"templateId,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Config") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Config") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Job) MarshalJSON() ([]byte, error) { + type NoMethod Job + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// JobConfig: Job configuration +type JobConfig struct { + // AdBreaks: List of ad breaks. Specifies where to insert ad break tags + // in the output manifests. + AdBreaks []*AdBreak `json:"adBreaks,omitempty"` + + // EditList: List of `Edit atom`s. Defines the ultimate timeline of the + // resulting file or manifest. + EditList []*EditAtom `json:"editList,omitempty"` + + // ElementaryStreams: List of elementary streams. + ElementaryStreams []*ElementaryStream `json:"elementaryStreams,omitempty"` + + // Inputs: List of input assets stored in Cloud Storage. + Inputs []*Input `json:"inputs,omitempty"` + + // Manifests: List of output manifests. + Manifests []*Manifest `json:"manifests,omitempty"` + + // MuxStreams: List of multiplexing settings for output streams. + MuxStreams []*MuxStream `json:"muxStreams,omitempty"` + + // Output: Output configuration. + Output *Output `json:"output,omitempty"` + + // Overlays: List of overlays on the output video, in descending + // Z-order. + Overlays []*Overlay `json:"overlays,omitempty"` + + // PubsubDestination: Destination on Pub/Sub. + PubsubDestination *PubsubDestination `json:"pubsubDestination,omitempty"` + + // SpriteSheets: List of output sprite sheets. + SpriteSheets []*SpriteSheet `json:"spriteSheets,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AdBreaks") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AdBreaks") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *JobConfig) MarshalJSON() ([]byte, error) { + type NoMethod JobConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// JobTemplate: Transcoding job template resource. +type JobTemplate struct { + // Config: The configuration for this template. + Config *JobConfig `json:"config,omitempty"` + + // Name: The resource name of the job template. Format: + // `projects/{project}/locations/{location}/jobTemplates/{job_template}` + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Config") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Config") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *JobTemplate) MarshalJSON() ([]byte, error) { + type NoMethod JobTemplate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListJobTemplatesResponse: Response message for +// `TranscoderService.ListJobTemplates`. +type ListJobTemplatesResponse struct { + // JobTemplates: List of job templates in the specified region. + JobTemplates []*JobTemplate `json:"jobTemplates,omitempty"` + + // NextPageToken: The pagination token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "JobTemplates") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "JobTemplates") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListJobTemplatesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListJobTemplatesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListJobsResponse: Response message for `TranscoderService.ListJobs`. +type ListJobsResponse struct { + // Jobs: List of jobs in the specified region. + Jobs []*Job `json:"jobs,omitempty"` + + // NextPageToken: The pagination token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Jobs") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Jobs") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListJobsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListJobsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Manifest: Manifest configuration. +type Manifest struct { + // FileName: The name of the generated file. The default is "manifest" + // with the extension suffix corresponding to the `Manifest.type`. + FileName string `json:"fileName,omitempty"` + + // MuxStreams: Required. List of user given `MuxStream.key`s that should + // appear in this manifest. When `Manifest.type` is `HLS`, a media + // manifest with name `MuxStream.key` and `.m3u8` extension is generated + // for each element of the `Manifest.mux_streams`. + MuxStreams []string `json:"muxStreams,omitempty"` + + // Type: Required. Type of the manifest, can be "HLS" or "DASH". + // + // Possible values: + // "MANIFEST_TYPE_UNSPECIFIED" - The manifest type is not specified. + // "HLS" - Create "HLS" manifest. The corresponding file extension + // is ".m3u8". + // "DASH" - Create "DASH" manifest. The corresponding file extension + // is ".mpd". + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FileName") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FileName") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Manifest) MarshalJSON() ([]byte, error) { + type NoMethod Manifest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MpegCommonEncryption: Configuration for MPEG Common Encryption +// (MPEG-CENC). +type MpegCommonEncryption struct { + // KeyId: Required. 128 bit Key ID represented as lowercase hexadecimal + // digits for use with common encryption. + KeyId string `json:"keyId,omitempty"` + + // Scheme: Required. Specify the encryption scheme. Supported encryption + // schemes: - 'cenc' - 'cbcs' + Scheme string `json:"scheme,omitempty"` + + // ForceSendFields is a list of field names (e.g. "KeyId") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "KeyId") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MpegCommonEncryption) MarshalJSON() ([]byte, error) { + type NoMethod MpegCommonEncryption + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MuxStream: Multiplexing settings for output stream. +type MuxStream struct { + // Container: The container format. The default is "mp4" Supported + // container formats: - 'ts' - 'fmp4'- the corresponding file extension + // is ".m4s" - 'mp4' - 'vtt' + Container string `json:"container,omitempty"` + + // ElementaryStreams: List of `ElementaryStream.key`s multiplexed in + // this stream. + ElementaryStreams []string `json:"elementaryStreams,omitempty"` + + // Encryption: Encryption settings. + Encryption *Encryption `json:"encryption,omitempty"` + + // FileName: The name of the generated file. The default is + // `MuxStream.key` with the extension suffix corresponding to the + // `MuxStream.container`. Individual segments also have an incremental + // 10-digit zero-padded suffix starting from 0 before the extension, + // such as "mux_stream0000000123.ts". + FileName string `json:"fileName,omitempty"` + + // Key: A unique key for this multiplexed stream. HLS media manifests + // will be named `MuxStream.key` with the ".m3u8" extension suffix. + Key string `json:"key,omitempty"` + + // SegmentSettings: Segment settings for "ts", "fmp4" and "vtt". + SegmentSettings *SegmentSettings `json:"segmentSettings,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Container") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Container") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MuxStream) MarshalJSON() ([]byte, error) { + type NoMethod MuxStream + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// NormalizedCoordinate: 2D normalized coordinates. Default: `{0.0, +// 0.0}` +type NormalizedCoordinate struct { + // X: Normalized x coordinate. + X float64 `json:"x,omitempty"` + + // Y: Normalized y coordinate. + Y float64 `json:"y,omitempty"` + + // ForceSendFields is a list of field names (e.g. "X") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "X") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *NormalizedCoordinate) MarshalJSON() ([]byte, error) { + type NoMethod NormalizedCoordinate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *NormalizedCoordinate) UnmarshalJSON(data []byte) error { + type NoMethod NormalizedCoordinate + var s1 struct { + X gensupport.JSONFloat64 `json:"x"` + Y gensupport.JSONFloat64 `json:"y"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.X = float64(s1.X) + s.Y = float64(s1.Y) + return nil +} + +// OriginUri: The origin URI. +type OriginUri struct { + // Dash: Dash manifest URI. If multiple Dash manifests are created, only + // the first one is listed. + Dash string `json:"dash,omitempty"` + + // Hls: HLS manifest URI per + // https://tools.ietf.org/html/rfc8216#section-4.3.4. If multiple HLS + // manifests are created, only the first one is listed. + Hls string `json:"hls,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Dash") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Dash") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *OriginUri) MarshalJSON() ([]byte, error) { + type NoMethod OriginUri + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Output: Location of output file(s) in a Cloud Storage bucket. +type Output struct { + // Uri: URI for the output file(s). For example, + // `gs://my-bucket/outputs/`. If empty the value is populated from + // `Job.output_uri`. + Uri string `json:"uri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Uri") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Uri") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Output) MarshalJSON() ([]byte, error) { + type NoMethod Output + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Overlay: Overlay configuration. +type Overlay struct { + // Animations: List of Animations. The list should be chronological, + // without any time overlap. + Animations []*Animation `json:"animations,omitempty"` + + // Image: Image overlay. + Image *Image `json:"image,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Animations") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Animations") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Overlay) MarshalJSON() ([]byte, error) { + type NoMethod Overlay + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PreprocessingConfig: Preprocessing configurations. +type PreprocessingConfig struct { + // Audio: Audio preprocessing configuration. + Audio *Audio `json:"audio,omitempty"` + + // Color: Color preprocessing configuration. + Color *Color `json:"color,omitempty"` + + // Crop: Specify the video cropping configuration. + Crop *Crop `json:"crop,omitempty"` + + // Deblock: Deblock preprocessing configuration. + Deblock *Deblock `json:"deblock,omitempty"` + + // Denoise: Denoise preprocessing configuration. + Denoise *Denoise `json:"denoise,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Audio") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Audio") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *PreprocessingConfig) MarshalJSON() ([]byte, error) { + type NoMethod PreprocessingConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Progress: Estimated fractional progress for each step, from `0` to +// `1`. +type Progress struct { + // Analyzed: Estimated fractional progress for `analyzing` step. + Analyzed float64 `json:"analyzed,omitempty"` + + // Encoded: Estimated fractional progress for `encoding` step. + Encoded float64 `json:"encoded,omitempty"` + + // Notified: Estimated fractional progress for `notifying` step. + Notified float64 `json:"notified,omitempty"` + + // Uploaded: Estimated fractional progress for `uploading` step. + Uploaded float64 `json:"uploaded,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Analyzed") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Analyzed") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Progress) MarshalJSON() ([]byte, error) { + type NoMethod Progress + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *Progress) UnmarshalJSON(data []byte) error { + type NoMethod Progress + var s1 struct { + Analyzed gensupport.JSONFloat64 `json:"analyzed"` + Encoded gensupport.JSONFloat64 `json:"encoded"` + Notified gensupport.JSONFloat64 `json:"notified"` + Uploaded gensupport.JSONFloat64 `json:"uploaded"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Analyzed = float64(s1.Analyzed) + s.Encoded = float64(s1.Encoded) + s.Notified = float64(s1.Notified) + s.Uploaded = float64(s1.Uploaded) + return nil +} + +// PubsubDestination: A Pub/Sub destination. +type PubsubDestination struct { + // Topic: The name of the Pub/Sub topic to publish job completion + // notification to. For example: `projects/{project}/topics/{topic}`. + Topic string `json:"topic,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Topic") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Topic") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *PubsubDestination) MarshalJSON() ([]byte, error) { + type NoMethod PubsubDestination + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SampleAesEncryption: Configuration for SAMPLE-AES encryption. +type SampleAesEncryption struct { + // KeyUri: Required. URI of the key delivery service. This URI is + // inserted into the M3U8 header. + KeyUri string `json:"keyUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "KeyUri") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "KeyUri") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SampleAesEncryption) MarshalJSON() ([]byte, error) { + type NoMethod SampleAesEncryption + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SegmentSettings: Segment settings for "ts", "fmp4" and "vtt". +type SegmentSettings struct { + // IndividualSegments: Required. Create an individual segment file. The + // default is `false`. + IndividualSegments bool `json:"individualSegments,omitempty"` + + // SegmentDuration: Duration of the segments in seconds. The default is + // "6.0s". + SegmentDuration string `json:"segmentDuration,omitempty"` + + // ForceSendFields is a list of field names (e.g. "IndividualSegments") + // to unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "IndividualSegments") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *SegmentSettings) MarshalJSON() ([]byte, error) { + type NoMethod SegmentSettings + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SpriteSheet: Sprite sheet configuration. +type SpriteSheet struct { + // ColumnCount: The maximum number of sprites per row in a sprite sheet. + // The default is 0, which indicates no maximum limit. + ColumnCount int64 `json:"columnCount,omitempty"` + + // EndTimeOffset: End time in seconds, relative to the output file + // timeline. When `end_time_offset` is not specified, the sprites are + // generated until the end of the output file. + EndTimeOffset string `json:"endTimeOffset,omitempty"` + + // FilePrefix: Required. File name prefix for the generated sprite + // sheets. Each sprite sheet has an incremental 10-digit zero-padded + // suffix starting from 0 before the extension, such as + // "sprite_sheet0000000123.jpeg". + FilePrefix string `json:"filePrefix,omitempty"` + + // Format: Format type. The default is "jpeg". Supported formats: - + // 'jpeg' + Format string `json:"format,omitempty"` + + // Interval: Starting from `0s`, create sprites at regular intervals. + // Specify the interval value in seconds. + Interval string `json:"interval,omitempty"` + + // RowCount: The maximum number of rows per sprite sheet. When the + // sprite sheet is full, a new sprite sheet is created. The default is + // 0, which indicates no maximum limit. + RowCount int64 `json:"rowCount,omitempty"` + + // SpriteHeightPixels: Required. The height of sprite in pixels. Must be + // an even integer. + SpriteHeightPixels int64 `json:"spriteHeightPixels,omitempty"` + + // SpriteWidthPixels: Required. The width of sprite in pixels. Must be + // an even integer. + SpriteWidthPixels int64 `json:"spriteWidthPixels,omitempty"` + + // StartTimeOffset: Start time in seconds, relative to the output file + // timeline. Determines the first sprite to pick. The default is `0s`. + StartTimeOffset string `json:"startTimeOffset,omitempty"` + + // TotalCount: Total number of sprites. Create the specified number of + // sprites distributed evenly across the timeline of the output media. + // The default is 100. + TotalCount int64 `json:"totalCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ColumnCount") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ColumnCount") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SpriteSheet) MarshalJSON() ([]byte, error) { + type NoMethod SpriteSheet + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TextAtom: The mapping for the `Job.edit_list` atoms with text +// `EditAtom.inputs`. +type TextAtom struct { + // Inputs: List of `Job.inputs` that should be embedded in this atom. + // Only one input is supported. + Inputs []*TextInput `json:"inputs,omitempty"` + + // Key: Required. The `EditAtom.key` that references atom with text + // inputs in the `Job.edit_list`. + Key string `json:"key,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Inputs") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Inputs") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TextAtom) MarshalJSON() ([]byte, error) { + type NoMethod TextAtom + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TextInput: Identifies which input file and track should be used. +type TextInput struct { + // Key: Required. The `Input.key` that identifies the input file. + Key string `json:"key,omitempty"` + + // Track: Required. The zero-based index of the track in the input file. + Track int64 `json:"track,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Key") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Key") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TextInput) MarshalJSON() ([]byte, error) { + type NoMethod TextInput + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TextStream: Encoding of a text stream. For example, closed captions +// or subtitles. +type TextStream struct { + // Codec: The codec for this text stream. The default is "webvtt". + // Supported text codecs: - 'srt' - 'ttml' - 'cea608' - 'cea708' - + // 'webvtt' + Codec string `json:"codec,omitempty"` + + // LanguageCode: Required. The BCP-47 language code, such as "en-US" + // or "sr-Latn". For more information, see + // https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + LanguageCode string `json:"languageCode,omitempty"` + + // Mapping: The mapping for the `Job.edit_list` atoms with text + // `EditAtom.inputs`. + Mapping []*TextAtom `json:"mapping,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Codec") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Codec") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TextStream) MarshalJSON() ([]byte, error) { + type NoMethod TextStream + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// VideoStream: Video stream resource. +type VideoStream struct { + // AllowOpenGop: Specifies whether an open Group of Pictures (GOP) + // structure should be allowed or not. The default is `false`. + AllowOpenGop bool `json:"allowOpenGop,omitempty"` + + // AqStrength: Specify the intensity of the adaptive quantizer (AQ). + // Must be between 0 and 1, where 0 disables the quantizer and 1 + // maximizes the quantizer. A higher value equals a lower bitrate but + // smoother image. The default is 0. + AqStrength float64 `json:"aqStrength,omitempty"` + + // BFrameCount: The number of consecutive B-frames. Must be greater than + // or equal to zero. Must be less than `VideoStream.gop_frame_count` if + // set. The default is 0. + BFrameCount int64 `json:"bFrameCount,omitempty"` + + // BPyramid: Allow B-pyramid for reference frame selection. This may not + // be supported on all decoders. The default is `false`. + BPyramid bool `json:"bPyramid,omitempty"` + + // BitrateBps: Required. The video bitrate in bits per second. Must be + // between 1 and 1,000,000,000. + BitrateBps int64 `json:"bitrateBps,omitempty"` + + // Codec: Codec type. The following codecs are supported: * `h264` + // (default) * `h265` * `vp9` + Codec string `json:"codec,omitempty"` + + // CrfLevel: Target CRF level. Must be between 10 and 36, where 10 is + // the highest quality and 36 is the most efficient compression. The + // default is 21. + CrfLevel int64 `json:"crfLevel,omitempty"` + + // EnableTwoPass: Use two-pass encoding strategy to achieve better video + // quality. `VideoStream.rate_control_mode` must be "vbr". The default + // is `false`. + EnableTwoPass bool `json:"enableTwoPass,omitempty"` + + // EntropyCoder: The entropy coder to use. The default is "cabac". + // Supported entropy coders: - 'cavlc' - 'cabac' + EntropyCoder string `json:"entropyCoder,omitempty"` + + // FrameRate: Required. The target video frame rate in frames per second + // (FPS). Must be less than or equal to 120. Will default to the input + // frame rate if larger than the input frame rate. The API will generate + // an output FPS that is divisible by the input FPS, and smaller or + // equal to the target FPS. The following table shows the computed video + // FPS given the target FPS (in parenthesis) and input FPS (in the first + // column): | | (30) | (60) | (25) | (50) | + // |--------|--------|--------|------|------| | 240 | Fail | Fail | Fail + // | Fail | | 120 | 30 | 60 | 20 | 30 | | 100 | 25 | 50 | 20 | 30 | | 50 + // | 25 | 50 | 20 | 30 | | 60 | 30 | 60 | 20 | 30 | | 59.94 | 29.97 | + // 59.94 | 20 | 30 | | 48 | 24 | 48 | 20 | 30 | | 30 | 30 | 30 | 20 | 30 + // | | 25 | 25 | 25 | 20 | 30 | | 24 | 24 | 24 | 20 | 30 | | 23.976 | + // 23.976 | 23.976 | 20 | 30 | | 15 | 15 | 15 | 20 | 30 | | 12 | 12 | 12 + // | 20 | 30 | | 10 | 10 | 10 | 20 | 30 | + FrameRate float64 `json:"frameRate,omitempty"` + + // GopDuration: Select the GOP size based on the specified duration. The + // default is "3s". + GopDuration string `json:"gopDuration,omitempty"` + + // GopFrameCount: Select the GOP size based on the specified frame + // count. Must be greater than zero. + GopFrameCount int64 `json:"gopFrameCount,omitempty"` + + // HeightPixels: The height of the video in pixels. Must be an even + // integer. When not specified, the height is adjusted to match the + // specified width and input aspect ratio. If both are omitted, the + // input height is used. + HeightPixels int64 `json:"heightPixels,omitempty"` + + // PixelFormat: Pixel format to use. The default is "yuv420p". + // Supported pixel formats: - 'yuv420p' pixel format. - 'yuv422p' pixel + // format. - 'yuv444p' pixel format. - 'yuv420p10' 10-bit HDR pixel + // format. - 'yuv422p10' 10-bit HDR pixel format. - 'yuv444p10' 10-bit + // HDR pixel format. - 'yuv420p12' 12-bit HDR pixel format. - + // 'yuv422p12' 12-bit HDR pixel format. - 'yuv444p12' 12-bit HDR pixel + // format. + PixelFormat string `json:"pixelFormat,omitempty"` + + // Preset: Enforces the specified codec preset. The default is + // `veryfast`. The available options are FFmpeg-compatible. Note that + // certain values for this field may cause the transcoder to override + // other fields you set in the `VideoStream` message. + Preset string `json:"preset,omitempty"` + + // Profile: Enforces the specified codec profile. The following profiles + // are supported: * `baseline` * `main` * `high` (default) The available + // options are FFmpeg-compatible. Note that certain values for this + // field may cause the transcoder to override other fields you set in + // the `VideoStream` message. + Profile string `json:"profile,omitempty"` + + // RateControlMode: Specify the `rate_control_mode`. The default is + // "vbr". Supported rate control modes: - 'vbr' - variable bitrate - + // 'crf' - constant rate factor + RateControlMode string `json:"rateControlMode,omitempty"` + + // Tune: Enforces the specified codec tune. The available options are + // FFmpeg-compatible. Note that certain values for this field may cause + // the transcoder to override other fields you set in the `VideoStream` + // message. + Tune string `json:"tune,omitempty"` + + // VbvFullnessBits: Initial fullness of the Video Buffering Verifier + // (VBV) buffer in bits. Must be greater than zero. The default is equal + // to 90% of `VideoStream.vbv_size_bits`. + VbvFullnessBits int64 `json:"vbvFullnessBits,omitempty"` + + // VbvSizeBits: Size of the Video Buffering Verifier (VBV) buffer in + // bits. Must be greater than zero. The default is equal to + // `VideoStream.bitrate_bps`. + VbvSizeBits int64 `json:"vbvSizeBits,omitempty"` + + // WidthPixels: The width of the video in pixels. Must be an even + // integer. When not specified, the width is adjusted to match the + // specified height and input aspect ratio. If both are omitted, the + // input width is used. + WidthPixels int64 `json:"widthPixels,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AllowOpenGop") to + // unconditionally include in API requests. By default, fields with + // empty values are omitted from API requests. However, any non-pointer, + // non-interface field appearing in ForceSendFields will be sent to the + // server regardless of whether the field is empty or not. This may be + // used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AllowOpenGop") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *VideoStream) MarshalJSON() ([]byte, error) { + type NoMethod VideoStream + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *VideoStream) UnmarshalJSON(data []byte) error { + type NoMethod VideoStream + var s1 struct { + AqStrength gensupport.JSONFloat64 `json:"aqStrength"` + FrameRate gensupport.JSONFloat64 `json:"frameRate"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.AqStrength = float64(s1.AqStrength) + s.FrameRate = float64(s1.FrameRate) + return nil +} + +// method id "transcoder.projects.locations.jobTemplates.create": + +type ProjectsLocationsJobTemplatesCreateCall struct { + s *Service + parent string + jobtemplate *JobTemplate + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a job template in the specified region. +func (r *ProjectsLocationsJobTemplatesService) Create(parent string, jobtemplate *JobTemplate) *ProjectsLocationsJobTemplatesCreateCall { + c := &ProjectsLocationsJobTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.jobtemplate = jobtemplate + return c +} + +// JobTemplateId sets the optional parameter "jobTemplateId": Required. +// The ID to use for the job template, which will become the final +// component of the job template's resource name. This value should be +// 4-63 characters, and valid characters must match the regular +// expression `a-zA-Z*`. +func (c *ProjectsLocationsJobTemplatesCreateCall) JobTemplateId(jobTemplateId string) *ProjectsLocationsJobTemplatesCreateCall { + c.urlParams_.Set("jobTemplateId", jobTemplateId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsJobTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobTemplatesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsJobTemplatesCreateCall) Context(ctx context.Context) *ProjectsLocationsJobTemplatesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsJobTemplatesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsJobTemplatesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.jobtemplate) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/jobTemplates") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "transcoder.projects.locations.jobTemplates.create" call. +// Exactly one of *JobTemplate or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *JobTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsJobTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*JobTemplate, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &JobTemplate{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a job template in the specified region.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/jobTemplates", + // "httpMethod": "POST", + // "id": "transcoder.projects.locations.jobTemplates.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "jobTemplateId": { + // "description": "Required. The ID to use for the job template, which will become the final component of the job template's resource name. This value should be 4-63 characters, and valid characters must match the regular expression `a-zA-Z*`.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent location to create this job template. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/jobTemplates", + // "request": { + // "$ref": "JobTemplate" + // }, + // "response": { + // "$ref": "JobTemplate" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "transcoder.projects.locations.jobTemplates.delete": + +type ProjectsLocationsJobTemplatesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a job template. +func (r *ProjectsLocationsJobTemplatesService) Delete(name string) *ProjectsLocationsJobTemplatesDeleteCall { + c := &ProjectsLocationsJobTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsJobTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobTemplatesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsJobTemplatesDeleteCall) Context(ctx context.Context) *ProjectsLocationsJobTemplatesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsJobTemplatesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsJobTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "transcoder.projects.locations.jobTemplates.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsJobTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a job template.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/jobTemplates/{jobTemplatesId}", + // "httpMethod": "DELETE", + // "id": "transcoder.projects.locations.jobTemplates.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the job template to delete. `projects/{project}/locations/{location}/jobTemplates/{job_template}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/jobTemplates/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "transcoder.projects.locations.jobTemplates.get": + +type ProjectsLocationsJobTemplatesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Returns the job template data. +func (r *ProjectsLocationsJobTemplatesService) Get(name string) *ProjectsLocationsJobTemplatesGetCall { + c := &ProjectsLocationsJobTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsJobTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobTemplatesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsJobTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsJobTemplatesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsJobTemplatesGetCall) Context(ctx context.Context) *ProjectsLocationsJobTemplatesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsJobTemplatesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsJobTemplatesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "transcoder.projects.locations.jobTemplates.get" call. +// Exactly one of *JobTemplate or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *JobTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsJobTemplatesGetCall) Do(opts ...googleapi.CallOption) (*JobTemplate, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &JobTemplate{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns the job template data.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/jobTemplates/{jobTemplatesId}", + // "httpMethod": "GET", + // "id": "transcoder.projects.locations.jobTemplates.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the job template to retrieve. Format: `projects/{project}/locations/{location}/jobTemplates/{job_template}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/jobTemplates/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "JobTemplate" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "transcoder.projects.locations.jobTemplates.list": + +type ProjectsLocationsJobTemplatesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists job templates in the specified region. +func (r *ProjectsLocationsJobTemplatesService) List(parent string) *ProjectsLocationsJobTemplatesListCall { + c := &ProjectsLocationsJobTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of items to return. +func (c *ProjectsLocationsJobTemplatesListCall) PageSize(pageSize int64) *ProjectsLocationsJobTemplatesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The +// `next_page_token` value returned from a previous List request, if +// any. +func (c *ProjectsLocationsJobTemplatesListCall) PageToken(pageToken string) *ProjectsLocationsJobTemplatesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsJobTemplatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobTemplatesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsJobTemplatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsJobTemplatesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsJobTemplatesListCall) Context(ctx context.Context) *ProjectsLocationsJobTemplatesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsJobTemplatesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsJobTemplatesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/jobTemplates") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "transcoder.projects.locations.jobTemplates.list" call. +// Exactly one of *ListJobTemplatesResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListJobTemplatesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsJobTemplatesListCall) Do(opts ...googleapi.CallOption) (*ListJobTemplatesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListJobTemplatesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists job templates in the specified region.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/jobTemplates", + // "httpMethod": "GET", + // "id": "transcoder.projects.locations.jobTemplates.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of items to return.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The `next_page_token` value returned from a previous List request, if any.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent location from which to retrieve the collection of job templates. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/jobTemplates", + // "response": { + // "$ref": "ListJobTemplatesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsJobTemplatesListCall) Pages(ctx context.Context, f func(*ListJobTemplatesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "transcoder.projects.locations.jobs.create": + +type ProjectsLocationsJobsCreateCall struct { + s *Service + parent string + job *Job + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a job in the specified region. +func (r *ProjectsLocationsJobsService) Create(parent string, job *Job) *ProjectsLocationsJobsCreateCall { + c := &ProjectsLocationsJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.job = job + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsJobsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsJobsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsJobsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.job) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/jobs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "transcoder.projects.locations.jobs.create" call. +// Exactly one of *Job or error will be non-nil. Any non-2xx status code +// is an error. Response headers are in either +// *Job.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsJobsCreateCall) Do(opts ...googleapi.CallOption) (*Job, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Job{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a job in the specified region.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/jobs", + // "httpMethod": "POST", + // "id": "transcoder.projects.locations.jobs.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The parent location to create and process this job. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/jobs", + // "request": { + // "$ref": "Job" + // }, + // "response": { + // "$ref": "Job" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "transcoder.projects.locations.jobs.delete": + +type ProjectsLocationsJobsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a job. +func (r *ProjectsLocationsJobsService) Delete(name string) *ProjectsLocationsJobsDeleteCall { + c := &ProjectsLocationsJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsJobsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsJobsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsJobsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "transcoder.projects.locations.jobs.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsJobsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a job.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/jobs/{jobsId}", + // "httpMethod": "DELETE", + // "id": "transcoder.projects.locations.jobs.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the job to delete. Format: `projects/{project}/locations/{location}/jobs/{job}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/jobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "transcoder.projects.locations.jobs.get": + +type ProjectsLocationsJobsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Returns the job data. +func (r *ProjectsLocationsJobsService) Get(name string) *ProjectsLocationsJobsGetCall { + c := &ProjectsLocationsJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsJobsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsJobsGetCall) Context(ctx context.Context) *ProjectsLocationsJobsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsJobsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsJobsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "transcoder.projects.locations.jobs.get" call. +// Exactly one of *Job or error will be non-nil. Any non-2xx status code +// is an error. Response headers are in either +// *Job.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsJobsGetCall) Do(opts ...googleapi.CallOption) (*Job, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Job{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns the job data.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/jobs/{jobsId}", + // "httpMethod": "GET", + // "id": "transcoder.projects.locations.jobs.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the job to retrieve. Format: `projects/{project}/locations/{location}/jobs/{job}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/jobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Job" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "transcoder.projects.locations.jobs.list": + +type ProjectsLocationsJobsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists jobs in the specified region. +func (r *ProjectsLocationsJobsService) List(parent string) *ProjectsLocationsJobsListCall { + c := &ProjectsLocationsJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of items to return. +func (c *ProjectsLocationsJobsListCall) PageSize(pageSize int64) *ProjectsLocationsJobsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The +// `next_page_token` value returned from a previous List request, if +// any. +func (c *ProjectsLocationsJobsListCall) PageToken(pageToken string) *ProjectsLocationsJobsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsJobsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsJobsListCall) Context(ctx context.Context) *ProjectsLocationsJobsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsJobsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsJobsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/jobs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "transcoder.projects.locations.jobs.list" call. +// Exactly one of *ListJobsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListJobsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsJobsListCall) Do(opts ...googleapi.CallOption) (*ListJobsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListJobsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists jobs in the specified region.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/jobs", + // "httpMethod": "GET", + // "id": "transcoder.projects.locations.jobs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of items to return.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The `next_page_token` value returned from a previous List request, if any.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/jobs", + // "response": { + // "$ref": "ListJobsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsJobsListCall) Pages(ctx context.Context, f func(*ListJobsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} diff --git a/translate/v2/translate-gen.go b/translate/v2/translate-gen.go index 0d5ccb38ab4..6d1916bf715 100644 --- a/translate/v2/translate-gen.go +++ b/translate/v2/translate-gen.go @@ -565,7 +565,7 @@ func (c *DetectionsDetectCall) Header() http.Header { func (c *DetectionsDetectCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -702,7 +702,7 @@ func (c *DetectionsListCall) Header() http.Header { func (c *DetectionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -858,7 +858,7 @@ func (c *LanguagesListCall) Header() http.Header { func (c *LanguagesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1041,7 +1041,7 @@ func (c *TranslationsListCall) Header() http.Header { func (c *TranslationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1209,7 +1209,7 @@ func (c *TranslationsTranslateCall) Header() http.Header { func (c *TranslationsTranslateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/translate/v3/translate-api.json b/translate/v3/translate-api.json index 074b50ac63d..53e41788a5a 100644 --- a/translate/v3/translate-api.json +++ b/translate/v3/translate-api.json @@ -687,7 +687,7 @@ } } }, - "revision": "20200925", + "revision": "20201106", "rootUrl": "https://translation.googleapis.com/", "schemas": { "BatchTranslateTextRequest": { @@ -1055,7 +1055,7 @@ "properties": { "gcsDestination": { "$ref": "GcsDestination", - "description": "Google Cloud Storage destination for output content. For every single input file (for example, gs://a/b/c.[extension]), we generate at most 2 * n output files. (n is the # of target_language_codes in the BatchTranslateTextRequest). Output files (tsv) generated are compliant with RFC 4180 except that record delimiters are '\\n' instead of '\\r\\n'. We don't provide any way to change record delimiters. While the input files are being processed, we write/update an index file 'index.csv' under 'output_uri_prefix' (for example, gs://translation-test/index.csv) The index file is generated/updated as new files are being translated. The format is: input_file,target_language_code,translations_file,errors_file, glossary_translations_file,glossary_errors_file input_file is one file we matched using gcs_source.input_uri. target_language_code is provided in the request. translations_file contains the translations. (details provided below) errors_file contains the errors during processing of the file. (details below). Both translations_file and errors_file could be empty strings if we have no content to output. glossary_translations_file and glossary_errors_file are always empty strings if the input_file is tsv. They could also be empty if we have no content to output. Once a row is present in index.csv, the input/output matching never changes. Callers should also expect all the content in input_file are processed and ready to be consumed (that is, no partial output file is written). The format of translations_file (for target language code 'trg') is: gs://translation_test/a_b_c_'trg'_translations.[extension] If the input file extension is tsv, the output has the following columns: Column 1: ID of the request provided in the input, if it's not provided in the input, then the input row number is used (0-based). Column 2: source sentence. Column 3: translation without applying a glossary. Empty string if there is an error. Column 4 (only present if a glossary is provided in the request): translation after applying the glossary. Empty string if there is an error applying the glossary. Could be same string as column 3 if there is no glossary applied. If input file extension is a txt or html, the translation is directly written to the output file. If glossary is requested, a separate glossary_translations_file has format of gs://translation_test/a_b_c_'trg'_glossary_translations.[extension] The format of errors file (for target language code 'trg') is: gs://translation_test/a_b_c_'trg'_errors.[extension] If the input file extension is tsv, errors_file contains the following: Column 1: ID of the request provided in the input, if it's not provided in the input, then the input row number is used (0-based). Column 2: source sentence. Column 3: Error detail for the translation. Could be empty. Column 4 (only present if a glossary is provided in the request): Error when applying the glossary. If the input file extension is txt or html, glossary_error_file will be generated that contains error details. glossary_error_file has format of gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]" + "description": "Google Cloud Storage destination for output content. For every single input file (for example, gs://a/b/c.[extension]), we generate at most 2 * n output files. (n is the # of target_language_codes in the BatchTranslateTextRequest). Output files (tsv) generated are compliant with RFC 4180 except that record delimiters are '\\n' instead of '\\r\\n'. We don't provide any way to change record delimiters. While the input files are being processed, we write/update an index file 'index.csv' under 'output_uri_prefix' (for example, gs://translation-test/index.csv) The index file is generated/updated as new files are being translated. The format is: input_file,target_language_code,translations_file,errors_file, glossary_translations_file,glossary_errors_file input_file is one file we matched using gcs_source.input_uri. target_language_code is provided in the request. translations_file contains the translations. (details provided below) errors_file contains the errors during processing of the file. (details below). Both translations_file and errors_file could be empty strings if we have no content to output. glossary_translations_file and glossary_errors_file are always empty strings if the input_file is tsv. They could also be empty if we have no content to output. Once a row is present in index.csv, the input/output matching never changes. Callers should also expect all the content in input_file are processed and ready to be consumed (that is, no partial output file is written). Since index.csv will be keeping updated during the process, please make sure there is no custom retention policy applied on the output bucket that may avoid file updating. (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy) The format of translations_file (for target language code 'trg') is: gs://translation_test/a_b_c_'trg'_translations.[extension] If the input file extension is tsv, the output has the following columns: Column 1: ID of the request provided in the input, if it's not provided in the input, then the input row number is used (0-based). Column 2: source sentence. Column 3: translation without applying a glossary. Empty string if there is an error. Column 4 (only present if a glossary is provided in the request): translation after applying the glossary. Empty string if there is an error applying the glossary. Could be same string as column 3 if there is no glossary applied. If input file extension is a txt or html, the translation is directly written to the output file. If glossary is requested, a separate glossary_translations_file has format of gs://translation_test/a_b_c_'trg'_glossary_translations.[extension] The format of errors file (for target language code 'trg') is: gs://translation_test/a_b_c_'trg'_errors.[extension] If the input file extension is tsv, errors_file contains the following: Column 1: ID of the request provided in the input, if it's not provided in the input, then the input row number is used (0-based). Column 2: source sentence. Column 3: Error detail for the translation. Could be empty. Column 4 (only present if a glossary is provided in the request): Error when applying the glossary. If the input file extension is txt or html, glossary_error_file will be generated that contains error details. glossary_error_file has format of gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]" } }, "type": "object" @@ -1144,7 +1144,7 @@ "id": "TranslateTextRequest", "properties": { "contents": { - "description": "Required. The content of the input in string format. We recommend the total content be less than 30k codepoints. Use BatchTranslateText for larger text.", + "description": "Required. The content of the input in string format. We recommend the total content be less than 30k codepoints. The max length of this field is 1024. Use BatchTranslateText for larger text.", "items": { "type": "string" }, diff --git a/translate/v3/translate-gen.go b/translate/v3/translate-gen.go index 27dff0ad66d..2ba3d854d64 100644 --- a/translate/v3/translate-gen.go +++ b/translate/v3/translate-gen.go @@ -925,9 +925,13 @@ type OutputConfig struct { // no content to output. Once a row is present in index.csv, the // input/output matching never changes. Callers should also expect all // the content in input_file are processed and ready to be consumed - // (that is, no partial output file is written). The format of - // translations_file (for target language code 'trg') is: - // gs://translation_test/a_b_c_'trg'_translations.[extension] If the + // (that is, no partial output file is written). Since index.csv will be + // keeping updated during the process, please make sure there is no + // custom retention policy applied on the output bucket that may avoid + // file updating. + // (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-pol + // icy) The format of translations_file (for target language code 'trg') + // is: gs://translation_test/a_b_c_'trg'_translations.[extension] If the // input file extension is tsv, the output has the following columns: // Column 1: ID of the request provided in the input, if it's not // provided in the input, then the input row number is used (0-based). @@ -1139,8 +1143,8 @@ func (s *TranslateTextGlossaryConfig) MarshalJSON() ([]byte, error) { // translation. type TranslateTextRequest struct { // Contents: Required. The content of the input in string format. We - // recommend the total content be less than 30k codepoints. Use - // BatchTranslateText for larger text. + // recommend the total content be less than 30k codepoints. The max + // length of this field is 1024. Use BatchTranslateText for larger text. Contents []string `json:"contents,omitempty"` // GlossaryConfig: Optional. Glossary to be applied. The glossary must @@ -1376,7 +1380,7 @@ func (c *ProjectsDetectLanguageCall) Header() http.Header { func (c *ProjectsDetectLanguageCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1552,7 +1556,7 @@ func (c *ProjectsGetSupportedLanguagesCall) Header() http.Header { func (c *ProjectsGetSupportedLanguagesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1698,7 +1702,7 @@ func (c *ProjectsTranslateTextCall) Header() http.Header { func (c *ProjectsTranslateTextCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1845,7 +1849,7 @@ func (c *ProjectsLocationsBatchTranslateTextCall) Header() http.Header { func (c *ProjectsLocationsBatchTranslateTextCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1985,7 +1989,7 @@ func (c *ProjectsLocationsDetectLanguageCall) Header() http.Header { func (c *ProjectsLocationsDetectLanguageCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2135,7 +2139,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2306,7 +2310,7 @@ func (c *ProjectsLocationsGetSupportedLanguagesCall) Header() http.Header { func (c *ProjectsLocationsGetSupportedLanguagesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2483,7 +2487,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2656,7 +2660,7 @@ func (c *ProjectsLocationsTranslateTextCall) Header() http.Header { func (c *ProjectsLocationsTranslateTextCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2798,7 +2802,7 @@ func (c *ProjectsLocationsGlossariesCreateCall) Header() http.Header { func (c *ProjectsLocationsGlossariesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2938,7 +2942,7 @@ func (c *ProjectsLocationsGlossariesDeleteCall) Header() http.Header { func (c *ProjectsLocationsGlossariesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3081,7 +3085,7 @@ func (c *ProjectsLocationsGlossariesGetCall) Header() http.Header { func (c *ProjectsLocationsGlossariesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3266,7 +3270,7 @@ func (c *ProjectsLocationsGlossariesListCall) Header() http.Header { func (c *ProjectsLocationsGlossariesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3448,7 +3452,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3590,7 +3594,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3734,7 +3738,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3909,7 +3913,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4091,7 +4095,7 @@ func (c *ProjectsLocationsOperationsWaitCall) Header() http.Header { func (c *ProjectsLocationsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/translate/v3beta1/translate-api.json b/translate/v3beta1/translate-api.json index 454b5257b93..2da44c284f3 100644 --- a/translate/v3beta1/translate-api.json +++ b/translate/v3beta1/translate-api.json @@ -687,7 +687,7 @@ } } }, - "revision": "20200807", + "revision": "20201106", "rootUrl": "https://translation.googleapis.com/", "schemas": { "BatchTranslateTextRequest": { @@ -1055,7 +1055,7 @@ "properties": { "gcsDestination": { "$ref": "GcsDestination", - "description": "Google Cloud Storage destination for output content. For every single input file (for example, gs://a/b/c.[extension]), we generate at most 2 * n output files. (n is the # of target_language_codes in the BatchTranslateTextRequest). Output files (tsv) generated are compliant with RFC 4180 except that record delimiters are '\\n' instead of '\\r\\n'. We don't provide any way to change record delimiters. While the input files are being processed, we write/update an index file 'index.csv' under 'output_uri_prefix' (for example, gs://translation-test/index.csv) The index file is generated/updated as new files are being translated. The format is: input_file,target_language_code,translations_file,errors_file, glossary_translations_file,glossary_errors_file input_file is one file we matched using gcs_source.input_uri. target_language_code is provided in the request. translations_file contains the translations. (details provided below) errors_file contains the errors during processing of the file. (details below). Both translations_file and errors_file could be empty strings if we have no content to output. glossary_translations_file and glossary_errors_file are always empty strings if the input_file is tsv. They could also be empty if we have no content to output. Once a row is present in index.csv, the input/output matching never changes. Callers should also expect all the content in input_file are processed and ready to be consumed (that is, no partial output file is written). The format of translations_file (for target language code 'trg') is: gs://translation_test/a_b_c_'trg'_translations.[extension] If the input file extension is tsv, the output has the following columns: Column 1: ID of the request provided in the input, if it's not provided in the input, then the input row number is used (0-based). Column 2: source sentence. Column 3: translation without applying a glossary. Empty string if there is an error. Column 4 (only present if a glossary is provided in the request): translation after applying the glossary. Empty string if there is an error applying the glossary. Could be same string as column 3 if there is no glossary applied. If input file extension is a txt or html, the translation is directly written to the output file. If glossary is requested, a separate glossary_translations_file has format of gs://translation_test/a_b_c_'trg'_glossary_translations.[extension] The format of errors file (for target language code 'trg') is: gs://translation_test/a_b_c_'trg'_errors.[extension] If the input file extension is tsv, errors_file contains the following: Column 1: ID of the request provided in the input, if it's not provided in the input, then the input row number is used (0-based). Column 2: source sentence. Column 3: Error detail for the translation. Could be empty. Column 4 (only present if a glossary is provided in the request): Error when applying the glossary. If the input file extension is txt or html, glossary_error_file will be generated that contains error details. glossary_error_file has format of gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]" + "description": "Google Cloud Storage destination for output content. For every single input file (for example, gs://a/b/c.[extension]), we generate at most 2 * n output files. (n is the # of target_language_codes in the BatchTranslateTextRequest). Output files (tsv) generated are compliant with RFC 4180 except that record delimiters are '\\n' instead of '\\r\\n'. We don't provide any way to change record delimiters. While the input files are being processed, we write/update an index file 'index.csv' under 'output_uri_prefix' (for example, gs://translation-test/index.csv) The index file is generated/updated as new files are being translated. The format is: input_file,target_language_code,translations_file,errors_file, glossary_translations_file,glossary_errors_file input_file is one file we matched using gcs_source.input_uri. target_language_code is provided in the request. translations_file contains the translations. (details provided below) errors_file contains the errors during processing of the file. (details below). Both translations_file and errors_file could be empty strings if we have no content to output. glossary_translations_file and glossary_errors_file are always empty strings if the input_file is tsv. They could also be empty if we have no content to output. Once a row is present in index.csv, the input/output matching never changes. Callers should also expect all the content in input_file are processed and ready to be consumed (that is, no partial output file is written). Since index.csv will be keeping updated during the process, please make sure there is no custom retention policy applied on the output bucket that may avoid file updating. (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy) The format of translations_file (for target language code 'trg') is: gs://translation_test/a_b_c_'trg'_translations.[extension] If the input file extension is tsv, the output has the following columns: Column 1: ID of the request provided in the input, if it's not provided in the input, then the input row number is used (0-based). Column 2: source sentence. Column 3: translation without applying a glossary. Empty string if there is an error. Column 4 (only present if a glossary is provided in the request): translation after applying the glossary. Empty string if there is an error applying the glossary. Could be same string as column 3 if there is no glossary applied. If input file extension is a txt or html, the translation is directly written to the output file. If glossary is requested, a separate glossary_translations_file has format of gs://translation_test/a_b_c_'trg'_glossary_translations.[extension] The format of errors file (for target language code 'trg') is: gs://translation_test/a_b_c_'trg'_errors.[extension] If the input file extension is tsv, errors_file contains the following: Column 1: ID of the request provided in the input, if it's not provided in the input, then the input row number is used (0-based). Column 2: source sentence. Column 3: Error detail for the translation. Could be empty. Column 4 (only present if a glossary is provided in the request): Error when applying the glossary. If the input file extension is txt or html, glossary_error_file will be generated that contains error details. glossary_error_file has format of gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]" } }, "type": "object" @@ -1144,7 +1144,7 @@ "id": "TranslateTextRequest", "properties": { "contents": { - "description": "Required. The content of the input in string format. We recommend the total content be less than 30k codepoints. Use BatchTranslateText for larger text.", + "description": "Required. The content of the input in string format. We recommend the total content be less than 30k codepoints. The max length of this field is 1024. Use BatchTranslateText for larger text.", "items": { "type": "string" }, diff --git a/translate/v3beta1/translate-gen.go b/translate/v3beta1/translate-gen.go index 286a5d98ce4..1c6f472f703 100644 --- a/translate/v3beta1/translate-gen.go +++ b/translate/v3beta1/translate-gen.go @@ -923,9 +923,13 @@ type OutputConfig struct { // no content to output. Once a row is present in index.csv, the // input/output matching never changes. Callers should also expect all // the content in input_file are processed and ready to be consumed - // (that is, no partial output file is written). The format of - // translations_file (for target language code 'trg') is: - // gs://translation_test/a_b_c_'trg'_translations.[extension] If the + // (that is, no partial output file is written). Since index.csv will be + // keeping updated during the process, please make sure there is no + // custom retention policy applied on the output bucket that may avoid + // file updating. + // (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-pol + // icy) The format of translations_file (for target language code 'trg') + // is: gs://translation_test/a_b_c_'trg'_translations.[extension] If the // input file extension is tsv, the output has the following columns: // Column 1: ID of the request provided in the input, if it's not // provided in the input, then the input row number is used (0-based). @@ -1134,8 +1138,8 @@ func (s *TranslateTextGlossaryConfig) MarshalJSON() ([]byte, error) { // translation. type TranslateTextRequest struct { // Contents: Required. The content of the input in string format. We - // recommend the total content be less than 30k codepoints. Use - // BatchTranslateText for larger text. + // recommend the total content be less than 30k codepoints. The max + // length of this field is 1024. Use BatchTranslateText for larger text. Contents []string `json:"contents,omitempty"` // GlossaryConfig: Optional. Glossary to be applied. The glossary must @@ -1371,7 +1375,7 @@ func (c *ProjectsDetectLanguageCall) Header() http.Header { func (c *ProjectsDetectLanguageCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1547,7 +1551,7 @@ func (c *ProjectsGetSupportedLanguagesCall) Header() http.Header { func (c *ProjectsGetSupportedLanguagesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1693,7 +1697,7 @@ func (c *ProjectsTranslateTextCall) Header() http.Header { func (c *ProjectsTranslateTextCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1840,7 +1844,7 @@ func (c *ProjectsLocationsBatchTranslateTextCall) Header() http.Header { func (c *ProjectsLocationsBatchTranslateTextCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1980,7 +1984,7 @@ func (c *ProjectsLocationsDetectLanguageCall) Header() http.Header { func (c *ProjectsLocationsDetectLanguageCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2130,7 +2134,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2301,7 +2305,7 @@ func (c *ProjectsLocationsGetSupportedLanguagesCall) Header() http.Header { func (c *ProjectsLocationsGetSupportedLanguagesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2478,7 +2482,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2651,7 +2655,7 @@ func (c *ProjectsLocationsTranslateTextCall) Header() http.Header { func (c *ProjectsLocationsTranslateTextCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2793,7 +2797,7 @@ func (c *ProjectsLocationsGlossariesCreateCall) Header() http.Header { func (c *ProjectsLocationsGlossariesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2933,7 +2937,7 @@ func (c *ProjectsLocationsGlossariesDeleteCall) Header() http.Header { func (c *ProjectsLocationsGlossariesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3076,7 +3080,7 @@ func (c *ProjectsLocationsGlossariesGetCall) Header() http.Header { func (c *ProjectsLocationsGlossariesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3261,7 +3265,7 @@ func (c *ProjectsLocationsGlossariesListCall) Header() http.Header { func (c *ProjectsLocationsGlossariesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3443,7 +3447,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3585,7 +3589,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3729,7 +3733,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3904,7 +3908,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4086,7 +4090,7 @@ func (c *ProjectsLocationsOperationsWaitCall) Header() http.Header { func (c *ProjectsLocationsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/transport/grpc/dial.go b/transport/grpc/dial.go index 55c04a5af06..f8a6ca29981 100644 --- a/transport/grpc/dial.go +++ b/transport/grpc/dial.go @@ -12,7 +12,6 @@ import ( "crypto/tls" "errors" "log" - "os" "strings" "go.opencensus.io/plugin/ocgrpc" @@ -138,9 +137,7 @@ func dial(ctx context.Context, insecure bool, o *internal.DialSettings) (*grpc.C // * The endpoint is a host:port (or dns:///host:port). // * Credentials are obtained via GCE metadata server, using the default // service account. - // * Opted in via GOOGLE_CLOUD_ENABLE_DIRECT_PATH environment variable. - // For example, GOOGLE_CLOUD_ENABLE_DIRECT_PATH=spanner,pubsub - if isDirectPathEnabled(endpoint) && isTokenSourceDirectPathCompatible(creds.TokenSource) { + if o.EnableDirectPath && checkDirectPathEndPoint(endpoint) && isTokenSourceDirectPathCompatible(creds.TokenSource) { if !strings.HasPrefix(endpoint, "dns:///") { endpoint = "dns:///" + endpoint } @@ -189,7 +186,7 @@ func dial(ctx context.Context, insecure bool, o *internal.DialSettings) (*grpc.C // point when isDirectPathEnabled will default to true, we guard it by // the Directpath env var for now once we can introspect user defined // dialer (https://github.com/grpc/grpc-go/issues/2795). - if timeoutDialerOption != nil && isDirectPathEnabled(endpoint) { + if timeoutDialerOption != nil && o.EnableDirectPath && checkDirectPathEndPoint(endpoint) { grpcOpts = append(grpcOpts, timeoutDialerOption) } @@ -250,8 +247,8 @@ func isTokenSourceDirectPathCompatible(ts oauth2.TokenSource) bool { return true } -func isDirectPathEnabled(endpoint string) bool { - // Only host:port is supported, not other schemes (e.g., "tcp://" or "unix://"). +func checkDirectPathEndPoint(endpoint string) bool { + // Only [dns:///]host[:port] is supported, not other schemes (e.g., "tcp://" or "unix://"). // Also don't try direct path if the user has chosen an alternate name resolver // (i.e., via ":///" prefix). // @@ -261,15 +258,11 @@ func isDirectPathEnabled(endpoint string) bool { return false } - // Only try direct path if the user has opted in via the environment variable. - directPathAPIs := strings.Split(os.Getenv("GOOGLE_CLOUD_ENABLE_DIRECT_PATH"), ",") - for _, api := range directPathAPIs { - // Ignore empty string since an empty env variable splits into [""] - if api != "" && strings.Contains(endpoint, api) { - return true - } + if endpoint == "" { + return false } - return false + + return true } func processAndValidateOpts(opts []option.ClientOption) (*internal.DialSettings, error) { diff --git a/transport/grpc/dial_socketopt_test.go b/transport/grpc/dial_socketopt_test.go index e36965d5df7..d6cc7f726f5 100644 --- a/transport/grpc/dial_socketopt_test.go +++ b/transport/grpc/dial_socketopt_test.go @@ -11,7 +11,6 @@ import ( "errors" "fmt" "net" - "os" "syscall" "testing" "time" @@ -19,6 +18,7 @@ import ( "golang.org/x/oauth2" "golang.org/x/sys/unix" "google.golang.org/api/option" + "google.golang.org/api/option/internaloption" "google.golang.org/grpc" ) @@ -90,9 +90,6 @@ func getTCPUserTimeout(conn net.Conn) (int, error) { // Check that tcp timeout dialer overwrites user defined dialer. func TestDialWithDirectPathEnabled(t *testing.T) { - os.Setenv("GOOGLE_CLOUD_ENABLE_DIRECT_PATH", "example,other") - defer os.Clearenv() - ctx, cancel := context.WithTimeout(context.Background(), 10*time.Millisecond) userDialer := grpc.WithDialer(func(addr string, timeout time.Duration) (net.Conn, error) { @@ -104,7 +101,8 @@ func TestDialWithDirectPathEnabled(t *testing.T) { conn, err := Dial(ctx, option.WithTokenSource(oauth2.StaticTokenSource(nil)), // No creds. option.WithGRPCDialOption(userDialer), - option.WithEndpoint("example.google.com:443")) + option.WithEndpoint("example.google.com:443"), + internaloption.EnableDirectPath(true)) if err != nil { t.Errorf("DialGRPC: error %v, want nil", err) } diff --git a/transport/grpc/dial_test.go b/transport/grpc/dial_test.go index c850ce615fe..6ec20369306 100644 --- a/transport/grpc/dial_test.go +++ b/transport/grpc/dial_test.go @@ -8,7 +8,6 @@ import ( "context" "errors" "net" - "os" "testing" "time" @@ -55,62 +54,40 @@ func TestGRPCHook(t *testing.T) { } } -func TestIsDirectPathEnabled(t *testing.T) { +func TestCheckDirectPathEndPoint(t *testing.T) { for _, testcase := range []struct { name string endpoint string - envVar string want bool }{ { - name: "matches", - endpoint: "some-api", - envVar: "some-api", - want: true, - }, - { - name: "does not match", - endpoint: "some-api", - envVar: "some-other-api", + name: "empty endpoint are disallowed", + endpoint: "", want: false, }, { - name: "matches in list", - endpoint: "some-api-2", - envVar: "some-api-1,some-api-2,some-api-3", + name: "dns schemes are allowed", + endpoint: "dns:///foo", want: true, }, { - name: "empty env var", - endpoint: "", - envVar: "", - want: false, - }, - { - name: "trailing comma", - endpoint: "", - envVar: "foo,bar,", - want: false, + name: "host without no prefix are allowed", + endpoint: "foo", + want: true, }, { - name: "dns schemes are allowed", - endpoint: "dns:///foo", - envVar: "dns:///foo", + name: "host with port are allowed", + endpoint: "foo:1234", want: true, }, { name: "non-dns schemes are disallowed", endpoint: "https://foo", - envVar: "https://foo", want: false, }, } { t.Run(testcase.name, func(t *testing.T) { - if err := os.Setenv("GOOGLE_CLOUD_ENABLE_DIRECT_PATH", testcase.envVar); err != nil { - t.Fatal(err) - } - - if got := isDirectPathEnabled(testcase.endpoint); got != testcase.want { + if got := checkDirectPathEndPoint(testcase.endpoint); got != testcase.want { t.Fatalf("got %v, want %v", got, testcase.want) } }) diff --git a/vault/v1/vault-gen.go b/vault/v1/vault-gen.go index c9f3bfbdf9b..5f90e6f89d4 100644 --- a/vault/v1/vault-gen.go +++ b/vault/v1/vault-gen.go @@ -2393,7 +2393,7 @@ func (c *MattersAddPermissionsCall) Header() http.Header { func (c *MattersAddPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2533,7 +2533,7 @@ func (c *MattersCloseCall) Header() http.Header { func (c *MattersCloseCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2673,7 +2673,7 @@ func (c *MattersCountCall) Header() http.Header { func (c *MattersCountCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2812,7 +2812,7 @@ func (c *MattersCreateCall) Header() http.Header { func (c *MattersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2938,7 +2938,7 @@ func (c *MattersDeleteCall) Header() http.Header { func (c *MattersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3092,7 +3092,7 @@ func (c *MattersGetCall) Header() http.Header { func (c *MattersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3291,7 +3291,7 @@ func (c *MattersListCall) Header() http.Header { func (c *MattersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3479,7 +3479,7 @@ func (c *MattersRemovePermissionsCall) Header() http.Header { func (c *MattersRemovePermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3619,7 +3619,7 @@ func (c *MattersReopenCall) Header() http.Header { func (c *MattersReopenCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3759,7 +3759,7 @@ func (c *MattersUndeleteCall) Header() http.Header { func (c *MattersUndeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3900,7 +3900,7 @@ func (c *MattersUpdateCall) Header() http.Header { func (c *MattersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4039,7 +4039,7 @@ func (c *MattersExportsCreateCall) Header() http.Header { func (c *MattersExportsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4178,7 +4178,7 @@ func (c *MattersExportsDeleteCall) Header() http.Header { func (c *MattersExportsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4328,7 +4328,7 @@ func (c *MattersExportsGetCall) Header() http.Header { func (c *MattersExportsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4494,7 +4494,7 @@ func (c *MattersExportsListCall) Header() http.Header { func (c *MattersExportsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4665,7 +4665,7 @@ func (c *MattersHoldsAddHeldAccountsCall) Header() http.Header { func (c *MattersHoldsAddHeldAccountsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4812,7 +4812,7 @@ func (c *MattersHoldsCreateCall) Header() http.Header { func (c *MattersHoldsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -4952,7 +4952,7 @@ func (c *MattersHoldsDeleteCall) Header() http.Header { func (c *MattersHoldsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5118,7 +5118,7 @@ func (c *MattersHoldsGetCall) Header() http.Header { func (c *MattersHoldsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5318,7 +5318,7 @@ func (c *MattersHoldsListCall) Header() http.Header { func (c *MattersHoldsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5505,7 +5505,7 @@ func (c *MattersHoldsRemoveHeldAccountsCall) Header() http.Header { func (c *MattersHoldsRemoveHeldAccountsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5657,7 +5657,7 @@ func (c *MattersHoldsUpdateCall) Header() http.Header { func (c *MattersHoldsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5808,7 +5808,7 @@ func (c *MattersHoldsAccountsCreateCall) Header() http.Header { func (c *MattersHoldsAccountsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -5958,7 +5958,7 @@ func (c *MattersHoldsAccountsDeleteCall) Header() http.Header { func (c *MattersHoldsAccountsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6118,7 +6118,7 @@ func (c *MattersHoldsAccountsListCall) Header() http.Header { func (c *MattersHoldsAccountsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6261,7 +6261,7 @@ func (c *MattersSavedQueriesCreateCall) Header() http.Header { func (c *MattersSavedQueriesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6400,7 +6400,7 @@ func (c *MattersSavedQueriesDeleteCall) Header() http.Header { func (c *MattersSavedQueriesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6550,7 +6550,7 @@ func (c *MattersSavedQueriesGetCall) Header() http.Header { func (c *MattersSavedQueriesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6718,7 +6718,7 @@ func (c *MattersSavedQueriesListCall) Header() http.Header { func (c *MattersSavedQueriesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -6894,7 +6894,7 @@ func (c *OperationsCancelCall) Header() http.Header { func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7032,7 +7032,7 @@ func (c *OperationsDeleteCall) Header() http.Header { func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7172,7 +7172,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -7347,7 +7347,7 @@ func (c *OperationsListCall) Header() http.Header { func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/vectortile/v1/vectortile-gen.go b/vectortile/v1/vectortile-gen.go index 5f7c786aaf2..e03a5c547b3 100644 --- a/vectortile/v1/vectortile-gen.go +++ b/vectortile/v1/vectortile-gen.go @@ -1305,7 +1305,7 @@ func (c *FeaturetilesGetCall) Header() http.Header { func (c *FeaturetilesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1668,7 +1668,7 @@ func (c *TerraintilesGetCall) Header() http.Header { func (c *TerraintilesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/verifiedaccess/v1/verifiedaccess-gen.go b/verifiedaccess/v1/verifiedaccess-gen.go index e3868e7ad1d..3a5ab8d4845 100644 --- a/verifiedaccess/v1/verifiedaccess-gen.go +++ b/verifiedaccess/v1/verifiedaccess-gen.go @@ -356,7 +356,7 @@ func (c *ChallengeCreateCall) Header() http.Header { func (c *ChallengeCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -481,7 +481,7 @@ func (c *ChallengeVerifyCall) Header() http.Header { func (c *ChallengeVerifyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/videointelligence/v1/videointelligence-gen.go b/videointelligence/v1/videointelligence-gen.go index 87ad7d06e5e..3f42db3b3c4 100644 --- a/videointelligence/v1/videointelligence-gen.go +++ b/videointelligence/v1/videointelligence-gen.go @@ -8519,7 +8519,7 @@ func (c *OperationsProjectsLocationsOperationsCancelCall) Header() http.Header { func (c *OperationsProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8652,7 +8652,7 @@ func (c *OperationsProjectsLocationsOperationsDeleteCall) Header() http.Header { func (c *OperationsProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8795,7 +8795,7 @@ func (c *OperationsProjectsLocationsOperationsGetCall) Header() http.Header { func (c *OperationsProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -8939,7 +8939,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9080,7 +9080,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9223,7 +9223,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9397,7 +9397,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -9572,7 +9572,7 @@ func (c *VideosAnnotateCall) Header() http.Header { func (c *VideosAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/videointelligence/v1beta2/videointelligence-gen.go b/videointelligence/v1beta2/videointelligence-gen.go index 7d384a2a447..59de3f9a245 100644 --- a/videointelligence/v1beta2/videointelligence-gen.go +++ b/videointelligence/v1beta2/videointelligence-gen.go @@ -8377,7 +8377,7 @@ func (c *VideosAnnotateCall) Header() http.Header { func (c *VideosAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/videointelligence/v1p1beta1/videointelligence-gen.go b/videointelligence/v1p1beta1/videointelligence-gen.go index ebfeeef6617..1b9505f578c 100644 --- a/videointelligence/v1p1beta1/videointelligence-gen.go +++ b/videointelligence/v1p1beta1/videointelligence-gen.go @@ -8377,7 +8377,7 @@ func (c *VideosAnnotateCall) Header() http.Header { func (c *VideosAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/videointelligence/v1p2beta1/videointelligence-gen.go b/videointelligence/v1p2beta1/videointelligence-gen.go index 371d4896bb5..7aeaa89b0bb 100644 --- a/videointelligence/v1p2beta1/videointelligence-gen.go +++ b/videointelligence/v1p2beta1/videointelligence-gen.go @@ -8377,7 +8377,7 @@ func (c *VideosAnnotateCall) Header() http.Header { func (c *VideosAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/videointelligence/v1p3beta1/videointelligence-gen.go b/videointelligence/v1p3beta1/videointelligence-gen.go index 58fd5fa249c..2624579eff8 100644 --- a/videointelligence/v1p3beta1/videointelligence-gen.go +++ b/videointelligence/v1p3beta1/videointelligence-gen.go @@ -8378,7 +8378,7 @@ func (c *VideosAnnotateCall) Header() http.Header { func (c *VideosAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/vision/v1/vision-api.json b/vision/v1/vision-api.json index 91bd705825d..46e3b9e3b29 100644 --- a/vision/v1/vision-api.json +++ b/vision/v1/vision-api.json @@ -1282,7 +1282,7 @@ } } }, - "revision": "20200828", + "revision": "20201023", "rootUrl": "https://vision.googleapis.com/", "schemas": { "AddProductToProductSetRequest": { @@ -8378,7 +8378,7 @@ "type": "object" }, "LatLng": { - "description": "An object representing a latitude/longitude pair. This is expressed as a pair of doubles representing degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. Values must be within normalized ranges.", + "description": "An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. Values must be within normalized ranges.", "id": "LatLng", "properties": { "latitude": { diff --git a/vision/v1/vision-gen.go b/vision/v1/vision-gen.go index 0c04f7a892d..7627d9cce3e 100644 --- a/vision/v1/vision-gen.go +++ b/vision/v1/vision-gen.go @@ -12063,8 +12063,8 @@ func (s *Landmark) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// LatLng: An object representing a latitude/longitude pair. This is -// expressed as a pair of doubles representing degrees latitude and +// LatLng: An object that represents a latitude/longitude pair. This is +// expressed as a pair of doubles to represent degrees latitude and // degrees longitude. Unless specified otherwise, this must conform to // the WGS84 standard. Values must be within normalized ranges. type LatLng struct { @@ -13944,7 +13944,7 @@ func (c *FilesAnnotateCall) Header() http.Header { func (c *FilesAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14076,7 +14076,7 @@ func (c *FilesAsyncBatchAnnotateCall) Header() http.Header { func (c *FilesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14202,7 +14202,7 @@ func (c *ImagesAnnotateCall) Header() http.Header { func (c *ImagesAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14334,7 +14334,7 @@ func (c *ImagesAsyncBatchAnnotateCall) Header() http.Header { func (c *ImagesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14473,7 +14473,7 @@ func (c *LocationsOperationsGetCall) Header() http.Header { func (c *LocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14618,7 +14618,7 @@ func (c *OperationsCancelCall) Header() http.Header { func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14760,7 +14760,7 @@ func (c *OperationsDeleteCall) Header() http.Header { func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14904,7 +14904,7 @@ func (c *OperationsGetCall) Header() http.Header { func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15079,7 +15079,7 @@ func (c *OperationsListCall) Header() http.Header { func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15257,7 +15257,7 @@ func (c *ProjectsFilesAnnotateCall) Header() http.Header { func (c *ProjectsFilesAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15404,7 +15404,7 @@ func (c *ProjectsFilesAsyncBatchAnnotateCall) Header() http.Header { func (c *ProjectsFilesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15545,7 +15545,7 @@ func (c *ProjectsImagesAnnotateCall) Header() http.Header { func (c *ProjectsImagesAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15692,7 +15692,7 @@ func (c *ProjectsImagesAsyncBatchAnnotateCall) Header() http.Header { func (c *ProjectsImagesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15838,7 +15838,7 @@ func (c *ProjectsLocationsFilesAnnotateCall) Header() http.Header { func (c *ProjectsLocationsFilesAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15985,7 +15985,7 @@ func (c *ProjectsLocationsFilesAsyncBatchAnnotateCall) Header() http.Header { func (c *ProjectsLocationsFilesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16126,7 +16126,7 @@ func (c *ProjectsLocationsImagesAnnotateCall) Header() http.Header { func (c *ProjectsLocationsImagesAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16273,7 +16273,7 @@ func (c *ProjectsLocationsImagesAsyncBatchAnnotateCall) Header() http.Header { func (c *ProjectsLocationsImagesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16425,7 +16425,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16564,7 +16564,7 @@ func (c *ProjectsLocationsProductSetsAddProductCall) Header() http.Header { func (c *ProjectsLocationsProductSetsAddProductCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16717,7 +16717,7 @@ func (c *ProjectsLocationsProductSetsCreateCall) Header() http.Header { func (c *ProjectsLocationsProductSetsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16863,7 +16863,7 @@ func (c *ProjectsLocationsProductSetsDeleteCall) Header() http.Header { func (c *ProjectsLocationsProductSetsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17006,7 +17006,7 @@ func (c *ProjectsLocationsProductSetsGetCall) Header() http.Header { func (c *ProjectsLocationsProductSetsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17149,7 +17149,7 @@ func (c *ProjectsLocationsProductSetsImportCall) Header() http.Header { func (c *ProjectsLocationsProductSetsImportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17315,7 +17315,7 @@ func (c *ProjectsLocationsProductSetsListCall) Header() http.Header { func (c *ProjectsLocationsProductSetsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17496,7 +17496,7 @@ func (c *ProjectsLocationsProductSetsPatchCall) Header() http.Header { func (c *ProjectsLocationsProductSetsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17643,7 +17643,7 @@ func (c *ProjectsLocationsProductSetsRemoveProductCall) Header() http.Header { func (c *ProjectsLocationsProductSetsRemoveProductCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17810,7 +17810,7 @@ func (c *ProjectsLocationsProductSetsProductsListCall) Header() http.Header { func (c *ProjectsLocationsProductSetsProductsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17992,7 +17992,7 @@ func (c *ProjectsLocationsProductsCreateCall) Header() http.Header { func (c *ProjectsLocationsProductsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18139,7 +18139,7 @@ func (c *ProjectsLocationsProductsDeleteCall) Header() http.Header { func (c *ProjectsLocationsProductsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18282,7 +18282,7 @@ func (c *ProjectsLocationsProductsGetCall) Header() http.Header { func (c *ProjectsLocationsProductsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18443,7 +18443,7 @@ func (c *ProjectsLocationsProductsListCall) Header() http.Header { func (c *ProjectsLocationsProductsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18628,7 +18628,7 @@ func (c *ProjectsLocationsProductsPatchCall) Header() http.Header { func (c *ProjectsLocationsProductsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18792,7 +18792,7 @@ func (c *ProjectsLocationsProductsPurgeCall) Header() http.Header { func (c *ProjectsLocationsProductsPurgeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18957,7 +18957,7 @@ func (c *ProjectsLocationsProductsReferenceImagesCreateCall) Header() http.Heade func (c *ProjectsLocationsProductsReferenceImagesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19105,7 +19105,7 @@ func (c *ProjectsLocationsProductsReferenceImagesDeleteCall) Header() http.Heade func (c *ProjectsLocationsProductsReferenceImagesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19248,7 +19248,7 @@ func (c *ProjectsLocationsProductsReferenceImagesGetCall) Header() http.Header { func (c *ProjectsLocationsProductsReferenceImagesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19411,7 +19411,7 @@ func (c *ProjectsLocationsProductsReferenceImagesListCall) Header() http.Header func (c *ProjectsLocationsProductsReferenceImagesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19590,7 +19590,7 @@ func (c *ProjectsOperationsGetCall) Header() http.Header { func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/vision/v1p1beta1/vision-api.json b/vision/v1p1beta1/vision-api.json index 9c1f167888f..3bcc46fdc32 100644 --- a/vision/v1p1beta1/vision-api.json +++ b/vision/v1p1beta1/vision-api.json @@ -449,7 +449,7 @@ } } }, - "revision": "20200828", + "revision": "20201023", "rootUrl": "https://vision.googleapis.com/", "schemas": { "AnnotateFileResponse": { @@ -7555,7 +7555,7 @@ "type": "object" }, "LatLng": { - "description": "An object representing a latitude/longitude pair. This is expressed as a pair of doubles representing degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. Values must be within normalized ranges.", + "description": "An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. Values must be within normalized ranges.", "id": "LatLng", "properties": { "latitude": { diff --git a/vision/v1p1beta1/vision-gen.go b/vision/v1p1beta1/vision-gen.go index 67718f1c9ef..c9e03a92a29 100644 --- a/vision/v1p1beta1/vision-gen.go +++ b/vision/v1p1beta1/vision-gen.go @@ -11938,8 +11938,8 @@ func (s *Landmark) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// LatLng: An object representing a latitude/longitude pair. This is -// expressed as a pair of doubles representing degrees latitude and +// LatLng: An object that represents a latitude/longitude pair. This is +// expressed as a pair of doubles to represent degrees latitude and // degrees longitude. Unless specified otherwise, this must conform to // the WGS84 standard. Values must be within normalized ranges. type LatLng struct { @@ -13355,7 +13355,7 @@ func (c *FilesAnnotateCall) Header() http.Header { func (c *FilesAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13489,7 +13489,7 @@ func (c *FilesAsyncBatchAnnotateCall) Header() http.Header { func (c *FilesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13615,7 +13615,7 @@ func (c *ImagesAnnotateCall) Header() http.Header { func (c *ImagesAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13749,7 +13749,7 @@ func (c *ImagesAsyncBatchAnnotateCall) Header() http.Header { func (c *ImagesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13882,7 +13882,7 @@ func (c *ProjectsFilesAnnotateCall) Header() http.Header { func (c *ProjectsFilesAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14031,7 +14031,7 @@ func (c *ProjectsFilesAsyncBatchAnnotateCall) Header() http.Header { func (c *ProjectsFilesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14172,7 +14172,7 @@ func (c *ProjectsImagesAnnotateCall) Header() http.Header { func (c *ProjectsImagesAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14321,7 +14321,7 @@ func (c *ProjectsImagesAsyncBatchAnnotateCall) Header() http.Header { func (c *ProjectsImagesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14467,7 +14467,7 @@ func (c *ProjectsLocationsFilesAnnotateCall) Header() http.Header { func (c *ProjectsLocationsFilesAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14616,7 +14616,7 @@ func (c *ProjectsLocationsFilesAsyncBatchAnnotateCall) Header() http.Header { func (c *ProjectsLocationsFilesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14757,7 +14757,7 @@ func (c *ProjectsLocationsImagesAnnotateCall) Header() http.Header { func (c *ProjectsLocationsImagesAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14906,7 +14906,7 @@ func (c *ProjectsLocationsImagesAsyncBatchAnnotateCall) Header() http.Header { func (c *ProjectsLocationsImagesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/vision/v1p2beta1/vision-api.json b/vision/v1p2beta1/vision-api.json index 23a4f5f12cd..d638b0fe0b8 100644 --- a/vision/v1p2beta1/vision-api.json +++ b/vision/v1p2beta1/vision-api.json @@ -449,7 +449,7 @@ } } }, - "revision": "20200828", + "revision": "20201023", "rootUrl": "https://vision.googleapis.com/", "schemas": { "AnnotateFileResponse": { @@ -7555,7 +7555,7 @@ "type": "object" }, "LatLng": { - "description": "An object representing a latitude/longitude pair. This is expressed as a pair of doubles representing degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. Values must be within normalized ranges.", + "description": "An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. Values must be within normalized ranges.", "id": "LatLng", "properties": { "latitude": { diff --git a/vision/v1p2beta1/vision-gen.go b/vision/v1p2beta1/vision-gen.go index 78817a08041..76d553fd457 100644 --- a/vision/v1p2beta1/vision-gen.go +++ b/vision/v1p2beta1/vision-gen.go @@ -11938,8 +11938,8 @@ func (s *Landmark) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// LatLng: An object representing a latitude/longitude pair. This is -// expressed as a pair of doubles representing degrees latitude and +// LatLng: An object that represents a latitude/longitude pair. This is +// expressed as a pair of doubles to represent degrees latitude and // degrees longitude. Unless specified otherwise, this must conform to // the WGS84 standard. Values must be within normalized ranges. type LatLng struct { @@ -13355,7 +13355,7 @@ func (c *FilesAnnotateCall) Header() http.Header { func (c *FilesAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13489,7 +13489,7 @@ func (c *FilesAsyncBatchAnnotateCall) Header() http.Header { func (c *FilesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13615,7 +13615,7 @@ func (c *ImagesAnnotateCall) Header() http.Header { func (c *ImagesAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13749,7 +13749,7 @@ func (c *ImagesAsyncBatchAnnotateCall) Header() http.Header { func (c *ImagesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13882,7 +13882,7 @@ func (c *ProjectsFilesAnnotateCall) Header() http.Header { func (c *ProjectsFilesAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14031,7 +14031,7 @@ func (c *ProjectsFilesAsyncBatchAnnotateCall) Header() http.Header { func (c *ProjectsFilesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14172,7 +14172,7 @@ func (c *ProjectsImagesAnnotateCall) Header() http.Header { func (c *ProjectsImagesAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14321,7 +14321,7 @@ func (c *ProjectsImagesAsyncBatchAnnotateCall) Header() http.Header { func (c *ProjectsImagesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14467,7 +14467,7 @@ func (c *ProjectsLocationsFilesAnnotateCall) Header() http.Header { func (c *ProjectsLocationsFilesAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14616,7 +14616,7 @@ func (c *ProjectsLocationsFilesAsyncBatchAnnotateCall) Header() http.Header { func (c *ProjectsLocationsFilesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14757,7 +14757,7 @@ func (c *ProjectsLocationsImagesAnnotateCall) Header() http.Header { func (c *ProjectsLocationsImagesAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14906,7 +14906,7 @@ func (c *ProjectsLocationsImagesAsyncBatchAnnotateCall) Header() http.Header { func (c *ProjectsLocationsImagesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/webfonts/v1/webfonts-gen.go b/webfonts/v1/webfonts-gen.go index a97380ef734..c51634949d3 100644 --- a/webfonts/v1/webfonts-gen.go +++ b/webfonts/v1/webfonts-gen.go @@ -290,7 +290,7 @@ func (c *WebfontsListCall) Header() http.Header { func (c *WebfontsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/webmasters/v3/webmasters-gen.go b/webmasters/v3/webmasters-gen.go index 7aefc141bcb..6d86665305e 100644 --- a/webmasters/v3/webmasters-gen.go +++ b/webmasters/v3/webmasters-gen.go @@ -659,7 +659,7 @@ func (c *SearchanalyticsQueryCall) Header() http.Header { func (c *SearchanalyticsQueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -798,7 +798,7 @@ func (c *SitemapsDeleteCall) Header() http.Header { func (c *SitemapsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -919,7 +919,7 @@ func (c *SitemapsGetCall) Header() http.Header { func (c *SitemapsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1080,7 +1080,7 @@ func (c *SitemapsListCall) Header() http.Header { func (c *SitemapsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1219,7 +1219,7 @@ func (c *SitemapsSubmitCall) Header() http.Header { func (c *SitemapsSubmitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1327,7 +1327,7 @@ func (c *SitesAddCall) Header() http.Header { func (c *SitesAddCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1428,7 +1428,7 @@ func (c *SitesDeleteCall) Header() http.Header { func (c *SitesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1539,7 +1539,7 @@ func (c *SitesGetCall) Header() http.Header { func (c *SitesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1680,7 +1680,7 @@ func (c *SitesListCall) Header() http.Header { func (c *SitesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/websecurityscanner/v1/websecurityscanner-gen.go b/websecurityscanner/v1/websecurityscanner-gen.go index 15db915f773..8bd00fe98cd 100644 --- a/websecurityscanner/v1/websecurityscanner-gen.go +++ b/websecurityscanner/v1/websecurityscanner-gen.go @@ -1522,7 +1522,7 @@ func (c *ProjectsScanConfigsCreateCall) Header() http.Header { func (c *ProjectsScanConfigsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1660,7 +1660,7 @@ func (c *ProjectsScanConfigsDeleteCall) Header() http.Header { func (c *ProjectsScanConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1801,7 +1801,7 @@ func (c *ProjectsScanConfigsGetCall) Header() http.Header { func (c *ProjectsScanConfigsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1962,7 +1962,7 @@ func (c *ProjectsScanConfigsListCall) Header() http.Header { func (c *ProjectsScanConfigsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2139,7 +2139,7 @@ func (c *ProjectsScanConfigsPatchCall) Header() http.Header { func (c *ProjectsScanConfigsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2285,7 +2285,7 @@ func (c *ProjectsScanConfigsStartCall) Header() http.Header { func (c *ProjectsScanConfigsStartCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2434,7 +2434,7 @@ func (c *ProjectsScanConfigsScanRunsGetCall) Header() http.Header { func (c *ProjectsScanConfigsScanRunsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2596,7 +2596,7 @@ func (c *ProjectsScanConfigsScanRunsListCall) Header() http.Header { func (c *ProjectsScanConfigsScanRunsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2763,7 +2763,7 @@ func (c *ProjectsScanConfigsScanRunsStopCall) Header() http.Header { func (c *ProjectsScanConfigsScanRunsStopCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2929,7 +2929,7 @@ func (c *ProjectsScanConfigsScanRunsCrawledUrlsListCall) Header() http.Header { func (c *ProjectsScanConfigsScanRunsCrawledUrlsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3105,7 +3105,7 @@ func (c *ProjectsScanConfigsScanRunsFindingTypeStatsListCall) Header() http.Head func (c *ProjectsScanConfigsScanRunsFindingTypeStatsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3249,7 +3249,7 @@ func (c *ProjectsScanConfigsScanRunsFindingsGetCall) Header() http.Header { func (c *ProjectsScanConfigsScanRunsFindingsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3418,7 +3418,7 @@ func (c *ProjectsScanConfigsScanRunsFindingsListCall) Header() http.Header { func (c *ProjectsScanConfigsScanRunsFindingsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/websecurityscanner/v1alpha/websecurityscanner-gen.go b/websecurityscanner/v1alpha/websecurityscanner-gen.go index d188215baed..4a392715f56 100644 --- a/websecurityscanner/v1alpha/websecurityscanner-gen.go +++ b/websecurityscanner/v1alpha/websecurityscanner-gen.go @@ -1201,7 +1201,7 @@ func (c *ProjectsScanConfigsCreateCall) Header() http.Header { func (c *ProjectsScanConfigsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1339,7 +1339,7 @@ func (c *ProjectsScanConfigsDeleteCall) Header() http.Header { func (c *ProjectsScanConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1480,7 +1480,7 @@ func (c *ProjectsScanConfigsGetCall) Header() http.Header { func (c *ProjectsScanConfigsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1641,7 +1641,7 @@ func (c *ProjectsScanConfigsListCall) Header() http.Header { func (c *ProjectsScanConfigsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1818,7 +1818,7 @@ func (c *ProjectsScanConfigsPatchCall) Header() http.Header { func (c *ProjectsScanConfigsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1964,7 +1964,7 @@ func (c *ProjectsScanConfigsStartCall) Header() http.Header { func (c *ProjectsScanConfigsStartCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2113,7 +2113,7 @@ func (c *ProjectsScanConfigsScanRunsGetCall) Header() http.Header { func (c *ProjectsScanConfigsScanRunsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2275,7 +2275,7 @@ func (c *ProjectsScanConfigsScanRunsListCall) Header() http.Header { func (c *ProjectsScanConfigsScanRunsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2442,7 +2442,7 @@ func (c *ProjectsScanConfigsScanRunsStopCall) Header() http.Header { func (c *ProjectsScanConfigsScanRunsStopCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2608,7 +2608,7 @@ func (c *ProjectsScanConfigsScanRunsCrawledUrlsListCall) Header() http.Header { func (c *ProjectsScanConfigsScanRunsCrawledUrlsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2784,7 +2784,7 @@ func (c *ProjectsScanConfigsScanRunsFindingTypeStatsListCall) Header() http.Head func (c *ProjectsScanConfigsScanRunsFindingTypeStatsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2928,7 +2928,7 @@ func (c *ProjectsScanConfigsScanRunsFindingsGetCall) Header() http.Header { func (c *ProjectsScanConfigsScanRunsFindingsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3097,7 +3097,7 @@ func (c *ProjectsScanConfigsScanRunsFindingsListCall) Header() http.Header { func (c *ProjectsScanConfigsScanRunsFindingsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/websecurityscanner/v1beta/websecurityscanner-gen.go b/websecurityscanner/v1beta/websecurityscanner-gen.go index ca9c793770b..6f3df2f59bb 100644 --- a/websecurityscanner/v1beta/websecurityscanner-gen.go +++ b/websecurityscanner/v1beta/websecurityscanner-gen.go @@ -1494,7 +1494,7 @@ func (c *ProjectsScanConfigsCreateCall) Header() http.Header { func (c *ProjectsScanConfigsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1632,7 +1632,7 @@ func (c *ProjectsScanConfigsDeleteCall) Header() http.Header { func (c *ProjectsScanConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1773,7 +1773,7 @@ func (c *ProjectsScanConfigsGetCall) Header() http.Header { func (c *ProjectsScanConfigsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1934,7 +1934,7 @@ func (c *ProjectsScanConfigsListCall) Header() http.Header { func (c *ProjectsScanConfigsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2111,7 +2111,7 @@ func (c *ProjectsScanConfigsPatchCall) Header() http.Header { func (c *ProjectsScanConfigsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2257,7 +2257,7 @@ func (c *ProjectsScanConfigsStartCall) Header() http.Header { func (c *ProjectsScanConfigsStartCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2406,7 +2406,7 @@ func (c *ProjectsScanConfigsScanRunsGetCall) Header() http.Header { func (c *ProjectsScanConfigsScanRunsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2568,7 +2568,7 @@ func (c *ProjectsScanConfigsScanRunsListCall) Header() http.Header { func (c *ProjectsScanConfigsScanRunsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2735,7 +2735,7 @@ func (c *ProjectsScanConfigsScanRunsStopCall) Header() http.Header { func (c *ProjectsScanConfigsScanRunsStopCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2901,7 +2901,7 @@ func (c *ProjectsScanConfigsScanRunsCrawledUrlsListCall) Header() http.Header { func (c *ProjectsScanConfigsScanRunsCrawledUrlsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3077,7 +3077,7 @@ func (c *ProjectsScanConfigsScanRunsFindingTypeStatsListCall) Header() http.Head func (c *ProjectsScanConfigsScanRunsFindingTypeStatsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3221,7 +3221,7 @@ func (c *ProjectsScanConfigsScanRunsFindingsGetCall) Header() http.Header { func (c *ProjectsScanConfigsScanRunsFindingsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -3390,7 +3390,7 @@ func (c *ProjectsScanConfigsScanRunsFindingsListCall) Header() http.Header { func (c *ProjectsScanConfigsScanRunsFindingsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/workflowexecutions/v1beta/workflowexecutions-gen.go b/workflowexecutions/v1beta/workflowexecutions-gen.go index 93afd558247..23d221ac678 100644 --- a/workflowexecutions/v1beta/workflowexecutions-gen.go +++ b/workflowexecutions/v1beta/workflowexecutions-gen.go @@ -370,7 +370,7 @@ func (c *ProjectsLocationsWorkflowsExecutionsCancelCall) Header() http.Header { func (c *ProjectsLocationsWorkflowsExecutionsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -511,7 +511,7 @@ func (c *ProjectsLocationsWorkflowsExecutionsCreateCall) Header() http.Header { func (c *ProjectsLocationsWorkflowsExecutionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -675,7 +675,7 @@ func (c *ProjectsLocationsWorkflowsExecutionsGetCall) Header() http.Header { func (c *ProjectsLocationsWorkflowsExecutionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -873,7 +873,7 @@ func (c *ProjectsLocationsWorkflowsExecutionsListCall) Header() http.Header { func (c *ProjectsLocationsWorkflowsExecutionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/workflows/v1beta/workflows-gen.go b/workflows/v1beta/workflows-gen.go index a2b9c870d51..ae8f6e646d0 100644 --- a/workflows/v1beta/workflows-gen.go +++ b/workflows/v1beta/workflows-gen.go @@ -643,7 +643,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -809,7 +809,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -982,7 +982,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1125,7 +1125,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1299,7 +1299,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1484,7 +1484,7 @@ func (c *ProjectsLocationsWorkflowsCreateCall) Header() http.Header { func (c *ProjectsLocationsWorkflowsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1628,7 +1628,7 @@ func (c *ProjectsLocationsWorkflowsDeleteCall) Header() http.Header { func (c *ProjectsLocationsWorkflowsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1769,7 +1769,7 @@ func (c *ProjectsLocationsWorkflowsGetCall) Header() http.Header { func (c *ProjectsLocationsWorkflowsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1951,7 +1951,7 @@ func (c *ProjectsLocationsWorkflowsListCall) Header() http.Header { func (c *ProjectsLocationsWorkflowsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2139,7 +2139,7 @@ func (c *ProjectsLocationsWorkflowsPatchCall) Header() http.Header { func (c *ProjectsLocationsWorkflowsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/youtube/v3/youtube-api.json b/youtube/v3/youtube-api.json index 5670925ad83..d7b65997f43 100644 --- a/youtube/v3/youtube-api.json +++ b/youtube/v3/youtube-api.json @@ -27,8 +27,8 @@ } }, "basePath": "", - "baseUrl": "https://www.googleapis.com/", - "batchPath": "batch/youtube/v3", + "baseUrl": "https://youtube.googleapis.com/", + "batchPath": "batch", "canonicalName": "YouTube", "description": "The YouTube Data API v3 is an API that provides access to YouTube data, such as videos, playlists, and channels.", "discoveryVersion": "v1", @@ -40,7 +40,7 @@ }, "id": "youtube:v3", "kind": "discovery#restDescription", - "mtlsRootUrl": "https://www.mtls.googleapis.com/", + "mtlsRootUrl": "https://youtube.mtls.googleapis.com/", "name": "youtube", "ownerDomain": "google.com", "ownerName": "Google", @@ -371,8 +371,8 @@ "httpMethod": "GET", "id": "youtube.captions.list", "parameterOrder": [ - "videoId", - "part" + "part", + "videoId" ], "parameters": { "id": { @@ -1561,8 +1561,8 @@ "httpMethod": "POST", "id": "youtube.liveBroadcasts.transition", "parameterOrder": [ - "id", "broadcastStatus", + "id", "part" ], "parameters": { @@ -3855,8 +3855,8 @@ } } }, - "revision": "20201017", - "rootUrl": "https://www.googleapis.com/", + "revision": "20201116", + "rootUrl": "https://youtube.googleapis.com/", "schemas": { "AbuseReport": { "id": "AbuseReport", diff --git a/youtube/v3/youtube-gen.go b/youtube/v3/youtube-gen.go index f72b2b918d6..609badba644 100644 --- a/youtube/v3/youtube-gen.go +++ b/youtube/v3/youtube-gen.go @@ -78,8 +78,8 @@ var _ = internaloption.WithDefaultEndpoint const apiId = "youtube:v3" const apiName = "youtube" const apiVersion = "v3" -const basePath = "https://www.googleapis.com/" -const mtlsBasePath = "https://www.mtls.googleapis.com/" +const basePath = "https://youtube.googleapis.com/" +const mtlsBasePath = "https://youtube.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( @@ -10278,7 +10278,7 @@ func (c *AbuseReportsInsertCall) Header() http.Header { func (c *AbuseReportsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10477,7 +10477,7 @@ func (c *ActivitiesListCall) Header() http.Header { func (c *ActivitiesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10692,7 +10692,7 @@ func (c *CaptionsDeleteCall) Header() http.Header { func (c *CaptionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -10850,7 +10850,7 @@ func (c *CaptionsDownloadCall) Header() http.Header { func (c *CaptionsDownloadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11066,7 +11066,7 @@ func (c *CaptionsInsertCall) Header() http.Header { func (c *CaptionsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11231,10 +11231,10 @@ type CaptionsListCall struct { } // List: Retrieves a list of resources, possibly filtered. -func (r *CaptionsService) List(videoId string, part []string) *CaptionsListCall { +func (r *CaptionsService) List(part []string, videoId string) *CaptionsListCall { c := &CaptionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.urlParams_.Set("videoId", videoId) c.urlParams_.SetMulti("part", append([]string{}, part...)) + c.urlParams_.Set("videoId", videoId) return c } @@ -11307,7 +11307,7 @@ func (c *CaptionsListCall) Header() http.Header { func (c *CaptionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11371,8 +11371,8 @@ func (c *CaptionsListCall) Do(opts ...googleapi.CallOption) (*CaptionListRespons // "httpMethod": "GET", // "id": "youtube.captions.list", // "parameterOrder": [ - // "videoId", - // "part" + // "part", + // "videoId" // ], // "parameters": { // "id": { @@ -11534,7 +11534,7 @@ func (c *CaptionsUpdateCall) Header() http.Header { func (c *CaptionsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -11821,7 +11821,7 @@ func (c *ChannelBannersInsertCall) Header() http.Header { func (c *ChannelBannersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12027,7 +12027,7 @@ func (c *ChannelSectionsDeleteCall) Header() http.Header { func (c *ChannelSectionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12173,7 +12173,7 @@ func (c *ChannelSectionsInsertCall) Header() http.Header { func (c *ChannelSectionsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12375,7 +12375,7 @@ func (c *ChannelSectionsListCall) Header() http.Header { func (c *ChannelSectionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12552,7 +12552,7 @@ func (c *ChannelSectionsUpdateCall) Header() http.Header { func (c *ChannelSectionsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -12791,7 +12791,7 @@ func (c *ChannelsListCall) Header() http.Header { func (c *ChannelsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13015,7 +13015,7 @@ func (c *ChannelsUpdateCall) Header() http.Header { func (c *ChannelsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13158,7 +13158,7 @@ func (c *CommentThreadsInsertCall) Header() http.Header { func (c *CommentThreadsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13398,7 +13398,7 @@ func (c *CommentThreadsListCall) Header() http.Header { func (c *CommentThreadsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13637,7 +13637,7 @@ func (c *CommentThreadsUpdateCall) Header() http.Header { func (c *CommentThreadsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13771,7 +13771,7 @@ func (c *CommentsDeleteCall) Header() http.Header { func (c *CommentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -13869,7 +13869,7 @@ func (c *CommentsInsertCall) Header() http.Header { func (c *CommentsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14060,7 +14060,7 @@ func (c *CommentsListCall) Header() http.Header { func (c *CommentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14250,7 +14250,7 @@ func (c *CommentsMarkAsSpamCall) Header() http.Header { func (c *CommentsMarkAsSpamCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14359,7 +14359,7 @@ func (c *CommentsSetModerationStatusCall) Header() http.Header { func (c *CommentsSetModerationStatusCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14484,7 +14484,7 @@ func (c *CommentsUpdateCall) Header() http.Header { func (c *CommentsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14635,7 +14635,7 @@ func (c *I18nLanguagesListCall) Header() http.Header { func (c *I18nLanguagesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14789,7 +14789,7 @@ func (c *I18nRegionsListCall) Header() http.Header { func (c *I18nRegionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -14975,7 +14975,7 @@ func (c *LiveBroadcastsBindCall) Header() http.Header { func (c *LiveBroadcastsBindCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15193,7 +15193,7 @@ func (c *LiveBroadcastsControlCall) Header() http.Header { func (c *LiveBroadcastsControlCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15395,7 +15395,7 @@ func (c *LiveBroadcastsDeleteCall) Header() http.Header { func (c *LiveBroadcastsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15546,7 +15546,7 @@ func (c *LiveBroadcastsInsertCall) Header() http.Header { func (c *LiveBroadcastsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15801,7 +15801,7 @@ func (c *LiveBroadcastsListCall) Header() http.Header { func (c *LiveBroadcastsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -15989,10 +15989,10 @@ type LiveBroadcastsTransitionCall struct { } // Transition: Transition a broadcast to a given status. -func (r *LiveBroadcastsService) Transition(id string, broadcastStatus string, part []string) *LiveBroadcastsTransitionCall { +func (r *LiveBroadcastsService) Transition(broadcastStatus string, id string, part []string) *LiveBroadcastsTransitionCall { c := &LiveBroadcastsTransitionCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.urlParams_.Set("id", id) c.urlParams_.Set("broadcastStatus", broadcastStatus) + c.urlParams_.Set("id", id) c.urlParams_.SetMulti("part", append([]string{}, part...)) return c } @@ -16065,7 +16065,7 @@ func (c *LiveBroadcastsTransitionCall) Header() http.Header { func (c *LiveBroadcastsTransitionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16126,8 +16126,8 @@ func (c *LiveBroadcastsTransitionCall) Do(opts ...googleapi.CallOption) (*LiveBr // "httpMethod": "POST", // "id": "youtube.liveBroadcasts.transition", // "parameterOrder": [ - // "id", // "broadcastStatus", + // "id", // "part" // ], // "parameters": { @@ -16271,7 +16271,7 @@ func (c *LiveBroadcastsUpdateCall) Header() http.Header { func (c *LiveBroadcastsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16416,7 +16416,7 @@ func (c *LiveChatBansDeleteCall) Header() http.Header { func (c *LiveChatBansDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16515,7 +16515,7 @@ func (c *LiveChatBansInsertCall) Header() http.Header { func (c *LiveChatBansInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16650,7 +16650,7 @@ func (c *LiveChatMessagesDeleteCall) Header() http.Header { func (c *LiveChatMessagesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16749,7 +16749,7 @@ func (c *LiveChatMessagesInsertCall) Header() http.Header { func (c *LiveChatMessagesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -16928,7 +16928,7 @@ func (c *LiveChatMessagesListCall) Header() http.Header { func (c *LiveChatMessagesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17110,7 +17110,7 @@ func (c *LiveChatModeratorsDeleteCall) Header() http.Header { func (c *LiveChatModeratorsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17209,7 +17209,7 @@ func (c *LiveChatModeratorsInsertCall) Header() http.Header { func (c *LiveChatModeratorsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17373,7 +17373,7 @@ func (c *LiveChatModeratorsListCall) Header() http.Header { func (c *LiveChatModeratorsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17585,7 +17585,7 @@ func (c *LiveStreamsDeleteCall) Header() http.Header { func (c *LiveStreamsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17735,7 +17735,7 @@ func (c *LiveStreamsInsertCall) Header() http.Header { func (c *LiveStreamsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -17963,7 +17963,7 @@ func (c *LiveStreamsListCall) Header() http.Header { func (c *LiveStreamsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18190,7 +18190,7 @@ func (c *LiveStreamsUpdateCall) Header() http.Header { func (c *LiveStreamsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18395,7 +18395,7 @@ func (c *MembersListCall) Header() http.Header { func (c *MembersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18599,7 +18599,7 @@ func (c *MembershipsLevelsListCall) Header() http.Header { func (c *MembershipsLevelsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18749,7 +18749,7 @@ func (c *PlaylistItemsDeleteCall) Header() http.Header { func (c *PlaylistItemsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -18871,7 +18871,7 @@ func (c *PlaylistItemsInsertCall) Header() http.Header { func (c *PlaylistItemsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19077,7 +19077,7 @@ func (c *PlaylistItemsListCall) Header() http.Header { func (c *PlaylistItemsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19281,7 +19281,7 @@ func (c *PlaylistItemsUpdateCall) Header() http.Header { func (c *PlaylistItemsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19439,7 +19439,7 @@ func (c *PlaylistsDeleteCall) Header() http.Header { func (c *PlaylistsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19585,7 +19585,7 @@ func (c *PlaylistsInsertCall) Header() http.Header { func (c *PlaylistsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -19828,7 +19828,7 @@ func (c *PlaylistsListCall) Header() http.Header { func (c *PlaylistsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20043,7 +20043,7 @@ func (c *PlaylistsUpdateCall) Header() http.Header { func (c *PlaylistsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20505,7 +20505,7 @@ func (c *SearchListCall) Header() http.Header { func (c *SearchListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -20998,7 +20998,7 @@ func (c *SponsorsListCall) Header() http.Header { func (c *SponsorsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21178,7 +21178,7 @@ func (c *SubscriptionsDeleteCall) Header() http.Header { func (c *SubscriptionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21278,7 +21278,7 @@ func (c *SubscriptionsInsertCall) Header() http.Header { func (c *SubscriptionsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21539,7 +21539,7 @@ func (c *SubscriptionsListCall) Header() http.Header { func (c *SubscriptionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21797,7 +21797,7 @@ func (c *SuperChatEventsListCall) Header() http.Header { func (c *SuperChatEventsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -21968,7 +21968,7 @@ func (c *TestsInsertCall) Header() http.Header { func (c *TestsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22109,7 +22109,7 @@ func (c *ThirdPartyLinksDeleteCall) Header() http.Header { func (c *ThirdPartyLinksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22226,7 +22226,7 @@ func (c *ThirdPartyLinksInsertCall) Header() http.Header { func (c *ThirdPartyLinksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22388,7 +22388,7 @@ func (c *ThirdPartyLinksListCall) Header() http.Header { func (c *ThirdPartyLinksListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22534,7 +22534,7 @@ func (c *ThirdPartyLinksUpdateCall) Header() http.Header { func (c *ThirdPartyLinksUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22725,7 +22725,7 @@ func (c *ThumbnailsSetCall) Header() http.Header { func (c *ThumbnailsSetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -22922,7 +22922,7 @@ func (c *VideoAbuseReportReasonsListCall) Header() http.Header { func (c *VideoAbuseReportReasonsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23089,7 +23089,7 @@ func (c *VideoCategoriesListCall) Header() http.Header { func (c *VideoCategoriesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23254,7 +23254,7 @@ func (c *VideosDeleteCall) Header() http.Header { func (c *VideosDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23386,7 +23386,7 @@ func (c *VideosGetRatingCall) Header() http.Header { func (c *VideosGetRatingCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23626,7 +23626,7 @@ func (c *VideosInsertCall) Header() http.Header { func (c *VideosInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -23961,7 +23961,7 @@ func (c *VideosListCall) Header() http.Header { func (c *VideosListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24198,7 +24198,7 @@ func (c *VideosRateCall) Header() http.Header { func (c *VideosRateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24330,7 +24330,7 @@ func (c *VideosReportAbuseCall) Header() http.Header { func (c *VideosReportAbuseCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24454,7 +24454,7 @@ func (c *VideosUpdateCall) Header() http.Header { func (c *VideosUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24654,7 +24654,7 @@ func (c *WatermarksSetCall) Header() http.Header { func (c *WatermarksSetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -24830,7 +24830,7 @@ func (c *WatermarksUnsetCall) Header() http.Header { func (c *WatermarksUnsetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/youtubeanalytics/v2/youtubeanalytics-gen.go b/youtubeanalytics/v2/youtubeanalytics-gen.go index 07e5016fd19..9b144be9fbb 100644 --- a/youtubeanalytics/v2/youtubeanalytics-gen.go +++ b/youtubeanalytics/v2/youtubeanalytics-gen.go @@ -797,7 +797,7 @@ func (c *GroupItemsDeleteCall) Header() http.Header { func (c *GroupItemsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -946,7 +946,7 @@ func (c *GroupItemsInsertCall) Header() http.Header { func (c *GroupItemsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1116,7 +1116,7 @@ func (c *GroupItemsListCall) Header() http.Header { func (c *GroupItemsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1273,7 +1273,7 @@ func (c *GroupsDeleteCall) Header() http.Header { func (c *GroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1422,7 +1422,7 @@ func (c *GroupsInsertCall) Header() http.Header { func (c *GroupsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1615,7 +1615,7 @@ func (c *GroupsListCall) Header() http.Header { func (c *GroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1799,7 +1799,7 @@ func (c *GroupsUpdateCall) Header() http.Header { func (c *GroupsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2056,7 +2056,7 @@ func (c *ReportsQueryCall) Header() http.Header { func (c *ReportsQueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } diff --git a/youtubereporting/v1/youtubereporting-gen.go b/youtubereporting/v1/youtubereporting-gen.go index 8b5ee8f5c56..cc2bb4d395b 100644 --- a/youtubereporting/v1/youtubereporting-gen.go +++ b/youtubereporting/v1/youtubereporting-gen.go @@ -1027,7 +1027,7 @@ func (c *JobsCreateCall) Header() http.Header { func (c *JobsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1168,7 +1168,7 @@ func (c *JobsDeleteCall) Header() http.Header { func (c *JobsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1323,7 +1323,7 @@ func (c *JobsGetCall) Header() http.Header { func (c *JobsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1505,7 +1505,7 @@ func (c *JobsListCall) Header() http.Header { func (c *JobsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1691,7 +1691,7 @@ func (c *JobsReportsGetCall) Header() http.Header { func (c *JobsReportsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -1898,7 +1898,7 @@ func (c *JobsReportsListCall) Header() http.Header { func (c *JobsReportsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2098,7 +2098,7 @@ func (c *MediaDownloadCall) Header() http.Header { func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v } @@ -2294,7 +2294,7 @@ func (c *ReportTypesListCall) Header() http.Header { func (c *ReportTypesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201022") + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201121") for k, v := range c.header_ { reqHeaders[k] = v }